import{a as Ce,b as wt,c as BM,d as Bm,e as nht,f as un,g as u_,h as jh,i as rht,j as Sj,k as ct}from"./chunk-EYRQIQR7.js";var OR=un((sTe,aTe)=>{"use strict";(function(n,e){typeof sTe=="object"&&typeof aTe<"u"?aTe.exports=e():typeof define=="function"&&define.amd?define(e):(n=typeof globalThis<"u"?globalThis:n||self,n.mapboxgl=e())})(sTe,function(){"use strict";var n,e,t;function i(o,s){if(!n)n=s;else if(!e)e=s;else{var c="self.onerror = function() { console.error('An error occurred while parsing the WebWorker bundle. This is most likely due to improper transpilation by Babel; please see https://docs.mapbox.com/mapbox-gl-js/guides/install/#transpiling'); }; var sharedChunk = {}; ("+n+")(sharedChunk); ("+e+")(sharedChunk); self.onerror = null;",h={};n(h),t=s(h),typeof window<"u"&&window&&window.URL&&window.URL.createObjectURL&&(t.workerUrl=window.URL.createObjectURL(new Blob([c],{type:"text/javascript"})))}}i(["exports"],function(o){"use strict";var s="3.4.0";let c,h={API_URL:"https://api.mapbox.com",get API_URL_REGEX(){if(c==null){let l=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;try{c=process.env.API_URL_REGEX!=null?new RegExp(process.env.API_URL_REGEX):l}catch{c=l}}return c},get API_TILEJSON_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/v[0-9]*\/.*\.json.*$)/i},get API_SPRITE_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/styles\/v[0-9]*\/)(.*\/sprite.*\..*$)/i},get API_FONTS_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/fonts\/v[0-9]*\/)(.*\.pbf.*$)/i},get API_STYLE_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/styles\/v[0-9]*\/)(.*$)/i},get API_CDN_URL_REGEX(){return/^((https?:)?\/\/)?api\.mapbox\.c(n|om)(\/mapbox-gl-js\/)(.*$)/i},get EVENTS_URL(){if(!h.API_URL)return null;try{let l=new URL(h.API_URL);return l.hostname==="api.mapbox.cn"?"https://events.mapbox.cn/events/v2":l.hostname==="api.mapbox.com"?"https://events.mapbox.com/events/v2":null}catch{return null}},SESSION_PATH:"/map-sessions/v1",FEEDBACK_URL:"https://apps.mapbox.com/feedback",TILE_URL_VERSION:"v4",RASTER_URL_PREFIX:"raster/v1",RASTERARRAYS_URL_PREFIX:"rasterarrays/v1",REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,DEFAULT_STYLE:"mapbox://styles/mapbox/standard",MAX_PARALLEL_IMAGE_REQUESTS:16,DRACO_URL:"https://api.mapbox.com/mapbox-gl-js/draco_decoder_gltf_v1.5.6.wasm",MESHOPT_URL:"https://api.mapbox.com/mapbox-gl-js/meshopt_base_v0.20.wasm",MESHOPT_SIMD_URL:"https://api.mapbox.com/mapbox-gl-js/meshopt_simd_v0.20.wasm",GLYPHS_URL:"mapbox://fonts/mapbox/{fontstack}/{range}.pbf"};function g(l){return h.API_URL_REGEX.test(l)}function x(l){return l.indexOf("mapbox:")===0}function C(l){return h.API_CDN_URL_REGEX.test(l)}function A(l){return h.API_SPRITE_REGEX.test(l)}function k(l){return h.API_STYLE_REGEX.test(l)&&!A(l)}let O={create:"create",load:"load",fullLoad:"fullLoad"};function F(l){let a=l.name.split("?")[0];return C(a)&&a.includes("mapbox-gl.js")?"javascript":C(a)&&a.includes("mapbox-gl.css")?"css":function(u){return h.API_FONTS_REGEX.test(u)}(a)?"fontRange":A(a)?"sprite":k(a)?"style":function(u){return h.API_TILEJSON_REGEX.test(u)}(a)?"tilejson":"other"}function L(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}var z={},j={};Object.defineProperty(j,"__esModule",{value:!0}),j.setMatrixArrayType=function(l){j.ARRAY_TYPE=ee=l},j.toRadian=function(l){return l*X},j.equals=function(l,a){return Math.abs(l-a)<=K*Math.max(1,Math.abs(l),Math.abs(a))},j.RANDOM=j.ARRAY_TYPE=j.EPSILON=void 0;var K=1e-6;j.EPSILON=K;var ee=typeof Float32Array<"u"?Float32Array:Array;j.ARRAY_TYPE=ee;var ne=Math.random;j.RANDOM=ne;var X=Math.PI/180;Math.hypot||(Math.hypot=function(){for(var l=0,a=arguments.length;a--;)l+=arguments[a]*arguments[a];return Math.sqrt(l)});var q={};function fe(l){return fe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},fe(l)}Object.defineProperty(q,"__esModule",{value:!0}),q.create=function(){var l=new Se.ARRAY_TYPE(4);return Se.ARRAY_TYPE!=Float32Array&&(l[1]=0,l[2]=0),l[0]=1,l[3]=1,l},q.clone=function(l){var a=new Se.ARRAY_TYPE(4);return a[0]=l[0],a[1]=l[1],a[2]=l[2],a[3]=l[3],a},q.copy=function(l,a){return l[0]=a[0],l[1]=a[1],l[2]=a[2],l[3]=a[3],l},q.identity=function(l){return l[0]=1,l[1]=0,l[2]=0,l[3]=1,l},q.fromValues=function(l,a,u,p){var m=new Se.ARRAY_TYPE(4);return m[0]=l,m[1]=a,m[2]=u,m[3]=p,m},q.set=function(l,a,u,p,m){return l[0]=a,l[1]=u,l[2]=p,l[3]=m,l},q.transpose=function(l,a){if(l===a){var u=a[1];l[1]=a[2],l[2]=u}else l[0]=a[0],l[1]=a[2],l[2]=a[1],l[3]=a[3];return l},q.invert=function(l,a){var u=a[0],p=a[1],m=a[2],_=a[3],b=u*_-m*p;return b?(l[0]=_*(b=1/b),l[1]=-p*b,l[2]=-m*b,l[3]=u*b,l):null},q.adjoint=function(l,a){var u=a[0];return l[0]=a[3],l[1]=-a[1],l[2]=-a[2],l[3]=u,l},q.determinant=function(l){return l[0]*l[3]-l[2]*l[1]},q.multiply=Me,q.rotate=function(l,a,u){var p=a[0],m=a[1],_=a[2],b=a[3],S=Math.sin(u),I=Math.cos(u);return l[0]=p*I+_*S,l[1]=m*I+b*S,l[2]=p*-S+_*I,l[3]=m*-S+b*I,l},q.scale=function(l,a,u){var p=a[1],m=a[2],_=a[3],b=u[0],S=u[1];return l[0]=a[0]*b,l[1]=p*b,l[2]=m*S,l[3]=_*S,l},q.fromRotation=function(l,a){var u=Math.sin(a),p=Math.cos(a);return l[0]=p,l[1]=u,l[2]=-u,l[3]=p,l},q.fromScaling=function(l,a){return l[0]=a[0],l[1]=0,l[2]=0,l[3]=a[1],l},q.str=function(l){return"mat2("+l[0]+", "+l[1]+", "+l[2]+", "+l[3]+")"},q.frob=function(l){return Math.hypot(l[0],l[1],l[2],l[3])},q.LDU=function(l,a,u,p){return l[2]=p[2]/p[0],u[0]=p[0],u[1]=p[1],u[3]=p[3]-l[2]*u[1],[l,a,u]},q.add=function(l,a,u){return l[0]=a[0]+u[0],l[1]=a[1]+u[1],l[2]=a[2]+u[2],l[3]=a[3]+u[3],l},q.subtract=ie,q.exactEquals=function(l,a){return l[0]===a[0]&&l[1]===a[1]&&l[2]===a[2]&&l[3]===a[3]},q.equals=function(l,a){var u=l[0],p=l[1],m=l[2],_=l[3],b=a[0],S=a[1],I=a[2],M=a[3];return Math.abs(u-b)<=Se.EPSILON*Math.max(1,Math.abs(u),Math.abs(b))&&Math.abs(p-S)<=Se.EPSILON*Math.max(1,Math.abs(p),Math.abs(S))&&Math.abs(m-I)<=Se.EPSILON*Math.max(1,Math.abs(m),Math.abs(I))&&Math.abs(_-M)<=Se.EPSILON*Math.max(1,Math.abs(_),Math.abs(M))},q.multiplyScalar=function(l,a,u){return l[0]=a[0]*u,l[1]=a[1]*u,l[2]=a[2]*u,l[3]=a[3]*u,l},q.multiplyScalarAndAdd=function(l,a,u,p){return l[0]=a[0]+u[0]*p,l[1]=a[1]+u[1]*p,l[2]=a[2]+u[2]*p,l[3]=a[3]+u[3]*p,l},q.sub=q.mul=void 0;var Se=function(l,a){if(l&&l.__esModule)return l;if(l===null||fe(l)!=="object"&&typeof l!="function")return{default:l};var u=pe(void 0);if(u&&u.has(l))return u.get(l);var p={},m=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var _ in l)if(_!=="default"&&Object.prototype.hasOwnProperty.call(l,_)){var b=m?Object.getOwnPropertyDescriptor(l,_):null;b&&(b.get||b.set)?Object.defineProperty(p,_,b):p[_]=l[_]}return p.default=l,u&&u.set(l,p),p}(j);function pe(l){if(typeof WeakMap!="function")return null;var a=new WeakMap,u=new WeakMap;return(pe=function(p){return p?u:a})(l)}function Me(l,a,u){var p=a[0],m=a[1],_=a[2],b=a[3],S=u[0],I=u[1],M=u[2],N=u[3];return l[0]=p*S+_*I,l[1]=m*S+b*I,l[2]=p*M+_*N,l[3]=m*M+b*N,l}function ie(l,a,u){return l[0]=a[0]-u[0],l[1]=a[1]-u[1],l[2]=a[2]-u[2],l[3]=a[3]-u[3],l}q.mul=Me,q.sub=ie;var Re={};function Ue(l){return Ue=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},Ue(l)}Object.defineProperty(Re,"__esModule",{value:!0}),Re.create=function(){var l=new Ee.ARRAY_TYPE(6);return Ee.ARRAY_TYPE!=Float32Array&&(l[1]=0,l[2]=0,l[4]=0,l[5]=0),l[0]=1,l[3]=1,l},Re.clone=function(l){var a=new Ee.ARRAY_TYPE(6);return a[0]=l[0],a[1]=l[1],a[2]=l[2],a[3]=l[3],a[4]=l[4],a[5]=l[5],a},Re.copy=function(l,a){return l[0]=a[0],l[1]=a[1],l[2]=a[2],l[3]=a[3],l[4]=a[4],l[5]=a[5],l},Re.identity=function(l){return l[0]=1,l[1]=0,l[2]=0,l[3]=1,l[4]=0,l[5]=0,l},Re.fromValues=function(l,a,u,p,m,_){var b=new Ee.ARRAY_TYPE(6);return b[0]=l,b[1]=a,b[2]=u,b[3]=p,b[4]=m,b[5]=_,b},Re.set=function(l,a,u,p,m,_,b){return l[0]=a,l[1]=u,l[2]=p,l[3]=m,l[4]=_,l[5]=b,l},Re.invert=function(l,a){var u=a[0],p=a[1],m=a[2],_=a[3],b=a[4],S=a[5],I=u*_-p*m;return I?(l[0]=_*(I=1/I),l[1]=-p*I,l[2]=-m*I,l[3]=u*I,l[4]=(m*S-_*b)*I,l[5]=(p*b-u*S)*I,l):null},Re.determinant=function(l){return l[0]*l[3]-l[1]*l[2]},Re.multiply=Ie,Re.rotate=function(l,a,u){var p=a[0],m=a[1],_=a[2],b=a[3],S=a[4],I=a[5],M=Math.sin(u),N=Math.cos(u);return l[0]=p*N+_*M,l[1]=m*N+b*M,l[2]=p*-M+_*N,l[3]=m*-M+b*N,l[4]=S,l[5]=I,l},Re.scale=function(l,a,u){var p=a[1],m=a[2],_=a[3],b=a[4],S=a[5],I=u[0],M=u[1];return l[0]=a[0]*I,l[1]=p*I,l[2]=m*M,l[3]=_*M,l[4]=b,l[5]=S,l},Re.translate=function(l,a,u){var p=a[0],m=a[1],_=a[2],b=a[3],S=a[4],I=a[5],M=u[0],N=u[1];return l[0]=p,l[1]=m,l[2]=_,l[3]=b,l[4]=p*M+_*N+S,l[5]=m*M+b*N+I,l},Re.fromRotation=function(l,a){var u=Math.sin(a),p=Math.cos(a);return l[0]=p,l[1]=u,l[2]=-u,l[3]=p,l[4]=0,l[5]=0,l},Re.fromScaling=function(l,a){return l[0]=a[0],l[1]=0,l[2]=0,l[3]=a[1],l[4]=0,l[5]=0,l},Re.fromTranslation=function(l,a){return l[0]=1,l[1]=0,l[2]=0,l[3]=1,l[4]=a[0],l[5]=a[1],l},Re.str=function(l){return"mat2d("+l[0]+", "+l[1]+", "+l[2]+", "+l[3]+", "+l[4]+", "+l[5]+")"},Re.frob=function(l){return Math.hypot(l[0],l[1],l[2],l[3],l[4],l[5],1)},Re.add=function(l,a,u){return l[0]=a[0]+u[0],l[1]=a[1]+u[1],l[2]=a[2]+u[2],l[3]=a[3]+u[3],l[4]=a[4]+u[4],l[5]=a[5]+u[5],l},Re.subtract=Be,Re.multiplyScalar=function(l,a,u){return l[0]=a[0]*u,l[1]=a[1]*u,l[2]=a[2]*u,l[3]=a[3]*u,l[4]=a[4]*u,l[5]=a[5]*u,l},Re.multiplyScalarAndAdd=function(l,a,u,p){return l[0]=a[0]+u[0]*p,l[1]=a[1]+u[1]*p,l[2]=a[2]+u[2]*p,l[3]=a[3]+u[3]*p,l[4]=a[4]+u[4]*p,l[5]=a[5]+u[5]*p,l},Re.exactEquals=function(l,a){return l[0]===a[0]&&l[1]===a[1]&&l[2]===a[2]&&l[3]===a[3]&&l[4]===a[4]&&l[5]===a[5]},Re.equals=function(l,a){var u=l[0],p=l[1],m=l[2],_=l[3],b=l[4],S=l[5],I=a[0],M=a[1],N=a[2],P=a[3],V=a[4],H=a[5];return Math.abs(u-I)<=Ee.EPSILON*Math.max(1,Math.abs(u),Math.abs(I))&&Math.abs(p-M)<=Ee.EPSILON*Math.max(1,Math.abs(p),Math.abs(M))&&Math.abs(m-N)<=Ee.EPSILON*Math.max(1,Math.abs(m),Math.abs(N))&&Math.abs(_-P)<=Ee.EPSILON*Math.max(1,Math.abs(_),Math.abs(P))&&Math.abs(b-V)<=Ee.EPSILON*Math.max(1,Math.abs(b),Math.abs(V))&&Math.abs(S-H)<=Ee.EPSILON*Math.max(1,Math.abs(S),Math.abs(H))},Re.sub=Re.mul=void 0;var Ee=function(l,a){if(l&&l.__esModule)return l;if(l===null||Ue(l)!=="object"&&typeof l!="function")return{default:l};var u=We(void 0);if(u&&u.has(l))return u.get(l);var p={},m=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var _ in l)if(_!=="default"&&Object.prototype.hasOwnProperty.call(l,_)){var b=m?Object.getOwnPropertyDescriptor(l,_):null;b&&(b.get||b.set)?Object.defineProperty(p,_,b):p[_]=l[_]}return p.default=l,u&&u.set(l,p),p}(j);function We(l){if(typeof WeakMap!="function")return null;var a=new WeakMap,u=new WeakMap;return(We=function(p){return p?u:a})(l)}function Ie(l,a,u){var p=a[0],m=a[1],_=a[2],b=a[3],S=a[4],I=a[5],M=u[0],N=u[1],P=u[2],V=u[3],H=u[4],Y=u[5];return l[0]=p*M+_*N,l[1]=m*M+b*N,l[2]=p*P+_*V,l[3]=m*P+b*V,l[4]=p*H+_*Y+S,l[5]=m*H+b*Y+I,l}function Be(l,a,u){return l[0]=a[0]-u[0],l[1]=a[1]-u[1],l[2]=a[2]-u[2],l[3]=a[3]-u[3],l[4]=a[4]-u[4],l[5]=a[5]-u[5],l}Re.mul=Ie,Re.sub=Be;var Ve={};function $e(l){return $e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},$e(l)}Object.defineProperty(Ve,"__esModule",{value:!0}),Ve.create=function(){var l=new Fe.ARRAY_TYPE(9);return Fe.ARRAY_TYPE!=Float32Array&&(l[1]=0,l[2]=0,l[3]=0,l[5]=0,l[6]=0,l[7]=0),l[0]=1,l[4]=1,l[8]=1,l},Ve.fromMat4=function(l,a){return l[0]=a[0],l[1]=a[1],l[2]=a[2],l[3]=a[4],l[4]=a[5],l[5]=a[6],l[6]=a[8],l[7]=a[9],l[8]=a[10],l},Ve.clone=function(l){var a=new Fe.ARRAY_TYPE(9);return a[0]=l[0],a[1]=l[1],a[2]=l[2],a[3]=l[3],a[4]=l[4],a[5]=l[5],a[6]=l[6],a[7]=l[7],a[8]=l[8],a},Ve.copy=function(l,a){return l[0]=a[0],l[1]=a[1],l[2]=a[2],l[3]=a[3],l[4]=a[4],l[5]=a[5],l[6]=a[6],l[7]=a[7],l[8]=a[8],l},Ve.fromValues=function(l,a,u,p,m,_,b,S,I){var M=new Fe.ARRAY_TYPE(9);return M[0]=l,M[1]=a,M[2]=u,M[3]=p,M[4]=m,M[5]=_,M[6]=b,M[7]=S,M[8]=I,M},Ve.set=function(l,a,u,p,m,_,b,S,I,M){return l[0]=a,l[1]=u,l[2]=p,l[3]=m,l[4]=_,l[5]=b,l[6]=S,l[7]=I,l[8]=M,l},Ve.identity=function(l){return l[0]=1,l[1]=0,l[2]=0,l[3]=0,l[4]=1,l[5]=0,l[6]=0,l[7]=0,l[8]=1,l},Ve.transpose=function(l,a){if(l===a){var u=a[1],p=a[2],m=a[5];l[1]=a[3],l[2]=a[6],l[3]=u,l[5]=a[7],l[6]=p,l[7]=m}else l[0]=a[0],l[1]=a[3],l[2]=a[6],l[3]=a[1],l[4]=a[4],l[5]=a[7],l[6]=a[2],l[7]=a[5],l[8]=a[8];return l},Ve.invert=function(l,a){var u=a[0],p=a[1],m=a[2],_=a[3],b=a[4],S=a[5],I=a[6],M=a[7],N=a[8],P=N*b-S*M,V=-N*_+S*I,H=M*_-b*I,Y=u*P+p*V+m*H;return Y?(l[0]=P*(Y=1/Y),l[1]=(-N*p+m*M)*Y,l[2]=(S*p-m*b)*Y,l[3]=V*Y,l[4]=(N*u-m*I)*Y,l[5]=(-S*u+m*_)*Y,l[6]=H*Y,l[7]=(-M*u+p*I)*Y,l[8]=(b*u-p*_)*Y,l):null},Ve.adjoint=function(l,a){var u=a[0],p=a[1],m=a[2],_=a[3],b=a[4],S=a[5],I=a[6],M=a[7],N=a[8];return l[0]=b*N-S*M,l[1]=m*M-p*N,l[2]=p*S-m*b,l[3]=S*I-_*N,l[4]=u*N-m*I,l[5]=m*_-u*S,l[6]=_*M-b*I,l[7]=p*I-u*M,l[8]=u*b-p*_,l},Ve.determinant=function(l){var a=l[3],u=l[4],p=l[5],m=l[6],_=l[7],b=l[8];return l[0]*(b*u-p*_)+l[1]*(-b*a+p*m)+l[2]*(_*a-u*m)},Ve.multiply=ze,Ve.translate=function(l,a,u){var p=a[0],m=a[1],_=a[2],b=a[3],S=a[4],I=a[5],M=a[6],N=a[7],P=a[8],V=u[0],H=u[1];return l[0]=p,l[1]=m,l[2]=_,l[3]=b,l[4]=S,l[5]=I,l[6]=V*p+H*b+M,l[7]=V*m+H*S+N,l[8]=V*_+H*I+P,l},Ve.rotate=function(l,a,u){var p=a[0],m=a[1],_=a[2],b=a[3],S=a[4],I=a[5],M=a[6],N=a[7],P=a[8],V=Math.sin(u),H=Math.cos(u);return l[0]=H*p+V*b,l[1]=H*m+V*S,l[2]=H*_+V*I,l[3]=H*b-V*p,l[4]=H*S-V*m,l[5]=H*I-V*_,l[6]=M,l[7]=N,l[8]=P,l},Ve.scale=function(l,a,u){var p=u[0],m=u[1];return l[0]=p*a[0],l[1]=p*a[1],l[2]=p*a[2],l[3]=m*a[3],l[4]=m*a[4],l[5]=m*a[5],l[6]=a[6],l[7]=a[7],l[8]=a[8],l},Ve.fromTranslation=function(l,a){return l[0]=1,l[1]=0,l[2]=0,l[3]=0,l[4]=1,l[5]=0,l[6]=a[0],l[7]=a[1],l[8]=1,l},Ve.fromRotation=function(l,a){var u=Math.sin(a),p=Math.cos(a);return l[0]=p,l[1]=u,l[2]=0,l[3]=-u,l[4]=p,l[5]=0,l[6]=0,l[7]=0,l[8]=1,l},Ve.fromScaling=function(l,a){return l[0]=a[0],l[1]=0,l[2]=0,l[3]=0,l[4]=a[1],l[5]=0,l[6]=0,l[7]=0,l[8]=1,l},Ve.fromMat2d=function(l,a){return l[0]=a[0],l[1]=a[1],l[2]=0,l[3]=a[2],l[4]=a[3],l[5]=0,l[6]=a[4],l[7]=a[5],l[8]=1,l},Ve.fromQuat=function(l,a){var u=a[0],p=a[1],m=a[2],_=a[3],b=u+u,S=p+p,I=m+m,M=u*b,N=p*b,P=p*S,V=m*b,H=m*S,Y=m*I,W=_*b,re=_*S,ue=_*I;return l[0]=1-P-Y,l[3]=N-ue,l[6]=V+re,l[1]=N+ue,l[4]=1-M-Y,l[7]=H-W,l[2]=V-re,l[5]=H+W,l[8]=1-M-P,l},Ve.normalFromMat4=function(l,a){var u=a[0],p=a[1],m=a[2],_=a[3],b=a[4],S=a[5],I=a[6],M=a[7],N=a[8],P=a[9],V=a[10],H=a[11],Y=a[12],W=a[13],re=a[14],ue=a[15],Te=u*S-p*b,Pe=u*I-m*b,De=u*M-_*b,tt=p*I-m*S,Ye=p*M-_*S,at=m*M-_*I,_t=N*W-P*Y,Mt=N*re-V*Y,Jt=N*ue-H*Y,Bt=P*re-V*W,si=P*ue-H*W,oi=V*ue-H*re,ei=Te*oi-Pe*si+De*Bt+tt*Jt-Ye*Mt+at*_t;return ei?(l[0]=(S*oi-I*si+M*Bt)*(ei=1/ei),l[1]=(I*Jt-b*oi-M*Mt)*ei,l[2]=(b*si-S*Jt+M*_t)*ei,l[3]=(m*si-p*oi-_*Bt)*ei,l[4]=(u*oi-m*Jt+_*Mt)*ei,l[5]=(p*Jt-u*si-_*_t)*ei,l[6]=(W*at-re*Ye+ue*tt)*ei,l[7]=(re*De-Y*at-ue*Pe)*ei,l[8]=(Y*Ye-W*De+ue*Te)*ei,l):null},Ve.projection=function(l,a,u){return l[0]=2/a,l[1]=0,l[2]=0,l[3]=0,l[4]=-2/u,l[5]=0,l[6]=-1,l[7]=1,l[8]=1,l},Ve.str=function(l){return"mat3("+l[0]+", "+l[1]+", "+l[2]+", "+l[3]+", "+l[4]+", "+l[5]+", "+l[6]+", "+l[7]+", "+l[8]+")"},Ve.frob=function(l){return Math.hypot(l[0],l[1],l[2],l[3],l[4],l[5],l[6],l[7],l[8])},Ve.add=function(l,a,u){return l[0]=a[0]+u[0],l[1]=a[1]+u[1],l[2]=a[2]+u[2],l[3]=a[3]+u[3],l[4]=a[4]+u[4],l[5]=a[5]+u[5],l[6]=a[6]+u[6],l[7]=a[7]+u[7],l[8]=a[8]+u[8],l},Ve.subtract=et,Ve.multiplyScalar=function(l,a,u){return l[0]=a[0]*u,l[1]=a[1]*u,l[2]=a[2]*u,l[3]=a[3]*u,l[4]=a[4]*u,l[5]=a[5]*u,l[6]=a[6]*u,l[7]=a[7]*u,l[8]=a[8]*u,l},Ve.multiplyScalarAndAdd=function(l,a,u,p){return l[0]=a[0]+u[0]*p,l[1]=a[1]+u[1]*p,l[2]=a[2]+u[2]*p,l[3]=a[3]+u[3]*p,l[4]=a[4]+u[4]*p,l[5]=a[5]+u[5]*p,l[6]=a[6]+u[6]*p,l[7]=a[7]+u[7]*p,l[8]=a[8]+u[8]*p,l},Ve.exactEquals=function(l,a){return l[0]===a[0]&&l[1]===a[1]&&l[2]===a[2]&&l[3]===a[3]&&l[4]===a[4]&&l[5]===a[5]&&l[6]===a[6]&&l[7]===a[7]&&l[8]===a[8]},Ve.equals=function(l,a){var u=l[0],p=l[1],m=l[2],_=l[3],b=l[4],S=l[5],I=l[6],M=l[7],N=l[8],P=a[0],V=a[1],H=a[2],Y=a[3],W=a[4],re=a[5],ue=a[6],Te=a[7],Pe=a[8];return Math.abs(u-P)<=Fe.EPSILON*Math.max(1,Math.abs(u),Math.abs(P))&&Math.abs(p-V)<=Fe.EPSILON*Math.max(1,Math.abs(p),Math.abs(V))&&Math.abs(m-H)<=Fe.EPSILON*Math.max(1,Math.abs(m),Math.abs(H))&&Math.abs(_-Y)<=Fe.EPSILON*Math.max(1,Math.abs(_),Math.abs(Y))&&Math.abs(b-W)<=Fe.EPSILON*Math.max(1,Math.abs(b),Math.abs(W))&&Math.abs(S-re)<=Fe.EPSILON*Math.max(1,Math.abs(S),Math.abs(re))&&Math.abs(I-ue)<=Fe.EPSILON*Math.max(1,Math.abs(I),Math.abs(ue))&&Math.abs(M-Te)<=Fe.EPSILON*Math.max(1,Math.abs(M),Math.abs(Te))&&Math.abs(N-Pe)<=Fe.EPSILON*Math.max(1,Math.abs(N),Math.abs(Pe))},Ve.sub=Ve.mul=void 0;var Fe=function(l,a){if(l&&l.__esModule)return l;if(l===null||$e(l)!=="object"&&typeof l!="function")return{default:l};var u=Xe(void 0);if(u&&u.has(l))return u.get(l);var p={},m=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var _ in l)if(_!=="default"&&Object.prototype.hasOwnProperty.call(l,_)){var b=m?Object.getOwnPropertyDescriptor(l,_):null;b&&(b.get||b.set)?Object.defineProperty(p,_,b):p[_]=l[_]}return p.default=l,u&&u.set(l,p),p}(j);function Xe(l){if(typeof WeakMap!="function")return null;var a=new WeakMap,u=new WeakMap;return(Xe=function(p){return p?u:a})(l)}function ze(l,a,u){var p=a[0],m=a[1],_=a[2],b=a[3],S=a[4],I=a[5],M=a[6],N=a[7],P=a[8],V=u[0],H=u[1],Y=u[2],W=u[3],re=u[4],ue=u[5],Te=u[6],Pe=u[7],De=u[8];return l[0]=V*p+H*b+Y*M,l[1]=V*m+H*S+Y*N,l[2]=V*_+H*I+Y*P,l[3]=W*p+re*b+ue*M,l[4]=W*m+re*S+ue*N,l[5]=W*_+re*I+ue*P,l[6]=Te*p+Pe*b+De*M,l[7]=Te*m+Pe*S+De*N,l[8]=Te*_+Pe*I+De*P,l}function et(l,a,u){return l[0]=a[0]-u[0],l[1]=a[1]-u[1],l[2]=a[2]-u[2],l[3]=a[3]-u[3],l[4]=a[4]-u[4],l[5]=a[5]-u[5],l[6]=a[6]-u[6],l[7]=a[7]-u[7],l[8]=a[8]-u[8],l}Ve.mul=ze,Ve.sub=et;var Pt={};function Ii(l){return Ii=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},Ii(l)}Object.defineProperty(Pt,"__esModule",{value:!0}),Pt.create=function(){var l=new Gt.ARRAY_TYPE(16);return Gt.ARRAY_TYPE!=Float32Array&&(l[1]=0,l[2]=0,l[3]=0,l[4]=0,l[6]=0,l[7]=0,l[8]=0,l[9]=0,l[11]=0,l[12]=0,l[13]=0,l[14]=0),l[0]=1,l[5]=1,l[10]=1,l[15]=1,l},Pt.clone=function(l){var a=new Gt.ARRAY_TYPE(16);return a[0]=l[0],a[1]=l[1],a[2]=l[2],a[3]=l[3],a[4]=l[4],a[5]=l[5],a[6]=l[6],a[7]=l[7],a[8]=l[8],a[9]=l[9],a[10]=l[10],a[11]=l[11],a[12]=l[12],a[13]=l[13],a[14]=l[14],a[15]=l[15],a},Pt.copy=function(l,a){return l[0]=a[0],l[1]=a[1],l[2]=a[2],l[3]=a[3],l[4]=a[4],l[5]=a[5],l[6]=a[6],l[7]=a[7],l[8]=a[8],l[9]=a[9],l[10]=a[10],l[11]=a[11],l[12]=a[12],l[13]=a[13],l[14]=a[14],l[15]=a[15],l},Pt.fromValues=function(l,a,u,p,m,_,b,S,I,M,N,P,V,H,Y,W){var re=new Gt.ARRAY_TYPE(16);return re[0]=l,re[1]=a,re[2]=u,re[3]=p,re[4]=m,re[5]=_,re[6]=b,re[7]=S,re[8]=I,re[9]=M,re[10]=N,re[11]=P,re[12]=V,re[13]=H,re[14]=Y,re[15]=W,re},Pt.set=function(l,a,u,p,m,_,b,S,I,M,N,P,V,H,Y,W,re){return l[0]=a,l[1]=u,l[2]=p,l[3]=m,l[4]=_,l[5]=b,l[6]=S,l[7]=I,l[8]=M,l[9]=N,l[10]=P,l[11]=V,l[12]=H,l[13]=Y,l[14]=W,l[15]=re,l},Pt.identity=an,Pt.transpose=function(l,a){if(l===a){var u=a[1],p=a[2],m=a[3],_=a[6],b=a[7],S=a[11];l[1]=a[4],l[2]=a[8],l[3]=a[12],l[4]=u,l[6]=a[9],l[7]=a[13],l[8]=p,l[9]=_,l[11]=a[14],l[12]=m,l[13]=b,l[14]=S}else l[0]=a[0],l[1]=a[4],l[2]=a[8],l[3]=a[12],l[4]=a[1],l[5]=a[5],l[6]=a[9],l[7]=a[13],l[8]=a[2],l[9]=a[6],l[10]=a[10],l[11]=a[14],l[12]=a[3],l[13]=a[7],l[14]=a[11],l[15]=a[15];return l},Pt.invert=function(l,a){var u=a[0],p=a[1],m=a[2],_=a[3],b=a[4],S=a[5],I=a[6],M=a[7],N=a[8],P=a[9],V=a[10],H=a[11],Y=a[12],W=a[13],re=a[14],ue=a[15],Te=u*S-p*b,Pe=u*I-m*b,De=u*M-_*b,tt=p*I-m*S,Ye=p*M-_*S,at=m*M-_*I,_t=N*W-P*Y,Mt=N*re-V*Y,Jt=N*ue-H*Y,Bt=P*re-V*W,si=P*ue-H*W,oi=V*ue-H*re,ei=Te*oi-Pe*si+De*Bt+tt*Jt-Ye*Mt+at*_t;return ei?(l[0]=(S*oi-I*si+M*Bt)*(ei=1/ei),l[1]=(m*si-p*oi-_*Bt)*ei,l[2]=(W*at-re*Ye+ue*tt)*ei,l[3]=(V*Ye-P*at-H*tt)*ei,l[4]=(I*Jt-b*oi-M*Mt)*ei,l[5]=(u*oi-m*Jt+_*Mt)*ei,l[6]=(re*De-Y*at-ue*Pe)*ei,l[7]=(N*at-V*De+H*Pe)*ei,l[8]=(b*si-S*Jt+M*_t)*ei,l[9]=(p*Jt-u*si-_*_t)*ei,l[10]=(Y*Ye-W*De+ue*Te)*ei,l[11]=(P*De-N*Ye-H*Te)*ei,l[12]=(S*Mt-b*Bt-I*_t)*ei,l[13]=(u*Bt-p*Mt+m*_t)*ei,l[14]=(W*Pe-Y*tt-re*Te)*ei,l[15]=(N*tt-P*Pe+V*Te)*ei,l):null},Pt.adjoint=function(l,a){var u=a[0],p=a[1],m=a[2],_=a[3],b=a[4],S=a[5],I=a[6],M=a[7],N=a[8],P=a[9],V=a[10],H=a[11],Y=a[12],W=a[13],re=a[14],ue=a[15];return l[0]=S*(V*ue-H*re)-P*(I*ue-M*re)+W*(I*H-M*V),l[1]=-(p*(V*ue-H*re)-P*(m*ue-_*re)+W*(m*H-_*V)),l[2]=p*(I*ue-M*re)-S*(m*ue-_*re)+W*(m*M-_*I),l[3]=-(p*(I*H-M*V)-S*(m*H-_*V)+P*(m*M-_*I)),l[4]=-(b*(V*ue-H*re)-N*(I*ue-M*re)+Y*(I*H-M*V)),l[5]=u*(V*ue-H*re)-N*(m*ue-_*re)+Y*(m*H-_*V),l[6]=-(u*(I*ue-M*re)-b*(m*ue-_*re)+Y*(m*M-_*I)),l[7]=u*(I*H-M*V)-b*(m*H-_*V)+N*(m*M-_*I),l[8]=b*(P*ue-H*W)-N*(S*ue-M*W)+Y*(S*H-M*P),l[9]=-(u*(P*ue-H*W)-N*(p*ue-_*W)+Y*(p*H-_*P)),l[10]=u*(S*ue-M*W)-b*(p*ue-_*W)+Y*(p*M-_*S),l[11]=-(u*(S*H-M*P)-b*(p*H-_*P)+N*(p*M-_*S)),l[12]=-(b*(P*re-V*W)-N*(S*re-I*W)+Y*(S*V-I*P)),l[13]=u*(P*re-V*W)-N*(p*re-m*W)+Y*(p*V-m*P),l[14]=-(u*(S*re-I*W)-b*(p*re-m*W)+Y*(p*I-m*S)),l[15]=u*(S*V-I*P)-b*(p*V-m*P)+N*(p*I-m*S),l},Pt.determinant=function(l){var a=l[0],u=l[1],p=l[2],m=l[3],_=l[4],b=l[5],S=l[6],I=l[7],M=l[8],N=l[9],P=l[10],V=l[11],H=l[12],Y=l[13],W=l[14],re=l[15];return(a*b-u*_)*(P*re-V*W)-(a*S-p*_)*(N*re-V*Y)+(a*I-m*_)*(N*W-P*Y)+(u*S-p*b)*(M*re-V*H)-(u*I-m*b)*(M*W-P*H)+(p*I-m*S)*(M*Y-N*H)},Pt.multiply=en,Pt.translate=function(l,a,u){var p,m,_,b,S,I,M,N,P,V,H,Y,W=u[0],re=u[1],ue=u[2];return a===l?(l[12]=a[0]*W+a[4]*re+a[8]*ue+a[12],l[13]=a[1]*W+a[5]*re+a[9]*ue+a[13],l[14]=a[2]*W+a[6]*re+a[10]*ue+a[14],l[15]=a[3]*W+a[7]*re+a[11]*ue+a[15]):(m=a[1],_=a[2],b=a[3],S=a[4],I=a[5],M=a[6],N=a[7],P=a[8],V=a[9],H=a[10],Y=a[11],l[0]=p=a[0],l[1]=m,l[2]=_,l[3]=b,l[4]=S,l[5]=I,l[6]=M,l[7]=N,l[8]=P,l[9]=V,l[10]=H,l[11]=Y,l[12]=p*W+S*re+P*ue+a[12],l[13]=m*W+I*re+V*ue+a[13],l[14]=_*W+M*re+H*ue+a[14],l[15]=b*W+N*re+Y*ue+a[15]),l},Pt.scale=function(l,a,u){var p=u[0],m=u[1],_=u[2];return l[0]=a[0]*p,l[1]=a[1]*p,l[2]=a[2]*p,l[3]=a[3]*p,l[4]=a[4]*m,l[5]=a[5]*m,l[6]=a[6]*m,l[7]=a[7]*m,l[8]=a[8]*_,l[9]=a[9]*_,l[10]=a[10]*_,l[11]=a[11]*_,l[12]=a[12],l[13]=a[13],l[14]=a[14],l[15]=a[15],l},Pt.rotate=function(l,a,u,p){var m,_,b,S,I,M,N,P,V,H,Y,W,re,ue,Te,Pe,De,tt,Ye,at,_t,Mt,Jt,Bt,si=p[0],oi=p[1],ei=p[2],wi=Math.hypot(si,oi,ei);return wi0?(u[0]=2*(S*b+N*p+I*_-M*m)/P,u[1]=2*(I*b+N*m+M*p-S*_)/P,u[2]=2*(M*b+N*_+S*m-I*p)/P):(u[0]=2*(S*b+N*p+I*_-M*m),u[1]=2*(I*b+N*m+M*p-S*_),u[2]=2*(M*b+N*_+S*m-I*p)),ir(l,a,u),l},Pt.getTranslation=function(l,a){return l[0]=a[12],l[1]=a[13],l[2]=a[14],l},Pt.getScaling=ve,Pt.getRotation=function(l,a){var u=new Gt.ARRAY_TYPE(3);ve(u,a);var p=1/u[0],m=1/u[1],_=1/u[2],b=a[0]*p,S=a[1]*m,I=a[2]*_,M=a[4]*p,N=a[5]*m,P=a[6]*_,V=a[8]*p,H=a[9]*m,Y=a[10]*_,W=b+N+Y,re=0;return W>0?(re=2*Math.sqrt(W+1),l[3]=.25*re,l[0]=(P-H)/re,l[1]=(V-I)/re,l[2]=(S-M)/re):b>N&&b>Y?(re=2*Math.sqrt(1+b-N-Y),l[3]=(P-H)/re,l[0]=.25*re,l[1]=(S+M)/re,l[2]=(V+I)/re):N>Y?(re=2*Math.sqrt(1+N-b-Y),l[3]=(V-I)/re,l[0]=(S+M)/re,l[1]=.25*re,l[2]=(P+H)/re):(re=2*Math.sqrt(1+Y-b-N),l[3]=(S-M)/re,l[0]=(V+I)/re,l[1]=(P+H)/re,l[2]=.25*re),l},Pt.fromRotationTranslationScale=function(l,a,u,p){var m=a[0],_=a[1],b=a[2],S=a[3],I=m+m,M=_+_,N=b+b,P=m*I,V=m*M,H=m*N,Y=_*M,W=_*N,re=b*N,ue=S*I,Te=S*M,Pe=S*N,De=p[0],tt=p[1],Ye=p[2];return l[0]=(1-(Y+re))*De,l[1]=(V+Pe)*De,l[2]=(H-Te)*De,l[3]=0,l[4]=(V-Pe)*tt,l[5]=(1-(P+re))*tt,l[6]=(W+ue)*tt,l[7]=0,l[8]=(H+Te)*Ye,l[9]=(W-ue)*Ye,l[10]=(1-(P+Y))*Ye,l[11]=0,l[12]=u[0],l[13]=u[1],l[14]=u[2],l[15]=1,l},Pt.fromRotationTranslationScaleOrigin=function(l,a,u,p,m){var _=a[0],b=a[1],S=a[2],I=a[3],M=_+_,N=b+b,P=S+S,V=_*M,H=_*N,Y=_*P,W=b*N,re=b*P,ue=S*P,Te=I*M,Pe=I*N,De=I*P,tt=p[0],Ye=p[1],at=p[2],_t=m[0],Mt=m[1],Jt=m[2],Bt=(1-(W+ue))*tt,si=(H+De)*tt,oi=(Y-Pe)*tt,ei=(H-De)*Ye,wi=(1-(V+ue))*Ye,vi=(re+Te)*Ye,Ti=(Y+Pe)*at,Ei=(re-Te)*at,ci=(1-(V+W))*at;return l[0]=Bt,l[1]=si,l[2]=oi,l[3]=0,l[4]=ei,l[5]=wi,l[6]=vi,l[7]=0,l[8]=Ti,l[9]=Ei,l[10]=ci,l[11]=0,l[12]=u[0]+_t-(Bt*_t+ei*Mt+Ti*Jt),l[13]=u[1]+Mt-(si*_t+wi*Mt+Ei*Jt),l[14]=u[2]+Jt-(oi*_t+vi*Mt+ci*Jt),l[15]=1,l},Pt.fromQuat=function(l,a){var u=a[0],p=a[1],m=a[2],_=a[3],b=u+u,S=p+p,I=m+m,M=u*b,N=p*b,P=p*S,V=m*b,H=m*S,Y=m*I,W=_*b,re=_*S,ue=_*I;return l[0]=1-P-Y,l[1]=N+ue,l[2]=V-re,l[3]=0,l[4]=N-ue,l[5]=1-M-Y,l[6]=H+W,l[7]=0,l[8]=V+re,l[9]=H-W,l[10]=1-M-P,l[11]=0,l[12]=0,l[13]=0,l[14]=0,l[15]=1,l},Pt.frustum=function(l,a,u,p,m,_,b){var S=1/(u-a),I=1/(m-p),M=1/(_-b);return l[0]=2*_*S,l[1]=0,l[2]=0,l[3]=0,l[4]=0,l[5]=2*_*I,l[6]=0,l[7]=0,l[8]=(u+a)*S,l[9]=(m+p)*I,l[10]=(b+_)*M,l[11]=-1,l[12]=0,l[13]=0,l[14]=b*_*2*M,l[15]=0,l},Pt.perspectiveNO=Qt,Pt.perspectiveZO=function(l,a,u,p,m){var _,b=1/Math.tan(a/2);return l[0]=b/u,l[1]=0,l[2]=0,l[3]=0,l[4]=0,l[5]=b,l[6]=0,l[7]=0,l[8]=0,l[9]=0,l[11]=-1,l[12]=0,l[13]=0,l[15]=0,m!=null&&m!==1/0?(l[10]=m*(_=1/(p-m)),l[14]=m*p*_):(l[10]=-1,l[14]=-p),l},Pt.perspectiveFromFieldOfView=function(l,a,u,p){var m=Math.tan(a.upDegrees*Math.PI/180),_=Math.tan(a.downDegrees*Math.PI/180),b=Math.tan(a.leftDegrees*Math.PI/180),S=Math.tan(a.rightDegrees*Math.PI/180),I=2/(b+S),M=2/(m+_);return l[0]=I,l[1]=0,l[2]=0,l[3]=0,l[4]=0,l[5]=M,l[6]=0,l[7]=0,l[8]=-(b-S)*I*.5,l[9]=(m-_)*M*.5,l[10]=p/(u-p),l[11]=-1,l[12]=0,l[13]=0,l[14]=p*u/(u-p),l[15]=0,l},Pt.orthoNO=Rt,Pt.orthoZO=function(l,a,u,p,m,_,b){var S=1/(a-u),I=1/(p-m),M=1/(_-b);return l[0]=-2*S,l[1]=0,l[2]=0,l[3]=0,l[4]=0,l[5]=-2*I,l[6]=0,l[7]=0,l[8]=0,l[9]=0,l[10]=M,l[11]=0,l[12]=(a+u)*S,l[13]=(m+p)*I,l[14]=_*M,l[15]=1,l},Pt.lookAt=function(l,a,u,p){var m,_,b,S,I,M,N,P,V,H,Y=a[0],W=a[1],re=a[2],ue=p[0],Te=p[1],Pe=p[2],De=u[0],tt=u[1],Ye=u[2];return Math.abs(Y-De)0&&(N*=H=1/Math.sqrt(H),P*=H,V*=H);var Y=I*V-M*P,W=M*N-S*V,re=S*P-I*N;return(H=Y*Y+W*W+re*re)>0&&(Y*=H=1/Math.sqrt(H),W*=H,re*=H),l[0]=Y,l[1]=W,l[2]=re,l[3]=0,l[4]=P*re-V*W,l[5]=V*Y-N*re,l[6]=N*W-P*Y,l[7]=0,l[8]=N,l[9]=P,l[10]=V,l[11]=0,l[12]=m,l[13]=_,l[14]=b,l[15]=1,l},Pt.str=function(l){return"mat4("+l[0]+", "+l[1]+", "+l[2]+", "+l[3]+", "+l[4]+", "+l[5]+", "+l[6]+", "+l[7]+", "+l[8]+", "+l[9]+", "+l[10]+", "+l[11]+", "+l[12]+", "+l[13]+", "+l[14]+", "+l[15]+")"},Pt.frob=function(l){return Math.hypot(l[0],l[1],l[2],l[3],l[4],l[5],l[6],l[7],l[8],l[9],l[10],l[11],l[12],l[13],l[14],l[15])},Pt.add=function(l,a,u){return l[0]=a[0]+u[0],l[1]=a[1]+u[1],l[2]=a[2]+u[2],l[3]=a[3]+u[3],l[4]=a[4]+u[4],l[5]=a[5]+u[5],l[6]=a[6]+u[6],l[7]=a[7]+u[7],l[8]=a[8]+u[8],l[9]=a[9]+u[9],l[10]=a[10]+u[10],l[11]=a[11]+u[11],l[12]=a[12]+u[12],l[13]=a[13]+u[13],l[14]=a[14]+u[14],l[15]=a[15]+u[15],l},Pt.subtract=nt,Pt.multiplyScalar=function(l,a,u){return l[0]=a[0]*u,l[1]=a[1]*u,l[2]=a[2]*u,l[3]=a[3]*u,l[4]=a[4]*u,l[5]=a[5]*u,l[6]=a[6]*u,l[7]=a[7]*u,l[8]=a[8]*u,l[9]=a[9]*u,l[10]=a[10]*u,l[11]=a[11]*u,l[12]=a[12]*u,l[13]=a[13]*u,l[14]=a[14]*u,l[15]=a[15]*u,l},Pt.multiplyScalarAndAdd=function(l,a,u,p){return l[0]=a[0]+u[0]*p,l[1]=a[1]+u[1]*p,l[2]=a[2]+u[2]*p,l[3]=a[3]+u[3]*p,l[4]=a[4]+u[4]*p,l[5]=a[5]+u[5]*p,l[6]=a[6]+u[6]*p,l[7]=a[7]+u[7]*p,l[8]=a[8]+u[8]*p,l[9]=a[9]+u[9]*p,l[10]=a[10]+u[10]*p,l[11]=a[11]+u[11]*p,l[12]=a[12]+u[12]*p,l[13]=a[13]+u[13]*p,l[14]=a[14]+u[14]*p,l[15]=a[15]+u[15]*p,l},Pt.exactEquals=function(l,a){return l[0]===a[0]&&l[1]===a[1]&&l[2]===a[2]&&l[3]===a[3]&&l[4]===a[4]&&l[5]===a[5]&&l[6]===a[6]&&l[7]===a[7]&&l[8]===a[8]&&l[9]===a[9]&&l[10]===a[10]&&l[11]===a[11]&&l[12]===a[12]&&l[13]===a[13]&&l[14]===a[14]&&l[15]===a[15]},Pt.equals=function(l,a){var u=l[0],p=l[1],m=l[2],_=l[3],b=l[4],S=l[5],I=l[6],M=l[7],N=l[8],P=l[9],V=l[10],H=l[11],Y=l[12],W=l[13],re=l[14],ue=l[15],Te=a[0],Pe=a[1],De=a[2],tt=a[3],Ye=a[4],at=a[5],_t=a[6],Mt=a[7],Jt=a[8],Bt=a[9],si=a[10],oi=a[11],ei=a[12],wi=a[13],vi=a[14],Ti=a[15];return Math.abs(u-Te)<=Gt.EPSILON*Math.max(1,Math.abs(u),Math.abs(Te))&&Math.abs(p-Pe)<=Gt.EPSILON*Math.max(1,Math.abs(p),Math.abs(Pe))&&Math.abs(m-De)<=Gt.EPSILON*Math.max(1,Math.abs(m),Math.abs(De))&&Math.abs(_-tt)<=Gt.EPSILON*Math.max(1,Math.abs(_),Math.abs(tt))&&Math.abs(b-Ye)<=Gt.EPSILON*Math.max(1,Math.abs(b),Math.abs(Ye))&&Math.abs(S-at)<=Gt.EPSILON*Math.max(1,Math.abs(S),Math.abs(at))&&Math.abs(I-_t)<=Gt.EPSILON*Math.max(1,Math.abs(I),Math.abs(_t))&&Math.abs(M-Mt)<=Gt.EPSILON*Math.max(1,Math.abs(M),Math.abs(Mt))&&Math.abs(N-Jt)<=Gt.EPSILON*Math.max(1,Math.abs(N),Math.abs(Jt))&&Math.abs(P-Bt)<=Gt.EPSILON*Math.max(1,Math.abs(P),Math.abs(Bt))&&Math.abs(V-si)<=Gt.EPSILON*Math.max(1,Math.abs(V),Math.abs(si))&&Math.abs(H-oi)<=Gt.EPSILON*Math.max(1,Math.abs(H),Math.abs(oi))&&Math.abs(Y-ei)<=Gt.EPSILON*Math.max(1,Math.abs(Y),Math.abs(ei))&&Math.abs(W-wi)<=Gt.EPSILON*Math.max(1,Math.abs(W),Math.abs(wi))&&Math.abs(re-vi)<=Gt.EPSILON*Math.max(1,Math.abs(re),Math.abs(vi))&&Math.abs(ue-Ti)<=Gt.EPSILON*Math.max(1,Math.abs(ue),Math.abs(Ti))},Pt.sub=Pt.mul=Pt.ortho=Pt.perspective=void 0;var Gt=function(l,a){if(l&&l.__esModule)return l;if(l===null||Ii(l)!=="object"&&typeof l!="function")return{default:l};var u=ji(void 0);if(u&&u.has(l))return u.get(l);var p={},m=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var _ in l)if(_!=="default"&&Object.prototype.hasOwnProperty.call(l,_)){var b=m?Object.getOwnPropertyDescriptor(l,_):null;b&&(b.get||b.set)?Object.defineProperty(p,_,b):p[_]=l[_]}return p.default=l,u&&u.set(l,p),p}(j);function ji(l){if(typeof WeakMap!="function")return null;var a=new WeakMap,u=new WeakMap;return(ji=function(p){return p?u:a})(l)}function an(l){return l[0]=1,l[1]=0,l[2]=0,l[3]=0,l[4]=0,l[5]=1,l[6]=0,l[7]=0,l[8]=0,l[9]=0,l[10]=1,l[11]=0,l[12]=0,l[13]=0,l[14]=0,l[15]=1,l}function en(l,a,u){var p=a[0],m=a[1],_=a[2],b=a[3],S=a[4],I=a[5],M=a[6],N=a[7],P=a[8],V=a[9],H=a[10],Y=a[11],W=a[12],re=a[13],ue=a[14],Te=a[15],Pe=u[0],De=u[1],tt=u[2],Ye=u[3];return l[0]=Pe*p+De*S+tt*P+Ye*W,l[1]=Pe*m+De*I+tt*V+Ye*re,l[2]=Pe*_+De*M+tt*H+Ye*ue,l[3]=Pe*b+De*N+tt*Y+Ye*Te,l[4]=(Pe=u[4])*p+(De=u[5])*S+(tt=u[6])*P+(Ye=u[7])*W,l[5]=Pe*m+De*I+tt*V+Ye*re,l[6]=Pe*_+De*M+tt*H+Ye*ue,l[7]=Pe*b+De*N+tt*Y+Ye*Te,l[8]=(Pe=u[8])*p+(De=u[9])*S+(tt=u[10])*P+(Ye=u[11])*W,l[9]=Pe*m+De*I+tt*V+Ye*re,l[10]=Pe*_+De*M+tt*H+Ye*ue,l[11]=Pe*b+De*N+tt*Y+Ye*Te,l[12]=(Pe=u[12])*p+(De=u[13])*S+(tt=u[14])*P+(Ye=u[15])*W,l[13]=Pe*m+De*I+tt*V+Ye*re,l[14]=Pe*_+De*M+tt*H+Ye*ue,l[15]=Pe*b+De*N+tt*Y+Ye*Te,l}function ir(l,a,u){var p=a[0],m=a[1],_=a[2],b=a[3],S=p+p,I=m+m,M=_+_,N=p*S,P=p*I,V=p*M,H=m*I,Y=m*M,W=_*M,re=b*S,ue=b*I,Te=b*M;return l[0]=1-(H+W),l[1]=P+Te,l[2]=V-ue,l[3]=0,l[4]=P-Te,l[5]=1-(N+W),l[6]=Y+re,l[7]=0,l[8]=V+ue,l[9]=Y-re,l[10]=1-(N+H),l[11]=0,l[12]=u[0],l[13]=u[1],l[14]=u[2],l[15]=1,l}function ve(l,a){var u=a[4],p=a[5],m=a[6],_=a[8],b=a[9],S=a[10];return l[0]=Math.hypot(a[0],a[1],a[2]),l[1]=Math.hypot(u,p,m),l[2]=Math.hypot(_,b,S),l}function Qt(l,a,u,p,m){var _,b=1/Math.tan(a/2);return l[0]=b/u,l[1]=0,l[2]=0,l[3]=0,l[4]=0,l[5]=b,l[6]=0,l[7]=0,l[8]=0,l[9]=0,l[11]=-1,l[12]=0,l[13]=0,l[15]=0,m!=null&&m!==1/0?(l[10]=(m+p)*(_=1/(p-m)),l[14]=2*m*p*_):(l[10]=-1,l[14]=-2*p),l}function Rt(l,a,u,p,m,_,b){var S=1/(a-u),I=1/(p-m),M=1/(_-b);return l[0]=-2*S,l[1]=0,l[2]=0,l[3]=0,l[4]=0,l[5]=-2*I,l[6]=0,l[7]=0,l[8]=0,l[9]=0,l[10]=2*M,l[11]=0,l[12]=(a+u)*S,l[13]=(m+p)*I,l[14]=(b+_)*M,l[15]=1,l}function nt(l,a,u){return l[0]=a[0]-u[0],l[1]=a[1]-u[1],l[2]=a[2]-u[2],l[3]=a[3]-u[3],l[4]=a[4]-u[4],l[5]=a[5]-u[5],l[6]=a[6]-u[6],l[7]=a[7]-u[7],l[8]=a[8]-u[8],l[9]=a[9]-u[9],l[10]=a[10]-u[10],l[11]=a[11]-u[11],l[12]=a[12]-u[12],l[13]=a[13]-u[13],l[14]=a[14]-u[14],l[15]=a[15]-u[15],l}Pt.perspective=Qt,Pt.ortho=Rt,Pt.mul=en,Pt.sub=nt;var xe={},Qe={};function Xt(l){return Xt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},Xt(l)}Object.defineProperty(Qe,"__esModule",{value:!0}),Qe.create=ge,Qe.clone=function(l){var a=new Ut.ARRAY_TYPE(3);return a[0]=l[0],a[1]=l[1],a[2]=l[2],a},Qe.length=de,Qe.fromValues=function(l,a,u){var p=new Ut.ARRAY_TYPE(3);return p[0]=l,p[1]=a,p[2]=u,p},Qe.copy=function(l,a){return l[0]=a[0],l[1]=a[1],l[2]=a[2],l},Qe.set=function(l,a,u,p){return l[0]=a,l[1]=u,l[2]=p,l},Qe.add=function(l,a,u){return l[0]=a[0]+u[0],l[1]=a[1]+u[1],l[2]=a[2]+u[2],l},Qe.subtract=we,Qe.multiply=Je,Qe.divide=rt,Qe.ceil=function(l,a){return l[0]=Math.ceil(a[0]),l[1]=Math.ceil(a[1]),l[2]=Math.ceil(a[2]),l},Qe.floor=function(l,a){return l[0]=Math.floor(a[0]),l[1]=Math.floor(a[1]),l[2]=Math.floor(a[2]),l},Qe.min=function(l,a,u){return l[0]=Math.min(a[0],u[0]),l[1]=Math.min(a[1],u[1]),l[2]=Math.min(a[2],u[2]),l},Qe.max=function(l,a,u){return l[0]=Math.max(a[0],u[0]),l[1]=Math.max(a[1],u[1]),l[2]=Math.max(a[2],u[2]),l},Qe.round=function(l,a){return l[0]=Math.round(a[0]),l[1]=Math.round(a[1]),l[2]=Math.round(a[2]),l},Qe.scale=function(l,a,u){return l[0]=a[0]*u,l[1]=a[1]*u,l[2]=a[2]*u,l},Qe.scaleAndAdd=function(l,a,u,p){return l[0]=a[0]+u[0]*p,l[1]=a[1]+u[1]*p,l[2]=a[2]+u[2]*p,l},Qe.distance=vt,Qe.squaredDistance=ti,Qe.squaredLength=Tt,Qe.negate=function(l,a){return l[0]=-a[0],l[1]=-a[1],l[2]=-a[2],l},Qe.inverse=function(l,a){return l[0]=1/a[0],l[1]=1/a[1],l[2]=1/a[2],l},Qe.normalize=function(l,a){var u=a[0],p=a[1],m=a[2],_=u*u+p*p+m*m;return _>0&&(_=1/Math.sqrt(_)),l[0]=a[0]*_,l[1]=a[1]*_,l[2]=a[2]*_,l},Qe.dot=di,Qe.cross=function(l,a,u){var p=a[0],m=a[1],_=a[2],b=u[0],S=u[1],I=u[2];return l[0]=m*I-_*S,l[1]=_*b-p*I,l[2]=p*S-m*b,l},Qe.lerp=function(l,a,u,p){var m=a[0],_=a[1],b=a[2];return l[0]=m+p*(u[0]-m),l[1]=_+p*(u[1]-_),l[2]=b+p*(u[2]-b),l},Qe.hermite=function(l,a,u,p,m,_){var b=_*_,S=b*(2*_-3)+1,I=b*(_-2)+_,M=b*(_-1),N=b*(3-2*_);return l[0]=a[0]*S+u[0]*I+p[0]*M+m[0]*N,l[1]=a[1]*S+u[1]*I+p[1]*M+m[1]*N,l[2]=a[2]*S+u[2]*I+p[2]*M+m[2]*N,l},Qe.bezier=function(l,a,u,p,m,_){var b=1-_,S=b*b,I=_*_,M=S*b,N=3*_*S,P=3*I*b,V=I*_;return l[0]=a[0]*M+u[0]*N+p[0]*P+m[0]*V,l[1]=a[1]*M+u[1]*N+p[1]*P+m[1]*V,l[2]=a[2]*M+u[2]*N+p[2]*P+m[2]*V,l},Qe.random=function(l,a){a=a||1;var u=2*Ut.RANDOM()*Math.PI,p=2*Ut.RANDOM()-1,m=Math.sqrt(1-p*p)*a;return l[0]=Math.cos(u)*m,l[1]=Math.sin(u)*m,l[2]=p*a,l},Qe.transformMat4=function(l,a,u){var p=a[0],m=a[1],_=a[2],b=u[3]*p+u[7]*m+u[11]*_+u[15];return l[0]=(u[0]*p+u[4]*m+u[8]*_+u[12])/(b=b||1),l[1]=(u[1]*p+u[5]*m+u[9]*_+u[13])/b,l[2]=(u[2]*p+u[6]*m+u[10]*_+u[14])/b,l},Qe.transformMat3=function(l,a,u){var p=a[0],m=a[1],_=a[2];return l[0]=p*u[0]+m*u[3]+_*u[6],l[1]=p*u[1]+m*u[4]+_*u[7],l[2]=p*u[2]+m*u[5]+_*u[8],l},Qe.transformQuat=function(l,a,u){var p=u[0],m=u[1],_=u[2],b=a[0],S=a[1],I=a[2],M=m*I-_*S,N=_*b-p*I,P=p*S-m*b,V=m*P-_*N,H=_*M-p*P,Y=p*N-m*M,W=2*u[3];return N*=W,P*=W,H*=2,Y*=2,l[0]=b+(M*=W)+(V*=2),l[1]=S+N+H,l[2]=I+P+Y,l},Qe.rotateX=function(l,a,u,p){var m=[],_=[];return m[0]=a[0]-u[0],m[1]=a[1]-u[1],m[2]=a[2]-u[2],_[0]=m[0],_[1]=m[1]*Math.cos(p)-m[2]*Math.sin(p),_[2]=m[1]*Math.sin(p)+m[2]*Math.cos(p),l[0]=_[0]+u[0],l[1]=_[1]+u[1],l[2]=_[2]+u[2],l},Qe.rotateY=function(l,a,u,p){var m=[],_=[];return m[0]=a[0]-u[0],m[1]=a[1]-u[1],m[2]=a[2]-u[2],_[0]=m[2]*Math.sin(p)+m[0]*Math.cos(p),_[1]=m[1],_[2]=m[2]*Math.cos(p)-m[0]*Math.sin(p),l[0]=_[0]+u[0],l[1]=_[1]+u[1],l[2]=_[2]+u[2],l},Qe.rotateZ=function(l,a,u,p){var m=[],_=[];return m[0]=a[0]-u[0],m[1]=a[1]-u[1],m[2]=a[2]-u[2],_[0]=m[0]*Math.cos(p)-m[1]*Math.sin(p),_[1]=m[0]*Math.sin(p)+m[1]*Math.cos(p),_[2]=m[2],l[0]=_[0]+u[0],l[1]=_[1]+u[1],l[2]=_[2]+u[2],l},Qe.angle=function(l,a){var u=l[0],p=l[1],m=l[2],_=a[0],b=a[1],S=a[2],I=Math.sqrt(u*u+p*p+m*m)*Math.sqrt(_*_+b*b+S*S),M=I&&di(l,a)/I;return Math.acos(Math.min(Math.max(M,-1),1))},Qe.zero=function(l){return l[0]=0,l[1]=0,l[2]=0,l},Qe.str=function(l){return"vec3("+l[0]+", "+l[1]+", "+l[2]+")"},Qe.exactEquals=function(l,a){return l[0]===a[0]&&l[1]===a[1]&&l[2]===a[2]},Qe.equals=function(l,a){var u=l[0],p=l[1],m=l[2],_=a[0],b=a[1],S=a[2];return Math.abs(u-_)<=Ut.EPSILON*Math.max(1,Math.abs(u),Math.abs(_))&&Math.abs(p-b)<=Ut.EPSILON*Math.max(1,Math.abs(p),Math.abs(b))&&Math.abs(m-S)<=Ut.EPSILON*Math.max(1,Math.abs(m),Math.abs(S))},Qe.forEach=Qe.sqrLen=Qe.len=Qe.sqrDist=Qe.dist=Qe.div=Qe.mul=Qe.sub=void 0;var Ut=function(l,a){if(l&&l.__esModule)return l;if(l===null||Xt(l)!=="object"&&typeof l!="function")return{default:l};var u=qe(void 0);if(u&&u.has(l))return u.get(l);var p={},m=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var _ in l)if(_!=="default"&&Object.prototype.hasOwnProperty.call(l,_)){var b=m?Object.getOwnPropertyDescriptor(l,_):null;b&&(b.get||b.set)?Object.defineProperty(p,_,b):p[_]=l[_]}return p.default=l,u&&u.set(l,p),p}(j);function qe(l){if(typeof WeakMap!="function")return null;var a=new WeakMap,u=new WeakMap;return(qe=function(p){return p?u:a})(l)}function ge(){var l=new Ut.ARRAY_TYPE(3);return Ut.ARRAY_TYPE!=Float32Array&&(l[0]=0,l[1]=0,l[2]=0),l}function de(l){return Math.hypot(l[0],l[1],l[2])}function we(l,a,u){return l[0]=a[0]-u[0],l[1]=a[1]-u[1],l[2]=a[2]-u[2],l}function Je(l,a,u){return l[0]=a[0]*u[0],l[1]=a[1]*u[1],l[2]=a[2]*u[2],l}function rt(l,a,u){return l[0]=a[0]/u[0],l[1]=a[1]/u[1],l[2]=a[2]/u[2],l}function vt(l,a){return Math.hypot(a[0]-l[0],a[1]-l[1],a[2]-l[2])}function ti(l,a){var u=a[0]-l[0],p=a[1]-l[1],m=a[2]-l[2];return u*u+p*p+m*m}function Tt(l){var a=l[0],u=l[1],p=l[2];return a*a+u*u+p*p}function di(l,a){return l[0]*a[0]+l[1]*a[1]+l[2]*a[2]}Qe.sub=we,Qe.mul=Je,Qe.div=rt,Qe.dist=vt,Qe.sqrDist=ti,Qe.len=de,Qe.sqrLen=Tt;var li,bi=(li=ge(),function(l,a,u,p,m,_){var b,S;for(a||(a=3),u||(u=0),S=p?Math.min(p*a+u,l.length):l.length,b=u;b0&&(b=1/Math.sqrt(b)),l[0]=u*b,l[1]=p*b,l[2]=m*b,l[3]=_*b,l},_i.dot=function(l,a){return l[0]*a[0]+l[1]*a[1]+l[2]*a[2]+l[3]*a[3]},_i.cross=function(l,a,u,p){var m=u[0]*p[1]-u[1]*p[0],_=u[0]*p[2]-u[2]*p[0],b=u[0]*p[3]-u[3]*p[0],S=u[1]*p[2]-u[2]*p[1],I=u[1]*p[3]-u[3]*p[1],M=u[2]*p[3]-u[3]*p[2],N=a[0],P=a[1],V=a[2],H=a[3];return l[0]=P*M-V*I+H*S,l[1]=-N*M+V*b-H*_,l[2]=N*I-P*b+H*m,l[3]=-N*S+P*_-V*m,l},_i.lerp=function(l,a,u,p){var m=a[0],_=a[1],b=a[2],S=a[3];return l[0]=m+p*(u[0]-m),l[1]=_+p*(u[1]-_),l[2]=b+p*(u[2]-b),l[3]=S+p*(u[3]-S),l},_i.random=function(l,a){var u,p,m,_,b,S;a=a||1;do b=(u=2*mr.RANDOM()-1)*u+(p=2*mr.RANDOM()-1)*p;while(b>=1);do S=(m=2*mr.RANDOM()-1)*m+(_=2*mr.RANDOM()-1)*_;while(S>=1);var I=Math.sqrt((1-b)/S);return l[0]=a*u,l[1]=a*p,l[2]=a*m*I,l[3]=a*_*I,l},_i.transformMat4=function(l,a,u){var p=a[0],m=a[1],_=a[2],b=a[3];return l[0]=u[0]*p+u[4]*m+u[8]*_+u[12]*b,l[1]=u[1]*p+u[5]*m+u[9]*_+u[13]*b,l[2]=u[2]*p+u[6]*m+u[10]*_+u[14]*b,l[3]=u[3]*p+u[7]*m+u[11]*_+u[15]*b,l},_i.transformQuat=function(l,a,u){var p=a[0],m=a[1],_=a[2],b=u[0],S=u[1],I=u[2],M=u[3],N=M*p+S*_-I*m,P=M*m+I*p-b*_,V=M*_+b*m-S*p,H=-b*p-S*m-I*_;return l[0]=N*M+H*-b+P*-I-V*-S,l[1]=P*M+H*-S+V*-b-N*-I,l[2]=V*M+H*-I+N*-S-P*-b,l[3]=a[3],l},_i.zero=function(l){return l[0]=0,l[1]=0,l[2]=0,l[3]=0,l},_i.str=function(l){return"vec4("+l[0]+", "+l[1]+", "+l[2]+", "+l[3]+")"},_i.exactEquals=function(l,a){return l[0]===a[0]&&l[1]===a[1]&&l[2]===a[2]&&l[3]===a[3]},_i.equals=function(l,a){var u=l[0],p=l[1],m=l[2],_=l[3],b=a[0],S=a[1],I=a[2],M=a[3];return Math.abs(u-b)<=mr.EPSILON*Math.max(1,Math.abs(u),Math.abs(b))&&Math.abs(p-S)<=mr.EPSILON*Math.max(1,Math.abs(p),Math.abs(S))&&Math.abs(m-I)<=mr.EPSILON*Math.max(1,Math.abs(m),Math.abs(I))&&Math.abs(_-M)<=mr.EPSILON*Math.max(1,Math.abs(_),Math.abs(M))},_i.forEach=_i.sqrLen=_i.len=_i.sqrDist=_i.dist=_i.div=_i.mul=_i.sub=void 0;var mr=function(l,a){if(l&&l.__esModule)return l;if(l===null||yr(l)!=="object"&&typeof l!="function")return{default:l};var u=Qr(void 0);if(u&&u.has(l))return u.get(l);var p={},m=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var _ in l)if(_!=="default"&&Object.prototype.hasOwnProperty.call(l,_)){var b=m?Object.getOwnPropertyDescriptor(l,_):null;b&&(b.get||b.set)?Object.defineProperty(p,_,b):p[_]=l[_]}return p.default=l,u&&u.set(l,p),p}(j);function Qr(l){if(typeof WeakMap!="function")return null;var a=new WeakMap,u=new WeakMap;return(Qr=function(p){return p?u:a})(l)}function Lr(){var l=new mr.ARRAY_TYPE(4);return mr.ARRAY_TYPE!=Float32Array&&(l[0]=0,l[1]=0,l[2]=0,l[3]=0),l}function ao(l,a,u){return l[0]=a[0]-u[0],l[1]=a[1]-u[1],l[2]=a[2]-u[2],l[3]=a[3]-u[3],l}function Dt(l,a,u){return l[0]=a[0]*u[0],l[1]=a[1]*u[1],l[2]=a[2]*u[2],l[3]=a[3]*u[3],l}function pi(l,a,u){return l[0]=a[0]/u[0],l[1]=a[1]/u[1],l[2]=a[2]/u[2],l[3]=a[3]/u[3],l}function In(l,a){return Math.hypot(a[0]-l[0],a[1]-l[1],a[2]-l[2],a[3]-l[3])}function fn(l,a){var u=a[0]-l[0],p=a[1]-l[1],m=a[2]-l[2],_=a[3]-l[3];return u*u+p*p+m*m+_*_}function Mr(l){return Math.hypot(l[0],l[1],l[2],l[3])}function br(l){var a=l[0],u=l[1],p=l[2],m=l[3];return a*a+u*u+p*p+m*m}_i.sub=ao,_i.mul=Dt,_i.div=pi,_i.dist=In,_i.sqrDist=fn,_i.len=Mr,_i.sqrLen=br;var Xr=function(){var l=Lr();return function(a,u,p,m,_,b){var S,I;for(u||(u=4),p||(p=0),I=m?Math.min(m*u+p,a.length):a.length,S=p;Sls.EPSILON?(l[0]=a[0]/p,l[1]=a[1]/p,l[2]=a[2]/p):(l[0]=1,l[1]=0,l[2]=0),u},xe.getAngle=function(l,a){var u=Ko(l,a);return Math.acos(2*u*u-1)},xe.multiply=Ui,xe.rotateX=function(l,a,u){u*=.5;var p=a[0],m=a[1],_=a[2],b=a[3],S=Math.sin(u),I=Math.cos(u);return l[0]=p*I+b*S,l[1]=m*I+_*S,l[2]=_*I-m*S,l[3]=b*I-p*S,l},xe.rotateY=function(l,a,u){u*=.5;var p=a[0],m=a[1],_=a[2],b=a[3],S=Math.sin(u),I=Math.cos(u);return l[0]=p*I-_*S,l[1]=m*I+b*S,l[2]=_*I+p*S,l[3]=b*I-m*S,l},xe.rotateZ=function(l,a,u){u*=.5;var p=a[0],m=a[1],_=a[2],b=a[3],S=Math.sin(u),I=Math.cos(u);return l[0]=p*I+m*S,l[1]=m*I-p*S,l[2]=_*I+b*S,l[3]=b*I-_*S,l},xe.calculateW=function(l,a){var u=a[0],p=a[1],m=a[2];return l[0]=u,l[1]=p,l[2]=m,l[3]=Math.sqrt(Math.abs(1-u*u-p*p-m*m)),l},xe.exp=pn,xe.ln=Ji,xe.pow=function(l,a,u){return Ji(l,a),Sn(l,l,u),pn(l,l),l},xe.slerp=Jn,xe.random=function(l){var a=ls.RANDOM(),u=ls.RANDOM(),p=ls.RANDOM(),m=Math.sqrt(1-a),_=Math.sqrt(a);return l[0]=m*Math.sin(2*Math.PI*u),l[1]=m*Math.cos(2*Math.PI*u),l[2]=_*Math.sin(2*Math.PI*p),l[3]=_*Math.cos(2*Math.PI*p),l},xe.invert=function(l,a){var u=a[0],p=a[1],m=a[2],_=a[3],b=u*u+p*p+m*m+_*_,S=b?1/b:0;return l[0]=-u*S,l[1]=-p*S,l[2]=-m*S,l[3]=_*S,l},xe.conjugate=function(l,a){return l[0]=-a[0],l[1]=-a[1],l[2]=-a[2],l[3]=a[3],l},xe.fromMat3=uo,xe.fromEuler=function(l,a,u,p){var m=.5*Math.PI/180;a*=m,u*=m,p*=m;var _=Math.sin(a),b=Math.cos(a),S=Math.sin(u),I=Math.cos(u),M=Math.sin(p),N=Math.cos(p);return l[0]=_*I*N-b*S*M,l[1]=b*S*N+_*I*M,l[2]=b*I*M-_*S*N,l[3]=b*I*N+_*S*M,l},xe.str=function(l){return"quat("+l[0]+", "+l[1]+", "+l[2]+", "+l[3]+")"},xe.setAxes=xe.sqlerp=xe.rotationTo=xe.equals=xe.exactEquals=xe.normalize=xe.sqrLen=xe.squaredLength=xe.len=xe.length=xe.lerp=xe.dot=xe.scale=xe.mul=xe.add=xe.set=xe.copy=xe.fromValues=xe.clone=void 0;var ls=$i(j),Vt=$i(Ve),ui=$i(Qe),Ci=$i(_i);function qi(l){if(typeof WeakMap!="function")return null;var a=new WeakMap,u=new WeakMap;return(qi=function(p){return p?u:a})(l)}function $i(l,a){if(l&&l.__esModule)return l;if(l===null||Oo(l)!=="object"&&typeof l!="function")return{default:l};var u=qi(a);if(u&&u.has(l))return u.get(l);var p={},m=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var _ in l)if(_!=="default"&&Object.prototype.hasOwnProperty.call(l,_)){var b=m?Object.getOwnPropertyDescriptor(l,_):null;b&&(b.get||b.set)?Object.defineProperty(p,_,b):p[_]=l[_]}return p.default=l,u&&u.set(l,p),p}function ln(){var l=new ls.ARRAY_TYPE(4);return ls.ARRAY_TYPE!=Float32Array&&(l[0]=0,l[1]=0,l[2]=0),l[3]=1,l}function rn(l,a,u){u*=.5;var p=Math.sin(u);return l[0]=p*a[0],l[1]=p*a[1],l[2]=p*a[2],l[3]=Math.cos(u),l}function Ui(l,a,u){var p=a[0],m=a[1],_=a[2],b=a[3],S=u[0],I=u[1],M=u[2],N=u[3];return l[0]=p*N+b*S+m*M-_*I,l[1]=m*N+b*I+_*S-p*M,l[2]=_*N+b*M+p*I-m*S,l[3]=b*N-p*S-m*I-_*M,l}function pn(l,a){var u=a[0],p=a[1],m=a[2],_=a[3],b=Math.sqrt(u*u+p*p+m*m),S=Math.exp(_),I=b>0?S*Math.sin(b)/b:0;return l[0]=u*I,l[1]=p*I,l[2]=m*I,l[3]=S*Math.cos(b),l}function Ji(l,a){var u=a[0],p=a[1],m=a[2],_=a[3],b=Math.sqrt(u*u+p*p+m*m),S=b>0?Math.atan2(b,_)/b:0;return l[0]=u*S,l[1]=p*S,l[2]=m*S,l[3]=.5*Math.log(u*u+p*p+m*m+_*_),l}function Jn(l,a,u,p){var m,_,b,S,I,M=a[0],N=a[1],P=a[2],V=a[3],H=u[0],Y=u[1],W=u[2],re=u[3];return(_=M*H+N*Y+P*W+V*re)<0&&(_=-_,H=-H,Y=-Y,W=-W,re=-re),1-_>ls.EPSILON?(m=Math.acos(_),b=Math.sin(m),S=Math.sin((1-p)*m)/b,I=Math.sin(p*m)/b):(S=1-p,I=p),l[0]=S*M+I*H,l[1]=S*N+I*Y,l[2]=S*P+I*W,l[3]=S*V+I*re,l}function uo(l,a){var u,p=a[0]+a[4]+a[8];if(p>0)u=Math.sqrt(p+1),l[3]=.5*u,l[0]=(a[5]-a[7])*(u=.5/u),l[1]=(a[6]-a[2])*u,l[2]=(a[1]-a[3])*u;else{var m=0;a[4]>a[0]&&(m=1),a[8]>a[3*m+m]&&(m=2);var _=(m+1)%3,b=(m+2)%3;u=Math.sqrt(a[3*m+m]-a[3*_+_]-a[3*b+b]+1),l[m]=.5*u,l[3]=(a[3*_+b]-a[3*b+_])*(u=.5/u),l[_]=(a[3*_+m]+a[3*m+_])*u,l[b]=(a[3*b+m]+a[3*m+b])*u}return l}xe.clone=Ci.clone,xe.fromValues=Ci.fromValues,xe.copy=Ci.copy,xe.set=Ci.set,xe.add=Ci.add,xe.mul=Ui;var Sn=Ci.scale;xe.scale=Sn;var Ko=Ci.dot;xe.dot=Ko,xe.lerp=Ci.lerp;var za=Ci.length;xe.length=za,xe.len=za;var Va=Ci.squaredLength;xe.squaredLength=Va,xe.sqrLen=Va;var al=Ci.normalize;xe.normalize=al,xe.exactEquals=Ci.exactEquals,xe.equals=Ci.equals;var Ua,Ro,th,Oh=(Ua=ui.create(),Ro=ui.fromValues(1,0,0),th=ui.fromValues(0,1,0),function(l,a,u){var p=ui.dot(a,u);return p<-.999999?(ui.cross(Ua,Ro,a),ui.len(Ua)<1e-6&&ui.cross(Ua,th,a),ui.normalize(Ua,Ua),rn(l,Ua,Math.PI),l):p>.999999?(l[0]=0,l[1]=0,l[2]=0,l[3]=1,l):(ui.cross(Ua,a,u),l[0]=Ua[0],l[1]=Ua[1],l[2]=Ua[2],l[3]=1+p,al(l,l))});xe.rotationTo=Oh;var Oc,vf,f1=(Oc=ln(),vf=ln(),function(l,a,u,p,m,_){return Jn(Oc,a,m,_),Jn(vf,u,p,_),Jn(l,Oc,vf,2*_*(1-_)),l});xe.sqlerp=f1;var Au,ak=(Au=Vt.create(),function(l,a,u,p){return Au[0]=u[0],Au[3]=u[1],Au[6]=u[2],Au[1]=p[0],Au[4]=p[1],Au[7]=p[2],Au[2]=-a[0],Au[5]=-a[1],Au[8]=-a[2],al(l,uo(l,Au))});xe.setAxes=ak;var _o={};function m1(l){return m1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},m1(l)}Object.defineProperty(_o,"__esModule",{value:!0}),_o.create=function(){var l=new Ju.ARRAY_TYPE(8);return Ju.ARRAY_TYPE!=Float32Array&&(l[0]=0,l[1]=0,l[2]=0,l[4]=0,l[5]=0,l[6]=0,l[7]=0),l[3]=1,l},_o.clone=function(l){var a=new Ju.ARRAY_TYPE(8);return a[0]=l[0],a[1]=l[1],a[2]=l[2],a[3]=l[3],a[4]=l[4],a[5]=l[5],a[6]=l[6],a[7]=l[7],a},_o.fromValues=function(l,a,u,p,m,_,b,S){var I=new Ju.ARRAY_TYPE(8);return I[0]=l,I[1]=a,I[2]=u,I[3]=p,I[4]=m,I[5]=_,I[6]=b,I[7]=S,I},_o.fromRotationTranslationValues=function(l,a,u,p,m,_,b){var S=new Ju.ARRAY_TYPE(8);S[0]=l,S[1]=a,S[2]=u,S[3]=p;var I=.5*m,M=.5*_,N=.5*b;return S[4]=I*p+M*u-N*a,S[5]=M*p+N*l-I*u,S[6]=N*p+I*a-M*l,S[7]=-I*l-M*a-N*u,S},_o.fromRotationTranslation=uk,_o.fromTranslation=function(l,a){return l[0]=0,l[1]=0,l[2]=0,l[3]=1,l[4]=.5*a[0],l[5]=.5*a[1],l[6]=.5*a[2],l[7]=0,l},_o.fromRotation=function(l,a){return l[0]=a[0],l[1]=a[1],l[2]=a[2],l[3]=a[3],l[4]=0,l[5]=0,l[6]=0,l[7]=0,l},_o.fromMat4=function(l,a){var u=yf.create();lk.getRotation(u,a);var p=new Ju.ARRAY_TYPE(3);return lk.getTranslation(p,a),uk(l,u,p),l},_o.copy=dk,_o.identity=function(l){return l[0]=0,l[1]=0,l[2]=0,l[3]=1,l[4]=0,l[5]=0,l[6]=0,l[7]=0,l},_o.set=function(l,a,u,p,m,_,b,S,I){return l[0]=a,l[1]=u,l[2]=p,l[3]=m,l[4]=_,l[5]=b,l[6]=S,l[7]=I,l},_o.getDual=function(l,a){return l[0]=a[4],l[1]=a[5],l[2]=a[6],l[3]=a[7],l},_o.setDual=function(l,a){return l[4]=a[0],l[5]=a[1],l[6]=a[2],l[7]=a[3],l},_o.getTranslation=function(l,a){var u=a[4],p=a[5],m=a[6],_=a[7],b=-a[0],S=-a[1],I=-a[2],M=a[3];return l[0]=2*(u*M+_*b+p*I-m*S),l[1]=2*(p*M+_*S+m*b-u*I),l[2]=2*(m*M+_*I+u*S-p*b),l},_o.translate=function(l,a,u){var p=a[0],m=a[1],_=a[2],b=a[3],S=.5*u[0],I=.5*u[1],M=.5*u[2],N=a[4],P=a[5],V=a[6],H=a[7];return l[0]=p,l[1]=m,l[2]=_,l[3]=b,l[4]=b*S+m*M-_*I+N,l[5]=b*I+_*S-p*M+P,l[6]=b*M+p*I-m*S+V,l[7]=-p*S-m*I-_*M+H,l},_o.rotateX=function(l,a,u){var p=-a[0],m=-a[1],_=-a[2],b=a[3],S=a[4],I=a[5],M=a[6],N=a[7],P=S*b+N*p+I*_-M*m,V=I*b+N*m+M*p-S*_,H=M*b+N*_+S*m-I*p,Y=N*b-S*p-I*m-M*_;return yf.rotateX(l,a,u),l[4]=P*(b=l[3])+Y*(p=l[0])+V*(_=l[2])-H*(m=l[1]),l[5]=V*b+Y*m+H*p-P*_,l[6]=H*b+Y*_+P*m-V*p,l[7]=Y*b-P*p-V*m-H*_,l},_o.rotateY=function(l,a,u){var p=-a[0],m=-a[1],_=-a[2],b=a[3],S=a[4],I=a[5],M=a[6],N=a[7],P=S*b+N*p+I*_-M*m,V=I*b+N*m+M*p-S*_,H=M*b+N*_+S*m-I*p,Y=N*b-S*p-I*m-M*_;return yf.rotateY(l,a,u),l[4]=P*(b=l[3])+Y*(p=l[0])+V*(_=l[2])-H*(m=l[1]),l[5]=V*b+Y*m+H*p-P*_,l[6]=H*b+Y*_+P*m-V*p,l[7]=Y*b-P*p-V*m-H*_,l},_o.rotateZ=function(l,a,u){var p=-a[0],m=-a[1],_=-a[2],b=a[3],S=a[4],I=a[5],M=a[6],N=a[7],P=S*b+N*p+I*_-M*m,V=I*b+N*m+M*p-S*_,H=M*b+N*_+S*m-I*p,Y=N*b-S*p-I*m-M*_;return yf.rotateZ(l,a,u),l[4]=P*(b=l[3])+Y*(p=l[0])+V*(_=l[2])-H*(m=l[1]),l[5]=V*b+Y*m+H*p-P*_,l[6]=H*b+Y*_+P*m-V*p,l[7]=Y*b-P*p-V*m-H*_,l},_o.rotateByQuatAppend=function(l,a,u){var p=u[0],m=u[1],_=u[2],b=u[3],S=a[0],I=a[1],M=a[2],N=a[3];return l[0]=S*b+N*p+I*_-M*m,l[1]=I*b+N*m+M*p-S*_,l[2]=M*b+N*_+S*m-I*p,l[3]=N*b-S*p-I*m-M*_,l[4]=(S=a[4])*b+(N=a[7])*p+(I=a[5])*_-(M=a[6])*m,l[5]=I*b+N*m+M*p-S*_,l[6]=M*b+N*_+S*m-I*p,l[7]=N*b-S*p-I*m-M*_,l},_o.rotateByQuatPrepend=function(l,a,u){var p=a[0],m=a[1],_=a[2],b=a[3],S=u[0],I=u[1],M=u[2],N=u[3];return l[0]=p*N+b*S+m*M-_*I,l[1]=m*N+b*I+_*S-p*M,l[2]=_*N+b*M+p*I-m*S,l[3]=b*N-p*S-m*I-_*M,l[4]=p*(N=u[7])+b*(S=u[4])+m*(M=u[6])-_*(I=u[5]),l[5]=m*N+b*I+_*S-p*M,l[6]=_*N+b*M+p*I-m*S,l[7]=b*N-p*S-m*I-_*M,l},_o.rotateAroundAxis=function(l,a,u,p){if(Math.abs(p)0){u=Math.sqrt(u);var p=a[0]/u,m=a[1]/u,_=a[2]/u,b=a[3]/u,S=a[4],I=a[5],M=a[6],N=a[7],P=p*S+m*I+_*M+b*N;l[0]=p,l[1]=m,l[2]=_,l[3]=b,l[4]=(S-p*P)/u,l[5]=(I-m*P)/u,l[6]=(M-_*P)/u,l[7]=(N-b*P)/u}return l},_o.str=function(l){return"quat2("+l[0]+", "+l[1]+", "+l[2]+", "+l[3]+", "+l[4]+", "+l[5]+", "+l[6]+", "+l[7]+")"},_o.exactEquals=function(l,a){return l[0]===a[0]&&l[1]===a[1]&&l[2]===a[2]&&l[3]===a[3]&&l[4]===a[4]&&l[5]===a[5]&&l[6]===a[6]&&l[7]===a[7]},_o.equals=function(l,a){var u=l[0],p=l[1],m=l[2],_=l[3],b=l[4],S=l[5],I=l[6],M=l[7],N=a[0],P=a[1],V=a[2],H=a[3],Y=a[4],W=a[5],re=a[6],ue=a[7];return Math.abs(u-N)<=Ju.EPSILON*Math.max(1,Math.abs(u),Math.abs(N))&&Math.abs(p-P)<=Ju.EPSILON*Math.max(1,Math.abs(p),Math.abs(P))&&Math.abs(m-V)<=Ju.EPSILON*Math.max(1,Math.abs(m),Math.abs(V))&&Math.abs(_-H)<=Ju.EPSILON*Math.max(1,Math.abs(_),Math.abs(H))&&Math.abs(b-Y)<=Ju.EPSILON*Math.max(1,Math.abs(b),Math.abs(Y))&&Math.abs(S-W)<=Ju.EPSILON*Math.max(1,Math.abs(S),Math.abs(W))&&Math.abs(I-re)<=Ju.EPSILON*Math.max(1,Math.abs(I),Math.abs(re))&&Math.abs(M-ue)<=Ju.EPSILON*Math.max(1,Math.abs(M),Math.abs(ue))},_o.sqrLen=_o.squaredLength=_o.len=_o.length=_o.dot=_o.mul=_o.setReal=_o.getReal=void 0;var Ju=ck(j),yf=ck(xe),lk=ck(Pt);function HS(l){if(typeof WeakMap!="function")return null;var a=new WeakMap,u=new WeakMap;return(HS=function(p){return p?u:a})(l)}function ck(l,a){if(l&&l.__esModule)return l;if(l===null||m1(l)!=="object"&&typeof l!="function")return{default:l};var u=HS(a);if(u&&u.has(l))return u.get(l);var p={},m=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var _ in l)if(_!=="default"&&Object.prototype.hasOwnProperty.call(l,_)){var b=m?Object.getOwnPropertyDescriptor(l,_):null;b&&(b.get||b.set)?Object.defineProperty(p,_,b):p[_]=l[_]}return p.default=l,u&&u.set(l,p),p}function uk(l,a,u){var p=.5*u[0],m=.5*u[1],_=.5*u[2],b=a[0],S=a[1],I=a[2],M=a[3];return l[0]=b,l[1]=S,l[2]=I,l[3]=M,l[4]=p*M+m*I-_*S,l[5]=m*M+_*b-p*I,l[6]=_*M+p*S-m*b,l[7]=-p*b-m*S-_*I,l}function dk(l,a){return l[0]=a[0],l[1]=a[1],l[2]=a[2],l[3]=a[3],l[4]=a[4],l[5]=a[5],l[6]=a[6],l[7]=a[7],l}function g1(l,a,u){var p=a[0],m=a[1],_=a[2],b=a[3],S=u[4],I=u[5],M=u[6],N=u[7],P=a[4],V=a[5],H=a[6],Y=a[7],W=u[0],re=u[1],ue=u[2],Te=u[3];return l[0]=p*Te+b*W+m*ue-_*re,l[1]=m*Te+b*re+_*W-p*ue,l[2]=_*Te+b*ue+p*re-m*W,l[3]=b*Te-p*W-m*re-_*ue,l[4]=p*N+b*S+m*M-_*I+P*Te+Y*W+V*ue-H*re,l[5]=m*N+b*I+_*S-p*M+V*Te+Y*re+H*W-P*ue,l[6]=_*N+b*M+p*I-m*S+H*Te+Y*ue+P*re-V*W,l[7]=b*N-p*S-m*I-_*M+Y*Te-P*W-V*re-H*ue,l}_o.getReal=yf.copy,_o.setReal=yf.copy,_o.mul=g1;var nP=yf.dot;_o.dot=nP;var hk=yf.length;_o.length=hk,_o.len=hk;var hy=yf.squaredLength;_o.squaredLength=hy,_o.sqrLen=hy;var Gr={};function GS(l){return GS=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},GS(l)}Object.defineProperty(Gr,"__esModule",{value:!0}),Gr.create=YS,Gr.clone=function(l){var a=new fv.ARRAY_TYPE(2);return a[0]=l[0],a[1]=l[1],a},Gr.fromValues=function(l,a){var u=new fv.ARRAY_TYPE(2);return u[0]=l,u[1]=a,u},Gr.copy=function(l,a){return l[0]=a[0],l[1]=a[1],l},Gr.set=function(l,a,u){return l[0]=a,l[1]=u,l},Gr.add=function(l,a,u){return l[0]=a[0]+u[0],l[1]=a[1]+u[1],l},Gr.subtract=rP,Gr.multiply=fk,Gr.divide=qS,Gr.ceil=function(l,a){return l[0]=Math.ceil(a[0]),l[1]=Math.ceil(a[1]),l},Gr.floor=function(l,a){return l[0]=Math.floor(a[0]),l[1]=Math.floor(a[1]),l},Gr.min=function(l,a,u){return l[0]=Math.min(a[0],u[0]),l[1]=Math.min(a[1],u[1]),l},Gr.max=function(l,a,u){return l[0]=Math.max(a[0],u[0]),l[1]=Math.max(a[1],u[1]),l},Gr.round=function(l,a){return l[0]=Math.round(a[0]),l[1]=Math.round(a[1]),l},Gr.scale=function(l,a,u){return l[0]=a[0]*u,l[1]=a[1]*u,l},Gr.scaleAndAdd=function(l,a,u,p){return l[0]=a[0]+u[0]*p,l[1]=a[1]+u[1]*p,l},Gr.distance=oP,Gr.squaredDistance=mk,Gr.length=sP,Gr.squaredLength=_1,Gr.negate=function(l,a){return l[0]=-a[0],l[1]=-a[1],l},Gr.inverse=function(l,a){return l[0]=1/a[0],l[1]=1/a[1],l},Gr.normalize=function(l,a){var u=a[0],p=a[1],m=u*u+p*p;return m>0&&(m=1/Math.sqrt(m)),l[0]=a[0]*m,l[1]=a[1]*m,l},Gr.dot=function(l,a){return l[0]*a[0]+l[1]*a[1]},Gr.cross=function(l,a,u){var p=a[0]*u[1]-a[1]*u[0];return l[0]=l[1]=0,l[2]=p,l},Gr.lerp=function(l,a,u,p){var m=a[0],_=a[1];return l[0]=m+p*(u[0]-m),l[1]=_+p*(u[1]-_),l},Gr.random=function(l,a){a=a||1;var u=2*fv.RANDOM()*Math.PI;return l[0]=Math.cos(u)*a,l[1]=Math.sin(u)*a,l},Gr.transformMat2=function(l,a,u){var p=a[0],m=a[1];return l[0]=u[0]*p+u[2]*m,l[1]=u[1]*p+u[3]*m,l},Gr.transformMat2d=function(l,a,u){var p=a[0],m=a[1];return l[0]=u[0]*p+u[2]*m+u[4],l[1]=u[1]*p+u[3]*m+u[5],l},Gr.transformMat3=function(l,a,u){var p=a[0],m=a[1];return l[0]=u[0]*p+u[3]*m+u[6],l[1]=u[1]*p+u[4]*m+u[7],l},Gr.transformMat4=function(l,a,u){var p=a[0],m=a[1];return l[0]=u[0]*p+u[4]*m+u[12],l[1]=u[1]*p+u[5]*m+u[13],l},Gr.rotate=function(l,a,u,p){var m=a[0]-u[0],_=a[1]-u[1],b=Math.sin(p),S=Math.cos(p);return l[0]=m*S-_*b+u[0],l[1]=m*b+_*S+u[1],l},Gr.angle=function(l,a){var u=l[0],p=l[1],m=a[0],_=a[1],b=Math.sqrt(u*u+p*p)*Math.sqrt(m*m+_*_);return Math.acos(Math.min(Math.max(b&&(u*m+p*_)/b,-1),1))},Gr.zero=function(l){return l[0]=0,l[1]=0,l},Gr.str=function(l){return"vec2("+l[0]+", "+l[1]+")"},Gr.exactEquals=function(l,a){return l[0]===a[0]&&l[1]===a[1]},Gr.equals=function(l,a){var u=l[0],p=l[1],m=a[0],_=a[1];return Math.abs(u-m)<=fv.EPSILON*Math.max(1,Math.abs(u),Math.abs(m))&&Math.abs(p-_)<=fv.EPSILON*Math.max(1,Math.abs(p),Math.abs(_))},Gr.forEach=Gr.sqrLen=Gr.sqrDist=Gr.dist=Gr.div=Gr.mul=Gr.sub=Gr.len=void 0;var fv=function(l,a){if(l&&l.__esModule)return l;if(l===null||GS(l)!=="object"&&typeof l!="function")return{default:l};var u=pk(void 0);if(u&&u.has(l))return u.get(l);var p={},m=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var _ in l)if(_!=="default"&&Object.prototype.hasOwnProperty.call(l,_)){var b=m?Object.getOwnPropertyDescriptor(l,_):null;b&&(b.get||b.set)?Object.defineProperty(p,_,b):p[_]=l[_]}return p.default=l,u&&u.set(l,p),p}(j);function pk(l){if(typeof WeakMap!="function")return null;var a=new WeakMap,u=new WeakMap;return(pk=function(p){return p?u:a})(l)}function YS(){var l=new fv.ARRAY_TYPE(2);return fv.ARRAY_TYPE!=Float32Array&&(l[0]=0,l[1]=0),l}function rP(l,a,u){return l[0]=a[0]-u[0],l[1]=a[1]-u[1],l}function fk(l,a,u){return l[0]=a[0]*u[0],l[1]=a[1]*u[1],l}function qS(l,a,u){return l[0]=a[0]/u[0],l[1]=a[1]/u[1],l}function oP(l,a){return Math.hypot(a[0]-l[0],a[1]-l[1])}function mk(l,a){var u=a[0]-l[0],p=a[1]-l[1];return u*u+p*p}function sP(l){return Math.hypot(l[0],l[1])}function _1(l){var a=l[0],u=l[1];return a*a+u*u}Gr.len=sP,Gr.sub=rP,Gr.mul=fk,Gr.div=qS,Gr.dist=oP,Gr.sqrDist=mk,Gr.sqrLen=_1;var gk=function(){var l=YS();return function(a,u,p,m,_,b){var S,I;for(u||(u=2),p||(p=0),I=m?Math.min(m*u+p,a.length):a.length,S=p;S1)return 1;for(var u=l,p=0;p<8;p++){var m=this.sampleCurveX(u)-l;if(Math.abs(m)m?b=u:S=u,u=.5*(S-b)+b;return u},solve:function(l,a){return this.sampleCurveY(this.solveCurveX(l,a))}};var $S=L(TU),KS=Nh;function Nh(l,a){this.x=l,this.y=a}Nh.prototype={clone:function(){return new Nh(this.x,this.y)},add:function(l){return this.clone()._add(l)},sub:function(l){return this.clone()._sub(l)},multByPoint:function(l){return this.clone()._multByPoint(l)},divByPoint:function(l){return this.clone()._divByPoint(l)},mult:function(l){return this.clone()._mult(l)},div:function(l){return this.clone()._div(l)},rotate:function(l){return this.clone()._rotate(l)},rotateAround:function(l,a){return this.clone()._rotateAround(l,a)},matMult:function(l){return this.clone()._matMult(l)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(l){return this.x===l.x&&this.y===l.y},dist:function(l){return Math.sqrt(this.distSqr(l))},distSqr:function(l){var a=l.x-this.x,u=l.y-this.y;return a*a+u*u},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(l){return Math.atan2(this.y-l.y,this.x-l.x)},angleWith:function(l){return this.angleWithSep(l.x,l.y)},angleWithSep:function(l,a){return Math.atan2(this.x*a-this.y*l,this.x*l+this.y*a)},_matMult:function(l){var a=l[2]*this.x+l[3]*this.y;return this.x=l[0]*this.x+l[1]*this.y,this.y=a,this},_add:function(l){return this.x+=l.x,this.y+=l.y,this},_sub:function(l){return this.x-=l.x,this.y-=l.y,this},_mult:function(l){return this.x*=l,this.y*=l,this},_div:function(l){return this.x/=l,this.y/=l,this},_multByPoint:function(l){return this.x*=l.x,this.y*=l.y,this},_divByPoint:function(l){return this.x/=l.x,this.y/=l.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var l=this.y;return this.y=this.x,this.x=-l,this},_rotate:function(l){var a=Math.cos(l),u=Math.sin(l),p=u*this.x+a*this.y;return this.x=a*this.x-u*this.y,this.y=p,this},_rotateAround:function(l,a){var u=Math.cos(l),p=Math.sin(l),m=a.y+p*(this.x-a.x)+u*(this.y-a.y);return this.x=a.x+u*(this.x-a.x)-p*(this.y-a.y),this.y=m,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},Nh.convert=function(l){return l instanceof Nh?l:Array.isArray(l)?new Nh(l[0],l[1]):l};var cn=L(KS);let yk=Math.PI/180,WS=180/Math.PI;function Bo(l){return l*yk}function Du(l){return l*WS}let ZS=[[0,0],[1,0],[1,1],[0,1]];function my(l){if(l<=0)return 0;if(l>=1)return 1;let a=l*l,u=a*l;return 4*(l<.5?u:3*(l-a)+u-.75)}function bk(l,a,u,p){let m=new $S(l,a,u,p);return function(_){return m.solve(_)}}let Ph=bk(.25,.1,.25,1);function Br(l,a,u){return Math.min(u,Math.max(a,l))}function gy(l,a,u){return(u=Br((u-l)/(a-l),0,1))*u*(3-2*u)}function xp(l,a,u){let p=u-a,m=((l-a)%p+p)%p+a;return m===a?u:m}function QS(l,a,u){if(!l.length)return u(null,[]);let p=l.length,m=new Array(l.length),_=null;l.forEach((b,S)=>{a(b,(I,M)=>{I&&(_=I),m[S]=M,--p==0&&u(_,m)})})}function ih(l,...a){for(let u of a)for(let p in u)l[p]=u[p];return l}let cP=1;function Wo(){return cP++}function _y(){return function l(a){return a?(a^Math.random()*(16>>a/4)).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,l)}()}function xk(l){return l<=1?1:Math.pow(2,Math.ceil(Math.log(l)/Math.LN2))}function wk(l){return!!l&&/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(l)}function b1(l,a){l.forEach(u=>{a[u]&&(a[u]=a[u].bind(a))})}function Fg(l,a){return l.indexOf(a,l.length-a.length)!==-1}function vy(l,a,u){let p={};for(let m in l)p[m]=a.call(this,l[m],m,l);return p}function yy(l,a,u){let p={};for(let m in l)a.call(this,l[m],m,l)&&(p[m]=l[m]);return p}function wp(l){return Array.isArray(l)?l.map(wp):typeof l=="object"&&l?vy(l,wp):l}let XS={};function ja(l){XS[l]||(typeof console<"u"&&console.warn(l),XS[l]=!0)}function Lg(l,a,u){return(u.y-l.y)*(a.x-l.x)>(a.y-l.y)*(u.x-l.x)}function by(l){let a=0;for(let u,p,m=0,_=l.length,b=_-1;m<_;b=m++)u=l[m],p=l[b],a+=(p.x-u.x)*(u.y+p.y);return a}function xy([l,a,u]){let p=Bo(a+90),m=Bo(u);return{x:l*Math.cos(p)*Math.sin(m),y:l*Math.sin(p)*Math.sin(m),z:l*Math.cos(m),azimuthal:a,polar:u}}function Cp(){return typeof WorkerGlobalScope<"u"&&typeof self<"u"&&self instanceof WorkerGlobalScope}function nh(l){let a={};if(l.replace(/(?:^|(?:\s*\,\s*))([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,(u,p,m,_)=>{let b=m||_;return a[p]=!b||b.toLowerCase(),""}),a["max-age"]){let u=parseInt(a["max-age"],10);isNaN(u)?delete a["max-age"]:a["max-age"]=u}return a}let x1,w1,mv,C1,Sm,Bg,JS=null;function eE(l){try{let a=self[l];return a.setItem("_mapbox_test_",1),a.removeItem("_mapbox_test_"),!0}catch{return!1}}function Em(l,a){return[l[4*a],l[4*a+1],l[4*a+2],l[4*a+3]]}function gv(l,a,u,p){for(;a>1;l[m]>1;l[m]<=p?a=m+1:u=m}return a}function rh(l){return l>0?1/(1.001-l):1+l}function uP(l){return l>0?1-1/(1.001-l):-l}function S1(){return x1==null&&(x1=self.OffscreenCanvas&&new OffscreenCanvas(1,1).getContext("2d")&&typeof self.createImageBitmap=="function"),x1}let bf={now:()=>C1!==void 0?C1:performance.now(),setNow(l){C1=l},restoreNow(){C1=void 0},frame(l){let a=requestAnimationFrame(l);return{cancel:()=>cancelAnimationFrame(a)}},getImageData(l,a=0){let{width:u,height:p}=l;Sm||(Sm=document.createElement("canvas"));let m=Sm.getContext("2d",{willReadFrequently:!0});if(!m)throw new Error("failed to create canvas 2d context");return(u>Sm.width||p>Sm.height)&&(Sm.width=u,Sm.height=p),m.clearRect(-a,-a,u+2*a,p+2*a),m.drawImage(l,0,0,u,p),m.getImageData(-a,-a,u+2*a,p+2*a)},resolveURL:l=>(w1||(w1=document.createElement("a")),w1.href=l,w1.href),get devicePixelRatio(){return window.devicePixelRatio},get prefersReducedMotion(){return!!window.matchMedia&&(mv==null&&(mv=window.matchMedia("(prefers-reduced-motion: reduce)")),mv.matches)},hasCanvasFingerprintNoise(){if(Bg!==void 0)return Bg;if(!S1())return Bg=!1,!1;let l=new OffscreenCanvas(85,1),a=l.getContext("2d",{willReadFrequently:!0}),u=0;for(let m=0;m0?`?${_}`:""}`}let ru="mapbox-tiles",wy=500,dP=50,Im,T1;function Ck(){try{return caches}catch{}}function Cy(){let l=Ck();l&&!Im&&(Im=l.open(ru))}let iE=1/0,_v={supported:!1,testSupport:function(l){!nE&&Ey&&(hP?Ek(l):Sy=l)}},Sy,Ey,nE=!1,hP=!1,Sk=typeof self<"u"?self:{};function Ek(l){let a=l.createTexture();l.bindTexture(l.TEXTURE_2D,a);try{if(l.texImage2D(l.TEXTURE_2D,0,l.RGBA,l.RGBA,l.UNSIGNED_BYTE,Ey),l.isContextLost())return;_v.supported=!0}catch{}l.deleteTexture(a),nE=!0}Sk.document&&(Ey=Sk.document.createElement("img"),Ey.onload=function(){Sy&&Ek(Sy),Sy=null,hP=!0},Ey.onerror=function(){nE=!0,Sy=null},Ey.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");let A1={Unknown:"Unknown",Style:"Style",Source:"Source",Tile:"Tile",Glyphs:"Glyphs",SpriteImage:"SpriteImage",SpriteJSON:"SpriteJSON",Image:"Image",Model:"Model"};typeof Object.freeze=="function"&&Object.freeze(A1);class rE extends Error{constructor(a,u,p){u===401&&g(p)&&(a+=": you may have provided an invalid Mapbox access token. See https://docs.mapbox.com/api/overview/#access-tokens-and-token-scopes"),super(a),this.status=u,this.url=p}toString(){return`${this.name}: ${this.message} (${this.status}): ${this.url}`}}let vv=Cp()?()=>self.worker&&self.worker.referrer:()=>(location.protocol==="blob:"?parent:self).location.href,yv=function(l,a){if(!(/^file:/.test(u=l.url)||/^file:/.test(vv())&&!/^\w+:/.test(u))){if(self.fetch&&self.Request&&self.AbortController&&Request.prototype.hasOwnProperty("signal"))return function(p,m){let _=new AbortController,b=new Request(p.url,{method:p.method||"GET",body:p.body,credentials:p.credentials,headers:p.headers,referrer:vv(),referrerPolicy:p.referrerPolicy,signal:_.signal}),S=!1,I=!1,M=(N=b.url).indexOf("sku=")>0&&g(N);var N;p.type==="json"&&b.headers.set("Accept","application/json");let P=(H,Y,W)=>{if(I)return;if(H&&H.message!=="SecurityError"&&ja(H.toString()),Y&&W)return V(Y);let re=Date.now();fetch(b).then(ue=>{if(ue.ok){let Te=M?ue.clone():null;return V(ue,Te,re)}return m(new rE(ue.statusText,ue.status,p.url))}).catch(ue=>{ue.name!=="AbortError"&&m(new Error(`${ue.message} ${p.url}`))})},V=(H,Y,W)=>{(p.type==="arrayBuffer"?H.arrayBuffer():p.type==="json"?H.json():H.text()).then(re=>{I||(Y&&W&&function(ue,Te,Pe){if(Cy(),!Im)return;let De=nh(Te.headers.get("Cache-Control")||"");if(De["no-store"])return;let tt={status:Te.status,statusText:Te.statusText,headers:new Headers};Te.headers.forEach((_t,Mt)=>tt.headers.set(Mt,_t)),De["max-age"]&&tt.headers.set("Expires",new Date(Pe+1e3*De["max-age"]).toUTCString());let Ye=tt.headers.get("Expires");if(!Ye||new Date(Ye).getTime()-Pe<42e4)return;let at=I1(ue.url,{persistentParams:["language","worldview"]});if(Te.status===206){let _t=ue.headers.get("Range");if(!_t)return;tt.status=200,at=E1(at,{range:_t})}(function(_t,Mt){if(T1===void 0)try{new Response(new ReadableStream),T1=!0}catch{T1=!1}T1?Mt(_t.body):_t.blob().then(Mt)})(Te,_t=>{let Mt=new Response(_t,tt);Cy(),Im&&Im.then(Jt=>Jt.put(at,Mt)).catch(Jt=>ja(Jt.message))})}(b,Y,W),S=!0,m(null,re,H.headers.get("Cache-Control"),H.headers.get("Expires")))}).catch(re=>{I||m(new Error(re.message))})};return M?function(H,Y){if(Cy(),!Im)return Y(null);Im.then(W=>{let re=I1(H.url,{persistentParams:["language","worldview"]}),ue=H.headers.get("Range");ue&&(re=E1(re,{range:ue})),W.match(re).then(Te=>{let Pe=function(De){if(!De)return!1;let tt=new Date(De.headers.get("Expires")||0),Ye=nh(De.headers.get("Cache-Control")||"");return tt>Date.now()&&!Ye["no-cache"]}(Te);W.delete(re),Pe&&W.put(re,Te.clone()),Y(null,Te,Pe)}).catch(Y)}).catch(Y)}(b,P):P(null,null),{cancel:()=>{I=!0,S||_.abort()}}}(l,a);if(Cp()&&self.worker&&self.worker.actor)return self.worker.actor.send("getResource",l,a,void 0,!0)}var u;return function(p,m){let _=new XMLHttpRequest;_.open(p.method||"GET",p.url,!0),p.type==="arrayBuffer"&&(_.responseType="arraybuffer");for(let b in p.headers)_.setRequestHeader(b,p.headers[b]);return p.type==="json"&&(_.responseType="text",_.setRequestHeader("Accept","application/json")),_.withCredentials=p.credentials==="include",_.onerror=()=>{m(new Error(_.statusText))},_.onload=()=>{if((_.status>=200&&_.status<300||_.status===0)&&_.response!==null){let b=_.response;if(p.type==="json")try{b=JSON.parse(_.response)}catch(S){return m(S)}m(null,b,_.getResponseHeader("Cache-Control"),_.getResponseHeader("Expires"))}else m(new rE(_.statusText,_.status,p.url))},_.send(p.body),{cancel:()=>_.abort()}}(l,a)},bv=function(l,a){return yv(ih(l,{type:"arrayBuffer"}),a)};function oE(l){let a=document.createElement("a");return a.href=l,a.protocol===location.protocol&&a.host===location.host}let Ik="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=",Iy,D1;Iy=[],D1=0;let sE=function(l,a){if(_v.supported&&(l.headers||(l.headers={}),l.headers.accept="image/webp,*/*"),D1>=h.MAX_PARALLEL_IMAGE_REQUESTS){let _={requestParameters:l,callback:a,cancelled:!1,cancel(){this.cancelled=!0}};return Iy.push(_),_}D1++;let u=!1,p=()=>{if(!u)for(u=!0,D1--;Iy.length&&D1{p(),_?a(_):b&&(self.createImageBitmap?function(M,N){let P=new Blob([new Uint8Array(M)],{type:"image/png"});createImageBitmap(P).then(V=>{N(null,V)}).catch(V=>{N(new Error(`Could not load image because of ${V.message}. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.`))})}(b,(M,N)=>a(M,N,S,I)):function(M,N){let P=new Image;P.onload=()=>{N(null,P),URL.revokeObjectURL(P.src),P.onload=null,requestAnimationFrame(()=>{P.src=Ik})},P.onerror=()=>N(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."));let V=new Blob([new Uint8Array(M)],{type:"image/png"});P.src=M.byteLength?URL.createObjectURL(V):Ik}(b,(M,N)=>a(M,N,S,I)))});return{cancel:()=>{m.cancel(),p()}}},k1="01",M1="NO_ACCESS_TOKEN",O1=/^(\w+):\/\/([^/?]*)(\/[^?]+)?\??(.+)?/;function oh(l){let a=l.match(O1);if(!a)throw new Error("Unable to parse URL object");return{protocol:a[1],authority:a[2],path:a[3]||"/",params:a[4]?a[4].split("&"):[]}}function xv(l){let a=l.params.length?`?${l.params.join("&")}`:"";return`${l.protocol}://${l.authority}${l.path}${a}`}let Ty="mapbox.eventData";function zg(l){if(!l)return null;let a=l.split(".");if(!a||a.length!==3)return null;try{return JSON.parse(decodeURIComponent(atob(a[1]).split("").map(u=>"%"+("00"+u.charCodeAt(0).toString(16)).slice(-2)).join("")))}catch{return null}}class Ay{constructor(a){this.type=a,this.anonId=null,this.eventData={},this.queue=[],this.pendingRequest=null}getStorageKey(a){let u=zg(h.ACCESS_TOKEN),p="";return p=u&&u.u?btoa(encodeURIComponent(u.u).replace(/%([0-9A-F]{2})/g,(m,_)=>String.fromCharCode(+("0x"+_)))):h.ACCESS_TOKEN||"",a?`${Ty}.${a}:${p}`:`${Ty}:${p}`}fetchEventData(){let a=eE("localStorage"),u=this.getStorageKey(),p=this.getStorageKey("uuid");if(a)try{let m=localStorage.getItem(u);m&&(this.eventData=JSON.parse(m));let _=localStorage.getItem(p);_&&(this.anonId=_)}catch{ja("Unable to read from LocalStorage")}}saveEventData(){let a=eE("localStorage"),u=this.getStorageKey(),p=this.getStorageKey("uuid"),m=this.anonId;if(a&&m)try{localStorage.setItem(p,m),Object.keys(this.eventData).length>=1&&localStorage.setItem(u,JSON.stringify(this.eventData))}catch{ja("Unable to write to LocalStorage")}}processRequests(a){}postEvent(a,u,p,m){if(!h.EVENTS_URL)return;let _=oh(h.EVENTS_URL);_.params.push(`access_token=${m||h.ACCESS_TOKEN||""}`);let b={event:this.type,created:new Date(a).toISOString()},S=u?ih(b,u):b,I={url:xv(_),headers:{"Content-Type":"text/plain"},body:JSON.stringify([S])};this.pendingRequest=function(M,N){return yv(ih(M,{method:"POST"}),N)}(I,M=>{this.pendingRequest=null,p(M),this.saveEventData(),this.processRequests(m)})}queueRequest(a,u){this.queue.push(a),this.processRequests(u)}}let R1=new class extends Ay{constructor(l){super("appUserTurnstile"),this._customAccessToken=l}postTurnstileEvent(l,a){h.EVENTS_URL&&h.ACCESS_TOKEN&&Array.isArray(l)&&l.some(u=>x(u)||g(u))&&this.queueRequest(Date.now(),a)}processRequests(l){if(this.pendingRequest||this.queue.length===0)return;this.anonId&&this.eventData.lastSuccess&&this.eventData.tokenU||this.fetchEventData();let a=zg(h.ACCESS_TOKEN),u=a?a.u:h.ACCESS_TOKEN,p=u!==this.eventData.tokenU;wk(this.anonId)||(this.anonId=_y(),p=!0);let m=this.queue.shift();if(this.eventData.lastSuccess){let _=new Date(this.eventData.lastSuccess),b=new Date(m),S=(m-this.eventData.lastSuccess)/864e5;p=p||S>=1||S<-1||_.getDate()!==b.getDate()}else p=!0;p?this.postEvent(m,{sdkIdentifier:"mapbox-gl-js",sdkVersion:s,skuId:k1,"enabled.telemetry":!1,userId:this.anonId},_=>{_||(this.eventData.lastSuccess=m,this.eventData.tokenU=u)},l):this.processRequests()}},Dd=R1.postTurnstileEvent.bind(R1),Tm=new class extends Ay{constructor(){super("map.load"),this.success={},this.skuToken=""}postMapLoadEvent(l,a,u,p){this.skuToken=a,this.errorCb=p,h.EVENTS_URL&&(u||h.ACCESS_TOKEN?this.queueRequest({id:l,timestamp:Date.now()},u):this.errorCb(new Error(M1)))}processRequests(l){if(this.pendingRequest||this.queue.length===0)return;let{id:a,timestamp:u}=this.queue.shift();a&&this.success[a]||(this.anonId||this.fetchEventData(),wk(this.anonId)||(this.anonId=_y()),this.postEvent(u,{sdkIdentifier:"mapbox-gl-js",sdkVersion:s,skuId:k1,skuToken:this.skuToken,userId:this.anonId},p=>{p?this.errorCb(p):a&&(this.success[a]=!0)},l))}remove(){this.errorCb=null}},ku=Tm.postMapLoadEvent.bind(Tm),aE=new class extends Ay{constructor(){super("style.load"),this.eventIdPerMapInstanceMap=new Map,this.mapInstanceIdMap=new WeakMap}getMapInstanceId(l){let a=this.mapInstanceIdMap.get(l);return a||(a=_y(),this.mapInstanceIdMap.set(l,a)),a}getEventId(l){let a=this.eventIdPerMapInstanceMap.get(l)||0;return this.eventIdPerMapInstanceMap.set(l,a+1),a}postStyleLoadEvent(l,a){let{map:u,style:p,importedStyles:m}=a;if(!h.EVENTS_URL||!l&&!h.ACCESS_TOKEN)return;let _=this.getMapInstanceId(u),b={mapInstanceId:_,eventId:this.getEventId(_),style:p};m.length&&(b.importedStyles=m),this.queueRequest({timestamp:Date.now(),payload:b},l)}processRequests(l){if(this.pendingRequest||this.queue.length===0)return;let{timestamp:a,payload:u}=this.queue.shift();this.postEvent(a,u,()=>{},l)}},pP=aE.postStyleLoadEvent.bind(aE),Tk=new class extends Ay{constructor(){super("gljs.performance")}postPerformanceEvent(l,a){h.EVENTS_URL&&(l||h.ACCESS_TOKEN)&&this.queueRequest({timestamp:Date.now(),performanceData:a},l)}processRequests(l){if(this.pendingRequest||this.queue.length===0)return;let{timestamp:a,performanceData:u}=this.queue.shift(),p=function(m){let _=performance.getEntriesByType("resource"),b=performance.getEntriesByType("mark"),S=function(H){let Y={};if(H){for(let W in H)if(W!=="other")for(let re of H[W]){let ue=`${W}ResolveRangeMin`,Te=`${W}ResolveRangeMax`,Pe=`${W}RequestCount`,De=`${W}RequestCachedCount`;Y[ue]=Math.min(Y[ue]||1/0,re.startTime),Y[Te]=Math.max(Y[Te]||-1/0,re.responseEnd);let tt=Ye=>{Y[Ye]===void 0&&(Y[Ye]=0),++Y[Ye]};re.transferSize!==void 0&&re.transferSize===0&&tt(De),tt(Pe)}}return Y}(function(H,Y){let W={};if(H)for(let re of H){let ue=Y(re);W[ue]===void 0&&(W[ue]=[]),W[ue].push(re)}return W}(_,F)),I=window.devicePixelRatio,M=navigator.connection||navigator.mozConnection||navigator.webkitConnection,N=M?M.effectiveType:void 0,P={counters:[],metadata:[],attributes:[]},V=(H,Y,W)=>{W!=null&&H.push({name:Y,value:W.toString()})};for(let H in S)V(P.counters,H,S[H]);if(m.interactionRange[0]!==1/0&&m.interactionRange[1]!==-1/0&&(V(P.counters,"interactionRangeMin",m.interactionRange[0]),V(P.counters,"interactionRangeMax",m.interactionRange[1])),b)for(let H of Object.keys(O)){let Y=O[H],W=b.find(re=>re.name===Y);W&&V(P.counters,Y,W.startTime)}return V(P.counters,"visibilityHidden",m.visibilityHidden),V(P.attributes,"style",function(H){if(H)for(let Y of H){let W=Y.name.split("?")[0];if(k(W)){let re=W.split("/").slice(-2);if(re.length===2)return`mapbox://styles/${re[0]}/${re[1]}`}}}(_)),V(P.attributes,"terrainEnabled",m.terrainEnabled?"true":"false"),V(P.attributes,"fogEnabled",m.fogEnabled?"true":"false"),V(P.attributes,"projection",m.projection),V(P.attributes,"zoom",m.zoom),V(P.metadata,"devicePixelRatio",I),V(P.metadata,"connectionEffectiveType",N),V(P.metadata,"navigatorUserAgent",navigator.userAgent),V(P.metadata,"screenWidth",window.screen.width),V(P.metadata,"screenHeight",window.screen.height),V(P.metadata,"windowWidth",window.innerWidth),V(P.metadata,"windowHeight",window.innerHeight),V(P.metadata,"mapWidth",m.width/I),V(P.metadata,"mapHeight",m.height/I),V(P.metadata,"webglRenderer",m.renderer),V(P.metadata,"webglVendor",m.vendor),V(P.metadata,"sdkVersion",s),V(P.metadata,"sdkIdentifier","mapbox-gl-js"),P}(u);for(let m of p.metadata);for(let m of p.counters);for(let m of p.attributes);this.postEvent(a,p,()=>{},l)}},Ms=Tk.postPerformanceEvent.bind(Tk),lE=new class extends Ay{constructor(){super("map.auth"),this.success={},this.skuToken=""}getSession(l,a,u,p){if(!h.API_URL||!h.SESSION_PATH)return;let m=oh(h.API_URL+h.SESSION_PATH);m.params.push(`sku=${a||""}`),m.params.push(`access_token=${p||h.ACCESS_TOKEN||""}`);let _={url:xv(m),headers:{"Content-Type":"text/plain"}};this.pendingRequest=function(b,S){return yv(ih(b,{method:"GET"}),S)}(_,b=>{this.pendingRequest=null,u(b),this.saveEventData(),this.processRequests(p)})}getSessionAPI(l,a,u,p){this.skuToken=a,this.errorCb=p,h.SESSION_PATH&&h.API_URL&&(u||h.ACCESS_TOKEN?this.queueRequest({id:l,timestamp:Date.now()},u):this.errorCb(new Error(M1)))}processRequests(l){if(this.pendingRequest||this.queue.length===0)return;let{id:a,timestamp:u}=this.queue.shift();a&&this.success[a]||this.getSession(u,this.skuToken,p=>{p?this.errorCb(p):a&&(this.success[a]=!0)},l)}remove(){this.errorCb=null}},Ak=lE.getSessionAPI.bind(lE),cE=new Set;var xf={exports:{}},fP={exports:{}};fP.exports=function(l,a){var u,p,m,_,b,S,I,M;for(p=l.length-(u=3&l.length),m=a,b=3432918353,S=461845907,M=0;M>>16)*b&65535)<<16)&4294967295)<<15|I>>>17))*S+(((I>>>16)*S&65535)<<16)&4294967295)<<13|m>>>19))+((5*(m>>>16)&65535)<<16)&4294967295))+((58964+(_>>>16)&65535)<<16);switch(I=0,u){case 3:I^=(255&l.charCodeAt(M+2))<<16;case 2:I^=(255&l.charCodeAt(M+1))<<8;case 1:m^=I=(65535&(I=(I=(65535&(I^=255&l.charCodeAt(M)))*b+(((I>>>16)*b&65535)<<16)&4294967295)<<15|I>>>17))*S+(((I>>>16)*S&65535)<<16)&4294967295}return m^=l.length,m=2246822507*(65535&(m^=m>>>16))+((2246822507*(m>>>16)&65535)<<16)&4294967295,m=3266489909*(65535&(m^=m>>>13))+((3266489909*(m>>>16)&65535)<<16)&4294967295,(m^=m>>>16)>>>0};var mP=fP.exports,Dk={exports:{}};Dk.exports=function(l,a){for(var u,p=l.length,m=a^p,_=0;p>=4;)u=1540483477*(65535&(u=255&l.charCodeAt(_)|(255&l.charCodeAt(++_))<<8|(255&l.charCodeAt(++_))<<16|(255&l.charCodeAt(++_))<<24))+((1540483477*(u>>>16)&65535)<<16),m=1540483477*(65535&m)+((1540483477*(m>>>16)&65535)<<16)^(u=1540483477*(65535&(u^=u>>>24))+((1540483477*(u>>>16)&65535)<<16)),p-=4,++_;switch(p){case 3:m^=(255&l.charCodeAt(_+2))<<16;case 2:m^=(255&l.charCodeAt(_+1))<<8;case 1:m=1540483477*(65535&(m^=255&l.charCodeAt(_)))+((1540483477*(m>>>16)&65535)<<16)}return m=1540483477*(65535&(m^=m>>>13))+((1540483477*(m>>>16)&65535)<<16),(m^=m>>>15)>>>0};var uE=mP,sh=Dk.exports;xf.exports=uE,xf.exports.murmur3=uE,xf.exports.murmur2=sh;var wv=L(xf.exports);function dE(l,a,u){u[l]&&u[l].indexOf(a)!==-1||(u[l]=u[l]||[],u[l].push(a))}function N1(l,a,u){if(u&&u[l]){let p=u[l].indexOf(a);p!==-1&&u[l].splice(p,1)}}class xs{constructor(a,u={}){ih(this,u),this.type=a}}class hE extends xs{constructor(a,u={}){super("error",ih({error:a},u))}}class Cv{on(a,u){return this._listeners=this._listeners||{},dE(a,u,this._listeners),this}off(a,u){return N1(a,u,this._listeners),N1(a,u,this._oneTimeListeners),this}once(a,u){return u?(this._oneTimeListeners=this._oneTimeListeners||{},dE(a,u,this._oneTimeListeners),this):new Promise(p=>this.once(a,p))}fire(a,u){typeof a=="string"&&(a=new xs(a,u||{}));let p=a.type;if(this.listens(p)){a.target=this;let m=this._listeners&&this._listeners[p]?this._listeners[p].slice():[];for(let S of m)S.call(this,a);let _=this._oneTimeListeners&&this._oneTimeListeners[p]?this._oneTimeListeners[p].slice():[];for(let S of _)N1(p,S,this._oneTimeListeners),S.call(this,a);let b=this._eventedParent;b&&(ih(a,typeof this._eventedParentData=="function"?this._eventedParentData():this._eventedParentData),b.fire(a))}else a instanceof hE&&console.error(a.error);return this}listens(a){return!!(this._listeners&&this._listeners[a]&&this._listeners[a].length>0||this._oneTimeListeners&&this._oneTimeListeners[a]&&this._oneTimeListeners[a].length>0||this._eventedParent&&this._eventedParent.listens(a))}setEventedParent(a,u){return this._eventedParent=a,this._eventedParentData=u,this}}o.z=void 0;var kk={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],rebeccapurple:[102,51,153,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function P1(l){return(l=Math.round(l))<0?0:l>255?255:l}function pE(l){return P1(l[l.length-1]==="%"?parseFloat(l)/100*255:parseInt(l))}function Dy(l){return(a=l[l.length-1]==="%"?parseFloat(l)/100:parseFloat(l))<0?0:a>1?1:a;var a}function fE(l,a,u){return u<0?u+=1:u>1&&(u-=1),6*u<1?l+(a-l)*u*6:2*u<1?a:3*u<2?l+(a-l)*(2/3-u)*6:l}try{o.z={}.parseCSSColor=function(l){var a,u=l.replace(/ /g,"").toLowerCase();if(u in kk)return kk[u].slice();if(u[0]==="#")return u.length===4?(a=parseInt(u.substr(1),16))>=0&&a<=4095?[(3840&a)>>4|(3840&a)>>8,240&a|(240&a)>>4,15&a|(15&a)<<4,1]:null:u.length===7&&(a=parseInt(u.substr(1),16))>=0&&a<=16777215?[(16711680&a)>>16,(65280&a)>>8,255&a,1]:null;var p=u.indexOf("("),m=u.indexOf(")");if(p!==-1&&m+1===u.length){var _=u.substr(0,p),b=u.substr(p+1,m-(p+1)).split(","),S=1;switch(_){case"rgba":if(b.length!==4)return null;S=Dy(b.pop());case"rgb":return b.length!==3?null:[pE(b[0]),pE(b[1]),pE(b[2]),S];case"hsla":if(b.length!==4)return null;S=Dy(b.pop());case"hsl":if(b.length!==3)return null;var I=(parseFloat(b[0])%360+360)%360/360,M=Dy(b[1]),N=Dy(b[2]),P=N<=.5?N*(M+1):N+M-N*M,V=2*N-P;return[P1(255*fE(V,P,I+1/3)),P1(255*fE(V,P,I)),P1(255*fE(V,P,I-1/3)),S];default:return null}}return null}}catch{}class cs{constructor(a,u,p,m=1){this.r=a,this.g=u,this.b=p,this.a=m}static parse(a){if(!a)return;if(a instanceof cs)return a;if(typeof a!="string")return;let u=o.z(a);return u?new cs(u[0]/255*u[3],u[1]/255*u[3],u[2]/255*u[3],u[3]):void 0}toString(){let[a,u,p,m]=this.toArray();return`rgba(${Math.round(a)},${Math.round(u)},${Math.round(p)},${m})`}toArray(){let{r:a,g:u,b:p,a:m}=this;return m===0?[0,0,0,0]:[255*a/m,255*u/m,255*p/m,m]}toArray01(){let{r:a,g:u,b:p,a:m}=this;return m===0?[0,0,0,0]:[a/m,u/m,p/m,m]}toArray01Scaled(a){let{r:u,g:p,b:m,a:_}=this;return _===0?[0,0,0]:[u/_*a,p/_*a,m/_*a]}toArray01PremultipliedAlpha(){let{r:a,g:u,b:p,a:m}=this;return[a,u,p,m]}toArray01Linear(){let{r:a,g:u,b:p,a:m}=this;return m===0?[0,0,0,0]:[Math.pow(a/m,2.2),Math.pow(u/m,2.2),Math.pow(p/m,2.2),m]}}function Jr(l,a,u){return l*(1-u)+a*u}function ky(l,a,u){return l.map((p,m)=>Jr(p,a[m],u))}cs.black=new cs(0,0,0,1),cs.white=new cs(1,1,1,1),cs.transparent=new cs(0,0,0,0),cs.red=new cs(1,0,0,1),cs.blue=new cs(0,0,1,1);var My=Object.freeze({__proto__:null,array:ky,color:function(l,a,u){return new cs(Jr(l.r,a.r,u),Jr(l.g,a.g,u),Jr(l.b,a.b,u),Jr(l.a,a.a,u))},number:Jr});function Vg(l,...a){for(let u of a)for(let p in u)l[p]=u[p];return l}class Sp extends Error{constructor(a,u){super(u),this.message=u,this.key=a}}class Am{constructor(a,u=[]){this.parent=a,this.bindings={};for(let[p,m]of u)this.bindings[p]=m}concat(a){return new Am(this,a)}get(a){if(this.bindings[a])return this.bindings[a];if(this.parent)return this.parent.get(a);throw new Error(`${a} not found in scope.`)}has(a){return!!this.bindings[a]||!!this.parent&&this.parent.has(a)}}let io={kind:"null"},Tn={kind:"number"},Zo={kind:"string"},jo={kind:"boolean"},ah={kind:"color"},Sv={kind:"object"},Eo={kind:"value"},F1={kind:"collator"},Ev={kind:"formatted"},Oy={kind:"resolvedImage"};function mc(l,a){return{kind:"array",itemType:l,N:a}}function Ha(l){if(l.kind==="array"){let a=Ha(l.itemType);return typeof l.N=="number"?`array<${a}, ${l.N}>`:l.itemType.kind==="value"?"array":`array<${a}>`}return l.kind}let mE=[io,Tn,Zo,jo,ah,Ev,Sv,mc(Eo),Oy];function Ry(l,a){if(a.kind==="error")return null;if(l.kind==="array"){if(a.kind==="array"&&(a.N===0&&a.itemType.kind==="value"||!Ry(l.itemType,a.itemType))&&(typeof l.N!="number"||l.N===a.N))return null}else{if(l.kind===a.kind)return null;if(l.kind==="value"){for(let u of mE)if(!Ry(u,a))return null}}return`Expected ${Ha(l)} but found ${Ha(a)} instead.`}function Ny(l,a){return a.some(u=>u.kind===l.kind)}function Dm(l,a){return a.some(u=>u==="null"?l===null:u==="array"?Array.isArray(l):u==="object"?l&&!Array.isArray(l)&&typeof l=="object":u===typeof l)}class Mk{constructor(a,u,p){this.sensitivity=a?u?"variant":"case":u?"accent":"base",this.locale=p,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})}compare(a,u){return this.collator.compare(a,u)}resolvedLocale(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale}}class gE{constructor(a,u,p,m,_){this.text=a.normalize?a.normalize():a,this.image=u,this.scale=p,this.fontStack=m,this.textColor=_}}class Yc{constructor(a){this.sections=a}static fromString(a){return new Yc([new gE(a,null,null,null,null)])}isEmpty(){return this.sections.length===0||!this.sections.some(a=>a.text.length!==0||a.image&&a.image.namePrimary.length!==0)}static factory(a){return a instanceof Yc?a:Yc.fromString(a)}toString(){return this.sections.length===0?"":this.sections.map(a=>a.text).join("")}serialize(){let a=["format"];for(let u of this.sections){if(u.image){a.push(["image",u.image.namePrimary]);continue}a.push(u.text);let p={};u.fontStack&&(p["text-font"]=["literal",u.fontStack.split(",")]),u.scale&&(p["font-scale"]=u.scale),u.textColor&&(p["text-color"]=["rgba"].concat(u.textColor.toArray())),a.push(p)}return a}}class ed{constructor(a){this.namePrimary=a.namePrimary,a.nameSecondary&&(this.nameSecondary=a.nameSecondary),this.available=a.available}toString(){return this.nameSecondary?`[${this.namePrimary},${this.nameSecondary}]`:this.namePrimary}static fromString(a,u){return a?new ed({namePrimary:a,nameSecondary:u,available:!1}):null}serialize(){return this.nameSecondary?["image",this.namePrimary,this.nameSecondary]:["image",this.namePrimary]}}function gP(l,a,u,p){return typeof l=="number"&&l>=0&&l<=255&&typeof a=="number"&&a>=0&&a<=255&&typeof u=="number"&&u>=0&&u<=255?p===void 0||typeof p=="number"&&p>=0&&p<=1?null:`Invalid rgba value [${[l,a,u,p].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid rgba value [${(typeof p=="number"?[l,a,u,p]:[l,a,u]).join(", ")}]: 'r', 'g', and 'b' must be between 0 and 255.`}function Iv(l){if(l===null||typeof l=="string"||typeof l=="boolean"||typeof l=="number"||l instanceof cs||l instanceof Mk||l instanceof Yc||l instanceof ed)return!0;if(Array.isArray(l)){for(let a of l)if(!Iv(a))return!1;return!0}if(typeof l=="object"){for(let a in l)if(!Iv(l[a]))return!1;return!0}return!1}function yl(l){if(l===null)return io;if(typeof l=="string")return Zo;if(typeof l=="boolean")return jo;if(typeof l=="number")return Tn;if(l instanceof cs)return ah;if(l instanceof Mk)return F1;if(l instanceof Yc)return Ev;if(l instanceof ed)return Oy;if(Array.isArray(l)){let a=l.length,u;for(let p of l){let m=yl(p);if(u){if(u===m)continue;u=Eo;break}u=m}return mc(u||Eo,a)}return Sv}function kd(l){let a=typeof l;return l===null?"":a==="string"||a==="number"||a==="boolean"?String(l):l instanceof cs||l instanceof Yc||l instanceof ed?l.toString():JSON.stringify(l)}class Ep{constructor(a,u){this.type=a,this.value=u}static parse(a,u){if(a.length!==2)return u.error(`'literal' expression requires exactly one argument, but found ${a.length-1} instead.`);if(!Iv(a[1]))return u.error("invalid value");let p=a[1],m=yl(p),_=u.expectedType;return m.kind!=="array"||m.N!==0||!_||_.kind!=="array"||typeof _.N=="number"&&_.N!==0||(m=_),new Ep(m,p)}evaluate(){return this.value}eachChild(){}outputDefined(){return!0}serialize(){return this.type.kind==="array"||this.type.kind==="object"?["literal",this.value]:this.value instanceof cs?["rgba"].concat(this.value.toArray()):this.value instanceof Yc?this.value.serialize():this.value}}class sc{constructor(a){this.name="ExpressionEvaluationError",this.message=a}toJSON(){return this.message}}let L1={string:Zo,number:Tn,boolean:jo,object:Sv};class Ip{constructor(a,u){this.type=a,this.args=u}static parse(a,u){if(a.length<2)return u.error("Expected at least one argument.");let p,m=1,_=a[0];if(_==="array"){let S,I;if(a.length>2){let M=a[1];if(typeof M!="string"||!(M in L1)||M==="object")return u.error('The item type argument of "array" must be one of string, number, boolean',1);S=L1[M],m++}else S=Eo;if(a.length>3){if(a[2]!==null&&(typeof a[2]!="number"||a[2]<0||a[2]!==Math.floor(a[2])))return u.error('The length argument to "array" must be a positive integer literal',2);I=a[2],m++}p=mc(S,I)}else p=L1[_];let b=[];for(;ma.outputDefined())}serialize(){let a=this.type,u=[a.kind];if(a.kind==="array"){let p=a.itemType;if(p.kind==="string"||p.kind==="number"||p.kind==="boolean"){u.push(p.kind);let m=a.N;(typeof m=="number"||this.args.length>1)&&u.push(m)}}return u.concat(this.args.map(p=>p.serialize()))}}class Py{constructor(a){this.type=Ev,this.sections=a}static parse(a,u){if(a.length<2)return u.error("Expected at least one argument.");let p=a[1];if(!Array.isArray(p)&&typeof p=="object")return u.error("First argument must be an image or text section.");let m=[],_=!1;for(let b=1;b<=a.length-1;++b){let S=a[b];if(_&&typeof S=="object"&&!Array.isArray(S)){_=!1;let I=null;if(S["font-scale"]&&(I=u.parse(S["font-scale"],1,Tn),!I))return null;let M=null;if(S["text-font"]&&(M=u.parse(S["text-font"],1,mc(Zo)),!M))return null;let N=null;if(S["text-color"]&&(N=u.parse(S["text-color"],1,ah),!N))return null;let P=m[m.length-1];P.scale=I,P.font=M,P.textColor=N}else{let I=u.parse(a[b],1,Eo);if(!I)return null;let M=I.type.kind;if(M!=="string"&&M!=="value"&&M!=="null"&&M!=="resolvedImage")return u.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");_=!0,m.push({content:I,scale:null,font:null,textColor:null})}}return new Py(m)}evaluate(a){return new Yc(this.sections.map(u=>{let p=u.content.evaluate(a);return yl(p)===Oy?new gE("",p,null,null,null):new gE(kd(p),null,u.scale?u.scale.evaluate(a):null,u.font?u.font.evaluate(a).join(","):null,u.textColor?u.textColor.evaluate(a):null)}))}eachChild(a){for(let u of this.sections)a(u.content),u.scale&&a(u.scale),u.font&&a(u.font),u.textColor&&a(u.textColor)}outputDefined(){return!1}serialize(){let a=["format"];for(let u of this.sections){a.push(u.content.serialize());let p={};u.scale&&(p["font-scale"]=u.scale.serialize()),u.font&&(p["text-font"]=u.font.serialize()),u.textColor&&(p["text-color"]=u.textColor.serialize()),a.push(p)}return a}}class Ug{constructor(a,u){this.type=Oy,this.inputPrimary=a,this.inputSecondary=u}static parse(a,u){if(a.length<2)return u.error("Expected two or more arguments.");let p=u.parse(a[1],1,Zo);if(!p)return u.error("No image name provided.");if(a.length===2)return new Ug(p);let m=u.parse(a[2],1,Zo);return m?new Ug(p,m):u.error("Secondary image variant is not a string.")}evaluate(a){let u=ed.fromString(this.inputPrimary.evaluate(a),this.inputSecondary?this.inputSecondary.evaluate(a):void 0);return u&&a.availableImages&&(u.available=a.availableImages.indexOf(u.namePrimary)>-1,u.nameSecondary&&u.available&&a.availableImages&&(u.available=a.availableImages.indexOf(u.nameSecondary)>-1)),u}eachChild(a){a(this.inputPrimary),this.inputSecondary&&a(this.inputSecondary)}outputDefined(){return!1}serialize(){return this.inputSecondary?["image",this.inputPrimary.serialize(),this.inputSecondary.serialize()]:["image",this.inputPrimary.serialize()]}}function wf(l){return l instanceof Number?"number":l instanceof String?"string":l instanceof Boolean?"boolean":Array.isArray(l)?"array":l===null?"null":typeof l}let _P={"to-boolean":jo,"to-color":ah,"to-number":Tn,"to-string":Zo};class Cf{constructor(a,u){this.type=a,this.args=u}static parse(a,u){if(a.length<2)return u.error("Expected at least one argument.");let p=a[0],m=[],_=io;if(p==="to-array"){if(!Array.isArray(a[1]))return null;let b=a[1].length;if(u.expectedType){if(u.expectedType.kind!=="array")return u.error(`Expected ${u.expectedType.kind} but found array.`);_=mc(u.expectedType.itemType,b)}else{if(!(b>0&&Iv(a[1][0])))return null;_=mc(yl(a[1][0]),b)}for(let S=0;S4?`Invalid rbga value ${JSON.stringify(u)}: expected an array containing either three or four numeric values.`:gP(u[0],u[1],u[2],u[3]),!p))return new cs(u[0]/255,u[1]/255,u[2]/255,u[3])}throw new sc(p||`Could not parse color from value '${typeof u=="string"?u:String(JSON.stringify(u))}'`)}if(this.type.kind==="number"){let u=null;for(let p of this.args){if(u=p.evaluate(a),u===null)return 0;let m=Number(u);if(!isNaN(m))return m}throw new sc(`Could not convert ${JSON.stringify(u)} to number.`)}return this.type.kind==="formatted"?Yc.fromString(kd(this.args[0].evaluate(a))):this.type.kind==="resolvedImage"?ed.fromString(kd(this.args[0].evaluate(a))):this.type.kind==="array"?this.args.map(u=>u.evaluate(a)):kd(this.args[0].evaluate(a))}eachChild(a){this.args.forEach(a)}outputDefined(){return this.args.every(a=>a.outputDefined())}serialize(){if(this.type.kind==="formatted")return new Py([{content:this.args[0],scale:null,font:null,textColor:null}]).serialize();if(this.type.kind==="resolvedImage")return new Ug(this.args[0]).serialize();let a=this.type.kind==="array"?[]:[`to-${this.type.kind}`];return this.eachChild(u=>{a.push(u.serialize())}),a}}let vP=["Unknown","Point","LineString","Polygon"];class Ok{constructor(a,u){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache={},this.availableImages=null,this.canonical=null,this.featureTileCoord=null,this.featureDistanceData=null,this.scope=a,this.options=u}id(){return this.feature&&this.feature.id!==void 0?this.feature.id:null}geometryType(){return this.feature?typeof this.feature.type=="number"?vP[this.feature.type]:this.feature.type:null}geometry(){return this.feature&&"geometry"in this.feature?this.feature.geometry:null}canonicalID(){return this.canonical}properties(){return this.feature&&this.feature.properties||{}}measureLight(a){return this.globals.brightness||0}distanceFromCenter(){if(this.featureTileCoord&&this.featureDistanceData){let a=this.featureDistanceData.center,u=this.featureDistanceData.scale,{x:p,y:m}=this.featureTileCoord;return this.featureDistanceData.bearing[0]*(p*u-a[0])+this.featureDistanceData.bearing[1]*(m*u-a[1])}return 0}parseColor(a){let u=this._parseColorCache[a];return u||(u=this._parseColorCache[a]=cs.parse(a)),u}getConfig(a){return this.options?this.options.get(a):null}}class td{constructor(a,u,p,m,_){this.name=a,this.type=u,this._evaluate=p,this.args=m,this._overloadIndex=_}evaluate(a){if(!this._evaluate){let u=td.definitions[this.name];this._evaluate=Array.isArray(u)?u[2]:u.overloads[this._overloadIndex][1]}return this._evaluate(a,this.args)}eachChild(a){this.args.forEach(a)}outputDefined(){return!1}serialize(){return[this.name].concat(this.args.map(a=>a.serialize()))}static parse(a,u){let p=a[0],m=td.definitions[p];if(!m)return u.error(`Unknown expression "${p}". If you wanted a literal array, use ["literal", [...]].`,0);let _=Array.isArray(m)?m[0]:m.type,b=Array.isArray(m)?[[m[1],m[2]]]:m.overloads,S=[],I=null,M=-1;for(let[N,P]of b){if(Array.isArray(N)&&N.length!==a.length-1)continue;S.push(N),M++,I=new kE(u.registry,u.path,null,u.scope,void 0,u._scope,u.options);let V=[],H=!1;for(let Y=1;YV)).map(Rk).join(" | "),P=[];for(let V=1;V_;){if(b-_>600){var I=b-_+1,M=m-_+1,N=Math.log(I),P=.5*Math.exp(2*N/3),V=.5*Math.sqrt(N*P*(I-P)/I)*(M-I/2<0?-1:1);l(p,m,Math.max(_,Math.floor(m-M*P/I+V)),Math.min(b,Math.floor(m+(I-M)*P/I+V)),S)}var H=p[m],Y=_,W=b;for(a(p,_,m),S(p[b],H)>0&&a(p,_,b);Y0;)W--}S(p[_],H)===0?a(p,_,W):a(p,++W,b),W<=m&&(_=W+1),m<=W&&(b=W-1)}}function a(p,m,_){var b=p[m];p[m]=p[_],p[_]=b}function u(p,m){return pm?1:0}return function(p,m,_,b,S){l(p,m,_||0,b||p.length-1,S||u)}}();var Nk=L(_E.exports);function vE(l){let a=0;for(let u,p,m=0,_=l.length,b=_-1;m<_;b=m++)u=l[m],p=l[b],a+=(p.x-u.x)*(u.y+p.y);return a}function B1(l,a){l[0]=Math.min(l[0],a[0]),l[1]=Math.min(l[1],a[1]),l[2]=Math.max(l[2],a[0]),l[3]=Math.max(l[3],a[1])}function Fy(l,a){return!(l[0]<=a[0]||l[2]>=a[2]||l[1]<=a[1]||l[3]>=a[3])}function Pk(l,a,u){let p=l[0]-a[0],m=l[1]-a[1],_=l[0]-u[0],b=l[1]-u[1];return p*b-_*m==0&&p*_<=0&&m*b<=0}function Av(l,a,u=!1){let p=!1;for(let S=0,I=a.length;S(m=l)[1]!=(b=Y)[1]>m[1]&&m[0]<(b[0]-_[0])*(m[1]-_[1])/(b[1]-_[1])+_[0]&&(p=!p)}}var m,_,b;return p}function yE(l,a,u,p){let m=p[0]-u[0],_=p[1]-u[1],b=(l[0]-u[0])*_-m*(l[1]-u[1]),S=(a[0]-u[0])*_-m*(a[1]-u[1]);return b>0&&S<0||b<0&&S>0}function jg(l,a,u,p){return(m=[p[0]-u[0],p[1]-u[1]])[0]*(_=[a[0]-l[0],a[1]-l[1]])[1]-m[1]*_[0]!=0&&!(!yE(l,a,u,p)||!yE(u,p,l,a));var m,_}let Hg=8192;function yP(l,a){let u=(180+l[0])/360,p=(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+l[1]*Math.PI/360)))/360,m=Math.pow(2,a.z);return[Math.round(u*m*Hg),Math.round(p*m*Hg)]}function Fk(l,a){for(let u=0;uu[2]){let m=.5*p,_=l[0]-u[0]>m?-p:u[0]-l[0]>m?p:0;_===0&&(_=l[0]-u[2]>m?-p:u[2]-l[0]>m?p:0),l[0]+=_}B1(a,l)}function km(l,a,u,p){let m=Math.pow(2,p.z)*Hg,_=[p.x*Hg,p.y*Hg],b=[];if(!l)return b;for(let S of l)for(let I of S){let M=[I.x+_[0],I.y+_[1]];xE(M,a,u,m),b.push(M)}return b}function Bk(l,a,u,p){let m=Math.pow(2,p.z)*Hg,_=[p.x*Hg,p.y*Hg],b=[];if(!l)return b;for(let I of l){let M=[];for(let N of I){let P=[N.x+_[0],N.y+_[1]];B1(a,P),M.push(P)}b.push(M)}if(a[2]-a[0]<=m/2){(S=a)[0]=S[1]=1/0,S[2]=S[3]=-1/0;for(let I of b)for(let M of I)xE(M,a,u,m)}var S;return b}class Dv{constructor(a,u){this.type=jo,this.geojson=a,this.geometries=u}static parse(a,u){if(a.length!==2)return u.error(`'within' expression requires exactly one argument, but found ${a.length-1} instead.`);if(Iv(a[1])){let p=a[1];if(p.type==="FeatureCollection")for(let m=0;m180;)P-=360;return P}return b.fromTile=function(P,V,H){var Y=Math.PI*(1-2*(P+.5)/Math.pow(2,V)),W=Math.atan(.5*(Math.exp(Y)-Math.exp(-Y)))/_;return new b(W,H)},S.units.get=function(){return u},b.prototype.distance=function(P,V){var H=N(P[0]-V[0])*this.kx,Y=(P[1]-V[1])*this.ky;return Math.sqrt(H*H+Y*Y)},b.prototype.bearing=function(P,V){var H=N(V[0]-P[0])*this.kx;return Math.atan2(H,(V[1]-P[1])*this.ky)/_},b.prototype.destination=function(P,V,H){var Y=H*_;return this.offset(P,Math.sin(Y)*V,Math.cos(Y)*V)},b.prototype.offset=function(P,V,H){return[P[0]+V/this.kx,P[1]+H/this.ky]},b.prototype.lineDistance=function(P){for(var V=0,H=0;HV)return M(W,re,(V-(H-ue))/ue)}return P[P.length-1]},b.prototype.pointToSegmentDistance=function(P,V,H){var Y=V[0],W=V[1],re=N(H[0]-Y)*this.kx,ue=(H[1]-W)*this.ky,Te=0;return re===0&&ue===0||((Te=(N(P[0]-Y)*this.kx*re+(P[1]-W)*this.ky*ue)/(re*re+ue*ue))>1?(Y=H[0],W=H[1]):Te>0&&(Y+=re/this.kx*Te,W+=ue/this.ky*Te)),re=N(P[0]-Y)*this.kx,ue=(P[1]-W)*this.ky,Math.sqrt(re*re+ue*ue)},b.prototype.pointOnLine=function(P,V){for(var H,Y,W,re,ue=1/0,Te=0;Te1?(Pe=P[Te+1][0],De=P[Te+1][1]):at>0&&(Pe+=tt/this.kx*at,De+=Ye/this.ky*at));var _t=(tt=N(V[0]-Pe)*this.kx)*tt+(Ye=(V[1]-De)*this.ky)*Ye;_tW.index||Y.index===W.index&&Y.t>W.t){var re=Y;Y=W,W=re}var ue=[Y.point],Te=Y.index+1,Pe=W.index;!I(H[Te],ue[0])&&Te<=Pe&&ue.push(H[Te]);for(var De=Te+1;De<=Pe;De++)ue.push(H[De]);return I(H[Pe],W.point)||ue.push(W.point),ue},b.prototype.lineSliceAlong=function(P,V,H){for(var Y=0,W=[],re=0;reP&&W.length===0&&W.push(M(ue,Te,(P-(Y-Pe))/Pe)),Y>=V)return W.push(M(ue,Te,(V-(Y-Pe))/Pe)),W;Y>P&&W.push(Te)}return W},b.prototype.bufferPoint=function(P,V){var H=V/this.ky,Y=V/this.kx;return[P[0]-Y,P[1]-H,P[0]+Y,P[1]+H]},b.prototype.bufferBBox=function(P,V){var H=V/this.ky,Y=V/this.kx;return[P[0]-Y,P[1]-H,P[2]+Y,P[3]+H]},b.prototype.insideBBox=function(P,V){return N(P[0]-V[0])>=0&&N(P[0]-V[2])<=0&&P[1]>=V[1]&&P[1]<=V[3]},Object.defineProperties(b,S),b}()})(zk);var kv=L(zk.exports),wE={exports:{}};(function(l,a){l.exports=function(){var u=function(m,_){if(m===void 0&&(m=[]),_===void 0&&(_=p),this.data=m,this.length=this.data.length,this.compare=_,this.length>0)for(var b=(this.length>>1)-1;b>=0;b--)this._down(b)};function p(m,_){return m<_?-1:m>_?1:0}return u.prototype.push=function(m){this.data.push(m),this.length++,this._up(this.length-1)},u.prototype.pop=function(){if(this.length!==0){var m=this.data[0],_=this.data.pop();return this.length--,this.length>0&&(this.data[0]=_,this._down(0)),m}},u.prototype.peek=function(){return this.data[0]},u.prototype._up=function(m){for(var _=this.data,b=this.compare,S=_[m];m>0;){var I=m-1>>1,M=_[I];if(b(S,M)>=0)break;_[m]=M,m=I}_[m]=S},u.prototype._down=function(m){for(var _=this.data,b=this.compare,S=this.length>>1,I=_[m];m=0)break;_[m]=N,m=M}_[m]=I},u}()})(wE);var CE=L(wE.exports),dn=8192;function Mm(l,a){return a.dist-l.dist}let Vk=100,SE=50;function EE(l){let a=[1/0,1/0,-1/0,-1/0];if(a.length!==l.length)return!1;for(let u=0;u=l[0]&&l[1]l[1])return[null,null];let u=By(l);if(a){if(u===2)return[l,null];let p=Math.floor(u/2);return[[l[0],l[0]+p],[l[0]+p,l[1]]]}{if(u===1)return[l,null];let p=Math.floor(u/2)-1;return[[l[0],l[0]+p],[l[0]+p+1,l[1]]]}}function Ol(l,a){let u=[1/0,1/0,-1/0,-1/0];if(!Sf(a,l.length))return u;for(let p=a[0];p<=a[1];++p)B1(u,l[p]);return u}function IE(l){let a=[1/0,1/0,-1/0,-1/0];for(let u=0;ua[2]&&(p=l[0]-a[2]),l[1]>a[3]&&(m=l[1]-a[3]),l[3]=p)return p;if(Fy(m,_)){if(AE(l,a))return 0}else if(AE(a,l))return 0;let b=p;for(let S of l)for(let I=0,M=S.length,N=M-1;I=_)continue;let N=M.range1;if(By(N)<=S){if(!Sf(N,l.length))return NaN;if(a){let P=H1(l,N,u,p);if((_=Math.min(_,P))===0)return _}else for(let P=N[0];P<=N[1];++P){let V=CP(l[P],u,p);if((_=Math.min(_,V))===0)return _}}else{let P=U1(N,a);if(P[0]!==null){let V=zy(Ol(l,P[0]),I,p);V<_&&b.push({dist:V,range1:P[0],range2:[0,0]})}if(P[1]!==null){let V=zy(Ol(l,P[1]),I,p);V<_&&b.push({dist:V,range1:P[1],range2:[0,0]})}}}return _}function Oa(l,a,u,p,m,_=1/0){let b=Math.min(_,m.distance(l[0],u[0]));if(b===0)return b;let S=new CE([{dist:0,range1:[0,l.length-1],range2:[0,u.length-1]}],Mm),I=a?SE:Vk,M=p?SE:Vk;for(;S.length;){let N=S.pop();if(N.dist>=b)continue;let P=N.range1,V=N.range2;if(By(P)<=I&&By(V)<=M){if(!Sf(P,l.length)||!Sf(V,u.length))return NaN;if(a&&p?b=Math.min(b,Mv(l,P,u,V,m)):a||p?a&&!p?b=Math.min(b,wP(u,V,l,P,m)):!a&&p&&(b=Math.min(b,wP(l,P,u,V,m))):b=Math.min(b,TE(l,P,u,V,m)),b===0)return b}else{let H=U1(P,a),Y=U1(V,p);Fh(S,b,m,l,u,H[0],Y[0]),Fh(S,b,m,l,u,H[0],Y[1]),Fh(S,b,m,l,u,H[1],Y[0]),Fh(S,b,m,l,u,H[1],Y[1])}}return b}function Gk(l,a,u,p,m=1/0){let _=m,b=Ol(l,[0,l.length-1]);for(let S of u)if(!(_!==1/0&&zy(b,Ol(S,[0,S.length-1]),p)>=_)&&(_=Math.min(_,Oa(l,a,S,!0,p,_)),_===0))return _;return _}function G1(l,a,u,p,m=1/0){let _=m,b=Ol(l,[0,l.length-1]);for(let S of u){if(_!==1/0&&zy(b,IE(S),p)>=_)continue;let I=Hk(l,a,S,p,_);if(isNaN(I))return I;if((_=Math.min(_,I))===0)return _}return _}function Yk(l){return l==="Point"||l==="MultiPoint"||l==="LineString"||l==="MultiLineString"||l==="Polygon"||l==="MultiPolygon"}class Gg{constructor(a,u){this.type=Tn,this.geojson=a,this.geometries=u}static parse(a,u){if(a.length!==2)return u.error(`'distance' expression requires either one argument, but found ' ${a.length-1} instead.`);if(Iv(a[1])){let p=a[1];if(p.type==="FeatureCollection"){for(let m=0;mu&&(l=u),l}class Yg{constructor(a,u,p){this.type=a,this.key=u,this.scope=p}static parse(a,u){let p=u.expectedType;if(p==null&&(p=Eo),a.length<2||a.length>3)return u.error("Invalid number of arguments for 'config' expression.");let m=u.parse(a[1],1);if(!(m instanceof Ep))return u.error("Key name of 'config' expression must be a string literal.");if(a.length>=3){let _=u.parse(a[2],2);return _ instanceof Ep?new Yg(p,kd(m.value),kd(_.value)):u.error("Scope of 'config' expression must be a string literal.")}return new Yg(p,kd(m.value))}evaluate(a){let u=[this.key,this.scope,a.scope].filter(Boolean).join(""),p=a.getConfig(u);if(!p)return null;let{type:m,value:_,values:b,minValue:S,maxValue:I,stepValue:M}=p,N=p.default.evaluate(a),P=N;if(_){let V=a.scope;a.scope=(V||"").split("").slice(1).join(""),P=_.evaluate(a),a.scope=V}return m&&(P=qk(m,P)),P===void 0||S===void 0&&I===void 0&&M===void 0||(typeof P=="number"?P=DE(P,S,I,M):Array.isArray(P)&&(P=P.map(V=>typeof V=="number"?DE(V,S,I,M):V))),_!==void 0&&P!==void 0&&b&&!b.includes(P)&&(P=N,m&&(P=qk(m,P))),(m&&m!==this.type||P!==void 0&&yl(P)!==this.type)&&(P=qk(this.type.kind,P)),P}eachChild(){}outputDefined(){return!1}serialize(){let a=["config",this.key];return this.scope&&a.concat(this.key),a}}function Om(l){if(l instanceof td&&(l.name==="get"&&l.args.length===1||l.name==="feature-state"||l.name==="has"&&l.args.length===1||l.name==="properties"||l.name==="geometry-type"||l.name==="id"||/^filter-/.test(l.name))||l instanceof Dv||l instanceof Gg)return!1;let a=!0;return l.eachChild(u=>{a&&!Om(u)&&(a=!1)}),a}function Y1(l){if(l instanceof td&&l.name==="feature-state")return!1;let a=!0;return l.eachChild(u=>{a&&!Y1(u)&&(a=!1)}),a}function Vy(l){if(l instanceof Yg)return!1;let a=!0;return l.eachChild(u=>{a&&!Vy(u)&&(a=!1)}),a}function q1(l,a){if(l instanceof td&&a.indexOf(l.name)>=0)return!1;let u=!0;return l.eachChild(p=>{u&&!q1(p,a)&&(u=!1)}),u}class Md{constructor(a,u){this.type=u.type,this.name=a,this.boundExpression=u}static parse(a,u){if(a.length!==2||typeof a[1]!="string")return u.error("'var' expression requires exactly one string literal argument.");let p=a[1];return u.scope.has(p)?new Md(p,u.scope.get(p)):u.error(`Unknown variable "${p}". Make sure "${p}" has been bound in an enclosing "let" expression before using it.`,1)}evaluate(a){return this.boundExpression.evaluate(a)}eachChild(){}outputDefined(){return!1}serialize(){return["var",this.name]}}class kE{constructor(a,u=[],p,m=new Am,_=[],b,S){this.registry=a,this.path=u,this.key=u.map(I=>`[${I}]`).join(""),this.scope=m,this.errors=_,this.expectedType=p,this._scope=b,this.options=S}parse(a,u,p,m,_={}){return u||p?this.concat(u,p,m)._parse(a,_):this._parse(a,_)}_parse(a,u){function p(m,_,b){return b==="assert"?new Ip(_,[m]):b==="coerce"?new Cf(_,[m]):m}if(a!==null&&typeof a!="string"&&typeof a!="boolean"&&typeof a!="number"||(a=["literal",a]),Array.isArray(a)){if(a.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');let m=typeof a[0]=="string"?this.registry[a[0]]:void 0;if(m){let _=m.parse(a,this);if(!_)return null;if(this.expectedType){let b=this.expectedType,S=_.type;if(b.kind!=="string"&&b.kind!=="number"&&b.kind!=="boolean"&&b.kind!=="object"&&b.kind!=="array"||S.kind!=="value")if(b.kind!=="color"&&b.kind!=="formatted"&&b.kind!=="resolvedImage"||S.kind!=="value"&&S.kind!=="string"){if(this.checkSubtype(b,S))return null}else _=p(_,b,u.typeAnnotation||"coerce");else _=p(_,b,u.typeAnnotation||"assert")}if(!(_ instanceof Ep)&&_.type.kind!=="resolvedImage"&&$1(_)){let b=new Ok(this._scope,this.options);try{_=new Ep(_.type,_.evaluate(b))}catch(S){return this.error(S.message),null}}return _}return Cf.parse(["to-array",a],this)}return this.error(a===void 0?"'undefined' value invalid. Use null instead.":typeof a=="object"?'Bare objects invalid. Use ["literal", {...}] instead.':`Expected an array, but found ${typeof a} instead.`)}concat(a,u,p){let m=typeof a=="number"?this.path.concat(a):this.path,_=p?this.scope.concat(p):this.scope;return new kE(this.registry,m,u||null,_,this.errors,this._scope,this.options)}error(a,...u){let p=`${this.key}${u.map(m=>`[${m}]`).join("")}`;this.errors.push(new Sp(p,a))}checkSubtype(a,u){let p=Ry(a,u);return p&&this.error(p),p}}function $1(l){if(l instanceof Md)return $1(l.boundExpression);if(l instanceof td&&l.name==="error"||l instanceof Tv||l instanceof Dv||l instanceof Gg||l instanceof Yg)return!1;let a=l instanceof Cf||l instanceof Ip,u=!0;return l.eachChild(p=>{u=a?u&&$1(p):u&&p instanceof Ep}),!!u&&Om(l)&&q1(l,["zoom","heatmap-density","line-progress","raster-value","sky-radial-progress","accumulated","is-supported-script","pitch","distance-from-center","measure-light","raster-particle-speed"])}function ME(l,a){let u=l.length-1,p,m,_=0,b=u,S=0;for(;_<=b;)if(S=Math.floor((_+b)/2),p=l[S],m=l[S+1],p<=a){if(S===u||aa))throw new sc("Input is not a number.");b=S-1}return 0}class Uy{constructor(a,u,p){this.type=a,this.input=u,this.labels=[],this.outputs=[];for(let[m,_]of p)this.labels.push(m),this.outputs.push(_)}static parse(a,u){if(a.length-1<4)return u.error(`Expected at least 4 arguments, but found only ${a.length-1}.`);if((a.length-1)%2!=0)return u.error("Expected an even number of arguments.");let p=u.parse(a[1],1,Tn);if(!p)return null;let m=[],_=null;u.expectedType&&u.expectedType.kind!=="value"&&(_=u.expectedType);for(let b=1;b=S)return u.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',M);let P=u.parse(I,N,_);if(!P)return null;_=_||P.type,m.push([S,P])}return new Uy(_,p,m)}evaluate(a){let u=this.labels,p=this.outputs;if(u.length===1)return p[0].evaluate(a);let m=this.input.evaluate(a);if(m<=u[0])return p[0].evaluate(a);let _=u.length;return m>=u[_-1]?p[_-1].evaluate(a):p[ME(u,m)].evaluate(a)}eachChild(a){a(this.input);for(let u of this.outputs)a(u)}outputDefined(){return this.outputs.every(a=>a.outputDefined())}serialize(){let a=["step",this.input.serialize()];for(let u=0;u0&&a.push(this.labels[u]),a.push(this.outputs[u].serialize());return a}}let SP=.95047,$k=1.08883,OE=4/29,qg=6/29,EP=3*qg*qg,Kk=qg*qg*qg,kU=Math.PI/180,Wk=180/Math.PI;function jy(l){return l>Kk?Math.pow(l,1/3):l/EP+OE}function RE(l){return l>qg?l*l*l:EP*(l-OE)}function Zk(l){return 255*(l<=.0031308?12.92*l:1.055*Math.pow(l,1/2.4)-.055)}function NE(l){return(l/=255)<=.04045?l/12.92:Math.pow((l+.055)/1.055,2.4)}function IP(l){let a=NE(l.r),u=NE(l.g),p=NE(l.b),m=jy((.4124564*a+.3575761*u+.1804375*p)/SP),_=jy((.2126729*a+.7151522*u+.072175*p)/1);return{l:116*_-16,a:500*(m-_),b:200*(_-jy((.0193339*a+.119192*u+.9503041*p)/$k)),alpha:l.a}}function Qk(l){let a=(l.l+16)/116,u=isNaN(l.a)?a:a+l.a/500,p=isNaN(l.b)?a:a-l.b/200;return a=1*RE(a),u=SP*RE(u),p=$k*RE(p),new cs(Zk(3.2404542*u-1.5371385*a-.4985314*p),Zk(-.969266*u+1.8760108*a+.041556*p),Zk(.0556434*u-.2040259*a+1.0572252*p),l.alpha)}function PE(l,a,u){let p=a-l;return l+u*(p>180||p<-180?p-360*Math.round(p/360):p)}let Rm={forward:IP,reverse:Qk,interpolate:function(l,a,u){return{l:Jr(l.l,a.l,u),a:Jr(l.a,a.a,u),b:Jr(l.b,a.b,u),alpha:Jr(l.alpha,a.alpha,u)}}},ou={forward:function(l){let{l:a,a:u,b:p}=IP(l),m=Math.atan2(p,u)*Wk;return{h:m<0?m+360:m,c:Math.sqrt(u*u+p*p),l:a,alpha:l.a}},reverse:function(l){let a=l.h*kU,u=l.c;return Qk({l:l.l,a:Math.cos(a)*u,b:Math.sin(a)*u,alpha:l.alpha})},interpolate:function(l,a,u){return{h:PE(l.h,a.h,u),c:Jr(l.c,a.c,u),l:Jr(l.l,a.l,u),alpha:Jr(l.alpha,a.alpha,u)}}};var Hy=Object.freeze({__proto__:null,hcl:ou,lab:Rm});class lh{constructor(a,u,p,m,_){this.type=a,this.operator=u,this.interpolation=p,this.input=m,this.labels=[],this.outputs=[];for(let[b,S]of _)this.labels.push(b),this.outputs.push(S)}static interpolationFactor(a,u,p,m){let _=0;if(a.name==="exponential")_=FE(u,a.base,p,m);else if(a.name==="linear")_=FE(u,1,p,m);else if(a.name==="cubic-bezier"){let b=a.controlPoints;_=new $S(b[0],b[1],b[2],b[3]).solve(FE(u,1,p,m))}return _}static parse(a,u){let[p,m,_,...b]=a;if(!Array.isArray(m)||m.length===0)return u.error("Expected an interpolation type expression.",1);if(m[0]==="linear")m={name:"linear"};else if(m[0]==="exponential"){let M=m[1];if(typeof M!="number")return u.error("Exponential interpolation requires a numeric base.",1,1);m={name:"exponential",base:M}}else{if(m[0]!=="cubic-bezier")return u.error(`Unknown interpolation type ${String(m[0])}`,1,0);{let M=m.slice(1);if(M.length!==4||M.some(N=>typeof N!="number"||N<0||N>1))return u.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);m={name:"cubic-bezier",controlPoints:M}}}if(a.length-1<4)return u.error(`Expected at least 4 arguments, but found only ${a.length-1}.`);if((a.length-1)%2!=0)return u.error("Expected an even number of arguments.");if(_=u.parse(_,2,Tn),!_)return null;let S=[],I=null;p==="interpolate-hcl"||p==="interpolate-lab"?I=ah:u.expectedType&&u.expectedType.kind!=="value"&&(I=u.expectedType);for(let M=0;M=N)return u.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',V);let Y=u.parse(P,H,I);if(!Y)return null;I=I||Y.type,S.push([N,Y])}return I.kind==="number"||I.kind==="color"||I.kind==="array"&&I.itemType.kind==="number"&&typeof I.N=="number"?new lh(I,p,m,_,S):u.error(`Type ${Ha(I)} is not interpolatable.`)}evaluate(a){let u=this.labels,p=this.outputs;if(u.length===1)return p[0].evaluate(a);let m=this.input.evaluate(a);if(m<=u[0])return p[0].evaluate(a);let _=u.length;if(m>=u[_-1])return p[_-1].evaluate(a);let b=ME(u,m),S=lh.interpolationFactor(this.interpolation,m,u[b],u[b+1]),I=p[b].evaluate(a),M=p[b+1].evaluate(a);return this.operator==="interpolate"?My[this.type.kind.toLowerCase()](I,M,S):this.operator==="interpolate-hcl"?ou.reverse(ou.interpolate(ou.forward(I),ou.forward(M),S)):Rm.reverse(Rm.interpolate(Rm.forward(I),Rm.forward(M),S))}eachChild(a){a(this.input);for(let u of this.outputs)a(u)}outputDefined(){return this.outputs.every(a=>a.outputDefined())}serialize(){let a;a=this.interpolation.name==="linear"?["linear"]:this.interpolation.name==="exponential"?this.interpolation.base===1?["linear"]:["exponential",this.interpolation.base]:["cubic-bezier"].concat(this.interpolation.controlPoints);let u=[this.operator,a,this.input.serialize()];for(let p=0;pRy(m,S.type));return new LE(b?Eo:p,_)}evaluate(a){let u,p=null,m=0;for(let _ of this.args){if(m++,p=_.evaluate(a),p&&p instanceof ed&&!p.available&&(u||(u=p),p=null,m===this.args.length))return u;if(p!==null)break}return p}eachChild(a){this.args.forEach(a)}outputDefined(){return this.args.every(a=>a.outputDefined())}serialize(){let a=["coalesce"];return this.eachChild(u=>{a.push(u.serialize())}),a}}class K1{constructor(a,u){this.type=u.type,this.bindings=[].concat(a),this.result=u}evaluate(a){return this.result.evaluate(a)}eachChild(a){for(let u of this.bindings)a(u[1]);a(this.result)}static parse(a,u){if(a.length<4)return u.error(`Expected at least 3 arguments, but found ${a.length-1} instead.`);let p=[];for(let _=1;_=p.length)throw new sc(`Array index out of bounds: ${u} > ${p.length-1}.`);if(u!==Math.floor(u))throw new sc(`Array index must be an integer, but found ${u} instead.`);return p[u]}eachChild(a){a(this.index),a(this.input)}outputDefined(){return!1}serialize(){return["at",this.index.serialize(),this.input.serialize()]}}class BE{constructor(a,u){this.type=jo,this.needle=a,this.haystack=u}static parse(a,u){if(a.length!==3)return u.error(`Expected 2 arguments, but found ${a.length-1} instead.`);let p=u.parse(a[1],1,Eo),m=u.parse(a[2],2,Eo);return p&&m?Ny(p.type,[jo,Zo,Tn,io,Eo])?new BE(p,m):u.error(`Expected first argument to be of type boolean, string, number or null, but found ${Ha(p.type)} instead`):null}evaluate(a){let u=this.needle.evaluate(a),p=this.haystack.evaluate(a);if(p==null)return!1;if(!Dm(u,["boolean","string","number","null"]))throw new sc(`Expected first argument to be of type boolean, string, number or null, but found ${Ha(yl(u))} instead.`);if(!Dm(p,["string","array"]))throw new sc(`Expected second argument to be of type array or string, but found ${Ha(yl(p))} instead.`);return p.indexOf(u)>=0}eachChild(a){a(this.needle),a(this.haystack)}outputDefined(){return!0}serialize(){return["in",this.needle.serialize(),this.haystack.serialize()]}}class Gy{constructor(a,u,p){this.type=Tn,this.needle=a,this.haystack=u,this.fromIndex=p}static parse(a,u){if(a.length<=2||a.length>=5)return u.error(`Expected 3 or 4 arguments, but found ${a.length-1} instead.`);let p=u.parse(a[1],1,Eo),m=u.parse(a[2],2,Eo);if(!p||!m)return null;if(!Ny(p.type,[jo,Zo,Tn,io,Eo]))return u.error(`Expected first argument to be of type boolean, string, number or null, but found ${Ha(p.type)} instead`);if(a.length===4){let _=u.parse(a[3],3,Tn);return _?new Gy(p,m,_):null}return new Gy(p,m)}evaluate(a){let u=this.needle.evaluate(a),p=this.haystack.evaluate(a);if(!Dm(u,["boolean","string","number","null"]))throw new sc(`Expected first argument to be of type boolean, string, number or null, but found ${Ha(yl(u))} instead.`);if(!Dm(p,["string","array"]))throw new sc(`Expected second argument to be of type array or string, but found ${Ha(yl(p))} instead.`);if(this.fromIndex){let m=this.fromIndex.evaluate(a);return p.indexOf(u,m)}return p.indexOf(u)}eachChild(a){a(this.needle),a(this.haystack),this.fromIndex&&a(this.fromIndex)}outputDefined(){return!1}serialize(){if(this.fromIndex!=null&&this.fromIndex!==void 0){let a=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),a]}return["index-of",this.needle.serialize(),this.haystack.serialize()]}}class zE{constructor(a,u,p,m,_,b){this.inputType=a,this.type=u,this.input=p,this.cases=m,this.outputs=_,this.otherwise=b}static parse(a,u){if(a.length<5)return u.error(`Expected at least 4 arguments, but found only ${a.length-1}.`);if(a.length%2!=1)return u.error("Expected an even number of arguments.");let p,m;u.expectedType&&u.expectedType.kind!=="value"&&(m=u.expectedType);let _={},b=[];for(let M=2;MNumber.MAX_SAFE_INTEGER)return V.error(`Branch labels must be integers no larger than ${Number.MAX_SAFE_INTEGER}.`);if(typeof Y=="number"&&Math.floor(Y)!==Y)return V.error("Numeric branch labels must be integer values.");if(p){if(V.checkSubtype(p,yl(Y)))return null}else p=yl(Y);if(_[String(Y)]!==void 0)return V.error("Branch labels must be unique.");_[String(Y)]=b.length}let H=u.parse(P,M,m);if(!H)return null;m=m||H.type,b.push(H)}let S=u.parse(a[1],1,Eo);if(!S)return null;let I=u.parse(a[a.length-1],a.length-1,m);return I?S.type.kind!=="value"&&u.concat(1).checkSubtype(p,S.type)?null:new zE(p,m,S,_,b,I):null}evaluate(a){let u=this.input.evaluate(a);return(yl(u)===this.inputType&&this.outputs[this.cases[u]]||this.otherwise).evaluate(a)}eachChild(a){a(this.input),this.outputs.forEach(a),a(this.otherwise)}outputDefined(){return this.outputs.every(a=>a.outputDefined())&&this.otherwise.outputDefined()}serialize(){let a=["match",this.input.serialize()],u=Object.keys(this.cases).sort(),p=[],m={};for(let b of u){let S=m[this.cases[b]];S===void 0?(m[this.cases[b]]=p.length,p.push([this.cases[b],[b]])):p[S][1].push(b)}let _=b=>this.inputType.kind==="number"?Number(b):b;for(let[b,S]of p)a.push(S.length===1?_(S[0]):S.map(_)),a.push(this.outputs[b].serialize());return a.push(this.otherwise.serialize()),a}}class Xk{constructor(a,u,p){this.type=a,this.branches=u,this.otherwise=p}static parse(a,u){if(a.length<4)return u.error(`Expected at least 3 arguments, but found only ${a.length-1}.`);if(a.length%2!=0)return u.error("Expected an odd number of arguments.");let p;u.expectedType&&u.expectedType.kind!=="value"&&(p=u.expectedType);let m=[];for(let b=1;bu.outputDefined())&&this.otherwise.outputDefined()}serialize(){let a=["case"];return this.eachChild(u=>{a.push(u.serialize())}),a}}class Ov{constructor(a,u,p,m){this.type=a,this.input=u,this.beginIndex=p,this.endIndex=m}static parse(a,u){if(a.length<=2||a.length>=5)return u.error(`Expected 3 or 4 arguments, but found ${a.length-1} instead.`);let p=u.parse(a[1],1,Eo),m=u.parse(a[2],2,Tn);if(!p||!m)return null;if(!Ny(p.type,[mc(Eo),Zo,Eo]))return u.error(`Expected first argument to be of type array or string, but found ${Ha(p.type)} instead`);if(a.length===4){let _=u.parse(a[3],3,Tn);return _?new Ov(p.type,p,m,_):null}return new Ov(p.type,p,m)}evaluate(a){let u=this.input.evaluate(a),p=this.beginIndex.evaluate(a);if(!Dm(u,["string","array"]))throw new sc(`Expected first argument to be of type array or string, but found ${Ha(yl(u))} instead.`);if(this.endIndex){let m=this.endIndex.evaluate(a);return u.slice(p,m)}return u.slice(p)}eachChild(a){a(this.input),a(this.beginIndex),this.endIndex&&a(this.endIndex)}outputDefined(){return!1}serialize(){if(this.endIndex!=null&&this.endIndex!==void 0){let a=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),a]}return["slice",this.input.serialize(),this.beginIndex.serialize()]}}function VE(l,a){return l==="=="||l==="!="?a.kind==="boolean"||a.kind==="string"||a.kind==="number"||a.kind==="null"||a.kind==="value":a.kind==="string"||a.kind==="number"||a.kind==="value"}function Z1(l,a,u,p){return p.compare(a,u)===0}function $g(l,a,u){let p=l!=="=="&&l!=="!=";return class tYe{constructor(_,b,S){this.type=jo,this.lhs=_,this.rhs=b,this.collator=S,this.hasUntypedArgument=_.type.kind==="value"||b.type.kind==="value"}static parse(_,b){if(_.length!==3&&_.length!==4)return b.error("Expected two or three arguments.");let S=_[0],I=b.parse(_[1],1,Eo);if(!I)return null;if(!VE(S,I.type))return b.concat(1).error(`"${S}" comparisons are not supported for type '${Ha(I.type)}'.`);let M=b.parse(_[2],2,Eo);if(!M)return null;if(!VE(S,M.type))return b.concat(2).error(`"${S}" comparisons are not supported for type '${Ha(M.type)}'.`);if(I.type.kind!==M.type.kind&&I.type.kind!=="value"&&M.type.kind!=="value")return b.error(`Cannot compare types '${Ha(I.type)}' and '${Ha(M.type)}'.`);p&&(I.type.kind==="value"&&M.type.kind!=="value"?I=new Ip(M.type,[I]):I.type.kind!=="value"&&M.type.kind==="value"&&(M=new Ip(I.type,[M])));let N=null;if(_.length===4){if(I.type.kind!=="string"&&M.type.kind!=="string"&&I.type.kind!=="value"&&M.type.kind!=="value")return b.error("Cannot use collator to compare non-string types.");if(N=b.parse(_[3],3,F1),!N)return null}return new tYe(I,M,N)}evaluate(_){let b=this.lhs.evaluate(_),S=this.rhs.evaluate(_);if(p&&this.hasUntypedArgument){let I=yl(b),M=yl(S);if(I.kind!==M.kind||I.kind!=="string"&&I.kind!=="number")throw new sc(`Expected arguments for "${l}" to be (string, string) or (number, number), but found (${I.kind}, ${M.kind}) instead.`)}if(this.collator&&!p&&this.hasUntypedArgument){let I=yl(b),M=yl(S);if(I.kind!=="string"||M.kind!=="string")return a(_,b,S)}return this.collator?u(_,b,S,this.collator.evaluate(_)):a(_,b,S)}eachChild(_){_(this.lhs),_(this.rhs),this.collator&&_(this.collator)}outputDefined(){return!0}serialize(){let _=[l];return this.eachChild(b=>{_.push(b.serialize())}),_}}}let TP=$g("==",function(l,a,u){return a===u},Z1),Q1=$g("!=",function(l,a,u){return a!==u},function(l,a,u,p){return!Z1(0,a,u,p)}),UE=$g("<",function(l,a,u){return a",function(l,a,u){return a>u},function(l,a,u,p){return p.compare(a,u)>0}),DP=$g("<=",function(l,a,u){return a<=u},function(l,a,u,p){return p.compare(a,u)<=0}),kP=$g(">=",function(l,a,u){return a>=u},function(l,a,u,p){return p.compare(a,u)>=0});class jE{constructor(a,u,p,m,_,b){this.type=Zo,this.number=a,this.locale=u,this.currency=p,this.unit=m,this.minFractionDigits=_,this.maxFractionDigits=b}static parse(a,u){if(a.length!==3)return u.error("Expected two arguments.");let p=u.parse(a[1],1,Tn);if(!p)return null;let m=a[2];if(typeof m!="object"||Array.isArray(m))return u.error("NumberFormat options argument must be an object.");let _=null;if(m.locale&&(_=u.parse(m.locale,1,Zo),!_))return null;let b=null;if(m.currency&&(b=u.parse(m.currency,1,Zo),!b))return null;let S=null;if(m.unit&&(S=u.parse(m.unit,1,Zo),!S))return null;let I=null;if(m["min-fraction-digits"]&&(I=u.parse(m["min-fraction-digits"],1,Tn),!I))return null;let M=null;return m["max-fraction-digits"]&&(M=u.parse(m["max-fraction-digits"],1,Tn),!M)?null:new jE(p,_,b,S,I,M)}evaluate(a){return new Intl.NumberFormat(this.locale?this.locale.evaluate(a):[],{style:(this.currency?"currency":this.unit&&"unit")||"decimal",currency:this.currency?this.currency.evaluate(a):void 0,unit:this.unit?this.unit.evaluate(a):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(a):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(a):void 0}).format(this.number.evaluate(a))}eachChild(a){a(this.number),this.locale&&a(this.locale),this.currency&&a(this.currency),this.unit&&a(this.unit),this.minFractionDigits&&a(this.minFractionDigits),this.maxFractionDigits&&a(this.maxFractionDigits)}outputDefined(){return!1}serialize(){let a={};return this.locale&&(a.locale=this.locale.serialize()),this.currency&&(a.currency=this.currency.serialize()),this.unit&&(a.unit=this.unit.serialize()),this.minFractionDigits&&(a["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(a["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),a]}}class Rv{constructor(a){this.type=Tn,this.input=a}static parse(a,u){if(a.length!==2)return u.error(`Expected 1 argument, but found ${a.length-1} instead.`);let p=u.parse(a[1],1);return p?p.type.kind!=="array"&&p.type.kind!=="string"&&p.type.kind!=="value"?u.error(`Expected argument of type string or array, but found ${Ha(p.type)} instead.`):new Rv(p):null}evaluate(a){let u=this.input.evaluate(a);if(typeof u=="string"||Array.isArray(u))return u.length;throw new sc(`Expected value to be of type string or array, but found ${Ha(yl(u))} instead.`)}eachChild(a){a(this.input)}outputDefined(){return!1}serialize(){let a=["length"];return this.eachChild(u=>{a.push(u.serialize())}),a}}function HE(l){return function(){l=1831565813+(l|=0)|0;let a=Math.imul(l^l>>>15,1|l);return a=a+Math.imul(a^a>>>7,61|a)^a,((a^a>>>14)>>>0)/4294967296}}let Nv={"==":TP,"!=":Q1,">":AP,"<":UE,">=":kP,"<=":DP,array:Ip,at:W1,boolean:Ip,case:Xk,coalesce:LE,collator:Tv,format:Py,image:Ug,in:BE,"index-of":Gy,interpolate:lh,"interpolate-hcl":lh,"interpolate-lab":lh,length:Rv,let:K1,literal:Ep,match:zE,number:Ip,"number-format":jE,object:Ip,slice:Ov,step:Uy,string:Ip,"to-boolean":Cf,"to-color":Cf,"to-number":Cf,"to-string":Cf,var:Md,within:Dv,distance:Gg,config:Yg};function Jk(l,[a,u,p,m]){a=a.evaluate(l),u=u.evaluate(l),p=p.evaluate(l);let _=m?m.evaluate(l):1,b=gP(a,u,p,_);if(b)throw new sc(b);return new cs(a/255*_,u/255*_,p/255*_,_)}function Tp(l,[a,u,p,m]){a=a.evaluate(l),u=u.evaluate(l),p=p.evaluate(l);let _=m?m.evaluate(l):1,b=function(M,N,P,V){return typeof M=="number"&&M>=0&&M<=360?typeof N=="number"&&N>=0&&N<=100&&typeof P=="number"&&P>=0&&P<=100?V===void 0||typeof V=="number"&&V>=0&&V<=1?null:`Invalid hsla value [${[M,N,P,V].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid hsla value [${(typeof V=="number"?[M,N,P,V]:[M,N,P]).join(", ")}]: 's', and 'l' must be between 0 and 100.`:`Invalid hsla value [${(typeof V=="number"?[M,N,P,V]:[M,N,P]).join(", ")}]: 'h' must be between 0 and 360.`}(a,u,p,_);if(b)throw new sc(b);let S=`hsla(${a}, ${u}%, ${p}%, ${_})`,I=cs.parse(S);if(!I)throw new sc(`Failed to parse HSLA color: ${S}`);return I}function eM(l,a){return l in a}function tM(l,a){let u=a[l];return u===void 0?null:u}function Kg(l){return{type:l}}function MP(l){return{result:"success",value:l}}function Wg(l){return{result:"error",value:l}}function OP(l,a){return!!l&&!!l.parameters&&l.parameters.indexOf(a)>-1}function X1(l){return l["property-type"]==="data-driven"}function RP(l){return OP(l.expression,"measure-light")}function iM(l){return OP(l.expression,"zoom")}function Yy(l){return!!l.expression&&l.expression.interpolated}function GE(l){return typeof l=="object"&&l!==null&&!Array.isArray(l)}function MU(l){return l}function qy(l,a){let u=a.type==="color",p=l.stops&&typeof l.stops[0][0]=="object",m=p||!(p||l.property!==void 0),_=l.type||(Yy(a)?"exponential":"interval");if(u&&((l=Vg({},l)).stops&&(l.stops=l.stops.map(M=>[M[0],cs.parse(M[1])])),l.default=cs.parse(l.default?l.default:a.default)),l.colorSpace&&l.colorSpace!=="rgb"&&!Hy[l.colorSpace])throw new Error(`Unknown color space: ${l.colorSpace}`);let b,S,I;if(_==="exponential")b=YE;else if(_==="interval")b=OU;else if(_==="categorical"){b=nM,S=Object.create(null);for(let M of l.stops)S[M[0]]=M[1];I=typeof l.stops[0][0]}else{if(_!=="identity")throw new Error(`Unknown function type "${_}"`);b=NP}if(p){let M={},N=[];for(let H=0;HH[0]),evaluate:({zoom:H},Y)=>YE({stops:P,base:l.base},a,H).evaluate(H,Y)}}if(m){let M=_==="exponential"?{name:"exponential",base:l.base!==void 0?l.base:1}:null;return{kind:"camera",interpolationType:M,interpolationFactor:lh.interpolationFactor.bind(void 0,M),zoomStops:l.stops.map(N=>N[0]),evaluate:({zoom:N})=>b(l,a,N,S,I)}}return{kind:"source",evaluate(M,N){let P=N&&N.properties?N.properties[l.property]:void 0;return P===void 0?J1(l.default,a.default):b(l,a,P,S,I)}}}function J1(l,a,u){return l!==void 0?l:a!==void 0?a:u!==void 0?u:void 0}function nM(l,a,u,p,m){return J1(typeof u===m?p[u]:void 0,l.default,a.default)}function OU(l,a,u){if(wf(u)!=="number")return J1(l.default,a.default);let p=l.stops.length;if(p===1||u<=l.stops[0][0])return l.stops[0][1];if(u>=l.stops[p-1][0])return l.stops[p-1][1];let m=ME(l.stops.map(_=>_[0]),u);return l.stops[m][1]}function YE(l,a,u){let p=l.base!==void 0?l.base:1;if(wf(u)!=="number")return J1(l.default,a.default);let m=l.stops.length;if(m===1||u<=l.stops[0][0])return l.stops[0][1];if(u>=l.stops[m-1][0])return l.stops[m-1][1];let _=ME(l.stops.map(N=>N[0]),u),b=function(N,P,V,H){let Y=H-V,W=N-V;return Y===0?0:P===1?W/Y:(Math.pow(P,W)-1)/(Math.pow(P,Y)-1)}(u,p,l.stops[_][0],l.stops[_+1][0]),S=l.stops[_][1],I=l.stops[_+1][1],M=My[a.type]||MU;if(l.colorSpace&&l.colorSpace!=="rgb"){let N=Hy[l.colorSpace];M=(P,V)=>N.reverse(N.interpolate(N.forward(P),N.forward(V),b))}return typeof S.evaluate=="function"?{evaluate(...N){let P=S.evaluate.apply(void 0,N),V=I.evaluate.apply(void 0,N);if(P!==void 0&&V!==void 0)return M(P,V,b)}}:M(S,I,b)}function NP(l,a,u){return a.type==="color"?u=cs.parse(u):a.type==="formatted"?u=Yc.fromString(u.toString()):a.type==="resolvedImage"?u=ed.fromString(u.toString()):wf(u)===a.type||a.type==="enum"&&a.values[u]||(u=void 0),J1(u,l.default,a.default)}td.register(Nv,{error:[{kind:"error"},[Zo],(l,[a])=>{throw new sc(a.evaluate(l))}],typeof:[Zo,[Eo],(l,[a])=>Ha(yl(a.evaluate(l)))],"to-rgba":[mc(Tn,4),[ah],(l,[a])=>a.evaluate(l).toArray()],rgb:[ah,[Tn,Tn,Tn],Jk],rgba:[ah,[Tn,Tn,Tn,Tn],Jk],hsl:[ah,[Tn,Tn,Tn],Tp],hsla:[ah,[Tn,Tn,Tn,Tn],Tp],has:{type:jo,overloads:[[[Zo],(l,[a])=>eM(a.evaluate(l),l.properties())],[[Zo,Sv],(l,[a,u])=>eM(a.evaluate(l),u.evaluate(l))]]},get:{type:Eo,overloads:[[[Zo],(l,[a])=>tM(a.evaluate(l),l.properties())],[[Zo,Sv],(l,[a,u])=>tM(a.evaluate(l),u.evaluate(l))]]},"feature-state":[Eo,[Zo],(l,[a])=>tM(a.evaluate(l),l.featureState||{})],properties:[Sv,[],l=>l.properties()],"geometry-type":[Zo,[],l=>l.geometryType()],id:[Eo,[],l=>l.id()],zoom:[Tn,[],l=>l.globals.zoom],pitch:[Tn,[],l=>l.globals.pitch||0],"distance-from-center":[Tn,[],l=>l.distanceFromCenter()],"measure-light":[Tn,[Zo],(l,[a])=>l.measureLight(a.evaluate(l))],"heatmap-density":[Tn,[],l=>l.globals.heatmapDensity||0],"line-progress":[Tn,[],l=>l.globals.lineProgress||0],"raster-value":[Tn,[],l=>l.globals.rasterValue||0],"raster-particle-speed":[Tn,[],l=>l.globals.rasterParticleSpeed||0],"sky-radial-progress":[Tn,[],l=>l.globals.skyRadialProgress||0],accumulated:[Eo,[],l=>l.globals.accumulated===void 0?null:l.globals.accumulated],"+":[Tn,Kg(Tn),(l,a)=>{let u=0;for(let p of a)u+=p.evaluate(l);return u}],"*":[Tn,Kg(Tn),(l,a)=>{let u=1;for(let p of a)u*=p.evaluate(l);return u}],"-":{type:Tn,overloads:[[[Tn,Tn],(l,[a,u])=>a.evaluate(l)-u.evaluate(l)],[[Tn],(l,[a])=>-a.evaluate(l)]]},"/":[Tn,[Tn,Tn],(l,[a,u])=>a.evaluate(l)/u.evaluate(l)],"%":[Tn,[Tn,Tn],(l,[a,u])=>a.evaluate(l)%u.evaluate(l)],ln2:[Tn,[],()=>Math.LN2],pi:[Tn,[],()=>Math.PI],e:[Tn,[],()=>Math.E],"^":[Tn,[Tn,Tn],(l,[a,u])=>Math.pow(a.evaluate(l),u.evaluate(l))],sqrt:[Tn,[Tn],(l,[a])=>Math.sqrt(a.evaluate(l))],log10:[Tn,[Tn],(l,[a])=>Math.log(a.evaluate(l))/Math.LN10],ln:[Tn,[Tn],(l,[a])=>Math.log(a.evaluate(l))],log2:[Tn,[Tn],(l,[a])=>Math.log(a.evaluate(l))/Math.LN2],sin:[Tn,[Tn],(l,[a])=>Math.sin(a.evaluate(l))],cos:[Tn,[Tn],(l,[a])=>Math.cos(a.evaluate(l))],tan:[Tn,[Tn],(l,[a])=>Math.tan(a.evaluate(l))],asin:[Tn,[Tn],(l,[a])=>Math.asin(a.evaluate(l))],acos:[Tn,[Tn],(l,[a])=>Math.acos(a.evaluate(l))],atan:[Tn,[Tn],(l,[a])=>Math.atan(a.evaluate(l))],min:[Tn,Kg(Tn),(l,a)=>Math.min(...a.map(u=>u.evaluate(l)))],max:[Tn,Kg(Tn),(l,a)=>Math.max(...a.map(u=>u.evaluate(l)))],abs:[Tn,[Tn],(l,[a])=>Math.abs(a.evaluate(l))],round:[Tn,[Tn],(l,[a])=>{let u=a.evaluate(l);return u<0?-Math.round(-u):Math.round(u)}],floor:[Tn,[Tn],(l,[a])=>Math.floor(a.evaluate(l))],ceil:[Tn,[Tn],(l,[a])=>Math.ceil(a.evaluate(l))],"filter-==":[jo,[Zo,Eo],(l,[a,u])=>l.properties()[a.value]===u.value],"filter-id-==":[jo,[Eo],(l,[a])=>l.id()===a.value],"filter-type-==":[jo,[Zo],(l,[a])=>l.geometryType()===a.value],"filter-<":[jo,[Zo,Eo],(l,[a,u])=>{let p=l.properties()[a.value],m=u.value;return typeof p==typeof m&&p{let u=l.id(),p=a.value;return typeof u==typeof p&&u":[jo,[Zo,Eo],(l,[a,u])=>{let p=l.properties()[a.value],m=u.value;return typeof p==typeof m&&p>m}],"filter-id->":[jo,[Eo],(l,[a])=>{let u=l.id(),p=a.value;return typeof u==typeof p&&u>p}],"filter-<=":[jo,[Zo,Eo],(l,[a,u])=>{let p=l.properties()[a.value],m=u.value;return typeof p==typeof m&&p<=m}],"filter-id-<=":[jo,[Eo],(l,[a])=>{let u=l.id(),p=a.value;return typeof u==typeof p&&u<=p}],"filter->=":[jo,[Zo,Eo],(l,[a,u])=>{let p=l.properties()[a.value],m=u.value;return typeof p==typeof m&&p>=m}],"filter-id->=":[jo,[Eo],(l,[a])=>{let u=l.id(),p=a.value;return typeof u==typeof p&&u>=p}],"filter-has":[jo,[Eo],(l,[a])=>a.value in l.properties()],"filter-has-id":[jo,[],l=>l.id()!==null&&l.id()!==void 0],"filter-type-in":[jo,[mc(Zo)],(l,[a])=>a.value.indexOf(l.geometryType())>=0],"filter-id-in":[jo,[mc(Eo)],(l,[a])=>a.value.indexOf(l.id())>=0],"filter-in-small":[jo,[Zo,mc(Eo)],(l,[a,u])=>u.value.indexOf(l.properties()[a.value])>=0],"filter-in-large":[jo,[Zo,mc(Eo)],(l,[a,u])=>function(p,m,_,b){for(;_<=b;){let S=_+b>>1;if(m[S]===p)return!0;m[S]>p?b=S-1:_=S+1}return!1}(l.properties()[a.value],u.value,0,u.value.length-1)],all:{type:jo,overloads:[[[jo,jo],(l,[a,u])=>a.evaluate(l)&&u.evaluate(l)],[Kg(jo),(l,a)=>{for(let u of a)if(!u.evaluate(l))return!1;return!0}]]},any:{type:jo,overloads:[[[jo,jo],(l,[a,u])=>a.evaluate(l)||u.evaluate(l)],[Kg(jo),(l,a)=>{for(let u of a)if(u.evaluate(l))return!0;return!1}]]},"!":[jo,[jo],(l,[a])=>!a.evaluate(l)],"is-supported-script":[jo,[Zo],(l,[a])=>{let u=l.globals&&l.globals.isSupportedScript;return!u||u(a.evaluate(l))}],upcase:[Zo,[Zo],(l,[a])=>a.evaluate(l).toUpperCase()],downcase:[Zo,[Zo],(l,[a])=>a.evaluate(l).toLowerCase()],concat:[Zo,Kg(Eo),(l,a)=>a.map(u=>kd(u.evaluate(l))).join("")],"resolved-locale":[Zo,[F1],(l,[a])=>a.evaluate(l).resolvedLocale()],random:[Tn,[Tn,Tn,Eo],(l,a)=>{let[u,p,m]=a.map(b=>b.evaluate(l));if(u>p||u===p)return u;let _;if(typeof m=="string")_=function(b){let S=0;if(b.length===0)return S;for(let I=0;IJSON.stringify(N)).join(", ")}, but found ${JSON.stringify(M)} instead.`);return M}catch(M){return this._warningHistory[M.message]||(this._warningHistory[M.message]=!0,typeof console<"u"&&console.warn(M.message)),this._defaultValue}}}function $y(l){return Array.isArray(l)&&l.length>0&&typeof l[0]=="string"&&l[0]in Nv}function Zg(l,a,u,p){let m=new kE(Nv,[],a?function(b){let S={color:ah,string:Zo,number:Tn,enum:Zo,boolean:jo,formatted:Ev,resolvedImage:Oy};return b.type==="array"?mc(S[b.value]||Eo,b.length):S[b.type]}(a):void 0,void 0,void 0,u,p),_=m.parse(l,void 0,void 0,void 0,a&&a.type==="string"?{typeAnnotation:"coerce"}:void 0);return _?MP(new ew(_,a,u,p)):Wg(m.errors)}class Ky{constructor(a,u,p){this.kind=a,this._styleExpression=u,this.isLightConstant=p,this.isStateDependent=a!=="constant"&&!Y1(u.expression),this.isConfigDependent=!Vy(u.expression)}evaluateWithoutErrorHandling(a,u,p,m,_,b){return this._styleExpression.evaluateWithoutErrorHandling(a,u,p,m,_,b)}evaluate(a,u,p,m,_,b){return this._styleExpression.evaluate(a,u,p,m,_,b)}}class Wy{constructor(a,u,p,m,_){this.kind=a,this.zoomStops=p,this._styleExpression=u,this.isStateDependent=a!=="camera"&&!Y1(u.expression),this.isLightConstant=_,this.isConfigDependent=!Vy(u.expression),this.interpolationType=m}evaluateWithoutErrorHandling(a,u,p,m,_,b){return this._styleExpression.evaluateWithoutErrorHandling(a,u,p,m,_,b)}evaluate(a,u,p,m,_,b){return this._styleExpression.evaluate(a,u,p,m,_,b)}interpolationFactor(a,u,p){return this.interpolationType?lh.interpolationFactor(this.interpolationType,a,u,p):0}}function qE(l,a,u,p){if((l=Zg(l,a,u,p)).result==="error")return l;let m=l.value.expression,_=Om(m);if(!_&&!X1(a))return Wg([new Sp("","data expressions not supported")]);let b=q1(m,["zoom","pitch","distance-from-center"]);if(!b&&!iM(a))return Wg([new Sp("","zoom expressions not supported")]);let S=q1(m,["measure-light"]);if(!S&&!RP(a))return Wg([new Sp("","measure-light expression not supported")]);let I=a.expression&&a.expression.relaxZoomRestriction,M=$E(m);return M||b||I?M instanceof Sp?Wg([M]):M instanceof lh&&!Yy(a)?Wg([new Sp("",'"interpolate" expressions cannot be used with this property')]):MP(M?new Wy(_?"camera":"composite",l.value,M.labels,M instanceof lh?M.interpolation:void 0,S):new Ky(_?"constant":"source",l.value,S)):Wg([new Sp("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression, or in the properties of atmosphere.')])}class tw{constructor(a,u){this._parameters=a,this._specification=u,Vg(this,qy(this._parameters,this._specification))}static deserialize(a){return new tw(a._parameters,a._specification)}static serialize(a){return{_parameters:a._parameters,_specification:a._specification}}}function $E(l){let a=null;if(l instanceof K1)a=$E(l.result);else if(l instanceof LE){for(let u of l.args)if(a=$E(u),a)break}else(l instanceof Uy||l instanceof lh)&&l.input instanceof td&&l.input.name==="zoom"&&(a=l);return a instanceof Sp||l.eachChild(u=>{let p=$E(u);p instanceof Sp?a=p:a&&p&&a!==p&&(a=new Sp("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))}),a}var rM=Ap,Qg=3;function Ap(l,a,u){var p=this.cells=[];if(l instanceof ArrayBuffer){this.arrayBuffer=l;var m=new Int32Array(this.arrayBuffer);l=m[0],this.d=(a=m[1])+2*(u=m[2]);for(var _=0;_=N[H+0]&&p>=N[H+1])?(b[V]=!0,_.push(M[V])):b[V]=!1}}},Ap.prototype._forEachCell=function(l,a,u,p,m,_,b,S){for(var I=this._convertToCellCoord(l),M=this._convertToCellCoord(a),N=this._convertToCellCoord(u),P=this._convertToCellCoord(p),V=I;V<=N;V++)for(var H=M;H<=P;H++){var Y=this.d*H+V;if((!S||S(this._convertFromCellCoord(V),this._convertFromCellCoord(H),this._convertFromCellCoord(V+1),this._convertFromCellCoord(H+1)))&&m.call(this,l,a,u,p,Y,_,b,S))return}},Ap.prototype._convertFromCellCoord=function(l){return(l-this.padding)/this.scale},Ap.prototype._convertToCellCoord=function(l){return Math.max(0,Math.min(this.d-1,Math.floor(l*this.scale)+this.padding))},Ap.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var l=this.cells,a=Qg+this.cells.length+1+1,u=0,p=0;p=0||(m[_]=iw(l[_],a)));l instanceof Error&&(m.message=l.message)}if(m.$name)throw new Error("$name property is reserved for worker serialization logic.");return p!=="Object"&&(m.$name=p),m}throw new Error("can't serialize object of type "+typeof l)}function v(l){if(l==null||typeof l=="boolean"||typeof l=="number"||typeof l=="string"||l instanceof Boolean||l instanceof Number||l instanceof String||l instanceof Date||l instanceof RegExp||oM(l)||Pv(l)||ArrayBuffer.isView(l)||l instanceof ImageData)return l;if(Array.isArray(l))return l.map(v);if(typeof l=="object"){let a=l.$name||"Object";if(a==="Map"){let m=new Map;for(let _ of Object.keys(l))_!=="$name"&&m.set(_,v(l[_]));return m}let{klass:u}=Zy[a];if(!u)throw new Error(`can't deserialize unregistered class ${a}`);if(u.deserialize)return u.deserialize(l);let p=Object.create(u.prototype);for(let m of Object.keys(l))m!=="$name"&&(p[m]=v(l[m]));return p}throw new Error("can't deserialize object of type "+typeof l)}let d={"Latin-1 Supplement":l=>l>=128&&l<=255,Arabic:l=>l>=1536&&l<=1791,"Arabic Supplement":l=>l>=1872&&l<=1919,"Arabic Extended-A":l=>l>=2208&&l<=2303,"Hangul Jamo":l=>l>=4352&&l<=4607,"Unified Canadian Aboriginal Syllabics":l=>l>=5120&&l<=5759,Khmer:l=>l>=6016&&l<=6143,"Unified Canadian Aboriginal Syllabics Extended":l=>l>=6320&&l<=6399,"General Punctuation":l=>l>=8192&&l<=8303,"Letterlike Symbols":l=>l>=8448&&l<=8527,"Number Forms":l=>l>=8528&&l<=8591,"Miscellaneous Technical":l=>l>=8960&&l<=9215,"Control Pictures":l=>l>=9216&&l<=9279,"Optical Character Recognition":l=>l>=9280&&l<=9311,"Enclosed Alphanumerics":l=>l>=9312&&l<=9471,"Geometric Shapes":l=>l>=9632&&l<=9727,"Miscellaneous Symbols":l=>l>=9728&&l<=9983,"Miscellaneous Symbols and Arrows":l=>l>=11008&&l<=11263,"CJK Radicals Supplement":l=>l>=11904&&l<=12031,"Kangxi Radicals":l=>l>=12032&&l<=12255,"Ideographic Description Characters":l=>l>=12272&&l<=12287,"CJK Symbols and Punctuation":l=>l>=12288&&l<=12351,Hiragana:l=>l>=12352&&l<=12447,Katakana:l=>l>=12448&&l<=12543,Bopomofo:l=>l>=12544&&l<=12591,"Hangul Compatibility Jamo":l=>l>=12592&&l<=12687,Kanbun:l=>l>=12688&&l<=12703,"Bopomofo Extended":l=>l>=12704&&l<=12735,"CJK Strokes":l=>l>=12736&&l<=12783,"Katakana Phonetic Extensions":l=>l>=12784&&l<=12799,"Enclosed CJK Letters and Months":l=>l>=12800&&l<=13055,"CJK Compatibility":l=>l>=13056&&l<=13311,"CJK Unified Ideographs Extension A":l=>l>=13312&&l<=19903,"Yijing Hexagram Symbols":l=>l>=19904&&l<=19967,"CJK Unified Ideographs":l=>l>=19968&&l<=40959,"Yi Syllables":l=>l>=40960&&l<=42127,"Yi Radicals":l=>l>=42128&&l<=42191,"Hangul Jamo Extended-A":l=>l>=43360&&l<=43391,"Hangul Syllables":l=>l>=44032&&l<=55215,"Hangul Jamo Extended-B":l=>l>=55216&&l<=55295,"Private Use Area":l=>l>=57344&&l<=63743,"CJK Compatibility Ideographs":l=>l>=63744&&l<=64255,"Arabic Presentation Forms-A":l=>l>=64336&&l<=65023,"Vertical Forms":l=>l>=65040&&l<=65055,"CJK Compatibility Forms":l=>l>=65072&&l<=65103,"Small Form Variants":l=>l>=65104&&l<=65135,"Arabic Presentation Forms-B":l=>l>=65136&&l<=65279,"Halfwidth and Fullwidth Forms":l=>l>=65280&&l<=65519,"CJK Unified Ideographs Extension B":l=>l>=131072&&l<=173791};function f(l){for(let a of l)if(E(a.charCodeAt(0)))return!0;return!1}function y(l){for(let a of l)if(!w(a.charCodeAt(0)))return!1;return!0}function w(l){return!(d.Arabic(l)||d["Arabic Supplement"](l)||d["Arabic Extended-A"](l)||d["Arabic Presentation Forms-A"](l)||d["Arabic Presentation Forms-B"](l))}function E(l){return!(l!==746&&l!==747&&(l<4352||!(d["Bopomofo Extended"](l)||d.Bopomofo(l)||d["CJK Compatibility Forms"](l)&&!(l>=65097&&l<=65103)||d["CJK Compatibility Ideographs"](l)||d["CJK Compatibility"](l)||d["CJK Radicals Supplement"](l)||d["CJK Strokes"](l)||!(!d["CJK Symbols and Punctuation"](l)||l>=12296&&l<=12305||l>=12308&&l<=12319||l===12336)||d["CJK Unified Ideographs Extension A"](l)||d["CJK Unified Ideographs"](l)||d["Enclosed CJK Letters and Months"](l)||d["Hangul Compatibility Jamo"](l)||d["Hangul Jamo Extended-A"](l)||d["Hangul Jamo Extended-B"](l)||d["Hangul Jamo"](l)||d["Hangul Syllables"](l)||d.Hiragana(l)||d["Ideographic Description Characters"](l)||d.Kanbun(l)||d["Kangxi Radicals"](l)||d["Katakana Phonetic Extensions"](l)||d.Katakana(l)&&l!==12540||!(!d["Halfwidth and Fullwidth Forms"](l)||l===65288||l===65289||l===65293||l>=65306&&l<=65310||l===65339||l===65341||l===65343||l>=65371&&l<=65503||l===65507||l>=65512&&l<=65519)||!(!d["Small Form Variants"](l)||l>=65112&&l<=65118||l>=65123&&l<=65126)||d["Unified Canadian Aboriginal Syllabics"](l)||d["Unified Canadian Aboriginal Syllabics Extended"](l)||d["Vertical Forms"](l)||d["Yijing Hexagram Symbols"](l)||d["Yi Syllables"](l)||d["Yi Radicals"](l))))}function D(l){return!(E(l)||function(a){return!!(d["Latin-1 Supplement"](a)&&(a===167||a===169||a===174||a===177||a===188||a===189||a===190||a===215||a===247)||d["General Punctuation"](a)&&(a===8214||a===8224||a===8225||a===8240||a===8241||a===8251||a===8252||a===8258||a===8263||a===8264||a===8265||a===8273)||d["Letterlike Symbols"](a)||d["Number Forms"](a)||d["Miscellaneous Technical"](a)&&(a>=8960&&a<=8967||a>=8972&&a<=8991||a>=8996&&a<=9e3||a===9003||a>=9085&&a<=9114||a>=9150&&a<=9165||a===9167||a>=9169&&a<=9179||a>=9186&&a<=9215)||d["Control Pictures"](a)&&a!==9251||d["Optical Character Recognition"](a)||d["Enclosed Alphanumerics"](a)||d["Geometric Shapes"](a)||d["Miscellaneous Symbols"](a)&&!(a>=9754&&a<=9759)||d["Miscellaneous Symbols and Arrows"](a)&&(a>=11026&&a<=11055||a>=11088&&a<=11097||a>=11192&&a<=11243)||d["CJK Symbols and Punctuation"](a)||d.Katakana(a)||d["Private Use Area"](a)||d["CJK Compatibility Forms"](a)||d["Small Form Variants"](a)||d["Halfwidth and Fullwidth Forms"](a)||a===8734||a===8756||a===8757||a>=9984&&a<=10087||a>=10102&&a<=10131||a===65532||a===65533)}(l))}function R(l){return l>=1424&&l<=2303||d["Arabic Presentation Forms-A"](l)||d["Arabic Presentation Forms-B"](l)}function B(l,a){return!(!a&&R(l)||l>=2304&&l<=3583||l>=3840&&l<=4255||d.Khmer(l))}function U(l){for(let a of l)if(R(a.charCodeAt(0)))return!0;return!1}let G="deferred",$="loading",Q="loaded",te=null,he="unavailable",me=null,_e=function(l){l&&typeof l=="string"&&l.indexOf("NetworkError")>-1&&(he="error"),te&&te(l)};function ye(){Ae.fire(new xs("pluginStateChange",{pluginStatus:he,pluginURL:me}))}let Ae=new Cv,je=function(){return he},He=function(){if(he!==G||!me)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");he=$,ye(),me&&bv({url:me},l=>{l?_e(l):(he=Q,ye())})},Ze={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:()=>he===Q||Ze.applyArabicShaping!=null,isLoading:()=>he===$,setState(l){he=l.pluginStatus,me=l.pluginURL},isParsed:()=>Ze.applyArabicShaping!=null&&Ze.processBidirectionalText!=null&&Ze.processStyledBidirectionalText!=null,getPluginURL:()=>me};class be{constructor(a,u){this.zoom=a,u?(this.now=u.now,this.fadeDuration=u.fadeDuration,this.transition=u.transition,this.pitch=u.pitch,this.brightness=u.brightness):(this.now=0,this.fadeDuration=0,this.transition={},this.pitch=0,this.brightness=0)}isSupportedScript(a){return function(u,p){for(let m of u)if(!B(m.charCodeAt(0),p))return!1;return!0}(a,Ze.isLoaded())}}class Oe{constructor(a,u,p,m){this.property=a,this.value=u,this.expression=function(_,b,S,I){if(GE(_))return new tw(_,b);if($y(_)||Array.isArray(_)&&_.length>0){let M=qE(_,b,S,I);if(M.result==="error")throw new Error(M.value.map(N=>`${N.key}: ${N.message}`).join(", "));return M.value}{let M=_;return typeof _=="string"&&b.type==="color"&&(M=cs.parse(_)),{kind:"constant",isConfigDependent:!1,evaluate:()=>M}}}(u===void 0?a.specification.default:u,a.specification,p,m)}isDataDriven(){return this.expression.kind==="source"||this.expression.kind==="composite"}possiblyEvaluate(a,u,p){return this.property.possiblyEvaluate(this,a,u,p)}}class st{constructor(a,u,p){this.property=a,this.value=new Oe(a,void 0,u,p)}transitioned(a,u){return new xt(this.property,this.value,u,ih({},a.transition,this.transition),a.now)}untransitioned(){return new xt(this.property,this.value,null,{},0)}}class ot{constructor(a,u,p){this._properties=a,this._values=Object.create(a.defaultTransitionablePropertyValues),this._scope=u,this._options=p,this.isConfigDependent=!1}getValue(a){return wp(this._values[a].value.value)}setValue(a,u){this._values.hasOwnProperty(a)||(this._values[a]=new st(this._values[a].property,this._scope,this._options)),this._values[a].value=new Oe(this._values[a].property,u===null?void 0:wp(u),this._scope,this._options),this.isConfigDependent=this.isConfigDependent||this._values[a].value.expression.isConfigDependent}setTransitionOrValue(a,u){u&&(this._options=u);let p=this._properties.properties;if(a)for(let m in a){let _=a[m];if(Fg(m,"-transition")){let b=m.slice(0,-11);p[b]&&this.setTransition(b,_)}else p[m]&&this.setValue(m,_)}}getTransition(a){return wp(this._values[a].transition)}setTransition(a,u){this._values.hasOwnProperty(a)||(this._values[a]=new st(this._values[a].property)),this._values[a].transition=wp(u)||void 0}serialize(){let a={};for(let u of Object.keys(this._values)){let p=this.getValue(u);p!==void 0&&(a[u]=p);let m=this.getTransition(u);m!==void 0&&(a[`${u}-transition`]=m)}return a}transitioned(a,u){let p=new Yt(this._properties);for(let m of Object.keys(this._values))p._values[m]=this._values[m].transitioned(a,u._values[m]);return p}untransitioned(){let a=new Yt(this._properties);for(let u of Object.keys(this._values))a._values[u]=this._values[u].untransitioned();return a}}class xt{constructor(a,u,p,m,_){let b=m.delay||0,S=m.duration||0;_=_||0,this.property=a,this.value=u,this.begin=_+b,this.end=this.begin+S,a.specification.transition&&(m.delay||m.duration)&&(this.prior=p)}possiblyEvaluate(a,u,p){let m=a.now||0,_=this.value.possiblyEvaluate(a,u,p),b=this.prior;if(b){if(m>this.end)return this.prior=null,_;if(this.value.isDataDriven())return this.prior=null,_;if(m":1,">=":1,"<":1,"<=":1,"in":1,"!in":1,"all":1,"any":1,"none":1,"has":1,"!has":1}},"geometry_type":{"type":"enum","values":{"Point":1,"LineString":1,"Polygon":1}},"function":{"expression":{"type":"expression"},"stops":{"type":"array","value":"function_stop"},"base":{"type":"number","default":1,"minimum":0},"property":{"type":"string","default":"$zoom"},"type":{"type":"enum","values":{"identity":1,"exponential":1,"interval":1,"categorical":1},"default":"exponential"},"colorSpace":{"type":"enum","values":{"rgb":1,"lab":1,"hcl":1},"default":"rgb"},"default":{"type":"*","required":false}},"function_stop":{"type":"array","minimum":0,"maximum":24,"value":["number","color"],"length":2},"expression":{"type":"array","value":"*","minimum":1},"fog":{"range":{"type":"array","default":[0.5,10],"minimum":-20,"maximum":20,"length":2,"value":"number","property-type":"data-constant","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true}},"color":{"type":"color","property-type":"data-constant","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"high-color":{"type":"color","property-type":"data-constant","default":"#245cdf","expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"space-color":{"type":"color","property-type":"data-constant","default":["interpolate",["linear"],["zoom"],4,"#010b19",7,"#367ab9"],"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"horizon-blend":{"type":"number","property-type":"data-constant","default":["interpolate",["linear"],["zoom"],4,0.2,7,0.1],"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"star-intensity":{"type":"number","property-type":"data-constant","default":["interpolate",["linear"],["zoom"],5,0.35,6,0],"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"vertical-range":{"type":"array","default":[0,0],"minimum":0,"length":2,"value":"number","property-type":"data-constant","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true}}},"camera":{"camera-projection":{"type":"enum","values":{"perspective":1,"orthographic":1},"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"default":"perspective","property-type":"data-constant"}},"light":{"anchor":{"type":"enum","default":"viewport","values":{"map":1,"viewport":1},"property-type":"data-constant","expression":{"parameters":["zoom"]}},"position":{"type":"array","default":[1.15,210,30],"length":3,"value":"number","property-type":"data-constant","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"color":{"type":"color","property-type":"data-constant","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"intensity":{"type":"number","property-type":"data-constant","default":0.5,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"projection":{"name":{"type":"enum","values":{"albers":1,"equalEarth":1,"equirectangular":1,"lambertConformalConic":1,"mercator":1,"naturalEarth":1,"winkelTripel":1,"globe":1},"default":"mercator","required":true},"center":{"type":"array","length":2,"value":"number","property-type":"data-constant","minimum":[-180,-90],"maximum":[180,90]},"parallels":{"type":"array","length":2,"value":"number","property-type":"data-constant","minimum":[-90,-90],"maximum":[90,90]}},"terrain":{"source":{"type":"string","required":true},"exaggeration":{"type":"number","property-type":"data-constant","default":1,"minimum":0,"maximum":1000,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"paint":["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background","paint_sky","paint_model"],"paint_fill":{"fill-antialias":{"type":"boolean","default":true,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"fill-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"fill-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"fill-outline-color":{"type":"color","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"fill-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"fill-pattern":{"type":"resolvedImage","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"fill-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"fill-extrusion-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{"type":"resolvedImage","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"fill-extrusion-height":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{"type":"boolean","default":true,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"fill-extrusion-ambient-occlusion-intensity":{"property-type":"data-constant","type":"number","private":true,"default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"fill-extrusion-ambient-occlusion-radius":{"property-type":"data-constant","type":"number","private":true,"default":3,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"fill-extrusion-ambient-occlusion-wall-radius":{"property-type":"data-constant","type":"number","default":3,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"fill-extrusion-ambient-occlusion-ground-radius":{"property-type":"data-constant","type":"number","default":3,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"fill-extrusion-ambient-occlusion-ground-attenuation":{"property-type":"data-constant","type":"number","default":0.69,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"fill-extrusion-flood-light-color":{"property-type":"data-constant","type":"color","default":"#ffffff","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"fill-extrusion-flood-light-intensity":{"property-type":"data-constant","type":"number","default":0,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"fill-extrusion-flood-light-wall-radius":{"property-type":"data-driven","type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["feature","feature-state"]}},"fill-extrusion-flood-light-ground-radius":{"property-type":"data-driven","type":"number","default":0,"transition":true,"expression":{"interpolated":true,"parameters":["feature","feature-state"]}},"fill-extrusion-flood-light-ground-attenuation":{"property-type":"data-constant","type":"number","default":0.69,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"fill-extrusion-vertical-scale":{"property-type":"data-constant","type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"fill-extrusion-rounded-roof":{"property-type":"data-constant","type":"boolean","default":true,"expression":{"parameters":["zoom"]}},"fill-extrusion-cutoff-fade-range":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{},"property-type":"data-constant"},"fill-extrusion-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"}},"paint_line":{"line-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"line-width":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-gap-width":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-offset":{"type":"number","default":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-blur":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-dasharray":{"type":"array","value":"number","minimum":0,"expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-pattern":{"type":"resolvedImage","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-gradient":{"type":"color","expression":{"interpolated":true,"parameters":["line-progress"]},"property-type":"color-ramp"},"line-trim-offset":{"type":"array","value":"number","length":2,"default":[0,0],"minimum":[0,0],"maximum":[1,1],"property-type":"constant"},"line-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"},"line-border-width":{"type":"number","private":true,"default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-border-color":{"type":"color","private":true,"default":"rgba(0, 0, 0, 0)","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"}},"paint_circle":{"circle-radius":{"type":"number","default":5,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-blur":{"type":"number","default":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{"type":"enum","values":{"map":1,"viewport":1},"default":"viewport","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-stroke-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-stroke-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"}},"paint_heatmap":{"heatmap-radius":{"type":"number","default":30,"minimum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"heatmap-weight":{"type":"number","default":1,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"heatmap-intensity":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"heatmap-color":{"type":"color","default":["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",0.1,"royalblue",0.3,"cyan",0.5,"lime",0.7,"yellow",1,"red"],"expression":{"interpolated":true,"parameters":["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_symbol":{"icon-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-emissive-strength":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-driven"},"text-emissive-strength":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-driven"},"icon-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-halo-color":{"type":"color","default":"rgba(0, 0, 0, 0)","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-halo-width":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-halo-blur":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"icon-image-cross-fade":{"type":"number","property-type":"data-driven","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"transition":true},"text-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-color":{"type":"color","default":"#000000","transition":true,"overridable":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-halo-color":{"type":"color","default":"rgba(0, 0, 0, 0)","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-halo-width":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-halo-blur":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"icon-color-saturation":{"type":"number","default":0,"minimum":-1,"maximum":1,"expression":{},"property-type":"data-constant"},"icon-color-contrast":{"type":"number","default":0,"minimum":-1,"maximum":1,"expression":{},"property-type":"data-constant"},"icon-color-brightness-min":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{},"property-type":"data-constant"},"icon-color-brightness-max":{"type":"number","default":1,"minimum":0,"maximum":1,"expression":{},"property-type":"data-constant"}},"paint_raster":{"raster-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-color":{"type":"color","expression":{"interpolated":true,"parameters":["raster-value"]},"property-type":"color-ramp"},"raster-color-mix":{"type":"array","default":[0.2126,0.7152,0.0722,0],"length":4,"value":"number","property-type":"data-constant","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-color-range":{"type":"array","length":2,"value":"number","property-type":"data-constant","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-hue-rotate":{"type":"number","default":0,"period":360,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{"type":"number","default":0,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-saturation":{"type":"number","default":0,"minimum":-1,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-contrast":{"type":"number","default":0,"minimum":-1,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-resampling":{"type":"enum","values":{"linear":1,"nearest":1},"default":"linear","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{"type":"number","default":300,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"},"raster-array-band":{"type":"string","required":false,"property-type":"data-constant"},"raster-elevation":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_raster-particle":{"raster-particle-array-band":{"type":"string","required":false,"property-type":"data-constant"},"raster-particle-count":{"type":"number","default":512,"minimum":1,"property-type":"data-constant"},"raster-particle-color":{"type":"color","expression":{"interpolated":true,"parameters":["raster-particle-speed"]},"property-type":"color-ramp"},"raster-particle-max-speed":{"type":"number","default":1,"minimum":1,"property-type":"data-constant"},"raster-particle-speed-factor":{"type":"number","default":0.2,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-particle-fade-opacity-factor":{"type":"number","default":0.98,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-particle-reset-rate-factor":{"type":"number","default":0.8,"minimum":0,"maximum":1,"property-type":"data-constant"}},"paint_hillshade":{"hillshade-illumination-direction":{"type":"number","default":335,"minimum":0,"maximum":359,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"viewport","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{"type":"number","default":0.5,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"},"hillshade-highlight-color":{"type":"color","default":"#FFFFFF","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"},"hillshade-accent-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"},"hillshade-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"}},"paint_background":{"background-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"background-pattern":{"type":"resolvedImage","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"background-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"background-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"}},"paint_sky":{"sky-type":{"type":"enum","values":{"gradient":1,"atmosphere":1},"default":"atmosphere","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"sky-atmosphere-sun":{"type":"array","value":"number","length":2,"minimum":[0,0],"maximum":[360,180],"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"sky-atmosphere-sun-intensity":{"type":"number","default":10,"minimum":0,"maximum":100,"property-type":"data-constant"},"sky-gradient-center":{"type":"array","value":"number","default":[0,0],"length":2,"minimum":[0,0],"maximum":[360,180],"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"sky-gradient-radius":{"type":"number","default":90,"minimum":0,"maximum":180,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"sky-gradient":{"type":"color","default":["interpolate",["linear"],["sky-radial-progress"],0.8,"#87ceeb",1,"white"],"expression":{"interpolated":true,"parameters":["sky-radial-progress"]},"property-type":"color-ramp"},"sky-atmosphere-halo-color":{"type":"color","default":"white","property-type":"data-constant"},"sky-atmosphere-color":{"type":"color","default":"white","property-type":"data-constant"},"sky-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_model":{"model-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"model-rotation":{"type":"array","value":"number","length":3,"default":[0,0,0],"period":360,"property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state","zoom"]},"transition":true},"model-scale":{"type":"array","value":"number","length":3,"default":[1,1,1],"property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state","zoom"]},"transition":true},"model-translation":{"type":"array","value":"number","length":3,"default":[0,0,0],"property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state","zoom"]},"transition":true},"model-color":{"type":"color","default":"#ffffff","property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state","measure-light","zoom"]},"transition":true},"model-color-mix-intensity":{"type":"number","property-type":"data-driven","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["feature","feature-state","measure-light"]},"transition":true},"model-type":{"type":"enum","values":{"common-3d":1,"location-indicator":1},"default":"common-3d","property-type":"data-constant"},"model-cast-shadows":{"type":"boolean","default":true,"expression":{},"property-type":"data-constant"},"model-receive-shadows":{"type":"boolean","default":true,"expression":{},"property-type":"data-constant"},"model-ambient-occlusion-intensity":{"type":"number","default":1,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant","transition":true},"model-emissive-strength":{"type":"number","property-type":"data-driven","default":0,"minimum":0,"maximum":5,"expression":{"interpolated":true,"parameters":["feature","feature-state","measure-light"]},"transition":true},"model-roughness":{"type":"number","default":1,"minimum":0,"maximum":1,"property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state"]},"transition":true},"model-height-based-emissive-strength-multiplier":{"type":"array","default":[1,1,1,1,0],"length":5,"value":"number","property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state","measure-light"]},"transition":true},"model-cutoff-fade-range":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{},"property-type":"data-constant"},"model-front-cutoff":{"type":"array","private":true,"value":"number","property-type":"data-constant","expression":{"interpolated":true,"parameters":["zoom"]},"length":3,"default":[0,0,1],"minimum":[0,0,0],"maximum":[1,1,1]}},"transition":{"duration":{"type":"number","default":300,"minimum":0},"delay":{"type":"number","default":0,"minimum":0}},"property-type":{"data-driven":{"type":"property-type"},"color-ramp":{"type":"property-type"},"data-constant":{"type":"property-type"},"constant":{"type":"property-type"}},"promoteId":{"*":{"type":"string"}}}');function hi(l){if(l===!0||l===!1)return!0;if(!Array.isArray(l)||l.length===0)return!1;switch(l[0]){case"has":return l.length>=2&&l[1]!=="$id"&&l[1]!=="$type";case"in":return l.length>=3&&(typeof l[1]!="string"||Array.isArray(l[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return l.length!==3||Array.isArray(l[1])||Array.isArray(l[2]);case"any":case"all":for(let a of l.slice(1))if(!hi(a)&&typeof a!="boolean")return!1;return!0;default:return!0}}function mn(l,a="fill"){if(l==null)return{filter:()=>!0,needGeometry:!1,needFeature:!1};hi(l)||(l=No(l));let u=l,p=!0;try{p=function(M){if(!Hn(M))return M;let N=$t(M);return Kn(N),N=Nn(N),N}(u)}catch{console.warn(`Failed to extract static filter. Filter will continue working, but at higher memory usage and slower framerate. This is most likely a bug, please report this via https://github.com/mapbox/mapbox-gl-js/issues/new?assignees=&labels=&template=Bug_report.md and paste the contents of this message in the report. Thank you! Filter Expression: ${JSON.stringify(u,null,2)} `)}let m=Ge[`filter_${a}`],_=Zg(p,m),b=null;if(_.result==="error")throw new Error(_.value.map(M=>`${M.key}: ${M.message}`).join(", "));b=(M,N,P)=>_.value.evaluate(M,N,{},P);let S=null,I=null;if(p!==u){let M=Zg(u,m);if(M.result==="error")throw new Error(M.value.map(N=>`${N.key}: ${N.message}`).join(", "));S=(N,P,V,H,Y)=>M.value.evaluate(N,P,{},V,void 0,void 0,H,Y),I=!Om(M.value.expression)}return{filter:b,dynamicFilter:S||void 0,needGeometry:Or(p),needFeature:!!I}}function Nn(l){if(!Array.isArray(l))return l;let a=function(u){if(rr.has(u[0])){for(let p=1;pNn(u))}function Kn(l){let a=!1,u=[];if(l[0]==="case"){for(let p=1;p",">=","<","<=","to-boolean"]);function vo(l,a){return la?1:0}function Or(l){if(!Array.isArray(l))return!1;if(l[0]==="within"||l[0]==="distance")return!0;for(let a=1;a"||a==="<="||a===">="?ho(l[1],l[2],a):a==="any"?(u=l.slice(1),["any"].concat(u.map(No))):a==="all"?["all"].concat(l.slice(1).map(No)):a==="none"?["all"].concat(l.slice(1).map(No).map(Zl)):a==="in"?ga(l[1],l.slice(2)):a==="!in"?Zl(ga(l[1],l.slice(2))):a==="has"?_s(l[1]):a!=="!has"||Zl(_s(l[1]));var u}function ho(l,a,u){switch(l){case"$type":return[`filter-type-${u}`,a];case"$id":return[`filter-id-${u}`,a];default:return[`filter-${u}`,l,a]}}function ga(l,a){if(a.length===0)return!1;switch(l){case"$type":return["filter-type-in",["literal",a]];case"$id":return["filter-id-in",["literal",a]];default:return a.length>200&&!a.some(u=>typeof u!=typeof a[0])?["filter-in-large",l,["literal",a.sort(vo)]]:["filter-in-small",l,["literal",a]]}}function _s(l){switch(l){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",l]}}function Zl(l){return["!",l]}let ll="";function Ks(l,a){return a?`${l}${ll}${a}`:l}let Ts="-transition",$r=new Set(["fill","line","background","hillshade","raster"]);class Kr extends Cv{constructor(a,u,p,m){if(super(),this.id=a.id,this.fqid=Ks(this.id,p),this.type=a.type,this.scope=p,this.options=m,this._featureFilter={filter:()=>!0,needGeometry:!1,needFeature:!1},this._filterCompiled=!1,this.isConfigDependent=!1,a.type!=="custom"&&(this.metadata=a.metadata,this.minzoom=a.minzoom,this.maxzoom=a.maxzoom,a.type!=="background"&&a.type!=="sky"&&a.type!=="slot"&&(this.source=a.source,this.sourceLayer=a["source-layer"],this.filter=a.filter),a.slot&&(this.slot=a.slot),u.layout&&(this._unevaluatedLayout=new gt(u.layout,this.scope,m),this.isConfigDependent=this.isConfigDependent||this._unevaluatedLayout.isConfigDependent),u.paint)){this._transitionablePaint=new ot(u.paint,this.scope,m);for(let _ in a.paint)this.setPaintProperty(_,a.paint[_]);for(let _ in a.layout)this.setLayoutProperty(_,a.layout[_]);this.isConfigDependent=this.isConfigDependent||this._transitionablePaint.isConfigDependent,this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new Zt(u.paint)}}onAdd(a){}onRemove(a){}isDraped(a){return $r.has(this.type)}getLayoutProperty(a){return a==="visibility"?this.visibility:this._unevaluatedLayout.getValue(a)}setLayoutProperty(a,u){if(this.type==="custom"&&a==="visibility")return void(this.visibility=u);let p=this._unevaluatedLayout;p._properties.properties[a]&&(p.setValue(a,u),this.isConfigDependent=this.isConfigDependent||p.isConfigDependent,a==="visibility"&&this.possiblyEvaluateVisibility())}possiblyEvaluateVisibility(){this.visibility=this._unevaluatedLayout._values.visibility.possiblyEvaluate({zoom:0})}getPaintProperty(a){return Fg(a,Ts)?this._transitionablePaint.getTransition(a.slice(0,-11)):this._transitionablePaint.getValue(a)}setPaintProperty(a,u){let p=this._transitionablePaint,m=p._properties.properties;if(Fg(a,Ts)){let P=a.slice(0,-11);return m[P]&&p.setTransition(P,u||void 0),!1}if(!m[a])return!1;let _=p._values[a],b=_.value.isDataDriven(),S=_.value;p.setValue(a,u),this.isConfigDependent=this.isConfigDependent||p.isConfigDependent,this._handleSpecialPaintPropertyUpdate(a);let I=p._values[a].value,M=I.isDataDriven(),N=Fg(a,"pattern")||a==="line-dasharray";return M||b||N||this._handleOverridablePaintPropertyUpdate(a,S,I)}_handleSpecialPaintPropertyUpdate(a){}getProgramIds(){return null}getDefaultProgramParams(a,u){return null}_handleOverridablePaintPropertyUpdate(a,u,p){return!1}isHidden(a){return!!(this.minzoom&&a=this.maxzoom)||this.visibility==="none"}updateTransitions(a){this._transitioningPaint=this._transitionablePaint.transitioned(a,this._transitioningPaint)}hasTransition(){return this._transitioningPaint.hasTransition()}recalculate(a,u){this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(a,void 0,u)),this.paint=this._transitioningPaint.possiblyEvaluate(a,void 0,u)}serialize(){return yy({id:this.id,type:this.type,slot:this.slot,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()},(a,u)=>!(a===void 0||u==="layout"&&!Object.keys(a).length||u==="paint"&&!Object.keys(a).length))}is3D(){return!1}isSky(){return!1}isTileClipped(){return!1}hasOffscreenPass(){return!1}hasShadowPass(){return!1}canCastShadows(){return!1}hasLightBeamPass(){return!1}cutoffRange(){return 0}tileCoverLift(){return 0}resize(){}isStateDependent(){for(let a in this.paint._values){let u=this.paint.get(a);if(u instanceof zt&&X1(u.property.specification)&&(u.value.kind==="source"||u.value.kind==="composite")&&u.value.isStateDependent)return!0}return!1}compileFilter(){this._filterCompiled||(this._featureFilter=mn(this.filter),this._filterCompiled=!0)}invalidateCompiledFilter(){this._filterCompiled=!1}dynamicFilter(){return this._featureFilter.dynamicFilter}dynamicFilterNeedsFeature(){return this._featureFilter.needFeature}getLayerRenderingStats(){return this._stats}resetLayerRenderingStats(a){this._stats&&(a.renderPass==="shadow"?this._stats.numRenderedVerticesInShadowPass=0:this._stats.numRenderedVerticesInTransparentPass=0)}queryRadius(a){}queryIntersectsFeature(a,u,p,m,_,b,S,I,M){}queryIntersectsMatchingFeature(a,u,p,m){}}let oa={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array};class Us{constructor(a,u){this._structArray=a,this._pos1=u*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8}}class po{constructor(){this.isTransferred=!1,this.capacity=-1,this.resize(0)}static serialize(a,u){return a._trim(),u&&(a.isTransferred=!0,u.add(a.arrayBuffer)),{length:a.length,arrayBuffer:a.arrayBuffer}}static deserialize(a){let u=Object.create(this.prototype);return u.arrayBuffer=a.arrayBuffer,u.length=a.length,u.capacity=a.arrayBuffer.byteLength/u.bytesPerElement,u._refreshViews(),u}_trim(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())}clear(){this.length=0}resize(a){this.reserve(a),this.length=a}reserve(a){if(a>this.capacity){this.capacity=Math.max(a,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);let u=this.uint8;this._refreshViews(),u&&this.uint8.set(u)}}_refreshViews(){throw new Error("StructArray#_refreshViews() must be implemented by each concrete StructArray layout")}emplace(...a){throw new Error("StructArray#emplace() must be implemented by each concrete StructArray layout")}emplaceBack(...a){throw new Error("StructArray#emplaceBack() must be implemented by each concrete StructArray layout")}destroy(){this.int8=this.uint8=this.int16=this.uint16=this.int32=this.uint32=this.float32=null,this.arrayBuffer=null}}function Vr(l,a=1){let u=0,p=0;return{members:l.map(m=>{let _=oa[m.type].BYTES_PER_ELEMENT,b=u=id(u,Math.max(a,_)),S=m.components||1;return p=Math.max(p,_),u+=_*S,{name:m.name,type:m.type,components:S,offset:b}}),size:id(u,Math.max(p,a)),alignment:a}}function id(l,a){return Math.ceil(l/a)*a}class qc extends po{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(a,u){let p=this.length;return this.resize(p+1),this.emplace(p,a,u)}emplace(a,u,p){let m=2*a;return this.int16[m+0]=u,this.int16[m+1]=p,a}}qc.prototype.bytesPerElement=4,An(qc,"StructArrayLayout2i4");class gc extends po{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(a,u,p){let m=this.length;return this.resize(m+1),this.emplace(m,a,u,p)}emplace(a,u,p,m){let _=3*a;return this.int16[_+0]=u,this.int16[_+1]=p,this.int16[_+2]=m,a}}gc.prototype.bytesPerElement=6,An(gc,"StructArrayLayout3i6");class $c extends po{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(a,u,p,m){let _=this.length;return this.resize(_+1),this.emplace(_,a,u,p,m)}emplace(a,u,p,m,_){let b=4*a;return this.int16[b+0]=u,this.int16[b+1]=p,this.int16[b+2]=m,this.int16[b+3]=_,a}}$c.prototype.bytesPerElement=8,An($c,"StructArrayLayout4i8");class nd extends po{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(a,u,p,m,_){let b=this.length;return this.resize(b+1),this.emplace(b,a,u,p,m,_)}emplace(a,u,p,m,_,b){let S=5*a;return this.int16[S+0]=u,this.int16[S+1]=p,this.int16[S+2]=m,this.int16[S+3]=_,this.int16[S+4]=b,a}}nd.prototype.bytesPerElement=10,An(nd,"StructArrayLayout5i10");class su extends po{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(a,u,p,m,_,b,S){let I=this.length;return this.resize(I+1),this.emplace(I,a,u,p,m,_,b,S)}emplace(a,u,p,m,_,b,S,I){let M=6*a,N=12*a,P=3*a;return this.int16[M+0]=u,this.int16[M+1]=p,this.uint8[N+4]=m,this.uint8[N+5]=_,this.uint8[N+6]=b,this.uint8[N+7]=S,this.float32[P+2]=I,a}}su.prototype.bytesPerElement=12,An(su,"StructArrayLayout2i4ub1f12");class _c extends po{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(a,u,p,m){let _=this.length;return this.resize(_+1),this.emplace(_,a,u,p,m)}emplace(a,u,p,m,_){let b=4*a;return this.float32[b+0]=u,this.float32[b+1]=p,this.float32[b+2]=m,this.float32[b+3]=_,a}}_c.prototype.bytesPerElement=16,An(_c,"StructArrayLayout4f16");class Rc extends po{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(a,u){let p=this.length;return this.resize(p+1),this.emplace(p,a,u)}emplace(a,u,p){let m=2*a;return this.float32[m+0]=u,this.float32[m+1]=p,a}}Rc.prototype.bytesPerElement=8,An(Rc,"StructArrayLayout2f8");class Kc extends po{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(a,u,p,m,_){let b=this.length;return this.resize(b+1),this.emplace(b,a,u,p,m,_)}emplace(a,u,p,m,_,b){let S=6*a,I=3*a;return this.uint16[S+0]=u,this.uint16[S+1]=p,this.uint16[S+2]=m,this.uint16[S+3]=_,this.float32[I+2]=b,a}}Kc.prototype.bytesPerElement=12,An(Kc,"StructArrayLayout4ui1f12");class Dp extends po{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(a,u,p,m){let _=this.length;return this.resize(_+1),this.emplace(_,a,u,p,m)}emplace(a,u,p,m,_){let b=4*a;return this.uint16[b+0]=u,this.uint16[b+1]=p,this.uint16[b+2]=m,this.uint16[b+3]=_,a}}Dp.prototype.bytesPerElement=8,An(Dp,"StructArrayLayout4ui8");class kp extends po{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(a,u,p,m,_,b){let S=this.length;return this.resize(S+1),this.emplace(S,a,u,p,m,_,b)}emplace(a,u,p,m,_,b,S){let I=6*a;return this.int16[I+0]=u,this.int16[I+1]=p,this.int16[I+2]=m,this.int16[I+3]=_,this.int16[I+4]=b,this.int16[I+5]=S,a}}kp.prototype.bytesPerElement=12,An(kp,"StructArrayLayout6i12");class Mp extends po{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(a,u,p,m,_,b,S,I,M,N,P,V){let H=this.length;return this.resize(H+1),this.emplace(H,a,u,p,m,_,b,S,I,M,N,P,V)}emplace(a,u,p,m,_,b,S,I,M,N,P,V,H){let Y=12*a;return this.int16[Y+0]=u,this.int16[Y+1]=p,this.int16[Y+2]=m,this.int16[Y+3]=_,this.uint16[Y+4]=b,this.uint16[Y+5]=S,this.uint16[Y+6]=I,this.uint16[Y+7]=M,this.int16[Y+8]=N,this.int16[Y+9]=P,this.int16[Y+10]=V,this.int16[Y+11]=H,a}}Mp.prototype.bytesPerElement=24,An(Mp,"StructArrayLayout4i4ui4i24");class Ef extends po{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(a,u,p,m,_,b){let S=this.length;return this.resize(S+1),this.emplace(S,a,u,p,m,_,b)}emplace(a,u,p,m,_,b,S){let I=10*a,M=5*a;return this.int16[I+0]=u,this.int16[I+1]=p,this.int16[I+2]=m,this.float32[M+2]=_,this.float32[M+3]=b,this.float32[M+4]=S,a}}Ef.prototype.bytesPerElement=20,An(Ef,"StructArrayLayout3i3f20");class Nm extends po{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(a){let u=this.length;return this.resize(u+1),this.emplace(u,a)}emplace(a,u){return this.uint32[1*a+0]=u,a}}Nm.prototype.bytesPerElement=4,An(Nm,"StructArrayLayout1ul4");class Od extends po{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(a,u){let p=this.length;return this.resize(p+1),this.emplace(p,a,u)}emplace(a,u,p){let m=2*a;return this.uint16[m+0]=u,this.uint16[m+1]=p,a}}Od.prototype.bytesPerElement=4,An(Od,"StructArrayLayout2ui4");class Fv extends po{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(a,u,p,m,_,b,S,I,M,N,P,V,H){let Y=this.length;return this.resize(Y+1),this.emplace(Y,a,u,p,m,_,b,S,I,M,N,P,V,H)}emplace(a,u,p,m,_,b,S,I,M,N,P,V,H,Y){let W=20*a,re=10*a;return this.int16[W+0]=u,this.int16[W+1]=p,this.int16[W+2]=m,this.int16[W+3]=_,this.int16[W+4]=b,this.float32[re+3]=S,this.float32[re+4]=I,this.float32[re+5]=M,this.float32[re+6]=N,this.int16[W+14]=P,this.uint32[re+8]=V,this.uint16[W+18]=H,this.uint16[W+19]=Y,a}}Fv.prototype.bytesPerElement=40,An(Fv,"StructArrayLayout5i4f1i1ul2ui40");class Lv extends po{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(a,u,p,m,_,b,S){let I=this.length;return this.resize(I+1),this.emplace(I,a,u,p,m,_,b,S)}emplace(a,u,p,m,_,b,S,I){let M=8*a;return this.int16[M+0]=u,this.int16[M+1]=p,this.int16[M+2]=m,this.int16[M+4]=_,this.int16[M+5]=b,this.int16[M+6]=S,this.int16[M+7]=I,a}}Lv.prototype.bytesPerElement=16,An(Lv,"StructArrayLayout3i2i2i16");class Qy extends po{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(a,u,p,m,_){let b=this.length;return this.resize(b+1),this.emplace(b,a,u,p,m,_)}emplace(a,u,p,m,_,b){let S=4*a,I=8*a;return this.float32[S+0]=u,this.float32[S+1]=p,this.float32[S+2]=m,this.int16[I+6]=_,this.int16[I+7]=b,a}}Qy.prototype.bytesPerElement=16,An(Qy,"StructArrayLayout2f1f2i16");class us extends po{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(a,u,p,m){let _=this.length;return this.resize(_+1),this.emplace(_,a,u,p,m)}emplace(a,u,p,m,_){let b=12*a,S=3*a;return this.uint8[b+0]=u,this.uint8[b+1]=p,this.float32[S+1]=m,this.float32[S+2]=_,a}}us.prototype.bytesPerElement=12,An(us,"StructArrayLayout2ub2f12");class vc extends po{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(a,u,p){let m=this.length;return this.resize(m+1),this.emplace(m,a,u,p)}emplace(a,u,p,m){let _=3*a;return this.uint16[_+0]=u,this.uint16[_+1]=p,this.uint16[_+2]=m,a}}vc.prototype.bytesPerElement=6,An(vc,"StructArrayLayout3ui6");class nw extends po{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(a,u,p,m,_,b,S,I,M,N,P,V,H,Y,W,re,ue,Te,Pe,De,tt){let Ye=this.length;return this.resize(Ye+1),this.emplace(Ye,a,u,p,m,_,b,S,I,M,N,P,V,H,Y,W,re,ue,Te,Pe,De,tt)}emplace(a,u,p,m,_,b,S,I,M,N,P,V,H,Y,W,re,ue,Te,Pe,De,tt,Ye){let at=30*a,_t=15*a,Mt=60*a;return this.int16[at+0]=u,this.int16[at+1]=p,this.int16[at+2]=m,this.float32[_t+2]=_,this.float32[_t+3]=b,this.uint16[at+8]=S,this.uint16[at+9]=I,this.uint32[_t+5]=M,this.uint32[_t+6]=N,this.uint32[_t+7]=P,this.uint16[at+16]=V,this.uint16[at+17]=H,this.uint16[at+18]=Y,this.float32[_t+10]=W,this.float32[_t+11]=re,this.uint8[Mt+48]=ue,this.uint8[Mt+49]=Te,this.uint8[Mt+50]=Pe,this.uint32[_t+13]=De,this.int16[at+28]=tt,this.uint8[Mt+58]=Ye,a}}nw.prototype.bytesPerElement=60,An(nw,"StructArrayLayout3i2f2ui3ul3ui2f3ub1ul1i1ub60");class PP extends po{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(a,u,p,m,_,b,S,I,M,N,P,V,H,Y,W,re,ue,Te,Pe,De,tt,Ye,at,_t,Mt,Jt,Bt,si,oi,ei,wi,vi){let Ti=this.length;return this.resize(Ti+1),this.emplace(Ti,a,u,p,m,_,b,S,I,M,N,P,V,H,Y,W,re,ue,Te,Pe,De,tt,Ye,at,_t,Mt,Jt,Bt,si,oi,ei,wi,vi)}emplace(a,u,p,m,_,b,S,I,M,N,P,V,H,Y,W,re,ue,Te,Pe,De,tt,Ye,at,_t,Mt,Jt,Bt,si,oi,ei,wi,vi,Ti){let Ei=20*a,ci=40*a,zn=80*a;return this.float32[Ei+0]=u,this.float32[Ei+1]=p,this.int16[ci+4]=m,this.int16[ci+5]=_,this.int16[ci+6]=b,this.int16[ci+7]=S,this.int16[ci+8]=I,this.int16[ci+9]=M,this.int16[ci+10]=N,this.int16[ci+11]=P,this.int16[ci+12]=V,this.uint16[ci+13]=H,this.uint16[ci+14]=Y,this.uint16[ci+15]=W,this.uint16[ci+16]=re,this.uint16[ci+17]=ue,this.uint16[ci+18]=Te,this.uint16[ci+19]=Pe,this.uint16[ci+20]=De,this.uint16[ci+21]=tt,this.uint16[ci+22]=Ye,this.uint16[ci+23]=at,this.uint16[ci+24]=_t,this.uint16[ci+25]=Mt,this.uint16[ci+26]=Jt,this.uint16[ci+27]=Bt,this.uint32[Ei+14]=si,this.float32[Ei+15]=oi,this.float32[Ei+16]=ei,this.float32[Ei+17]=wi,this.float32[Ei+18]=vi,this.uint8[zn+76]=Ti,a}}PP.prototype.bytesPerElement=80,An(PP,"StructArrayLayout2f9i15ui1ul4f1ub80");class sM extends po{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(a){let u=this.length;return this.resize(u+1),this.emplace(u,a)}emplace(a,u){return this.float32[1*a+0]=u,a}}sM.prototype.bytesPerElement=4,An(sM,"StructArrayLayout1f4");class Xy extends po{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(a,u,p,m,_){let b=this.length;return this.resize(b+1),this.emplace(b,a,u,p,m,_)}emplace(a,u,p,m,_,b){let S=5*a;return this.float32[S+0]=u,this.float32[S+1]=p,this.float32[S+2]=m,this.float32[S+3]=_,this.float32[S+4]=b,a}}Xy.prototype.bytesPerElement=20,An(Xy,"StructArrayLayout5f20");class RU extends po{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(a,u,p,m,_,b,S){let I=this.length;return this.resize(I+1),this.emplace(I,a,u,p,m,_,b,S)}emplace(a,u,p,m,_,b,S,I){let M=7*a;return this.float32[M+0]=u,this.float32[M+1]=p,this.float32[M+2]=m,this.float32[M+3]=_,this.float32[M+4]=b,this.float32[M+5]=S,this.float32[M+6]=I,a}}RU.prototype.bytesPerElement=28,An(RU,"StructArrayLayout7f28");class FP extends po{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(a,u,p,m){let _=this.length;return this.resize(_+1),this.emplace(_,a,u,p,m)}emplace(a,u,p,m,_){let b=6*a;return this.uint32[3*a+0]=u,this.uint16[b+2]=p,this.uint16[b+3]=m,this.uint16[b+4]=_,a}}FP.prototype.bytesPerElement=12,An(FP,"StructArrayLayout1ul3ui12");class NU extends po{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(a){let u=this.length;return this.resize(u+1),this.emplace(u,a)}emplace(a,u){return this.uint16[1*a+0]=u,a}}NU.prototype.bytesPerElement=2,An(NU,"StructArrayLayout1ui2");class Jy extends po{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(a,u,p){let m=this.length;return this.resize(m+1),this.emplace(m,a,u,p)}emplace(a,u,p,m){let _=3*a;return this.float32[_+0]=u,this.float32[_+1]=p,this.float32[_+2]=m,a}}Jy.prototype.bytesPerElement=12,An(Jy,"StructArrayLayout3f12");class PU extends po{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(a,u,p,m,_,b,S,I,M,N,P,V,H,Y,W,re){let ue=this.length;return this.resize(ue+1),this.emplace(ue,a,u,p,m,_,b,S,I,M,N,P,V,H,Y,W,re)}emplace(a,u,p,m,_,b,S,I,M,N,P,V,H,Y,W,re,ue){let Te=16*a;return this.float32[Te+0]=u,this.float32[Te+1]=p,this.float32[Te+2]=m,this.float32[Te+3]=_,this.float32[Te+4]=b,this.float32[Te+5]=S,this.float32[Te+6]=I,this.float32[Te+7]=M,this.float32[Te+8]=N,this.float32[Te+9]=P,this.float32[Te+10]=V,this.float32[Te+11]=H,this.float32[Te+12]=Y,this.float32[Te+13]=W,this.float32[Te+14]=re,this.float32[Te+15]=ue,a}}PU.prototype.bytesPerElement=64,An(PU,"StructArrayLayout16f64");class aM extends po{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(a,u,p,m,_,b,S){let I=this.length;return this.resize(I+1),this.emplace(I,a,u,p,m,_,b,S)}emplace(a,u,p,m,_,b,S,I){let M=10*a,N=5*a;return this.uint16[M+0]=u,this.uint16[M+1]=p,this.uint16[M+2]=m,this.uint16[M+3]=_,this.float32[N+2]=b,this.float32[N+3]=S,this.float32[N+4]=I,a}}aM.prototype.bytesPerElement=20,An(aM,"StructArrayLayout4ui3f20");class FU extends po{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(a){let u=this.length;return this.resize(u+1),this.emplace(u,a)}emplace(a,u){return this.int16[1*a+0]=u,a}}FU.prototype.bytesPerElement=2,An(FU,"StructArrayLayout1i2");class LP extends po{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer)}emplaceBack(a){let u=this.length;return this.resize(u+1),this.emplace(u,a)}emplace(a,u){return this.uint8[1*a+0]=u,a}}LP.prototype.bytesPerElement=1,An(LP,"StructArrayLayout1ub1");class wZ extends Us{get projectedAnchorX(){return this._structArray.int16[this._pos2+0]}get projectedAnchorY(){return this._structArray.int16[this._pos2+1]}get projectedAnchorZ(){return this._structArray.int16[this._pos2+2]}get tileAnchorX(){return this._structArray.int16[this._pos2+3]}get tileAnchorY(){return this._structArray.int16[this._pos2+4]}get x1(){return this._structArray.float32[this._pos4+3]}get y1(){return this._structArray.float32[this._pos4+4]}get x2(){return this._structArray.float32[this._pos4+5]}get y2(){return this._structArray.float32[this._pos4+6]}get padding(){return this._structArray.int16[this._pos2+14]}get featureIndex(){return this._structArray.uint32[this._pos4+8]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+18]}get bucketIndex(){return this._structArray.uint16[this._pos2+19]}}wZ.prototype.size=40;class LU extends Fv{get(a){return new wZ(this,a)}}An(LU,"CollisionBoxArray");class CZ extends Us{get projectedAnchorX(){return this._structArray.int16[this._pos2+0]}get projectedAnchorY(){return this._structArray.int16[this._pos2+1]}get projectedAnchorZ(){return this._structArray.int16[this._pos2+2]}get tileAnchorX(){return this._structArray.float32[this._pos4+2]}get tileAnchorY(){return this._structArray.float32[this._pos4+3]}get glyphStartIndex(){return this._structArray.uint16[this._pos2+8]}get numGlyphs(){return this._structArray.uint16[this._pos2+9]}get vertexStartIndex(){return this._structArray.uint32[this._pos4+5]}get lineStartIndex(){return this._structArray.uint32[this._pos4+6]}get lineLength(){return this._structArray.uint32[this._pos4+7]}get segment(){return this._structArray.uint16[this._pos2+16]}get lowerSize(){return this._structArray.uint16[this._pos2+17]}get upperSize(){return this._structArray.uint16[this._pos2+18]}get lineOffsetX(){return this._structArray.float32[this._pos4+10]}get lineOffsetY(){return this._structArray.float32[this._pos4+11]}get writingMode(){return this._structArray.uint8[this._pos1+48]}get placedOrientation(){return this._structArray.uint8[this._pos1+49]}set placedOrientation(a){this._structArray.uint8[this._pos1+49]=a}get hidden(){return this._structArray.uint8[this._pos1+50]}set hidden(a){this._structArray.uint8[this._pos1+50]=a}get crossTileID(){return this._structArray.uint32[this._pos4+13]}set crossTileID(a){this._structArray.uint32[this._pos4+13]=a}get associatedIconIndex(){return this._structArray.int16[this._pos2+28]}get flipState(){return this._structArray.uint8[this._pos1+58]}set flipState(a){this._structArray.uint8[this._pos1+58]=a}}CZ.prototype.size=60;class BU extends nw{get(a){return new CZ(this,a)}}An(BU,"PlacedSymbolArray");class SZ extends Us{get tileAnchorX(){return this._structArray.float32[this._pos4+0]}get tileAnchorY(){return this._structArray.float32[this._pos4+1]}get projectedAnchorX(){return this._structArray.int16[this._pos2+4]}get projectedAnchorY(){return this._structArray.int16[this._pos2+5]}get projectedAnchorZ(){return this._structArray.int16[this._pos2+6]}get rightJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+7]}get centerJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+8]}get leftJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+9]}get verticalPlacedTextSymbolIndex(){return this._structArray.int16[this._pos2+10]}get placedIconSymbolIndex(){return this._structArray.int16[this._pos2+11]}get verticalPlacedIconSymbolIndex(){return this._structArray.int16[this._pos2+12]}get key(){return this._structArray.uint16[this._pos2+13]}get textBoxStartIndex(){return this._structArray.uint16[this._pos2+14]}get textBoxEndIndex(){return this._structArray.uint16[this._pos2+15]}get verticalTextBoxStartIndex(){return this._structArray.uint16[this._pos2+16]}get verticalTextBoxEndIndex(){return this._structArray.uint16[this._pos2+17]}get iconBoxStartIndex(){return this._structArray.uint16[this._pos2+18]}get iconBoxEndIndex(){return this._structArray.uint16[this._pos2+19]}get verticalIconBoxStartIndex(){return this._structArray.uint16[this._pos2+20]}get verticalIconBoxEndIndex(){return this._structArray.uint16[this._pos2+21]}get featureIndex(){return this._structArray.uint16[this._pos2+22]}get numHorizontalGlyphVertices(){return this._structArray.uint16[this._pos2+23]}get numVerticalGlyphVertices(){return this._structArray.uint16[this._pos2+24]}get numIconVertices(){return this._structArray.uint16[this._pos2+25]}get numVerticalIconVertices(){return this._structArray.uint16[this._pos2+26]}get useRuntimeCollisionCircles(){return this._structArray.uint16[this._pos2+27]}get crossTileID(){return this._structArray.uint32[this._pos4+14]}set crossTileID(a){this._structArray.uint32[this._pos4+14]=a}get textOffset0(){return this._structArray.float32[this._pos4+15]}get textOffset1(){return this._structArray.float32[this._pos4+16]}get collisionCircleDiameter(){return this._structArray.float32[this._pos4+17]}get zOffset(){return this._structArray.float32[this._pos4+18]}set zOffset(a){this._structArray.float32[this._pos4+18]=a}get hasIconTextFit(){return this._structArray.uint8[this._pos1+76]}}SZ.prototype.size=80;class zU extends PP{get(a){return new SZ(this,a)}}An(zU,"SymbolInstanceArray");class EZ extends sM{getoffsetX(a){return this.float32[1*a+0]}}An(EZ,"GlyphOffsetArray");class VU extends qc{getx(a){return this.int16[2*a+0]}gety(a){return this.int16[2*a+1]}}An(VU,"SymbolLineVertexArray");class IZ extends Us{get featureIndex(){return this._structArray.uint32[this._pos4+0]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+2]}get bucketIndex(){return this._structArray.uint16[this._pos2+3]}get layoutVertexArrayOffset(){return this._structArray.uint16[this._pos2+4]}}IZ.prototype.size=12;class UU extends FP{get(a){return new IZ(this,a)}}An(UU,"FeatureIndexArray");class TZ extends Od{geta_centroid_pos0(a){return this.uint16[2*a+0]}geta_centroid_pos1(a){return this.uint16[2*a+1]}}An(TZ,"FillExtrusionCentroidArray");let AZ=Vr([{name:"a_pos",components:2,type:"Int16"}],4),Gve=Vr([{name:"a_pos_3",components:3,type:"Int16"},{name:"a_pos_normal_3",components:3,type:"Int16"}]);class cl{constructor(a=[]){this.segments=a}_prepareSegment(a,u,p,m){let _=this.segments[this.segments.length-1];return a>cl.MAX_VERTEX_ARRAY_LENGTH&&ja(`Max vertices per segment is ${cl.MAX_VERTEX_ARRAY_LENGTH}: bucket requested ${a}`),(!_||_.vertexLength+a>cl.MAX_VERTEX_ARRAY_LENGTH||_.sortKey!==m)&&(_={vertexOffset:u,primitiveOffset:p,vertexLength:0,primitiveLength:0},m!==void 0&&(_.sortKey=m),this.segments.push(_)),_}prepareSegment(a,u,p,m){return this._prepareSegment(a,u.length,p.length,m)}get(){return this.segments}destroy(){for(let a of this.segments)for(let u in a.vaos)a.vaos[u].destroy()}static simpleSegment(a,u,p,m){return new cl([{vertexOffset:a,primitiveOffset:u,vertexLength:p,primitiveLength:m,vaos:{},sortKey:0}])}}function DZ(l,a){return 256*(l=Br(Math.floor(l),0,255))+Br(Math.floor(a),0,255)}cl.MAX_VERTEX_ARRAY_LENGTH=Math.pow(2,16)-1,An(cl,"SegmentVector");let kZ=Vr([{name:"a_pattern",components:4,type:"Uint16"},{name:"a_pixel_ratio",components:1,type:"Float32"}]),Yve=Vr([{name:"a_dash",components:4,type:"Uint16"}]);class KE{constructor(){this.ids=[],this.uniqueIds=[],this.positions=[],this.indexed=!1}add(a,u,p,m){this.ids.push(MZ(a)),this.positions.push(u,p,m)}eachPosition(a,u){let p=MZ(a),m=0,_=this.ids.length-1;for(;m<_;){let b=m+_>>1;this.ids[b]>=p?_=b:m=b+1}for(;this.ids[m]===p;)u(this.positions[3*m],this.positions[3*m+1],this.positions[3*m+2]),m++}static serialize(a,u){let p=new Float64Array(a.ids),m=new Uint32Array(a.positions);return BP(p,m,0,p.length-1),u&&(u.add(p.buffer),u.add(m.buffer)),{ids:p,positions:m}}static deserialize(a){let u=new KE,p;u.ids=a.ids,u.positions=a.positions;for(let m of u.ids)m!==p&&u.uniqueIds.push(m),p=m;return u.indexed=!0,u}}function MZ(l){let a=+l;return!isNaN(a)&&Number.MIN_SAFE_INTEGER<=a&&a<=Number.MAX_SAFE_INTEGER?a:wv(String(l))}function BP(l,a,u,p){for(;u>1],_=u-1,b=p+1;for(;;){do _++;while(l[_]m);if(_>=b)break;zP(l,_,b),zP(a,3*_,3*b),zP(a,3*_+1,3*b+1),zP(a,3*_+2,3*b+2)}b-u`u_${m}`),this.type=p}setUniform(a,u,p,m,_){u.set(a,_,m.constantOr(this.value))}getBinding(a,u){return this.type==="color"?new jU(a):new rd(a)}}class rw{constructor(a,u){this.uniformNames=u.map(p=>`u_${p}`),this.pattern=null,this.pixelRatio=1}setConstantPatternPositions(a){this.pixelRatio=a.pixelRatio||1,this.pattern=a.tl.concat(a.br)}setUniform(a,u,p,m,_){let b=_==="u_pattern"||_==="u_dash"?this.pattern:_==="u_pixel_ratio"?this.pixelRatio:null;b&&u.set(a,_,b)}getBinding(a,u){return u==="u_pattern"||u==="u_dash"?new OZ(a):new rd(a)}}class Bv{constructor(a,u,p,m){this.expression=a,this.type=p,this.maxValue=0,this.paintVertexAttributes=u.map(_=>({name:`a_${_}`,type:"Float32",components:p==="color"?2:1,offset:0})),this.paintVertexArray=new m}populatePaintArray(a,u,p,m,_,b,S){let I=this.paintVertexArray.length,M=this.expression.evaluate(new be(0,{brightness:b}),u,{},_,m,S);this.paintVertexArray.resize(a),this._setPaintValue(I,a,M)}updatePaintArray(a,u,p,m,_,b,S){let I=this.expression.evaluate({zoom:0,brightness:S},p,m,void 0,_);this._setPaintValue(a,u,I)}_setPaintValue(a,u,p){if(this.type==="color"){let m=jP(p);for(let _=a;_`u_${S}_t`),this.type=p,this.useIntegerZoom=m,this.zoom=_,this.maxValue=0,this.paintVertexAttributes=u.map(S=>({name:`a_${S}`,type:"Float32",components:p==="color"?4:2,offset:0})),this.paintVertexArray=new b}populatePaintArray(a,u,p,m,_,b,S){let I=this.expression.evaluate(new be(this.zoom,{brightness:b}),u,{},_,m,S),M=this.expression.evaluate(new be(this.zoom+1,{brightness:b}),u,{},_,m,S),N=this.paintVertexArray.length;this.paintVertexArray.resize(a),this._setPaintValue(N,a,I,M)}updatePaintArray(a,u,p,m,_,b,S){let I=this.expression.evaluate({zoom:this.zoom,brightness:S},p,m,void 0,_),M=this.expression.evaluate({zoom:this.zoom+1,brightness:S},p,m,void 0,_);this._setPaintValue(a,u,I,M)}_setPaintValue(a,u,p,m){if(this.type==="color"){let _=jP(p),b=jP(m);for(let S=a;S!0){this.binders={},this._buffers=[];let m=[];for(let _ in a.paint._values){let b=a.paint.get(_);if(!p(_)||!(b instanceof zt&&X1(b.property.specification)))continue;let S=Kve(_,a.type),I=b.value,M=b.property.specification.type,N=!!b.property.useIntegerZoom,P=_==="line-dasharray"||_.endsWith("pattern"),V=_==="line-dasharray"&&a.layout.get("line-cap").value.kind!=="constant";if(I.kind!=="constant"||V)if(I.kind==="source"||V||P){let H=GU(_,M,"source");this.binders[_]=P?new tb(I,S,M,H,a.id):new Bv(I,S,M,H),m.push(`/a_${_}`)}else{let H=GU(_,M,"composite");this.binders[_]=new If(I,S,M,N,u,H),m.push(`/z_${_}`)}else this.binders[_]=P?new rw(I.value,S):new lM(I.value,S,M),m.push(`/u_${_}`)}this.cacheKey=m.sort().join("")}getMaxValue(a){let u=this.binders[a];return u instanceof Bv||u instanceof If?u.maxValue:0}populatePaintArrays(a,u,p,m,_,b,S){for(let I in this.binders){let M=this.binders[I];(M instanceof Bv||M instanceof If||M instanceof tb)&&M.populatePaintArray(a,u,p,m,_,b,S)}}setConstantPatternPositions(a){for(let u in this.binders){let p=this.binders[u];p instanceof rw&&p.setConstantPatternPositions(a)}}updatePaintArrays(a,u,p,m,_,b,S,I){let M=!1,N=Object.keys(a),P=N.length!==0,V=P?N:u.uniqueIds;for(let H in this.binders){let Y=this.binders[H];if((Y instanceof Bv||Y instanceof If||Y instanceof tb)&&(Y.expression.isStateDependent===!0||Y.expression.isLightConstant===!1)){let W=_.paint.get(H);Y.expression=W.value;for(let re of V){let ue=a[re.toString()];u.eachPosition(re,(Te,Pe,De)=>{let tt=m.feature(Te);Y.updatePaintArray(Pe,De,tt,ue,b,S,I)})}if(!P)for(let re of p.uniqueIds){let ue=a[re.toString()];p.eachPosition(re,(Te,Pe,De)=>{let tt=m.feature(Te);Y.updatePaintArray(Pe,De,tt,ue,b,S,I)})}M=!0}}return M}defines(){let a=[];for(let u in this.binders){let p=this.binders[u];(p instanceof lM||p instanceof rw)&&a.push(...p.uniformNames.map(m=>`#define HAS_UNIFORM_${m}`))}return a}getBinderAttributes(){let a=[];for(let u in this.binders){let p=this.binders[u];if(p instanceof Bv||p instanceof If||p instanceof tb)for(let m=0;m!0){this.programConfigurations={};for(let m of a)this.programConfigurations[m.id]=new ib(m,u,p);this.needsUpload=!1,this._featureMap=new KE,this._featureMapWithoutIds=new KE,this._bufferOffset=0,this._idlessCounter=0}populatePaintArrays(a,u,p,m,_,b,S,I){for(let M in this.programConfigurations)this.programConfigurations[M].populatePaintArrays(a,u,m,_,b,S,I);u.id!==void 0?this._featureMap.add(u.id,p,this._bufferOffset,a):(this._featureMapWithoutIds.add(this._idlessCounter,p,this._bufferOffset,a),this._idlessCounter+=1),this._bufferOffset=a,this.needsUpload=!0}updatePaintArrays(a,u,p,m,_,b){for(let S of p)this.needsUpload=this.programConfigurations[S.id].updatePaintArrays(a,this._featureMap,this._featureMapWithoutIds,u,S,m,_,b||0)||this.needsUpload}get(a){return this.programConfigurations[a]}upload(a){if(this.needsUpload){for(let u in this.programConfigurations)this.programConfigurations[u].upload(a);this.needsUpload=!1}}destroy(){for(let a in this.programConfigurations)this.programConfigurations[a].destroy()}}let NZ={"text-opacity":["opacity"],"icon-opacity":["opacity"],"text-color":["fill_color"],"icon-color":["fill_color"],"text-emissive-strength":["emissive_strength"],"icon-emissive-strength":["emissive_strength"],"text-halo-color":["halo_color"],"icon-halo-color":["halo_color"],"text-halo-blur":["halo_blur"],"icon-halo-blur":["halo_blur"],"text-halo-width":["halo_width"],"icon-halo-width":["halo_width"],"line-gap-width":["gapwidth"],"line-pattern":["pattern","pixel_ratio"],"fill-pattern":["pattern","pixel_ratio"],"fill-extrusion-pattern":["pattern","pixel_ratio"],"line-dasharray":["dash"]};function Kve(l,a){return NZ[l]||[l.replace(`${a}-`,"").replace(/-/g,"_")]}let PZ={"line-pattern":{source:Kc,composite:Kc},"fill-pattern":{source:Kc,composite:Kc},"fill-extrusion-pattern":{source:Kc,composite:Kc},"line-dasharray":{source:Dp,composite:Dp}},Wve={color:{source:Rc,composite:_c},number:{source:sM,composite:Rc}};function GU(l,a,u){let p=PZ[l];return p&&p[u]||Wve[a][u]}An(lM,"ConstantBinder"),An(rw,"PatternConstantBinder"),An(Bv,"SourceExpressionBinder"),An(tb,"PatternCompositeBinder"),An(If,"CompositeExpressionBinder"),An(ib,"ProgramConfiguration",{omit:["_buffers"]}),An(nb,"ProgramConfigurationSet");let Rd=dn/Math.PI/2,HP=5,FZ=6,LZ=16383,ZE=64,GP=[ZE,32,16],Lh=-Rd,Bh=Rd;function ow(l,a,u,p=Rd){return u=Bo(u),[l*Math.sin(u)*p,-a*p,l*Math.cos(u)*p]}function rb(l,a,u){return ow(Math.cos(Bo(l)),Math.sin(Bo(l)),a,u)}let Rl=63710088e-1,YU=2*Math.PI*Rl;class Ho{constructor(a,u){if(isNaN(a)||isNaN(u))throw new Error(`Invalid LngLat object: (${a}, ${u})`);if(this.lng=+a,this.lat=+u,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")}wrap(){return new Ho(xp(this.lng,-180,180),this.lat)}toArray(){return[this.lng,this.lat]}toString(){return`LngLat(${this.lng}, ${this.lat})`}distanceTo(a){let u=Math.PI/180,p=this.lat*u,m=a.lat*u,_=Math.sin(p)*Math.sin(m)+Math.cos(p)*Math.cos(m)*Math.cos((a.lng-this.lng)*u);return Rl*Math.acos(Math.min(_,1))}toBounds(a=0){let u=360*a/40075017,p=u/Math.cos(Math.PI/180*this.lat);return new zv({lng:this.lng-p,lat:this.lat-u},{lng:this.lng+p,lat:this.lat+u})}toEcef(a){return rb(this.lat,this.lng,Rd+a*Rd/Rl)}static convert(a){if(a instanceof Ho)return a;if(Array.isArray(a)&&(a.length===2||a.length===3))return new Ho(Number(a[0]),Number(a[1]));if(!Array.isArray(a)&&typeof a=="object"&&a!==null)return new Ho(Number("lng"in a?a.lng:a.lon),Number(a.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]")}}class zv{constructor(a,u){if(a)if(u)this.setSouthWest(a).setNorthEast(u);else if(a.length===4){let p=a;this.setSouthWest([p[0],p[1]]).setNorthEast([p[2],p[3]])}else{let p=a;this.setSouthWest(p[0]).setNorthEast(p[1])}}setNorthEast(a){return this._ne=a instanceof Ho?new Ho(a.lng,a.lat):Ho.convert(a),this}setSouthWest(a){return this._sw=a instanceof Ho?new Ho(a.lng,a.lat):Ho.convert(a),this}extend(a){let u=this._sw,p=this._ne,m,_;if(a instanceof Ho)m=a,_=a;else{if(!(a instanceof zv))return Array.isArray(a)?a.length===4||a.every(Array.isArray)?this.extend(zv.convert(a)):this.extend(Ho.convert(a)):typeof a=="object"&&a!==null&&a.hasOwnProperty("lat")&&(a.hasOwnProperty("lon")||a.hasOwnProperty("lng"))?this.extend(Ho.convert(a)):this;if(m=a._sw,_=a._ne,!m||!_)return this}return u||p?(u.lng=Math.min(m.lng,u.lng),u.lat=Math.min(m.lat,u.lat),p.lng=Math.max(_.lng,p.lng),p.lat=Math.max(_.lat,p.lat)):(this._sw=new Ho(m.lng,m.lat),this._ne=new Ho(_.lng,_.lat)),this}getCenter(){return new Ho((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)}getSouthWest(){return this._sw}getNorthEast(){return this._ne}getNorthWest(){return new Ho(this.getWest(),this.getNorth())}getSouthEast(){return new Ho(this.getEast(),this.getSouth())}getWest(){return this._sw.lng}getSouth(){return this._sw.lat}getEast(){return this._ne.lng}getNorth(){return this._ne.lat}toArray(){return[this._sw.toArray(),this._ne.toArray()]}toString(){return`LngLatBounds(${this._sw.toString()}, ${this._ne.toString()})`}isEmpty(){return!(this._sw&&this._ne)}contains(a){let{lng:u,lat:p}=Ho.convert(a),m=this._sw.lng<=u&&u<=this._ne.lng;return this._sw.lng>this._ne.lng&&(m=this._sw.lng>=u&&u>=this._ne.lng),this._sw.lat<=p&&p<=this._ne.lat&&m}static convert(a){return!a||a instanceof zv?a:new zv(a)}}var BZ={};(function(l,a){(function(u){function p(_,b,S){var I=m(256*_,256*(b=Math.pow(2,S)-b-1),S),M=m(256*(_+1),256*(b+1),S);return I[0]+","+I[1]+","+M[0]+","+M[1]}function m(_,b,S){var I=2*Math.PI*6378137/256/Math.pow(2,S);return[_*I-2*Math.PI*6378137/2,b*I-2*Math.PI*6378137/2]}u.getURL=function(_,b,S,I,M,N){return N=N||{},_+"?"+["bbox="+p(S,I,M),"format="+(N.format||"image/png"),"service="+(N.service||"WMS"),"version="+(N.version||"1.1.1"),"request="+(N.request||"GetMap"),"srs="+(N.srs||"EPSG:3857"),"width="+(N.width||256),"height="+(N.height||256),"layers="+b].join("&")},u.getTileBBox=p,u.getMercCoords=m,Object.defineProperty(u,"__esModule",{value:!0})})(a)})(0,BZ);var zZ=BZ;class sw{constructor(a,u,p){this.z=a,this.x=u,this.y=p,this.key=QE(0,a,a,u,p)}equals(a){return this.z===a.z&&this.x===a.x&&this.y===a.y}url(a,u){let p=zZ.getTileBBox(this.x,this.y,this.z),m=function(_,b,S){let I,M="";for(let N=_;N>0;N--)I=1<this.canonical.z?new Mu(a,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new Mu(a,this.wrap,a,this.canonical.x>>u,this.canonical.y>>u)}calculateScaledKey(a,u=!0){if(this.overscaledZ===a&&u)return this.key;if(a>this.canonical.z)return QE(this.wrap*+u,a,this.canonical.z,this.canonical.x,this.canonical.y);{let p=this.canonical.z-a;return QE(this.wrap*+u,a,a,this.canonical.x>>p,this.canonical.y>>p)}}isChildOf(a){if(a.wrap!==this.wrap)return!1;let u=this.canonical.z-a.canonical.z;return a.overscaledZ===0||a.overscaledZ>u&&a.canonical.y===this.canonical.y>>u}children(a){if(this.overscaledZ>=a)return[new Mu(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];let u=this.canonical.z+1,p=2*this.canonical.x,m=2*this.canonical.y;return[new Mu(u,this.wrap,u,p,m),new Mu(u,this.wrap,u,p+1,m),new Mu(u,this.wrap,u,p,m+1),new Mu(u,this.wrap,u,p+1,m+1)]}isLessThan(a){return this.wrapa.wrap)&&(this.overscaledZa.overscaledZ)&&(this.canonical.xa.canonical.x)&&this.canonical.y{let a=l.canonical.x-1,u=l.wrap;return a<0&&(a=(1<{let a=l.canonical.x+1,u=l.wrap;return a===1<new Mu(l.overscaledZ,l.wrap,l.canonical.z,l.canonical.x,(l.canonical.y===0?1<new Mu(l.overscaledZ,l.wrap,l.canonical.z,l.canonical.x,l.canonical.y===(1<=I?(ZU(l,a,u,M,N,_,P,S,I),ZU(l,M,N,p,m,P,b,S,I)):l.push(b)}function QU(l,a,u){let p=l[0],m=p.x,_=p.y;a(p);let b=[p];for(let S=1;Sl.x+1||pl.y+1)&&ja("Geometry exceeds allowed extent, reduce your vector tile buffer size"),l}function t_(l,a,u){let p=l.loadGeometry(),m=l.extent,_=dn/m;if(a&&u&&u.projection.isReprojectedInTileSpace){let b=1<{let H=ch((a.x+V.x/m)/b),Y=au((a.y+V.y/m)/b),W=N.project(H,Y);V.x=(W.x*S-I)*m,V.y=(W.y*S-M)*m};for(let V=0;V=m||Y.y<0||Y.y>=m||(P(Y),H.push(Y));p[V]=H}}for(let b of p)for(let S of b)Xve(S,_);return p}function sb(l,a){return{type:l.type,id:l.id,properties:l.properties,geometry:a?t_(l):[]}}function cM(l,a,u,p,m){l.emplaceBack(2*a+(p+1)/2,2*u+(m+1)/2)}function $P(l,a,u){l.emplaceBack(a.x,a.y,a.z,u[0]*16384,u[1]*16384,u[2]*16384)}class KP{constructor(a){this.zoom=a.zoom,this.overscaling=a.overscaling,this.layers=a.layers,this.layerIds=this.layers.map(u=>u.fqid),this.index=a.index,this.hasPattern=!1,this.projection=a.projection,this.layoutVertexArray=new qc,this.indexArray=new vc,this.segments=new cl,this.programConfigurations=new nb(a.layers,a.zoom),this.stateDependentLayerIds=this.layers.filter(u=>u.isStateDependent()).map(u=>u.id)}populate(a,u,p,m){let _=this.layers[0],b=[],S=null;_.type==="circle"&&(S=_.layout.get("circle-sort-key"));for(let{feature:M,id:N,index:P,sourceLayerIndex:V}of a){let H=this.layers[0]._featureFilter.needGeometry,Y=sb(M,H);if(!this.layers[0]._featureFilter.filter(new be(this.zoom),Y,p))continue;let W=S?S.evaluate(Y,{},p):void 0,re={id:N,properties:M.properties,type:M.type,sourceLayerIndex:V,index:P,geometry:H?Y.geometry:t_(M,p,m),patterns:{},sortKey:W};b.push(re)}S&&b.sort((M,N)=>M.sortKey-N.sortKey);let I=null;m.projection.name==="globe"&&(this.globeExtVertexArray=new kp,I=m.projection);for(let M of b){let{geometry:N,index:P,sourceLayerIndex:V}=M,H=a[P].feature;this.addFeature(M,N,P,u.availableImages,p,I,u.brightness),u.featureIndex.insert(H,N,P,V,this.index)}}update(a,u,p,m,_){let b=Object.keys(a).length!==0;b&&!this.stateDependentLayers.length||this.programConfigurations.updatePaintArrays(a,u,b?this.stateDependentLayers:this.layers,p,m,_)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(a){this.uploaded||(this.layoutVertexBuffer=a.createVertexBuffer(this.layoutVertexArray,AZ.members),this.indexBuffer=a.createIndexBuffer(this.indexArray),this.globeExtVertexArray&&(this.globeExtVertexBuffer=a.createVertexBuffer(this.globeExtVertexArray,Gve.members))),this.programConfigurations.upload(a),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.globeExtVertexBuffer&&this.globeExtVertexBuffer.destroy())}addFeature(a,u,p,m,_,b,S){for(let I of u)for(let M of I){let N=M.x,P=M.y;if(N<0||N>=dn||P<0||P>=dn)continue;if(b){let Y=b.projectTilePoint(N,P,_),W=b.upVector(_,N,P),re=this.globeExtVertexArray;$P(re,Y,W),$P(re,Y,W),$P(re,Y,W),$P(re,Y,W)}let V=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,a.sortKey),H=V.vertexLength;cM(this.layoutVertexArray,N,P,-1,-1),cM(this.layoutVertexArray,N,P,1,-1),cM(this.layoutVertexArray,N,P,1,1),cM(this.layoutVertexArray,N,P,-1,1),this.indexArray.emplaceBack(H,H+1,H+2),this.indexArray.emplaceBack(H,H+2,H+3),V.vertexLength+=4,V.primitiveLength+=2}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,a,p,{},m,_,S)}}function t6(l,a){for(let u=0;u1){if(ZP(l,a))return!0;for(let p=0;p1?u:u.sub(a)._mult(m)._add(a))}function n6(l,a){let u,p,m,_=!1;for(let b=0;ba.y!=m.y>a.y&&a.x<(m.x-p.x)*(a.y-p.y)/(m.y-p.y)+p.x&&(_=!_)}return _}function lw(l,a){let u=!1;for(let p=0,m=l.length-1;pa.y!=b.y>a.y&&a.x<(b.x-_.x)*(a.y-_.y)/(b.y-_.y)+_.x&&(u=!u)}return u}function r6(l,a,u,p,m){for(let b of l)if(a<=b.x&&u<=b.y&&p>=b.x&&m>=b.y)return!0;let _=[new cn(a,u),new cn(a,m),new cn(p,m),new cn(p,u)];if(l.length>2){for(let b of _)if(lw(l,b))return!0}for(let b=0;bm.x&&a.x>m.x||l.ym.y&&a.y>m.y)return!1;let _=Lg(l,a,u[0]);return _!==Lg(l,a,u[1])||_!==Lg(l,a,u[2])||_!==Lg(l,a,u[3])}function cw(l,a,u,p,m,_){let b=a.y-l.y,S=l.x-a.x;if(_=_||0){let I=b*b+S*S;if(I===0)return!0;let M=Math.sqrt(I);b/=M,S/=M}return!((u.x-l.x)*b+(u.y-l.y)*S-_<0||(p.x-l.x)*b+(p.y-l.y)*S-_<0||(m.x-l.x)*b+(m.y-l.y)*S-_<0)}function o6(l,a,u,p,m,_,b){return!(cw(l,a,p,m,_,b)||cw(a,u,p,m,_,b)||cw(u,l,p,m,_,b)||cw(p,m,l,a,u,b)||cw(m,_,l,a,u,b)||cw(_,p,l,a,u,b))}function uw(l,a,u){let p=a.paint.get(l).value;return p.kind==="constant"?p.value:u.programConfigurations.get(a.id).getMaxValue(l)}function QP(l){return Math.sqrt(l[0]*l[0]+l[1]*l[1])}function s6(l,a,u,p,m){if(!a[0]&&!a[1])return l;let _=cn.convert(a)._mult(m);u==="viewport"&&_._rotate(-p);let b=[];for(let S=0;S=0;if(_===0)return 0;_!==a.length&&(u=!1)}return u?2:1}function l6(l,a){for(let u of l.projections){let p=XE(a,l.points[0],u.axis);if(u.projection[1]p[1])return 0}return 1}function KZ(l,a){let u=0,p=[0,0,0,0];for(let m=0;m=0&&u++;return u}class JP{constructor(a,u){this.points=a||new Array(8).fill([0,0,0]),this.planes=u||new Array(6).fill([0,0,0,0]),this.bounds=Ta.fromPoints(this.points),this.projections=[],this.frustumEdges=[o.Q.sub([],this.points[2],this.points[3]),o.Q.sub([],this.points[0],this.points[3]),o.Q.sub([],this.points[4],this.points[0]),o.Q.sub([],this.points[5],this.points[1]),o.Q.sub([],this.points[6],this.points[2]),o.Q.sub([],this.points[7],this.points[3])];for(let p of this.frustumEdges){let m=[0,-p[2],p[1]],_=[p[2],0,-p[0]];this.projections.push({axis:m,projection:XE(this.points,this.points[0],m)}),this.projections.push({axis:_,projection:XE(this.points,this.points[0],_)})}}static fromInvProjectionMatrix(a,u,p,m){let _=Math.pow(2,p),b=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]].map(M=>{let N=o.aa.transformMat4([],M,a),P=1/N[3]/u*_;return o.aa.mul(N,N,[P,P,m?1/N[3]:P,P])}),S=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]].map(M=>{let N=o.Q.sub([],b[M[0]],b[M[1]]),P=o.Q.sub([],b[M[2]],b[M[1]]),V=o.Q.normalize([],o.Q.cross([],N,P)),H=-o.Q.dot(V,b[M[1]]);return V.concat(H)}),I=[];for(let M=0;MM[1]||M[0]>I[1])return 0}return 1}}class Ta{static fromPoints(a){let u=[1/0,1/0,1/0],p=[-1/0,-1/0,-1/0];for(let m of a)o.Q.min(u,u,m),o.Q.max(p,p,m);return new Ta(u,p)}static fromTileIdAndHeight(a,u,p){let m=1<a.max[u]||a.min[u]>this.max[u])return!1;return!0}intersectsAabbXY(a){return!(this.min[0]>a.max[0]||a.min[0]>this.max[0]||this.min[1]>a.max[1]||a.min[1]>this.max[1])}encapsulate(a){for(let u=0;u<3;u++)this.min[u]=Math.min(this.min[u],a.min[u]),this.max[u]=Math.max(this.max[u],a.max[u])}encapsulatePoint(a){for(let u=0;u<3;u++)this.min[u]=Math.min(this.min[u],a[u]),this.max[u]=Math.max(this.max[u],a[u])}closestPoint(a){return[Math.max(Math.min(this.max[0],a[0]),this.min[0]),Math.max(Math.min(this.max[1],a[1]),this.min[1]),Math.max(Math.min(this.max[2],a[2]),this.min[2])]}}An(Ta,"Aabb");let WZ=Vr([{type:"Float32",name:"a_globe_pos",components:3},{type:"Float32",name:"a_uv",components:2}]),{members:eF}=WZ,ZZ=Vr([{name:"a_pos_3",components:3,type:"Int16"}]);var QZ=Vr([{name:"a_pos",type:"Int16",components:2}]);function uM(l){return l*Rd/Rl}let t0e=[new Ta([Lh,Lh,Lh],[Bh,Bh,Bh]),new Ta([Lh,Lh,Lh],[0,0,Bh]),new Ta([0,Lh,Lh],[Bh,0,Bh]),new Ta([Lh,0,Lh],[0,Bh,Bh]),new Ta([0,0,Lh],[Bh,Bh,Bh])];function c6(l,a,u,p=!0){let m=o.Q.scale([],l._camera.position,l.worldSize),_=[a,u,1,1];o.aa.transformMat4(_,_,l.pixelMatrixInverse),o.aa.scale(_,_,1/_[3]);let b=o.Q.sub([],_,m),S=o.Q.normalize([],b),I=l.globeMatrix,M=[I[12],I[13],I[14]],N=o.Q.sub([],M,m),P=o.Q.length(N),V=o.Q.normalize([],N),H=l.worldSize/(2*Math.PI),Y=o.Q.dot(V,S),W=Math.asin(H/P);if(W1?null:function(p,m,_,b){let S=Math.sin(_);return p*(Math.sin((1-b)*_)/S)+m*(Math.sin(b*_)/S)}(l.a[a],l.b[a],l.angle,Br(u,0,1))+l.center[a]}function i_(l){if(l.z<=1)return t0e[l.z+2*l.y+l.x];let a=nF(iF(l));return Ta.fromPoints(a)}function n_(l,a,u){return o.Q.scale(l,l,1-u),o.Q.scaleAndAdd(l,l,a,u)}function XZ(l,a,u){for(let p of l)o.Q.transformMat4(p,p,a),o.Q.scale(p,p,u)}function u6(l,a,u,p){let m=a/l.worldSize,_=l.globeMatrix;if(u.z<=1){let Mt=i_(u).getCorners();return XZ(Mt,_,m),Ta.fromPoints(Mt)}let b=iF(u,p),S=nF(b,Rd+uM(l._tileCoverLift));XZ(S,_,m);let I=Number.MAX_VALUE,M=[-I,-I,-I],N=[I,I,I];if(b.contains(l.center)){for(let Bt of S)o.Q.min(N,N,Bt),o.Q.max(M,M,Bt);M[2]=0;let Mt=l.point,Jt=[Mt.x*m,Mt.y*m,0];return o.Q.min(N,N,Jt),o.Q.max(M,M,Jt),new Ta(N,M)}if(l._tileCoverLift>0){for(let Mt of S)o.Q.min(N,N,Mt),o.Q.max(M,M,Mt);return new Ta(N,M)}let P=[_[12]*m,_[13]*m,_[14]*m],V=b.getCenter(),H=Br(l.center.lat,-bl,bl),Y=Br(V.lat,-bl,bl),W=ob(l.center.lng),re=e_(H),ue=W-ob(V.lng),Te=re-e_(Y);ue>.5?ue-=1:ue<-.5&&(ue+=1);let Pe=0;if(Math.abs(ue)>Math.abs(Te))Pe=ue>=0?1:3;else{Pe=Te>=0?0:2;let Mt=[_[4]*m,_[5]*m,_[6]*m],Jt=-Math.sin(Bo(Te>=0?b.getSouth():b.getNorth()))*Rd;o.Q.scaleAndAdd(P,P,Mt,Jt)}let De=S[Pe],tt=S[(Pe+1)%4],Ye=new i0e(De,tt,P),at=[tF(Ye,0)||De[0],tF(Ye,1)||De[1],tF(Ye,2)||De[2]],_t=zh(l.zoom);if(_t>0){let Mt=function({x:Bt,y:si,z:oi},ei,wi,vi,Ti){let Ei=1/(1<.5?cr=-1:Zn<-.5&&(cr=1),ci=((ci+cr)*ei-(vi*=ei))*wi+vi,zn=((zn+cr)*ei-vi)*wi+vi,Dn=(Dn*ei-(Ti*=ei))*wi+Ti,Ri=(Ri*ei-Ti)*wi+Ti,[[ci,Ri,0],[zn,Ri,0],[zn,Dn,0],[ci,Dn,0]]}(u,a,l._pixelsPerMercatorPixel,W,re);for(let Bt=0;BtMath.PI/2*1.01}let tQ=Bo(85),iQ=Math.cos(tQ),n0e=Math.sin(tQ),nQ=o.a9.create(),rQ=l=>{let a=[];return l.paint.get("circle-pitch-alignment")==="map"&&a.push("PITCH_WITH_MAP"),l.paint.get("circle-pitch-scale")==="map"&&a.push("SCALE_WITH_MAP"),a};function f6(l,a,u,p,m,_,b,S,I){if(_&&l.queryGeometry.isAboveHorizon)return!1;_&&(I*=l.pixelToTileUnitsFactor);let M=l.tileID.canonical,N=u.projection.upVectorScale(M,u.center.lat,u.worldSize).metersToTile;for(let P of a)for(let V of P){let H=V.add(S),Y=m&&u.elevation?u.elevation.exaggeration()*m.getElevationAt(H.x,H.y,!0):0,W=u.projection.projectTilePoint(H.x,H.y,M);if(Y>0){let Pe=u.projection.upVector(M,H.x,H.y);W.x+=Pe[0]*N*Y,W.y+=Pe[1]*N*Y,W.z+=Pe[2]*N*Y}let re=_?H:r0e(W.x,W.y,W.z,p),ue=_?l.tilespaceRays.map(Pe=>oQ(Pe,Y)):l.queryGeometry.screenGeometry,Te=o.aa.transformMat4([],[W.x,W.y,W.z,1],p);if(!b&&_?I*=Te[3]/u.cameraToCenterDistance:b&&!_&&(I*=u.cameraToCenterDistance/Te[3]),_){let Pe=au((V.y/dn+M.y)/(1<l.width||m.height>l.height||u.x>l.width-m.width||u.y>l.height-m.height)throw new RangeError("out of range source coordinates for image copy");if(m.width>a.width||m.height>a.height||p.x>a.width-m.width||p.y>a.height-m.height)throw new RangeError("out of range destination coordinates for image copy");let S=l.data,I=a.data,M=_===4&&b;for(let N=0;N{a[l.evaluationKey]=I;let M=l.expression.evaluate(a);M&&(m.data[b+S+0]=Math.floor(255*M.r/M.a),m.data[b+S+1]=Math.floor(255*M.g/M.a),m.data[b+S+2]=Math.floor(255*M.b/M.a),m.data[b+S+3]=Math.floor(255*M.a))};if(l.clips)for(let b=0,S=0;b80*u){p=_=l[0],m=b=l[1];for(var Y=u;Y_&&(_=S),I>b&&(b=I);M=(M=Math.max(_-p,b-m))!==0?32767/M:0}return gM(V,H,u,p,m,M,0),H}function uQ(l,a,u,p,m){var _,b;if(m===C6(l,a,u,p)>0)for(_=a;_=a;_-=p)b=x6(_,l[_],l[_+1],b);return b&&_M(b,b.next)&&(lb(b),b=b.next),b}function ab(l,a){if(!l)return l;a||(a=l);var u,p=l;do if(u=!1,p.steiner||!_M(p,p.next)&&ac(p.prev,p,p.next)!==0)p=p.next;else{if(lb(p),(p=a=p.prev)===p.next)break;u=!0}while(u||p!==a);return a}function gM(l,a,u,p,m,_,b){if(l){!b&&_&&function(N,P,V,H){var Y=N;do Y.z===0&&(Y.z=y6(Y.x,Y.y,P,V,H)),Y.prevZ=Y.prev,Y.nextZ=Y.next,Y=Y.next;while(Y!==N);Y.prevZ.nextZ=null,Y.prevZ=null,function(W){var re,ue,Te,Pe,De,tt,Ye,at,_t=1;do{for(ue=W,W=null,De=null,tt=0;ue;){for(tt++,Te=ue,Ye=0,re=0;re<_t&&(Ye++,Te=Te.nextZ);re++);for(at=_t;Ye>0||at>0&&Te;)Ye!==0&&(at===0||!Te||ue.z<=Te.z)?(Pe=ue,ue=ue.nextZ,Ye--):(Pe=Te,Te=Te.nextZ,at--),De?De.nextZ=Pe:W=Pe,Pe.prevZ=De,De=Pe;ue=Te}De.nextZ=null,_t*=2}while(tt>1)}(Y)}(l,p,m,_);for(var S,I,M=l;l.prev!==l.next;)if(S=l.prev,I=l.next,_?a0e(l,p,m,_):dQ(l))a.push(S.i/u|0),a.push(l.i/u|0),a.push(I.i/u|0),lb(l),l=I.next,M=I.next;else if((l=I)===M){b?b===1?gM(l=hQ(ab(l),a,u),a,u,p,m,_,2):b===2&&l0e(l,a,u,p,m,_):gM(ab(l),a,u,p,m,_,1);break}}}function dQ(l){var a=l.prev,u=l,p=l.next;if(ac(a,u,p)>=0)return!1;for(var m=a.x,_=u.x,b=p.x,S=a.y,I=u.y,M=p.y,N=m<_?m_?m>b?m:b:_>b?_:b,H=S>I?S>M?S:M:I>M?I:M,Y=p.next;Y!==a;){if(Y.x>=N&&Y.x<=V&&Y.y>=P&&Y.y<=H&&eI(m,S,_,I,b,M,Y.x,Y.y)&&ac(Y.prev,Y,Y.next)>=0)return!1;Y=Y.next}return!0}function a0e(l,a,u,p){var m=l.prev,_=l,b=l.next;if(ac(m,_,b)>=0)return!1;for(var S=m.x,I=_.x,M=b.x,N=m.y,P=_.y,V=b.y,H=SI?S>M?S:M:I>M?I:M,re=N>P?N>V?N:V:P>V?P:V,ue=y6(H,Y,a,u,p),Te=y6(W,re,a,u,p),Pe=l.prevZ,De=l.nextZ;Pe&&Pe.z>=ue&&De&&De.z<=Te;){if(Pe.x>=H&&Pe.x<=W&&Pe.y>=Y&&Pe.y<=re&&Pe!==m&&Pe!==b&&eI(S,N,I,P,M,V,Pe.x,Pe.y)&&ac(Pe.prev,Pe,Pe.next)>=0||(Pe=Pe.prevZ,De.x>=H&&De.x<=W&&De.y>=Y&&De.y<=re&&De!==m&&De!==b&&eI(S,N,I,P,M,V,De.x,De.y)&&ac(De.prev,De,De.next)>=0))return!1;De=De.nextZ}for(;Pe&&Pe.z>=ue;){if(Pe.x>=H&&Pe.x<=W&&Pe.y>=Y&&Pe.y<=re&&Pe!==m&&Pe!==b&&eI(S,N,I,P,M,V,Pe.x,Pe.y)&&ac(Pe.prev,Pe,Pe.next)>=0)return!1;Pe=Pe.prevZ}for(;De&&De.z<=Te;){if(De.x>=H&&De.x<=W&&De.y>=Y&&De.y<=re&&De!==m&&De!==b&&eI(S,N,I,P,M,V,De.x,De.y)&&ac(De.prev,De,De.next)>=0)return!1;De=De.nextZ}return!0}function hQ(l,a,u){var p=l;do{var m=p.prev,_=p.next.next;!_M(m,_)&&_Q(m,p,p.next,_)&&dw(m,_)&&dw(_,m)&&(a.push(m.i/u|0),a.push(p.i/u|0),a.push(_.i/u|0),lb(p),lb(p.next),p=l=_),p=p.next}while(p!==l);return ab(p)}function l0e(l,a,u,p,m,_){var b=l;do{for(var S=b.next.next;S!==b.prev;){if(b.i!==S.i&&gQ(b,S)){var I=b6(b,S);return b=ab(b,b.next),I=ab(I,I.next),gM(b,a,u,p,m,_,0),void gM(I,a,u,p,m,_,0)}S=S.next}b=b.next}while(b!==l)}function pQ(l,a){return l.x-a.x}function c0e(l,a){var u=function(m,_){var b,S=_,I=m.x,M=m.y,N=-1/0;do{if(M<=S.y&&M>=S.next.y&&S.next.y!==S.y){var P=S.x+(M-S.y)*(S.next.x-S.x)/(S.next.y-S.y);if(P<=I&&P>N&&(N=P,b=S.x=S.x&&S.x>=Y&&I!==S.x&&eI(Mb.x||S.x===b.x&&fQ(b,S)))&&(b=S,re=V)),S=S.next;while(S!==H);return b}(l,a);if(!u)return a;var p=b6(u,l);return ab(p,p.next),ab(u,u.next)}function fQ(l,a){return ac(l.prev,l,a.prev)<0&&ac(a.next,l,l.next)<0}function y6(l,a,u,p,m){return(l=1431655765&((l=858993459&((l=252645135&((l=16711935&((l=(l-u)*m|0)|l<<8))|l<<4))|l<<2))|l<<1))|(a=1431655765&((a=858993459&((a=252645135&((a=16711935&((a=(a-p)*m|0)|a<<8))|a<<4))|a<<2))|a<<1))<<1}function mQ(l){var a=l,u=l;do(a.x=(l-b)*(_-S)&&(l-b)*(p-S)>=(u-b)*(a-S)&&(u-b)*(_-S)>=(m-b)*(p-S)}function gQ(l,a){return l.next.i!==a.i&&l.prev.i!==a.i&&!function(u,p){var m=u;do{if(m.i!==u.i&&m.next.i!==u.i&&m.i!==p.i&&m.next.i!==p.i&&_Q(m,m.next,u,p))return!0;m=m.next}while(m!==u);return!1}(l,a)&&(dw(l,a)&&dw(a,l)&&function(u,p){var m=u,_=!1,b=(u.x+p.x)/2,S=(u.y+p.y)/2;do m.y>S!=m.next.y>S&&m.next.y!==m.y&&b<(m.next.x-m.x)*(S-m.y)/(m.next.y-m.y)+m.x&&(_=!_),m=m.next;while(m!==u);return _}(l,a)&&(ac(l.prev,l,a.prev)||ac(l,a.prev,a))||_M(l,a)&&ac(l.prev,l,l.next)>0&&ac(a.prev,a,a.next)>0)}function ac(l,a,u){return(a.y-l.y)*(u.x-a.x)-(a.x-l.x)*(u.y-a.y)}function _M(l,a){return l.x===a.x&&l.y===a.y}function _Q(l,a,u,p){var m=tI(ac(l,a,u)),_=tI(ac(l,a,p)),b=tI(ac(u,p,l)),S=tI(ac(u,p,a));return m!==_&&b!==S||!(m!==0||!vM(l,u,a))||!(_!==0||!vM(l,p,a))||!(b!==0||!vM(u,l,p))||!(S!==0||!vM(u,a,p))}function vM(l,a,u){return a.x<=Math.max(l.x,u.x)&&a.x>=Math.min(l.x,u.x)&&a.y<=Math.max(l.y,u.y)&&a.y>=Math.min(l.y,u.y)}function tI(l){return l>0?1:l<0?-1:0}function dw(l,a){return ac(l.prev,l,l.next)<0?ac(l,a,l.next)>=0&&ac(l,l.prev,a)>=0:ac(l,a,l.prev)<0||ac(l,l.next,a)<0}function b6(l,a){var u=new w6(l.i,l.x,l.y),p=new w6(a.i,a.x,a.y),m=l.next,_=a.prev;return l.next=a,a.prev=l,u.next=m,m.prev=u,p.next=u,u.prev=p,_.next=p,p.prev=_,p}function x6(l,a,u,p){var m=new w6(l,a,u);return p?(m.next=p.next,m.prev=p,p.next.prev=m,p.next=m):(m.prev=m,m.next=m),m}function lb(l){l.next.prev=l.prev,l.prev.next=l.next,l.prevZ&&(l.prevZ.nextZ=l.nextZ),l.nextZ&&(l.nextZ.prevZ=l.prevZ)}function w6(l,a,u){this.i=l,this.x=a,this.y=u,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}function C6(l,a,u,p){for(var m=0,_=a,b=u-p;_0&&u.holes.push(p+=l[m-1].length)}return u};var yM=L(Tf.exports);function S6(l,a){let u=l.length;if(u<=1)return[l];let p=[],m,_;for(let b=0;b1)for(let b=0;bu.fqid),this.index=a.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new qc,this.indexArray=new vc,this.indexArray2=new Od,this.programConfigurations=new nb(a.layers,a.zoom),this.segments=new cl,this.segments2=new cl,this.stateDependentLayerIds=this.layers.filter(u=>u.isStateDependent()).map(u=>u.id),this.projection=a.projection}populate(a,u,p,m){this.hasPattern=E6("fill",this.layers,u);let _=this.layers[0].layout.get("fill-sort-key"),b=[];for(let{feature:S,id:I,index:M,sourceLayerIndex:N}of a){let P=this.layers[0]._featureFilter.needGeometry,V=sb(S,P);if(!this.layers[0]._featureFilter.filter(new be(this.zoom),V,p))continue;let H=_?_.evaluate(V,{},p,u.availableImages):void 0,Y={id:I,properties:S.properties,type:S.type,sourceLayerIndex:N,index:M,geometry:P?V.geometry:t_(S,p,m),patterns:{},sortKey:H};b.push(Y)}_&&b.sort((S,I)=>S.sortKey-I.sortKey);for(let S of b){let{geometry:I,index:M,sourceLayerIndex:N}=S;if(this.hasPattern){let P=lF("fill",this.layers,S,this.zoom,u);this.patternFeatures.push(P)}else this.addFeature(S,I,M,p,{},u.availableImages,u.brightness);u.featureIndex.insert(a[M].feature,I,M,N,this.index)}}update(a,u,p,m,_){let b=Object.keys(a).length!==0;b&&!this.stateDependentLayers.length||this.programConfigurations.updatePaintArrays(a,u,b?this.stateDependentLayers:this.layers,p,m,_)}addFeatures(a,u,p,m,_,b){for(let S of this.patternFeatures)this.addFeature(S,S.geometry,S.index,u,p,m,b)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(a){this.uploaded||(this.layoutVertexBuffer=a.createVertexBuffer(this.layoutVertexArray,cQ),this.indexBuffer=a.createIndexBuffer(this.indexArray),this.indexBuffer2=a.createIndexBuffer(this.indexArray2)),this.programConfigurations.upload(a),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.indexBuffer2.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.segments2.destroy())}addFeature(a,u,p,m,_,b=[],S){for(let I of S6(u,500)){let M=0;for(let W of I)M+=W.length;let N=this.segments.prepareSegment(M,this.layoutVertexArray,this.indexArray),P=N.vertexLength,V=[],H=[];for(let W of I){if(W.length===0)continue;W!==I[0]&&H.push(V.length/2);let re=this.segments2.prepareSegment(W.length,this.layoutVertexArray,this.indexArray2),ue=re.vertexLength;this.layoutVertexArray.emplaceBack(W[0].x,W[0].y),this.indexArray2.emplaceBack(ue+W.length-1,ue),V.push(W[0].x),V.push(W[0].y);for(let Te=1;Te>3}if(m--,p===1||p===2)_+=l.readSVarint(),b+=l.readSVarint(),p===1&&(a&&S.push(a),a=[]),a.push(new A6(_,b));else{if(p!==7)throw new Error("unknown command "+p);a&&a.push(a[0].clone())}}return a&&S.push(a),S},hw.prototype.bbox=function(){var l=this._pbf;l.pos=this._geometry;for(var a=l.readVarint()+l.pos,u=1,p=0,m=0,_=0,b=1/0,S=-1/0,I=1/0,M=-1/0;l.pos>3}if(p--,u===1||u===2)(m+=l.readSVarint())S&&(S=m),(_+=l.readSVarint())M&&(M=_);else if(u!==7)throw new Error("unknown command "+u)}return[b,I,S,M]},hw.prototype.toGeoJSON=function(l,a,u){var p,m,_=this.extent*Math.pow(2,u),b=this.extent*l,S=this.extent*a,I=this.loadGeometry(),M=hw.types[this.type];function N(H){for(var Y=0;Y>3;m=b===1?p.readString():b===2?p.readFloat():b===3?p.readDouble():b===4?p.readVarint64():b===5?p.readVarint():b===6?p.readSVarint():b===7?p.readBoolean():null}return m}(u))}D6.prototype.feature=function(l){if(l<0||l>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[l];var a=this._pbf.readVarint()+this._pbf.pos;return new p0e(this._pbf,a,this.extent,this._keys,this._values)};var f0e=CQ;function m0e(l,a,u){if(l===3){var p=new f0e(u,u.readVarint()+u.pos);p.length&&(a[p.name]=p)}}var uF=xM.VectorTile=function(l,a){this.layers=l.readFields(m0e,{},a)},iI=xM.VectorTileFeature=cF;function dF(l,a,u,p){let m=[],_=p===0?(b,S,I,M,N,P)=>{b.push(new cn(P,I+(P-S)/(M-S)*(N-I)))}:(b,S,I,M,N,P)=>{b.push(new cn(S+(P-I)/(N-I)*(M-S),P))};for(let b of l){let S=[];for(let I of b){if(I.length<=2)continue;let M=[];for(let V=0;Va&&_(M,H,Y,W,re,a):ue>u?Te=a&&_(M,H,Y,W,re,a),Te>u&&ue<=u&&_(M,H,Y,W,re,u)}let N=I[I.length-1],P=p===0?N.x:N.y;P>=a&&P<=u&&M.push(N),M.length&&(N=M[M.length-1],M[0].x===N.x&&M[0].y===N.y||M.push(M[0]),S.push(M))}S.length&&m.push(S)}return m}function hF(l,a){return l.x-a.x||l.y-a.y}function SQ(l,a){return hF(l.min,a.min)===0&&hF(l.max,a.max)===0}function M6(l,a){return!(l.min.x>a.max.x||l.max.xa.max.y||l.max.ynew cn((I.x+_.x*dn)*S-b.x*dn,(I.y+_.y*dn)*S-b.y*dn))}return TQ(u,m,l.indices,0,l.indices.length,0,0)}xM.VectorTileLayer=CQ;class DQ{constructor(a){this.size=a,this.minimums=[],this.maximums=[],this.leaves=[]}getElevation(a,u){let p=this.toIdx(a,u);return{min:this.minimums[p],max:this.maximums[p]}}isLeaf(a,u){return this.leaves[this.toIdx(a,u)]}toIdx(a,u){return u*this.size+a}}function kQ(l,a,u,p){let m=0,_=Number.MAX_VALUE;for(let b=0;b<3;b++)if(Math.abs(p[b])<1e-15){if(u[b]a[b])return null}else{let S=1/p[b],I=(l[b]-u[b])*S,M=(a[b]-u[b])*S;if(I>M){let N=I;I=M,M=N}if(I>m&&(m=I),M<_&&(_=M),m>_)return null}return m}function O6(l,a,u,p,m,_,b,S,I,M,N){let P=p-l,V=m-a,H=_-u,Y=b-l,W=S-a,re=I-u,ue=N[1]*re-N[2]*W,Te=N[2]*Y-N[0]*re,Pe=N[0]*W-N[1]*Y,De=P*ue+V*Te+H*Pe;if(Math.abs(De)<1e-15)return null;let tt=1/De,Ye=M[0]-l,at=M[1]-a,_t=M[2]-u,Mt=(Ye*ue+at*Te+_t*Pe)*tt;if(Mt<0||Mt>1)return null;let Jt=at*H-_t*V,Bt=_t*P-Ye*H,si=Ye*V-at*P,oi=(N[0]*Jt+N[1]*Bt+N[2]*si)*tt;return oi<0||Mt+oi>1?null:(Y*Jt+W*Bt+re*si)*tt}function pF(l,a,u){return(l-a)/(u-a)}function fF(l,a,u,p,m,_,b,S,I){let M=1<{let Te=re?1:0,Pe=(H+1)*W-Te,De=Y*W,tt=(Y+1)*W-Te;ue[0]=H*W,ue[1]=De,ue[2]=Pe,ue[3]=tt},P=new DQ(I),V=[];for(let H=0;H=1;I/=2){let H=S[S.length-1];P=new DQ(I);for(let Y=0;Y0;){let{idx:Y,t:W,nodex:re,nodey:ue,depth:Te}=H.pop();if(this.leaves[Y]){fF(re,ue,Te,a,u,p,m,P,V);let De=1<=vi[2])return W}continue}let Pe=0;for(let De=0;De=M[N[_t]]&&(N.splice(_t,0,De),at=!0);at||(N[Pe]=De),Pe++}}for(let De=0;De=this.dim+1||u<-1||u>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(u+1)*this.stride+(a+1)}static pack(a,u){let p=[0,0,0,0],m=wM.getUnpackVector(u),_=Math.floor((a+m[3])/m[2]);return p[2]=_%256,_=Math.floor(_/256),p[1]=_%256,_=Math.floor(_/256),p[0]=_,p}getPixels(){return new sQ({width:this.stride,height:this.stride},this.pixels)}backfillBorder(a,u,p){if(this.dim!==a.dim)throw new Error("dem dimension mismatch");let m=u*this.dim,_=u*this.dim+this.dim,b=p*this.dim,S=p*this.dim+this.dim;switch(u){case-1:m=_-1;break;case 1:_=m+1}switch(p){case-1:b=S-1;break;case 1:S=b+1}let I=-u*this.dim,M=-p*this.dim;for(let N=b;Na.max.x&&(a.max.x=u.x,m=!0),u.ya.max.y&&(a.max.y=u.y,m=!0),((u.x===0||u.x===dn)&&u.x===p.x)!=((u.y===0||u.y===dn)&&u.y===p.y)&&this.processBorderOverlap(u,p),m&&this.checkBorderIntersection(u,p)}checkBorderIntersection(a,u){u.x<0!=a.x<0&&this.addBorderIntersection(0,Jr(u.y,a.y,(0-u.x)/(a.x-u.x))),u.x>dn!=a.x>dn&&this.addBorderIntersection(1,Jr(u.y,a.y,(dn-u.x)/(a.x-u.x))),u.y<0!=a.y<0&&this.addBorderIntersection(2,Jr(u.x,a.x,(0-u.y)/(a.y-u.y))),u.y>dn!=a.y>dn&&this.addBorderIntersection(3,Jr(u.x,a.x,(dn-u.y)/(a.y-u.y)))}addBorderIntersection(a,u){this.borders||(this.borders=[[Number.MAX_VALUE,-Number.MAX_VALUE],[Number.MAX_VALUE,-Number.MAX_VALUE],[Number.MAX_VALUE,-Number.MAX_VALUE],[Number.MAX_VALUE,-Number.MAX_VALUE]]);let p=this.borders[a];up[1]&&(p[1]=u)}processBorderOverlap(a,u){if(a.x===u.x){if(a.y===u.y)return;let p=a.x===0?0:1;this.addBorderIntersection(p,u.y),this.addBorderIntersection(p,a.y)}else{let p=a.y===0?2:3;this.addBorderIntersection(p,u.x),this.addBorderIntersection(p,a.x)}}centroid(){return this.accCount===0?new cn(0,0):new cn(Math.floor(Math.max(0,this.acc.x)/this.accCount),Math.floor(Math.max(0,this.acc.y)/this.accCount))}intersectsCount(){return this.borders?this.borders.reduce((a,u)=>a+ +(u[0]!==Number.MAX_VALUE),0):0}}function gF(l,a){let u=l.add(a)._unit(),p=Br(l.x*u.x+l.y*u.y,-1,1);var m,_,b;return m=Math.acos(p),Math.min(4,Math.max(-4,Math.tan(m)))/4*RQ*((_=l).x*(b=a).y-_.y*b.x<0?-1:1)}let x0e=[l=>l.x<0,l=>l.x>dn,l=>l.y<0,l=>l.y>dn];function FQ(l,a,u,p){let m=[4];if(p===0)return m;u._mult(p);let _=l.sub(u),b=a.sub(u),S=[l,a,_,b];for(let I=0;I<4;I++)for(let M of S)if(x0e[I](M)){m.push(I);break}return m}class _F{constructor(a){this.vertexArray=new nd,this.indexArray=new vc,this.programConfigurations=new nb(a.layers,a.zoom,u=>OQ.includes(u)),this._segments=new cl,this.hiddenByLandmarkVertexArray=new LP,this._segmentToGroundQuads={},this._segmentToGroundQuads[0]=[],this._segmentToRegionTriCounts={},this._segmentToRegionTriCounts[0]=[0,0,0,0,0],this.regionSegments={},this.regionSegments[4]=new cl}getDefaultSegment(){return this.regionSegments[4]}hasData(){return this.vertexArray.length!==0}addData(a,u,p,m=!1){let _=a.length;if(_>2){let b=Math.max(0,this._segments.get().length-1),S=this._segments._prepareSegment(4*_,this.vertexArray.length,2*this._segmentToGroundQuads[b].length),I;b!==this._segments.get().length-1&&(b++,this._segmentToGroundQuads[b]=[],this._segmentToRegionTriCounts[b]=[0,0,0,0,0]);{let M=a[0],N=a[1];I=gF(M.sub(a[_-1])._perp()._unit(),N.sub(M)._perp()._unit())}for(let M=0;M<_;M++){let N=M===_-1?0:M+1,P=a[M],V=a[N],H=a[N===_-1?0:N+1],Y=V.sub(P)._perp()._unit(),W=gF(Y,H.sub(V)._perp()._unit()),re=I,ue=W;if(bF(P,V,u)||m&&B6(P,u)&&B6(V,u)){I=W;continue}let Te=S.vertexLength;CM(this.vertexArray,P,V,1,1,re),CM(this.vertexArray,P,V,1,0,re),CM(this.vertexArray,P,V,0,1,ue),CM(this.vertexArray,P,V,0,0,ue),S.vertexLength+=4;let Pe=FQ(P,V,Y,p);for(let De of Pe)this._segmentToGroundQuads[b].push({id:Te,region:De}),this._segmentToRegionTriCounts[b][De]+=2,S.primitiveLength+=2;I=W}}}prepareBorderSegments(){if(!this.hasData())return;let a=this._segments.get(),u=a.length;for(let p=0;pm.region-_.region);for(let p=0;pI+M,0);let S=0;for(let I=0;I<=4;I++){let M=b[I];if(M!==0){let N=this.regionSegments[I];N||(N=this.regionSegments[I]=new cl);let P={vertexOffset:_.vertexOffset,primitiveOffset:_.primitiveOffset+S,vertexLength:_.vertexLength,primitiveLength:M};N.get().push(P)}S+=M}for(let I=0;I0?this.hiddenByLandmarkVertexBuffer=a.createVertexBuffer(this.hiddenByLandmarkVertexArray,d0e.members,!0):this.hiddenByLandmarkVertexBuffer&&this.hiddenByLandmarkVertexBuffer.updateData(this.hiddenByLandmarkVertexArray),this._needsHiddenByLandmarkUpdate=!1)}destroy(){if(this.vertexBuffer){this.vertexBuffer.destroy(),this.indexBuffer.destroy(),this.hiddenByLandmarkVertexBuffer&&this.hiddenByLandmarkVertexBuffer.destroy(),this._segments&&this._segments.destroy(),this.programConfigurations.destroy();for(let a=0;a<=4;a++){let u=this.regionSegments[a];u&&u.destroy()}}}}class vF{constructor(a){this.zoom=a.zoom,this.canonical=a.canonical,this.overscaling=a.overscaling,this.layers=a.layers,this.layerIds=this.layers.map(u=>u.fqid),this.index=a.index,this.hasPattern=!1,this.edgeRadius=0,this.projection=a.projection,this.activeReplacements=[],this.replacementUpdateTime=0,this.centroidData=[],this.footprintIndices=new vc,this.footprintVertices=new qc,this.footprintSegments=[],this.layoutVertexArray=new $c,this.centroidVertexArray=new TZ,this.indexArray=new vc,this.programConfigurations=new nb(a.layers,a.zoom,u=>y0e.includes(u)),this.segments=new cl,this.stateDependentLayerIds=this.layers.filter(u=>u.isStateDependent()).map(u=>u.id),this.groundEffect=new _F(a),this.maxHeight=0,this.partLookup={},this.triangleSubSegments=[],this.polygonSegments=[]}populate(a,u,p,m){this.features=[],this.hasPattern=E6("fill-extrusion",this.layers,u),this.featuresOnBorder=[],this.borderFeatureIndices=[[],[],[],[]],this.borderDoneWithNeighborZ=[-1,-1,-1,-1],this.tileToMeter=qP(p),this.edgeRadius=this.layers[0].layout.get("fill-extrusion-edge-radius")/this.tileToMeter;for(let{feature:_,id:b,index:S,sourceLayerIndex:I}of a){let M=this.layers[0]._featureFilter.needGeometry,N=sb(_,M);if(!this.layers[0]._featureFilter.filter(new be(this.zoom),N,p))continue;let P={id:b,sourceLayerIndex:I,index:S,geometry:M?N.geometry:t_(_,p,m),properties:_.properties,type:_.type,patterns:{}},V=this.layoutVertexArray.length;this.hasPattern?this.features.push(lF("fill-extrusion",this.layers,P,this.zoom,u)):this.addFeature(P,P.geometry,S,p,{},u.availableImages,m,u.brightness),u.featureIndex.insert(_,P.geometry,S,I,this.index,V)}this.sortBorders(),this.projection.name==="mercator"&&this.splitToSubtiles(),this.groundEffect.prepareBorderSegments(),this.polygonSegments.length=0}addFeatures(a,u,p,m,_,b){for(let S of this.features){let{geometry:I}=S;this.addFeature(S,I,S.index,u,p,m,_,b)}this.sortBorders(),this.projection.name==="mercator"&&this.splitToSubtiles()}update(a,u,p,m,_){let b=Object.keys(a).length!==0;if(b&&!this.stateDependentLayers.length)return;let S=b?this.stateDependentLayers:this.layers;this.programConfigurations.updatePaintArrays(a,u,S,p,m,_),this.groundEffect.update(a,u,S,p,m,_)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload||this.groundEffect.programConfigurations.needsUpload}upload(a){this.uploaded||(this.layoutVertexBuffer=a.createVertexBuffer(this.layoutVertexArray,h0e),this.indexBuffer=a.createIndexBuffer(this.indexArray),this.layoutVertexExtArray&&(this.layoutVertexExtBuffer=a.createVertexBuffer(this.layoutVertexExtArray,xQ.members,!0)),this.groundEffect.upload(a)),this.groundEffect.uploadPaintProperties(a),this.programConfigurations.upload(a),this.uploaded=!0}uploadCentroid(a){this.groundEffect.uploadHiddenByLandmark(a),this.needsCentroidUpdate&&(!this.centroidVertexBuffer&&this.centroidVertexArray.length>0?this.centroidVertexBuffer=a.createVertexBuffer(this.centroidVertexArray,u0e.members,!0):this.centroidVertexBuffer&&this.centroidVertexBuffer.updateData(this.centroidVertexArray),this.needsCentroidUpdate=!1)}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.centroidVertexBuffer&&this.centroidVertexBuffer.destroy(),this.layoutVertexExtBuffer&&this.layoutVertexExtBuffer.destroy(),this.groundEffect.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}addFeature(a,u,p,m,_,b,S,I){let M=this.layers[0].paint.get("fill-extrusion-flood-light-ground-radius").evaluate(a,{})/this.tileToMeter,N=[new cn(0,0),new cn(dn,dn)],P=S.projection,V=P.name==="globe",H=MQ[a.type]==="Polygon",Y=new P6;Y.centroidDataIndex=this.centroidData.length;let W=new PQ,re=this.layers[0].paint.get("fill-extrusion-base").evaluate(a,{},m)<=0,ue=this.layers[0].paint.get("fill-extrusion-height").evaluate(a,{},m);W.height=ue,W.vertexArrayOffset=this.layoutVertexArray.length,W.groundVertexArrayOffset=this.groundEffect.vertexArray.length,V&&!this.layoutVertexExtArray&&(this.layoutVertexExtArray=new kp);let Te=S6(u,500);for(let _t=Te.length-1;_t>=0;_t--){let Mt=Te[_t];(Mt.length===0||(Pe=Mt[0]).every(Jt=>Jt.x<=0)||Pe.every(Jt=>Jt.x>=dn)||Pe.every(Jt=>Jt.y<=0)||Pe.every(Jt=>Jt.y>=dn))&&Te.splice(_t,1)}var Pe;let De;if(V)De=zQ(Te,N,m);else{De=[];for(let _t of Te)De.push({polygon:_t,bounds:N})}let tt=H?this.edgeRadius:0,Ye=tt>0&&this.zoom<17,at=(_t,Mt)=>{if(_t.length===0)return!1;let Jt=_t[_t.length-1];return Mt.x===Jt.x&&Mt.y===Jt.y};for(let{polygon:_t,bounds:Mt}of De){let Jt=0,Bt=0;for(let wi of _t)H&&!wi[0].equals(wi[wi.length-1])&&wi.push(wi[0]),Bt+=H?wi.length-1:wi.length;let si=this.segments.prepareSegment((H?5:4)*Bt,this.layoutVertexArray,this.indexArray);W.footprintSegIdx<0&&(W.footprintSegIdx=this.footprintSegments.length),W.polygonSegIdx<0&&(W.polygonSegIdx=this.polygonSegments.length);let oi={triangleArrayOffset:this.indexArray.length,triangleCount:0,triangleSegIdx:this.segments.segments.length-1},ei=new NQ;if(ei.vertexOffset=this.footprintVertices.length,ei.indexOffset=3*this.footprintIndices.length,ei.ringIndices=[],H){let wi=[],vi=[];Jt=si.vertexLength;for(let Ei=0;Ei<_t.length;Ei++){let ci=_t[Ei];ci.length&&Ei!==0&&vi.push(wi.length/2);let zn=[],Dn,Ri;Dn=ci[1].sub(ci[0])._perp()._unit(),ei.ringIndices.push(ci.length-1);for(let cr=1;cr4&&oI(vi[vi.length-2],vi[0],vi[1]),Ei=tt?L6(vi[vi.length-2],vi[0],vi[1],tt):0,ci=[],zn,Dn,Ri;Dn=vi[1].sub(vi[0])._perp()._unit();let cr=!0;for(let Zn=1,Un=0;Zn0?1:0,xo=Ni.dist(ar);if(Un+xo>32768&&(Un=0),tt){Ri=Wr.sub(ar)._perp()._unit();let ds=yF(Ni,ar,Wr,F6(Dn,Ri),tt);isNaN(ds)&&(ds=0);let Go=ar.sub(Ni)._unit();Ni=Ni.add(Go.mult(Ei))._round(),ar=ar.add(Go.mult(-ds))._round(),Ei=ds,Dn=Ri,re&&this.zoom>=17&&(at(ci,Ni)||ci.push(Ni),at(ci,ar)||ci.push(ar))}let vr=si.vertexLength,Ws=vi.length>4&&oI(Ni,ar,Wr),js=LQ(Un,Ti,cr);if(rI(this.layoutVertexArray,Ni.x,Ni.y,no,Zr,0,0,js),rI(this.layoutVertexArray,Ni.x,Ni.y,no,Zr,0,1,js),Un+=xo,js=LQ(Un,Ws,!cr),Ti=Ws,rI(this.layoutVertexArray,ar.x,ar.y,no,Zr,0,0,js),rI(this.layoutVertexArray,ar.x,ar.y,no,Zr,0,1,js),si.vertexLength+=4,this.indexArray.emplaceBack(vr+0,vr+1,vr+2),this.indexArray.emplaceBack(vr+1,vr+3,vr+2),si.primitiveLength+=2,tt){let ds=Jt+(Zn===1?vi.length-2:Zn-2),Go=Zn===1?Jt:ds+1;if(this.indexArray.emplaceBack(vr+1,ds,vr+3),this.indexArray.emplaceBack(ds,Go,vr+3),si.primitiveLength+=2,zn===void 0&&(zn=vr),!bF(Wr,vi[Zn],Mt)){let hs=Zn===vi.length-1?zn:si.vertexLength;this.indexArray.emplaceBack(vr+2,vr+3,hs),this.indexArray.emplaceBack(vr+3,hs+1,hs),this.indexArray.emplaceBack(vr+3,Go,hs+1),si.primitiveLength+=3}cr=!cr}if(V){let ds=this.layoutVertexExtArray,Go=P.projectTilePoint(Ni.x,Ni.y,m),hs=P.projectTilePoint(ar.x,ar.y,m),_a=P.upVector(m,Ni.x,Ni.y),sa=P.upVector(m,ar.x,ar.y);cb(ds,Go,_a),cb(ds,Go,_a),cb(ds,hs,sa),cb(ds,hs,sa)}}H&&(Jt+=vi.length-1),re&&tt&&this.zoom>=17&&(ci.length!==0&&at(ci,ci[0])&&ci.pop(),this.groundEffect.addData(ci,Mt,M,tt>0))}this.footprintSegments.push(ei),oi.triangleCount=this.indexArray.length-oi.triangleArrayOffset,this.polygonSegments.push(oi),++W.footprintSegLen,++W.polygonSegLen}if(W.vertexCount=this.layoutVertexArray.length-W.vertexArrayOffset,W.groundVertexCount=this.groundEffect.vertexArray.length-W.groundVertexArrayOffset,W.vertexCount!==0){if(W.centroidXY=Y.borders?mF:this.encodeCentroid(Y,W),this.centroidData.push(W),Y.borders){this.featuresOnBorder.push(Y);let _t=this.featuresOnBorder.length-1;for(let Mt=0;Mtthis.featuresOnBorder[u].borders[a][0]-this.featuresOnBorder[p].borders[a][0])}splitToSubtiles(){let a=[];for(let S=0;Sdn),N=2*M+(+(I.min.x+I.max.x>dn)^M);for(let P=0;PS.triangleSegmentIdx===I.triangleSegmentIdx?S.subtile-I.subtile:S.triangleSegmentIdx-I.triangleSegmentIdx);let p=0,m=0,_=0;for(let S of a){if(S.triangleSegmentIdx!==p)break;_++}let b=a.length;for(;m!==a.length;){p=a[m].triangleSegmentIdx;let S=0,I=m,M=m;for(let N=I;N<_&&a[N].subtile===S;N++)M++;for(;I!==_;){let N=a[I];S=N.subtile;let P=this.centroidData[N.centroidIdx].min.clone(),V=this.centroidData[N.centroidIdx].max.clone(),H={vertexOffset:this.segments.segments[p].vertexOffset,primitiveOffset:u.length,vertexLength:this.segments.segments[p].vertexLength,primitiveLength:0,sortKey:void 0,vaos:{}};for(let Y=I;Y0&&this.triangleSubSegments.push({segment:H,min:P,max:V}),I=M;for(let Y=I;Y<_&&a[Y].subtile===a[I].subtile;Y++)M++}m=_;for(let N=m;N[W[0]*(1-ue[0])+re[0]*ue[0],W[1]*(1-ue[1])+re[1]*ue[1]],H=[],Y=[];for(let W of this.triangleSubSegments){H[0]=W.min.x/dn,H[1]=W.min.y/dn,Y[0]=W.max.x/dn,Y[1]=W.max.y/dn;let re=V(M,N,H),ue=V(M,N,Y);if(new Ta([re[0],re[1],m],[ue[0],ue[1],_]).intersectsPrecise(p)===0){I&&(P.segments.push(I),I=void 0);continue}let Te=W.segment;I&&I.vertexOffset!==Te.vertexOffset&&(P.segments.push(I),I=void 0),I?(I.vertexLength+=Te.vertexLength,I.primitiveLength+=Te.primitiveLength):I={vertexOffset:Te.vertexOffset,primitiveLength:Te.primitiveLength,vertexLength:Te.vertexLength,primitiveOffset:Te.primitiveOffset,sortKey:void 0,vaos:{}}}return I&&P.segments.push(I),P}encodeCentroid(a,u){let p=a.centroid(),m=u.span(),_=Math.min(7,Math.round(m.x*this.tileToMeter/10)),b=Math.min(7,Math.round(m.y*this.tileToMeter/10));return new cn(Br(p.x,1,dn-1)<<3|_,Br(p.y,1,dn-1)<<3|b)}encodeBorderCentroid(a){if(!a.borders)return new cn(0,0);let u=a.borders,p=Number.MAX_VALUE;if(u[0][0]!==p||u[1][0]!==p){let m=u[0][0]!==p?0:1;return new cn(6|(u[0][0]!==p?0:65528),(u[m][0]+u[m][1])/2<<3|6)}{let m=u[2][0]!==p?2:3;return new cn((u[m][0]+u[m][1])/2<<3|6,6|(u[2][0]!==p?0:65528))}}showCentroid(a){let u=this.centroidData[a.centroidDataIndex];u.flags&=s_,u.centroidXY.x=0,u.centroidXY.y=0,this.writeCentroidToBuffer(u)}writeCentroidToBuffer(a){this.groundEffect.updateHiddenByLandmark(a);let u=a.vertexArrayOffset,p=a.vertexCount+a.vertexArrayOffset,m=a.flags&s_?mF:a.centroidXY,_=this.centroidVertexArray.geta_centroid_pos0(u);if(this.centroidVertexArray.geta_centroid_pos1(u)!==m.y||_!==m.x){for(let b=u;bS.max.x||S.min.x>_.max.x||_.min.y>S.max.y||S.min.y>_.max.y))for(let I=0;Iu!=H>u&&a<(this.footprintVertices.int16[2*(N+b.vertexOffset)+0]-P)*(u-V)/(H-V)+P&&(m=!m)}S=I}}return m}getHeightAtTileCoord(a,u){let p=Number.NEGATIVE_INFINITY,m=!0,_=4*(a+dn)*dn+(u+dn);if(this.partLookup.hasOwnProperty(_)){let b=this.partLookup[_];return b?{height:b.height,hidden:!!(b.flags&s_)}:void 0}for(let b of this.centroidData)a>b.max.x||b.min.x>a||u>b.max.y||b.min.y>u||this.footprintContainsPoint(a,u,b)&&b&&b.height>p&&(p=b.height,this.partLookup[_]=b,m=!!(b.flags&s_));if(p!==Number.NEGATIVE_INFINITY)return{height:p,hidden:m};this.partLookup[_]=void 0}}function F6(l,a){let u=l.add(a)._unit();return l.x*u.x+l.y*u.y}function L6(l,a,u,p){let m=a.sub(l)._perp()._unit(),_=u.sub(a)._perp()._unit();return yF(l,a,u,F6(m,_),p)}function yF(l,a,u,p,m){let _=Math.sqrt(1-p*p);return Math.min(l.dist(a)/3,a.dist(u)/3,m*_/p)}function bF(l,a,u){return l.xu[1].x&&a.x>u[1].x||l.yu[1].y&&a.y>u[1].y}function B6(l,a){return l.xa[1].x||l.ya[1].y}function oI(l,a,u){if(l.x<0||l.x>=dn||a.x<0||a.x>=dn||u.x<0||u.x>=dn)return!1;let p=u.sub(a),m=p.perp(),_=l.sub(a);return(p.x*_.x+p.y*_.y)/Math.sqrt((p.x*p.x+p.y*p.y)*(_.x*_.x+_.y*_.y))>-.866&&m.x*_.x+m.y*_.y<0}function LQ(l,a,u){let p=a?2|l:-3&l;return u?1|p:-2&p}function BQ(){let l=Math.PI/32,a=Math.tan(l),u=Rl;return u*Math.sqrt(1+2*a*a)-u}function zQ(l,a,u){let p=1<{for(let _t of Ye)Y.push({polygon:_t,bounds:at})},re=Math.ceil(Math.log2(N)),ue=Math.ceil(Math.log2(P)),Te=re-ue,Pe=[];for(let Ye=0;Ye0?0:1);for(let Ye=0;Yeat+1?tt.push({polygons:ei,bounds:vi,depth:at+1}):W(ei,vi)}if(wi.length){let vi=[new cn(_t===0?oi:Mt.x,_t===1?oi:Mt.y),Jt];Pe.length>at+1?tt.push({polygons:wi,bounds:vi,depth:at+1}):W(wi,vi)}}return Y}(l,a,Math.ceil((_-m)/11.25),Math.ceil((b-S)/11.25),1,(I,M,N)=>{if(I===0)return .5*(M+N);{let P=au((u.y+M/dn)/p);return(e_(.5*(au((u.y+N/dn)/p)+P))*p-u.y)*dn}})}function VQ(l,a,u,p,m,_){let b=Math.pow(2,p.z-m.z);for(let S=0;S1&&(I=a[++S]);let N=Math.abs(M-I.left),P=Math.abs(M-I.right),V=Math.min(N,P),H,Y=_/p*(m+1);if(I.isDash){let W=m-Math.abs(Y);H=Math.sqrt(V*V+W*W)}else H=m-Math.sqrt(V*V+Y*Y);this.image.data[b+M]=Math.max(0,Math.min(255,H+128))}}}addRegularDash(a,u){for(let I=a.length-1;I>=0;--I){let M=a[I],N=a[I+1];M.zeroLength?a.splice(I,1):N&&N.isDash===M.isDash&&(N.left=M.left,a.splice(I,1))}let p=a[0],m=a[a.length-1];p.isDash===m.isDash&&(p.left=m.left-this.width,m.right=p.right+this.width);let _=this.width*this.nextRow,b=0,S=a[b];for(let I=0;I1&&(S=a[++b]);let M=Math.abs(I-S.left),N=Math.abs(I-S.right),P=Math.min(M,N);this.image.data[_+I]=Math.max(0,Math.min(255,(S.isDash?P:-P)+u+128))}}addDash(a,u){let p=this.getKey(a,u);if(this.positions[p])return this.positions[p];let m=u==="round",_=m?7:0,b=2*_+1;if(this.nextRow+b>this.height)return ja("LineAtlas out of space"),null;a.length===0&&a.push(1);let S=0;for(let N=0;Nu.fqid),this.index=a.index,this.projection=a.projection,this.hasPattern=!1,this.patternFeatures=[],this.lineClipsArray=[],this.gradients={},this.layers.forEach(u=>{this.gradients[u.id]={}}),this.layoutVertexArray=new su,this.layoutVertexArray2=new _c,this.patternVertexArray=new Rc,this.indexArray=new vc,this.programConfigurations=new nb(a.layers,a.zoom),this.segments=new cl,this.maxLineLength=0,this.stateDependentLayerIds=this.layers.filter(u=>u.isStateDependent()).map(u=>u.id)}populate(a,u,p,m){this.hasPattern=E6("line",this.layers,u);let _=this.layers[0].layout.get("line-sort-key"),b=[];for(let{feature:N,id:P,index:V,sourceLayerIndex:H}of a){let Y=this.layers[0]._featureFilter.needGeometry,W=sb(N,Y);if(!this.layers[0]._featureFilter.filter(new be(this.zoom),W,p))continue;let re=_?_.evaluate(W,{},p):void 0,ue={id:P,properties:N.properties,type:N.type,sourceLayerIndex:H,index:V,geometry:Y?W.geometry:t_(N,p,m),patterns:{},sortKey:re};b.push(ue)}_&&b.sort((N,P)=>N.sortKey-P.sortKey);let{lineAtlas:S,featureIndex:I}=u,M=this.addConstantDashes(S);for(let N of b){let{geometry:P,index:V,sourceLayerIndex:H}=N;if(M&&this.addFeatureDashes(N,S),this.hasPattern){let Y=lF("line",this.layers,N,this.zoom,u);this.patternFeatures.push(Y)}else this.addFeature(N,P,V,p,S.positions,u.availableImages,u.brightness);I.insert(a[V].feature,P,V,H,this.index)}}addConstantDashes(a){let u=!1;for(let p of this.layers){let m=p.paint.get("line-dasharray").value,_=p.layout.get("line-cap").value;if(m.kind!=="constant"||_.kind!=="constant")u=!0;else{let b=_.value,S=m.value;if(!S)continue;a.addDash(S,b)}}return u}addFeatureDashes(a,u){let p=this.zoom;for(let m of this.layers){let _=m.paint.get("line-dasharray").value,b=m.layout.get("line-cap").value;if(_.kind==="constant"&&b.kind==="constant")continue;let S,I;if(_.kind==="constant"){if(S=_.value,!S)continue}else S=_.evaluate({zoom:p},a);I=b.kind==="constant"?b.value:b.evaluate({zoom:p},a),u.addDash(S,I),a.patterns[m.id]=u.getKey(S,I)}}update(a,u,p,m,_){let b=Object.keys(a).length!==0;b&&!this.stateDependentLayers.length||this.programConfigurations.updatePaintArrays(a,u,b?this.stateDependentLayers:this.layers,p,m,_)}addFeatures(a,u,p,m,_,b){for(let S of this.patternFeatures)this.addFeature(S,S.geometry,S.index,u,p,m,b)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(a){this.uploaded||(this.layoutVertexArray2.length!==0&&(this.layoutVertexBuffer2=a.createVertexBuffer(this.layoutVertexArray2,C0e)),this.patternVertexArray.length!==0&&(this.patternVertexBuffer=a.createVertexBuffer(this.patternVertexArray,E0e)),this.layoutVertexBuffer=a.createVertexBuffer(this.layoutVertexArray,HQ),this.indexBuffer=a.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(a),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}lineFeatureClips(a){if(a.properties&&a.properties.hasOwnProperty("mapbox_clip_start")&&a.properties.hasOwnProperty("mapbox_clip_end"))return{start:+a.properties.mapbox_clip_start,end:+a.properties.mapbox_clip_end}}addFeature(a,u,p,m,_,b,S){let I=this.layers[0].layout,M=I.get("line-join").evaluate(a,{}),N=I.get("line-cap").evaluate(a,{}),P=I.get("line-miter-limit"),V=I.get("line-round-limit");this.lineClips=this.lineFeatureClips(a);for(let H of u)this.addLine(H,a,M,N,P,V);this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,a,p,_,b,m,S)}addLine(a,u,p,m,_,b){this.distance=0,this.scaledDistance=0,this.totalDistance=0,this.lineSoFar=0;let S=p==="none";if(this.patternJoinNone=this.hasPattern&&S,this.segmentStart=0,this.segmentPoints=[],this.lineClips){this.lineClipsArray.push(this.lineClips);for(let Te=0;Te=2&&a[M-1].equals(a[M-2]);)M--;let N=0;for(;N0;if(Jt&&Te>N){let si=H.dist(Y);if(si>2*P){let oi=H.sub(H.sub(Y)._mult(P/si)._round());this.updateDistance(Y,oi),this.addCurrentVertex(oi,re,0,0,V),Y=oi}}if(Pe&&De==="round"&&(_t_&&(De="bevel"),De==="bevel"&&(_t>2&&(De="flipbevel"),_t<_&&(De="miter")),Y&&this.updateDistance(Y,H),De==="miter")Ye._mult(_t),this.addCurrentVertex(H,Ye,0,0,V);else if(De==="flipbevel"){if(_t>100)Ye=ue.mult(-1);else{let si=_t*re.add(ue).mag()/re.sub(ue).mag();Ye._perp()._mult(si*(Bt?-1:1))}this.addCurrentVertex(H,Ye,0,0,V),this.addCurrentVertex(H,Ye.mult(-1),0,0,V)}else if(De==="bevel"||De==="fakeround"){let si=-Math.sqrt(_t*_t-1),oi=Bt?si:0,ei=Bt?0:si;if(Y&&this.addCurrentVertex(H,re,oi,ei,V),De==="fakeround"){let wi=Math.round(180*Mt/Math.PI/20);for(let vi=1;vi2*P){let oi=H.add(W.sub(H)._mult(P/si)._round());this.updateDistance(H,oi),this.addCurrentVertex(oi,ue,0,0,V),H=oi}}}}addCurrentVertex(a,u,p,m,_,b=!1){let S=u.y*m-u.x,I=-u.y-u.x*m;this.addHalfVertex(a,u.x+u.y*p,u.y-u.x*p,b,!1,p,_),this.addHalfVertex(a,S,I,b,!0,-m,_),this.patternJoinNone&&this.segmentPoints.push(this.lineSoFar-this.segmentStart,p)}addHalfVertex({x:a,y:u},p,m,_,b,S,I){this.layoutVertexArray.emplaceBack((a<<1)+(_?1:0),(u<<1)+(b?1:0),Math.round(63*p)+128,Math.round(63*m)+128,1+(S===0?0:S<0?-1:1),0,this.lineSoFar),this.lineClips&&this.layoutVertexArray2.emplaceBack(this.scaledDistance,this.lineClipsArray.length,this.lineClips.start,this.lineClips.end);let M=I.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,M),I.primitiveLength++),b?this.e2=M:this.e1=M}updateScaledDistance(){if(this.lineClips){let a=this.totalDistance/(this.lineClips.end-this.lineClips.start);this.scaledDistance=this.distance/this.totalDistance,this.lineSoFar=a*this.lineClips.start+this.distance}else this.lineSoFar=this.distance}updateDistance(a,u){this.distance+=a.dist(u),this.updateScaledDistance()}}An(CF,"LineBucket",{omit:["layers","patternFeatures"]});let V6=new St({"line-cap":new kt(Ge.layout_line["line-cap"]),"line-join":new kt(Ge.layout_line["line-join"]),"line-miter-limit":new ft(Ge.layout_line["line-miter-limit"]),"line-round-limit":new ft(Ge.layout_line["line-round-limit"]),"line-sort-key":new kt(Ge.layout_line["line-sort-key"]),visibility:new ft(Ge.layout_line.visibility)});var SF={paint:new St({"line-opacity":new kt(Ge.paint_line["line-opacity"]),"line-color":new kt(Ge.paint_line["line-color"]),"line-translate":new ft(Ge.paint_line["line-translate"]),"line-translate-anchor":new ft(Ge.paint_line["line-translate-anchor"]),"line-width":new kt(Ge.paint_line["line-width"]),"line-gap-width":new kt(Ge.paint_line["line-gap-width"]),"line-offset":new kt(Ge.paint_line["line-offset"]),"line-blur":new kt(Ge.paint_line["line-blur"]),"line-dasharray":new kt(Ge.paint_line["line-dasharray"]),"line-pattern":new kt(Ge.paint_line["line-pattern"]),"line-gradient":new Si(Ge.paint_line["line-gradient"]),"line-trim-offset":new ft(Ge.paint_line["line-trim-offset"]),"line-emissive-strength":new ft(Ge.paint_line["line-emissive-strength"]),"line-border-width":new kt(Ge.paint_line["line-border-width"]),"line-border-color":new kt(Ge.paint_line["line-border-color"])}),layout:V6};function U6(l,a,u){return a*(dn/(l.tileSize*Math.pow(2,u-l.tileID.overscaledZ)))}function j6(l,a){return 1/U6(l,1,a.tileZoom)}function lI(l,a,u,p){return l.translatePosMatrix(p||a.tileID.projMatrix,a,u.paint.get("line-translate"),u.paint.get("line-translate-anchor"))}let YQ=l=>{let a=[];qQ(l)&&a.push("RENDER_LINE_DASH"),l.paint.get("line-gradient")&&a.push("RENDER_LINE_GRADIENT");let u=l.paint.get("line-trim-offset");u[0]===0&&u[1]===0||a.push("RENDER_LINE_TRIM_OFFSET"),l.paint.get("line-border-width").constantOr(1)!==0&&a.push("RENDER_LINE_BORDER");let p=l.layout.get("line-join").constantOr("miter")==="none",m=!!l.paint.get("line-pattern").constantOr(1);return p&&m&&a.push("LINE_JOIN_NONE"),a};function qQ(l){let a=l.paint.get("line-dasharray").value;return a.value||a.kind!=="constant"}let $Q=new class extends kt{possiblyEvaluate(l,a){return a=new be(Math.floor(a.zoom),{now:a.now,fadeDuration:a.fadeDuration,transition:a.transition}),super.possiblyEvaluate(l,a)}evaluate(l,a,u,p){return a=ih({},a,{zoom:Math.floor(a.zoom)}),super.evaluate(l,a,u,p)}}(SF.paint.properties["line-width"].specification);function H6(l,a){return a>0?a+2*l:l}$Q.useIntegerZoom=!0;let A0e=Vr([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_tex_size",components:4,type:"Uint16"},{name:"a_pixeloffset",components:4,type:"Int16"}],4),KQ=Vr([{name:"a_globe_anchor",components:3,type:"Int16"},{name:"a_globe_normal",components:3,type:"Float32"}],4),D0e=Vr([{name:"a_projected_pos",components:4,type:"Float32"}],4);Vr([{name:"a_fade_opacity",components:1,type:"Uint32"}],4);let WQ=Vr([{name:"a_z_offset",components:1,type:"Float32"}],4),G6=Vr([{name:"a_texb",components:2,type:"Uint16"}]),Y6=Vr([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"}]),ZQ=Vr([{name:"a_size_scale",components:1,type:"Float32"},{name:"a_padding",components:2,type:"Float32"},{name:"a_z_offset",components:1,type:"Float32"}]);Vr([{type:"Int16",name:"projectedAnchorX"},{type:"Int16",name:"projectedAnchorY"},{type:"Int16",name:"projectedAnchorZ"},{type:"Int16",name:"tileAnchorX"},{type:"Int16",name:"tileAnchorY"},{type:"Float32",name:"x1"},{type:"Float32",name:"y1"},{type:"Float32",name:"x2"},{type:"Float32",name:"y2"},{type:"Int16",name:"padding"},{type:"Uint32",name:"featureIndex"},{type:"Uint16",name:"sourceLayerIndex"},{type:"Uint16",name:"bucketIndex"}]);let q6=Vr([{name:"a_pos",components:3,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4),EM=Vr([{name:"a_pos_2f",components:2,type:"Float32"},{name:"a_radius",components:1,type:"Float32"},{name:"a_flags",components:2,type:"Int16"}],4);Vr([{name:"triangle",components:3,type:"Uint16"}]),Vr([{type:"Int16",name:"projectedAnchorX"},{type:"Int16",name:"projectedAnchorY"},{type:"Int16",name:"projectedAnchorZ"},{type:"Float32",name:"tileAnchorX"},{type:"Float32",name:"tileAnchorY"},{type:"Uint16",name:"glyphStartIndex"},{type:"Uint16",name:"numGlyphs"},{type:"Uint32",name:"vertexStartIndex"},{type:"Uint32",name:"lineStartIndex"},{type:"Uint32",name:"lineLength"},{type:"Uint16",name:"segment"},{type:"Uint16",name:"lowerSize"},{type:"Uint16",name:"upperSize"},{type:"Float32",name:"lineOffsetX"},{type:"Float32",name:"lineOffsetY"},{type:"Uint8",name:"writingMode"},{type:"Uint8",name:"placedOrientation"},{type:"Uint8",name:"hidden"},{type:"Uint32",name:"crossTileID"},{type:"Int16",name:"associatedIconIndex"},{type:"Uint8",name:"flipState"}]),Vr([{type:"Float32",name:"tileAnchorX"},{type:"Float32",name:"tileAnchorY"},{type:"Int16",name:"projectedAnchorX"},{type:"Int16",name:"projectedAnchorY"},{type:"Int16",name:"projectedAnchorZ"},{type:"Int16",name:"rightJustifiedTextSymbolIndex"},{type:"Int16",name:"centerJustifiedTextSymbolIndex"},{type:"Int16",name:"leftJustifiedTextSymbolIndex"},{type:"Int16",name:"verticalPlacedTextSymbolIndex"},{type:"Int16",name:"placedIconSymbolIndex"},{type:"Int16",name:"verticalPlacedIconSymbolIndex"},{type:"Uint16",name:"key"},{type:"Uint16",name:"textBoxStartIndex"},{type:"Uint16",name:"textBoxEndIndex"},{type:"Uint16",name:"verticalTextBoxStartIndex"},{type:"Uint16",name:"verticalTextBoxEndIndex"},{type:"Uint16",name:"iconBoxStartIndex"},{type:"Uint16",name:"iconBoxEndIndex"},{type:"Uint16",name:"verticalIconBoxStartIndex"},{type:"Uint16",name:"verticalIconBoxEndIndex"},{type:"Uint16",name:"featureIndex"},{type:"Uint16",name:"numHorizontalGlyphVertices"},{type:"Uint16",name:"numVerticalGlyphVertices"},{type:"Uint16",name:"numIconVertices"},{type:"Uint16",name:"numVerticalIconVertices"},{type:"Uint16",name:"useRuntimeCollisionCircles"},{type:"Uint32",name:"crossTileID"},{type:"Float32",components:2,name:"textOffset"},{type:"Float32",name:"collisionCircleDiameter"},{type:"Float32",name:"zOffset"},{type:"Uint8",name:"hasIconTextFit"}]),Vr([{type:"Float32",name:"offsetX"}]),Vr([{type:"Int16",name:"x"},{type:"Int16",name:"y"}]);var cu=24;let Pm=128;function $6(l,a){let{expression:u}=a;if(u.kind==="constant")return{kind:"constant",layoutSize:u.evaluate(new be(l+1))};if(u.kind==="source")return{kind:"source"};{let{zoomStops:p,interpolationType:m}=u,_=0;for(;_{p.text=function(m,_,b){let S=_.layout.get("text-transform").evaluate(b,{});return S==="uppercase"?m=m.toLocaleUpperCase():S==="lowercase"&&(m=m.toLocaleLowerCase()),Ze.applyArabicShaping&&(m=Ze.applyArabicShaping(m)),m}(p.text,a,u)}),l}let uI={"!":"\uFE15","#":"\uFF03",$:"\uFF04","%":"\uFF05","&":"\uFF06","(":"\uFE35",")":"\uFE36","*":"\uFF0A","+":"\uFF0B",",":"\uFE10","-":"\uFE32",".":"\u30FB","/":"\uFF0F",":":"\uFE13",";":"\uFE14","<":"\uFE3F","=":"\uFF1D",">":"\uFE40","?":"\uFE16","@":"\uFF20","[":"\uFE47","\\":"\uFF3C","]":"\uFE48","^":"\uFF3E",_:"\uFE33","`":"\uFF40","{":"\uFE37","|":"\u2015","}":"\uFE38","~":"\uFF5E","\xA2":"\uFFE0","\xA3":"\uFFE1","\xA5":"\uFFE5","\xA6":"\uFFE4","\xAC":"\uFFE2","\xAF":"\uFFE3","\u2013":"\uFE32","\u2014":"\uFE31","\u2018":"\uFE43","\u2019":"\uFE44","\u201C":"\uFE41","\u201D":"\uFE42","\u2026":"\uFE19","\u2027":"\u30FB","\u20A9":"\uFFE6","\u3001":"\uFE11","\u3002":"\uFE12","\u3008":"\uFE3F","\u3009":"\uFE40","\u300A":"\uFE3D","\u300B":"\uFE3E","\u300C":"\uFE41","\u300D":"\uFE42","\u300E":"\uFE43","\u300F":"\uFE44","\u3010":"\uFE3B","\u3011":"\uFE3C","\u3014":"\uFE39","\u3015":"\uFE3A","\u3016":"\uFE17","\u3017":"\uFE18","\uFF01":"\uFE15","\uFF08":"\uFE35","\uFF09":"\uFE36","\uFF0C":"\uFE10","\uFF0D":"\uFE32","\uFF0E":"\u30FB","\uFF1A":"\uFE13","\uFF1B":"\uFE14","\uFF1C":"\uFE3F","\uFF1E":"\uFE40","\uFF1F":"\uFE16","\uFF3B":"\uFE47","\uFF3D":"\uFE48","\uFF3F":"\uFE33","\uFF5B":"\uFE37","\uFF5C":"\u2015","\uFF5D":"\uFE38","\uFF5F":"\uFE35","\uFF60":"\uFE36","\uFF61":"\uFE12","\uFF62":"\uFE41","\uFF63":"\uFE42","\u2190":"\u2191","\u2192":"\u2193"};function K6(l){return l==="\uFE36"||l==="\uFE48"||l==="\uFE38"||l==="\uFE44"||l==="\uFE42"||l==="\uFE3E"||l==="\uFE3C"||l==="\uFE3A"||l==="\uFE18"||l==="\uFE40"||l==="\uFE10"||l==="\uFE13"||l==="\uFE14"||l==="\uFF40"||l==="\uFFE3"||l==="\uFE11"||l==="\uFE12"}function W6(l){return l==="\uFE35"||l==="\uFE47"||l==="\uFE37"||l==="\uFE43"||l==="\uFE41"||l==="\uFE3D"||l==="\uFE3B"||l==="\uFE39"||l==="\uFE17"||l==="\uFE3F"}var XQ={read:function(l,a,u,p,m){var _,b,S=8*m-p-1,I=(1<>1,N=-7,P=u?m-1:0,V=u?-1:1,H=l[a+P];for(P+=V,_=H&(1<<-N)-1,H>>=-N,N+=S;N>0;_=256*_+l[a+P],P+=V,N-=8);for(b=_&(1<<-N)-1,_>>=-N,N+=p;N>0;b=256*b+l[a+P],P+=V,N-=8);if(_===0)_=1-M;else{if(_===I)return b?NaN:1/0*(H?-1:1);b+=Math.pow(2,p),_-=M}return(H?-1:1)*b*Math.pow(2,_-p)},write:function(l,a,u,p,m,_){var b,S,I,M=8*_-m-1,N=(1<>1,V=m===23?Math.pow(2,-24)-Math.pow(2,-77):0,H=p?0:_-1,Y=p?1:-1,W=a<0||a===0&&1/a<0?1:0;for(a=Math.abs(a),isNaN(a)||a===1/0?(S=isNaN(a)?1:0,b=N):(b=Math.floor(Math.log(a)/Math.LN2),a*(I=Math.pow(2,-b))<1&&(b--,I*=2),(a+=b+P>=1?V/I:V*Math.pow(2,1-P))*I>=2&&(b++,I/=2),b+P>=N?(S=0,b=N):b+P>=1?(S=(a*I-1)*Math.pow(2,m),b+=P):(S=a*Math.pow(2,P-1)*Math.pow(2,m),b=0));m>=8;l[u+H]=255&S,H+=Y,S/=256,m-=8);for(b=b<0;l[u+H]=255&b,H+=Y,b/=256,M-=8);l[u+H-Y]|=128*W}},Z6=Aa,ub=XQ;function Aa(l){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(l)?l:new Uint8Array(l||0),this.pos=0,this.type=0,this.length=this.buf.length}Aa.Varint=0,Aa.Fixed64=1,Aa.Bytes=2,Aa.Fixed32=5;var Q6=4294967296,JQ=1/Q6,eX=typeof TextDecoder>"u"?null:new TextDecoder("utf8");function a_(l){return l.type===Aa.Bytes?l.readVarint()+l.pos:l.pos+1}function dI(l,a,u){return u?4294967296*a+(l>>>0):4294967296*(a>>>0)+(l>>>0)}function X6(l,a,u){var p=a<=16383?1:a<=2097151?2:a<=268435455?3:Math.floor(Math.log(a)/(7*Math.LN2));u.realloc(p);for(var m=u.pos-1;m>=l;m--)u.buf[m+p]=u.buf[m]}function M0e(l,a){for(var u=0;u>>8,l[u+2]=a>>>16,l[u+3]=a>>>24}function tX(l,a){return(l[a]|l[a+1]<<8|l[a+2]<<16)+(l[a+3]<<24)}Aa.prototype={destroy:function(){this.buf=null},readFields:function(l,a,u){for(u=u||this.length;this.pos>3,_=this.pos;this.type=7&p,l(m,a,this),this.pos===_&&this.skip(p)}return a},readMessage:function(l,a){return this.readFields(l,a,this.readVarint()+this.pos)},readFixed32:function(){var l=EF(this.buf,this.pos);return this.pos+=4,l},readSFixed32:function(){var l=tX(this.buf,this.pos);return this.pos+=4,l},readFixed64:function(){var l=EF(this.buf,this.pos)+EF(this.buf,this.pos+4)*Q6;return this.pos+=8,l},readSFixed64:function(){var l=EF(this.buf,this.pos)+tX(this.buf,this.pos+4)*Q6;return this.pos+=8,l},readFloat:function(){var l=ub.read(this.buf,this.pos,!0,23,4);return this.pos+=4,l},readDouble:function(){var l=ub.read(this.buf,this.pos,!0,52,8);return this.pos+=8,l},readVarint:function(l){var a,u,p=this.buf;return a=127&(u=p[this.pos++]),u<128?a:(a|=(127&(u=p[this.pos++]))<<7,u<128?a:(a|=(127&(u=p[this.pos++]))<<14,u<128?a:(a|=(127&(u=p[this.pos++]))<<21,u<128?a:function(m,_,b){var S,I,M=b.buf;if(S=(112&(I=M[b.pos++]))>>4,I<128||(S|=(127&(I=M[b.pos++]))<<3,I<128)||(S|=(127&(I=M[b.pos++]))<<10,I<128)||(S|=(127&(I=M[b.pos++]))<<17,I<128)||(S|=(127&(I=M[b.pos++]))<<24,I<128)||(S|=(1&(I=M[b.pos++]))<<31,I<128))return dI(m,S,_);throw new Error("Expected varint not more than 10 bytes")}(a|=(15&(u=p[this.pos]))<<28,l,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var l=this.readVarint();return l%2==1?(l+1)/-2:l/2},readBoolean:function(){return!!this.readVarint()},readString:function(){var l=this.readVarint()+this.pos,a=this.pos;return this.pos=l,l-a>=12&&eX?function(u,p,m){return eX.decode(u.subarray(p,m))}(this.buf,a,l):function(u,p,m){for(var _="",b=p;b239?4:N>223?3:N>191?2:1;if(b+V>m)break;V===1?N<128&&(P=N):V===2?(192&(S=u[b+1]))==128&&(P=(31&N)<<6|63&S)<=127&&(P=null):V===3?(I=u[b+2],(192&(S=u[b+1]))==128&&(192&I)==128&&((P=(15&N)<<12|(63&S)<<6|63&I)<=2047||P>=55296&&P<=57343)&&(P=null)):V===4&&(I=u[b+2],M=u[b+3],(192&(S=u[b+1]))==128&&(192&I)==128&&(192&M)==128&&((P=(15&N)<<18|(63&S)<<12|(63&I)<<6|63&M)<=65535||P>=1114112)&&(P=null)),P===null?(P=65533,V=1):P>65535&&(P-=65536,_+=String.fromCharCode(P>>>10&1023|55296),P=56320|1023&P),_+=String.fromCharCode(P),b+=V}return _}(this.buf,a,l)},readBytes:function(){var l=this.readVarint()+this.pos,a=this.buf.subarray(this.pos,l);return this.pos=l,a},readPackedVarint:function(l,a){if(this.type!==Aa.Bytes)return l.push(this.readVarint(a));var u=a_(this);for(l=l||[];this.pos127;);else if(a===Aa.Bytes)this.pos=this.readVarint()+this.pos;else if(a===Aa.Fixed32)this.pos+=4;else{if(a!==Aa.Fixed64)throw new Error("Unimplemented type: "+a);this.pos+=8}},writeTag:function(l,a){this.writeVarint(l<<3|a)},realloc:function(l){for(var a=this.length||16;a268435455||l<0?function(a,u){var p,m;if(a>=0?(p=a%4294967296|0,m=a/4294967296|0):(m=~(-a/4294967296),4294967295^(p=~(-a%4294967296))?p=p+1|0:(p=0,m=m+1|0)),a>=18446744073709552e3||a<-18446744073709552e3)throw new Error("Given varint doesn't fit into 10 bytes");u.realloc(10),function(_,b,S){S.buf[S.pos++]=127&_|128,_>>>=7,S.buf[S.pos++]=127&_|128,_>>>=7,S.buf[S.pos++]=127&_|128,_>>>=7,S.buf[S.pos++]=127&_|128,S.buf[S.pos]=127&(_>>>=7)}(p,0,u),function(_,b){var S=(7&_)<<4;b.buf[b.pos++]|=S|((_>>>=3)?128:0),_&&(b.buf[b.pos++]=127&_|((_>>>=7)?128:0),_&&(b.buf[b.pos++]=127&_|((_>>>=7)?128:0),_&&(b.buf[b.pos++]=127&_|((_>>>=7)?128:0),_&&(b.buf[b.pos++]=127&_|((_>>>=7)?128:0),_&&(b.buf[b.pos++]=127&_)))))}(m,u)}(l,this):(this.realloc(4),this.buf[this.pos++]=127&l|(l>127?128:0),l<=127||(this.buf[this.pos++]=127&(l>>>=7)|(l>127?128:0),l<=127||(this.buf[this.pos++]=127&(l>>>=7)|(l>127?128:0),l<=127||(this.buf[this.pos++]=l>>>7&127))))},writeSVarint:function(l){this.writeVarint(l<0?2*-l-1:2*l)},writeBoolean:function(l){this.writeVarint(!!l)},writeString:function(l){l=String(l),this.realloc(4*l.length),this.pos++;var a=this.pos;this.pos=function(p,m,_){for(var b,S,I=0;I55295&&b<57344){if(!S){b>56319||I+1===m.length?(p[_++]=239,p[_++]=191,p[_++]=189):S=b;continue}if(b<56320){p[_++]=239,p[_++]=191,p[_++]=189,S=b;continue}b=S-55296<<10|b-56320|65536,S=null}else S&&(p[_++]=239,p[_++]=191,p[_++]=189,S=null);b<128?p[_++]=b:(b<2048?p[_++]=b>>6|192:(b<65536?p[_++]=b>>12|224:(p[_++]=b>>18|240,p[_++]=b>>12&63|128),p[_++]=b>>6&63|128),p[_++]=63&b|128)}return _}(this.buf,l,this.pos);var u=this.pos-a;u>=128&&X6(a,u,this),this.pos=a-1,this.writeVarint(u),this.pos+=u},writeFloat:function(l){this.realloc(4),ub.write(this.buf,l,this.pos,!0,23,4),this.pos+=4},writeDouble:function(l){this.realloc(8),ub.write(this.buf,l,this.pos,!0,52,8),this.pos+=8},writeBytes:function(l){var a=l.length;this.writeVarint(a),this.realloc(a);for(var u=0;u=128&&X6(u,p,this),this.pos=u-1,this.writeVarint(p),this.pos+=p},writeMessage:function(l,a,u){this.writeTag(l,Aa.Bytes),this.writeRawMessage(a,u)},writePackedVarint:function(l,a){a.length&&this.writeMessage(l,M0e,a)},writePackedSVarint:function(l,a){a.length&&this.writeMessage(l,O0e,a)},writePackedBoolean:function(l,a){a.length&&this.writeMessage(l,P0e,a)},writePackedFloat:function(l,a){a.length&&this.writeMessage(l,R0e,a)},writePackedDouble:function(l,a){a.length&&this.writeMessage(l,N0e,a)},writePackedFixed32:function(l,a){a.length&&this.writeMessage(l,F0e,a)},writePackedSFixed32:function(l,a){a.length&&this.writeMessage(l,L0e,a)},writePackedFixed64:function(l,a){a.length&&this.writeMessage(l,B0e,a)},writePackedSFixed64:function(l,a){a.length&&this.writeMessage(l,J6,a)},writeBytesField:function(l,a){this.writeTag(l,Aa.Bytes),this.writeBytes(a)},writeFixed32Field:function(l,a){this.writeTag(l,Aa.Fixed32),this.writeFixed32(a)},writeSFixed32Field:function(l,a){this.writeTag(l,Aa.Fixed32),this.writeSFixed32(a)},writeFixed64Field:function(l,a){this.writeTag(l,Aa.Fixed64),this.writeFixed64(a)},writeSFixed64Field:function(l,a){this.writeTag(l,Aa.Fixed64),this.writeSFixed64(a)},writeVarintField:function(l,a){this.writeTag(l,Aa.Varint),this.writeVarint(a)},writeSVarintField:function(l,a){this.writeTag(l,Aa.Varint),this.writeSVarint(a)},writeStringField:function(l,a){this.writeTag(l,Aa.Bytes),this.writeString(a)},writeFloatField:function(l,a){this.writeTag(l,Aa.Fixed32),this.writeFloat(a)},writeDoubleField:function(l,a){this.writeTag(l,Aa.Fixed64),this.writeDouble(a)},writeBooleanField:function(l,a){this.writeVarintField(l,!!a)}};var hb=L(Z6);let ej=3;function tj(l,a,u){a.glyphs=[],l===1&&u.readMessage(z0e,a)}function z0e(l,a,u){if(l===3){let{id:p,bitmap:m,width:_,height:b,left:S,top:I,advance:M}=u.readMessage(ij,{});a.glyphs.push({id:p,bitmap:new r_({width:_+2*ej,height:b+2*ej},m),metrics:{width:_,height:b,left:S,top:I,advance:M}})}else l===4?a.ascender=u.readSVarint():l===5&&(a.descender=u.readSVarint())}function ij(l,a,u){l===1?a.id=u.readVarint():l===2?a.bitmap=u.readBytes():l===3?a.width=u.readVarint():l===4?a.height=u.readVarint():l===5?a.left=u.readSVarint():l===6?a.top=u.readSVarint():l===7&&(a.advance=u.readVarint())}let iX=ej,uh={horizontal:1,vertical:2,horizontalOnly:3};class TM{constructor(){this.scale=1,this.fontStack="",this.imageName=null}static forText(a,u){let p=new TM;return p.scale=a||1,p.fontStack=u,p}static forImage(a){let u=new TM;return u.imageName=a,u}}class pb{constructor(){this.text="",this.sectionIndex=[],this.sections=[],this.imageSectionID=null}static fromFeature(a,u){let p=new pb;for(let m=0;m=0&&p>=a&&hI[this.text.charCodeAt(p)];p--)u--;this.text=this.text.substring(a,u),this.sectionIndex=this.sectionIndex.slice(a,u)}substring(a,u){let p=new pb;return p.text=this.text.substring(a,u),p.sectionIndex=this.sectionIndex.slice(a,u),p.sections=this.sections,p}toString(){return this.text}getMaxScale(){return this.sectionIndex.reduce((a,u)=>Math.max(a,this.sections[u].scale),0)}addTextSection(a,u){this.text+=a.text,this.sections.push(TM.forText(a.scale,a.fontStack||u));let p=this.sections.length-1;for(let m=0;m=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)}}function nj(l,a,u,p,m,_,b,S,I,M,N,P,V,H,Y){let W=pb.fromFeature(l,m);P===uh.vertical&&W.verticalizePunctuation(V);let re=[],ue=function(Ye,at,_t,Mt,Jt,Bt){if(!Ye)return[];let si=[],oi=function(Ti,Ei,ci,zn,Dn,Ri){let cr=0;for(let Zn=0;Zn=0,wi=0;for(let Ti=0;Ti0&&Uh>vr&&(vr=Uh)}else{let Ru=_t[hs.fontStack];if(!Ru)continue;Ru[sa]&&(Pd=Ru[sa]);let ua=at[hs.fontStack];if(!ua)continue;let Uh=ua.glyphs[sa];if(!Uh)continue;if(Qa=Uh.metrics,Ga=sa!==8203?cu:0,Ri){let fw=ua.ascender!==void 0?Math.abs(ua.ascender):0,c_=ua.descender!==void 0?Math.abs(ua.descender):0,qv=(fw+c_)*ul;Ws-u/2;){if(b--,b<0)return!1;S-=l[b].dist(_),_=l[b]}S+=l[b].dist(l[b+1]),b++;let I=[],M=0;for(;Sp;)M-=I.shift().angleDelta;if(M>m)return!1;b++,S+=N.dist(P)}return!0}function oX(l){let a=0;for(let u=0;uM){let Y=(M-I)/H,W=Jr(P.x,V.x,Y),re=Jr(P.y,V.y,Y),ue=new Vv(W,re,0,V.angleTo(P),N);return!b||kF(l,ue,S,b,a)?ue:void 0}I+=H}}function j0e(l,a,u,p,m,_,b,S,I){let M=MF(p,_,b),N=sX(p,m),P=N*b,V=l[0].x===0||l[0].x===I||l[0].y===0||l[0].y===I;return a-P=0&&De=0&&tt=0&&V+M<=N){let Ye=new Vv(De,tt,0,Te,Y);p&&!kF(l,Ye,_,p,m)||H.push(Ye)}}P+=ue}return S||H.length||b||(H=OF(l,P/2,u,p,m,_,b,!0,I)),H}function aX(l,a,u,p,m){let _=[];for(let b=0;b=p&&P.x>=p||(N.x>=p?N=new cn(p,N.y+(p-N.x)/(P.x-N.x)*(P.y-N.y))._round():P.x>=p&&(P=new cn(p,N.y+(p-N.x)/(P.x-N.x)*(P.y-N.y))._round()),N.y>=m&&P.y>=m||(N.y>=m?N=new cn(N.x+(m-N.y)/(P.y-N.y)*(P.x-N.x),m)._round():P.y>=m&&(P=new cn(N.x+(m-N.y)/(P.y-N.y)*(P.x-N.x),m)._round()),I&&N.equals(I[I.length-1])||(I=[N],_.push(I)),I.push(P)))))}}return _}function RF(l){let a=0,u=0;for(let b of l)a+=b.w*b.h,u=Math.max(u,b.w);l.sort((b,S)=>S.h-b.h);let p=[{x:0,y:0,w:Math.max(Math.ceil(Math.sqrt(a/.95)),u),h:1/0}],m=0,_=0;for(let b of l)for(let S=p.length-1;S>=0;S--){let I=p[S];if(!(b.w>I.w||b.h>I.h)){if(b.x=I.x,b.y=I.y,_=Math.max(_,b.y+b.h),m=Math.max(m,b.x+b.w),b.w===I.w&&b.h===I.h){let M=p.pop();Sa.hasImage(m,p)),a.dispatchRenderCallbacks(this.haveRenderCallbacks,p);for(let m in a.getUpdatedImages(p))this.patchUpdatedImage(this.iconPositions[m],a.getImage(m,p),u),this.patchUpdatedImage(this.patternPositions[m],a.getImage(m,p),u)}patchUpdatedImage(a,u,p){if(!a||!u||a.version===u.version)return;a.version=u.version;let[m,_]=a.tl,b=!!Object.keys(this.patternPositions).length;p.update(u.data,{useMipmap:b},{x:m,y:_})}}An(AM,"ImagePosition"),An(lX,"ImageAtlas");let pw=1e20;function cX(l,a,u,p,m,_,b,S,I){for(let M=a;M-1);I++,_[I]=S,b[I]=M,b[I+1]=pw}for(let S=0,I=0;S{let M=this.entries[b];M||(M=this.entries[b]={glyphs:{},requests:{},ranges:{},ascender:void 0,descender:void 0});let N=M.glyphs[S];if(N!==void 0)return void I(null,{stack:b,id:S,glyph:N});if(N=this._tinySDF(M,b,S),N)return M.glyphs[S]=N,void I(null,{stack:b,id:S,glyph:N});let P=Math.floor(S/256);if(256*P>65535)return void I(new Error("glyphs > 65535 not supported"));if(M.ranges[P])return void I(null,{stack:b,id:S,glyph:N});let V=M.requests[P];V||(V=M.requests[P]=[],pI.loadGlyphRange(b,P,_,this.requestManager,(H,Y)=>{if(Y){M.ascender=Y.ascender,M.descender=Y.descender;for(let W in Y.glyphs)this._doesCharSupportLocalGlyph(+W)||(M.glyphs[+W]=Y.glyphs[+W]);M.ranges[P]=!0}for(let W of V)W(H,Y);delete M.requests[P]})),V.push((H,Y)=>{H?I(H):Y&&I(null,{stack:b,id:S,glyph:Y.glyphs[S]||null})})},(b,S)=>{if(b)p(b);else if(S){let I={};for(let{stack:M,id:N,glyph:P}of S)I[M]===void 0&&(I[M]={}),I[M].glyphs===void 0&&(I[M].glyphs={}),I[M].glyphs[N]=P&&{id:P.id,bitmap:P.bitmap.clone(),metrics:P.metrics},I[M].ascender=this.entries[M].ascender,I[M].descender=this.entries[M].descender;p(null,I)}})}_doesCharSupportLocalGlyph(a){return this.localGlyphMode!==DM.none&&(this.localGlyphMode===DM.all?!!this.localFontFamily:!!this.localFontFamily&&(d["CJK Unified Ideographs"](a)||d["Hangul Syllables"](a)||d.Hiragana(a)||d.Katakana(a)||d["CJK Symbols and Punctuation"](a)||d["CJK Unified Ideographs Extension A"](a)||d["CJK Unified Ideographs Extension B"](a)))}_tinySDF(a,u,p){let m=this.localFontFamily;if(!m||!this._doesCharSupportLocalGlyph(p))return;let _=a.tinySDF;if(!_){let W="400";/bold/i.test(u)?W="900":/medium/i.test(u)?W="500":/light/i.test(u)&&(W="200"),_=a.tinySDF=new pI.TinySDF({fontFamily:m,fontWeight:W,fontSize:24*Fm,buffer:3*Fm,radius:8*Fm}),_.fontWeight=W}if(this.localGlyphs[_.fontWeight][p])return this.localGlyphs[_.fontWeight][p];let b=String.fromCodePoint(p),{data:S,width:I,height:M,glyphWidth:N,glyphHeight:P,glyphLeft:V,glyphTop:H,glyphAdvance:Y}=_.draw(b);return this.localGlyphs[_.fontWeight][p]={id:p,bitmap:new r_({width:I,height:M},S),metrics:{width:N/Fm,height:P/Fm,left:V/Fm,top:H/Fm-27,advance:Y/Fm,localGlyph:!0}}}}pI.loadGlyphRange=function(l,a,u,p,m){let _=256*a,b=_+255,S=p.transformRequest(p.normalizeGlyphsURL(u).replace("{fontstack}",l).replace("{range}",`${_}-${b}`),A1.Glyphs);bv(S,(I,M)=>{if(I)m(I);else if(M){let N={},P=function(V){return new hb(V).readFields(tj,{})}(M);for(let V of P.glyphs)N[V.id]=V;m(null,{glyphs:N,ascender:P.ascender,descender:P.descender})}})},pI.TinySDF=class{constructor({fontSize:l=24,buffer:a=3,radius:u=8,cutoff:p=.25,fontFamily:m="sans-serif",fontWeight:_="normal",fontStyle:b="normal"}={}){this.buffer=a,this.cutoff=p,this.radius=u;let S=this.size=l+4*a,I=this._createCanvas(S),M=this.ctx=I.getContext("2d",{willReadFrequently:!0});M.font=`${b} ${_} ${l}px ${m}`,M.textBaseline="alphabetic",M.textAlign="left",M.fillStyle="black",this.gridOuter=new Float64Array(S*S),this.gridInner=new Float64Array(S*S),this.f=new Float64Array(S),this.z=new Float64Array(S+1),this.v=new Uint16Array(S)}_createCanvas(l){let a=document.createElement("canvas");return a.width=a.height=l,a}draw(l){let{width:a,actualBoundingBoxAscent:u,actualBoundingBoxDescent:p,actualBoundingBoxLeft:m,actualBoundingBoxRight:_}=this.ctx.measureText(l),b=Math.ceil(u),S=Math.max(0,Math.min(this.size-this.buffer,Math.ceil(_-m))),I=Math.min(this.size-this.buffer,b+Math.ceil(p)),M=S+2*this.buffer,N=I+2*this.buffer,P=Math.max(M*N,0),V=new Uint8ClampedArray(P),H={data:V,width:M,height:N,glyphWidth:S,glyphHeight:I,glyphTop:b,glyphLeft:0,glyphAdvance:a};if(S===0||I===0)return H;let{ctx:Y,buffer:W,gridInner:re,gridOuter:ue}=this;Y.clearRect(W,W,S,I),Y.fillText(l,W,W+b);let Te=Y.getImageData(W,W,S,I);ue.fill(pw,0,P),re.fill(0,0,P);for(let Pe=0;Pe0?at*at:0,re[Ye]=at<0?at*at:0}}cX(ue,0,0,M,N,M,this.f,this.v,this.z),cX(re,W,W,S,I,M,this.f,this.v,this.z);for(let Pe=0;PeBt+si[1]-si[0],Y=P.reduce(H,0),W=V.reduce(H,0),re=S-Y,ue=I-W,Te=0,Pe=Y,De=0,tt=W,Ye=0,at=re,_t=0,Mt=ue;if(_.content&&p){let Bt=_.content;Te=fI(P,0,Bt[0]),De=fI(V,0,Bt[1]),Pe=fI(P,Bt[0],Bt[2]),tt=fI(V,Bt[1],Bt[3]),Ye=Bt[0]-Te,_t=Bt[1]-De,at=Bt[2]-Bt[0]-Pe,Mt=Bt[3]-Bt[1]-tt}let Jt=(Bt,si,oi,ei)=>{let wi=mI(Bt.stretch-Te,Pe,M,l.left),vi=PF(Bt.fixed-Ye,at,Bt.stretch,Y),Ti=mI(si.stretch-De,tt,N,l.top),Ei=PF(si.fixed-_t,Mt,si.stretch,W),ci=mI(oi.stretch-Te,Pe,M,l.left),zn=PF(oi.fixed-Ye,at,oi.stretch,Y),Dn=mI(ei.stretch-De,tt,N,l.top),Ri=PF(ei.fixed-_t,Mt,ei.stretch,W),cr=new cn(wi,Ti),Zn=new cn(ci,Ti),Un=new cn(ci,Dn),Ni=new cn(wi,Dn),ar=new cn(vi/b,Ei/b),Wr=new cn(zn/b,Ri/b),Er=a*Math.PI/180;if(Er){let js=Math.sin(Er),ds=Math.cos(Er),Go=[ds,-js,js,ds];cr._matMult(Go),Zn._matMult(Go),Ni._matMult(Go),Un._matMult(Go)}let no=Bt.stretch+Bt.fixed,Zr=oi.stretch+oi.fixed,xo=si.stretch+si.fixed,vr=ei.stretch+ei.fixed,Ws=l.imageSecondary;return{tl:cr,tr:Zn,bl:Ni,br:Un,texPrimary:{x:_.paddedRect.x+l_+no,y:_.paddedRect.y+l_+xo,w:Zr-no,h:vr-xo},texSecondary:Ws?{x:Ws.paddedRect.x+l_+no,y:Ws.paddedRect.y+l_+xo,w:Zr-no,h:vr-xo}:void 0,writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:ar,pixelOffsetBR:Wr,minFontScaleX:at/b/M,minFontScaleY:Mt/b/N,isSDF:u}};if(p&&(_.stretchX||_.stretchY)){let Bt=dX(P,re,Y),si=dX(V,ue,W);for(let oi=0;oi_)&&(_=Y.x),(!H||Y.y>b)&&(b=Y.y)}let I=Math.min(_-p,b-m),M=I/2,N=new CE([],lj);if(I===0)return new cn(p,m);for(let H=p;H<_;H+=I)for(let Y=m;YP.d||!P.d)&&(P=H,u&&console.log("found best %d after %d probes",Math.round(1e4*H.d)/1e4,V)),H.max-P.d<=a||(M=H.h/2,N.push(new gI(H.p.x-M,H.p.y-M,M,l)),N.push(new gI(H.p.x+M,H.p.y-M,M,l)),N.push(new gI(H.p.x-M,H.p.y+M,M,l)),N.push(new gI(H.p.x+M,H.p.y+M,M,l)),V+=4)}return u&&(console.log(`num probes: ${V}`),console.log(`best distance: ${P.d}`)),P.p}function lj(l,a){return a.max-l.max}class gI{constructor(a,u,p,m){this.p=new cn(a,u),this.h=p,this.d=function(_,b){let S=!1,I=1/0;for(let M=0;M_.y!=W.y>_.y&&_.x<(W.x-Y.x)*(_.y-Y.y)/(W.y-Y.y)+Y.x&&(S=!S),I=Math.min(I,GZ(_,Y,W))}}return(S?1:-1)*Math.sqrt(I)}(this.p,m),this.max=this.d+this.h*Math.SQRT2}}let kM=Number.POSITIVE_INFINITY,G0e=Math.sqrt(2);function FF(l,[a,u]){let p=0,m=0;if(u===kM){a<0&&(a=0);let _=a/G0e;switch(l){case"top-right":case"top-left":m=_-7;break;case"bottom-right":case"bottom-left":m=7-_;break;case"bottom":m=7-a;break;case"top":m=a-7}switch(l){case"top-right":case"bottom-right":p=-_;break;case"top-left":case"bottom-left":p=_;break;case"left":p=a;break;case"right":p=-a}}else{switch(a=Math.abs(a),u=Math.abs(u),l){case"top-right":case"top-left":case"top":m=u-7;break;case"bottom-right":case"bottom-left":case"bottom":m=7-u}switch(l){case"top-right":case"bottom-right":case"right":p=-a;break;case"top-left":case"bottom-left":case"left":p=a}}return[p,m]}function LF(l){switch(l){case"right":case"top-right":case"bottom-right":return"right";case"left":case"top-left":case"bottom-left":return"left"}return"center"}function cj(l,a,u,p,m,_,b,S,I,M,N,P,V,H,Y){let W=_.textMaxSize.evaluate(a,{},P);W===void 0&&(W=b);let re=l.layers[0].layout,ue=re.get("icon-offset").evaluate(a,{},P),Te=tLe(u.horizontal)||u.vertical,Pe=V.name==="globe",De=cu,tt=b/De,Ye=l.tilePixelRatio*W/De,at=(wi=l.overscaling,l.zoom>18&&wi>2&&(wi>>=1),Math.max(dn/(512*wi),1)*re.get("symbol-spacing")),_t=re.get("text-padding")*l.tilePixelRatio,Mt=re.get("icon-padding")*l.tilePixelRatio,Jt=Bo(re.get("text-max-angle")),Bt=re.get("text-rotation-alignment")==="map"&&re.get("symbol-placement")!=="point",si=re.get("icon-rotation-alignment")==="map"&&re.get("symbol-placement")!=="point",oi=re.get("symbol-placement"),ei=at/2;var wi;let vi=re.get("icon-text-fit").evaluate(a,{},P),Ti=re.get("icon-text-fit-padding").evaluate(a,{},P),Ei=vi!=="none",ci;l.hasAnyIconTextFit===!1&&Ei&&(l.hasAnyIconTextFit=!0),p&&Ei&&(l.allowVerticalPlacement&&u.vertical&&(ci=DF(p,u.vertical,vi,Ti,ue,tt)),Te&&(p=DF(p,Te,vi,Ti,ue,tt)));let zn=(Dn,Ri,cr)=>{if(Ri.x<0||Ri.x>=dn||Ri.y<0||Ri.y>=dn)return;let Zn=null;if(Pe){let{x:Un,y:Ni,z:ar}=V.projectTilePoint(Ri.x,Ri.y,cr);Zn={anchor:new Vv(Un,Ni,ar,0,void 0),up:V.upVector(cr,Ri.x,Ri.y)}}(function(Un,Ni,ar,Wr,Er,no,Zr,xo,vr,Ws,js,ds,Go,hs,_a,sa,ul,Qa,Pd,Nl,Ga,bc,Ou,Ru,ua,Uh,fw){let c_=Un.addToLineVertexArray(Ni,Wr),qv,xI,wI,PM,iBe,nBe,rBe,oBe=0,sBe=0,aBe=0,lBe=0,mye=-1,gye=-1,fb={},cBe=wv(""),FM=ar?ar.anchor:Ni,_ye=vr.layout.get("icon-text-fit").evaluate(Ga,{},ua)!=="none",vye=0,yye=0;if(vr._unevaluatedLayout.getValue("text-radial-offset")===void 0?[vye,yye]=vr.layout.get("text-offset").evaluate(Ga,{},ua).map(Af=>Af*cu):(vye=vr.layout.get("text-radial-offset").evaluate(Ga,{},ua)*cu,yye=kM),Un.allowVerticalPlacement&&Er.vertical){let Af=Er.vertical;if(_a)nBe=Y0e(Af),xo&&(rBe=Y0e(xo));else{let Df=vr.layout.get("text-rotate").evaluate(Ga,{},ua)+90;wI=hX(Ws,FM,Ni,js,ds,Go,Af,hs,Df,sa),xo&&(PM=hX(Ws,FM,Ni,js,ds,Go,xo,Qa,Df))}}if(no){let Af=vr.layout.get("icon-rotate").evaluate(Ga,{},ua),Df=uX(no,Af,Ou,_ye),YF=xo?uX(xo,Af,Ou,_ye):void 0;xI=hX(Ws,FM,Ni,js,ds,Go,no,Qa,Af),oBe=4*Df.length;let uBe=Un.iconSizeData,LM=null;uBe.kind==="source"?(LM=[Pm*vr.layout.get("icon-size").evaluate(Ga,{},ua)],LM[0]>Uv&&ja(`${Un.layerIds[0]}: Value for "icon-size" is >= ${MM}. Reduce your "icon-size".`)):uBe.kind==="composite"&&(LM=[Pm*bc.compositeIconSizes[0].evaluate(Ga,{},ua),Pm*bc.compositeIconSizes[1].evaluate(Ga,{},ua)],(LM[0]>Uv||LM[1]>Uv)&&ja(`${Un.layerIds[0]}: Value for "icon-size" is >= ${MM}. Reduce your "icon-size".`)),Un.addSymbols(Un.icon,Df,LM,Nl,Pd,Ga,!1,ar,Ni,c_.lineStartIndex,c_.lineLength,-1,Ru,ua,Uh,fw),mye=Un.icon.placedSymbolArray.length-1,YF&&(sBe=4*YF.length,Un.addSymbols(Un.icon,YF,LM,Nl,Pd,Ga,uh.vertical,ar,Ni,c_.lineStartIndex,c_.lineLength,-1,Ru,ua,Uh,fw),gye=Un.icon.placedSymbolArray.length-1)}for(let Af in Er.horizontal){let Df=Er.horizontal[Af];qv||(cBe=wv(Df.text),_a?iBe=Y0e(Df):qv=hX(Ws,FM,Ni,js,ds,Go,Df,hs,vr.layout.get("text-rotate").evaluate(Ga,{},ua),sa));let YF=Df.positionedLines.length===1;if(aBe+=BF(Un,ar,Ni,Df,Zr,vr,_a,Ga,sa,c_,Er.vertical?uh.horizontal:uh.horizontalOnly,YF?Object.keys(Er.horizontal):[Af],fb,mye,bc,Ru,ua,Uh),YF)break}Er.vertical&&(lBe+=BF(Un,ar,Ni,Er.vertical,Zr,vr,_a,Ga,sa,c_,uh.vertical,["vertical"],fb,gye,bc,Ru,ua,Uh));let CI=-1,bye=(Af,Df)=>Af?Math.max(Af,Df):Df;CI=bye(iBe,CI),CI=bye(nBe,CI),CI=bye(rBe,CI);let iht=CI>-1?1:0;Un.glyphOffsetArray.length>=65535&&ja("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),Ga.sortKey!==void 0&&Un.addToSortKeyRanges(Un.symbolInstances.length,Ga.sortKey),Un.symbolInstances.emplaceBack(Ni.x,Ni.y,FM.x,FM.y,FM.z,fb.right>=0?fb.right:-1,fb.center>=0?fb.center:-1,fb.left>=0?fb.left:-1,fb.vertical>=0?fb.vertical:-1,mye,gye,cBe,qv!==void 0?qv:Un.collisionBoxArray.length,qv!==void 0?qv+1:Un.collisionBoxArray.length,wI!==void 0?wI:Un.collisionBoxArray.length,wI!==void 0?wI+1:Un.collisionBoxArray.length,xI!==void 0?xI:Un.collisionBoxArray.length,xI!==void 0?xI+1:Un.collisionBoxArray.length,PM||Un.collisionBoxArray.length,PM?PM+1:Un.collisionBoxArray.length,js,aBe,lBe,oBe,sBe,iht,0,vye,yye,CI,0,_ye?1:0)})(l,Ri,Zn,Dn,u,p,m,ci,l.layers[0],l.collisionBoxArray,a.index,a.sourceLayerIndex,l.index,_t,Bt,I,0,Mt,si,ue,a,_,M,N,P,H,Y)};if(oi==="line")for(let Dn of aX(a.geometry,0,0,dn,dn)){let Ri=j0e(Dn,at,Jt,u.vertical||Te,p,De,Ye,l.overscaling,dn);for(let cr of Ri)Te&&zut(l,Te.text,ei,cr)||zn(Dn,cr,P)}else if(oi==="line-center"){for(let Dn of a.geometry)if(Dn.length>1){let Ri=sj(Dn,Jt,u.vertical||Te,p,De,Ye);Ri&&zn(Dn,Ri,P)}}else if(a.type==="Polygon")for(let Dn of S6(a.geometry,0)){let Ri=H0e(Dn,16);zn(Dn[0],new Vv(Ri.x,Ri.y,0,0,void 0),P)}else if(a.type==="LineString")for(let Dn of a.geometry)zn(Dn,new Vv(Dn[0].x,Dn[0].y,0,0,void 0),P);else if(a.type==="Point")for(let Dn of a.geometry)for(let Ri of Dn)zn([Ri],new Vv(Ri.x,Ri.y,0,0,void 0),P)}let MM=255,Uv=MM*Pm;function BF(l,a,u,p,m,_,b,S,I,M,N,P,V,H,Y,W,re,ue){let Te=function(tt,Ye,at,_t,Mt,Jt,Bt,si){let oi=[];if(Ye.positionedLines.length===0)return oi;let ei=_t.layout.get("text-rotate").evaluate(Jt,{})*Math.PI/180,wi=function(zn){let Dn=zn[0],Ri=zn[1],cr=Dn*Ri;return cr>0?[Dn,-Ri]:cr<0?[-Dn,Ri]:Dn===0?[Ri,Dn]:[Ri,-Dn]}(at),vi=Math.abs(Ye.top-Ye.bottom);for(let zn of Ye.positionedLines)vi-=zn.lineOffset;let Ti=Ye.positionedLines.length,Ei=vi/Ti,ci=Ye.top-at[1];for(let zn=0;znUv&&ja(`${l.layerIds[0]}: Value for "text-size" is >= ${MM}. Reduce your "text-size".`)):Pe.kind==="composite"&&(De=[Pm*Y.compositeTextSizes[0].evaluate(S,{},re),Pm*Y.compositeTextSizes[1].evaluate(S,{},re)],(De[0]>Uv||De[1]>Uv)&&ja(`${l.layerIds[0]}: Value for "text-size" is >= ${MM}. Reduce your "text-size".`)),l.addSymbols(l.text,Te,De,I,b,S,N,a,u,M.lineStartIndex,M.lineLength,H,W,re,ue,!1);for(let tt of P)V[tt]=l.text.placedSymbolArray.length-1;return 4*Te.length}function tLe(l){for(let a in l)return l[a];return null}function hX(l,a,u,p,m,_,b,S,I,M){let N=b.top,P=b.bottom,V=b.left,H=b.right,Y=b.collisionPadding;if(Y&&(V-=Y[0],N-=Y[1],H+=Y[2],P+=Y[3]),I){let W=new cn(V,N),re=new cn(H,N),ue=new cn(V,P),Te=new cn(H,P),Pe=Bo(I),De=new cn(0,0);M&&(De=new cn(M[0],M[1])),W._rotateAround(Pe,De),re._rotateAround(Pe,De),ue._rotateAround(Pe,De),Te._rotateAround(Pe,De),V=Math.min(W.x,re.x,ue.x,Te.x),H=Math.max(W.x,re.x,ue.x,Te.x),N=Math.min(W.y,re.y,ue.y,Te.y),P=Math.max(W.y,re.y,ue.y,Te.y)}return l.emplaceBack(a.x,a.y,a.z,u.x,u.y,V,N,H,P,S,p,m,_),l.length-1}function Y0e(l){l.collisionPadding&&(l.top-=l.collisionPadding[1],l.bottom+=l.collisionPadding[3]);let a=l.bottom-l.top;return a>0?Math.max(10,a):null}function zut(l,a,u,p){let m=l.compareText;if(a in m){let _=m[a];for(let b=_.length-1;b>=0;b--)if(p.dist(_[b])Pe&&(De(Ye,ei,_t,Mt,si,oi),De(ei,at,si,oi,Jt,Bt))}De(P,V,p,_,m,_),De(V,H,m,_,m,b),De(H,Y,m,b,p,b),De(Y,P,p,b,p,_),W-=Pe,re-=Pe,ue+=Pe,Te+=Pe;let tt=1/Math.max(ue-W,Te-re);return{scale:tt,x:W*tt,y:re*tt,x2:ue*tt,y2:Te*tt,projection:a}}function nLe(l,{x:a,y:u},p=0){return new cn(((a-p)*l.scale-l.x)*dn,(u*l.scale-l.y)*dn)}let Vut=o.a9.identity(new Float32Array(16));class _I{constructor(a){this.spec=a,this.name=a.name,this.wrap=!1,this.requiresDraping=!1,this.supportsWorldCopies=!1,this.supportsTerrain=!1,this.supportsFog=!1,this.supportsFreeCamera=!1,this.zAxisUnit="meters",this.isReprojectedInTileSpace=!0,this.unsupportedLayers=["custom"],this.center=[0,0],this.range=[3.5,7]}project(a,u){return{x:0,y:0,z:0}}unproject(a,u){return new Ho(0,0)}projectTilePoint(a,u,p){return{x:a,y:u,z:0}}locationPoint(a,u,p=!0){return a._coordinatePoint(a.locationCoordinate(u),p)}pixelsPerMeter(a,u){return Nd(1,a)*u}pixelSpaceConversion(a,u,p){return 1}farthestPixelDistance(a){return iLe(a,a.pixelsPerMeter)}pointCoordinate(a,u,p,m){let _=a.horizonLineFromTop(!1),b=new cn(u,Math.max(_,p));return a.rayIntersectionCoordinate(a.pointRayIntersection(b,m))}pointCoordinate3D(a,u,p){let m=new cn(u,p);if(a.elevation)return a.elevation.pointCoordinate(m);{let _=this.pointCoordinate(a,m.x,m.y,0);return[_.x,_.y,_.z]}}isPointAboveHorizon(a,u){if(a.elevation)return!this.pointCoordinate3D(a,u.x,u.y);let p=a.horizonLineFromTop();return u.y0?u<-zF+p&&(u=-zF+p):u>zF-p&&(u=zF-p);let b=_/Math.pow(fX(u),m),S=b*Math.sin(m*a),I=_-b*Math.cos(m*a);return S=.5*(S/Math.PI+.5),I=.5*(I/Math.PI+.5),{x:S,y:this.southernCenter?I:1-I,z:0}}unproject(a,u){a=(2*a-.5)*Math.PI,this.southernCenter&&(u=1-u),u=(2*(1-u)-.5)*Math.PI;let{n:p,f:m}=this,_=m-u,b=Math.sign(_),S=Math.sign(p)*Math.sqrt(a*a+_*_),I=Math.atan2(a,Math.abs(_))*b;_*p<0&&(I-=Math.PI*Math.sign(a)*b);let M=Br(Du(I/p)+this.center[0],-180,180),N=Br(Du(2*Math.atan(Math.pow(m/S,1/p))-zF),-bl,bl);return new Ho(M,this.southernCenter?-N:N)}}class rLe extends _I{constructor(a){super(a),this.wrap=!0,this.supportsWorldCopies=!0,this.supportsTerrain=!0,this.supportsFog=!0,this.supportsFreeCamera=!0,this.isReprojectedInTileSpace=!1,this.unsupportedLayers=[],this.range=null}project(a,u){return{x:ob(a),y:e_(u),z:0}}unproject(a,u){let p=ch(a),m=au(u);return new Ho(p,m)}}let oLe=Bo(bl);class Yut extends _I{project(a,u){let p=(u=Bo(u))*u,m=p*p;return{x:.5*((a=Bo(a))*(.8707-.131979*p+m*(m*(.003971*p-.001529*m)-.013791))/Math.PI+.5),y:1-.5*(u*(1.007226+p*(.015085+m*(.028874*p-.044475-.005916*m)))/Math.PI+1),z:0}}unproject(a,u){a=(2*a-.5)*Math.PI;let p=u=(2*(1-u)-1)*Math.PI,m=25,_=0,b=p*p;do{b=p*p;let M=b*b;_=(p*(1.007226+b*(.015085+M*(.028874*b-.044475-.005916*M)))-u)/(1.007226+b*(.045255+M*(.259866*b-.311325-.005916*11*M))),p=Br(p-_,-oLe,oLe)}while(Math.abs(_)>1e-6&&--m>0);b=p*p;let S=Br(Du(a/(.8707+b*(b*(b*b*b*(.003971-.001529*b)-.013791)-.131979))),-180,180),I=Du(p);return new Ho(S,I)}}let sLe=Bo(bl);class qut extends _I{project(a,u){u=Bo(u),a=Bo(a);let p=Math.cos(u),m=2/Math.PI,_=Math.acos(p*Math.cos(a/2)),b=Math.sin(_)/_,S=.5*(a*m+2*p*Math.sin(a/2)/b)||0,I=.5*(u+Math.sin(u)/b)||0;return{x:.5*(S/Math.PI+.5),y:1-.5*(I/Math.PI+1),z:0}}unproject(a,u){let p=a=(2*a-.5)*Math.PI,m=u=(2*(1-u)-1)*Math.PI,_=25,b=1e-6,S=0,I=0;do{let M=Math.cos(m),N=Math.sin(m),P=2*N*M,V=N*N,H=M*M,Y=Math.cos(p/2),W=Math.sin(p/2),re=2*Y*W,ue=W*W,Te=1-H*Y*Y,Pe=Te?1/Te:0,De=Te?Math.acos(M*Y)*Math.sqrt(1/Te):0,tt=.5*(2*De*M*W+2*p/Math.PI)-a,Ye=.5*(De*N+m)-u,at=.5*Pe*(H*ue+De*M*Y*V)+1/Math.PI,_t=Pe*(re*P/4-De*N*W),Mt=.125*Pe*(P*W-De*N*H*re),Jt=.5*Pe*(V*Y+De*ue*M)+.5,Bt=_t*Mt-Jt*at;S=(Ye*_t-tt*Jt)/Bt,I=(tt*Mt-Ye*at)/Bt,p=Br(p-S,-Math.PI,Math.PI),m=Br(m-I,-sLe,sLe)}while((Math.abs(S)>b||Math.abs(I)>b)&&--_>0);return new Ho(Du(p),Du(m))}}class aLe extends _I{constructor(a){super(a),this.center=a.center||[0,0],this.parallels=a.parallels||[0,0],this.cosPhi=Math.max(.01,Math.cos(Bo(this.parallels[0]))),this.scale=1/(2*Math.max(Math.PI*this.cosPhi,1/this.cosPhi)),this.wrap=!0,this.supportsWorldCopies=!0}project(a,u){let{scale:p,cosPhi:m}=this;return{x:Bo(a)*m*p+.5,y:-Math.sin(Bo(u))/m*p+.5,z:0}}unproject(a,u){let{scale:p,cosPhi:m}=this,_=-(u-.5)/p,b=Br(Du((a-.5)/p)/m,-180,180),S=Math.asin(Br(_*m,-1,1)),I=Br(Du(S),-bl,bl);return new Ho(b,I)}}class $ut extends rLe{constructor(a){super(a),this.requiresDraping=!0,this.supportsWorldCopies=!1,this.supportsFog=!0,this.zAxisUnit="pixels",this.unsupportedLayers=["debug"],this.range=[3,5]}projectTilePoint(a,u,p){let m=dM(a,u,p),_=pM(i_(p));return o.Q.transformMat4(m,m,_),{x:m[0],y:m[1],z:m[2]}}locationPoint(a,u){let p=rb(u.lat,u.lng),m=o.Q.normalize([],p),_=a.elevation?a.elevation.getAtPointOrZero(a.locationCoordinate(u),a._centerAltitude):a._centerAltitude,b=Nd(1,0)*dn*_;o.Q.scaleAndAdd(p,p,m,b);let S=o.a9.identity(new Float64Array(16));return o.a9.multiply(S,a.pixelMatrix,a.globeMatrix),o.Q.transformMat4(p,p,S),new cn(p[0],p[1])}pixelsPerMeter(a,u){return Nd(1,0)*u}pixelSpaceConversion(a,u,p){let m=Nd(1,a)*u,_=Jr(Nd(1,45)*u,m,p);return this.pixelsPerMeter(a,u)/_}createTileMatrix(a,u,p){let m=fM(i_(p.canonical));return o.a9.multiply(new Float64Array(16),a.globeMatrix,m)}createInversionMatrix(a,u){let{center:p}=a,m=pM(i_(u));return o.a9.rotateY(m,m,Bo(p.lng)),o.a9.rotateX(m,m,Bo(p.lat)),o.a9.scale(m,m,[a._pixelsPerMercatorPixel,a._pixelsPerMercatorPixel,1]),Float32Array.from(m)}pointCoordinate(a,u,p,m){return c6(a,u,p,!0)||new lu(0,0)}pointCoordinate3D(a,u,p){let m=this.pointCoordinate(a,u,p,0);return[m.x,m.y,m.z]}isPointAboveHorizon(a,u){return!c6(a,u.x,u.y,!1)}farthestPixelDistance(a){let u=function(m,_){let b=m.cameraToCenterDistance,S=m._centerAltitude*_,I=m._camera,M=m._camera.forward(),N=o.Q.add([],o.Q.scale([],M,-b),[0,0,S]),P=m.worldSize/(2*Math.PI),V=[0,0,-P],H=m.width/m.height,Y=Math.tan(m.fovAboveCenter),W=o.Q.scale([],I.up(),Y),re=o.Q.scale([],I.right(),Y*H),ue=o.Q.normalize([],o.Q.add([],o.Q.add([],M,W),re)),Te=[],Pe;if(new XP(N,ue).closestPointOnSphere(V,P,Te)){let De=o.Q.add([],Te,V),tt=o.Q.sub([],De,N);Pe=Math.cos(m.fovAboveCenter)*o.Q.length(tt)}else{let De=o.Q.sub([],N,V),tt=o.Q.sub([],V,N);o.Q.normalize(tt,tt);let Ye=o.Q.length(De)-P;Pe=Math.sqrt(Ye*(Ye+2*P));let at=Math.acos(Pe/(P+Ye))-Math.acos(o.Q.dot(M,tt));Pe*=Math.cos(at)}return 1.01*Pe}(a,this.pixelsPerMeter(a.center.lat,a.worldSize)),p=zh(a.zoom);if(p>0){let m=iLe(a,Nd(1,a.center.lat)*a.worldSize),_=a.worldSize/(2*Math.PI),b=Math.max(a.width,a.height)/a.worldSize*Math.PI;return Jr(u,m+_*(1-Math.cos(b)),Math.pow(p,10))}return u}upVector(a,u,p){return dM(u,p,a,1)}upVectorScale(a){return{metersToTile:uM(hM(i_(a)))}}}function lLe(l){let a=l.parallels,u=!!a&&Math.abs(a[0]+a[1])<.01;switch(l.name){case"mercator":return new rLe(l);case"equirectangular":return new Hut(l);case"naturalEarth":return new Yut(l);case"equalEarth":return new jut(l);case"winkelTripel":return new qut(l);case"albers":return u?new aLe(l):new Uut(l);case"lambertConformalConic":return u?new aLe(l):new Gut(l);case"globe":return new $ut(l)}throw new Error(`Invalid projection name: ${l.name}`)}let Kut=iI.types,Wut=[{name:"a_fade_opacity",components:1,type:"Uint8",offset:0}];function mX(l,a,u,p,m,_,b,S,I,M,N,P,V){let H=S?Math.min(Uv,Math.round(S[0])):0,Y=S?Math.min(Uv,Math.round(S[1])):0;l.emplaceBack(a,u,Math.round(32*p),Math.round(32*m),_,b,(H<<1)+(I?1:0),Y,16*M,16*N,256*P,256*V)}function gX(l,a,u){l.emplaceBack(a,u)}function _X(l,a,u,p,m,_,b){l.emplaceBack(a,u,p,m,_,b)}function vX(l,a,u,p,m){l.emplaceBack(a,u,p,m),l.emplaceBack(a,u,p,m),l.emplaceBack(a,u,p,m),l.emplaceBack(a,u,p,m)}function Zut(l){for(let a of l.sections)if(U(a.text))return!0;return!1}class q0e{constructor(a){this.layoutVertexArray=new Mp,this.indexArray=new vc,this.programConfigurations=a,this.segments=new cl,this.dynamicLayoutVertexArray=new _c,this.opacityVertexArray=new Nm,this.placedSymbolArray=new BU,this.iconTransitioningVertexArray=new Od,this.globeExtVertexArray=new Ef,this.zOffsetVertexArray=new sM}isEmpty(){return this.layoutVertexArray.length===0&&this.indexArray.length===0&&this.dynamicLayoutVertexArray.length===0&&this.opacityVertexArray.length===0&&this.iconTransitioningVertexArray.length===0}upload(a,u,p,m,_){this.isEmpty()||(p&&(this.layoutVertexBuffer=a.createVertexBuffer(this.layoutVertexArray,A0e.members),this.indexBuffer=a.createIndexBuffer(this.indexArray,u),this.dynamicLayoutVertexBuffer=a.createVertexBuffer(this.dynamicLayoutVertexArray,D0e.members,!0),this.opacityVertexBuffer=a.createVertexBuffer(this.opacityVertexArray,Wut,!0),this.iconTransitioningVertexArray.length>0&&(this.iconTransitioningVertexBuffer=a.createVertexBuffer(this.iconTransitioningVertexArray,G6.members,!0)),this.globeExtVertexArray.length>0&&(this.globeExtVertexBuffer=a.createVertexBuffer(this.globeExtVertexArray,KQ.members,!0)),!this.zOffsetVertexBuffer&&(this.zOffsetVertexArray.length>0||_)&&(this.zOffsetVertexBuffer=a.createVertexBuffer(this.zOffsetVertexArray,WQ.members,!0)),this.opacityVertexBuffer.itemSize=1),(p||m)&&this.programConfigurations.upload(a))}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.dynamicLayoutVertexBuffer.destroy(),this.opacityVertexBuffer.destroy(),this.iconTransitioningVertexBuffer&&this.iconTransitioningVertexBuffer.destroy(),this.globeExtVertexBuffer&&this.globeExtVertexBuffer.destroy(),this.zOffsetVertexBuffer&&this.zOffsetVertexBuffer.destroy())}}An(q0e,"SymbolBuffers");class $0e{constructor(a,u,p){this.layoutVertexArray=new a,this.layoutAttributes=u,this.indexArray=new p,this.segments=new cl,this.collisionVertexArray=new us,this.collisionVertexArrayExt=new _c}upload(a){this.layoutVertexBuffer=a.createVertexBuffer(this.layoutVertexArray,this.layoutAttributes),this.indexBuffer=a.createIndexBuffer(this.indexArray),this.collisionVertexBuffer=a.createVertexBuffer(this.collisionVertexArray,Y6.members,!0),this.collisionVertexBufferExt=a.createVertexBuffer(this.collisionVertexArrayExt,ZQ.members,!0)}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.collisionVertexBuffer.destroy(),this.collisionVertexBufferExt.destroy())}}An($0e,"CollisionBuffers");class yX{constructor(a){this.collisionBoxArray=a.collisionBoxArray,this.zoom=a.zoom,this.overscaling=a.overscaling,this.layers=a.layers,this.layerIds=this.layers.map(b=>b.fqid),this.index=a.index,this.pixelRatio=a.pixelRatio,this.sourceLayerIndex=a.sourceLayerIndex,this.hasPattern=!1,this.hasRTLText=!1,this.fullyClipped=!1,this.hasAnyIconTextFit=!1,this.sortKeyRanges=[],this.collisionCircleArray=[],this.placementInvProjMatrix=o.a9.identity([]),this.placementViewportMatrix=o.a9.identity([]);let u=this.layers[0]._unevaluatedLayout._values;this.textSizeData=$6(this.zoom,u["text-size"]),this.iconSizeData=$6(this.zoom,u["icon-size"]);let p=this.layers[0].layout,m=p.get("symbol-sort-key"),_=p.get("symbol-z-order");this.canOverlap=p.get("text-allow-overlap")||p.get("icon-allow-overlap")||p.get("text-ignore-placement")||p.get("icon-ignore-placement"),this.sortFeaturesByKey=_!=="viewport-y"&&m.constantOr(1)!==void 0,this.sortFeaturesByY=(_==="viewport-y"||_==="auto"&&!this.sortFeaturesByKey)&&this.canOverlap,this.writingModes=p.get("text-writing-mode").map(b=>uh[b]),this.stateDependentLayerIds=this.layers.filter(b=>b.isStateDependent()).map(b=>b.id),this.sourceID=a.sourceID,this.projection=a.projection,this.hasAnyZOffset=!1,this.zOffsetSortDirty=!1,this.zOffsetBuffersNeedUpload=p.get("symbol-z-elevate")}createArrays(){this.text=new q0e(new nb(this.layers,this.zoom,a=>/^text/.test(a))),this.icon=new q0e(new nb(this.layers,this.zoom,a=>/^icon/.test(a))),this.glyphOffsetArray=new EZ,this.lineVertexArray=new VU,this.symbolInstances=new zU}calculateGlyphDependencies(a,u,p,m,_){for(let b=0;b0)&&(I.value.kind!=="constant"||I.value.value.length>0),V=N.value.kind!=="constant"||!!N.value.value||Object.keys(N.parameters).length>0,H=b.get("symbol-sort-key");if(this.features=[],!P&&!V)return;let Y=u.iconDependencies,W=u.glyphDependencies,re=u.availableImages,ue=new be(this.zoom);for(let{feature:Te,id:Pe,index:De,sourceLayerIndex:tt}of a){let Ye=_._featureFilter.needGeometry,at=sb(Te,Ye);if(!_._featureFilter.filter(ue,at,p))continue;if(Ye||(at.geometry=t_(Te,p,m)),S&&Te.type!==1&&p.z<=5){let Bt=at.geometry,si=.98078528056,oi=(ei,wi)=>{let vi=dM(ei.x,ei.y,p,1),Ti=dM(wi.x,wi.y,p,1);return o.Q.dot(vi,Ti)=0;for(let oi of _t.sections)if(oi.image)Y[oi.image.namePrimary]=!0;else{let ei=f(_t.toString()),wi=oi.fontStack||Bt,vi=W[wi]=W[wi]||{};this.calculateGlyphDependencies(oi.text,vi,si,this.allowVerticalPlacement,ei)}}}b.get("symbol-placement")==="line"&&(this.features=function(Te){let Pe={},De={},tt=[],Ye=0;function at(Bt){tt.push(Te[Bt]),Ye++}function _t(Bt,si,oi){let ei=De[Bt];return delete De[Bt],De[si]=ei,tt[ei].geometry[0].pop(),tt[ei].geometry[0]=tt[ei].geometry[0].concat(oi[0]),ei}function Mt(Bt,si,oi){let ei=Pe[si];return delete Pe[si],Pe[Bt]=ei,tt[ei].geometry[0].shift(),tt[ei].geometry[0]=oi[0].concat(tt[ei].geometry[0]),ei}function Jt(Bt,si,oi){let ei=oi?si[0][si[0].length-1]:si[0][0];return`${Bt}:${ei.x}:${ei.y}`}for(let Bt=0;BtBt.geometry)}(this.features)),this.sortFeaturesByKey&&this.features.sort((Te,Pe)=>Te.sortKey-Pe.sortKey)}update(a,u,p,m,_){let b=Object.keys(a).length!==0;if(b&&!this.stateDependentLayers.length)return;let S=b?this.stateDependentLayers:this.layers;this.text.programConfigurations.updatePaintArrays(a,u,S,p,m,_),this.icon.programConfigurations.updatePaintArrays(a,u,S,p,m,_)}updateZOffset(){let a=(_,b,S)=>{p+=b,p>_.length&&_.resize(p);for(let I=-b;I<0;I++)_.emplace(I+p,S)},u=(_,b,S)=>{m+=b,m>_.length&&_.resize(m);for(let I=-b;I<0;I++)_.emplace(I+m,S)};if(!this.zOffsetBuffersNeedUpload)return;this.zOffsetBuffersNeedUpload=!1;let p=0,m=0;for(let _=0;_0;if((S>0||I>0)&&(a(this.text.zOffsetVertexArray,S,N),a(this.text.zOffsetVertexArray,I,N)),P){let{placedIconSymbolIndex:V,verticalPlacedIconSymbolIndex:H}=b;V>=0&&u(this.icon.zOffsetVertexArray,M,N),H>=0&&u(this.icon.zOffsetVertexArray,b.numVerticalIconVertices,N)}}this.text.zOffsetVertexBuffer&&this.text.zOffsetVertexBuffer.updateData(this.text.zOffsetVertexArray),this.icon.zOffsetVertexBuffer&&this.icon.zOffsetVertexBuffer.updateData(this.icon.zOffsetVertexArray)}isEmpty(){return this.symbolInstances.length===0&&!this.hasRTLText}uploadPending(){return!this.uploaded||this.text.programConfigurations.needsUpload||this.icon.programConfigurations.needsUpload}upload(a){!this.uploaded&&this.hasDebugData()&&(this.textCollisionBox.upload(a),this.iconCollisionBox.upload(a)),this.text.upload(a,this.sortFeaturesByY,!this.uploaded,this.text.programConfigurations.needsUpload,this.zOffsetBuffersNeedUpload),this.icon.upload(a,this.sortFeaturesByY,!this.uploaded,this.icon.programConfigurations.needsUpload,this.zOffsetBuffersNeedUpload),this.uploaded=!0}destroyDebugData(){this.textCollisionBox.destroy(),this.iconCollisionBox.destroy()}getProjection(){return this.projectionInstance||(this.projectionInstance=lLe(this.projection)),this.projectionInstance}destroy(){this.text.destroy(),this.icon.destroy(),this.hasDebugData()&&this.destroyDebugData()}addToLineVertexArray(a,u){let p=this.lineVertexArray.length;if(a.segment!==void 0)for(let{x:m,y:_}of u)this.lineVertexArray.emplaceBack(m,_);return{lineStartIndex:p,lineLength:this.lineVertexArray.length-p}}addSymbols(a,u,p,m,_,b,S,I,M,N,P,V,H,Y,W,re){let ue=a.indexArray,Te=a.layoutVertexArray,Pe=a.globeExtVertexArray,De=a.segments.prepareSegment(4*u.length,Te,ue,this.canOverlap?b.sortKey:void 0),tt=this.glyphOffsetArray.length,Ye=De.vertexLength,at=this.allowVerticalPlacement&&S===uh.vertical?Math.PI/2:0,_t=b.text&&b.text.sections;for(let Jt=0;Jt=0?u.rightJustifiedTextSymbolIndex:u.centerJustifiedTextSymbolIndex>=0?u.centerJustifiedTextSymbolIndex:u.leftJustifiedTextSymbolIndex>=0?u.leftJustifiedTextSymbolIndex:u.verticalPlacedTextSymbolIndex>=0?u.verticalPlacedTextSymbolIndex:m),b=IM(this.textSizeData,a,_)/cu;return this.tilePixelRatio*b}getSymbolInstanceIconSize(a,u,p){let m=this.icon.placedSymbolArray.get(p),_=IM(this.iconSizeData,a,m);return this.tilePixelRatio*_}_commitDebugCollisionVertexUpdate(a,u,p,m){a.emplaceBack(u,-p,-p,m),a.emplaceBack(u,p,-p,m),a.emplaceBack(u,p,p,m),a.emplaceBack(u,-p,p,m)}_updateTextDebugCollisionBoxes(a,u,p,m,_,b){for(let S=m;S<_;S++){let I=p.get(S),M=this.getSymbolInstanceTextSize(a,b,u,S);this._commitDebugCollisionVertexUpdate(this.textCollisionBox.collisionVertexArrayExt,M,I.padding,b.zOffset)}}_updateIconDebugCollisionBoxes(a,u,p,m,_,b){for(let S=m;S<_;S++){let I=p.get(S),M=this.getSymbolInstanceIconSize(a,u,b.placedIconSymbolIndex);this._commitDebugCollisionVertexUpdate(this.iconCollisionBox.collisionVertexArrayExt,M,I.padding,b.zOffset)}}updateCollisionDebugBuffers(a,u){if(!this.hasDebugData())return;this.hasTextCollisionBoxData()&&this.textCollisionBox.collisionVertexArrayExt.clear(),this.hasIconCollisionBoxData()&&this.iconCollisionBox.collisionVertexArrayExt.clear();let p=cI(this.iconSizeData,a),m=cI(this.textSizeData,a);for(let _=0;_0}hasIconData(){return this.icon.segments.get().length>0}hasDebugData(){return this.textCollisionBox&&this.iconCollisionBox}hasTextCollisionBoxData(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0}hasIconCollisionBoxData(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0}hasIconTextFit(){return this.hasAnyIconTextFit}addIndicesForPlacedSymbol(a,u){let p=a.placedSymbolArray.get(u),m=p.vertexStartIndex+4*p.numGlyphs;for(let _=p.vertexStartIndex;_m[S]-m[I]||_[I]-_[S]),b}getSortedIndexesByZOffset(){if(!this.zOffsetSortDirty)return this.symbolInstanceIndexesSortedZOffset;if(!this.symbolInstanceIndexesSortedZOffset){this.symbolInstanceIndexesSortedZOffset=[];for(let a=0;athis.symbolInstances.get(u).zOffset-this.symbolInstances.get(a).zOffset)}addToSortKeyRanges(a,u){let p=this.sortKeyRanges[this.sortKeyRanges.length-1];p&&p.sortKey===u?p.symbolInstanceEnd=a+1:this.sortKeyRanges.push({sortKey:u,symbolInstanceStart:a,symbolInstanceEnd:a+1})}sortFeatures(a){if(this.sortFeaturesByY&&this.sortedAngle!==a&&!(this.text.segments.get().length>1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(a),this.sortedAngle=a,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(let u of this.symbolInstanceIndexes){let p=this.symbolInstances.get(u);this.featureSortOrder.push(p.featureIndex);let{rightJustifiedTextSymbolIndex:m,centerJustifiedTextSymbolIndex:_,leftJustifiedTextSymbolIndex:b,verticalPlacedTextSymbolIndex:S,placedIconSymbolIndex:I,verticalPlacedIconSymbolIndex:M}=p;m>=0&&this.addIndicesForPlacedSymbol(this.text,m),_>=0&&_!==m&&this.addIndicesForPlacedSymbol(this.text,_),b>=0&&b!==_&&b!==m&&this.addIndicesForPlacedSymbol(this.text,b),S>=0&&this.addIndicesForPlacedSymbol(this.text,S),I>=0&&this.addIndicesForPlacedSymbol(this.icon,I),M>=0&&this.addIndicesForPlacedSymbol(this.icon,M)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}}}An(yX,"SymbolBucket",{omit:["layers","collisionBoxArray","features","compareText"]}),yX.addDynamicAttributes=vX;let Qut=new St({"symbol-placement":new ft(Ge.layout_symbol["symbol-placement"]),"symbol-spacing":new ft(Ge.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new ft(Ge.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new kt(Ge.layout_symbol["symbol-sort-key"]),"symbol-z-order":new ft(Ge.layout_symbol["symbol-z-order"]),"symbol-z-elevate":new ft(Ge.layout_symbol["symbol-z-elevate"]),"icon-allow-overlap":new ft(Ge.layout_symbol["icon-allow-overlap"]),"icon-ignore-placement":new ft(Ge.layout_symbol["icon-ignore-placement"]),"icon-optional":new ft(Ge.layout_symbol["icon-optional"]),"icon-rotation-alignment":new ft(Ge.layout_symbol["icon-rotation-alignment"]),"icon-size":new kt(Ge.layout_symbol["icon-size"]),"icon-text-fit":new kt(Ge.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new kt(Ge.layout_symbol["icon-text-fit-padding"]),"icon-image":new kt(Ge.layout_symbol["icon-image"]),"icon-rotate":new kt(Ge.layout_symbol["icon-rotate"]),"icon-padding":new ft(Ge.layout_symbol["icon-padding"]),"icon-keep-upright":new ft(Ge.layout_symbol["icon-keep-upright"]),"icon-offset":new kt(Ge.layout_symbol["icon-offset"]),"icon-anchor":new kt(Ge.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new ft(Ge.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new ft(Ge.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new ft(Ge.layout_symbol["text-rotation-alignment"]),"text-field":new kt(Ge.layout_symbol["text-field"]),"text-font":new kt(Ge.layout_symbol["text-font"]),"text-size":new kt(Ge.layout_symbol["text-size"]),"text-max-width":new kt(Ge.layout_symbol["text-max-width"]),"text-line-height":new kt(Ge.layout_symbol["text-line-height"]),"text-letter-spacing":new kt(Ge.layout_symbol["text-letter-spacing"]),"text-justify":new kt(Ge.layout_symbol["text-justify"]),"text-radial-offset":new kt(Ge.layout_symbol["text-radial-offset"]),"text-variable-anchor":new ft(Ge.layout_symbol["text-variable-anchor"]),"text-anchor":new kt(Ge.layout_symbol["text-anchor"]),"text-max-angle":new ft(Ge.layout_symbol["text-max-angle"]),"text-writing-mode":new ft(Ge.layout_symbol["text-writing-mode"]),"text-rotate":new kt(Ge.layout_symbol["text-rotate"]),"text-padding":new ft(Ge.layout_symbol["text-padding"]),"text-keep-upright":new ft(Ge.layout_symbol["text-keep-upright"]),"text-transform":new kt(Ge.layout_symbol["text-transform"]),"text-offset":new kt(Ge.layout_symbol["text-offset"]),"text-allow-overlap":new ft(Ge.layout_symbol["text-allow-overlap"]),"text-ignore-placement":new ft(Ge.layout_symbol["text-ignore-placement"]),"text-optional":new ft(Ge.layout_symbol["text-optional"]),visibility:new ft(Ge.layout_symbol.visibility)});var K0e={paint:new St({"icon-opacity":new kt(Ge.paint_symbol["icon-opacity"]),"icon-emissive-strength":new kt(Ge.paint_symbol["icon-emissive-strength"]),"text-emissive-strength":new kt(Ge.paint_symbol["text-emissive-strength"]),"icon-color":new kt(Ge.paint_symbol["icon-color"]),"icon-halo-color":new kt(Ge.paint_symbol["icon-halo-color"]),"icon-halo-width":new kt(Ge.paint_symbol["icon-halo-width"]),"icon-halo-blur":new kt(Ge.paint_symbol["icon-halo-blur"]),"icon-translate":new ft(Ge.paint_symbol["icon-translate"]),"icon-translate-anchor":new ft(Ge.paint_symbol["icon-translate-anchor"]),"icon-image-cross-fade":new kt(Ge.paint_symbol["icon-image-cross-fade"]),"text-opacity":new kt(Ge.paint_symbol["text-opacity"]),"text-color":new kt(Ge.paint_symbol["text-color"],{runtimeType:ah,getOverride:l=>l.textColor,hasOverride:l=>!!l.textColor}),"text-halo-color":new kt(Ge.paint_symbol["text-halo-color"]),"text-halo-width":new kt(Ge.paint_symbol["text-halo-width"]),"text-halo-blur":new kt(Ge.paint_symbol["text-halo-blur"]),"text-translate":new ft(Ge.paint_symbol["text-translate"]),"text-translate-anchor":new ft(Ge.paint_symbol["text-translate-anchor"]),"icon-color-saturation":new ft(Ge.paint_symbol["icon-color-saturation"]),"icon-color-contrast":new ft(Ge.paint_symbol["icon-color-contrast"]),"icon-color-brightness-min":new ft(Ge.paint_symbol["icon-color-brightness-min"]),"icon-color-brightness-max":new ft(Ge.paint_symbol["icon-color-brightness-max"])}),layout:Qut};class cLe{constructor(a){this.type=a.property.overrides?a.property.overrides.runtimeType:io,this.defaultValue=a}evaluate(a){if(a.formattedSection){let u=this.defaultValue.property.overrides;if(u&&u.hasOverride(a.formattedSection))return u.getOverride(a.formattedSection)}return a.feature&&a.featureState?this.defaultValue.evaluate(a.feature,a.featureState):this.defaultValue.property.specification.default}eachChild(a){this.defaultValue.isConstant()||a(this.defaultValue.value._styleExpression.expression)}outputDefined(){return!1}serialize(){return null}}An(cLe,"FormatSectionOverride",{omit:["defaultValue"]});class bX extends Kr{constructor(a,u,p){super(a,K0e,u,p),this._colorAdjustmentMatrix=o.a9.identity([])}recalculate(a,u){super.recalculate(a,u),this.layout.get("icon-rotation-alignment")==="auto"&&(this.layout._values["icon-rotation-alignment"]=this.layout.get("symbol-placement")!=="point"?"map":"viewport"),this.layout.get("text-rotation-alignment")==="auto"&&(this.layout._values["text-rotation-alignment"]=this.layout.get("symbol-placement")!=="point"?"map":"viewport"),this.layout.get("text-pitch-alignment")==="auto"&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")),this.layout.get("icon-pitch-alignment")==="auto"&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment"));let p=this.layout.get("text-writing-mode");if(p){let m=[];for(let _ of p)m.indexOf(_)<0&&m.push(_);this.layout._values["text-writing-mode"]=m}else this.layout._values["text-writing-mode"]=this.layout.get("symbol-placement")==="point"?["horizontal"]:["horizontal","vertical"];this._setPaintOverrides()}getColorAdjustmentMatrix(a,u,p,m){return this._saturation===a&&this._contrast===u&&this._brightnessMin===p&&this._brightnessMax===m||(this._colorAdjustmentMatrix=function(_,b,S,I){_=uP(_),b=rh(b);let M=o.a9.create(),N=_/3,P=1-2*N,V=[P,N,N,0,N,P,N,0,N,N,P,0,0,0,0,1],H=.5-.5*b,Y=I-S;return o.a9.multiply(M,[Y,0,0,0,0,Y,0,0,0,0,Y,0,S,S,S,1],[b,0,0,0,0,b,0,0,0,0,b,0,H,H,H,1]),o.a9.multiply(M,M,V),M}(a,u,p,m),this._saturation=a,this._contrast=u,this._brightnessMin=p,this._brightnessMax=m),this._colorAdjustmentMatrix}getValueAndResolveTokens(a,u,p,m){let _=this.layout.get(a).evaluate(u,{},p,m),b=this._unevaluatedLayout._values[a];return b.isDataDriven()||$y(b.value)||!_?_:function(S,I){return I.replace(/{([^{}]+)}/g,(M,N)=>N in S?String(S[N]):"")}(u.properties,_)}createBucket(a){return new yX(a)}queryRadius(){return 0}queryIntersectsFeature(){return!1}_setPaintOverrides(){for(let a of K0e.paint.overridableProperties){if(!bX.hasPaintOverride(this.layout,a))continue;let u=this.paint.get(a),p=new cLe(u),m=new ew(p,u.property.specification,this.scope,this.options),_=null;_=u.value.kind==="constant"||u.value.kind==="source"?new Ky("source",m):new Wy("composite",m,u.value.zoomStops,u.value._interpolationType),this.paint._values[a]=new zt(u.property,_,u.parameters)}}_handleOverridablePaintPropertyUpdate(a,u,p){return!(!this.layout||u.isDataDriven()||p.isDataDriven())&&bX.hasPaintOverride(this.layout,a)}static hasPaintOverride(a,u){let p=a.get("text-field"),m=K0e.paint.properties[u],_=!1,b=S=>{for(let I of S)if(m.overrides&&m.overrides.hasOverride(I))return void(_=!0)};if(p.value.kind==="constant"&&p.value.value instanceof Yc)b(p.value.value.sections);else if(p.value.kind==="source"){let S=M=>{_||(M instanceof Ep&&yl(M.value)===Ev?b(M.value.sections):M instanceof Py?b(M.sections):M.eachChild(S))},I=p.value;I._styleExpression&&S(I._styleExpression.expression)}return _}getProgramIds(){let a=this.paint.get("icon-opacity").constantOr(1)!==0,u=this.paint.get("text-opacity").constantOr(1)!==0,p=[];return a&&p.push("symbolIcon"),u&&p.push("symbolSDF"),p}getDefaultProgramParams(a,u){return{config:new ib(this,u),overrideFog:!1}}}let Xut=new St({visibility:new ft(Ge.layout_background.visibility)});var Jut={paint:new St({"background-color":new ft(Ge.paint_background["background-color"]),"background-pattern":new ft(Ge.paint_background["background-pattern"]),"background-opacity":new ft(Ge.paint_background["background-opacity"]),"background-emissive-strength":new ft(Ge.paint_background["background-emissive-strength"])}),layout:Xut};let edt=new St({visibility:new ft(Ge.layout_raster.visibility)});var tdt={paint:new St({"raster-opacity":new ft(Ge.paint_raster["raster-opacity"]),"raster-color":new Si(Ge.paint_raster["raster-color"]),"raster-color-mix":new ft(Ge.paint_raster["raster-color-mix"]),"raster-color-range":new ft(Ge.paint_raster["raster-color-range"]),"raster-hue-rotate":new ft(Ge.paint_raster["raster-hue-rotate"]),"raster-brightness-min":new ft(Ge.paint_raster["raster-brightness-min"]),"raster-brightness-max":new ft(Ge.paint_raster["raster-brightness-max"]),"raster-saturation":new ft(Ge.paint_raster["raster-saturation"]),"raster-contrast":new ft(Ge.paint_raster["raster-contrast"]),"raster-resampling":new ft(Ge.paint_raster["raster-resampling"]),"raster-fade-duration":new ft(Ge.paint_raster["raster-fade-duration"]),"raster-emissive-strength":new ft(Ge.paint_raster["raster-emissive-strength"]),"raster-array-band":new ft(Ge.paint_raster["raster-array-band"]),"raster-elevation":new ft(Ge.paint_raster["raster-elevation"])}),layout:edt},W0e=Vr([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]);class Z0e{constructor(a,u,p,m){this.context=a,this.format=p,this.texture=a.gl.createTexture(),this.update(u,m)}update(a,u,p){let{width:m,height:_}=a,{context:b}=this,{gl:S}=b;if(S.bindTexture(S.TEXTURE_2D,this.texture),b.pixelStoreUnpackFlipY.set(!1),b.pixelStoreUnpack.set(1),b.pixelStoreUnpackPremultiplyAlpha.set(this.format===S.RGBA&&(!u||u.premultiply!==!1)),p||this.size&&this.size[0]===m&&this.size[1]===_){let{x:I,y:M}=p||{x:0,y:0};if(a instanceof HTMLImageElement||a instanceof HTMLCanvasElement||a instanceof HTMLVideoElement||a instanceof ImageData||ImageBitmap&&a instanceof ImageBitmap)S.texSubImage2D(S.TEXTURE_2D,0,I,M,S.RGBA,S.UNSIGNED_BYTE,a);else{let N=this.format,P=S.UNSIGNED_BYTE;this.format===S.R32F&&(N=S.RED,P=S.FLOAT),S.texSubImage2D(S.TEXTURE_2D,0,I,M,m,_,N,P,a.data)}}else if(this.size=[m,_],a instanceof HTMLImageElement||a instanceof HTMLCanvasElement||a instanceof HTMLVideoElement||a instanceof ImageData||ImageBitmap&&a instanceof ImageBitmap){let I=this.format;this.format===S.R8&&(I=S.RED),S.texImage2D(S.TEXTURE_2D,0,this.format,I,S.UNSIGNED_BYTE,a)}else{let I=this.format,M=this.format,N=S.UNSIGNED_BYTE;this.format===S.DEPTH_COMPONENT&&(I=S.DEPTH_COMPONENT16,N=S.UNSIGNED_SHORT),this.format===S.R8&&(M=S.RED),this.format===S.R32F&&(N=S.FLOAT,M=S.RED),S.texImage2D(S.TEXTURE_2D,0,I,m,_,0,M,N,a.data)}this.useMipmap=!!(u&&u.useMipmap),this.useMipmap&&S.generateMipmap(S.TEXTURE_2D)}bind(a,u,p=!1){let{context:m}=this,{gl:_}=m;_.bindTexture(_.TEXTURE_2D,this.texture),a!==this.minFilter&&(_.texParameteri(_.TEXTURE_2D,_.TEXTURE_MAG_FILTER,a),_.texParameteri(_.TEXTURE_2D,_.TEXTURE_MIN_FILTER,this.useMipmap&&!p?a===_.NEAREST?_.NEAREST_MIPMAP_NEAREST:_.LINEAR_MIPMAP_LINEAR:a),this.minFilter=a),u!==this.wrapS&&(_.texParameteri(_.TEXTURE_2D,_.TEXTURE_WRAP_S,u),_.texParameteri(_.TEXTURE_2D,_.TEXTURE_WRAP_T,u),this.wrapS=u)}bindExtraParam(a,u,p,m){let{context:_}=this,{gl:b}=_;b.bindTexture(b.TEXTURE_2D,this.texture),u!==this.magFilter&&(b.texParameteri(b.TEXTURE_2D,b.TEXTURE_MAG_FILTER,u),this.magFilter=u),a!==this.minFilter&&(b.texParameteri(b.TEXTURE_2D,b.TEXTURE_MIN_FILTER,this.useMipmap?a===b.NEAREST?b.NEAREST_MIPMAP_NEAREST:b.LINEAR_MIPMAP_LINEAR:a),this.minFilter=a),p!==this.wrapS&&(b.texParameteri(b.TEXTURE_2D,b.TEXTURE_WRAP_S,p),this.wrapS=p),m!==this.wrapT&&(b.texParameteri(b.TEXTURE_2D,b.TEXTURE_WRAP_T,m),this.wrapT=m)}destroy(){let{gl:a}=this.context;a.deleteTexture(this.texture),this.texture=null}}class xX{constructor(a,u){this.context=a,this.texture=u}bind(a,u){let{context:p}=this,{gl:m}=p;m.bindTexture(m.TEXTURE_2D,this.texture),a!==this.minFilter&&(m.texParameteri(m.TEXTURE_2D,m.TEXTURE_MAG_FILTER,a),m.texParameteri(m.TEXTURE_2D,m.TEXTURE_MIN_FILTER,a),this.minFilter=a),u!==this.wrapS&&(m.texParameteri(m.TEXTURE_2D,m.TEXTURE_WRAP_S,u),m.texParameteri(m.TEXTURE_2D,m.TEXTURE_WRAP_T,u),this.wrapS=u)}}function wX(l,a,u,p,m,_,b,S){let I=[l,a,1,u,p,1,m,_,1],M=[b,S,1],N=o.ct.adjoint([],I),[P,V,H]=o.Q.transformMat3(M,M,N);return o.ct.multiply(I,I,[P,0,0,0,V,0,0,0,H])}function uLe(l,a,u,p,m,_,b,S){let I=function(M,N,P,V,H,Y,W,re){let ue=wX(0,0,1,0,1,1,0,1),Te=wX(M,N,P,V,H,Y,W,re),Pe=o.ct.adjoint([],ue);return o.ct.multiply(Te,Te,Pe)}(l,a,u,p,m,_,b,S);return[I[2]/I[8]/dn,I[5]/I[8]/dn]}function CX(l){return[l[0],Math.min(Math.max(l[1],-bl),bl)]}class dLe extends Cv{constructor(a,u,p,m){super(),this.id=a,this.dispatcher=p,this.coordinates=u.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.onNorthPole=!1,this.onSouthPole=!1,this.setEventedParent(m),this.options=u,this._dirty=!1}load(a,u){if(this._loaded=u||!1,this.fire(new xs("dataloading",{dataType:"source"})),this.url=this.options.url,!this.url)return a&&(this.coordinates=a),this._loaded=!0,void this._finishLoading();this._imageRequest=sE(this.map._requestManager.transformRequest(this.url,A1.Image),(p,m)=>{this._imageRequest=null,this._loaded=!0,p?this.fire(new hE(p)):m&&(this.image=m instanceof HTMLImageElement?bf.getImageData(m):m,this._dirty=!0,this.width=this.image.width,this.height=this.image.height,a&&(this.coordinates=a),this._finishLoading())})}loaded(){return this._loaded}updateImage(a){return a.url?(this._imageRequest&&a.url!==this.options.url&&(this._imageRequest.cancel(),this._imageRequest=null),this.options.url=a.url,this.load(a.coordinates,this._loaded),this):this}setTexture(a){if(!(a.handle instanceof WebGLTexture))throw new Error("The provided handle is not a WebGLTexture instance");return this.texture=new xX(this.map.painter.context,a.handle),this.width=a.dimensions[0],this.height=a.dimensions[1],this._dirty=!1,this._loaded=!0,this._finishLoading(),this}_finishLoading(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new xs("data",{dataType:"source",sourceDataType:"metadata"})))}onAdd(a){this.map=a,this.load()}onRemove(){this._imageRequest&&(this._imageRequest.cancel(),this._imageRequest=null),!this.texture||this.texture instanceof xX||this.texture.destroy(),this.boundsBuffer&&(this.boundsBuffer.destroy(),this.elevatedGlobeVertexBuffer&&this.elevatedGlobeVertexBuffer.destroy(),this.elevatedGlobeIndexBuffer&&this.elevatedGlobeIndexBuffer.destroy())}setCoordinates(a){if(this.coordinates=a,this._boundsArray=void 0,this._unsupportedCoords=!1,!a.length)return this;this.onNorthPole=!1,this.onSouthPole=!1;let u=a[0][1],p=a[0][1];for(let _ of a)_[1]>p&&(p=_[1]),_[1]bl?this.onNorthPole=!0:m<-bl&&(this.onSouthPole=!0),!this.onNorthPole&&!this.onSouthPole){let _=a.map(lu.fromLngLat);this.tileID=function(b){let S=1/0,I=1/0,M=-1/0,N=-1/0;for(let W of b)S=Math.min(S,W.x),I=Math.min(I,W.y),M=Math.max(M,W.x),N=Math.max(N,W.y);let P=Math.max(M-S,N-I),V=Math.max(0,Math.floor(-Math.log(P)/Math.LN2)),H=Math.pow(2,V),Y=Math.floor((S+M)/2*H);return Y>1&&(Y-=1),new sw(V,Y,Math.floor((I+N)/2*H))}(_),this.minzoom=this.maxzoom=this.tileID.z}return this.fire(new xs("data",{dataType:"source",sourceDataType:"content"})),this}_clear(){this._boundsArray=void 0,this._unsupportedCoords=!1}_prepareData(a){for(let ue in this.tiles){let Te=this.tiles[ue];Te.state!=="loaded"&&(Te.state="loaded",Te.texture=this.texture)}if(this._boundsArray||this.onNorthPole||this.onSouthPole||this._unsupportedCoords)return;let u=uj(new sw(0,0,0),this.map.transform.projection),p=[u.projection.project(this.coordinates[0][0],this.coordinates[0][1]),u.projection.project(this.coordinates[1][0],this.coordinates[1][1]),u.projection.project(this.coordinates[2][0],this.coordinates[2][1]),u.projection.project(this.coordinates[3][0],this.coordinates[3][1])];if(!function(ue){let Te=ue[1].x-ue[0].x,Pe=ue[1].y-ue[0].y,De=ue[2].x-ue[1].x,tt=ue[2].y-ue[1].y,Ye=ue[3].x-ue[2].x,at=ue[3].y-ue[2].y,_t=ue[0].x-ue[3].x,Mt=ue[0].y-ue[3].y,Jt=Te*tt-De*Pe,Bt=De*at-Ye*tt,si=Ye*Mt-_t*at,oi=_t*Pe-Te*Mt;return Jt>0&&Bt>0&&si>0&&oi>0||Jt<0&&Bt<0&&si<0&&oi<0}(p))return console.warn("Image source coordinates are defining non-convex area in the Mercator projection"),void(this._unsupportedCoords=!0);let m=uj(this.tileID,this.map.transform.projection),[_,b,S,I]=this.coordinates.map(ue=>{let Te=m.projection.project(ue[0],ue[1]);return nLe(m,Te)._round()});this.perspectiveTransform=uLe(_.x,_.y,b.x,b.y,S.x,S.y,I.x,I.y);let M=this._boundsArray=new $c;M.emplaceBack(_.x,_.y,0,0),M.emplaceBack(b.x,b.y,dn,0),M.emplaceBack(I.x,I.y,0,dn),M.emplaceBack(S.x,S.y,dn,dn),this.boundsBuffer&&(this.boundsBuffer.destroy(),this.elevatedGlobeVertexBuffer&&this.elevatedGlobeVertexBuffer.destroy(),this.elevatedGlobeIndexBuffer&&this.elevatedGlobeIndexBuffer.destroy()),this.boundsBuffer=a.createVertexBuffer(M,W0e.members),this.boundsSegments=cl.simpleSegment(0,0,4,2);let N=[],P=[CX((V=this.coordinates)[0]),CX(V[1]),CX(V[2]),CX(V[3])];var V;let[H,Y,W,re]=function(ue){let Te=ue[0][0],Pe=Te,De=ue[0][1],tt=De;for(let Ye=1;YePe&&(Pe=ue[Ye][0]),ue[Ye][1]tt&&(tt=ue[Ye][1]);return[Te,De,Pe-Te,tt-De]}(P);{let ue=new $c,[Te,Pe,De,tt]=function(Ti){let Ei=Ti[0].x,ci=Ei,zn=Ti[0].y,Dn=zn;for(let Ri=1;Rici&&(ci=Ti[Ri].x),Ti[Ri].yDn&&(Dn=Ti[Ri].y);return[Ei,zn,ci-Ei,Dn-zn]}(p),Ye=Ti=>[(Ti.x-Te)/De,(Ti.y-Pe)/tt],[at,_t,Mt,Jt]=p.map(Ye),Bt=function(Ti,Ei,ci,zn,Dn,Ri,cr,Zn){let Un=wX(0,0,1,0,1,1,0,1),Ni=wX(Ti,Ei,ci,zn,Dn,Ri,cr,Zn),ar=o.ct.adjoint([],Ni);return o.ct.multiply(Un,Un,ar)}(at[0],at[1],_t[0],_t[1],Mt[0],Mt[1],Jt[0],Jt[1]);this.elevatedGlobePerspectiveTransform=uLe(at[0],at[1],_t[0],_t[1],Mt[0],Mt[1],Jt[0],Jt[1]);let si=(Ti,Ei)=>{N.push(Ti.lng);let ci=Math.round((Ti.lng-H)/W*dn),zn=Math.round((Ti.lat-Y)/re*dn),Dn=Ye(Ei),Ri=o.Q.transformMat3([],[Dn[0],Dn[1],1],Bt),cr=Math.round(Ri[0]/Ri[2]*dn),Zn=Math.round(Ri[1]/Ri[2]*dn);ue.emplaceBack(ci,zn,cr,Zn)},oi=p[3].x-p[0].x,ei=p[3].y-p[0].y,wi=p[2].x-p[1].x,vi=p[2].y-p[1].y;for(let Ti=0;Ti<65;Ti++){let Ei=Ti/64,ci=[p[0].x+Ei*oi,p[0].y+Ei*ei],zn=[p[1].x+Ei*wi,p[1].y+Ei*vi],Dn=zn[0]-ci[0],Ri=zn[1]-ci[1];for(let cr=0;cr<65;cr++){let Zn=cr/64,Un={x:ci[0]+Dn*Zn,y:ci[1]+Ri*Zn,z:0};si(u.projection.unproject(Un.x,Un.y),Un)}}this.elevatedGlobeVertexBuffer=a.createVertexBuffer(ue,W0e.members)}{this.maxLongitudeTriangleSize=0;let ue=[],Te=new vc,Pe=(De,tt,Ye)=>{Te.emplaceBack(De,tt,Ye);let at=N[De],_t=N[tt],Mt=N[Ye],Jt=Math.min(Math.min(at,_t),Mt),Bt=Math.max(Math.max(at,_t),Mt)-Jt;Bt>this.maxLongitudeTriangleSize&&(this.maxLongitudeTriangleSize=Bt),ue.push(Jt+Bt/2)};for(let De=0;De<64;De++)for(let tt=0;tt<64;tt++){let Ye=65*De+tt,at=Ye+1,_t=Ye+65,Mt=_t+1;Pe(Ye,_t,at),Pe(at,_t,Mt)}[ue,Te]=function(De,tt){let Ye=Array.from({length:De.length},(Mt,Jt)=>Jt);Ye.sort((Mt,Jt)=>De[Mt]-De[Jt]);let at=[],_t=new vc;for(let Mt=0;MtN+360*Math.round((P-N)/360))(a+180,p[0]),_=new cl,b=(N,P)=>{_.segments.push({vertexOffset:0,primitiveOffset:N,vertexLength:u.segments[0].vertexLength,primitiveLength:P,sortKey:void 0,vaos:{}})},S=.51*this.maxLongitudeTriangleSize;if(Math.abs(p[0]-m)<=S){let N=tE(p,0,p.length,m+S);return N===p.length||b(N,gv(p,N+1,p.length,m+360-S)-N),_}m0){let _=function(b,S){let I=S.worldSize,M=Nd(1,0)*I*aw(S.center.lat,S.zoom)/mM(I),N=Nd(1,S.center.lat)*I,P=o.a9.identity([]);return o.a9.rotateY(P,P,Bo(S.center.lng)),o.a9.rotateX(P,P,Bo(S.center.lat)),o.a9.translate(P,P,[0,0,Rd]),o.a9.scale(P,P,[M,M,M*N]),o.a9.translate(P,P,[S.point.x-.5*I,S.point.y-.5*I,0]),o.a9.multiply(P,P,b),o.a9.multiply(P,S.globeMatrix,P)}(l,a);return function(b,S,I){let M=(Y,W,re)=>{let ue=o.Q.length(Y),Te=o.Q.length(W),Pe=n_(Y,W,re);return o.Q.scale(Pe,Pe,1/o.Q.length(Pe)*Jr(ue,Te,re))},N=M([b[0],b[1],b[2]],[S[0],S[1],S[2]],I),P=M([b[4],b[5],b[6]],[S[4],S[5],S[6]],I),V=M([b[8],b[9],b[10]],[S[8],S[9],S[10]],I),H=n_([b[12],b[13],b[14]],[S[12],S[13],S[14]],I);return[N[0],N[1],N[2],0,P[0],P[1],P[2],0,V[0],V[1],V[2],0,H[0],H[1],H[2],1]}(m,_,p)}return m}function yLe(l,a,u,p){let m=Ta.projectAabbCorners(p,u),_=Number.MAX_VALUE,b=-1;for(let M=0;Mnew cn(m[M][0],m[M][1]),I;switch(b){case 0:case 6:I=[S(1),S(5),S(4),S(7),S(3),S(2),S(1)];break;case 1:case 7:I=[S(0),S(4),S(5),S(6),S(2),S(3),S(0)];break;case 3:case 5:I=[S(1),S(0),S(4),S(7),S(6),S(2),S(1)];break;default:I=[S(1),S(5),S(6),S(7),S(3),S(0),S(1)]}if(t6(l,I))return _}let cdt=Vr([{name:"a_pos_3f",components:3,type:"Float32"}]),udt=Vr([{name:"a_color_3f",components:3,type:"Float32"}]),ddt=Vr([{name:"a_color_4f",components:4,type:"Float32"}]),hdt=Vr([{name:"a_uv_2f",components:2,type:"Float32"}]),pdt=Vr([{name:"a_normal_3f",components:3,type:"Float32"}]),fdt=Vr([{name:"a_normal_matrix0",components:4,type:"Float32"},{name:"a_normal_matrix1",components:4,type:"Float32"},{name:"a_normal_matrix2",components:4,type:"Float32"},{name:"a_normal_matrix3",components:4,type:"Float32"}]),mdt=Vr([{name:"a_pbr",components:4,type:"Uint16"},{name:"a_heightBasedEmissiveStrength",components:3,type:"Float32"}]);class IX{constructor(a,u,p,m){this.message=(a?`${a}: `:"")+p,m&&(this.identifier=m),u!=null&&u.__line__&&(this.line=u.__line__)}}function bLe(l,a){let u=l.indexOf("://")===-1;try{return new URL(l,u&&a?"http://example.com":void 0),!0}catch{return!1}}class xLe{constructor(a,u){this.feature=a,this.instancedDataOffset=u,this.instancedDataCount=0,this.rotation=[0,0,0],this.scale=[1,1,1],this.translation=[0,0,0]}}class wLe{constructor(){this.instancedDataArray=new PU,this.instancesEvaluatedElevation=[],this.features=[],this.idToFeaturesIndex={}}}class J0e{constructor(a){this.zoom=a.zoom,this.canonical=a.canonical,this.layers=a.layers,this.layerIds=this.layers.map(u=>u.fqid),this.projection=a.projection,this.index=a.index,this.hasZoomDependentProperties=this.layers[0].isZoomDependent(),this.stateDependentLayerIds=this.layers.filter(u=>u.isStateDependent()).map(u=>u.id),this.hasPattern=!1,this.instancesPerModel={},this.validForExaggeration=0,this.maxVerticalOffset=0,this.maxScale=0,this.maxHeight=0,this.lookupDim=this.zoom>this.canonical.z?256:this.zoom>15?75:100,this.instanceCount=0,this.terrainElevationMin=0,this.terrainElevationMax=0,this.validForDEMTile={id:null,timestamp:0},this.modelUris=[],this.modelsRequested=!1}populate(a,u,p,m){this.tileToMeter=qP(p);let _=this.layers[0]._featureFilter.needGeometry;this.lookup=new Uint8Array(this.lookupDim*this.lookupDim);for(let{feature:b,id:S,index:I,sourceLayerIndex:M}of a){let N=S??(b.properties&&b.properties.hasOwnProperty("id")?b.properties.id:void 0),P=sb(b,_);if(!this.layers[0]._featureFilter.filter(new be(this.zoom),P,p))continue;let V={id:N,sourceLayerIndex:M,index:I,geometry:_?P.geometry:t_(b,p,m),properties:b.properties,type:b.type,patterns:{}},H=this.addFeature(V,V.geometry,P);H&&u.featureIndex.insert(b,V.geometry,I,M,this.index,this.instancesPerModel[H].instancedDataArray.length,dn/32)}this.lookup=null}update(a,u,p,m){for(let _ in this.instancesPerModel){let b=this.instancesPerModel[_];for(let S in a)b.idToFeaturesIndex.hasOwnProperty(S)&&(this.evaluate(b.features[b.idToFeaturesIndex[S]],a[S],b,!0),this.uploaded=!1)}this.maxHeight=0}updateZoomBasedPaintProperties(){if(!this.hasZoomDependentProperties)return!1;let a=!1;for(let u in this.instancesPerModel){let p=this.instancesPerModel[u];for(let m of p.features){let _=this.layers[0],b=m.feature,S=this.canonical,I=_.paint.get("model-rotation").evaluate(b,{},S),M=_.paint.get("model-scale").evaluate(b,{},S),N=_.paint.get("model-translation").evaluate(b,{},S);o.Q.exactEquals(m.rotation,I)&&o.Q.exactEquals(m.scale,M)&&o.Q.exactEquals(m.translation,N)||(this.evaluate(m,m.featureStates,p,!0),a=!0)}}return a}isEmpty(){for(let a in this.instancesPerModel)if(this.instancesPerModel[a].instancedDataArray.length!==0)return!1;return!0}uploadPending(){return!this.uploaded}upload(a){if(!this.uploaded)for(let u in this.instancesPerModel){let p=this.instancesPerModel[u];p.instancedDataArray.length<0||p.instancedDataArray.length===0||(p.instancedDataBuffer?p.instancedDataBuffer.updateData(p.instancedDataArray):p.instancedDataBuffer=a.createVertexBuffer(p.instancedDataArray,fdt.members,!0,void 0,this.instanceCount))}this.uploaded=!0}destroy(){for(let u in this.instancesPerModel){let p=this.instancesPerModel[u];p.instancedDataArray.length!==0&&p.instancedDataBuffer&&p.instancedDataBuffer.destroy()}let a=this.layers[0].modelManager;if(a&&this.modelUris)for(let u of this.modelUris)a.removeModel(u,"")}addFeature(a,u,p){let m=this.layers[0],_=m.layout.get("model-id").evaluate(p,{},this.canonical);if(!_)return ja(`modelId is not evaluated for layer ${m.id} and it is not going to get rendered.`),_;bLe(_,!1)&&(this.modelUris.includes(_)||this.modelUris.push(_)),this.instancesPerModel[_]||(this.instancesPerModel[_]=new wLe);let b=this.instancesPerModel[_],S=b.instancedDataArray,I=new xLe(p,S.length);for(let M of u)for(let N of M){if(N.x<0||N.x>=dn||N.y<0||N.y>=dn)continue;let P=(this.lookupDim-1)/dn,V=this.lookupDim*(N.y*P|0)+N.x*P|0;if(this.lookup){if(this.lookup[V]!==0)continue;this.lookup[V]=1}this.instanceCount++;let H=S.length;S.resize(H+1),b.instancesEvaluatedElevation.push(0),S.float32[16*H]=N.x,S.float32[16*H+1]=N.y}return I.instancedDataCount=b.instancedDataArray.length-I.instancedDataOffset,I.instancedDataCount>0&&(a.id&&(b.idToFeaturesIndex[a.id]=b.features.length),b.features.push(I),this.evaluate(I,{},b,!1)),_}getModelUris(){return this.modelUris}evaluate(a,u,p,m){let _=this.layers[0],b=a.feature,S=this.canonical,I=a.rotation=_.paint.get("model-rotation").evaluate(b,u,S),M=a.scale=_.paint.get("model-scale").evaluate(b,u,S),N=a.translation=_.paint.get("model-translation").evaluate(b,u,S),P=_.paint.get("model-color").evaluate(b,u,S);P.a=_.paint.get("model-color-mix-intensity").evaluate(b,u,S);let V=[];this.maxVerticalOffset10?this.tileToMeter:qP(S,Pe)),ue[re+4]=N[0],ue[re+5]=N[1],ue[re+6]=N[2]+Te,ue[re+7]=V[0],ue[re+8]=V[1],ue[re+9]=V[2],ue[re+10]=V[4],ue[re+11]=V[5],ue[re+12]=V[6],ue[re+13]=V[8],ue[re+14]=V[9],ue[re+15]=V[10],p.instancesEvaluatedElevation[W]=N[2]}}}An(J0e,"ModelBucket",{omit:["layers"]}),An(wLe,"PerModelAttributes"),An(xLe,"ModelFeature");let gdt=new St({visibility:new ft(Ge.layout_model.visibility),"model-id":new kt(Ge.layout_model["model-id"])});var _dt={paint:new St({"model-opacity":new ft(Ge.paint_model["model-opacity"]),"model-rotation":new kt(Ge.paint_model["model-rotation"]),"model-scale":new kt(Ge.paint_model["model-scale"]),"model-translation":new kt(Ge.paint_model["model-translation"]),"model-color":new kt(Ge.paint_model["model-color"]),"model-color-mix-intensity":new kt(Ge.paint_model["model-color-mix-intensity"]),"model-type":new ft(Ge.paint_model["model-type"]),"model-cast-shadows":new ft(Ge.paint_model["model-cast-shadows"]),"model-receive-shadows":new ft(Ge.paint_model["model-receive-shadows"]),"model-ambient-occlusion-intensity":new ft(Ge.paint_model["model-ambient-occlusion-intensity"]),"model-emissive-strength":new kt(Ge.paint_model["model-emissive-strength"]),"model-roughness":new kt(Ge.paint_model["model-roughness"]),"model-height-based-emissive-strength-multiplier":new kt(Ge.paint_model["model-height-based-emissive-strength-multiplier"]),"model-cutoff-fade-range":new ft(Ge.paint_model["model-cutoff-fade-range"]),"model-front-cutoff":new ft(Ge.paint_model["model-front-cutoff"])}),layout:gdt};let OM=64,VF={CoordinateSpaceTile:1,CoordinateSpaceYUp:2,HasMapboxMeshFeatures:4,HasMeshoptCompression:8};function CLe(l,a,u,p,m,_,b,S,I,M=!1){let N=u.zoom,P=u.project(p),V=aw(p.lat,N),H=1/V;o.a9.identity(l),o.a9.translate(l,l,[P.x+b[0]*H,P.y+b[1]*H,b[2]]);let Y=1,W=1,re=u.worldSize;if(M){if(u.projection.name==="mercator"){let De=0;u.elevation&&(De=u.elevation.getAtPointOrZero(new lu(P.x/re,P.y/re),0));let tt=o.aa.transformMat4([],[P.x,P.y,De,1],u.projMatrix)[3]/u.cameraToCenterDistance;Y=tt,W=tt*aw(u.center.lat,N)}else if(u.projection.name==="globe"){let De=X0e(l,u),tt=o.a9.multiply([],u.projMatrix,De),Ye=[0,0,0,1];o.aa.transformMat4(Ye,Ye,tt);let at=Ye[3]/u.cameraToCenterDistance,_t=zh(N),Mt=u.projection.pixelsPerMeter(p.lat,re)*aw(p.lat,N),Jt=u.projection.pixelsPerMeter(u.center.lat,re)*aw(u.center.lat,N);Y=at/Jr(Mt,KU(u.center.lat),_t),W=at*V/Mt,Y*=Jt,W*=Jt}}else Y=H;o.a9.scale(l,l,[Y,Y,W]);let ue=[...l],Te=a.orientation,Pe=[];if(vLe(Pe,[Te[0]+m[0],Te[1]+m[1],Te[2]+m[2]],_),o.a9.multiply(l,ue,Pe),S&&u.elevation){let De=0,tt=[];if(I&&u.elevation){De=function(_t,Mt,Jt,Bt,si){let oi=Mt.elevation;if(!oi)return 0;let ei=Ta.projectAabbCorners(Jt,Bt),wi=Nd(1,si.lat)*Mt.worldSize,vi=function(ar,Wr){let Er=[0,0,1],no=[{corners:[0,1,3,2],dotProductWithUp:0},{corners:[1,5,2,6],dotProductWithUp:0},{corners:[0,4,1,5],dotProductWithUp:0},{corners:[2,6,3,7],dotProductWithUp:0},{corners:[4,7,5,6],dotProductWithUp:0},{corners:[0,3,4,7],dotProductWithUp:0}];for(let Zr of no){let xo=ar[Zr.corners[0]],vr=ar[Zr.corners[1]],Ws=ar[Zr.corners[2]],js=[vr[0]-xo[0],vr[1]-xo[1],Wr*(vr[2]-xo[2])],ds=o.Q.cross(js,js,[Ws[0]-xo[0],Ws[1]-xo[1],Wr*(Ws[2]-xo[2])]);o.Q.normalize(ds,ds),Zr.dotProductWithUp=o.Q.dot(ds,Er)}return no.sort((Zr,xo)=>Zr.dotProductWithUp-xo.dotProductWithUp),no[0].corners}(ei,wi),Ti=ei[vi[0]],Ei=ei[vi[1]],ci=ei[vi[2]],zn=ei[vi[3]],Dn=oi.getAtPointOrZero(new lu(Ti[0]/Mt.worldSize,Ti[1]/Mt.worldSize),0),Ri=oi.getAtPointOrZero(new lu(Ei[0]/Mt.worldSize,Ei[1]/Mt.worldSize),0),cr=oi.getAtPointOrZero(new lu(ci[0]/Mt.worldSize,ci[1]/Mt.worldSize),0),Zn=oi.getAtPointOrZero(new lu(zn[0]/Mt.worldSize,zn[1]/Mt.worldSize),0),Un=(Dn+Zn)/2,Ni=(Ri+cr)/2;return Un>Ni?Ri=a.gl.NEAREST_MIPMAP_NEAREST}),l.uploaded=!0,l.image=null)}function vdt(l,a,u){l.indexBuffer=a.createIndexBuffer(l.indexArray,!1,!0),l.vertexBuffer=a.createVertexBuffer(l.vertexArray,cdt.members,!1,!0),l.normalArray&&(l.normalBuffer=a.createVertexBuffer(l.normalArray,pdt.members,!1,!0)),l.texcoordArray&&(l.texcoordBuffer=a.createVertexBuffer(l.texcoordArray,hdt.members,!1,!0)),l.colorArray&&(l.colorBuffer=a.createVertexBuffer(l.colorArray,(l.colorArray.bytesPerElement===12?udt:ddt).members,!1,!0)),l.featureArray&&(l.pbrBuffer=a.createVertexBuffer(l.featureArray,mdt.members,!0)),l.segments=cl.simpleSegment(0,0,l.vertexArray.length,l.indexArray.length);let p=l.material;p.pbrMetallicRoughness.baseColorTexture&&mj(p.pbrMetallicRoughness.baseColorTexture,a),p.pbrMetallicRoughness.metallicRoughnessTexture&&mj(p.pbrMetallicRoughness.metallicRoughnessTexture,a),p.normalTexture&&mj(p.normalTexture,a),p.occlusionTexture&&mj(p.occlusionTexture,a,u),p.emissionTexture&&mj(p.emissionTexture,a)}function eye(l,a,u){if(l.meshes)for(let p of l.meshes)vdt(p,a,u);if(l.children)for(let p of l.children)eye(p,a,u)}function TX(l){if(l.meshes)for(let a of l.meshes)a.indexArray.destroy(),a.vertexArray.destroy(),a.colorArray&&a.colorArray.destroy(),a.normalArray&&a.normalArray.destroy(),a.texcoordArray&&a.texcoordArray.destroy(),a.featureArray&&a.featureArray.destroy();if(l.children)for(let a of l.children)TX(a)}function tye(l){if(l.meshes)for(let u of l.meshes)u.vertexBuffer&&(u.vertexBuffer.destroy(),u.indexBuffer.destroy(),u.normalBuffer&&u.normalBuffer.destroy(),u.texcoordBuffer&&u.texcoordBuffer.destroy(),u.colorBuffer&&u.colorBuffer.destroy(),u.pbrBuffer&&u.pbrBuffer.destroy(),u.segments.destroy(),u.material&&((a=u.material).pbrMetallicRoughness.baseColorTexture&&a.pbrMetallicRoughness.baseColorTexture.gfxTexture&&a.pbrMetallicRoughness.baseColorTexture.gfxTexture.destroy(),a.pbrMetallicRoughness.metallicRoughnessTexture&&a.pbrMetallicRoughness.metallicRoughnessTexture.gfxTexture&&a.pbrMetallicRoughness.metallicRoughnessTexture.gfxTexture.destroy(),a.normalTexture&&a.normalTexture.gfxTexture&&a.normalTexture.gfxTexture.destroy(),a.emissionTexture&&a.emissionTexture.gfxTexture&&a.emissionTexture.gfxTexture.destroy(),a.occlusionTexture&&a.occlusionTexture.gfxTexture&&a.occlusionTexture.gfxTexture.destroy()));var a;if(l.children)for(let u of l.children)tye(u)}class ydt{constructor(a){this._callback=a,this._triggered=!1,typeof MessageChannel<"u"&&(this._channel=new MessageChannel,this._channel.port2.onmessage=()=>{this._triggered=!1,this._callback()})}trigger(){this._triggered||(this._triggered=!0,this._channel?this._channel.port1.postMessage(!0):setTimeout(()=>{this._triggered=!1,this._callback()},0))}remove(){this._channel=void 0,this._callback=()=>{}}}class bdt{constructor(){this.tasks={},this.taskQueue=[],b1(["process"],this),this.invoker=new ydt(this.process),this.nextId=0}add(a,u){let p=this.nextId++,m=function({type:_,isSymbolTile:b,zoom:S}){return S=S||0,_==="message"?0:_!=="maybePrepare"||b?_!=="parseTile"||b?_==="parseTile"&&b?300-S:_==="maybePrepare"&&b?400-S:500:200-S:100-S}(u);if(m===0){Cp();try{a()}finally{}return null}return this.tasks[p]={fn:a,metadata:u,priority:m,id:p},this.taskQueue.push(p),this.invoker.trigger(),{cancel:()=>{delete this.tasks[p]}}}process(){Cp();try{if(this.taskQueue=this.taskQueue.filter(p=>!!this.tasks[p]),!this.taskQueue.length)return;let a=this.pick();if(a===null)return;let u=this.tasks[a];if(delete this.tasks[a],this.taskQueue.length&&this.invoker.trigger(),!u)return;u.fn()}finally{}}pick(){let a=null,u=1/0;for(let m=0;m{p&&delete this.callbacks[S],this.target.postMessage({id:S,type:"",targetMapId:m,sourceMapId:this.mapId})}}}receive(a){let u=a.data,p=u.id;if(p&&(!u.targetMapId||this.mapId===u.targetMapId))if(u.type===""){let m=this.cancelCallbacks[p];delete this.cancelCallbacks[p],m&&m.cancel()}else if(u.mustQueue||Cp()){let m=this.callbacks[p],_=this.scheduler.add(()=>this.processTask(p,u),m&&m.metadata||{type:"message"});_&&(this.cancelCallbacks[p]=_)}else this.processTask(p,u)}processTask(a,u){if(delete this.cancelCallbacks[a],u.type===""){let p=this.callbacks[a];delete this.callbacks[a],p&&(u.error?p(v(u.error)):p(null,v(u.data)))}else{let p=new Set,m=u.hasCallback?(b,S)=>{this.target.postMessage({id:a,type:"",sourceMapId:this.mapId,error:b?iw(b):null,data:iw(S,p)},p)}:b=>{},_=v(u.data);if(this.parent[u.type])this.parent[u.type](u.sourceMapId,_,m);else if(this.parent.getWorkerSource){let b=u.type.split(".");this.parent.getWorkerSource(u.sourceMapId,b[0],_.source,_.scope)[b[1]](_,m)}else m(new Error(`Could not find function ${u.type}`))}}remove(){this.scheduler.remove(),this.target.removeEventListener("message",this.receive,!1)}}let iye=(()=>{class l{constructor(u,p){this.workerPool=u,this.actors=[],this.currentActor=0,this.id=Wo();let m=this.workerPool.acquire(this.id);for(let _=0;_{this.ready=!0})}broadcast(u,p,m){QS(this.actors,(_,b)=>{_.send(u,p,b)},m=m||function(){})}getActor(){return this.currentActor=(this.currentActor+1)%this.actors.length,this.actors[this.currentActor]}remove(){this.actors.forEach(u=>{u.remove()}),this.actors=[],this.workerPool.release(this.id)}}return l.Actor=SLe,l})();var gj={workerUrl:"",workerClass:null,workerParams:void 0};function xdt(){return gj.workerClass!=null?new gj.workerClass:new self.Worker(gj.workerUrl,gj.workerParams)}let nye="mapboxgl_preloaded_worker_pool";class _j{constructor(){this.active={}}acquire(a){if(!this.workers)for(this.workers=[];this.workers.length<_j.workerCount;)this.workers.push(new xdt);return this.active[a]=!0,this.workers.slice()}release(a){delete this.active[a],this.workers&&this.numActive()===0&&(this.workers.forEach(u=>{u.terminate()}),this.workers=null)}isPreloaded(){return!!this.active[nye]}numActive(){return Object.keys(this.active).length}}let vj;function AX(){return vj||(vj=new _j),vj}_j.workerCount=2;let DX,rye,jv,UF,oye,jF=null;function ELe(){return Cp()&&self.worker&&self.worker.dracoUrl?self.worker.dracoUrl:rye||h.DRACO_URL}function ILe(){if(Cp()&&self.worker&&self.worker.meshoptUrl)return self.worker.meshoptUrl;if(UF)return UF;let l=new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,3,2,0,0,5,3,1,0,1,12,1,0,10,22,2,12,0,65,0,65,0,65,0,252,10,0,0,11,7,0,65,0,253,15,26,11]);if(typeof WebAssembly!="object")throw new Error("WebAssembly not supported, cannot instantiate meshoptimizer");return UF=WebAssembly.validate(l)?h.MESHOPT_SIMD_URL:h.MESHOPT_URL,UF}let kX={5120:Int8Array,5121:Uint8Array,5122:Int16Array,5123:Uint16Array,5125:Uint32Array,5126:Float32Array},wdt={5120:"DT_INT8",5121:"DT_UINT8",5122:"DT_INT16",5123:"DT_UINT16",5125:"DT_UINT32",5126:"DT_FLOAT32"},yj={SCALAR:1,VEC2:2,VEC3:3,VEC4:4,MAT2:4,MAT3:9,MAT4:16};function TLe(l,a,u){let p=u.json.bufferViews.length,m=u.buffers.length;a.bufferView=p,u.json.bufferViews[p]={buffer:m,byteLength:l.byteLength},u.buffers[m]=l}let sye="KHR_draco_mesh_compression";function Cdt(l,a){let u=l.extensions&&l.extensions[sye];if(!u)return;let p=new jv.Decoder,m=MLe(a,u.bufferView),_=new jv.Mesh;if(!p.DecodeArrayToMesh(m,m.byteLength,_))throw new Error("Failed to decode Draco mesh");let b=a.json.accessors[l.indices],S=kX[b.componentType],I=b.count*S.BYTES_PER_ELEMENT,M=jv._malloc(I);S===Uint16Array?p.GetTrianglesUInt16Array(_,I,M):p.GetTrianglesUInt32Array(_,I,M),TLe(jv.memory.buffer.slice(M,M+I),b,a),jv._free(M);for(let N of Object.keys(u.attributes)){let P=p.GetAttributeByUniqueId(_,u.attributes[N]),V=a.json.accessors[l.attributes[N]],H=wdt[V.componentType],Y=V.count*yj[V.type]*kX[V.componentType].BYTES_PER_ELEMENT,W=jv._malloc(Y);p.GetAttributeDataArrayForAllPoints(_,P,jv[H],Y,W),TLe(jv.memory.buffer.slice(W,W+Y),V,a),jv._free(W)}p.destroy(),_.destroy(),delete l.extensions[sye]}let MX="EXT_meshopt_compression";function Sdt(l,a){if(!l.extensions||!l.extensions[MX])return;let u=l.extensions[MX],p=new Uint8Array(a.buffers[u.buffer],u.byteOffset||0,u.byteLength||0),m=new Uint8Array(u.count*u.byteStride);oye.decodeGltfBuffer(m,u.count,u.byteStride,p,u.mode,u.filter),l.buffer=a.buffers.length,l.byteOffset=0,a.buffers[l.buffer]=m.buffer,delete l.extensions[MX]}let ALe=1179937895,DLe=new TextDecoder("utf8");function kLe(l,a){return new URL(l,a).href}function Edt(l,a,u,p){return fetch(kLe(l.uri,p)).then(m=>m.arrayBuffer()).then(m=>{a.buffers[u]=m})}function MLe(l,a){let u=l.json.bufferViews[a];return new Uint8Array(l.buffers[u.buffer],u.byteOffset||0,u.byteLength)}function Idt(l,a,u,p){if(l.uri){let m=kLe(l.uri,p);return fetch(m).then(_=>_.blob()).then(_=>createImageBitmap(_)).then(_=>{a.images[u]=_})}if(l.bufferView!==void 0){let m=MLe(a,l.bufferView),_=new Blob([m],{type:l.mimeType});return createImageBitmap(_).then(b=>{a.images[u]=b})}}function OLe(l,a=0,u){let p={json:null,images:[],buffers:[]};if(new Uint32Array(l,a,1)[0]===ALe){let N=new Uint32Array(l,a),P=2,V=(N[P++]>>2)-3,H=N[P++]>>2;if(P++,p.json=JSON.parse(DLe.decode(N.subarray(P,P+H))),P+=H,P{let N=[],P=S&&S.includes(sye),V=S&&S.includes(MX);if(P&&N.push(function(){if(!jv)return DX||(DX=function(H){let Y,W=null;function re(){Y=new Uint8Array(W.buffer)}function ue(){throw new Error("Unexpected Draco error.")}let Te={a:{a:ue,d:function(Pe,De,tt){return Y.copyWithin(Pe,De,De+tt)},c:function(Pe){let De=Y.length,tt=Math.max(Pe>>>0,Math.ceil(1.2*De)),Ye=Math.ceil((tt-De)/65536);try{return W.grow(Ye),re(),!0}catch{return!1}},b:ue}};return(WebAssembly.instantiateStreaming?WebAssembly.instantiateStreaming(H,Te):H.then(Pe=>Pe.arrayBuffer()).then(Pe=>WebAssembly.instantiate(Pe,Te))).then(Pe=>{let{Rb:De,Qb:tt,P:Ye,T:at,X:_t,Ja:Mt,La:Jt,Qa:Bt,Va:si,Wa:oi,eb:ei,jb:wi,f:vi,e:Ti,yb:Ei,zb:ci,Ab:zn,Bb:Dn,Db:Ri,Gb:cr}=Pe.instance.exports;W=Ti;let Zn=(()=>{let Un=0,Ni=0,ar=0,Wr=0;return Er=>{ar&&(De(Wr),De(Un),Ni+=ar,ar=Un=0),Un||(Ni+=128,Un=tt(Ni));let no=Er.length+7&-8,Zr=Un;no>=Ni&&(ar=no,Zr=Wr=tt(no));for(let xo=0;xo{jv=H,DX=void 0}))}()),V&&N.push(function(){if(oye)return;let H=function(Y){let W,re=WebAssembly.instantiateStreaming(Y,{}).then(Pe=>{W=Pe.instance,W.exports.__wasm_call_ctors()}),ue={NONE:"",OCTAHEDRAL:"meshopt_decodeFilterOct",QUATERNION:"meshopt_decodeFilterQuat",EXPONENTIAL:"meshopt_decodeFilterExp"},Te={ATTRIBUTES:"meshopt_decodeVertexBuffer",TRIANGLES:"meshopt_decodeIndexBuffer",INDICES:"meshopt_decodeIndexSequence"};return{ready:re,supported:!0,decodeGltfBuffer(Pe,De,tt,Ye,at,_t){(function(Mt,Jt,Bt,si,oi,ei,wi){let vi=Mt.exports.sbrk,Ti=si+3&-4,Ei=vi(Ti*oi),ci=vi(ei.length),zn=new Uint8Array(Mt.exports.memory.buffer);zn.set(ei,ci);let Dn=Jt(Ei,si,oi,ci,ei.length);if(Dn===0&&wi&&wi(Ei,Ti,oi),Bt.set(zn.subarray(Ei,Ei+si*oi)),vi(Ei-vi(0)),Dn!==0)throw new Error(`Malformed buffer data: ${Dn}`)})(W,W.exports[Te[at]],Pe,De,tt,Ye,W.exports[ue[_t]])}}}(fetch(ILe()));return H.ready.then(()=>{oye=H})}()),_)for(let H=0;H<_.length;H++)N.push(Idt(_[H],p,H,u));return(N.length?Promise.all(N):Promise.resolve()).then(()=>{if(P&&b)for(let{primitives:H}of b)for(let Y of H)Cdt(Y,p);if(V&&b&&I)for(let H of I)Sdt(H,p);return p})})}class RLe{constructor(a,u,p,m){if(this.triangleCount=u.length/3,this.min=new cn(0,0),this.max=new cn(0,0),this.xScale=0,this.yScale=0,this.cellsX=0,this.cellsY=0,this.cells=[],this.payload=[],this.triangleCount===0||a.length===0)return;let[_,b]=[a[0].clone(),a[0].clone()];for(let P=1;PP.cellIdx-V.cellIdx||P.triIdx-V.triIdx);let N=0;for(;Nthis.max.x||this.min.x>u.x||a.y>this.max.y||this.min.y>u.y)return;this.lookup||(this.lookup=new Uint8Array(Math.ceil(this.triangleCount/8)));for(let I=0;I0){for(let re=0;re0){_.texcoordArray=new Rc;let V=a.json.accessors[m.TEXCOORD_0];_.texcoordArray.resize(V.count);let H=RM(a,V);aye(a,V,_.texcoordArray,H)}if(m._FEATURE_ID_RGBA4444!==void 0){let V=a.json.accessors[m._FEATURE_ID_RGBA4444];a.json.extensionsUsed&&a.json.extensionsUsed.includes("EXT_meshopt_compression")&&(_.featureData=RM(a,V))}m._FEATURE_RGBA4444!==void 0&&(_.featureData=new Uint32Array(RM(a,a.json.accessors[m._FEATURE_RGBA4444]).buffer));let P=l.material;return _.material=function(V,H){let{emissiveFactor:Y=[0,0,0],alphaMode:W="OPAQUE",alphaCutoff:re=.5,normalTexture:ue,occlusionTexture:Te,emissiveTexture:Pe,doubleSided:De}=V,{baseColorFactor:tt=[1,1,1,1],metallicFactor:Ye=1,roughnessFactor:at=1,baseColorTexture:_t,metallicRoughnessTexture:Mt}=V.pbrMetallicRoughness||{},Jt=Te?H[Te.index]:void 0;if(Te&&Te.extensions&&Te.extensions.KHR_texture_transform&&Jt){let Bt=Te.extensions.KHR_texture_transform;Jt.offsetScale=[Bt.offset[0],Bt.offset[1],Bt.scale[0],Bt.scale[1]]}return{pbrMetallicRoughness:{baseColorFactor:new cs(...tt),metallicFactor:Ye,roughnessFactor:at,baseColorTexture:_t?H[_t.index]:void 0,metallicRoughnessTexture:Mt?H[Mt.index]:void 0},doubleSided:De,emissiveFactor:Y,alphaMode:W,alphaCutoff:re,normalTexture:ue?H[ue.index]:void 0,occlusionTexture:Jt,emissionTexture:Pe?H[Pe.index]:void 0,defined:V.defined===void 0}}(P!==void 0?a.json.materials[P]:{defined:!1},u),_}function NLe(l,a,u){let{matrix:p,rotation:m,translation:_,scale:b,mesh:S,extras:I,children:M}=l,N={};if(N.matrix=p||o.a9.fromRotationTranslationScale([],m||[0,0,0,1],_||[0,0,0],b||[1,1,1]),S!==void 0){N.meshes=u[S];let P=N.anchor=[0,0];for(let V of N.meshes){let{min:H,max:Y}=V.aabb;P[0]+=H[0]+Y[0],P[1]+=H[1]+Y[1]}P[0]=Math.floor(P[0]/N.meshes.length/2),P[1]=Math.floor(P[1]/N.meshes.length/2)}if(I&&(I.id&&(N.id=I.id),I.lights&&(N.lights=function(P){if(!P.length)return[];let V=function(ue){let Te=atob(ue),Pe=new Uint8Array(Te.length);for(let De=0;De1&&p[p.length-1].equals(p[0])&&p.pop();let m=0;for(let b=0;b0&&p.reverse();let _=yM(p.flatMap(b=>[b.x,b.y]),[]);return _.length===0?null:{vertices:p,indices:_}}function kdt(l,a){let u=[],p=[],m=0,_=[];for(let b of l){m=u.length;let S=b.vertexArray.float32,I=b.indexArray.uint16;for(let M=0;M0&&([p[b+1],p[b+2]]=[p[b+2],p[b+1]])}return{vertices:u,indices:p}}function PLe(l){let a=function(I,M){let N=[],P=WebGL2RenderingContext;if(I.json.textures)for(let V of I.json.textures){let H={magFilter:P.LINEAR,minFilter:P.NEAREST,wrapS:P.REPEAT,wrapT:P.REPEAT};V.sampler!==void 0&&Object.assign(H,I.json.samplers[V.sampler]),N.push({image:M[V.source],sampler:H,uploaded:!1})}return N}(l,l.images),u=function(I,M){let N=[];for(let P of I.json.meshes){let V=[];for(let H of P.primitives)V.push(Tdt(H,I,M));N.push(V)}return N}(l,a),{scenes:p,scene:m,nodes:_}=l.json,b=p?p[m||0].nodes:_,S=[];for(let I of b)S.push(NLe(_[I],l,u));return function(I,M,N){let P={},V=new Set;for(let H=0;H0){let H=Array.from(V.values()).sort((Y,W)=>Y-W);for(let Y=H.length-1;Y>=0;Y--)I.splice(H[Y],1)}}(S,b,l.json.nodes),S}function Mdt(l){l.heightmap=new Float32Array(4096),l.heightmap.fill(-1);let a=l.vertexArray.float32,u=l.aabb.min[0]-1,p=l.aabb.min[1]-1,m=OM/(l.aabb.max[0]-u+2),_=OM/(l.aabb.max[1]-p+2);for(let b=0;bl.heightmap[M*OM+I]&&(l.heightmap[M*OM+I]=S)}}function Odt(l,a){let u={};u.indexArray=new vc,u.indexArray.reserve(4*l.length),u.vertexArray=new Jy,u.vertexArray.reserve(10*l.length),u.colorArray=new _c,u.vertexArray.reserve(10*l.length);let p=0;for(let b of l){let S=Math.min(10,Math.max(4,1.3*b.height))*a,I=[-b.normal[1],b.normal[0],0],M=Math.min(.29,.1*b.width/b.depth),N=b.width-2*b.depth*a*(M+.01),P=o.Q.scaleAndAdd([],b.pos,I,N/2),V=o.Q.scaleAndAdd([],b.pos,I,-N/2),H=[P[0],P[1],P[2]+b.height],Y=[V[0],V[1],V[2]+b.height],W=o.Q.scaleAndAdd([],b.normal,I,M);o.Q.scale(W,W,S);let re=o.Q.scaleAndAdd([],b.normal,I,-M);o.Q.scale(re,re,S),o.Q.add(W,P,W),o.Q.add(re,V,re),P[2]+=.1,V[2]+=.1,u.vertexArray.emplaceBack(W[0],W[1],W[2]),u.vertexArray.emplaceBack(re[0],re[1],re[2]),u.vertexArray.emplaceBack(P[0],P[1],P[2]),u.vertexArray.emplaceBack(V[0],V[1],V[2]),u.vertexArray.emplaceBack(H[0],H[1],H[2]),u.vertexArray.emplaceBack(Y[0],Y[1],Y[2]),u.vertexArray.emplaceBack(P[0],P[1],P[2]),u.vertexArray.emplaceBack(V[0],V[1],V[2]),u.vertexArray.emplaceBack(W[0],W[1],W[2]),u.vertexArray.emplaceBack(re[0],re[1],re[2]);let ue=N/S/2;u.colorArray.emplaceBack(-ue-M,-1,ue,.8),u.colorArray.emplaceBack(ue+M,-1,ue,.8),u.colorArray.emplaceBack(-ue,0,ue,1.3),u.colorArray.emplaceBack(ue,0,ue,1.3),u.colorArray.emplaceBack(ue+M,-.8,ue,.7),u.colorArray.emplaceBack(ue+M,-.8,ue,.7),u.colorArray.emplaceBack(0,0,ue,1.3),u.colorArray.emplaceBack(0,0,ue,1.3),u.colorArray.emplaceBack(ue+M,-1.2,ue,.8),u.colorArray.emplaceBack(ue+M,-1.2,ue,.8),u.indexArray.emplaceBack(6+p,4+p,8+p),u.indexArray.emplaceBack(7+p,9+p,5+p),u.indexArray.emplaceBack(0+p,1+p,2+p),u.indexArray.emplaceBack(1+p,3+p,2+p),p+=10}let m={defined:!0,emissiveFactor:[0,0,0]},_={};return _.baseColorFactor=cs.white,m.pbrMetallicRoughness=_,u.material=m,u.aabb=new Ta([1/0,1/0,1/0],[-1/0,-1/0,-1/0]),u}An(RLe,"TriangleGridIndex");class FLe{constructor(a){this._stringToNumber={},this._numberToString=[];for(let u=0;u=0&&V[3]>=0&&M.insert(I,V[0],V[1],V[2],V[3])}}loadVTLayers(){if(!this.vtLayers){this.vtLayers=new uF(new hb(this.rawTileData)).layers,this.sourceLayerCoder=new FLe(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"]),this.vtFeatures={};for(let a in this.vtLayers)this.vtFeatures[a]=[]}return this.vtLayers}query(a,u,p,m){this.loadVTLayers();let _=a.params||{},b=mn(_.filter),S=a.tileResult,I=a.transform,M=S.bufferedTilespaceBounds,N=this.grid.query(M.min.x,M.min.y,M.max.x,M.max.y,(Y,W,re,ue)=>r6(S.bufferedTilespaceGeometry,Y,W,re,ue));N.sort(Ndt);let P=null;I.elevation&&N.length>0&&(P=nI.create(I.elevation,this.tileID));let V={},H;for(let Y=0;Y(ue||(ue=t_(Te,this.tileID.canonical,a.tileTransform)),Pe.queryIntersectsFeature(S,Te,De,ue,this.z,a.transform,a.pixelPosMatrix,P,tt)))}return V}loadMatchingFeature(a,u,p,m,_,b,S,I,M){let{featureIndex:N,bucketIndex:P,sourceLayerIndex:V,layoutVertexArrayOffset:H}=u,Y=this.bucketLayerIDs[P];if(m&&!function(Te,Pe){for(let De=0;De=0)return!0;return!1}(m,Y))return;let W=this.sourceLayerCoder.decode(V),re=this.vtLayers[W].feature(N);if(p.needGeometry){let Te=sb(re,!0);if(!p.filter(new be(this.tileID.overscaledZ),Te,this.tileID.canonical))return}else if(!p.filter(new be(this.tileID.overscaledZ),re))return;let ue=this.getId(re,W);for(let Te=0;Te{let S=a instanceof Zt?a.get(b):null;return S&&S.evaluate?S.evaluate(u,p,m):S})}function Ndt(l,a){return a-l}An(BLe,"FeatureIndex",{omit:["rawTileData","sourceLayerCoder"]});let lye=new Float32Array(262144),NM=new Uint8Array(262144);function VLe(l){let a=0;if(l.meshes)for(let u of l.meshes)a=Math.max(a,u.aabb.max[2]);if(l.children)for(let u of l.children)a=Math.max(a,VLe(u));return a}function ULe(l,a,u){if(l.meshes)for(let p of l.meshes)p.aabb.min[0]!==1/0&&u.insert(a,p.aabb.min[0],p.aabb.min[1],p.aabb.max[0],p.aabb.max[1]);if(l.children)for(let p of l.children)ULe(p,a,u)}let jLe=["","wall","door","roof","window","lamp","logo"];class HLe{constructor(a){this.node=a,this.evaluatedRMEA=[[1,0,0,1],[1,0,0,1],[1,0,0,1],[1,0,0,1],[.4,1,0,1],[1,0,0,1],[1,0,0,1]],this.hiddenByReplacement=!1,this.evaluatedScale=[1,1,1],this.evaluatedColor=[],this.emissionHeightBasedParams=[],this.feature={type:"Point",id:a.id,geometry:[],properties:{height:VLe(a)}}}getLocalBounds(){if(!this.node.meshes)return new Ta([1/0,1/0,1/0],[-1/0,-1/0,-1/0]);if(!this.aabb){let a=0,u=new Ta([1/0,1/0,1/0],[-1/0,-1/0,-1/0]);for(let p of this.node.meshes)this.node.lightMeshIndex!==a&&u.encapsulate(p.aabb),a++;this.aabb=Ta.applyTransform(u,this.node.matrix)}return this.aabb}}class OX{constructor(a,u,p,m,_,b){this.id=u,this.modelTraits|=VF.CoordinateSpaceTile,this.uploaded=!1,this.hasPattern=!1,p&&(this.modelTraits|=VF.HasMapboxMeshFeatures),m&&(this.modelTraits|=VF.HasMeshoptCompression),this.zoom=-1,this.terrainExaggeration=1,this.projection={name:"mercator"},this.replacementUpdateTime=0,this.elevationReadFromZ=255,this.brightness=_,this.dirty=!0,this.needsUpload=!1,this.nodesInfo=[];for(let S of a)this.nodesInfo.push(new HLe(S)),ULe(S,b.featureIndexArray.length,b.grid),b.featureIndexArray.emplaceBack(this.nodesInfo.length-1,0,b.bucketLayerIDs.length-1,0)}update(){console.log("Update 3D model bucket")}populate(){console.log("populate 3D model bucket")}uploadPending(){return!this.uploaded||this.needsUpload}upload(a){if(!this.needsUpload)return;let u=this.getNodesInfo();for(let p of u){let m=p.node;this.uploaded?this.updatePbrBuffer(m):eye(m,a,!0)}for(let p of u)TX(p.node);this.uploaded=!0,this.needsUpload=!1}updatePbrBuffer(a){let u=!1;if(!a.meshes)return u;for(let p of a.meshes)p.pbrBuffer&&(p.pbrBuffer.updateData(p.featureArray),u=!0);return u}needsReEvaluation(a,u,p){let m=a.transform.projectionOptions,_=a.style.getBrightness(),b=this.brightness!==_;return!!(!this.uploaded||this.dirty||m.name!==this.projection.name||bj(p.paint.get("model-color").value,b)||bj(p.paint.get("model-color-mix-intensity").value,b)||bj(p.paint.get("model-roughness").value,b)||bj(p.paint.get("model-emissive-strength").value,b)||bj(p.paint.get("model-height-based-emissive-strength-multiplier").value,b))&&(this.projection=m,this.brightness=_,!0)}evaluateScale(a,u){if(a.transform.zoom===this.zoom)return;this.zoom=a.transform.zoom;let p=this.getNodesInfo(),m=this.id.canonical;for(let _ of p){let b=_.feature;_.evaluatedScale=u.paint.get("model-scale").evaluate(b,{},m)}}evaluate(a){let u=this.getNodesInfo();for(let p of u){if(!p.node.meshes)continue;let m=p.feature,_=p.node.meshes&&p.node.meshes[0].featureData,b=p.evaluatedColor[2],S=p.evaluatedRMEA[2],I=this.id.canonical;if(p.hasTranslucentParts=!1,_){for(let M=0;M=Ye)continue;let Ti=lye[vi],Ei=Math.abs(Ti);Ei>Bt&&(Jt=Ti,Bt=Ei,si=wi,oi=ei)}if(Bt>.1){let ei=1-(Ye+.5*Math.abs(si*oi))/Y,wi=u._dem.get(_t,at)+Jt*ei,vi=u._dem.get(_t+si,at+oi),Ti=u._dem.get(_t-si,at-oi,!0);(wi-vi)*(wi-Ti)>0&&(wi=(vi+Ti)/2),lye[Mt]=u._dem.set(_t,at,wi),NM[Mt]=Ye}}}}}S&&(u._demTile.needsDEMTextureUpload=!0,u._dem._timestamp=bf.now())}getNodesInfo(){return this.nodesInfo}destroy(){let a=this.getNodesInfo();for(let u of a)TX(u.node),tye(u.node)}isEmpty(){return!this.nodesInfo.length}updateReplacement(a,u){if(u.updateTime===this.replacementUpdateTime)return;this.replacementUpdateTime=u.updateTime;let p=u.getReplacementRegionsForTile(a.toUnwrapped()),m=this.getNodesInfo();for(let _=0;_S.footprint===b.footprint)}}getHeightAtTileCoord(a,u){let p=this.getNodesInfo(),m=[],_=[0,0,0];for(let b=0;bM.max[0]||u>M.max[1])continue;let N=(a-I.aabb.min[0])/(I.aabb.max[0]-I.aabb.min[0])*OM|0,P=Math.min(63,(u-I.aabb.min[1])/(I.aabb.max[1]-I.aabb.min[1])*OM|0)*OM+Math.min(63,N);if(_[2]=I.heightmap[P],o.Q.transformMat4(_,_,S.node.matrix),!(I.heightmap[P]<0&&S.node.footprint))return S.hiddenByReplacement?void 0:{height:_[2],maxHeight:S.feature.properties.height,hidden:!1,verticalScale:S.evaluatedScale[2]};if(S.node.footprint.grid.query(new cn(a,u),new cn(a,u),m),m.length>0)return{height:void 0,maxHeight:S.feature.properties.height,hidden:S.hiddenByReplacement,verticalScale:S.evaluatedScale[2]}}}}function bj(l,a){return!l.isLightConstant&&a}function Pdt(l,a,u,p,m,_,b,S){let I=(61440&a|(61440&a)>>4)>>8,M=(3840&a|(3840&a)>>4)>>4,N=240&a|(240&a)>>4;u[3]>0&&(I=Jr(I,255*u[0],u[3]),M=Jr(M,255*u[1],u[3]),N=Jr(N,255*u[2],u[3]));let P=I<<8|M,V=N<<8|Math.floor(255*p[3]),H=function(Ye){let at=Br(Ye,0,2);return Math.min(Math.round(.5*at*255),255)}(p[2])<<8|15*p[0]<<4|15*p[1],Y=Br(m[0],0,1),W=Br(m[1],0,1),re=Br(m[2],0,1),ue=Br(m[3],0,1),Te,Pe,De,tt;if(Y!==W&&b!==_&&W!==Y){let Ye=b-_;Pe=1/(Ye*(W-Y)),De=-(_+Ye*Y)/(Ye*(W-Y));let at=Br(m[4],-1,1);tt=Math.pow(10,at),Te=255*re<<8|255*ue}else Te=65535,Pe=0,De=1,tt=1;if(l.emplaceBack(P,V,H,Te,Pe,De,tt),S){let Ye=S.length;S.clear();for(let at=0;at>16&65535,N=_?I>>16&65535:65535&I,P=(15&N)<8?15&N:0,V=l.evaluatedRMEA[P],H=l.evaluatedColor[P],Y=l.emissionHeightBasedParams[P],W;if(S&&P===2&&p.lights&&(W=new aM,W.resize(10*p.lights.length)),Pdt(b.featureArray,M,H,V,Y,b.aabb.min[2],b.aabb.max[2],W),W&&S){S=!1;let re=p.meshes[p.lightMeshIndex];re.featureArray=W,re.featureArray._trim()}}b.featureArray._trim(),m++}}function GLe(l,a,u,p){let m=1<De.polygon).flat());let re=H?S:null,[ue,Te]=function(De,tt,Ye,at,_t,Mt,Jt,Bt,si,oi,ei){return De.projection.name==="globe"?function(wi,vi,Ti,Ei,ci,zn,Dn,Ri,cr,Zn,Un){let Ni=[],ar=[],Wr=wi.projection.upVectorScale(Un,wi.center.lat,wi.worldSize).metersToTile,Er=[0,0,0,1],no=[0,0,0,1],Zr=(vr,Ws,js,ds)=>{vr[0]=Ws,vr[1]=js,vr[2]=ds,vr[3]=1},xo=BQ();Ti>0&&(Ti+=xo),Ei+=xo;for(let vr of vi){let Ws=[],js=[];for(let ds of vr){let Go=ds.x+ci.x,hs=ds.y+ci.y,_a=wi.projection.projectTilePoint(Go,hs,Un),sa=wi.projection.upVector(Un,ds.x,ds.y),ul=Ti,Qa=Ei;if(Dn){let Pd=wF(Go,hs,Ti,Ei,Dn,Ri,cr,Zn);ul+=Pd.base,Qa+=Pd.top}Ti!==0?Zr(Er,_a.x+sa[0]*Wr*ul,_a.y+sa[1]*Wr*ul,_a.z+sa[2]*Wr*ul):Zr(Er,_a.x,_a.y,_a.z),Zr(no,_a.x+sa[0]*Wr*Qa,_a.y+sa[1]*Wr*Qa,_a.z+sa[2]*Wr*Qa),o.Q.transformMat4(Er,Er,zn),o.Q.transformMat4(no,no,zn),Ws.push(new sI(Er[0],Er[1],Er[2])),js.push(new sI(no[0],no[1],no[2]))}Ni.push(Ws),ar.push(js)}return[Ni,ar]}(De,tt,Ye,at,_t,Mt,Jt,Bt,si,oi,ei):Jt?function(wi,vi,Ti,Ei,ci,zn,Dn,Ri,cr){let Zn=[],Un=[],Ni=[0,0,0,1];for(let ar of wi){let Wr=[],Er=[];for(let no of ar){let Zr=no.x+Ei.x,xo=no.y+Ei.y,vr=wF(Zr,xo,vi,Ti,zn,Dn,Ri,cr);Ni[0]=Zr,Ni[1]=xo,Ni[2]=vr.base,Ni[3]=1,o.aa.transformMat4(Ni,Ni,ci),Ni[3]=Math.max(Ni[3],1e-5);let Ws=new sI(Ni[0]/Ni[3],Ni[1]/Ni[3],Ni[2]/Ni[3]);Ni[0]=Zr,Ni[1]=xo,Ni[2]=vr.top,Ni[3]=1,o.aa.transformMat4(Ni,Ni,ci),Ni[3]=Math.max(Ni[3],1e-5);let js=new sI(Ni[0]/Ni[3],Ni[1]/Ni[3],Ni[2]/Ni[3]);Wr.push(Ws),Er.push(js)}Zn.push(Wr),Un.push(Er)}return[Zn,Un]}(tt,Ye,at,_t,Mt,Jt,Bt,si,oi):function(wi,vi,Ti,Ei,ci){let zn=[],Dn=[],Ri=ci[8]*vi,cr=ci[9]*vi,Zn=ci[10]*vi,Un=ci[11]*vi,Ni=ci[8]*Ti,ar=ci[9]*Ti,Wr=ci[10]*Ti,Er=ci[11]*Ti;for(let no of wi){let Zr=[],xo=[];for(let vr of no){let Ws=vr.x+Ei.x,js=vr.y+Ei.y,ds=ci[0]*Ws+ci[4]*js+ci[12],Go=ci[1]*Ws+ci[5]*js+ci[13],hs=ci[2]*Ws+ci[6]*js+ci[14],_a=ci[3]*Ws+ci[7]*js+ci[15],sa=ds+Ri,ul=Go+cr,Qa=hs+Zn,Pd=Math.max(_a+Un,1e-5),Nl=ds+Ni,Ga=Go+ar,bc=hs+Wr,Ou=Math.max(_a+Er,1e-5);Zr.push(new sI(sa/Pd,ul/Pd,Qa/Pd)),xo.push(new sI(Nl/Ou,Ga/Ou,bc/Ou))}zn.push(Zr),Dn.push(xo)}return[zn,Dn]}(tt,Ye,at,_t,Mt)}(_,p,P,N,M,b,re,V,Y,_.center.lat,l.tileID.canonical),Pe=l.queryGeometry;return function(De,tt,Ye){let at=1/0;WP(Ye,tt)&&(at=xF(Ye,tt[0]));for(let _t=0;_t=3){for(let Y=0;Y[u,this.get(u)])}evict(a=!1){if(a||this.size>0){let u=this.first;delete this.items[u.key],--this.size==0?(this.first=null,this.last=null):(this.first=u.next,this.first.prev=null)}return this}expiresAt(a){let u;return this.has(a)&&(u=this.items[a].expiry),u}get(a){let u;if(this.has(a)){let p=this.items[a];this.ttl>0&&p.expiry<=Date.now()?this.delete(a):(u=p.value,this.set(a,u,!0))}return u}has(a){return a in this.items}keys(){let a=[],u=this.first;for(;u!==null;)a.push(u.key),u=u.next;return a}set(a,u,p=!1,m=this.resetTtl){let _;if(p||this.has(a)){if(_=this.items[a],_.value=u,p===!1&&m&&(_.expiry=this.ttl>0?Date.now()+this.ttl:this.ttl),this.last!==_){let b=this.last,S=_.next,I=_.prev;this.first===_&&(this.first=_.next),_.next=null,_.prev=this.last,b.next=_,I!==null&&(I.next=S),S!==null&&(S.prev=I)}}else this.max>0&&this.size===this.max&&this.evict(!0),_=this.items[a]={expiry:this.ttl>0?Date.now()+this.ttl:this.ttl,key:a,prev:this.last,next:null,value:u},++this.size==1?this.first=_:this.last.next=_;return this.last=_,this}values(a=this.keys()){return a.map(u=>this.get(u))}}function zdt(l,a){if(a.length!==4)throw new Error(`Expected data of dimension 4 but got ${a.length}.`);let u=a[3];for(let p=2;p>=1;p--){let m=p===1?1:0,_=p===2?1:0;for(let b=0;b>>1^-(1&l[a]);return l}function Udt(l,a){switch(a){case"uint32":return l;case"uint16":for(let u=0;u>4|(61440&p)>>8|(240&m)<<4|61440&m,l[u+1]=15&p|(3840&p)>>4|(15&m)<<8|(3840&m)<<4}return l;case"uint8":for(let u=0;u>6|(192&m)>>4|(192&_)>>2|192&b,l[u+1]=(48&p)>>4|(48&m)>>2|48&_|(48&b)<<2,l[u+2]=(12&p)>>2|12&m|(12&_)<<2|(12&b)<<4,l[u+3]=3&p|(3&m)<<2|(3&_)<<4|(3&b)<<6}return l;default:throw new Error(`Invalid pixel format, "${a}"`)}}class bI extends Error{constructor(a){super(a),this.name="MRTError"}}var Lm=Uint8Array,HF=Uint16Array,jdt=Int32Array,YLe=new Lm([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,0,0,0]),qLe=new Lm([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,0,0]),Hdt=new Lm([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),$Le=function(l,a){for(var u=new HF(31),p=0;p<31;++p)u[p]=a+=1<>1|(21845&lc)<<1;cye[lc]=((65280&(GF=(61680&(GF=(52428&GF)>>2|(13107&GF)<<2))>>4|(3855&GF)<<4))>>8|(255&GF)<<8)>>1}var xj=function(l,a,u){for(var p=l.length,m=0,_=new HF(a);m>I]=M}else for(b=new HF(p),m=0;m>15-l[m]);return b},wj=new Lm(288);for(lc=0;lc<144;++lc)wj[lc]=8;for(lc=144;lc<256;++lc)wj[lc]=9;for(lc=256;lc<280;++lc)wj[lc]=7;for(lc=280;lc<288;++lc)wj[lc]=8;var ZLe=new Lm(32);for(lc=0;lc<32;++lc)ZLe[lc]=5;var qdt=xj(wj,9,1),$dt=xj(ZLe,5,1),uye=function(l){for(var a=l[0],u=1;ua&&(a=l[u]);return a},Gv=function(l,a,u){var p=a/8|0;return(l[p]|l[p+1]<<8)>>(7&a)&u},dye=function(l,a){var u=a/8|0;return(l[u]|l[u+1]<<8|l[u+2]<<16)>>(7&a)},Kdt=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],Yv=function(l,a,u){var p=new Error(a||Kdt[l]);if(p.code=l,Error.captureStackTrace&&Error.captureStackTrace(p,Yv),!u)throw p;return p},Wdt=new Lm(0),Zdt=typeof TextDecoder<"u"&&new TextDecoder;try{Zdt.decode(Wdt,{stream:!0})}catch{}let Qdt={gzip_data:"gzip"},Xdt={0:"uint32",1:"uint32",2:"uint16",3:"uint8"},Jdt={uint32:1,uint16:2,uint8:4},eht={uint32:Uint32Array,uint16:Uint16Array,uint8:Uint8Array};class QLe{constructor(a=1){this.x=NaN,this.y=NaN,this.z=NaN,this.layers={},this._cacheSize=a}getLayer(a){return this.layers[a]}getHeaderLength(a){let u=new Uint8Array(a),p=new DataView(a);if(u[0]!==13)throw new bI("File is not a valid MRT.");return p.getUint32(1,!0)}parseHeader(a){let u=new Uint8Array(a),p=this.getHeaderLength(a);if(u.length= ${p} but got buffer of length ${u.length}`);let m=new hb(u.subarray(0,p)),_=Ur.read(m);if(!isNaN(this.x)&&(this.x!==_.x||this.y!==_.y||this.z!==_.z))throw new bI(`Invalid attempt to parse header ${_.z}/${_.x}/${_.y} for tile ${this.z}/${this.x}/${this.y}`);this.x=_.x,this.y=_.y,this.z=_.z;for(let b of _.layers)this.layers[b.name]=new tht(b,{cacheSize:this._cacheSize});return this}createDecodingTask(a){let u=[],p=this.getLayer(a.layerName);for(let m=0;ma.lastBlock||p._blocksInProgress.has(m))continue;let I={layerName:p.name,firstByte:b,lastByte:S,pixelFormat:p.pixelFormat,blockIndex:m,blockShape:[_.bands.length].concat(p.bandShape),buffer:p.buffer,codec:_.codec.codec,filters:_.filters.map(M=>M.filter)};p._blocksInProgress.add(m),u.push(I)}return new XLe(u,()=>{u.forEach(m=>p._blocksInProgress.delete(m.blockIndex))},(m,_)=>{if(u.forEach(b=>p._blocksInProgress.delete(b.blockIndex)),m)throw m;_.forEach(b=>{this.getLayer(b.layerName).processDecodedData(b)})})}}class tht{constructor({version:a,name:u,units:p,tilesize:m,pixel_format:_,buffer:b,data_index:S},I){if(this.version=a,this.version!==1)throw new bI(`Cannot parse raster layer encoded with MRT version ${a}`);this.name=u,this.units=p,this.tileSize=m,this.buffer=b,this.pixelFormat=Xdt[_],this.dataIndex=S,this.bandShape=[m+2*b,m+2*b,Jdt[this.pixelFormat]],this._decodedBlocks=function(M=1e3,N=0,P=!1){if(isNaN(M)||M<0)throw new TypeError("Invalid max value");if(isNaN(N)||N<0)throw new TypeError("Invalid ttl value");if(typeof P!="boolean")throw new TypeError("Invalid resetTtl value");return new Bdt(M,N,P)}(I?I.cacheSize:5),this._blocksInProgress=new Set}processDecodedData(a){let u=a.blockIndex.toString();this._decodedBlocks.get(u)||this._decodedBlocks.set(u,a.data)}getBlockForBand(a){let u=0;switch(typeof a){case"string":for(let[p,m]of this.dataIndex.entries()){for(let[_,b]of m.bands.entries())if(b===a)return{bandIndex:u+_,blockIndex:p,blockBandIndex:_};u+=m.bands.length}break;case"number":for(let[p,m]of this.dataIndex.entries()){if(a>=u&&a=0}hasDataForBand(a){let{blockIndex:u}=this.getBlockForBand(a);return u>=0&&!!this._decodedBlocks.get(u.toString())}getBandView(a){let{blockIndex:u,blockBandIndex:p}=this.getBlockForBand(a),m=this._decodedBlocks.get(u.toString());if(!m)throw new bI(`Data for band ${JSON.stringify(a)} of layer "${this.name}" not decoded.`);let _=this.dataIndex[u],b=this.bandShape.reduce((M,N)=>M*N,1),S=p*b,I=m.subarray(S,S+b);return{data:I,bytes:new Uint8Array(I.buffer).subarray(I.byteOffset,I.byteOffset+I.byteLength),tileSize:this.tileSize,buffer:this.buffer,offset:_.offset,scale:_.scale}}}class XLe{constructor(a,u,p){this.tasks=a,this._onCancel=u,this._onComplete=p,this._finalized=!1}cancel(){this._finalized||(this._onCancel(),this._finalized=!0)}complete(a,u){this._finalized||(this._onComplete(a,u),this._finalized=!0)}}QLe.performDecoding=function(l,a){return Promise.all(a.tasks.map(u=>{let{layerName:p,firstByte:m,lastByte:_,pixelFormat:b,blockShape:S,blockIndex:I,filters:M,codec:N}=u,P=new Uint8Array(l).subarray(m,_+1),V=new Uint32Array(S[0]*S[1]*S[2]),H;if(N!=="gzip_data")throw new Error(`Unhandled codec: ${N}`);return H=function(Y,W){if(!globalThis.DecompressionStream&&W==="gzip_data")return Promise.resolve(((Pe=function(Ye){Ye[0]==31&&Ye[1]==139&&Ye[2]==8||Yv(6,"invalid gzip data");var at=Ye[3],_t=10;4&at&&(_t+=2+(Ye[10]|Ye[11]<<8));for(var Mt=(at>>3&1)+(at>>4&1);Mt>0;Mt-=!Ye[_t++]);return _t+(2&at)}(Te=Y))+8>Te.length&&Yv(6,"invalid gzip data"),function(Ye,at,_t,Mt){var Jt=Ye.length;if(!Jt||at.f&&!at.l)return _t||new Lm(0);var Bt=!_t,si=Bt||at.i!=2,oi=at.i;Bt&&(_t=new Lm(3*Jt));var ei,wi,vi=function(xI){var wI=_t.length;if(xI>wI){var PM=new Lm(Math.max(2*wI,xI));PM.set(_t),_t=PM}},Ti=at.f||0,Ei=at.p||0,ci=at.b||0,zn=at.l,Dn=at.d,Ri=at.m,cr=at.n,Zn=8*Jt;do{if(!zn){Ti=Gv(Ye,Ei,1);var Un=Gv(Ye,Ei+1,3);if(Ei+=3,!Un){var Ni=Ye[(Go=4+((Ei+7)/8|0))-4]|Ye[Go-3]<<8,ar=Go+Ni;if(ar>Jt){oi&&Yv(0);break}si&&vi(ci+Ni),_t.set(Ye.subarray(Go,ar),ci),at.b=ci+=Ni,at.p=Ei=8*ar,at.f=Ti;continue}if(Un==1)zn=qdt,Dn=$dt,Ri=9,cr=5;else if(Un==2){var Wr=Gv(Ye,Ei,31)+257,Er=Gv(Ye,Ei+10,15)+4,no=Wr+Gv(Ye,Ei+5,31)+1;Ei+=14;for(var Zr=new Lm(no),xo=new Lm(19),vr=0;vr>4)<16)Zr[vr++]=Go;else{var _a=0,sa=0;for(Go==16?(sa=3+Gv(Ye,Ei,3),Ei+=2,_a=Zr[vr-1]):Go==17?(sa=3+Gv(Ye,Ei,7),Ei+=3):Go==18&&(sa=11+Gv(Ye,Ei,127),Ei+=7);sa--;)Zr[vr++]=_a}}var ul=Zr.subarray(0,Wr),Qa=Zr.subarray(Wr);Ri=uye(ul),cr=uye(Qa),zn=xj(ul,Ri,1),Dn=xj(Qa,cr,1)}else Yv(1);if(Ei>Zn){oi&&Yv(0);break}}si&&vi(ci+131072);for(var Pd=(1<>4;if((Ei+=15&_a)>Zn){oi&&Yv(0);break}if(_a||Yv(2),bc<256)_t[ci++]=bc;else{if(bc==256){Ga=Ei,zn=null;break}var Ou=bc-254;bc>264&&(Ou=Gv(Ye,Ei,(1<<(Uh=YLe[vr=bc-257]))-1)+WLe[vr],Ei+=Uh);var Ru=Dn[dye(Ye,Ei)&Nl],ua=Ru>>4;if(Ru||Yv(3),Ei+=15&Ru,Qa=Ydt[ua],ua>3){var Uh=qLe[ua];Qa+=dye(Ye,Ei)&(1<Zn){oi&&Yv(0);break}si&&vi(ci+131072);var fw=ci+Ou;if(ciei.length)&&(wi=ei.length),new Lm(ei.subarray(0,wi))):_t.subarray(0,ci)}(Te.subarray(Pe,-8),{i:2},new Lm(((re=Te)[(ue=re.length)-4]|re[ue-3]<<8|re[ue-2]<<16|re[ue-1]<<24)>>>0))));var re,ue,Te,Pe;let De=Qdt[W];if(!De)throw new Error(`Unhandled codec: ${W}`);let tt=new globalThis.DecompressionStream(De);return new Response(new Blob([Y]).stream().pipeThrough(tt)).arrayBuffer().then(Ye=>new Uint8Array(Ye))}(P,N).then(Y=>{let W=Hv.read(new hb(Y));if(W.values==="uint32_values")return W.uint32_values.readValuesInto(V),new eht[b](V.buffer);throw new Error(`Unhandled numeric data "${W.values}"`)}),H.then(Y=>{for(let W=M.length-1;W>=0;W--)switch(M[W]){case"delta_filter":zdt(Y,S);break;case"zigzag_filter":Vdt(Y);break;case"bitshuffle_filter":Udt(Y,b);break;default:throw new Error(`Unhandled filter "${M[W]}"`)}return{layerName:p,blockIndex:I,data:Y}}).catch(Y=>{throw Y})}))},An(XLe,"MRTDecodingBatch",{omit:["_onCancel","_onComplete"]});let JLe=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array];class hye{static from(a){if(!(a instanceof ArrayBuffer))throw new Error("Data must be an instance of ArrayBuffer.");let[u,p]=new Uint8Array(a,0,2);if(u!==219)throw new Error("Data does not appear to be in a KDBush format.");let m=p>>4;if(m!==1)throw new Error(`Got v${m} data when expected v1.`);let _=JLe[15&p];if(!_)throw new Error("Unrecognized array type.");let[b]=new Uint16Array(a,2,1),[S]=new Uint32Array(a,4,1);return new hye(S,b,_,a)}constructor(a,u=64,p=Float64Array,m){if(isNaN(a)||a<0)throw new Error(`Unpexpected numItems value: ${a}.`);this.numItems=+a,this.nodeSize=Math.min(Math.max(+u,2),65535),this.ArrayType=p,this.IndexArrayType=a<65536?Uint16Array:Uint32Array;let _=JLe.indexOf(this.ArrayType),b=2*a*this.ArrayType.BYTES_PER_ELEMENT,S=a*this.IndexArrayType.BYTES_PER_ELEMENT,I=(8-S%8)%8;if(_<0)throw new Error(`Unexpected typed array class: ${p}.`);m&&m instanceof ArrayBuffer?(this.data=m,this.ids=new this.IndexArrayType(this.data,8,a),this.coords=new this.ArrayType(this.data,8+S+I,2*a),this._pos=2*a,this._finished=!0):(this.data=new ArrayBuffer(8+b+S+I),this.ids=new this.IndexArrayType(this.data,8,a),this.coords=new this.ArrayType(this.data,8+S+I,2*a),this._pos=0,this._finished=!1,new Uint8Array(this.data,0,2).set([219,16+_]),new Uint16Array(this.data,2,1)[0]=u,new Uint32Array(this.data,4,1)[0]=a)}add(a,u){let p=this._pos>>1;return this.ids[p]=p,this.coords[this._pos++]=a,this.coords[this._pos++]=u,p}finish(){let a=this._pos>>1;if(a!==this.numItems)throw new Error(`Added ${a} items when expected ${this.numItems}.`);return pye(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(a,u,p,m){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");let{ids:_,coords:b,nodeSize:S}=this,I=[0,_.length-1,0],M=[];for(;I.length;){let N=I.pop()||0,P=I.pop()||0,V=I.pop()||0;if(P-V<=S){for(let re=V;re<=P;re++){let ue=b[2*re],Te=b[2*re+1];ue>=a&&ue<=p&&Te>=u&&Te<=m&&M.push(_[re])}continue}let H=V+P>>1,Y=b[2*H],W=b[2*H+1];Y>=a&&Y<=p&&W>=u&&W<=m&&M.push(_[H]),(N===0?a<=Y:u<=W)&&(I.push(V),I.push(H-1),I.push(1-N)),(N===0?p>=Y:m>=W)&&(I.push(H+1),I.push(P),I.push(1-N))}return M}within(a,u,p){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");let{ids:m,coords:_,nodeSize:b}=this,S=[0,m.length-1,0],I=[],M=p*p;for(;S.length;){let N=S.pop()||0,P=S.pop()||0,V=S.pop()||0;if(P-V<=b){for(let re=V;re<=P;re++)tBe(_[2*re],_[2*re+1],a,u)<=M&&I.push(m[re]);continue}let H=V+P>>1,Y=_[2*H],W=_[2*H+1];tBe(Y,W,a,u)<=M&&I.push(m[H]),(N===0?a-p<=Y:u-p<=W)&&(S.push(V),S.push(H-1),S.push(1-N)),(N===0?a+p>=Y:u+p>=W)&&(S.push(H+1),S.push(P),S.push(1-N))}return I}}function pye(l,a,u,p,m,_){if(m-p<=u)return;let b=p+m>>1;eBe(l,a,b,p,m,_),pye(l,a,u,p,b-1,1-_),pye(l,a,u,b+1,m,1-_)}function eBe(l,a,u,p,m,_){for(;m>p;){if(m-p>600){let M=m-p+1,N=u-p+1,P=Math.log(M),V=.5*Math.exp(2*P/3),H=.5*Math.sqrt(P*V*(M-V)/M)*(N-M/2<0?-1:1);eBe(l,a,u,Math.max(p,Math.floor(u-N*V/M+H)),Math.min(m,Math.floor(u+(M-N)*V/M+H)),_)}let b=a[2*u+_],S=p,I=m;for(Cj(l,a,p,u),a[2*m+_]>b&&Cj(l,a,p,m);Sb;)I--}a[2*p+_]===b?Cj(l,a,p,I):(I++,Cj(l,a,I,m)),I<=u&&(p=I+1),u<=I&&(m=I-1)}}function Cj(l,a,u,p){fye(l,u,p),fye(a,2*u,2*p),fye(a,2*u+1,2*p+1)}function fye(l,a,u){let p=l[a];l[a]=l[u],l[u]=p}function tBe(l,a,u,p){let m=l-u,_=a-p;return m*m+_*_}o.$=class{constructor(l){this.specification=l}possiblyEvaluate(l,a){return function([u,p]){let m=xy([1,u,p]);return{x:m.x,y:m.y,z:m.z}}(l.expression.evaluate(a))}interpolate(l,a,u){return{x:Jr(l.x,a.x,u),y:Jr(l.y,a.y,u),z:Jr(l.z,a.z,u)}}},o.A=hi,o.B=GE,o.C=td,o.D=RP,o.E=Cv,o.F=function(l){let a=l.value,u=[];if(!a)return u;let p=wf(a);return p!=="string"?(u=u.concat([new IX(l.key,a,`string expected, "${p}" found`)]),u):(bLe(a,!0)||(u=u.concat([new IX(l.key,a,`invalid url "${a}"`)])),u)},o.G=Ge,o.H=St,o.I=AM,o.J=ft,o.K=class{constructor(l){this.specification=l}possiblyEvaluate(l,a){return xy(l.expression.evaluate(a))}interpolate(l,a,u){return{x:Jr(l.x,a.x,u),y:Jr(l.y,a.y,u),z:Jr(l.z,a.z,u),azimuthal:Jr(l.azimuthal,a.azimuthal,u),polar:Jr(l.polar,a.polar,u)}}},o.L=ot,o.M=class{constructor(l,a,u,p){this.id=l,this.position=a!=null?new Ho(a[0],a[1]):new Ho(0,0),this.orientation=u??[0,0,0],this.nodes=p,this.uploaded=!1,this.aabb=new Ta([1/0,1/0,1/0],[-1/0,-1/0,-1/0]),this.matrix=[]}_applyTransformations(l,a){if(o.a9.multiply(l.matrix,a,l.matrix),l.meshes)for(let u of l.meshes){let p=Ta.applyTransform(u.aabb,l.matrix);this.aabb.encapsulate(p)}if(l.children)for(let u of l.children)this._applyTransformations(u,l.matrix)}computeBoundsAndApplyParent(){let l=o.a9.identity([]);for(let a of this.nodes)this._applyTransformations(a,l)}computeModelMatrix(l,a,u,p,m,_,b=!1){CLe(this.matrix,this,l.transform,this.position,a,u,p,m,_,b)}upload(l){if(!this.uploaded){for(let a of this.nodes)eye(a,l);for(let a of this.nodes)TX(a);this.uploaded=!0}}destroy(){for(let l of this.nodes)tye(l)}},o.N=be,o.O=lu,o.P=cn,o.R=A1,o.S=gy,o.T=Z0e,o.U=Zt,o.V=IX,o.W=zh,o.X=Jr,o.Y=dn,o.Z=Wy,o._=ky,o.a=hE,o.a$=b1,o.a0=function(l,a,u=0,p=!0){let m=new cn(u,u),_=l.sub(m),b=a.add(m),S=[_,new cn(b.x,_.y),b,new cn(_.x,b.y)];return p&&S.push(_.clone()),S},o.a1=function(l,a){let u=[];for(let p=0;p{p(_,b)},a):p(_,b),()=>{}}return m.callbacks.push(p),m.cancel||(m.cancel=u((_,b)=>{m.result=[_,b];for(let S of m.callbacks)this.scheduler?this.scheduler.add(()=>{S(_,b)},a):S(_,b);setTimeout(()=>delete this.entries[l],3e3)})),()=>{m.result||(m.callbacks=m.callbacks.filter(_=>_!==p),m.callbacks.length||(m.cancel(),delete this.entries[l]))}}},o.aj=Ks,o.ak=function(l,a,u){let p=JSON.stringify(l.request);return l.data&&(this.deduped.entries[p]={result:[null,l.data]}),this.deduped.request(p,{type:"parseTile",isSymbolTile:l.isSymbolTile,zoom:l.tileZoom},m=>{let _=bv(l.request,(b,S,I,M)=>{b?m(b):S&&m(null,{vectorTile:u?void 0:new uF(new hb(S)),rawData:S,cacheControl:I,expires:M})});return()=>{_.cancel(),m()}},a)},o.al=function(l){iE++,iE>dP&&(l.getActor().send("enforceCacheSizeLimit",wy),iE=0)},o.am=Dd,o.an=S1,o.ao=function(l){return l<=1?1:Math.pow(2,Math.floor(Math.log(l)/Math.LN2))},o.ap=Mu,o.aq=hLe,o.ar=pLe,o.as=dLe,o.at=function(l,a){let u=document.createElement("video");u.muted=!0,u.onloadstart=function(){a(null,u)};for(let p=0;p{}}},o.au=xX,o.av=uj,o.aw=ch,o.ax=au,o.ay=$c,o.az=vc,o.b=xs,o.b$=pI,o.b0=QLe,o.b1=bv,o.b2=function(l){let a=[];for(let u in l)a.push(l[u]);return a},o.b3=function(l,a){let u=[];for(let p in l)p in a||u.push(p);return u},o.b4=QS,o.b5=["type","source","source-layer","minzoom","maxzoom","filter","layout"],o.b6=function(l,a){let{x:u,y:p}=l.point,m=h6(u,p,l.worldSize/l._pixelsPerMercatorPixel,0,0);return o.a9.multiply(m,m,fM(i_(a)))},o.b8=cI,o.b9=uh,o.bA=FZ,o.bB=function(l){let a=o.a9.identity(new Float64Array(16));o.a9.multiply(a,l.pixelMatrix,l.globeMatrix);let u=[0,Lh,0],p=[0,Bh,0];return o.Q.transformMat4(u,u,a),o.Q.transformMat4(p,p,a),[u[0]>0&&u[0]<=l.width&&u[1]>0&&u[1]<=l.height&&!p6(l,new Ho(l.center.lat,90)),p[0]>0&&p[0]<=l.width&&p[1]>0&&p[1]<=l.height&&!p6(l,new Ho(l.center.lat,-90))]},o.bC=function(l,a){let{scale:u}=l.tileTransform,p=u*dn/(l.tileSize*Math.pow(2,a.zoom-l.tileID.overscaledZ+l.tileID.canonical.z));return o.b7.scale(new Float32Array(4),a.inverseAdjustmentMatrix,[p,p])},o.bD=SX,o.bE=fLe,o.bF=function(l){let a=fLe(l,!0);return o.b7.invert([],[a[0],a[1],a[4],a[5]])},o.bG=a6,o.bH=function(l){let{x:a,y:u}=l.point,{lng:p,lat:m}=l._center;return h6(a,u,l.worldSize,p,m)},o.bI=Du,o.bJ=HP,o.bK=function(l){let a=Math.round((l+45+360)%360/90)%4;return ZS[a]},o.bL=45,o.bM=YP,o.bN=WE,o.bO=eb,o.bP=UP,o.bQ=rd,o.bR=VP,o.bS=OZ,o.bT=function(l,a,u){let p=Math.sqrt(l*l+a*a+u*u),m=p>0?Math.acos(u/p)*WS:0,_=l!==0||a!==0?Math.atan2(-a,-l)*WS+90:0;return _<0&&(_+=360),[p,_,m]},o.bU=qP,o.bV=Ta,o.bW=xy,o.bX=function(l){return[Math.pow(l[0],1/2.2),Math.pow(l[1],1/2.2),Math.pow(l[2],1/2.2)]},o.bY=function(l){return l({pluginStatus:he,pluginURL:me}),Ae.on("pluginStateChange",l),l},o.bZ=iye,o.b_=AX,o.ba=IM,o.bb=function(l,a,u,p,m){let _=5*a+2;l.float32[_+0]=u,l.float32[_+1]=p,l.float32[_+2]=m},o.bc=vX,o.bd=aX,o.be=t6,o.bf=cu,o.bg=LF,o.bh=FF,o.bi=oj,o.bj=hye,o.bk=xp,o.bm=Bo,o.bn=Em,o.bo=Nd,o.bp=function(l,a,u){l[4*a+0]=u[0],l[4*a+1]=u[1],l[4*a+2]=u[2],l[4*a+3]=u[3]},o.bq=Ho,o.br=lLe,o.bs=qU,o.bt=JP,o.bu=mLe,o.bv=sw,o.bw=u6,o.bx=function(l,a,u,p,m,_,b,S,I){if(I.name==="globe")return u6(l,a,new sw(u,p,m),!1);let M=uj({z:u,x:p,y:m},I);return new Ta([(_+M.x/M.scale)*a,a*(M.y/M.scale),b],[(_+M.x2/M.scale)*a,a*(M.y2/M.scale),S])},o.by=function(l,a,u){let p=0;for(let m=0;m<2;++m)l[m]>0&&(p+=(l[m]-0)*(l[m]-0)),a[m]<0&&(p+=(0-a[m])*(0-a[m]));return p},o.bz=bl,o.c=PLe,o.c$=[1,1,1],o.c0=DM,o.c1=vv,o.c2=_e,o.c3=x,o.c4=I1,o.c5=wv,o.c6=wp,o.c7=function(l,a,u){return l.type==="custom"?new odt(l,a):new Ldt[l.type](l,a,u)},o.c8=function(l){let a=l.indexOf(ll);return a>=0?l.slice(0,a):l},o.c9=function(l){return l.indexOf(ll)>=0},o.cA=l=>({u_matrix:new WE(l),u_pixels_to_tile_units:new HU(l),u_device_pixel_ratio:new rd(l),u_units_to_pixels:new eb(l),u_dash_image:new VP(l),u_gradient_image:new VP(l),u_image_height:new rd(l),u_texsize:new eb(l),u_tile_units_to_pixels:new rd(l),u_alpha_discard_threshold:new rd(l),u_trim_offset:new eb(l),u_emissive_strength:new rd(l)}),o.cB=l=>({u_matrix:new WE(l),u_texsize:new eb(l),u_pixels_to_tile_units:new HU(l),u_device_pixel_ratio:new rd(l),u_image:new VP(l),u_units_to_pixels:new eb(l),u_tile_units_to_pixels:new rd(l),u_alpha_discard_threshold:new rd(l),u_trim_offset:new eb(l)}),o.cC=Qy,o.cD=EM,o.cE=QQ,o.cF=rQ,o.cG=(l,a,u,p,m,_)=>{let b=l.transform,S=b.projection.name==="globe",I;if(_.paint.get("circle-pitch-alignment")==="map")if(S){let N=d6(b.zoom,a.canonical)*b._pixelsPerMercatorPixel;I=Float32Array.from([N,0,0,N])}else I=b.calculatePixelsToTileUnitsMatrix(u);else I=new Float32Array([b.pixelsToGLUnits[0],0,0,b.pixelsToGLUnits[1]]);let M={u_camera_to_center_distance:l.transform.getCameraToCenterDistance(b.projection),u_matrix:l.translatePosMatrix(a.projMatrix,u,_.paint.get("circle-translate"),_.paint.get("circle-translate-anchor")),u_device_pixel_ratio:bf.devicePixelRatio,u_extrude_scale:I,u_inv_rot_matrix:nQ,u_merc_center:[0,0],u_tile_id:[0,0,0],u_zoom_transition:0,u_up_dir:[0,0,0],u_emissive_strength:_.paint.get("circle-emissive-strength")};if(S){M.u_inv_rot_matrix=p,M.u_merc_center=m,M.u_tile_id=[a.canonical.x,a.canonical.y,1<{let b=l.transform;return{u_matrix:lI(l,a,u,p),u_texsize:a.imageAtlasTexture?a.imageAtlasTexture.size:[0,0],u_pixels_to_tile_units:b.calculatePixelsToTileUnitsMatrix(a),u_device_pixel_ratio:m,u_image:0,u_tile_units_to_pixels:j6(a,b),u_units_to_pixels:[1/b.pixelsToGLUnits[0],1/b.pixelsToGLUnits[1]],u_alpha_discard_threshold:0,u_trim_offset:_}},o.cJ=(l,a,u,p,m,_,b)=>{let S=l.transform,I=S.calculatePixelsToTileUnitsMatrix(a);return{u_matrix:lI(l,a,u,p),u_pixels_to_tile_units:I,u_device_pixel_ratio:_,u_units_to_pixels:[1/S.pixelsToGLUnits[0],1/S.pixelsToGLUnits[1]],u_dash_image:0,u_gradient_image:1,u_image_height:m,u_texsize:qQ(u)&&a.lineAtlasTexture?a.lineAtlasTexture.size:[0,0],u_tile_units_to_pixels:j6(a,l.transform),u_alpha_discard_threshold:0,u_trim_offset:b,u_emissive_strength:u.paint.get("line-emissive-strength")}},o.cK=xk,o.cL=JE,o.cM=BQ,o.cN=Zve,o.cO=vF,o.cP=s_,o.cQ=450,o.cR=7,o.cS=idt,o.cT=256,o.cU=fM,o.cV=Jy,o.cW=Xy,o.cX=RU,o.cY=function(l,a,u,p,m){return Br((l-a)/(u-a)*(m-p)+p,p,m)},o.cZ=aw,o.c_=X0e,o.ca=function(l){let a=l.indexOf(ll);return a>=0?l.slice(a+1):""},o.cb=function(l){let a=[],u=l.id;return u===void 0&&a.push({message:`layers.${u}: missing required property "id"`}),l.render===void 0&&a.push({message:`layers.${u}: missing required method "render"`}),l.renderingMode&&l.renderingMode!=="2d"&&l.renderingMode!=="3d"&&a.push({message:`layers.${u}: property "renderingMode" must be either "2d" or "3d"`}),a},o.cc=yy,o.cd=Ae,o.ce=yv,o.cf=jU,o.cg=class extends Jg{constructor(l){super(l),this.current=$ve}set(l,a,u){if(this.fetchUniformLocation(l,a)){for(let p=0;p<9;p++)if(u[p]!==this.current[p]){this.current=u,this.gl.uniformMatrix3fv(this.location,!1,u);break}}}},o.ch=my,o.ci=function(l,a,u){let p=zh(u.zoom),m=l.style.map._antialias,_=a.options.extStandardDerivativesForceOff||l.terrain&&l.terrain.exaggeration()>0;return p===0&&!m&&!_},o.cj=function(l){let a=l.pixelsPerMeter,u=a/Nd(1,l.center.lat),p=o.a9.identity(new Float64Array(16));return o.a9.translate(p,p,[l.point.x,l.point.y,0]),o.a9.scale(p,p,[u,u,a]),Float32Array.from(p)},o.ck=iF,o.cl=function(l){let a=bl-5;l=Br(l,-a,a)/a*90;let u=Math.pow(Math.abs(Math.sin(Bo(l))),3);return Math.round(u*(GP.length-1))},o.cm=function(l,a,u,p){let m=a.getNorth(),_=a.getSouth(),b=a.getWest(),S=a.getEast(),I=1<0){let Y=180/p;o.ct.multiply(H,H,[Y/M+1,0,0,0,Y/N+1,0,-.5*Y/P,.5*Y/V,1])}return H[2]=I,H[5]=l.x,H[8]=l.y,H},o.cn=i_,o.co=function(l,a,u){let p=o.a9.identity(new Float64Array(16)),m=(a/(1<1)return!1;let u=a.getSource().maxzoom,p=1<1)return a;let m=p.getSource().maxzoom,_=1<{let _=this.getAtTileOffset(l,m.x,m.y),b=p.upVector(l.canonical,m.x,m.y),S=p.upVectorScale(l.canonical,a,u).metersToTile;return o.Q.scale(b,b,_*S),b}}getForTilePoints(l,a,u,p){if(this.isUsingMockSource())return!1;let m=nI.create(this,l,p);return!!m&&(a.forEach(_=>{_[2]=this.exaggeration()*m.getElevationAt(_[0],_[1],u)}),!0)}getMinMaxForTile(l){if(this.isUsingMockSource())return null;let a=this.findDEMTileFor(l);if(!a||!a.dem)return null;let u=a.dem.tree,p=a.tileID,m=1<({u_camera_to_center_distance:new rd(l),u_extrude_scale:new HU(l),u_device_pixel_ratio:new rd(l),u_matrix:new WE(l),u_inv_rot_matrix:new WE(l),u_merc_center:new eb(l),u_tile_id:new UP(l),u_zoom_transition:new rd(l),u_up_dir:new UP(l),u_emissive_strength:new rd(l)}),o.d=sE,o.d$=SLe,o.d0=nI,o.d1=VF,o.d2=Od,o.d3=class{constructor(){this._updateTime=0,this._sourceIds=[],this._activeRegions=[],this._prevRegions=[]}clear(){this._activeRegions.length>0&&++this._updateTime,this._activeRegions=[],this._prevRegions=[]}get updateTime(){return this._updateTime}getReplacementRegionsForTile(l){let a=EQ(new cn(0,0),new cn(dn,dn),l),u=[];for(let p of this._activeRegions){if(p.hiddenByOverlap||!M6(a,p))continue;let m=IQ(p.min,p.max,l);u.push({min:m.min,max:m.max,sourceId:this._sourceIds[p.priority],footprint:p.footprint,footprintTileId:p.tileId})}return u}setSources(l){this._setSources(l.map(a=>({getSourceId:()=>a.cache.id,getFootprints:()=>{let u=[];for(let p of a.cache.getVisibleCoordinates()){let m=a.cache.getTile(p).buckets[a.layer];if(m)for(let _ of m.getNodesInfo()){let b=_.node;b.footprint&&u.push({footprint:b.footprint,id:p.toUnwrapped()})}}return u}})))}_addSource(l){let a=l.getFootprints();if(a.length!==0){for(let u of a){if(!u.footprint)continue;let p=EQ(u.footprint.min,u.footprint.max,u.id);this._activeRegions.push({min:p.min,max:p.max,hiddenByOverlap:!1,priority:this._sourceIds.length,tileId:u.id,footprint:u.footprint})}this._sourceIds.push(l.getSourceId())}}_computeReplacement(){this._activeRegions.sort((a,u)=>a.priority-u.priority||hF(a.min,u.min)||hF(a.max,u.max));let l=this._activeRegions.length!==this._prevRegions.length;if(!l){let a=0,u=0;for(;!l&&a!==this._activeRegions.length;){let p=this._activeRegions[a],m=this._prevRegions[u];l=p.priority!==m.priority||!SQ(p,m),++a,++u}}if(l){++this._updateTime;let a=u=>{let p=this._activeRegions;if(u>=p.length)return u;let m=p[u].priority;for(;u1){let u=0,p=a(u);for(;u!==p;){let m=u,_=u;for(;m!==p;){let b=this._activeRegions[m];b.hiddenByOverlap=!1;for(let S=0;S<_;S++){let I=this._activeRegions[S];if(!I.hiddenByOverlap&&M6(b,I)&&(b.hiddenByOverlap=AQ(b.footprint,b.tileId,I.footprint,I.tileId),b.hiddenByOverlap))break}++m}u=p,p=a(u)}}}}_setSources(l){[this._prevRegions,this._activeRegions]=[this._activeRegions,[]],this._sourceIds=[];for(let a=l.length-1;a>=0;a--)this._addSource(l[a]);this._computeReplacement()}},o.d4=class{constructor(l){this._createGrid(l),this._createPoles(l)}destroy(){this._poleIndexBuffer.destroy(),this._gridBuffer.destroy(),this._gridIndexBuffer.destroy(),this._poleNorthVertexBuffer.destroy(),this._poleSouthVertexBuffer.destroy();for(let l of this._poleSegments)l.destroy();for(let l of this._gridSegments)l.withSkirts.destroy(),l.withoutSkirts.destroy()}_fillGridMeshWithLods(l,a){let u=new qc,p=new vc,m=[],_=l+1+2,b=a[0]+1,S=a[0]+1+(1+a.length),I=(M,N,P)=>{let V=M===_-1?M-2:M===0?M:M-1;return V+=P?24575:0,[V,N]};for(let M=0;M<_;++M)u.emplaceBack(...I(M,0,!0));for(let M=0;Ml())},o.dC=gj,o.dD=ELe,o.dE=function(l){rye=bf.resolveURL(l),jF||(jF=new iye(AX(),new Cv)),jF.broadcast("setDracoUrl",rye)},o.dF=ILe,o.dG=function(l){UF=bf.resolveURL(l),jF||(jF=new iye(AX(),new Cv)),jF.broadcast("setMeshoptUrl",UF)},o.dH=An,o.dI=r_,o.dJ=Fm,o.dK=FLe,o.dL=BLe,o.dM=z6,o.dN=vy,o.dO=lX,o.dP=function(l,a,u,p,m,_,b,S,I,M,N){l.createArrays(),l.tilePixelRatio=dn/(512*l.overscaling),l.compareText={},l.iconsNeedLinear=!1;let P=l.layers[0].layout,V=l.layers[0]._unevaluatedLayout._values,H={};if(l.textSizeData.kind==="composite"){let{minZoom:ue,maxZoom:Te}=l.textSizeData;H.compositeTextSizes=[V["text-size"].possiblyEvaluate(new be(ue),S),V["text-size"].possiblyEvaluate(new be(Te),S)]}if(l.iconSizeData.kind==="composite"){let{minZoom:ue,maxZoom:Te}=l.iconSizeData;H.compositeIconSizes=[V["icon-size"].possiblyEvaluate(new be(ue),S),V["icon-size"].possiblyEvaluate(new be(Te),S)]}H.layoutTextSize=V["text-size"].possiblyEvaluate(new be(I+1),S),H.layoutIconSize=V["icon-size"].possiblyEvaluate(new be(I+1),S),H.textMaxSize=V["text-size"].possiblyEvaluate(new be(18),S);let Y=P.get("text-rotation-alignment")==="map"&&P.get("symbol-placement")!=="point",W=P.get("text-size"),re=!1;for(let ue of l.features)if(ue.icon&&ue.icon.nameSecondary){re=!0;break}for(let ue of l.features){let Te=P.get("text-font").evaluate(ue,{},S).join(","),Pe=W.evaluate(ue,{},S),De=H.layoutTextSize.evaluate(ue,{},S),tt=(H.layoutIconSize.evaluate(ue,{},S),{horizontal:{},vertical:void 0}),Ye=ue.text,at,_t=[0,0];if(Ye){let Bt=Ye.toString(),si=P.get("text-letter-spacing").evaluate(ue,{},S)*cu,oi=P.get("text-line-height").evaluate(ue,{},S)*cu,ei=y(Bt)?si:0,wi=P.get("text-anchor").evaluate(ue,{},S),vi=P.get("text-variable-anchor");if(!vi){let Dn=P.get("text-radial-offset").evaluate(ue,{},S);_t=Dn?FF(wi,[Dn*cu,kM]):P.get("text-offset").evaluate(ue,{},S).map(Ri=>Ri*cu)}let Ti=Y?"center":P.get("text-justify").evaluate(ue,{},S),Ei=P.get("symbol-placement")==="point",ci=Ei?P.get("text-max-width").evaluate(ue,{},S)*cu:1/0,zn=Dn=>{l.allowVerticalPlacement&&f(Bt)&&(tt.vertical=nj(Ye,a,u,m,Te,ci,oi,wi,Dn,ei,_t,uh.vertical,!0,De,Pe))};if(!Y&&vi){let Dn=Ti==="auto"?vi.map(cr=>LF(cr)):[Ti],Ri=!1;for(let cr=0;cr=0||!f(Bt)){let Dn=nj(Ye,a,u,m,Te,ci,oi,wi,Ti,ei,_t,uh.horizontal,!1,De,Pe);Dn&&(tt.horizontal[Ti]=Dn)}zn(Ei?"left":Ti)}}let Mt=!1;if(ue.icon&&ue.icon.namePrimary){let Bt=p[ue.icon.namePrimary];Bt&&(at=U0e(m[ue.icon.namePrimary],ue.icon.nameSecondary?m[ue.icon.nameSecondary]:void 0,P.get("icon-offset").evaluate(ue,{},S),P.get("icon-anchor").evaluate(ue,{},S)),Mt=Bt.sdf,l.sdfIcons===void 0?l.sdfIcons=Bt.sdf:l.sdfIcons!==Bt.sdf&&ja("Style sheet warning: Cannot mix SDF and non-SDF icons in one buffer"),(Bt.pixelRatio!==l.pixelRatio||P.get("icon-rotate").constantOr(1)!==0)&&(l.iconsNeedLinear=!0))}let Jt=tLe(tt.horizontal)||tt.vertical;l.iconsInText||(l.iconsInText=!!Jt&&Jt.iconsInText),(Jt||at)&&cj(l,ue,tt,at,p,H,De,0,_t,Mt,b,S,M,N,re)}_&&l.generateCollisionDebugBuffers(I,l.collisionBoxArray)},o.dQ=uF,o.dR=hb,o.dS=wM,o.dT=iI,o.dU=xM,o.dV=KS,o.dW=Z6,o.dX=L,o.dY=function(l){let a=0;if(new Uint32Array(l,0,1)[0]!==ALe){let u=new Uint32Array(l,0,7),[,,p,m,_,b]=u;a=u.byteLength+m+_+b+_,(p!==l.byteLength||a>=l.byteLength)&&ja("Invalid b3dm header information.")}return OLe(l,a)},o.dZ=function(l,a){let u=PLe(l);for(let p of u){for(let m of p.meshes)Mdt(m);p.lights&&(p.lightMeshIndex=p.meshes.length,p.meshes.push(Odt(p.lights,a)))}return u},o.d_=OX,o.da=rb,o.db=function([l,a,u]){let p=Math.hypot(l,a,u),m=Math.atan2(l,u),_=.5*Math.PI-Math.acos(-a/p);return new Ho(Du(m),Du(_))},o.dc=Rl,o.dd=h,o.de=p6,o.df=eQ,o.dg=function(l){let a=[0,0,0],u=o.a9.identity(new Float64Array(16));return o.a9.multiply(u,l.pixelMatrix,l.globeMatrix),o.Q.transformMat4(a,a,u),new cn(a[0],a[1])},o.dh=function(l){let a=l.navigator?l.navigator.userAgent:null;return!!function(u){if(JS==null){let p=u.navigator?u.navigator.userAgent:null;JS=!!u.safari||!(!p||!(/\b(iPad|iPhone|iPod)\b/.test(p)||p.match("Safari")&&!p.match("Chrome")))}return JS}(l)&&a&&(a.match("Version/15.4")||a.match("Version/15.5")||a.match(/CPU (OS|iPhone OS) (15_4|15_5) like Mac OS X/))},o.di=class{constructor(l,a,u){this._transformRequestFn=l,this._customAccessToken=a,this._silenceAuthErrors=!!u,this._createSkuToken()}_createSkuToken(){let l=function(){let a="";for(let u=0;u<10;u++)a+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[Math.floor(62*Math.random())];return{token:["1",k1,a].join(""),tokenExpiresAt:Date.now()+432e5}}();this._skuToken=l.token,this._skuTokenExpiresAt=l.tokenExpiresAt}_isSkuTokenExpired(){return Date.now()>this._skuTokenExpiresAt}transformRequest(l,a){return this._transformRequestFn&&this._transformRequestFn(l,a)||{url:l}}normalizeStyleURL(l,a){if(!x(l))return l;let u=oh(l);return u.params.push(`sdk=js-${s}`),u.path=`/styles/v1${u.path}`,this._makeAPIURL(u,this._customAccessToken||a)}normalizeGlyphsURL(l,a){if(!x(l))return l;let u=oh(l);return u.path=`/fonts/v1${u.path}`,this._makeAPIURL(u,this._customAccessToken||a)}normalizeModelURL(l,a){if(!x(l))return l;let u=oh(l);return u.path=`/models/v1${u.path}`,this._makeAPIURL(u,this._customAccessToken||a)}normalizeSourceURL(l,a,u,p){if(!x(l))return l;let m=oh(l);return m.path=`/v4/${m.authority}.json`,m.params.push("secure"),u&&m.params.push(`language=${u}`),p&&m.params.push(`worldview=${p}`),this._makeAPIURL(m,this._customAccessToken||a)}normalizeSpriteURL(l,a,u,p){let m=oh(l);return x(l)?(m.path=`/styles/v1${m.path}/sprite${a}${u}`,this._makeAPIURL(m,this._customAccessToken||p)):(m.path+=`${a}${u}`,xv(m))}normalizeTileURL(l,a,u){if(this._isSkuTokenExpired()&&this._createSkuToken(),l&&!x(l))return l;let p=oh(l);p.path=p.path.replace(/(\.(png|jpg)\d*)(?=$)/,`${a||u&&p.authority!=="raster"&&u===512?"@2x":""}${_v.supported?".webp":"$1"}`),p.authority==="raster"?p.path=`/${h.RASTER_URL_PREFIX}${p.path}`:p.authority==="rasterarrays"?p.path=`/${h.RASTERARRAYS_URL_PREFIX}${p.path}`:(p.path=p.path.replace(/^.+\/v4\//,"/"),p.path=`/${h.TILE_URL_VERSION}${p.path}`);let m=this._customAccessToken||function(_){for(let b of _){let S=b.match(/^access_token=(.*)$/);if(S)return S[1]}return null}(p.params)||h.ACCESS_TOKEN;return h.REQUIRE_ACCESS_TOKEN&&m&&this._skuToken&&p.params.push(`sku=${this._skuToken}`),this._makeAPIURL(p,m)}canonicalizeTileURL(l,a){let u=oh(l);if(!u.path.match(/^(\/v4\/|\/(raster|rasterarrays)\/v1\/)/)||!u.path.match(/\.[\w]+$/))return l;let p="mapbox://";u.path.match(/^\/raster\/v1\//)?p+=`raster/${u.path.replace(`/${h.RASTER_URL_PREFIX}/`,"")}`:u.path.match(/^\/rasterarrays\/v1\//)?p+=`rasterarrays/${u.path.replace(`/${h.RASTERARRAYS_URL_PREFIX}/`,"")}`:p+=`tiles/${u.path.replace(`/${h.TILE_URL_VERSION}/`,"")}`;let m=u.params;return a&&(m=m.filter(_=>!_.match(/^access_token=/))),m.length&&(p+=`?${m.join("&")}`),p}canonicalizeTileset(l,a){let u=!!a&&x(a),p=[];for(let m of l.tiles||[])g(m)?p.push(this.canonicalizeTileURL(m,u)):p.push(m);return p}_makeAPIURL(l,a){let u="See https://docs.mapbox.com/api/overview/#access-tokens-and-token-scopes",p=oh(h.API_URL);if(l.protocol=p.protocol,l.authority=p.authority,l.protocol==="http"){let m=l.params.indexOf("secure");m>=0&&l.params.splice(m,1)}if(p.path!=="/"&&(l.path=`${p.path}${l.path}`),!h.REQUIRE_ACCESS_TOKEN)return xv(l);if(a=a||h.ACCESS_TOKEN,!this._silenceAuthErrors){if(!a)throw new Error(`An API access token is required to use Mapbox GL. ${u}`);if(a[0]==="s")throw new Error(`Use a public access token (pk.*) with Mapbox GL, not a secret access token (sk.*). ${u}`)}return l.params=l.params.filter(m=>m.indexOf("access_token")===-1),l.params.push(`access_token=${a||""}`),xv(l)}},o.dj=function(l,a){a?cE.add(l):cE.delete(l)},o.dk=_v,o.dl=Ms,o.dm=Ak,o.dn=M1,o.dp=ku,o.dq=pP,o.dr=function(l){cE.delete(l)},o.ds=lE,o.dt=Tm,o.du=s,o.dv=function(l,a){wy=l,dP=a},o.dw=function(l,a,u=!1){if(he===G||he===$||he===Q)throw new Error("setRTLTextPlugin cannot be called multiple times.");me=bf.resolveURL(l),he=G,te=a,ye(),u||He()},o.dx=je,o.dy=function(){AX().acquire(nye)},o.dz=function(){let l=vj;l&&(l.isPreloaded()&&l.numActive()===1?(l.release(nye),vj=null):console.warn("Could not clear WebWorkers since there are active Map instances that still reference it. The pre-warmed WebWorker pool can only be cleared when all map instances have been removed with map.remove()"))},o.e=ih,o.e0=Ze,o.e1=function(l){Cy(),Im&&Im.then(a=>{a.keys().then(u=>{for(let p=0;pa.arrayBuffer()).then(a=>OLe(a,0,l))},o.m=X1,o.n=iM,o.o=$y,o.p=RF,o.q=$t,o.r=qE,o.s=Yy,o.t=Zg,o.u=jt,o.v=Y1,o.w=ja,o.x=q1,o.y=Om}),i(["./shared"],function(o){"use strict";function s(qe){let ge=qe?qe.url.toString():void 0;return ge?performance.getEntriesByName(ge):[]}function c(qe){if(typeof qe=="number"||typeof qe=="boolean"||typeof qe=="string"||qe==null)return JSON.stringify(qe);if(Array.isArray(qe)){let de="[";for(let we of qe)de+=`${c(we)},`;return`${de}]`}let ge="{";for(let de of Object.keys(qe).sort())ge+=`${de}:${c(qe[de])},`;return`${ge}}`}function h(qe){let ge="";for(let de of o.b5)ge+=`/${c(qe[de])}`;return ge}class g{constructor(ge){this.keyCache={},this._layers={},this._layerConfigs={},ge&&this.replace(ge)}replace(ge,de){this._layerConfigs={},this._layers={},this.update(ge,[],de)}update(ge,de,we){this._options=we;for(let rt of ge)this._layerConfigs[rt.id]=rt,(this._layers[rt.id]=o.c7(rt,this.scope,this._options)).compileFilter(),this.keyCache[rt.id]&&delete this.keyCache[rt.id];for(let rt of de)delete this.keyCache[rt],delete this._layerConfigs[rt],delete this._layers[rt];this.familiesBySource={};let Je=function(rt,vt){let ti={};for(let di=0;dithis._layers[_i.id]),ti=vt[0];if(ti.visibility==="none")continue;let Tt=ti.source||"",di=this.familiesBySource[Tt];di||(di=this.familiesBySource[Tt]={});let li=ti.sourceLayer||"_geojsonTileLayer",bi=di[li];bi||(bi=di[li]=[]),bi.push(vt)}}}let x=1*o.dJ;class C{constructor(ge){let de={},we=[];for(let ti in ge){let Tt=ge[ti],di=de[ti]={};for(let li in Tt.glyphs){let bi=Tt.glyphs[+li];if(!bi||bi.bitmap.width===0||bi.bitmap.height===0)continue;let _i=bi.metrics.localGlyph?x:1,yr={x:0,y:0,w:bi.bitmap.width+2*_i,h:bi.bitmap.height+2*_i};we.push(yr),di[li]=yr}}let{w:Je,h:rt}=o.p(we),vt=new o.dI({width:Je||1,height:rt||1});for(let ti in ge){let Tt=ge[ti];for(let di in Tt.glyphs){let li=Tt.glyphs[+di];if(!li||li.bitmap.width===0||li.bitmap.height===0)continue;let bi=de[ti][di],_i=li.metrics.localGlyph?x:1;o.dI.copy(li.bitmap,vt,{x:0,y:0},{x:bi.x+_i,y:bi.y+_i},li.bitmap)}}this.image=vt,this.positions=de}}o.dH(C,"GlyphAtlas");class A{constructor(ge){this.tileID=new o.ap(ge.tileID.overscaledZ,ge.tileID.wrap,ge.tileID.canonical.z,ge.tileID.canonical.x,ge.tileID.canonical.y),this.tileZoom=ge.tileZoom,this.uid=ge.uid,this.zoom=ge.zoom,this.canonical=ge.tileID.canonical,this.pixelRatio=ge.pixelRatio,this.tileSize=ge.tileSize,this.source=ge.source,this.scope=ge.scope,this.overscaling=this.tileID.overscaleFactor(),this.showCollisionBoxes=ge.showCollisionBoxes,this.collectResourceTiming=!!ge.collectResourceTiming,this.promoteId=ge.promoteId,this.isSymbolTile=ge.isSymbolTile,this.tileTransform=o.av(ge.tileID.canonical,ge.projection),this.projection=ge.projection,this.brightness=ge.brightness,this.extraShadowCaster=!!ge.extraShadowCaster}parse(ge,de,we,Je,rt){this.status="parsing",this.data=ge,this.collisionBoxArray=new o.aG;let vt=new o.dK(Object.keys(ge.layers).sort()),ti=new o.dL(this.tileID,this.promoteId);ti.bucketLayerIDs=[];let Tt={},di=new o.dM(256,256),li={featureIndex:ti,iconDependencies:{},patternDependencies:{},glyphDependencies:{},lineAtlas:di,availableImages:we,brightness:this.brightness},bi=de.familiesBySource[this.source];for(let Dt in bi){let pi=ge.layers[Dt];if(!pi)continue;let In=!1,fn=!1,Mr=!1;for(let Oo of bi[Dt])Oo[0].type==="symbol"?In=!0:fn=!0,Oo[0].is3D()&&Oo[0].type!=="model"&&(Mr=!0);if(this.extraShadowCaster&&!Mr||this.isSymbolTile===!0&&!In||this.isSymbolTile===!1&&!fn)continue;pi.version===1&&o.w(`Vector tile source "${this.source}" layer "${Dt}" does not use vector tile spec v2 and therefore may have some rendering errors.`);let br=vt.encode(Dt),Xr=[];for(let Oo=0;Oo=ls.maxzoom||ls.visibility!=="none"&&(k(Oo,this.zoom,li.brightness,we),(Tt[ls.id]=ls.createBucket({index:ti.bucketLayerIDs.length,layers:Oo,zoom:this.zoom,canonical:this.canonical,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:br,sourceID:this.source,projection:this.projection.spec})).populate(Xr,li,this.tileID.canonical,this.tileTransform),ti.bucketLayerIDs.push(Oo.map(Vt=>Vt.id))))}}let _i,yr,mr,Qr;di.trim();let Lr={type:"maybePrepare",isSymbolTile:this.isSymbolTile,zoom:this.zoom},ao=()=>{if(_i)return this.status="done",rt(_i);if(this.extraShadowCaster)this.status="done",rt(null,{buckets:o.b2(Tt).filter(Dt=>!Dt.isEmpty()),featureIndex:ti,collisionBoxArray:null,glyphAtlasImage:null,lineAtlas:null,imageAtlas:null,brightness:li.brightness,glyphMap:null,iconMap:null,glyphPositions:null});else if(yr&&mr&&Qr){let Dt=new C(yr),pi=new o.dO(mr,Qr);for(let In in Tt){let fn=Tt[In];fn instanceof o.aH?(k(fn.layers,this.zoom,li.brightness,we),o.dP(fn,yr,Dt.positions,mr,pi.iconPositions,this.showCollisionBoxes,we,this.tileID.canonical,this.tileZoom,this.projection,this.brightness)):fn.hasPattern&&(fn instanceof o.aN||fn instanceof o.aO||fn instanceof o.cO)&&(k(fn.layers,this.zoom,li.brightness,we),fn.addFeatures(li,this.tileID.canonical,pi.patternPositions,we,this.tileTransform,this.brightness))}this.status="done",rt(null,{buckets:o.b2(Tt).filter(In=>!In.isEmpty()),featureIndex:ti,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:Dt.image,lineAtlas:di,imageAtlas:pi,brightness:li.brightness})}};if(!this.extraShadowCaster){let Dt=o.dN(li.glyphDependencies,fn=>Object.keys(fn).map(Number));Object.keys(Dt).length?Je.send("getGlyphs",{uid:this.uid,stacks:Dt,scope:this.scope},(fn,Mr)=>{_i||(_i=fn,yr=Mr,ao())},void 0,!1,Lr):yr={};let pi=Object.keys(li.iconDependencies);pi.length?Je.send("getImages",{icons:pi,source:this.source,scope:this.scope,tileID:this.tileID,type:"icons"},(fn,Mr)=>{_i||(_i=fn,mr=Mr,ao())},void 0,!1,Lr):mr={};let In=Object.keys(li.patternDependencies);In.length?Je.send("getImages",{icons:In,source:this.source,scope:this.scope,tileID:this.tileID,type:"patterns"},(fn,Mr)=>{_i||(_i=fn,Qr=Mr,ao())},void 0,!1,Lr):Qr={}}ao()}}function k(qe,ge,de,we){let Je=new o.N(ge,{brightness:de});for(let rt of qe)rt.recalculate(Je,we)}class O extends o.E{constructor(ge,de,we,Je,rt,vt){super(),this.actor=ge,this.layerIndex=de,this.availableImages=we,this.loadVectorData=rt||o.ak,this.loading={},this.loaded={},this.deduped=new o.ai(ge.scheduler),this.isSpriteLoaded=Je,this.scheduler=ge.scheduler,this.brightness=vt}loadTile(ge,de){let we=ge.uid,Je=ge&&ge.request,rt=Je&&Je.collectResourceTiming,vt=this.loading[we]=new A(ge);vt.abort=this.loadVectorData(ge,(ti,Tt)=>{let di=!this.loading[we];if(delete this.loading[we],di||ti||!Tt)return vt.status="done",di||(this.loaded[we]=vt),de(ti);let li=Tt.rawData,bi={};Tt.expires&&(bi.expires=Tt.expires),Tt.cacheControl&&(bi.cacheControl=Tt.cacheControl),vt.vectorTile=Tt.vectorTile||new o.dQ(new o.dR(li));let _i=()=>{vt.parse(vt.vectorTile,this.layerIndex,this.availableImages,this.actor,(yr,mr)=>{if(yr||!mr)return de(yr);let Qr={};if(rt){let Lr=s(Je);Lr.length>0&&(Qr.resourceTiming=JSON.parse(JSON.stringify(Lr)))}de(null,o.e({rawTileData:li.slice(0)},mr,bi,Qr))})};this.isSpriteLoaded?_i():this.once("isSpriteLoaded",()=>{this.scheduler?this.scheduler.add(_i,{type:"parseTile",isSymbolTile:ge.isSymbolTile,zoom:ge.tileZoom}):_i()}),this.loaded=this.loaded||{},this.loaded[we]=vt})}reloadTile(ge,de){let we=this.loaded,Je=ge.uid,rt=this;if(we&&we[Je]){let vt=we[Je];vt.showCollisionBoxes=ge.showCollisionBoxes,vt.projection=ge.projection,vt.brightness=ge.brightness,vt.tileTransform=o.av(ge.tileID.canonical,ge.projection),vt.extraShadowCaster=ge.extraShadowCaster;let ti=(Tt,di)=>{let li=vt.reloadCallback;li&&(delete vt.reloadCallback,vt.parse(vt.vectorTile,rt.layerIndex,this.availableImages,rt.actor,li)),de(Tt,di)};vt.status==="parsing"?vt.reloadCallback=ti:vt.status==="done"&&(vt.vectorTile?vt.parse(vt.vectorTile,this.layerIndex,this.availableImages,this.actor,ti):ti())}else de(null,void 0)}abortTile(ge,de){let we=ge.uid,Je=this.loading[we];Je&&(Je.abort&&Je.abort(),delete this.loading[we]),de()}removeTile(ge,de){let we=this.loaded,Je=ge.uid;we&&we[Je]&&delete we[Je],de()}}class F{loadTile(ge,de){let{uid:we,encoding:Je,rawImageData:rt,padding:vt}=ge,ti=ImageBitmap&&rt instanceof ImageBitmap?this.getImageData(rt,vt):rt;de(null,new o.dS(we,ti,Je,vt<1))}getImageData(ge,de){this.offscreenCanvas&&this.offscreenCanvasContext||(this.offscreenCanvas=new OffscreenCanvas(ge.width,ge.height),this.offscreenCanvasContext=this.offscreenCanvas.getContext("2d",{willReadFrequently:!0})),this.offscreenCanvas.width=ge.width,this.offscreenCanvas.height=ge.height,this.offscreenCanvasContext.drawImage(ge,0,0,ge.width,ge.height);let we=this.offscreenCanvasContext.getImageData(-de,-de,ge.width+2*de,ge.height+2*de);return this.offscreenCanvasContext.clearRect(0,0,this.offscreenCanvas.width,this.offscreenCanvas.height),we}}class L{decodeRasterArray({task:ge,buffer:de},we){o.b0.performDecoding(de,ge).then(Je=>{we(null,Je)},Je=>{we(Je)})}}let z=o.dT.prototype.toGeoJSON,j=class{constructor(qe){this._feature=qe,this.extent=o.Y,this.type=qe.type,this.properties=qe.tags,"id"in qe&&!isNaN(qe.id)&&(this.id=parseInt(qe.id,10))}loadGeometry(){if(this._feature.type===1){let qe=[];for(let ge of this._feature.geometry)qe.push([new o.P(ge[0],ge[1])]);return qe}{let qe=[];for(let ge of this._feature.geometry){let de=[];for(let we of ge)de.push(new o.P(we[0],we[1]));qe.push(de)}return qe}}toGeoJSON(qe,ge,de){return z.call(this,qe,ge,de)}},K=class{constructor(qe){this.layers={_geojsonTileLayer:this},this.name="_geojsonTileLayer",this.extent=o.Y,this.length=qe.length,this._features=qe}feature(qe){return new j(this._features[qe])}};var ee={exports:{}},ne=o.dV,X=o.dU.VectorTileFeature,q=fe;function fe(qe,ge){this.options=ge||{},this.features=qe,this.length=qe.length}function Se(qe,ge){this.id=typeof qe.id=="number"?qe.id:void 0,this.type=qe.type,this.rawGeometry=qe.type===1?[qe.geometry]:qe.geometry,this.properties=qe.tags,this.extent=ge||4096}fe.prototype.feature=function(qe){return new Se(this.features[qe],this.options.extent)},Se.prototype.loadGeometry=function(){var qe=this.rawGeometry;this.geometry=[];for(var ge=0;ge>31}function Be(qe,ge){for(var de=qe.loadGeometry(),we=qe.type,Je=0,rt=0,vt=de.length,ti=0;tiqe},Xe=Math.fround||(ze=new Float32Array(1),qe=>(ze[0]=+qe,ze[0]));var ze;let et=3,Pt=5,Ii=6;class Gt{constructor(ge){this.options=Object.assign(Object.create(Fe),ge),this.trees=new Array(this.options.maxZoom+1),this.stride=this.options.reduce?7:6,this.clusterProps=[]}load(ge){let{log:de,minZoom:we,maxZoom:Je}=this.options;de&&console.time("total time");let rt=`prepare ${ge.length} points`;de&&console.time(rt),this.points=ge;let vt=[];for(let Tt=0;Tt=we;Tt--){let di=+Date.now();ti=this.trees[Tt]=this._createTree(this._cluster(ti,Tt)),de&&console.log("z%d: %d clusters in %dms",Tt,ti.numItems,+Date.now()-di)}return de&&console.timeEnd("total time"),this}getClusters(ge,de){let we=((ge[0]+180)%360+360)%360-180,Je=Math.max(-90,Math.min(90,ge[1])),rt=ge[2]===180?180:((ge[2]+180)%360+360)%360-180,vt=Math.max(-90,Math.min(90,ge[3]));if(ge[2]-ge[0]>=360)we=-180,rt=180;else if(we>rt){let bi=this.getClusters([we,Je,180,vt],de),_i=this.getClusters([-180,Je,rt,vt],de);return bi.concat(_i)}let ti=this.trees[this._limitZoom(de)],Tt=ti.range(en(we),ir(vt),en(rt),ir(Je)),di=ti.data,li=[];for(let bi of Tt){let _i=this.stride*bi;li.push(di[_i+Pt]>1?ji(di,_i,this.clusterProps):this.points[di[_i+et]])}return li}getChildren(ge){let de=this._getOriginId(ge),we=this._getOriginZoom(ge),Je="No cluster with the specified id.",rt=this.trees[we];if(!rt)throw new Error(Je);let vt=rt.data;if(de*this.stride>=vt.length)throw new Error(Je);let ti=this.options.radius/(this.options.extent*Math.pow(2,we-1)),Tt=rt.within(vt[de*this.stride],vt[de*this.stride+1],ti),di=[];for(let li of Tt){let bi=li*this.stride;vt[bi+4]===ge&&di.push(vt[bi+Pt]>1?ji(vt,bi,this.clusterProps):this.points[vt[bi+et]])}if(di.length===0)throw new Error(Je);return di}getLeaves(ge,de,we){let Je=[];return this._appendLeaves(Je,ge,de=de||10,we=we||0,0),Je}getTile(ge,de,we){let Je=this.trees[this._limitZoom(ge)],rt=Math.pow(2,ge),{extent:vt,radius:ti}=this.options,Tt=ti/vt,di=(we-Tt)/rt,li=(we+1+Tt)/rt,bi={features:[]};return this._addTileFeatures(Je.range((de-Tt)/rt,di,(de+1+Tt)/rt,li),Je.data,de,we,rt,bi),de===0&&this._addTileFeatures(Je.range(1-Tt/rt,di,1,li),Je.data,rt,we,rt,bi),de===rt-1&&this._addTileFeatures(Je.range(0,di,Tt/rt,li),Je.data,-1,we,rt,bi),bi.features.length?bi:null}getClusterExpansionZoom(ge){let de=this._getOriginZoom(ge)-1;for(;de<=this.options.maxZoom;){let we=this.getChildren(ge);if(de++,we.length!==1)break;ge=we[0].properties.cluster_id}return de}_appendLeaves(ge,de,we,Je,rt){let vt=this.getChildren(de);for(let ti of vt){let Tt=ti.properties;if(Tt&&Tt.cluster?rt+Tt.point_count<=Je?rt+=Tt.point_count:rt=this._appendLeaves(ge,Tt.cluster_id,we,Je,rt):rt1,li,bi,_i;if(di)li=an(de,Tt,this.clusterProps),bi=de[Tt],_i=de[Tt+1];else{let Qr=this.points[de[Tt+et]];li=Qr.properties;let[Lr,ao]=Qr.geometry.coordinates;bi=en(Lr),_i=ir(ao)}let yr={type:1,geometry:[[Math.round(this.options.extent*(bi*rt-we)),Math.round(this.options.extent*(_i*rt-Je))]],tags:li},mr;mr=di||this.options.generateId?de[Tt+et]:this.points[de[Tt+et]].id,mr!==void 0&&(yr.id=mr),vt.features.push(yr)}}_limitZoom(ge){return Math.max(this.options.minZoom,Math.min(Math.floor(+ge),this.options.maxZoom+1))}_cluster(ge,de){let{radius:we,extent:Je,reduce:rt,minPoints:vt}=this.options,ti=we/(Je*Math.pow(2,de)),Tt=ge.data,di=[],li=this.stride;for(let bi=0;bide&&(Lr+=Tt[Dt+Pt])}if(Lr>Qr&&Lr>=vt){let ao,Dt=_i*Qr,pi=yr*Qr,In=-1,fn=(bi/li<<5)+(de+1)+this.points.length;for(let Mr of mr){let br=Mr*li;if(Tt[br+2]<=de)continue;Tt[br+2]=de;let Xr=Tt[br+Pt];Dt+=Tt[br]*Xr,pi+=Tt[br+1]*Xr,Tt[br+4]=fn,rt&&(ao||(ao=this._map(Tt,bi,!0),In=this.clusterProps.length,this.clusterProps.push(ao)),rt(ao,this._map(Tt,br)))}Tt[bi+4]=fn,di.push(Dt/Lr,pi/Lr,1/0,fn,-1,Lr),rt&&di.push(In)}else{for(let ao=0;ao1)for(let ao of mr){let Dt=ao*li;if(!(Tt[Dt+2]<=de)){Tt[Dt+2]=de;for(let pi=0;pi>5}_getOriginZoom(ge){return(ge-this.points.length)%32}_map(ge,de,we){if(ge[de+Pt]>1){let vt=this.clusterProps[ge[de+Ii]];return we?Object.assign({},vt):vt}let Je=this.points[ge[de+et]].properties,rt=this.options.map(Je);return we&&rt===Je?Object.assign({},rt):rt}}function ji(qe,ge,de){return{type:"Feature",id:qe[ge+et],properties:an(qe,ge,de),geometry:{type:"Point",coordinates:[(we=qe[ge],360*(we-.5)),ve(qe[ge+1])]}};var we}function an(qe,ge,de){let we=qe[ge+Pt],Je=we>=1e4?`${Math.round(we/1e3)}k`:we>=1e3?Math.round(we/100)/10+"k":we,rt=qe[ge+Ii],vt=rt===-1?{}:Object.assign({},de[rt]);return Object.assign(vt,{cluster:!0,cluster_id:qe[ge+et],point_count:we,point_count_abbreviated:Je})}function en(qe){return qe/360+.5}function ir(qe){let ge=Math.sin(qe*Math.PI/180),de=.5-.25*Math.log((1+ge)/(1-ge))/Math.PI;return de<0?0:de>1?1:de}function ve(qe){let ge=(180-360*qe)*Math.PI/180;return 360*Math.atan(Math.exp(ge))/Math.PI-90}var Qt={exports:{}};Qt.exports=function(){function qe(Vt,ui,Ci,qi){for(var $i,ln=qi,rn=Ci-ui>>1,Ui=Ci-ui,pn=Vt[ui],Ji=Vt[ui+1],Jn=Vt[Ci],uo=Vt[Ci+1],Sn=ui+3;Snln)$i=Sn,ln=Ko;else if(Ko===ln){var za=Math.abs(Sn-rn);zaqi&&($i-ui>3&&qe(Vt,ui,$i,qi),Vt[$i+2]=ln,Ci-$i>3&&qe(Vt,$i,Ci,qi))}function ge(Vt,ui,Ci,qi,$i,ln){var rn=$i-Ci,Ui=ln-qi;if(rn!==0||Ui!==0){var pn=((Vt-Ci)*rn+(ui-qi)*Ui)/(rn*rn+Ui*Ui);pn>1?(Ci=$i,qi=ln):pn>0&&(Ci+=rn*pn,qi+=Ui*pn)}return(rn=Vt-Ci)*rn+(Ui=ui-qi)*Ui}function de(Vt,ui,Ci,qi){var $i={id:Vt===void 0?null:Vt,type:ui,geometry:Ci,tags:qi,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return function(ln){var rn=ln.geometry,Ui=ln.type;if(Ui==="Point"||Ui==="MultiPoint"||Ui==="LineString")we(ln,rn);else if(Ui==="Polygon"||Ui==="MultiLineString")for(var pn=0;pn0&&(rn+=qi?($i*Ji-pn*ln)/2:Math.sqrt(Math.pow(pn-$i,2)+Math.pow(Ji-ln,2))),$i=pn,ln=Ji}var Jn=ui.length-3;ui[2]=1,qe(ui,0,Jn,Ci),ui[Jn+2]=1,ui.size=Math.abs(rn),ui.start=0,ui.end=ui.size}function ti(Vt,ui,Ci,qi){for(var $i=0;$i1?1:Ci}function li(Vt,ui,Ci,qi,$i,ln,rn,Ui){if(qi/=ui,ln>=(Ci/=ui)&&rn=qi)return null;for(var pn=[],Ji=0;Ji=Ci&&za=qi)){var Va=[];if(Sn==="Point"||Sn==="MultiPoint")bi(uo,Va,Ci,qi,$i);else if(Sn==="LineString")_i(uo,Va,Ci,qi,$i,!1,Ui.lineMetrics);else if(Sn==="MultiLineString")mr(uo,Va,Ci,qi,$i,!1);else if(Sn==="Polygon")mr(uo,Va,Ci,qi,$i,!0);else if(Sn==="MultiPolygon")for(var al=0;al=Ci&&rn<=qi&&(ui.push(Vt[ln]),ui.push(Vt[ln+1]),ui.push(Vt[ln+2]))}}function _i(Vt,ui,Ci,qi,$i,ln,rn){for(var Ui,pn,Ji=yr(Vt),Jn=$i===0?Lr:ao,uo=Vt.start,Sn=0;SnCi&&(pn=Jn(Ji,Ko,za,al,Ua,Ci),rn&&(Ji.start=uo+Ui*pn)):Ro>qi?th=Ci&&(pn=Jn(Ji,Ko,za,al,Ua,Ci),Oh=!0),th>qi&&Ro<=qi&&(pn=Jn(Ji,Ko,za,al,Ua,qi),Oh=!0),!ln&&Oh&&(rn&&(Ji.end=uo+Ui*pn),ui.push(Ji),Ji=yr(Vt)),rn&&(uo+=Ui)}var Oc=Vt.length-3;Ko=Vt[Oc],za=Vt[Oc+1],Va=Vt[Oc+2],(Ro=$i===0?Ko:za)>=Ci&&Ro<=qi&&Qr(Ji,Ko,za,Va),Oc=Ji.length-3,ln&&Oc>=3&&(Ji[Oc]!==Ji[0]||Ji[Oc+1]!==Ji[1])&&Qr(Ji,Ji[0],Ji[1],Ji[2]),Ji.length&&ui.push(Ji)}function yr(Vt){var ui=[];return ui.size=Vt.size,ui.start=Vt.start,ui.end=Vt.end,ui}function mr(Vt,ui,Ci,qi,$i,ln){for(var rn=0;rnrn.maxX&&(rn.maxX=Jn),uo>rn.maxY&&(rn.maxY=uo)}return rn}function br(Vt,ui,Ci,qi){var $i=ui.geometry,ln=ui.type,rn=[];if(ln==="Point"||ln==="MultiPoint")for(var Ui=0;Ui<$i.length;Ui+=3)rn.push($i[Ui]),rn.push($i[Ui+1]),Vt.numPoints++,Vt.numSimplified++;else if(ln==="LineString")Xr(rn,$i,Vt,Ci,!1,!1);else if(ln==="MultiLineString"||ln==="Polygon")for(Ui=0;Ui<$i.length;Ui++)Xr(rn,$i[Ui],Vt,Ci,ln==="Polygon",Ui===0);else if(ln==="MultiPolygon")for(var pn=0;pn<$i.length;pn++){var Ji=$i[pn];for(Ui=0;Ui0&&ui.size<($i?rn:qi))Ci.numPoints+=ui.length/3;else{for(var Ui=[],pn=0;pnrn)&&(Ci.numSimplified++,Ui.push(ui[pn]),Ui.push(ui[pn+1])),Ci.numPoints++;$i&&function(Ji,Jn){for(var uo=0,Sn=0,Ko=Ji.length,za=Ko-2;Sn0===Jn)for(Sn=0,Ko=Ji.length;Sn24)throw new Error("maxZoom should be in the 0-24 range");if(ui.promoteId&&ui.generateId)throw new Error("promoteId and generateId cannot be used together.");var qi=function($i,ln){var rn=[];if($i.type==="FeatureCollection")for(var Ui=0;Ui<$i.features.length;Ui++)Je(rn,$i.features[Ui],ln,Ui);else Je(rn,$i.type==="Feature"?$i:{geometry:$i},ln);return rn}(Vt,ui);this.tiles={},this.tileCoords=[],Ci&&(console.timeEnd("preprocess data"),console.log("index: maxZoom: %d, maxPoints: %d",ui.indexMaxZoom,ui.indexMaxPoints),console.time("generate tiles"),this.stats={},this.total=0),(qi=function($i,ln){var rn=ln.buffer/ln.extent,Ui=$i,pn=li($i,1,-1-rn,rn,0,-1,2,ln),Ji=li($i,1,1-rn,2+rn,0,-1,2,ln);return(pn||Ji)&&(Ui=li($i,1,-rn,1+rn,0,-1,2,ln)||[],pn&&(Ui=Dt(pn,1).concat(Ui)),Ji&&(Ui=Ui.concat(Dt(Ji,-1)))),Ui}(qi,ui)).length&&this.splitTile(qi,0,0,0),Ci&&(qi.length&&console.log("features: %d, points: %d",this.tiles[0].numFeatures,this.tiles[0].numPoints),console.timeEnd("generate tiles"),console.log("tiles generated:",this.total,JSON.stringify(this.stats)))}function ls(Vt,ui,Ci){return 32*((1<1&&console.time("creation"),Sn=this.tiles[uo]=Mr(Vt,ui,Ci,qi,pn),this.tileCoords.push({z:ui,x:Ci,y:qi}),Ji)){Ji>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",ui,Ci,qi,Sn.numFeatures,Sn.numPoints,Sn.numSimplified),console.timeEnd("creation"));var Ko="z"+ui;this.stats[Ko]=(this.stats[Ko]||0)+1,this.total++}if(Sn.source=Vt,$i){if(ui===pn.maxZoom||ui===$i)continue;var za=1<<$i-ui;if(Ci!==Math.floor(ln/za)||qi!==Math.floor(rn/za))continue}else if(ui===pn.indexMaxZoom||Sn.numPoints<=pn.indexMaxPoints)continue;if(Sn.source=null,Vt.length!==0){Ji>1&&console.time("clipping");var Va,al,Ua,Ro,th,Oh,Oc=.5*pn.buffer/pn.extent,vf=.5-Oc,f1=.5+Oc,Au=1+Oc;Va=al=Ua=Ro=null,th=li(Vt,Jn,Ci-Oc,Ci+f1,0,Sn.minX,Sn.maxX,pn),Oh=li(Vt,Jn,Ci+vf,Ci+Au,0,Sn.minX,Sn.maxX,pn),Vt=null,th&&(Va=li(th,Jn,qi-Oc,qi+f1,1,Sn.minY,Sn.maxY,pn),al=li(th,Jn,qi+vf,qi+Au,1,Sn.minY,Sn.maxY,pn),th=null),Oh&&(Ua=li(Oh,Jn,qi-Oc,qi+f1,1,Sn.minY,Sn.maxY,pn),Ro=li(Oh,Jn,qi+vf,qi+Au,1,Sn.minY,Sn.maxY,pn),Oh=null),Ji>1&&console.timeEnd("clipping"),Ui.push(Va||[],ui+1,2*Ci,2*qi),Ui.push(al||[],ui+1,2*Ci,2*qi+1),Ui.push(Ua||[],ui+1,2*Ci+1,2*qi),Ui.push(Ro||[],ui+1,2*Ci+1,2*qi+1)}}},Oo.prototype.getTile=function(Vt,ui,Ci){var qi=this.options,$i=qi.extent,ln=qi.debug;if(Vt<0||Vt>24)return null;var rn=1<1&&console.log("drilling down to z%d-%d-%d",Vt,ui,Ci);for(var pn,Ji=Vt,Jn=ui,uo=Ci;!pn&&Ji>0;)Ji--,Jn=Math.floor(Jn/2),uo=Math.floor(uo/2),pn=this.tiles[ls(Ji,Jn,uo)];return pn&&pn.source?(ln>1&&console.log("found parent tile z%d-%d-%d",Ji,Jn,uo),ln>1&&console.time("drilling down"),this.splitTile(pn.source,Ji,Jn,uo,Vt,ui,Ci),ln>1&&console.timeEnd("drilling down"),this.tiles[Ui]?In(this.tiles[Ui],$i):null):null},function(Vt,ui){return new Oo(Vt,ui)}}();var Rt=o.dX(Qt.exports);function nt(qe,ge){let de=qe.tileID.canonical;if(!this._geoJSONIndex)return ge(null,null);let we=this._geoJSONIndex.getTile(de.z,de.x,de.y);if(!we)return ge(null,null);let Je=new K(we.features),rt=$e(Je);rt.byteOffset===0&&rt.byteLength===rt.buffer.byteLength||(rt=new Uint8Array(rt)),ge(null,{vectorTile:Je,rawData:rt.buffer})}class xe extends O{constructor(ge,de,we,Je,rt,vt){super(ge,de,we,Je,nt,vt),rt&&(this.loadGeoJSON=rt),this._featureMap=new Map}loadData(ge,de){let we=ge&&ge.request,Je=we&&we.collectResourceTiming;this.loadGeoJSON(ge,(rt,vt)=>{if(rt||!vt)return de(rt);if(typeof vt!="object")return de(new Error(`Input data given to '${ge.source}' is not a valid GeoJSON object.`));{try{if(ge.filter){let Tt=o.t(ge.filter,{type:"boolean","property-type":"data-driven",overridable:!1,transition:!1});if(Tt.result==="error")throw new Error(Tt.value.map(di=>`${di.key}: ${di.message}`).join(", "));vt.features=vt.features.filter(di=>Tt.value.evaluate({zoom:0},di))}if(ge.dynamic){vt.type==="Feature"&&(vt={type:"FeatureCollection",features:[vt]}),ge.append||this._featureMap.clear();for(let Tt of vt.features||[]){let di=Tt.id;di!==void 0&&(Tt.geometry?this._featureMap.set(di,Tt):this._featureMap.delete(di))}vt.features=[...this._featureMap.values()]}this._geoJSONIndex=ge.cluster?new Gt(function({superclusterOptions:Tt,clusterProperties:di}){if(!di||!Tt)return Tt;let li={},bi={},_i={accumulated:null,zoom:0},yr={properties:null},mr=Object.keys(di);for(let Qr of mr){let[Lr,ao]=di[Qr],Dt=o.t(ao),pi=o.t(typeof Lr=="string"?[Lr,["accumulated"],["get",Qr]]:Lr);li[Qr]=Dt.value,bi[Qr]=pi.value}return Tt.map=Qr=>{yr.properties=Qr;let Lr={};for(let ao of mr)Lr[ao]=li[ao].evaluate(_i,yr);return Lr},Tt.reduce=(Qr,Lr)=>{yr.properties=Lr;for(let ao of mr)_i.accumulated=Qr[ao],Qr[ao]=bi[ao].evaluate(_i,yr)},Tt}(ge)).load(vt.features):Rt(vt,ge.geojsonVtOptions)}catch(Tt){return de(Tt)}this.loaded={};let ti={};if(Je){let Tt=s(we);Tt&&(ti.resourceTiming={},ti.resourceTiming[ge.source]=JSON.parse(JSON.stringify(Tt)))}de(null,ti)}})}reloadTile(ge,de){let we=this.loaded;return we&&we[ge.uid]?super.reloadTile(ge,de):this.loadTile(ge,de)}loadGeoJSON(ge,de){if(ge.request)o.g(ge.request,de);else{if(typeof ge.data!="string")return de(new Error(`Input data given to '${ge.source}' is not a valid GeoJSON object.`));try{return de(null,JSON.parse(ge.data))}catch{return de(new Error(`Input data given to '${ge.source}' is not a valid GeoJSON object.`))}}}getClusterExpansionZoom(ge,de){try{de(null,this._geoJSONIndex.getClusterExpansionZoom(ge.clusterId))}catch(we){de(we)}}getClusterChildren(ge,de){try{de(null,this._geoJSONIndex.getChildren(ge.clusterId))}catch(we){de(we)}}getClusterLeaves(ge,de){try{de(null,this._geoJSONIndex.getLeaves(ge.clusterId,ge.limit,ge.offset))}catch(we){de(we)}}}class Qe{constructor(ge,de){this.tileID=new o.ap(ge.tileID.overscaledZ,ge.tileID.wrap,ge.tileID.canonical.z,ge.tileID.canonical.x,ge.tileID.canonical.y),this.tileZoom=ge.tileZoom,this.uid=ge.uid,this.zoom=ge.zoom,this.canonical=ge.tileID.canonical,this.pixelRatio=ge.pixelRatio,this.tileSize=ge.tileSize,this.source=ge.source,this.overscaling=this.tileID.overscaleFactor(),this.projection=ge.projection,this.brightness=de}parse(ge,de,we,Je){this.status="parsing";let rt=new o.ap(we.tileID.overscaledZ,we.tileID.wrap,we.tileID.canonical.z,we.tileID.canonical.x,we.tileID.canonical.y),vt={},ti=de.familiesBySource[we.source],Tt=new o.dL(rt,we.promoteId);return Tt.bucketLayerIDs=[],Tt.is3DTile=!0,o.dY(ge).then(di=>{if(!di)return Je(new Error("Could not parse tile"));let li=o.dZ(di,1/o.bU(we.tileID.canonical)),bi=di.json.extensionsUsed&&di.json.extensionsUsed.includes("MAPBOX_mesh_features")||di.json.asset.extras&&di.json.asset.extras.MAPBOX_mesh_features,_i=di.json.extensionsUsed&&di.json.extensionsUsed.includes("EXT_meshopt_compression"),yr=new o.N(this.zoom,{brightness:this.brightness});for(let mr in ti)for(let Qr of ti[mr]){let Lr=Qr[0];Tt.bucketLayerIDs.push(Qr.map(Dt=>Dt.id)),Lr.recalculate(yr,[]);let ao=new o.d_(li,rt,bi,_i,this.brightness,Tt);bi||(ao.needsUpload=!0),vt[Lr.fqid]=ao,ao.evaluate(Lr)}this.status="done",Je(null,{buckets:vt,featureIndex:Tt})}).catch(di=>Je(new Error(di.message)))}}class Xt{constructor(ge,de,we,Je,rt,vt){this.actor=ge,this.layerIndex=de,this.brightness=vt,this.loading={},this.loaded={}}loadTile(ge,de){let we=ge.uid,Je=this.loading[we]=new Qe(ge,this.brightness);o.b1(ge.request,(rt,vt)=>{let ti=!this.loading[we];return delete this.loading[we],ti||rt?(Je.status="done",ti||(this.loaded[we]=Je),de(rt)):vt&&vt.byteLength!==0?void Je.parse(vt,this.layerIndex,ge,(Tt,di)=>{Je.status="done",this.loaded=this.loaded||{},this.loaded[we]=Je,Tt||!di?de(Tt):de(null,di)}):(Je.status="done",this.loaded[we]=Je,de())})}reloadTile(ge,de){let we=this.loaded,Je=ge.uid;if(we&&we[Je]){let rt=we[Je];rt.projection=ge.projection,rt.brightness=ge.brightness;let vt=(ti,Tt)=>{rt.reloadCallback&&(delete rt.reloadCallback,this.loadTile(ge,de)),de(ti,Tt)};rt.status==="parsing"?rt.reloadCallback=vt:rt.status==="done"&&this.loadTile(ge,de)}}abortTile(ge,de){let we=ge.uid;this.loading[we]&&delete this.loading[we],de()}removeTile(ge,de){let we=this.loaded,Je=ge.uid;we&&we[Je]&&delete we[Je],de()}}class Ut{constructor(ge){this.self=ge,this.actor=new o.d$(ge,this),this.layerIndexes={},this.availableImages={},this.isSpriteLoaded={},this.projections={},this.defaultProjection=o.br({name:"mercator"}),this.workerSourceTypes={vector:O,geojson:xe,"batched-model":Xt},this.workerSources={},this.demWorkerSources={},this.self.registerWorkerSource=(de,we)=>{if(this.workerSourceTypes[de])throw new Error(`Worker source with name "${de}" already registered.`);this.workerSourceTypes[de]=we},this.self.registerRTLTextPlugin=de=>{if(o.e0.isParsed())throw new Error("RTL text plugin already registered.");o.e0.applyArabicShaping=de.applyArabicShaping,o.e0.processBidirectionalText=de.processBidirectionalText,o.e0.processStyledBidirectionalText=de.processStyledBidirectionalText}}clearCaches(ge,de,we){delete this.layerIndexes[ge],delete this.availableImages[ge],delete this.workerSources[ge],delete this.demWorkerSources[ge],delete this.rasterArrayWorkerSource,we()}checkIfReady(ge,de,we){we()}setReferrer(ge,de){this.referrer=de}spriteLoaded(ge,{scope:de,isLoaded:we}){if(this.isSpriteLoaded[ge]||(this.isSpriteLoaded[ge]={}),this.isSpriteLoaded[ge][de]=we,this.workerSources[ge]&&this.workerSources[ge][de])for(let Je in this.workerSources[ge][de]){let rt=this.workerSources[ge][de][Je];for(let vt in rt)rt[vt]instanceof O&&(rt[vt].isSpriteLoaded=we,rt[vt].fire(new o.b("isSpriteLoaded")))}}setImages(ge,{scope:de,images:we},Je){if(this.availableImages[ge]||(this.availableImages[ge]={}),this.availableImages[ge][de]=we,this.workerSources[ge]&&this.workerSources[ge][de]){for(let rt in this.workerSources[ge][de]){let vt=this.workerSources[ge][de][rt];for(let ti in vt)vt[ti].availableImages=we}Je()}else Je()}setProjection(ge,de){this.projections[ge]=o.br(de)}setBrightness(ge,de,we){this.brightness=de,we()}setLayers(ge,de,we){this.getLayerIndex(ge,de.scope).replace(de.layers,de.options),we()}updateLayers(ge,de,we){this.getLayerIndex(ge,de.scope).update(de.layers,de.removedIds,de.options),we()}loadTile(ge,de,we){de.projection=this.projections[ge]||this.defaultProjection,this.getWorkerSource(ge,de.type,de.source,de.scope).loadTile(de,we)}loadDEMTile(ge,de,we){this.getDEMWorkerSource(ge,de.source,de.scope).loadTile(de,we)}decodeRasterArray(ge,de,we){this.getRasterArrayWorkerSource().decodeRasterArray(de,we)}reloadTile(ge,de,we){de.projection=this.projections[ge]||this.defaultProjection,this.getWorkerSource(ge,de.type,de.source,de.scope).reloadTile(de,we)}abortTile(ge,de,we){this.getWorkerSource(ge,de.type,de.source,de.scope).abortTile(de,we)}removeTile(ge,de,we){this.getWorkerSource(ge,de.type,de.source,de.scope).removeTile(de,we)}removeSource(ge,de,we){if(!(this.workerSources[ge]&&this.workerSources[ge][de.scope]&&this.workerSources[ge][de.scope][de.type]&&this.workerSources[ge][de.scope][de.type][de.source]))return;let Je=this.workerSources[ge][de.scope][de.type][de.source];delete this.workerSources[ge][de.scope][de.type][de.source],Je.removeSource!==void 0?Je.removeSource(de,we):we()}loadWorkerSource(ge,de,we){try{this.self.importScripts(de.url),we()}catch(Je){we(Je.toString())}}syncRTLPluginState(ge,de,we){try{o.e0.setState(de);let Je=o.e0.getPluginURL();if(o.e0.isLoaded()&&!o.e0.isParsed()&&Je!=null){this.self.importScripts(Je);let rt=o.e0.isParsed();we(rt?void 0:new Error(`RTL Text Plugin failed to import scripts from ${Je}`),rt)}}catch(Je){we(Je.toString())}}setDracoUrl(ge,de){this.dracoUrl=de}getAvailableImages(ge,de){this.availableImages[ge]||(this.availableImages[ge]={});let we=this.availableImages[ge][de];return we||(we=[]),we}getLayerIndex(ge,de){this.layerIndexes[ge]||(this.layerIndexes[ge]={});let we=this.layerIndexes[ge][de];return we||(we=this.layerIndexes[ge][de]=new g,we.scope=de),we}getWorkerSource(ge,de,we,Je){if(this.workerSources[ge]||(this.workerSources[ge]={}),this.workerSources[ge][Je]||(this.workerSources[ge][Je]={}),this.workerSources[ge][Je][de]||(this.workerSources[ge][Je][de]={}),this.isSpriteLoaded[ge]||(this.isSpriteLoaded[ge]={}),!this.workerSources[ge][Je][de][we]){let rt={send:(vt,ti,Tt,di,li,bi)=>{this.actor.send(vt,ti,Tt,ge,li,bi)},scheduler:this.actor.scheduler};this.workerSources[ge][Je][de][we]=new this.workerSourceTypes[de](rt,this.getLayerIndex(ge,Je),this.getAvailableImages(ge,Je),this.isSpriteLoaded[ge][Je],void 0,this.brightness)}return this.workerSources[ge][Je][de][we]}getDEMWorkerSource(ge,de,we){return this.demWorkerSources[ge]||(this.demWorkerSources[ge]={}),this.demWorkerSources[ge][we]||(this.demWorkerSources[ge][we]={}),this.demWorkerSources[ge][we][de]||(this.demWorkerSources[ge][we][de]=new F),this.demWorkerSources[ge][we][de]}getRasterArrayWorkerSource(){return this.rasterArrayWorkerSource||(this.rasterArrayWorkerSource=new L),this.rasterArrayWorkerSource}enforceCacheSizeLimit(ge,de){o.e1(de)}getWorkerPerformanceMetrics(ge,de,we){we(void 0,void 0)}}return typeof WorkerGlobalScope<"u"&&typeof self<"u"&&self instanceof WorkerGlobalScope&&(self.worker=new Ut(self)),Ut}),i(["./shared"],function(o){"use strict";function s(v,d){if(Array.isArray(v)){if(!Array.isArray(d)||v.length!==d.length)return!1;for(let f=0;f"u"||typeof document>"u"?"not a browser":function(){if(!("Worker"in window&&"Blob"in window&&"URL"in window))return!1;var y,w,E=new Blob([""],{type:"text/javascript"}),D=URL.createObjectURL(E);try{w=new Worker(D),y=!0}catch{y=!1}return w&&w.terminate(),URL.revokeObjectURL(D),y}()?function(){var y=document.createElement("canvas");y.width=y.height=1;var w=y.getContext("2d");if(!w)return!1;var E=w.getImageData(0,0,1,1);return E&&E.width===y.width}()?(g[f=d&&d.failIfMajorPerformanceCaveat]===void 0&&(g[f]=function(y){var w,E=function(D){var R=document.createElement("canvas"),B=Object.create(h.webGLContextAttributes);return B.failIfMajorPerformanceCaveat=D,R.getContext("webgl2",B)}(y);if(!E)return!1;try{w=E.createShader(E.VERTEX_SHADER)}catch{return!1}return!(!w||E.isContextLost())&&(E.shaderSource(w,"void main() {}"),E.compileShader(w),E.getShaderParameter(w,E.COMPILE_STATUS)===!0)}(f)),g[f]?document.documentMode?"insufficient ECMAScript 6 support":void 0:"insufficient WebGL2 support"):"insufficient Canvas/getImageData support":"insufficient worker support";var f}(v)}var g={};function x(v,d,f){let y=document.createElement(v);return d!=null&&(y.className=d),f&&f.appendChild(y),y}function C(v,d,f){let y=document.createElementNS("http://www.w3.org/2000/svg",v);for(let w of Object.keys(d))y.setAttributeNS(null,w,String(d[w]));return f&&f.appendChild(y),y}h.webGLContextAttributes={antialias:!1,alpha:!0,stencil:!0,depth:!0};let A=typeof document<"u"?document.documentElement&&document.documentElement.style:null,k=A&&A.userSelect!==void 0?"userSelect":"WebkitUserSelect",O;function F(){A&&k&&(O=A[k],A[k]="none")}function L(){A&&k&&(A[k]=O)}function z(v){v.preventDefault(),v.stopPropagation(),window.removeEventListener("click",z,!0)}function j(){window.addEventListener("click",z,!0),window.setTimeout(()=>{window.removeEventListener("click",z,!0)},0)}function K(v,d){let f=v.getBoundingClientRect();return X(v,f,d)}function ee(v,d){let f=v.getBoundingClientRect(),y=[];for(let w=0;w=0?0:v.button}function X(v,d,f){let y=v.offsetWidth===d.width?1:v.offsetWidth/d.width;return new o.P((f.clientX-d.left)*y,(f.clientY-d.top)*y)}class q{constructor(){this._changed=!1,this._updatedLayers={},this._removedLayers={},this._updatedSourceCaches={},this._updatedPaintProps=new Set,this._updatedImages=new Set}isDirty(){return this._changed}setDirty(){this._changed=!0}getUpdatedSourceCaches(){return this._updatedSourceCaches}updateSourceCache(d,f){this._updatedSourceCaches[d]=f,this.setDirty()}discardSourceCacheUpdate(d){delete this._updatedSourceCaches[d]}updateLayer(d){let f=d.scope;this._updatedLayers[f]=this._updatedLayers[f]||new Set,this._updatedLayers[f].add(d.id),this.setDirty()}removeLayer(d){let f=d.scope;this._removedLayers[f]=this._removedLayers[f]||{},this._updatedLayers[f]=this._updatedLayers[f]||new Set,this._removedLayers[f][d.id]=d,this._updatedLayers[f].delete(d.id),this._updatedPaintProps.delete(d.fqid),this.setDirty()}getRemovedLayer(d){return this._removedLayers[d.scope]?this._removedLayers[d.scope][d.id]:null}discardLayerRemoval(d){this._removedLayers[d.scope]&&delete this._removedLayers[d.scope][d.id]}getLayerUpdatesByScope(){let d={};for(let f in this._updatedLayers)d[f]=d[f]||{},d[f].updatedIds=Array.from(this._updatedLayers[f].values());for(let f in this._removedLayers)d[f]=d[f]||{},d[f].removedIds=Object.keys(this._removedLayers[f]);return d}getUpdatedPaintProperties(){return this._updatedPaintProps}updatePaintProperties(d){this._updatedPaintProps.add(d.fqid),this.setDirty()}getUpdatedImages(){return Array.from(this._updatedImages.values())}updateImage(d){this._updatedImages.add(d),this.setDirty()}resetUpdatedImages(){this._updatedImages.clear()}reset(){this._changed=!1,this._updatedLayers={},this._removedLayers={},this._updatedSourceCaches={},this._updatedPaintProps.clear(),this._updatedImages.clear()}}class fe extends o.E{constructor(d){super(),this.requestManager=d,this.models={"":{}},this.numModelsLoading={}}loadModel(d,f){return o.l(this.requestManager.transformRequest(f,o.R.Model).url).then(y=>{if(!y)return;let w=o.c(y),E=new o.M(d,void 0,void 0,w);return E.computeBoundsAndApplyParent(),E}).catch(y=>{if(y&&y.status===404)return null;this.fire(new o.a(new Error(`Could not load model ${d} from ${f}: ${y.message}`)))})}load(d,f){this.models[f]||(this.models[f]={});let y=Object.keys(d);this.numModelsLoading[f]=(this.numModelsLoading[f]||0)+y.length;let w=[];for(let E of y)w.push(this.loadModel(E,d[E]));Promise.allSettled(w).then(E=>{for(let D=0;D{this.fire(new o.a(new Error(`Could not load models: ${E.message}`)))})}isLoaded(){for(let d in this.numModelsLoading)if(this.numModelsLoading[d]>0)return!1;return!0}hasModel(d,f){return!!this.getModel(d,f)}getModel(d,f){return this.models[f]||(this.models[f]={}),this.models[f][d]?this.models[f][d].model:void 0}addModel(d,f,y){this.models[y]||(this.models[y]={}),this.hasModel(d,y)&&this.models[y][d].numReferences++,this.load({[d]:this.requestManager.normalizeModelURL(f)},y)}addModels(d,f){this.models[f]||(this.models[f]={});let y={};for(let w in d)this.models[f][w]={},y[w]=this.requestManager.normalizeModelURL(d[w]);this.load(y,f)}addModelsFromBucket(d,f){this.models[f]||(this.models[f]={});let y={};for(let w of d)this.hasModel(w,f)?this.models[f][w].numReferences++:y[w]=this.requestManager.normalizeModelURL(w);this.load(y,f)}removeModel(d,f){if(this.models[f]&&this.models[f][d]&&(this.models[f][d].numReferences--,this.models[f][d].numReferences===0)){let y=this.models[f][d].model;delete this.models[f][d],y.destroy()}}listModels(d){return this.models[d]||(this.models[d]={}),Object.keys(this.models[d])}upload(d,f){this.models[f]||(this.models[f]={});for(let y in this.models[f])this.models[f][y].model&&this.models[f][y].model.upload(d.context)}}class Se{constructor(){this.state={},this.stateChanges={},this.deletedStates={}}updateState(d,f,y){let w=String(f);if(this.stateChanges[d]=this.stateChanges[d]||{},this.stateChanges[d][w]=this.stateChanges[d][w]||{},o.e(this.stateChanges[d][w],y),this.deletedStates[d]===null){this.deletedStates[d]={};for(let E in this.state[d])E!==w&&(this.deletedStates[d][E]=null)}else if(this.deletedStates[d]&&this.deletedStates[d][w]===null){this.deletedStates[d][w]={};for(let E in this.state[d][w])y[E]||(this.deletedStates[d][w][E]=null)}else for(let E in y)this.deletedStates[d]&&this.deletedStates[d][w]&&this.deletedStates[d][w][E]===null&&delete this.deletedStates[d][w][E]}removeFeatureState(d,f,y){if(this.deletedStates[d]===null)return;let w=String(f);if(this.deletedStates[d]=this.deletedStates[d]||{},y&&f!==void 0)this.deletedStates[d][w]!==null&&(this.deletedStates[d][w]=this.deletedStates[d][w]||{},this.deletedStates[d][w][y]=null);else if(f!==void 0)if(this.stateChanges[d]&&this.stateChanges[d][w])for(y in this.deletedStates[d][w]={},this.stateChanges[d][w])this.deletedStates[d][w][y]=null;else this.deletedStates[d][w]=null;else this.deletedStates[d]=null}getState(d,f){let y=String(f),w=o.e({},(this.state[d]||{})[y],(this.stateChanges[d]||{})[y]);if(this.deletedStates[d]===null)return{};if(this.deletedStates[d]){let E=this.deletedStates[d][f];if(E===null)return{};for(let D in E)delete w[D]}return w}initializeTileState(d,f){d.setFeatureState(this.state,f)}coalesceChanges(d,f){let y={};for(let w in this.stateChanges){this.state[w]=this.state[w]||{};let E={};for(let D in this.stateChanges[w])this.state[w][D]||(this.state[w][D]={}),o.e(this.state[w][D],this.stateChanges[w][D]),E[D]=this.state[w][D];y[w]=E}for(let w in this.deletedStates){this.state[w]=this.state[w]||{};let E={};if(this.deletedStates[w]===null)for(let D in this.state[w])E[D]={},this.state[w][D]={};else for(let D in this.deletedStates[w]){if(this.deletedStates[w][D]===null)this.state[w][D]={};else if(this.state[w][D])for(let R of Object.keys(this.deletedStates[w][D]))delete this.state[w][D][R];E[D]=this.state[w][D]}y[w]=y[w]||{},o.e(y[w],E)}if(this.stateChanges={},this.deletedStates={},Object.keys(y).length!==0)for(let w in d)d[w].setFeatureState(y,f)}}function pe(v){let{userImage:d}=v;return!!(d&&d.render&&d.render())&&(v.data.replace(new Uint8Array(d.data.buffer)),!0)}class Me extends o.E{constructor(){super(),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded={},this.requestors=[],this.patterns={},this.atlasImage={},this.atlasTexture={},this.dirty=!0}createScope(d){this.images[d]={},this.loaded[d]=!1,this.updatedImages[d]={},this.patterns[d]={},this.callbackDispatchedThisFrame[d]={},this.atlasImage[d]=new o.h({width:1,height:1})}isLoaded(){for(let d in this.loaded)if(!this.loaded[d])return!1;return!0}setLoaded(d,f){if(this.loaded[f]!==d&&(this.loaded[f]=d,d)){for(let{ids:y,callback:w}of this.requestors)this._notify(y,f,w);this.requestors=[]}}hasImage(d,f){return!!this.getImage(d,f)}getImage(d,f){return this.images[f][d]}addImage(d,f,y){this._validate(d,y)&&(this.images[f][d]=y)}_validate(d,f){let y=!0;return this._validateStretch(f.stretchX,f.data&&f.data.width)||(this.fire(new o.a(new Error(`Image "${d}" has invalid "stretchX" value`))),y=!1),this._validateStretch(f.stretchY,f.data&&f.data.height)||(this.fire(new o.a(new Error(`Image "${d}" has invalid "stretchY" value`))),y=!1),this._validateContent(f.content,f)||(this.fire(new o.a(new Error(`Image "${d}" has invalid "content" value`))),y=!1),y}_validateStretch(d,f){if(!d)return!0;let y=0;for(let w of d){if(w[0]E)return[new o.V(d,f,`${f} is greater than the maximum value ${E}`)]}return[]}function Ee(v){let d=v.valueSpec,f=o.u(v.value.type),y,w,E,D={},R=f!=="categorical"&&v.value.property===void 0,B=!R,U=o.j(v.value.stops)==="array"&&o.j(v.value.stops[0])==="array"&&o.j(v.value.stops[0][0])==="object",G=ie({key:v.key,value:v.value,valueSpec:v.styleSpec.function,style:v.style,styleSpec:v.styleSpec,objectElementValidators:{stops:function(te){if(f==="identity")return[new o.V(te.key,te.value,'identity function may not have a "stops" property')];let he=[],me=te.value;return he=he.concat(Re({key:te.key,value:me,valueSpec:te.valueSpec,style:te.style,styleSpec:te.styleSpec,arrayElementValidator:$})),o.j(me)==="array"&&me.length===0&&he.push(new o.V(te.key,me,"array must have at least one stop")),he},default:function(te){return Rt({key:te.key,value:te.value,valueSpec:d,style:te.style,styleSpec:te.styleSpec})}}});return f==="identity"&&R&&G.push(new o.V(v.key,v.value,'missing required property "property"')),f==="identity"||v.value.stops||G.push(new o.V(v.key,v.value,'missing required property "stops"')),f==="exponential"&&v.valueSpec.expression&&!o.s(v.valueSpec)&&G.push(new o.V(v.key,v.value,"exponential functions not supported")),v.styleSpec.$version>=8&&(B&&!o.m(v.valueSpec)?G.push(new o.V(v.key,v.value,"property functions not supported")):R&&!o.n(v.valueSpec)&&G.push(new o.V(v.key,v.value,"zoom functions not supported"))),f!=="categorical"&&!U||v.value.property!==void 0||G.push(new o.V(v.key,v.value,'"property" property is required')),G;function $(te){let he=[],me=te.value,_e=te.key;if(o.j(me)!=="array")return[new o.V(_e,me,`array expected, ${o.j(me)} found`)];if(me.length!==2)return[new o.V(_e,me,`array length 2 expected, length ${me.length} found`)];if(U){if(o.j(me[0])!=="object")return[new o.V(_e,me,`object expected, ${o.j(me[0])} found`)];if(me[0].zoom===void 0)return[new o.V(_e,me,"object stop key must have zoom")];if(me[0].value===void 0)return[new o.V(_e,me,"object stop key must have value")];let ye=o.u(me[0].zoom);if(typeof ye!="number")return[new o.V(_e,me[0].zoom,"stop zoom values must be numbers")];if(E&&E>ye)return[new o.V(_e,me[0].zoom,"stop zoom values must appear in ascending order")];ye!==E&&(E=ye,w=void 0,D={}),he=he.concat(ie({key:`${_e}[0]`,value:me[0],valueSpec:{zoom:{}},style:te.style,styleSpec:te.styleSpec,objectElementValidators:{zoom:Ue,value:Q}}))}else he=he.concat(Q({key:`${_e}[0]`,value:me[0],valueSpec:{},style:te.style,styleSpec:te.styleSpec},me));return o.o(o.q(me[1]))?he.concat([new o.V(`${_e}[1]`,me[1],"expressions are not allowed in function stops.")]):he.concat(Rt({key:`${_e}[1]`,value:me[1],valueSpec:d,style:te.style,styleSpec:te.styleSpec}))}function Q(te,he){let me=o.j(te.value),_e=o.u(te.value),ye=te.value!==null?te.value:he;if(y){if(me!==y)return[new o.V(te.key,ye,`${me} stop domain type must match previous stop domain type ${y}`)]}else y=me;if(me!=="number"&&me!=="string"&&me!=="boolean"&&typeof _e!="number"&&typeof _e!="string"&&typeof _e!="boolean")return[new o.V(te.key,ye,"stop domain value must be a number, string, or boolean")];if(me!=="number"&&f!=="categorical"){let Ae=`number expected, ${me} found`;return o.m(d)&&f===void 0&&(Ae+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new o.V(te.key,ye,Ae)]}return f!=="categorical"||me!=="number"||typeof _e=="number"&&isFinite(_e)&&Math.floor(_e)===_e?f!=="categorical"&&me==="number"&&typeof _e=="number"&&typeof w=="number"&&w!==void 0&&_enew o.V(`${v.key}${y.key}`,v.value,y.message));let f=d.value.expression||d.value._styleExpression.expression;if(v.expressionContext==="property"&&v.propertyKey==="text-font"&&!f.outputDefined())return[new o.V(v.key,v.value,`Invalid data expression for "${v.propertyKey}". Output values must be contained as literals within the expression.`)];if(v.expressionContext==="property"&&v.propertyType==="layout"&&!o.v(f))return[new o.V(v.key,v.value,'"feature-state" data expressions are not supported with layout properties.')];if(v.expressionContext==="filter")return Ie(f,v);if(v.expressionContext&&v.expressionContext.indexOf("cluster")===0){if(!o.x(f,["zoom","feature-state"]))return[new o.V(v.key,v.value,'"zoom" and "feature-state" expressions are not supported with cluster properties.')];if(v.expressionContext==="cluster-initial"&&!o.y(f))return[new o.V(v.key,v.value,"Feature data expressions are not supported with initial expression part of cluster properties.")]}return[]}function Ie(v,d){let f=new Set(["zoom","feature-state","pitch","distance-from-center"]);if(d.valueSpec&&d.valueSpec.expression)for(let w of d.valueSpec.expression.parameters)f.delete(w);if(f.size===0)return[];let y=[];return v instanceof o.C&&f.has(v.name)?[new o.V(d.key,d.value,`["${v.name}"] expression is not supported in a filter for a ${d.object.type} layer with id: ${d.object.id}`)]:(v.eachChild(w=>{y.push(...Ie(w,d))}),y)}function Be(v){let d=v.key,f=v.value,y=v.valueSpec,w=[];return Array.isArray(y.values)?y.values.indexOf(o.u(f))===-1&&w.push(new o.V(d,f,`expected one of [${y.values.join(", ")}], ${JSON.stringify(f)} found`)):Object.keys(y.values).indexOf(o.u(f))===-1&&w.push(new o.V(d,f,`expected one of [${Object.keys(y.values).join(", ")}], ${JSON.stringify(f)} found`)),w}function Ve(v){return o.A(o.q(v.value))?We(o.k({},v,{expressionContext:"filter",valueSpec:v.styleSpec[`filter_${v.layerType||"fill"}`]})):$e(v)}function $e(v){let d=v.value,f=v.key;if(o.j(d)!=="array")return[new o.V(f,d,`array expected, ${o.j(d)} found`)];let y=v.styleSpec,w,E=[];if(d.length<1)return[new o.V(f,d,"filter array must have at least 1 element")];switch(E=E.concat(Be({key:`${f}[0]`,value:d[0],valueSpec:y.filter_operator,style:v.style,styleSpec:v.styleSpec})),o.u(d[0])){case"<":case"<=":case">":case">=":d.length>=2&&o.u(d[1])==="$type"&&E.push(new o.V(f,d,`"$type" cannot be use with operator "${d[0]}"`));case"==":case"!=":d.length!==3&&E.push(new o.V(f,d,`filter array for operator "${d[0]}" must have 3 elements`));case"in":case"!in":d.length>=2&&(w=o.j(d[1]),w!=="string"&&E.push(new o.V(`${f}[1]`,d[1],`string expected, ${w} found`)));for(let D=2;D{U in f&&d.push(new o.V(y,f[U],`"${U}" is prohibited for ref layers`))}),w.layers.forEach(U=>{o.u(U.id)===R&&(B=U)}),B?B.ref?d.push(new o.V(y,f.ref,"ref cannot reference another ref layer")):D=o.u(B.type):typeof R=="string"&&d.push(new o.V(y,f.ref,`ref layer "${R}" not found`))}else if(D!=="background"&&D!=="sky"&&D!=="slot")if(f.source){let B=w.sources&&w.sources[f.source],U=B&&o.u(B.type);B?U==="vector"&&D==="raster"?d.push(new o.V(y,f.source,`layer "${f.id}" requires a raster source`)):U==="raster"&&D!=="raster"?d.push(new o.V(y,f.source,`layer "${f.id}" requires a vector source`)):U!=="vector"||f["source-layer"]?U==="raster-dem"&&D!=="hillshade"?d.push(new o.V(y,f.source,"raster-dem source can only be used with layer type 'hillshade'.")):U!=="raster-array"||["raster","raster-particle"].includes(D)?D!=="line"||!f.paint||!f.paint["line-gradient"]&&!f.paint["line-trim-offset"]||U==="geojson"&&B.lineMetrics?D==="raster-particle"&&U!=="raster-array"&&d.push(new o.V(y,f.source,`layer "${f.id}" requires a 'raster-array' source.`)):d.push(new o.V(y,f,`layer "${f.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):d.push(new o.V(y,f.source,"raster-array source can only be used with layer type 'raster'.")):d.push(new o.V(y,f,`layer "${f.id}" must specify a "source-layer"`)):d.push(new o.V(y,f.source,`source "${f.source}" not found`))}else d.push(new o.V(y,f,'missing required property "source"'));return d=d.concat(ie({key:y,value:f,valueSpec:E.layer,style:v.style,styleSpec:v.styleSpec,objectElementValidators:{"*":()=>[],type:()=>Rt({key:`${y}.type`,value:f.type,valueSpec:E.layer.type,style:v.style,styleSpec:v.styleSpec,object:f,objectKey:"type"}),filter:B=>Ve(o.k({layerType:D},B)),layout:B=>ie({layer:f,key:B.key,value:B.value,valueSpec:{},style:B.style,styleSpec:B.styleSpec,objectElementValidators:{"*":U=>ze(o.k({layerType:D},U))}}),paint:B=>ie({layer:f,key:B.key,value:B.value,valueSpec:{},style:B.style,styleSpec:B.styleSpec,objectElementValidators:{"*":U=>Xe(o.k({layerType:D,layer:f},U))}})}})),d}function Pt(v){let d=v.value,f=v.key,y=o.j(d);return y!=="string"?[new o.V(f,d,`string expected, ${y} found`)]:[]}let Ii={promoteId:function({key:v,value:d}){if(o.j(d)==="string")return Pt({key:v,value:d});{let f=[];for(let y in d)f.push(...Pt({key:`${v}.${y}`,value:d[y]}));return f}}};function Gt(v){let d=v.value,f=v.key,y=v.styleSpec,w=v.style;if(!d.type)return[new o.V(f,d,'"type" is required')];let E=o.u(d.type),D=[];switch(["vector","raster","raster-dem","raster-array"].includes(E)&&(d.url||d.tiles||D.push(new o.i(f,d,'Either "url" or "tiles" is required.'))),E){case"vector":case"raster":case"raster-dem":case"raster-array":return D=D.concat(ie({key:f,value:d,valueSpec:y[`source_${E.replace("-","_")}`],style:v.style,styleSpec:y,objectElementValidators:Ii})),D;case"geojson":if(D=ie({key:f,value:d,valueSpec:y.source_geojson,style:w,styleSpec:y,objectElementValidators:Ii}),d.cluster)for(let R in d.clusterProperties){let[B,U]=d.clusterProperties[R],G=typeof B=="string"?[B,["accumulated"],["get",R]]:B;D.push(...We({key:`${f}.${R}.map`,value:U,expressionContext:"cluster-map"})),D.push(...We({key:`${f}.${R}.reduce`,value:G,expressionContext:"cluster-reduce"}))}return D;case"video":return ie({key:f,value:d,valueSpec:y.source_video,style:w,styleSpec:y});case"image":return ie({key:f,value:d,valueSpec:y.source_image,style:w,styleSpec:y});case"canvas":return[new o.V(f,null,"Please use runtime APIs to add canvas sources, rather than including them in stylesheets.","source.canvas")];default:return Be({key:`${f}.type`,value:d.type,valueSpec:{values:ji(y)},style:w,styleSpec:y})}}function ji(v){return v.source.reduce((d,f)=>{let y=v[f];return y.type.type==="enum"&&(d=d.concat(Object.keys(y.type.values))),d},[])}function an(v){let d=v.value,f=v.styleSpec,y=f.light,w=v.style,E=[],D=o.j(d);if(d===void 0)return E;if(D!=="object")return E=E.concat([new o.V("light",d,`object expected, ${D} found`)]),E;for(let R in d){let B=R.match(/^(.*)-transition$/);E=E.concat(B&&y[B[1]]&&y[B[1]].transition?Rt({key:R,value:d[R],valueSpec:f.transition,style:w,styleSpec:f}):y[R]?Rt({key:R,value:d[R],valueSpec:y[R],style:w,styleSpec:f}):[new o.V(R,d[R],`unknown property "${R}"`)])}return E}function en(v){let d=v.value,f=[];if(!d)return f;let y=o.j(d);if(y!=="object")return f=f.concat([new o.V("light-3d",d,`object expected, ${y} found`)]),f;let w=v.styleSpec,E=w["light-3d"],D=v.key,R=v.style,B=v.style.lights;for(let $ of["type","id"])if(!($ in d))return f=f.concat([new o.V("light-3d",d,`missing property ${$} on light`)]),f;if(d.type&&B)for(let $=0;$[],array:Re,boolean:function(v){let d=v.value,f=v.key,y=o.j(d);return y!=="boolean"?[new o.V(f,d,`boolean expected, ${y} found`)]:[]},number:Ue,color:function(v){let d=v.key,f=v.value,y=o.j(f);return y!=="string"?[new o.V(d,f,`color expected, ${y} found`)]:o.z(f)===null?[new o.V(d,f,`color expected, "${f}" found`)]:[]},enum:Be,filter:Ve,function:Ee,layer:et,object:ie,source:Gt,model:o.F,light:an,"light-3d":en,terrain:ir,fog:ve,string:Pt,formatted:function(v){return Pt(v).length===0?[]:We(v)},resolvedImage:function(v){return Pt(v).length===0?[]:We(v)},projection:function(v){let d=v.value,f=v.styleSpec,y=f.projection,w=v.style,E=[],D=o.j(d);if(D==="object")for(let R in d)E=E.concat(Rt({key:R,value:d[R],valueSpec:y[R],style:w,styleSpec:f}));else D!=="string"&&(E=E.concat([new o.V("projection",d,`object or string expected, ${D} found`)]));return E},import:function(v){let{value:d,styleSpec:f}=v,D=d,{data:y}=D,w=Bm(D,["data"]);Object.defineProperty(w,"__line__",{value:d.__line__,enumerable:!1});let E=ie(o.k({},v,{value:w,valueSpec:f.import}));return o.u(w.id)===""&&E.push(new o.V(`${v.key}.id`,w,"import id can't be an empty string")),y&&(E=E.concat(xe(y,f,{key:`${v.key}.data`}))),E}};function Rt(v,d=!1){let f=v.value,y=v.valueSpec,w=v.styleSpec;if(y.expression&&o.B(o.u(f)))return Ee(v);if(y.expression&&o.o(o.q(f)))return We(v);if(y.type&&Qt[y.type]){let E=Qt[y.type](v);return d===!0&&E.length>0&&o.j(v.value)==="array"?We(v):E}return ie(o.k({},v,{valueSpec:y.type?w[y.type]:y}))}function nt(v){let d=v.value,f=v.key,y=Pt(v);return y.length||(d.indexOf("{fontstack}")===-1&&y.push(new o.V(f,d,'"glyphs" url must include a "{fontstack}" token')),d.indexOf("{range}")===-1&&y.push(new o.V(f,d,'"glyphs" url must include a "{range}" token'))),y}function xe(v,d=o.G,f={}){return Rt({key:f.key||"",value:v,valueSpec:d.$root,styleSpec:d,style:v,objectElementValidators:{glyphs:nt,"*":()=>[]}})}function Qe(v,d=o.G){return Tt(xe(v,d))}let Xt=v=>Tt(Gt(v)),Ut=v=>Tt(an(v)),qe=v=>Tt(en(v)),ge=v=>Tt(ir(v)),de=v=>Tt(ve(v)),we=v=>Tt(et(v)),Je=v=>Tt(Ve(v)),rt=v=>Tt(Xe(v)),vt=v=>Tt(ze(v)),ti=v=>Tt(o.F(v));function Tt(v){return v.slice().sort((d,f)=>d.line&&f.line?d.line-f.line:0)}function di(v,d){let f=!1;if(d&&d.length)for(let y of d)y instanceof o.i?o.w(y.message):(v.fire(new o.a(new Error(y.message))),f=!0);return f}let li=new o.H({anchor:new o.J(o.G.light.anchor),position:new o.K(o.G.light.position),color:new o.J(o.G.light.color),intensity:new o.J(o.G.light.intensity)});class bi extends o.E{constructor(d,f="flat"){super(),this._transitionable=new o.L(li),this.setLight(d,f),this._transitioning=this._transitionable.untransitioned()}getLight(){return this._transitionable.serialize()}setLight(d,f,y={}){this._validate(Ut,d,y)||(this._transitionable.setTransitionOrValue(d),this.id=f)}updateTransitions(d){this._transitioning=this._transitionable.transitioned(d,this._transitioning)}hasTransition(){return this._transitioning.hasTransition()}recalculate(d){this.properties=this._transitioning.possiblyEvaluate(d)}_validate(d,f,y){return(!y||y.validate!==!1)&&di(this,d.call(Qe,o.e({value:f,style:{glyphs:!0,sprite:!0},styleSpec:o.G})))}}let _i=new o.H({source:new o.J(o.G.terrain.source),exaggeration:new o.J(o.G.terrain.exaggeration)}),yr=class extends o.E{constructor(v,d,f,y){super(),this.scope=f,this._transitionable=new o.L(_i,f,y),this._transitionable.setTransitionOrValue(v,y),this._transitioning=this._transitionable.untransitioned(),this.drapeRenderMode=d}get(){return this._transitionable.serialize()}set(v,d){this._transitionable.setTransitionOrValue(v,d)}updateTransitions(v){this._transitioning=this._transitionable.transitioned(v,this._transitioning)}hasTransition(){return this._transitioning.hasTransition()}recalculate(v){this.properties=this._transitioning.possiblyEvaluate(v)}getExaggeration(v){return this._transitioning.possiblyEvaluate(new o.N(v)).get("exaggeration")}isZoomDependent(){let v=this._transitionable._values.exaggeration;return v!=null&&v.value!=null&&v.value.expression!=null&&v.value.expression instanceof o.Z}},mr=45,Qr=65,Lr=.05;function ao(v,d,f,y){let w=o.S(mr,Qr,f),[E,D]=Dt(v,y),R=1-Math.min(1,Math.exp((d-E)/(D-E)*-6));return R*=R*R,R=Math.min(1,1.00747*R),R*w*v.alpha}function Dt(v,d){let f=.5/Math.tan(.5*d);return[v.range[0]+f,v.range[1]+f]}function pi(v,d,f,y,w){let E=o.Q.transformMat4([],[d,f,y],w.mercatorFogMatrix);return ao(v,o.Q.length(E),w.pitch,w._fov)}function In(v,d,f,y,w,E,D){let R=[[f,y,0],[w,y,0],[w,E,0],[f,E,0]],B=Number.MAX_VALUE,U=-Number.MAX_VALUE;for(let G of R){let $=o.Q.transformMat4([],G,d),Q=o.Q.length($);B=Math.min(B,Q),U=Math.max(U,Q)}return[ao(v,B,D.pitch,D._fov),ao(v,U,D.pitch,D._fov)]}let fn=new o.H({range:new o.J(o.G.fog.range),color:new o.J(o.G.fog.color),"high-color":new o.J(o.G.fog["high-color"]),"space-color":new o.J(o.G.fog["space-color"]),"horizon-blend":new o.J(o.G.fog["horizon-blend"]),"star-intensity":new o.J(o.G.fog["star-intensity"]),"vertical-range":new o.J(o.G.fog["vertical-range"])});class Mr extends o.E{constructor(d,f,y,w){super(),this._transitionable=new o.L(fn,y,new Map(w)),this.set(d,w),this._transitioning=this._transitionable.untransitioned(),this._transform=f,this.properties=new o.U(fn)}get state(){let d=this._transform,f=d.projection.name==="globe",y=o.W(d.zoom),w=this.properties.get("range"),E=[.5,3];return{range:f?[o.X(E[0],w[0],y),o.X(E[1],w[1],y)]:w,horizonBlend:this.properties.get("horizon-blend"),alpha:this.properties.get("color").a}}get(){return this._transitionable.serialize()}set(d,f,y={}){if(this._validate(de,d,y))return;let w=o.e({},d);for(let E of Object.keys(o.G.fog))w[E]===void 0&&(w[E]=o.G.fog[E].default);this._options=w,this._transitionable.setTransitionOrValue(this._options,f)}getOpacity(d){if(!this._transform.projection.supportsFog)return 0;let f=this.properties&&this.properties.get("color")||1;return(this._transform.projection.name==="globe"?1:o.S(mr,Qr,d))*f.a}getOpacityAtLatLng(d,f){return this._transform.projection.supportsFog?function(y,w,E){let D=o.O.fromLngLat(w),R=E.elevation?E.elevation.getAtPointOrZero(D):0;return pi(y,D.x,D.y,R,E)}(this.state,d,f):0}getOpacityForTile(d){if(!this._transform.projection.supportsFog)return[1,1];let f=this._transform.calculateFogTileMatrix(d.toUnwrapped());return In(this.state,f,0,0,o.Y,o.Y,this._transform)}getOpacityForBounds(d,f,y,w,E){return this._transform.projection.supportsFog?In(this.state,d,f,y,w,E,this._transform):[1,1]}getFovAdjustedRange(d){return this._transform.projection.supportsFog?Dt(this.state,d):[0,1]}isVisibleOnFrustum(d){if(!this._transform.projection.supportsFog)return!1;let f=[4,5,6,7];for(let y of f){let w=d.points[y],E;if(w[2]>=0)E=w;else{let D=d.points[y-4];E=o._(D,w,D[2]/(D[2]-w[2]))}if(pi(this.state,E[0],E[1],0,this._transform)>=Lr)return!0}return!1}updateConfig(d){this._transitionable.setTransitionOrValue(this._options,new Map(d))}updateTransitions(d){this._transitioning=this._transitionable.transitioned(d,this._transitioning)}hasTransition(){return this._transitioning.hasTransition()}recalculate(d){this.properties=this._transitioning.possiblyEvaluate(d)}_validate(d,f,y){return(!y||y.validate!==!1)&&di(this,d.call(Qe,o.e({value:f,style:{glyphs:!0,sprite:!0},styleSpec:o.G})))}}class br extends o.E{constructor(d,f,y,w){super(),this.scope=y,this._options=d,this.properties=new o.U(f),this._transitionable=new o.L(f,y,new Map(w)),this._transitionable.setTransitionOrValue(d.properties),this._transitioning=this._transitionable.untransitioned()}updateConfig(d){this._transitionable.setTransitionOrValue(this._options.properties,new Map(d))}updateTransitions(d){this._transitioning=this._transitionable.transitioned(d,this._transitioning)}hasTransition(){return this._transitioning.hasTransition()}recalculate(d){this.properties=this._transitioning.possiblyEvaluate(d)}get(){return this._options.properties=this._transitionable.serialize(),this._options}set(d,f){this._options=d,this._transitionable.setTransitionOrValue(d.properties,f)}shadowsEnabled(){return!!this.properties&&this.properties.get("cast-shadows")===!0}}let Xr=new o.H({color:new o.J(o.G.properties_light_ambient.color),intensity:new o.J(o.G.properties_light_ambient.intensity)}),Oo=new o.H({direction:new o.$(o.G.properties_light_directional.direction),color:new o.J(o.G.properties_light_directional.color),intensity:new o.J(o.G.properties_light_directional.intensity),"cast-shadows":new o.J(o.G.properties_light_directional["cast-shadows"]),"shadow-intensity":new o.J(o.G.properties_light_directional["shadow-intensity"])});class ls{constructor(d,f,y,w){this.screenBounds=d,this.cameraPoint=f,this._screenRaycastCache={},this._cameraRaycastCache={},this.isAboveHorizon=y,this.screenGeometry=this.bufferedScreenGeometry(0),this.screenGeometryMercator=this._bufferedScreenMercator(0,w)}static createFromScreenPoints(d,f){let y,w;if(d instanceof o.P||typeof d[0]=="number"){let E=o.P.convert(d);y=[E],w=f.isPointAboveHorizon(E)}else{let E=o.P.convert(d[0]),D=o.P.convert(d[1]);y=[E,D],w=o.a0(E,D).every(R=>f.isPointAboveHorizon(R))}return new ls(y,f.getCameraPoint(),w,f)}isPointQuery(){return this.screenBounds.length===1}bufferedScreenGeometry(d){return o.a0(this.screenBounds[0],this.screenBounds.length===1?this.screenBounds[0]:this.screenBounds[1],d)}bufferedCameraGeometry(d){let f=this.screenBounds[0],y=this.screenBounds.length===1?this.screenBounds[0].add(new o.P(1,1)):this.screenBounds[1],w=o.a0(f,y,0,!1);return this.cameraPoint.y>y.y&&(this.cameraPoint.x>f.x&&this.cameraPoint.x=y.x?w[2]=this.cameraPoint:this.cameraPoint.x<=f.x&&(w[3]=this.cameraPoint)),o.a1(w,d)}bufferedCameraGeometryGlobe(d){let f=this.screenBounds[0],y=this.screenBounds.length===1?this.screenBounds[0].add(new o.P(1,1)):this.screenBounds[1],w=o.a0(f,y,d),E=this.cameraPoint.clone();switch(3*((E.y>f.y)+(E.y>y.y))+((E.x>f.x)+(E.x>y.x))){case 0:w[0]=E,w[4]=E.clone();break;case 1:w.splice(1,0,E);break;case 2:w[1]=E;break;case 3:w.splice(4,0,E);break;case 5:w.splice(2,0,E);break;case 6:w[3]=E;break;case 7:w.splice(3,0,E);break;case 8:w[2]=E}return w}containsTile(d,f,y,w=0){let E=d.queryPadding/f._pixelsPerMercatorPixel+1,D=y?this._bufferedCameraMercator(E,f):this._bufferedScreenMercator(E,f),R=d.tileID.wrap+(D.unwrapped?w:0),B=D.polygon.map(_e=>o.a2(d.tileTransform,_e,R));if(!o.a3(B,0,0,o.Y,o.Y))return;R=d.tileID.wrap+(this.screenGeometryMercator.unwrapped?w:0);let U=this.screenGeometryMercator.polygon.map(_e=>o.a4(d.tileTransform,_e,R)),G=U.map(_e=>new o.P(_e[0],_e[1])),$=f.getFreeCameraOptions().position||new o.O(0,0,0),Q=o.a4(d.tileTransform,$,R),te=U.map(_e=>{let ye=o.Q.sub(_e,_e,Q);return o.Q.normalize(ye,ye),new o.a5(Q,ye)}),he=o.a6(d,1,f.zoom)*f._pixelsPerMercatorPixel;return{queryGeometry:this,tilespaceGeometry:G,tilespaceRays:te,bufferedTilespaceGeometry:B,bufferedTilespaceBounds:(me=o.a7(B),me.min.x=o.ad(me.min.x,0,o.Y),me.min.y=o.ad(me.min.y,0,o.Y),me.max.x=o.ad(me.max.x,0,o.Y),me.max.y=o.ad(me.max.y,0,o.Y),me),tile:d,tileID:d.tileID,pixelToTileUnitsFactor:he};var me}_bufferedScreenMercator(d,f){let y=Ci(d);if(this._screenRaycastCache[y])return this._screenRaycastCache[y];{let w;return w=f.projection.name==="globe"?this._projectAndResample(this.bufferedScreenGeometry(d),f):{polygon:this.bufferedScreenGeometry(d).map(E=>f.pointCoordinate3D(E)),unwrapped:!0},this._screenRaycastCache[y]=w,w}}_bufferedCameraMercator(d,f){let y=Ci(d);if(this._cameraRaycastCache[y])return this._cameraRaycastCache[y];{let w;return w=f.projection.name==="globe"?this._projectAndResample(this.bufferedCameraGeometryGlobe(d),f):{polygon:this.bufferedCameraGeometry(d).map(E=>f.pointCoordinate3D(E)),unwrapped:!0},this._cameraRaycastCache[y]=w,w}}_projectAndResample(d,f){let y=function(E,D){let R=o.a9.multiply([],D.pixelMatrix,D.globeMatrix),B=[0,-o.ae,0,1],U=[0,o.ae,0,1],G=[0,0,0,1];o.aa.transformMat4(B,B,R),o.aa.transformMat4(U,U,R),o.aa.transformMat4(G,G,R);let $=new o.P(B[0]/B[3],B[1]/B[3]),Q=new o.P(U[0]/U[3],U[1]/U[3]),te=o.ab(E,$)&&B[3]1?Vt(E.slice(0,_e),D):[],je=_enew o.P(ui(Oe.x),Oe.y)),je=je.map(Oe=>new o.P(ui(Oe.x),Oe.y));let He=[...Ae];He.length===0&&He.push(je[je.length-1]);let Ze=o.X(He[He.length-1].y,(je.length===0?Ae[0]:je[0]).y,ye),be;return be=te?[new o.P(0,Ze),new o.P(0,0),new o.P(1,0),new o.P(1,Ze)]:[new o.P(1,Ze),new o.P(1,1),new o.P(0,1),new o.P(0,Ze)],He.push(...be),je.length===0?He.push(Ae[0]):He.push(...je),{polygon:He.map(Oe=>new o.O(Oe.x,Oe.y)),unwrapped:!1}}(d,f);if(y)return y;let w=function(E,D){let R=!1,B=-1/0,U=0;for(let $=0;$B&&(B=E[$].x,U=$);for(let $=0;$.5&&(te.x{$.x-=1}),{polygon:E,unwrapped:R}}(Vt(d,f).map(E=>new o.P(ui(E.x),E.y)),f);return{polygon:w.polygon.map(E=>new o.O(E.x,E.y)),unwrapped:w.unwrapped}}}function Vt(v,d){return o.ac(v,f=>{let y=d.pointCoordinate3D(f);f.x=y.x,f.y=y.y},1/256)}function ui(v){return v<0?1+v%1:v%1}function Ci(v){return 100*v|0}function qi(v,d,f,y,w){let E=function(D,R){if(D)return w(D);if(R){v.url&&R.tiles&&v.tiles&&delete v.tiles;let B=o.af(o.e(R,v),["tiles","minzoom","maxzoom","attribution","mapbox_logo","bounds","scheme","tileSize","encoding"]);R.vector_layers&&(B.vectorLayers=R.vector_layers,B.vectorLayerIds=B.vectorLayers.map(U=>U.id)),R.raster_layers&&(B.rasterLayers=R.raster_layers,B.rasterLayerIds=B.rasterLayers.map(U=>U.id)),B.tiles=d.canonicalizeTileset(B,v.url),w(null,B)}};return v.url?o.g(d.transformRequest(d.normalizeSourceURL(v.url,null,f,y),o.R.Source),E):o.f.frame(()=>E(null,v))}class $i{constructor(d,f,y){this.bounds=o.ag.convert(this.validateBounds(d)),this.minzoom=f||0,this.maxzoom=y||24}validateBounds(d){return Array.isArray(d)&&d.length===4?[Math.max(-180,d[0]),Math.max(-90,d[1]),Math.min(180,d[2]),Math.min(90,d[3])]:[-180,-90,180,90]}contains(d){let f=Math.pow(2,d.z),y=Math.floor(o.a8(this.bounds.getWest())*f),w=Math.floor(o.ah(this.bounds.getNorth())*f),E=Math.ceil(o.a8(this.bounds.getEast())*f),D=Math.ceil(o.ah(this.bounds.getSouth())*f);return d.x>=y&&d.x=w&&d.y{this._tileJSONRequest=null,this._loaded=!0,w?(f&&console.warn(`Ensure that your requested language string is a valid BCP-47 code or list of codes. Found: ${f}`),y&&y.length!==2&&console.warn(`Requested worldview strings must be a valid ISO alpha-2 code. Found: ${y}`),this.fire(new o.a(w))):E&&(o.e(this,E),E.bounds&&(this.tileBounds=new $i(E.bounds,this.minzoom,this.maxzoom)),o.am(E.tiles,this.map._requestManager._customAccessToken),this.fire(new o.b("data",{dataType:"source",sourceDataType:"metadata"})),this.fire(new o.b("data",{dataType:"source",sourceDataType:"content"}))),d&&d(w)})}loaded(){return this._loaded}hasTile(d){return!this.tileBounds||this.tileBounds.contains(d.canonical)}onAdd(d){this.map=d,this.load()}reload(){this.cancelTileJSONRequest();let d=o.aj(this.id,this.scope);this.load(()=>this.map.style.clearSource(d))}setTiles(d){return this._options.tiles=d,this.reload(),this}setUrl(d){return this.url=d,this._options.url=d,this.reload(),this}onRemove(){this.cancelTileJSONRequest()}serialize(){return o.e({},this._options)}loadTile(d,f){let y=this.map._requestManager.normalizeTileURL(d.tileID.canonical.url(this.tiles,this.scheme)),w={request:this.map._requestManager.transformRequest(y,o.R.Tile),data:void 0,uid:d.uid,tileID:d.tileID,tileZoom:d.tileZoom,zoom:d.tileID.overscaledZ,tileSize:this.tileSize*d.tileID.overscaleFactor(),type:this.type,source:this.id,scope:this.scope,pixelRatio:o.f.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId,isSymbolTile:d.isSymbolTile,brightness:this.map.style&&this.map.style.getBrightness()||0,extraShadowCaster:d.isExtraShadowCaster};if(w.request.collectResourceTiming=this._collectResourceTiming,d.actor&&d.state!=="expired")d.state==="loading"?d.reloadCallback=f:d.request=d.actor.send("reloadTile",w,E.bind(this));else if(d.actor=this._tileWorkers[y]=this._tileWorkers[y]||this.dispatcher.getActor(),this.dispatcher.ready)d.request=d.actor.send("loadTile",w,E.bind(this),void 0,!0);else{let D=o.ak.call({deduped:this._deduped},w,(R,B)=>{R||!B?E.call(this,R):(w.data={cacheControl:B.cacheControl,expires:B.expires,rawData:B.rawData.slice(0)},d.actor&&d.actor.send("loadTile",w,E.bind(this),void 0,!0))},!0);d.request={cancel:D}}function E(D,R){return delete d.request,d.aborted?f(null):D&&D.status!==404?f(D):(R&&R.resourceTiming&&(d.resourceTiming=R.resourceTiming),this.map._refreshExpiredTiles&&R&&d.setExpiryData(R),d.loadVectorData(R,this.map.painter),o.al(this.dispatcher),f(null),void(d.reloadCallback&&(this.loadTile(d,d.reloadCallback),d.reloadCallback=null)))}}abortTile(d){d.request&&(d.request.cancel(),delete d.request),d.actor&&d.actor.send("abortTile",{uid:d.uid,type:this.type,source:this.id,scope:this.scope})}unloadTile(d){d.actor&&d.actor.send("removeTile",{uid:d.uid,type:this.type,source:this.id,scope:this.scope}),d.destroy()}hasTransition(){return!1}afterUpdate(){this._tileWorkers={}}cancelTileJSONRequest(){this._tileJSONRequest&&(this._tileJSONRequest.cancel(),this._tileJSONRequest=null)}}class rn extends o.E{constructor(d,f,y,w){super(),this.id=d,this.dispatcher=y,this.setEventedParent(w),this.type="raster",this.minzoom=0,this.maxzoom=22,this.roundZoom=!0,this.scheme="xyz",this.tileSize=512,this._loaded=!1,this._options=o.e({type:"raster"},f),o.e(this,o.af(f,["url","scheme","tileSize"]))}load(d){this._loaded=!1,this.fire(new o.b("dataloading",{dataType:"source"})),this._tileJSONRequest=qi(this._options,this.map._requestManager,null,null,(f,y)=>{this._tileJSONRequest=null,this._loaded=!0,f?this.fire(new o.a(f)):y&&(o.e(this,y),y.bounds&&(this.tileBounds=new $i(y.bounds,this.minzoom,this.maxzoom)),o.am(y.tiles),this.fire(new o.b("data",{dataType:"source",sourceDataType:"metadata"})),this.fire(new o.b("data",{dataType:"source",sourceDataType:"content"}))),d&&d(f)})}loaded(){return this._loaded}onAdd(d){this.map=d,this.load()}reload(){this.cancelTileJSONRequest();let d=o.aj(this.id,this.scope);this.load(()=>this.map.style.clearSource(d))}setTiles(d){return this._options.tiles=d,this.reload(),this}setUrl(d){return this.url=d,this._options.url=d,this.reload(),this}onRemove(){this.cancelTileJSONRequest()}serialize(){return o.e({},this._options)}hasTile(d){return!this.tileBounds||this.tileBounds.contains(d.canonical)}loadTile(d,f){let y=o.f.devicePixelRatio>=2,w=this.map._requestManager.normalizeTileURL(d.tileID.canonical.url(this.tiles,this.scheme),y,this.tileSize);d.request=o.d(this.map._requestManager.transformRequest(w,o.R.Tile),(E,D,R,B)=>(delete d.request,d.aborted?(d.state="unloaded",f(null)):E?(d.state="errored",f(E)):D?(this.map._refreshExpiredTiles&&d.setExpiryData({cacheControl:R,expires:B}),d.setTexture(D,this.map.painter),d.state="loaded",o.al(this.dispatcher),void f(null)):f(null)))}abortTile(d,f){d.request&&(d.request.cancel(),delete d.request),f()}unloadTile(d,f){d.texture&&d.texture instanceof o.T?(d.destroy(!0),d.texture&&d.texture instanceof o.T&&this.map.painter.saveTileTexture(d.texture)):d.destroy(),f()}hasTransition(){return!1}cancelTileJSONRequest(){this._tileJSONRequest&&(this._tileJSONRequest.cancel(),this._tileJSONRequest=null)}}class Ui extends rn{constructor(d,f,y,w){super(d,f,y,w),this.type="raster-array",this.maxzoom=22,this._options=o.e({type:"raster-array"},f)}triggerRepaint(d){let f=this.map.painter._terrain,y=this.map.style.getSourceCache(this.id);f&&f.enabled&&y&&f._clearRenderCacheForTile(y.id,d.tileID),this.map.triggerRepaint()}loadTile(d,f){let y=this.map._requestManager.normalizeTileURL(d.tileID.canonical.url(this.tiles,this.scheme),!1,this.tileSize),w=this.map._requestManager.transformRequest(y,o.R.Tile);d.requestParams=w,d.actor||(d.actor=this.dispatcher.getActor()),d.request=d.fetchHeader(void 0,(E,D,R,B)=>{if(delete d.request,d.aborted)return d.state="unloaded",f(null);if(E)return E.code===20?void 0:(d.state="errored",f(E));this.map._refreshExpiredTiles&&d.setExpiryData({cacheControl:R,expires:B}),d.state="empty",f(null)})}unloadTile(d){let f=d.texture;f&&f instanceof o.T?(d.destroy(!0),this.map.painter.saveTileTexture(f)):(d.destroy(),d.flushQueues(),d._isHeaderLoaded=!1,delete d._mrt,delete d.textureDescriptor),d.fbo&&(d.fbo.destroy(),delete d.fbo),delete d.request,delete d.requestParams,delete d.neighboringTiles,d.state="unloaded"}prepareTile(d,f,y){d._isHeaderLoaded&&(d.state!=="empty"&&(d.state="reloading"),d.fetchBand(f,y,(w,E)=>{if(w)return d.state="errored",this.fire(new o.a(w)),void this.triggerRepaint(d);E&&(d.setTexture(E,this.map.painter),d.state="loaded",this.triggerRepaint(d))}))}getInitialBand(d){if(!this.rasterLayers)return 0;let f=this.rasterLayers.find(({id:E})=>E===d),y=f&&f.fields,w=y&&y.bands&&y.bands;return w?w[0]:0}getTextureDescriptor(d,f,y){if(!d)return;let w=f.sourceLayer||this.rasterLayerIds&&this.rasterLayerIds[0];if(!w)return;let E=null;f instanceof o.aq?E=f.paint.get("raster-array-band"):f instanceof o.ar&&(E=f.paint.get("raster-particle-array-band"));let D=E||this.getInitialBand(w);if(D!=null)if(d.textureDescriptor){if(!d.updateNeeded(w,D)||y)return Object.assign({},d.textureDescriptor,{texture:d.texture})}else this.prepareTile(d,w,D)}}let pn=32,Ji=33,Jn=new Uint16Array(8184);for(let v=0;v<2046;v++){let d=v+2,f=0,y=0,w=0,E=0,D=0,R=0;for(1&d?w=E=D=pn:f=y=R=pn;(d>>=1)>1;){let U=f+w>>1,G=y+E>>1;1&d?(w=f,E=y,f=D,y=R):(f=w,y=E,w=D,E=R),D=U,R=G}let B=4*v;Jn[B+0]=f,Jn[B+1]=y,Jn[B+2]=w,Jn[B+3]=E}let uo=new Uint16Array(2178),Sn=new Uint8Array(1089),Ko=new Uint16Array(1089);function za(v){return v===0?-.03125:v===32?.03125:0}let Va=(()=>{class v{constructor(f,y,w,E){this.id=v.uniqueIdxCounter,v.uniqueIdxCounter++,this.context=f;let D=f.gl;this.buffer=D.createBuffer(),this.dynamicDraw=!!w,this.context.unbindVAO(),f.bindElementBuffer.set(this.buffer),D.bufferData(D.ELEMENT_ARRAY_BUFFER,y.arrayBuffer,this.dynamicDraw?D.DYNAMIC_DRAW:D.STATIC_DRAW),this.dynamicDraw||E||y.destroy()}bind(){this.context.bindElementBuffer.set(this.buffer)}updateData(f){this.id=v.uniqueIdxCounter,v.uniqueIdxCounter++;let y=this.context.gl;this.context.unbindVAO(),this.bind(),y.bufferSubData(y.ELEMENT_ARRAY_BUFFER,0,f.arrayBuffer)}destroy(){this.buffer&&(this.context.gl.deleteBuffer(this.buffer),delete this.buffer)}}return v.uniqueIdxCounter=0,v})(),al={Int8:"BYTE",Uint8:"UNSIGNED_BYTE",Int16:"SHORT",Uint16:"UNSIGNED_SHORT",Int32:"INT",Uint32:"UNSIGNED_INT",Float32:"FLOAT"};class Ua{constructor(d,f,y,w,E,D){this.length=f.length,this.attributes=y,this.itemSize=f.bytesPerElement,this.dynamicDraw=w,this.instanceCount=D,this.context=d;let R=d.gl;this.buffer=R.createBuffer(),d.bindVertexBuffer.set(this.buffer),R.bufferData(R.ARRAY_BUFFER,f.arrayBuffer,this.dynamicDraw?R.DYNAMIC_DRAW:R.STATIC_DRAW),this.dynamicDraw||E||f.destroy()}bind(){this.context.bindVertexBuffer.set(this.buffer)}updateData(d){let f=this.context.gl;this.bind(),f.bufferSubData(f.ARRAY_BUFFER,0,d.arrayBuffer)}enableAttributes(d,f){for(let y=0;y0&&d.vertexAttribDivisor(E,y)}}destroy(){this.buffer&&(this.context.gl.deleteBuffer(this.buffer),delete this.buffer)}}class Ro{constructor(d){this.gl=d.gl,this.default=this.getDefault(),this.current=this.default,this.dirty=!1}get(){return this.current}set(d){}getDefault(){return this.default}setDefault(){this.set(this.default)}}class th extends Ro{getDefault(){return o.aA.transparent}set(d){let f=this.current;(d.r!==f.r||d.g!==f.g||d.b!==f.b||d.a!==f.a||this.dirty)&&(this.gl.clearColor(d.r,d.g,d.b,d.a),this.current=d,this.dirty=!1)}}class Oh extends Ro{getDefault(){return 1}set(d){(d!==this.current||this.dirty)&&(this.gl.clearDepth(d),this.current=d,this.dirty=!1)}}class Oc extends Ro{getDefault(){return 0}set(d){(d!==this.current||this.dirty)&&(this.gl.clearStencil(d),this.current=d,this.dirty=!1)}}class vf extends Ro{getDefault(){return[!0,!0,!0,!0]}set(d){let f=this.current;(d[0]!==f[0]||d[1]!==f[1]||d[2]!==f[2]||d[3]!==f[3]||this.dirty)&&(this.gl.colorMask(d[0],d[1],d[2],d[3]),this.current=d,this.dirty=!1)}}class f1 extends Ro{getDefault(){return!0}set(d){(d!==this.current||this.dirty)&&(this.gl.depthMask(d),this.current=d,this.dirty=!1)}}class Au extends Ro{getDefault(){return 255}set(d){(d!==this.current||this.dirty)&&(this.gl.stencilMask(d),this.current=d,this.dirty=!1)}}class ak extends Ro{getDefault(){return{func:this.gl.ALWAYS,ref:0,mask:255}}set(d){let f=this.current;(d.func!==f.func||d.ref!==f.ref||d.mask!==f.mask||this.dirty)&&(this.gl.stencilFunc(d.func,d.ref,d.mask),this.current=d,this.dirty=!1)}}class _o extends Ro{getDefault(){let d=this.gl;return[d.KEEP,d.KEEP,d.KEEP]}set(d){let f=this.current;(d[0]!==f[0]||d[1]!==f[1]||d[2]!==f[2]||this.dirty)&&(this.gl.stencilOp(d[0],d[1],d[2]),this.current=d,this.dirty=!1)}}class m1 extends Ro{getDefault(){return!1}set(d){if(d===this.current&&!this.dirty)return;let f=this.gl;d?f.enable(f.STENCIL_TEST):f.disable(f.STENCIL_TEST),this.current=d,this.dirty=!1}}class Ju extends Ro{getDefault(){return[0,1]}set(d){let f=this.current;(d[0]!==f[0]||d[1]!==f[1]||this.dirty)&&(this.gl.depthRange(d[0],d[1]),this.current=d,this.dirty=!1)}}class yf extends Ro{getDefault(){return!1}set(d){if(d===this.current&&!this.dirty)return;let f=this.gl;d?f.enable(f.DEPTH_TEST):f.disable(f.DEPTH_TEST),this.current=d,this.dirty=!1}}class lk extends Ro{getDefault(){return this.gl.LESS}set(d){(d!==this.current||this.dirty)&&(this.gl.depthFunc(d),this.current=d,this.dirty=!1)}}class HS extends Ro{getDefault(){return!1}set(d){if(d===this.current&&!this.dirty)return;let f=this.gl;d?f.enable(f.BLEND):f.disable(f.BLEND),this.current=d,this.dirty=!1}}class ck extends Ro{getDefault(){let d=this.gl;return[d.ONE,d.ZERO,d.ONE,d.ZERO]}set(d){let f=this.current;(d[0]!==f[0]||d[1]!==f[1]||d[2]!==f[2]||d[3]!==f[3]||this.dirty)&&(this.gl.blendFuncSeparate(d[0],d[1],d[2],d[3]),this.current=d,this.dirty=!1)}}class uk extends Ro{getDefault(){return o.aA.transparent}set(d){let f=this.current;(d.r!==f.r||d.g!==f.g||d.b!==f.b||d.a!==f.a||this.dirty)&&(this.gl.blendColor(d.r,d.g,d.b,d.a),this.current=d,this.dirty=!1)}}class dk extends Ro{getDefault(){return this.gl.FUNC_ADD}set(d){(d!==this.current||this.dirty)&&(this.gl.blendEquationSeparate(d,d),this.current=d,this.dirty=!1)}}class g1 extends Ro{getDefault(){return!1}set(d){if(d===this.current&&!this.dirty)return;let f=this.gl;d?f.enable(f.CULL_FACE):f.disable(f.CULL_FACE),this.current=d,this.dirty=!1}}class nP extends Ro{getDefault(){return this.gl.BACK}set(d){(d!==this.current||this.dirty)&&(this.gl.cullFace(d),this.current=d,this.dirty=!1)}}class hk extends Ro{getDefault(){return this.gl.CCW}set(d){(d!==this.current||this.dirty)&&(this.gl.frontFace(d),this.current=d,this.dirty=!1)}}let hy=class extends Ro{getDefault(){return null}set(v){(v!==this.current||this.dirty)&&(this.gl.useProgram(v),this.current=v,this.dirty=!1)}};class Gr extends Ro{getDefault(){return this.gl.TEXTURE0}set(d){(d!==this.current||this.dirty)&&(this.gl.activeTexture(d),this.current=d,this.dirty=!1)}}class GS extends Ro{getDefault(){let d=this.gl;return[0,0,d.drawingBufferWidth,d.drawingBufferHeight]}set(d){let f=this.current;(d[0]!==f[0]||d[1]!==f[1]||d[2]!==f[2]||d[3]!==f[3]||this.dirty)&&(this.gl.viewport(d[0],d[1],d[2],d[3]),this.current=d,this.dirty=!1)}}class fv extends Ro{getDefault(){return null}set(d){if(d===this.current&&!this.dirty)return;let f=this.gl;f.bindFramebuffer(f.FRAMEBUFFER,d),this.current=d,this.dirty=!1}}class pk extends Ro{getDefault(){return null}set(d){if(d===this.current&&!this.dirty)return;let f=this.gl;f.bindRenderbuffer(f.RENDERBUFFER,d),this.current=d,this.dirty=!1}}class YS extends Ro{getDefault(){return null}set(d){if(d===this.current&&!this.dirty)return;let f=this.gl;f.bindTexture(f.TEXTURE_2D,d),this.current=d,this.dirty=!1}}class rP extends Ro{getDefault(){return null}set(d){if(d===this.current&&!this.dirty)return;let f=this.gl;f.bindBuffer(f.ARRAY_BUFFER,d),this.current=d,this.dirty=!1}}class fk extends Ro{getDefault(){return null}set(d){let f=this.gl;f.bindBuffer(f.ELEMENT_ARRAY_BUFFER,d),this.current=d,this.dirty=!1}}class qS extends Ro{getDefault(){return null}set(d){this.gl&&(d!==this.current||this.dirty)&&(this.gl.bindVertexArray(d),this.current=d,this.dirty=!1)}}class oP extends Ro{getDefault(){return 4}set(d){if(d===this.current&&!this.dirty)return;let f=this.gl;f.pixelStorei(f.UNPACK_ALIGNMENT,d),this.current=d,this.dirty=!1}}class mk extends Ro{getDefault(){return!1}set(d){if(d===this.current&&!this.dirty)return;let f=this.gl;f.pixelStorei(f.UNPACK_PREMULTIPLY_ALPHA_WEBGL,d),this.current=d,this.dirty=!1}}class sP extends Ro{getDefault(){return!1}set(d){if(d===this.current&&!this.dirty)return;let f=this.gl;f.pixelStorei(f.UNPACK_FLIP_Y_WEBGL,d),this.current=d,this.dirty=!1}}class _1 extends Ro{constructor(d,f){super(d),this.context=d,this.parent=f}getDefault(){return null}}class gk extends _1{setDirty(){this.dirty=!0}set(d){if(d===this.current&&!this.dirty)return;this.context.bindFramebuffer.set(this.parent);let f=this.gl;f.framebufferTexture2D(f.FRAMEBUFFER,f.COLOR_ATTACHMENT0,f.TEXTURE_2D,d,0),this.current=d,this.dirty=!1}}class py extends _1{attachment(){return this.gl.DEPTH_ATTACHMENT}set(d){if(d===this.current&&!this.dirty)return;this.context.bindFramebuffer.set(this.parent);let f=this.gl;f.framebufferRenderbuffer(f.FRAMEBUFFER,this.attachment(),f.RENDERBUFFER,d),this.current=d,this.dirty=!1}}class aP extends _1{attachment(){return this.gl.DEPTH_ATTACHMENT}set(d){if(d===this.current&&!this.dirty)return;this.context.bindFramebuffer.set(this.parent);let f=this.gl;f.framebufferTexture2D(f.FRAMEBUFFER,this.attachment(),f.TEXTURE_2D,d,0),this.current=d,this.dirty=!1}}class lP extends py{attachment(){return this.gl.DEPTH_STENCIL_ATTACHMENT}}class fy{constructor(d,f,y,w,E){this.context=d,this.width=f,this.height=y;let D=this.framebuffer=d.gl.createFramebuffer();w&&(this.colorAttachment=new gk(d,D)),E&&(this.depthAttachmentType=E,this.depthAttachment=E==="renderbuffer"?new py(d,D):new aP(d,D))}destroy(){let d=this.context.gl;if(this.colorAttachment){let f=this.colorAttachment.get();f&&d.deleteTexture(f)}if(this.depthAttachment&&this.depthAttachmentType)if(this.depthAttachmentType==="renderbuffer"){let f=this.depthAttachment.get();f&&d.deleteRenderbuffer(f)}else{let f=this.depthAttachment.get();f&&d.deleteTexture(f)}d.deleteFramebuffer(this.framebuffer)}}class or{constructor(d,f,y){this.func=d,this.mask=f,this.range=y}}or.ReadOnly=!1,or.ReadWrite=!0,or.disabled=new or(519,or.ReadOnly,[0,1]);let v1=7680;class Fr{constructor(d,f,y,w,E,D){this.test=d,this.ref=f,this.mask=y,this.fail=w,this.depthFail=E,this.pass=D}}Fr.disabled=new Fr({func:519,mask:0},0,0,v1,v1,v1);let y1=771;class lo{constructor(d,f,y,w){this.blendFunction=d,this.blendColor=f,this.mask=y,this.blendEquation=w}}lo.Replace=[1,0,1,0],lo.disabled=new lo(lo.Replace,o.aA.transparent,[!1,!1,!1,!1]),lo.unblended=new lo(lo.Replace,o.aA.transparent,[!0,!0,!0,!0]),lo.alphaBlended=new lo([1,y1,1,y1],o.aA.transparent,[!0,!0,!0,!0]),lo.multiply=new lo([774,0,774,0],o.aA.transparent,[!0,!0,!0,!0]);let _k=1029,vk=2305;class Cr{constructor(d,f,y){this.enable=d,this.mode=f,this.frontFace=y}}Cr.disabled=new Cr(!1,_k,vk),Cr.backCCW=new Cr(!0,_k,vk),Cr.backCW=new Cr(!0,_k,2304),Cr.frontCW=new Cr(!0,1028,2304),Cr.frontCCW=new Cr(!0,1028,vk);class Rh{constructor(d,f){this.gl=d,this.clearColor=new th(this),this.clearDepth=new Oh(this),this.clearStencil=new Oc(this),this.colorMask=new vf(this),this.depthMask=new f1(this),this.stencilMask=new Au(this),this.stencilFunc=new ak(this),this.stencilOp=new _o(this),this.stencilTest=new m1(this),this.depthRange=new Ju(this),this.depthTest=new yf(this),this.depthFunc=new lk(this),this.blend=new HS(this),this.blendFunc=new ck(this),this.blendColor=new uk(this),this.blendEquation=new dk(this),this.cullFace=new g1(this),this.cullFaceSide=new nP(this),this.frontFace=new hk(this),this.program=new hy(this),this.activeTexture=new Gr(this),this.viewport=new GS(this),this.bindFramebuffer=new fv(this),this.bindRenderbuffer=new pk(this),this.bindTexture=new YS(this),this.bindVertexBuffer=new rP(this),this.bindElementBuffer=new fk(this),this.bindVertexArrayOES=new qS(this),this.pixelStoreUnpack=new oP(this),this.pixelStoreUnpackPremultiplyAlpha=new mk(this),this.pixelStoreUnpackFlipY=new sP(this),this.options=f?Ce({},f):{},this.options.extTextureFilterAnisotropicForceOff||(this.extTextureFilterAnisotropic=d.getExtension("EXT_texture_filter_anisotropic")||d.getExtension("MOZ_EXT_texture_filter_anisotropic")||d.getExtension("WEBKIT_EXT_texture_filter_anisotropic"),this.extTextureFilterAnisotropic&&(this.extTextureFilterAnisotropicMax=d.getParameter(this.extTextureFilterAnisotropic.MAX_TEXTURE_MAX_ANISOTROPY_EXT))),this.extDebugRendererInfo=d.getExtension("WEBGL_debug_renderer_info"),this.extDebugRendererInfo&&(this.renderer=d.getParameter(this.extDebugRendererInfo.UNMASKED_RENDERER_WEBGL),this.vendor=d.getParameter(this.extDebugRendererInfo.UNMASKED_VENDOR_WEBGL)),this.options.extTextureFloatLinearForceOff||(this.extTextureFloatLinear=d.getExtension("OES_texture_float_linear")),this.extRenderToTextureHalfFloat=d.getExtension("EXT_color_buffer_half_float"),this.extTimerQuery=d.getExtension("EXT_disjoint_timer_query_webgl2"),this.maxTextureSize=d.getParameter(d.MAX_TEXTURE_SIZE),this.maxPointSize=d.getParameter(d.ALIASED_POINT_SIZE_RANGE)[1]}setDefault(){this.unbindVAO(),this.clearColor.setDefault(),this.clearDepth.setDefault(),this.clearStencil.setDefault(),this.colorMask.setDefault(),this.depthMask.setDefault(),this.stencilMask.setDefault(),this.stencilFunc.setDefault(),this.stencilOp.setDefault(),this.stencilTest.setDefault(),this.depthRange.setDefault(),this.depthTest.setDefault(),this.depthFunc.setDefault(),this.blend.setDefault(),this.blendFunc.setDefault(),this.blendColor.setDefault(),this.blendEquation.setDefault(),this.cullFace.setDefault(),this.cullFaceSide.setDefault(),this.frontFace.setDefault(),this.program.setDefault(),this.activeTexture.setDefault(),this.bindFramebuffer.setDefault(),this.pixelStoreUnpack.setDefault(),this.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.pixelStoreUnpackFlipY.setDefault()}setDirty(){this.clearColor.dirty=!0,this.clearDepth.dirty=!0,this.clearStencil.dirty=!0,this.colorMask.dirty=!0,this.depthMask.dirty=!0,this.stencilMask.dirty=!0,this.stencilFunc.dirty=!0,this.stencilOp.dirty=!0,this.stencilTest.dirty=!0,this.depthRange.dirty=!0,this.depthTest.dirty=!0,this.depthFunc.dirty=!0,this.blend.dirty=!0,this.blendFunc.dirty=!0,this.blendColor.dirty=!0,this.blendEquation.dirty=!0,this.cullFace.dirty=!0,this.cullFaceSide.dirty=!0,this.frontFace.dirty=!0,this.program.dirty=!0,this.activeTexture.dirty=!0,this.viewport.dirty=!0,this.bindFramebuffer.dirty=!0,this.bindRenderbuffer.dirty=!0,this.bindTexture.dirty=!0,this.bindVertexBuffer.dirty=!0,this.bindElementBuffer.dirty=!0,this.bindVertexArrayOES.dirty=!0,this.pixelStoreUnpack.dirty=!0,this.pixelStoreUnpackPremultiplyAlpha.dirty=!0,this.pixelStoreUnpackFlipY.dirty=!0}createIndexBuffer(d,f,y){return new Va(this,d,f,y)}createVertexBuffer(d,f,y,w,E){return new Ua(this,d,f,y,w,E)}createRenderbuffer(d,f,y){let w=this.gl,E=w.createRenderbuffer();return this.bindRenderbuffer.set(E),w.renderbufferStorage(w.RENDERBUFFER,d,f,y),this.bindRenderbuffer.set(null),E}createFramebuffer(d,f,y,w){return new fy(this,d,f,y,w)}clear({color:d,depth:f,stencil:y,colorMask:w}){let E=this.gl,D=0;d&&(D|=E.COLOR_BUFFER_BIT,this.clearColor.set(d),this.colorMask.set(w||[!0,!0,!0,!0])),f!==void 0&&(D|=E.DEPTH_BUFFER_BIT,this.depthRange.set([0,1]),this.clearDepth.set(f),this.depthMask.set(!0)),y!==void 0&&(D|=E.STENCIL_BUFFER_BIT,this.clearStencil.set(y),this.stencilMask.set(255)),E.clear(D)}setCullFace(d){d.enable===!1?this.cullFace.set(!1):(this.cullFace.set(!0),this.cullFaceSide.set(d.mode),this.frontFace.set(d.frontFace))}setDepthMode(d){d.func!==this.gl.ALWAYS||d.mask?(this.depthTest.set(!0),this.depthFunc.set(d.func),this.depthMask.set(d.mask),this.depthRange.set(d.range)):this.depthTest.set(!1)}setStencilMode(d){d.test.func!==this.gl.ALWAYS||d.mask?(this.stencilTest.set(!0),this.stencilMask.set(d.mask),this.stencilOp.set([d.fail,d.depthFail,d.pass]),this.stencilFunc.set({func:d.test.func,ref:d.ref,mask:d.test.mask})):this.stencilTest.set(!1)}setColorMode(d){s(d.blendFunction,lo.Replace)?this.blend.set(!1):(this.blend.set(!0),this.blendFunc.set(d.blendFunction),this.blendColor.set(d.blendColor),d.blendEquation?this.blendEquation.set(d.blendEquation):this.blendEquation.setDefault()),this.colorMask.set(d.mask)}unbindVAO(){this.bindVertexArrayOES.set(null)}}var TU=o.aB([{name:"a_index",type:"Int16",components:1}]);let Pg=.15000000000000002;class $S{constructor(d,f,y,w){let E={width:y[0],height:y[1],data:null},D=d.gl;this.targetColorTexture=new o.T(d,E,D.RGBA,{useMipmap:!1}),this.backgroundColorTexture=new o.T(d,E,D.RGBA,{useMipmap:!1}),this.context=d,this.setParticleTextureDimension(f,w),this.lastInvalidatedAt=0}setParticleTextureDimension(d,f){if(this.particleTextureDimension===f)return;(this.particleTexture0||this.particleTexture1||this.particleIndexBuffer||this.particleSegment)&&(this.particleTexture0.destroy(),this.particleTexture1.destroy(),this.particleIndexBuffer.destroy(),this.particleSegment.destroy());let y=this.context.gl,w=f*f,E=new Uint8Array(4*w),D=.7692307692307692,R=o.aC(d.key);for(let G=0;G[[new o.P(0,0),new o.P(o.Y+1,0),new o.P(o.Y+1,o.Y+1),new o.P(0,o.Y+1),new o.P(0,0)]]};class Nh{constructor(d,f,y,w,E){this.tileID=d,this.uid=o.aF(),this.uses=0,this.tileSize=f,this.tileZoom=y,this.buckets={},this.expirationTime=null,this.queryPadding=0,this.hasSymbolBuckets=!1,this.hasRTLText=!1,this.dependencies={},this.isRaster=E,w&&w.style&&(this._lastUpdatedBrightness=w.style.getBrightness()),this.expiredRequestCount=0,this.state="loading",w&&w.transform&&(this.projection=w.transform.projection)}registerFadeDuration(d){let f=d+this.timeAdded;fE.getLayer(U)).filter(Boolean);if(B.length!==0){R.layers=B,R.stateDependentLayerIds&&(R.stateDependentLayers=R.stateDependentLayerIds.map(U=>B.filter(G=>G.id===U)[0]));for(let U of B)D[U.fqid]=R}}return D}(d.buckets,f.style),this.hasSymbolBuckets=!1;for(let w in this.buckets){let E=this.buckets[w];if(E instanceof o.aH){if(this.hasSymbolBuckets=!0,!y)break;E.justReloaded=!0}}if(this.hasRTLText=!1,this.hasSymbolBuckets)for(let w in this.buckets){let E=this.buckets[w];if(E instanceof o.aH&&E.hasRTLText){this.hasRTLText=!0,o.aI();break}}this.queryPadding=0;for(let w in this.buckets){let E=this.buckets[w],D=f.style.getOwnLayer(w);if(!D)continue;let R=D.queryRadius(E);this.queryPadding=Math.max(this.queryPadding,R)}d.imageAtlas&&(this.imageAtlas=d.imageAtlas),d.glyphAtlasImage&&(this.glyphAtlasImage=d.glyphAtlasImage),d.lineAtlas&&(this.lineAtlas=d.lineAtlas),this._lastUpdatedBrightness=d.brightness}else this.collisionBoxArray=new o.aG}unloadVectorData(){if(this.hasData()){for(let d in this.buckets)this.buckets[d].destroy();this.buckets={},this.imageAtlas&&(this.imageAtlas=null),this.lineAtlas&&(this.lineAtlas=null),this.imageAtlasTexture&&this.imageAtlasTexture.destroy(),this.glyphAtlasTexture&&this.glyphAtlasTexture.destroy(),this.lineAtlasTexture&&this.lineAtlasTexture.destroy(),this._tileBoundsBuffer&&(this._tileBoundsBuffer.destroy(),this._tileBoundsIndexBuffer.destroy(),this._tileBoundsSegments.destroy(),this._tileBoundsBuffer=null),this._tileDebugBuffer&&(this._tileDebugBuffer.destroy(),this._tileDebugSegments.destroy(),this._tileDebugBuffer=null),this._tileDebugIndexBuffer&&(this._tileDebugIndexBuffer.destroy(),this._tileDebugIndexBuffer=null),this._globeTileDebugBorderBuffer&&(this._globeTileDebugBorderBuffer.destroy(),this._globeTileDebugBorderBuffer=null),this._tileDebugTextBuffer&&(this._tileDebugTextBuffer.destroy(),this._tileDebugTextSegments.destroy(),this._tileDebugTextIndexBuffer.destroy(),this._tileDebugTextBuffer=null),this._globeTileDebugTextBuffer&&(this._globeTileDebugTextBuffer.destroy(),this._globeTileDebugTextBuffer=null),this.latestFeatureIndex=null,this.state="unloaded"}}getBucket(d){return this.buckets[d.fqid]}upload(d){for(let w in this.buckets){let E=this.buckets[w];E.uploadPending()&&E.upload(d)}let f=d.gl,y=this.imageAtlas;if(y&&!y.uploaded){let w=!!Object.keys(y.patternPositions).length;this.imageAtlasTexture=new o.T(d,y.image,f.RGBA,{useMipmap:w}),this.imageAtlas.uploaded=!0}this.glyphAtlasImage&&(this.glyphAtlasTexture=new o.T(d,this.glyphAtlasImage,f.R8),this.glyphAtlasImage=null),this.lineAtlas&&!this.lineAtlas.uploaded&&(this.lineAtlasTexture=new o.T(d,this.lineAtlas.image,f.R8),this.lineAtlas.uploaded=!0)}prepare(d,f,y){if(this.imageAtlas&&this.imageAtlasTexture&&this.imageAtlas.patchUpdatedImages(d,this.imageAtlasTexture,y),!f||!this.latestFeatureIndex||!this.latestFeatureIndex.rawTileData)return;let w=f.style.getBrightness();(this._lastUpdatedBrightness||w)&&(this._lastUpdatedBrightness&&w&&Math.abs(this._lastUpdatedBrightness-w)<.001||(this._lastUpdatedBrightness=w,this.updateBuckets(void 0,f)))}queryRenderedFeatures(d,f,y,w,E,D,R,B){return this.latestFeatureIndex&&(this.latestFeatureIndex.rawTileData||this.latestFeatureIndex.is3DTile)?this.latestFeatureIndex.query({tileResult:w,pixelPosMatrix:R,transform:D,params:E,tileTransform:this.tileTransform},d,f,y):{}}querySourceFeatures(d,f){let y=this.latestFeatureIndex;if(!y||!y.rawTileData)return;let w=y.loadVTLayers(),E=f?f.sourceLayer:"",D=w._geojsonTileLayer||w[E];if(!D)return;let R=o.aJ(f&&f.filter),{z:B,x:U,y:G}=this.tileID.canonical,$={z:B,x:U,y:G};for(let Q=0;Qy)w=!1;else if(f)if(this.expirationTime=0;_e--){let ye=4*_e,Ae=Jn[ye+0],je=Jn[ye+1],He=Jn[ye+2],Ze=Jn[ye+3],be=Ae+He>>1,Oe=je+Ze>>1,st=be+Oe-je,ot=Oe+Ae-be,xt=je*Ji+Ae,Yt=Ze*Ji+He,gt=Oe*Ji+be,zt=Math.hypot((uo[2*xt+0]+uo[2*Yt+0])/2-uo[2*gt+0],(uo[2*xt+1]+uo[2*Yt+1])/2-uo[2*gt+1])>=16;Sn[gt]=Sn[gt]||(zt?1:0),_e<1022&&(Sn[gt]=Sn[gt]||Sn[(je+ot>>1)*Ji+(Ae+st>>1)]||Sn[(Ze+ot>>1)*Ji+(He+st>>1)])}let $=new o.ay,Q=new o.az,te=0;function he(_e,ye){let Ae=ye*Ji+_e;return Ko[Ae]===0&&($.emplaceBack(uo[2*Ae+0],uo[2*Ae+1],_e*o.Y/pn,ye*o.Y/pn),Ko[Ae]=++te),Ko[Ae]-1}function me(_e,ye,Ae,je,He,Ze){let be=_e+Ae>>1,Oe=ye+je>>1;if(Math.abs(_e-He)+Math.abs(ye-Ze)>1&&Sn[Oe*Ji+be])me(He,Ze,_e,ye,be,Oe),me(Ae,je,He,Ze,be,Oe);else{let st=he(_e,ye),ot=he(Ae,je),xt=he(He,Ze);Q.emplaceBack(st,ot,xt)}}return me(0,0,pn,pn,pn,0),me(pn,pn,0,0,0,pn),{vertices:$,indices:Q}}(this.tileID.canonical,f);w=D.vertices,E=D.indices}else{w=new o.ay,E=new o.az;for(let{x:R,y:B}of y)w.emplaceBack(R,B,0,0);let D=o.aT(w.int16,void 0,4);for(let R=0;R0&&(B=o.a9.invert(new Float64Array(16),f.globeMatrix)),this._makeGlobeTileDebugBorderBuffer(d,w,f,D,B,R),this._makeGlobeTileDebugTextBuffer(d,w,f,D,B,R)}_globePoint(d,f,y,w,E,D,R){let B=o.aX(d,f,y);if(D){let U=1<.5?te=-1:Q<-.5&&(te=1);let he=(d/o.Y+y.x)/U+te,me=(f/o.Y+y.y)/U;he=(he-G)*w._pixelsPerMercatorPixel+G,me=(me-$)*w._pixelsPerMercatorPixel+$;let _e=[he*w.worldSize,me*w.worldSize,0];o.Q.transformMat4(_e,_e,D),B=o.aY(B,_e,R)}return o.Q.transformMat4(B,B,E)}_makeGlobeTileDebugBorderBuffer(d,f,y,w,E,D){let R=new o.aQ,B=new o.aR,U=new o.aZ,G=(Q,te,he,me,_e)=>{let ye=(he-Q)/(_e-1),Ae=(me-te)/(_e-1),je=R.length;for(let He=0;He<_e;He++){let Ze=Q+He*ye,be=te+He*Ae;R.emplaceBack(Ze,be);let Oe=this._globePoint(Ze,be,f,y,w,E,D);U.emplaceBack(Oe[0],Oe[1],Oe[2]),B.emplaceBack(je+He)}},$=o.Y;G(0,0,$,0,16),G($,0,$,$,16),G($,$,0,$,16),G(0,$,0,0,16),this._tileDebugIndexBuffer=d.createIndexBuffer(B),this._tileDebugBuffer=d.createVertexBuffer(R,o.aS.members),this._globeTileDebugBorderBuffer=d.createVertexBuffer(U,o.a_.members),this._tileDebugSegments=o.aE.simpleSegment(0,0,R.length,B.length)}_makeGlobeTileDebugTextBuffer(d,f,y,w,E,D){let R=o.Y/4,B=new o.aQ,U=new o.az,G=new o.aZ,$=25;U.reserve(32),B.reserve($),G.reserve($);let Q=(te,he)=>$*te+he;for(let te=0;te<$;te++){let he=te*R;for(let me=0;me<$;me++){let _e=me*R;B.emplaceBack(_e,he);let ye=this._globePoint(_e,he,f,y,w,E,D);G.emplaceBack(ye[0],ye[1],ye[2])}}for(let te=0;te<4;te++)for(let he=0;he<4;he++){let me=Q(te,he),_e=Q(te,he+1),ye=Q(te+1,he),Ae=Q(te+1,he+1);U.emplaceBack(me,_e,ye),U.emplaceBack(ye,_e,Ae)}this._tileDebugTextIndexBuffer=d.createIndexBuffer(U),this._tileDebugTextBuffer=d.createVertexBuffer(B,o.aS.members),this._globeTileDebugTextBuffer=d.createVertexBuffer(G,o.a_.members),this._tileDebugTextSegments=o.aE.simpleSegment(0,0,$,32)}destroy(d=!1){for(let f in this.buckets)this.buckets[f].destroy();this.buckets={},this.imageAtlas&&(this.imageAtlas=null),this.lineAtlas&&(this.lineAtlas=null),this.imageAtlasTexture&&(this.imageAtlasTexture.destroy(),delete this.imageAtlasTexture),this.glyphAtlasTexture&&(this.glyphAtlasTexture.destroy(),delete this.glyphAtlasTexture),this.lineAtlasTexture&&(this.lineAtlasTexture.destroy(),delete this.lineAtlasTexture),this._tileBoundsBuffer&&(this._tileBoundsBuffer.destroy(),this._tileBoundsIndexBuffer.destroy(),this._tileBoundsSegments.destroy(),this._tileBoundsBuffer=null),this._tileDebugBuffer&&(this._tileDebugBuffer.destroy(),this._tileDebugSegments.destroy(),this._tileDebugBuffer=null),this._tileDebugIndexBuffer&&(this._tileDebugIndexBuffer.destroy(),this._tileDebugIndexBuffer=null),this._globeTileDebugBorderBuffer&&(this._globeTileDebugBorderBuffer.destroy(),this._globeTileDebugBorderBuffer=null),this._tileDebugTextBuffer&&(this._tileDebugTextBuffer.destroy(),this._tileDebugTextSegments.destroy(),this._tileDebugTextIndexBuffer.destroy(),this._tileDebugTextBuffer=null),this._globeTileDebugTextBuffer&&(this._globeTileDebugTextBuffer.destroy(),this._globeTileDebugTextBuffer=null),!d&&this.texture&&this.texture instanceof o.T&&(this.texture.destroy(),delete this.texture),this.hillshadeFBO&&(this.hillshadeFBO.destroy(),delete this.hillshadeFBO),this.dem&&delete this.dem,this.neighboringTiles&&delete this.neighboringTiles,this.demTexture&&(this.demTexture.destroy(),delete this.demTexture),this.rasterParticleState&&(this.rasterParticleState.destroy(),delete this.rasterParticleState),this.latestFeatureIndex=null,this.state="unloaded"}}let cn={vector:ln,raster:rn,"raster-dem":class extends rn{constructor(v,d,f,y){super(v,d,f,y),this.type="raster-dem",this.maxzoom=22,this._options=o.e({type:"raster-dem"},d),this.encoding=d.encoding||"mapbox"}loadTile(v,d){let f=this.map._requestManager.normalizeTileURL(v.tileID.canonical.url(this.tiles,this.scheme),!1,this.tileSize);function y(w,E){w&&(v.state="errored",d(w)),E&&(v.dem=E,v.dem.onDeserialize(),v.needsHillshadePrepare=!0,v.needsDEMTextureUpload=!0,v.state="loaded",d(null))}v.request=o.d(this.map._requestManager.transformRequest(f,o.R.Tile),(function(w,E,D,R){if(delete v.request,v.aborted)v.state="unloaded",d(null);else if(w)v.state="errored",d(w);else if(E){this.map._refreshExpiredTiles&&v.setExpiryData({cacheControl:D,expires:R});let B=ImageBitmap&&E instanceof ImageBitmap&&o.an(),U=1-(E.width-o.ao(E.width))/2;U<1||v.neighboringTiles||(v.neighboringTiles=this._getNeighboringTiles(v.tileID));let G=B?E:o.f.getImageData(E,U),$={uid:v.uid,coord:v.tileID,source:this.id,scope:this.scope,rawImageData:G,encoding:this.encoding,padding:U};v.actor&&v.state!=="expired"||(v.actor=this.dispatcher.getActor(),v.actor.send("loadDEMTile",$,y.bind(this),void 0,!0))}}).bind(this))}_getNeighboringTiles(v){let d=v.canonical,f=Math.pow(2,d.z),y=(d.x-1+f)%f,w=d.x===0?v.wrap-1:v.wrap,E=(d.x+1+f)%f,D=d.x+1===f?v.wrap+1:v.wrap,R={};return R[new o.ap(v.overscaledZ,w,d.z,y,d.y).key]={backfilled:!1},R[new o.ap(v.overscaledZ,D,d.z,E,d.y).key]={backfilled:!1},d.y>0&&(R[new o.ap(v.overscaledZ,w,d.z,y,d.y-1).key]={backfilled:!1},R[new o.ap(v.overscaledZ,v.wrap,d.z,d.x,d.y-1).key]={backfilled:!1},R[new o.ap(v.overscaledZ,D,d.z,E,d.y-1).key]={backfilled:!1}),d.y+1{if(this._loaded=!0,this._pendingLoad=null,y)this.fire(new o.a(y));else{let E={dataType:"source",sourceDataType:this._metadataFired?"content":"metadata"};this._collectResourceTiming&&w&&w.resourceTiming&&w.resourceTiming[this.id]&&(E.resourceTiming=w.resourceTiming[this.id]),this.fire(new o.b("data",E)),this._metadataFired=!0}this._coalesce&&(this._updateWorkerData(v),this._coalesce=!1)})}loaded(){return this._loaded}loadTile(v,d){let f=v.actor?"reloadTile":"loadTile";v.actor=this.actor;let y={type:this.type,uid:v.uid,tileID:v.tileID,tileZoom:v.tileZoom,zoom:v.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,scope:this.scope,pixelRatio:o.f.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId,brightness:this.map.style&&this.map.style.getBrightness()||0};v.request=this.actor.send(f,y,(w,E)=>(delete v.request,v.destroy(),v.aborted?d(null):w?d(w):(v.loadVectorData(E,this.map.painter,f==="reloadTile"),d(null))),void 0,f==="loadTile")}abortTile(v){v.request&&(v.request.cancel(),delete v.request),v.aborted=!0}unloadTile(v){this.actor.send("removeTile",{uid:v.uid,type:this.type,source:this.id,scope:this.scope}),v.destroy()}onRemove(){this._pendingLoad&&this._pendingLoad.cancel()}serialize(){return o.e({},this._options,{type:this.type,data:this._data})}hasTransition(){return!1}},video:class extends o.as{constructor(v,d,f,y){super(v,d,f,y),this.roundZoom=!0,this.type="video",this.options=d}load(){this._loaded=!1;let v=this.options;this.urls=[];for(let d of v.urls)this.urls.push(this.map._requestManager.transformRequest(d,o.R.Source).url);o.at(this.urls,(d,f)=>{this._loaded=!0,d?this.fire(new o.a(d)):f&&(this.video=f,this.video.loop=!0,this.video.setAttribute("playsinline",""),this.video.addEventListener("playing",()=>{this.map.triggerRepaint()}),this.map&&this.video.play(),this._finishLoading())})}pause(){this.video&&this.video.pause()}play(){this.video&&this.video.play()}seek(v){if(this.video){let d=this.video.seekable;vd.end(0)?this.fire(new o.a(new o.V(`sources.${this.id}`,null,`Playback for this video can be set only between the ${d.start(0)} and ${d.end(0)}-second mark.`))):this.video.currentTime=v}}getVideo(){return this.video}onAdd(v){this.map||(this.map=v,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))}prepare(){if(Object.keys(this.tiles).length===0||this.video.readyState<2)return;let v=this.map.painter.context,d=v.gl;this.texture?this.video.paused||(this.texture.bind(d.LINEAR,d.CLAMP_TO_EDGE),d.texSubImage2D(d.TEXTURE_2D,0,0,0,d.RGBA,d.UNSIGNED_BYTE,this.video)):(this.texture=new o.T(v,this.video,d.RGBA),this.texture.bind(d.LINEAR,d.CLAMP_TO_EDGE),this.width=this.video.videoWidth,this.height=this.video.videoHeight),this._prepareData(v)}serialize(){return{type:"video",urls:this.urls,coordinates:this.coordinates}}hasTransition(){return this.video&&!this.video.paused}},image:o.as,model:class extends o.E{constructor(v,d,f,y){super(),this.id=v,this.type="model",this.models=[],this._loaded=!1,this._options=d}load(){let v=[];for(let d in this._options.models){let f=this._options.models[d],y=o.l(this.map._requestManager.transformRequest(f.uri,o.R.Model).url).then(w=>{if(!w)return;let E=o.c(w),D=new o.M(d,f.position,f.orientation,E);D.computeBoundsAndApplyParent(),this.models.push(D)}).catch(w=>{this.fire(new o.a(new Error(`Could not load model ${d} from ${f.uri}: ${w.message}`)))});v.push(y)}return Promise.allSettled(v).then(()=>{this._loaded=!0,this.fire(new o.b("data",{dataType:"source",sourceDataType:"metadata"}))}).catch(d=>{this.fire(new o.a(new Error(`Could not load models: ${d.message}`)))})}onAdd(v){this.map=v,this.load()}hasTransition(){return!1}loaded(){return this._loaded}getModels(){return this.models}loadTile(v,d){}serialize(){return{type:"model"}}},"batched-model":class extends o.E{constructor(v,d,f,y){super(),this.type="batched-model",this.id=v,this.tileSize=512,this._options=d,this.tiles=this._options.tiles,this.maxzoom=d.maxzoom||19,this.minzoom=d.minzoom||0,this.roundZoom=!0,this.usedInConflation=!0,this.dispatcher=f,this.reparseOverscaled=!1,this.scheme="xyz",this._loaded=!1,this.setEventedParent(y)}onAdd(v){this.map=v,this.load()}load(v){this._loaded=!1,this.fire(new o.b("dataloading",{dataType:"source"}));let d=Array.isArray(this.map._language)?this.map._language.join():this.map._language,f=this.map._worldview;this._tileJSONRequest=qi(this._options,this.map._requestManager,d,f,(y,w)=>{this._tileJSONRequest=null,this._loaded=!0,y?(d&&console.warn(`Ensure that your requested language string is a valid BCP-47 code or list of codes. Found: ${d}`),f&&f.length!==2&&console.warn(`Requested worldview strings must be a valid ISO alpha-2 code. Found: ${f}`),this.fire(new o.a(y))):w&&(o.e(this,w),w.bounds&&(this.tileBounds=new $i(w.bounds,this.minzoom,this.maxzoom)),o.am(w.tiles,this.map._requestManager._customAccessToken),this.fire(new o.b("data",{dataType:"source",sourceDataType:"metadata"})),this.fire(new o.b("data",{dataType:"source",sourceDataType:"content"}))),v&&v(y)})}hasTransition(){return!1}hasTile(v){return!this.tileBounds||this.tileBounds.contains(v.canonical)}loaded(){return this._loaded}loadTile(v,d){let f=this.map._requestManager.normalizeTileURL(v.tileID.canonical.url(this.tiles,this.scheme)),y={request:this.map._requestManager.transformRequest(f,o.R.Tile),data:void 0,uid:v.uid,tileID:v.tileID,tileZoom:v.tileZoom,zoom:v.tileID.overscaledZ,tileSize:this.tileSize*v.tileID.overscaleFactor(),type:this.type,source:this.id,scope:this.scope,showCollisionBoxes:this.map.showCollisionBoxes,isSymbolTile:v.isSymbolTile,brightness:this.map.style&&this.map.style.getBrightness()||0};if(v.actor&&v.state!=="expired")if(v.state==="loading")v.reloadCallback=d;else{if(v.buckets){let E=Object.values(v.buckets);for(let D of E)D.dirty=!0;return void(v.state="loaded")}v.request=v.actor.send("reloadTile",y,w.bind(this))}else v.actor=this.dispatcher.getActor(),v.request=v.actor.send("loadTile",y,w.bind(this),void 0,!0);function w(E,D){return v.aborted?d(null):E&&E.status!==404?d(E):(D&&(D.resourceTiming&&(v.resourceTiming=D.resourceTiming),this.map._refreshExpiredTiles&&v.setExpiryData(D),v.buckets=Ce(Ce({},v.buckets),D.buckets),D.featureIndex&&(v.latestFeatureIndex=D.featureIndex)),v.state="loaded",void d(null))}}serialize(){return o.e({},this._options)}},canvas:class extends o.as{constructor(v,d,f,y){super(v,d,f,y),d.coordinates?Array.isArray(d.coordinates)&&d.coordinates.length===4&&!d.coordinates.some(w=>!Array.isArray(w)||w.length!==2||w.some(E=>typeof E!="number"))||this.fire(new o.a(new o.V(`sources.${v}`,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new o.a(new o.V(`sources.${v}`,null,'missing required property "coordinates"'))),d.animate&&typeof d.animate!="boolean"&&this.fire(new o.a(new o.V(`sources.${v}`,null,'optional "animate" property must be a boolean value'))),d.canvas?typeof d.canvas=="string"||d.canvas instanceof HTMLCanvasElement||this.fire(new o.a(new o.V(`sources.${v}`,null,'"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new o.a(new o.V(`sources.${v}`,null,'missing required property "canvas"'))),this.options=d,this.animate=d.animate===void 0||d.animate}load(){this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof HTMLCanvasElement?this.options.canvas:document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()?this.fire(new o.a(new Error("Canvas dimensions cannot be less than or equal to zero."))):(this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1)},this._finishLoading())}getCanvas(){return this.canvas}onAdd(v){this.map=v,this.load(),this.canvas&&this.animate&&this.play()}onRemove(){this.pause()}prepare(){let v=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,v=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,v=!0),this._hasInvalidDimensions()||Object.keys(this.tiles).length===0)return;let d=this.map.painter.context;this.texture?!v&&!this._playing||this.texture instanceof o.au||this.texture.update(this.canvas,{premultiply:!0}):this.texture=new o.T(d,this.canvas,d.gl.RGBA,{premultiply:!0}),this._prepareData(d)}serialize(){return{type:"canvas",coordinates:this.coordinates}}hasTransition(){return this._playing}_hasInvalidDimensions(){for(let v of[this.canvas.width,this.canvas.height])if(isNaN(v)||v<=0)return!0;return!1}},custom:class extends o.E{constructor(v,d,f,y){super(),this.id=v,this.type="custom",this._dataType="raster",this._dispatcher=f,this._implementation=d,this.setEventedParent(y),this.scheme="xyz",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this._loaded=!1,this.roundZoom=!0,this._implementation||this.fire(new o.a(new Error(`Missing implementation for ${this.id} custom source`))),this._implementation.loadTile||this.fire(new o.a(new Error(`Missing loadTile implementation for ${this.id} custom source`))),this._implementation.bounds&&(this.tileBounds=new $i(this._implementation.bounds,this.minzoom,this.maxzoom)),d.update=this._update.bind(this),d.clearTiles=this._clearTiles.bind(this),d.coveringTiles=this._coveringTiles.bind(this),o.e(this,o.af(d,["dataType","scheme","minzoom","maxzoom","tileSize","attribution","minTileCacheSize","maxTileCacheSize"]))}serialize(){return o.af(this,["type","scheme","minzoom","maxzoom","tileSize","attribution"])}load(){this._loaded=!0,this.fire(new o.b("data",{dataType:"source",sourceDataType:"metadata"})),this.fire(new o.b("data",{dataType:"source",sourceDataType:"content"}))}loaded(){return this._loaded}onAdd(v){this._map=v,this._loaded=!1,this.fire(new o.b("dataloading",{dataType:"source"})),this._implementation.onAdd&&this._implementation.onAdd(v),this.load()}onRemove(v){this._implementation.onRemove&&this._implementation.onRemove(v)}hasTile(v){if(this._implementation.hasTile){let{x:d,y:f,z:y}=v.canonical;return this._implementation.hasTile({x:d,y:f,z:y})}return!this.tileBounds||this.tileBounds.contains(v.canonical)}loadTile(v,d){let{x:f,y,z:w}=v.tileID.canonical,E=new AbortController;v.request=Promise.resolve(this._implementation.loadTile({x:f,y,z:w},{signal:E.signal})).then((function(D){return delete v.request,v.aborted?(v.state="unloaded",d(null)):D===void 0?(v.state="errored",d(null)):D===null?(this.loadTileData(v,{width:this.tileSize,height:this.tileSize,data:null}),v.state="loaded",d(null)):function(R){return R instanceof ImageData||R instanceof HTMLCanvasElement||R instanceof ImageBitmap||R instanceof HTMLImageElement}(D)?(this.loadTileData(v,D),v.state="loaded",void d(null)):(v.state="errored",d(new Error(`Can't infer data type for ${this.id}, only raster data supported at the moment`)))}).bind(this)).catch(D=>{D.code!==20&&(v.state="errored",d(D))}),v.request.cancel=()=>E.abort()}loadTileData(v,d){v.setTexture(d,this._map.painter)}unloadTile(v,d){if(v.texture&&v.texture instanceof o.T?(v.destroy(!0),v.texture&&v.texture instanceof o.T&&this._map.painter.saveTileTexture(v.texture)):v.destroy(),this._implementation.unloadTile){let{x:f,y,z:w}=v.tileID.canonical;this._implementation.unloadTile({x:f,y,z:w})}d()}abortTile(v,d){v.request&&v.request.cancel&&(v.request.cancel(),delete v.request),d()}hasTransition(){return!1}_coveringTiles(){return this._map.transform.coveringTiles({tileSize:this.tileSize,minzoom:this.minzoom,maxzoom:this.maxzoom,roundZoom:this.roundZoom}).map(v=>({x:v.canonical.x,y:v.canonical.y,z:v.canonical.z}))}_clearTiles(){let v=o.aj(this.id,this.scope);this._map.style.clearSource(v)}_update(){this.fire(new o.b("data",{dataType:"source",sourceDataType:"content"}))}}},yk=function(v,d,f,y){let w=new cn[d.type](v,d,f,y);if(w.id!==v)throw new Error(`Expected Source id to be ${v} instead of ${w.id}`);return o.a$(["load","abort","unload","serialize","prepare"],w),w};function WS(v,d){let f=o.a9.identity([]);return o.a9.scale(f,f,[.5*v.width,.5*-v.height,1]),o.a9.translate(f,f,[1,-1,0]),o.a9.multiply(f,f,v.calculateProjMatrix(d.toUnwrapped())),Float32Array.from(f)}function Bo(v,d,f,y,w,E,D,R=!1){let B=v.tilesIn(y,D,R);B.sort(ZS);let U=[];for(let $ of B)U.push({wrappedTileID:$.tile.tileID.wrapped().key,queryResults:$.tile.queryRenderedFeatures(d,f,v._state,$,w,E,WS(v.transform,$.tile.tileID),R)});let G=function($){let Q={},te={};for(let he of $){let me=he.queryResults,_e=he.wrappedTileID,ye=te[_e]=te[_e]||{};for(let Ae in me){let je=me[Ae],He=ye[Ae]=ye[Ae]||{},Ze=Q[Ae]=Q[Ae]||[];for(let be of je)He[be.featureIndex]||(He[be.featureIndex]=!0,Ze.push(be))}}return Q}(U);for(let $ in G)G[$].forEach(Q=>{let te=Q.feature,he=te.layer;he&&he.type!=="background"&&he.type!=="sky"&&he.type!=="slot"&&(te.source=he.source,he["source-layer"]&&(te.sourceLayer=he["source-layer"]),te.state=te.id!==void 0?v.getFeatureState(he["source-layer"],te.id):{})});return G}function Du(v,d){let f=v.getRenderableIds().map(E=>v.getTileByID(E)),y=[],w={};for(let E=0;E{if(E)f(E);else try{let U=y.getHeaderLength(D);if(U>d)return void(this.request=this.fetchHeader(U,f));y.parseHeader(D),this._isHeaderLoaded=!0;let G=0;for(let $ of Object.values(y.layers))G=Math.max(G,$.dataIndex[$.dataIndex.length-1].last_byte);D.byteLength>=G&&(this.entireBuffer=D),f(null,this.entireBuffer||D,R,B)}catch(U){f(U)}}),this.request}fetchBand(d,f,y){let w=this._mrt;if(!this._isHeaderLoaded||!w)return void y(new Error("Tile header is not ready"));let E=this.actor;if(!E)return void y(new Error("Can't fetch tile band without an actor"));let D,R=($,Q)=>{D.complete($,Q),$?y($):(this.updateTextureDescriptor(d,f),y(null,this.textureDescriptor&&this.textureDescriptor.img))},B=($,Q)=>{if($)return y($);let te=E.send("decodeRasterArray",{buffer:Q,task:D},R,void 0,!0);this._workQueue.push(()=>{te&&te.cancel(),D.cancel()})},U=w.getLayer(d);if(!U)return void y(new Error(`Unknown sourceLayer "${d}"`));if(U.hasDataForBand(f))return this.updateTextureDescriptor(d,f),void y(null,this.textureDescriptor?this.textureDescriptor.img:null);let G=U.getDataRange([f]);if(D=w.createDecodingTask(G),!D||D.tasks.length)if(this.flushQueues(),this.entireBuffer)B(null,this.entireBuffer.slice(G.firstByte,G.lastByte+1));else{let $=Object.assign({},this.requestParams,{headers:{Range:`bytes=${G.firstByte}-${G.lastByte}`}}),Q=o.b1($,B);this._fetchQueue.push(()=>{Q.cancel(),D.cancel()})}else y(null)}updateNeeded(d,f){return(!this.textureDescriptor||this.textureDescriptor.band!==f||this.textureDescriptor.layer!==d)&&this.state!=="errored"}updateTextureDescriptor(d,f){if(!this._mrt)return;let y=this._mrt.getLayer(d);if(!y||!y.hasBand(f)||!y.hasDataForBand(f))return;let{bytes:w,tileSize:E,buffer:D,offset:R,scale:B}=y.getBandView(f),U=E+2*D,G={data:w,width:U,height:U},$=this.texture;$&&$ instanceof o.T&&$.update(G,{useMipmap:!1,premultiply:!1}),this.textureDescriptor={layer:d,band:f,img:G,buffer:D,offset:R,tileSize:E,format:y.pixelFormat,mix:[B,256*B,65536*B,16777216*B]}}}class bk{constructor(d,f){this.max=d,this.onRemove=f,this.reset()}reset(){for(let d in this.data)for(let f of this.data[d])f.timeout&&clearTimeout(f.timeout),this.onRemove(f.value);return this.data={},this.order=[],this}add(d,f,y){let w=d.wrapped().key;this.data[w]===void 0&&(this.data[w]=[]);let E={value:f,timeout:void 0};if(y!==void 0&&(E.timeout=setTimeout(()=>{this.remove(d,E)},y)),this.data[w].push(E),this.order.push(w),this.order.length>this.max){let D=this._getAndRemoveByKey(this.order[0]);D&&this.onRemove(D)}return this}has(d){return d.wrapped().key in this.data}getAndRemove(d){return this.has(d)?this._getAndRemoveByKey(d.wrapped().key):null}_getAndRemoveByKey(d){let f=this.data[d].shift();return f.timeout&&clearTimeout(f.timeout),this.data[d].length===0&&delete this.data[d],this.order.splice(this.order.indexOf(d),1),f.value}getByKey(d){let f=this.data[d];return f?f[0].value:null}get(d){return this.has(d)?this.data[d.wrapped().key][0].value:null}remove(d,f){if(!this.has(d))return this;let y=d.wrapped().key,w=f===void 0?0:this.data[y].indexOf(f),E=this.data[y][w];return this.data[y].splice(w,1),E.timeout&&clearTimeout(E.timeout),this.data[y].length===0&&delete this.data[y],this.onRemove(E.value),this.order.splice(this.order.indexOf(y),1),this}setMaxSize(d){for(this.max=d;this.order.length>this.max;){let f=this._getAndRemoveByKey(this.order[0]);f&&this.onRemove(f)}return this}filter(d){let f=[];for(let y in this.data)for(let w of this.data[y])d(w.value)||f.push(w);for(let y of f)this.remove(y.value.tileID,y)}}class Ph extends o.E{constructor(d,f,y){super(),this.id=d,this._onlySymbols=y,f.on("data",w=>{w.dataType==="source"&&w.sourceDataType==="metadata"&&(this._sourceLoaded=!0),this._sourceLoaded&&!this._paused&&w.dataType==="source"&&w.sourceDataType==="content"&&(this.reload(),this.transform&&this.update(this.transform))}),f.on("error",()=>{this._sourceErrored=!0}),this._source=f,this._tiles={},this._cache=new bk(0,this._unloadTile.bind(this)),this._timers={},this._cacheTimers={},this._minTileCacheSize=f.minTileCacheSize,this._maxTileCacheSize=f.maxTileCacheSize,this._loadedParentTiles={},this.castsShadows=!1,this.tileCoverLift=0,this._coveredTiles={},this._shadowCasterTiles={},this._state=new Se,this._isRaster=this._source.type==="raster"||this._source.type==="raster-dem"||this._source.type==="raster-array"||this._source.type==="custom"&&this._source._dataType==="raster"}onAdd(d){this.map=d,this._minTileCacheSize=this._minTileCacheSize===void 0&&d?d._minTileCacheSize:this._minTileCacheSize,this._maxTileCacheSize=this._maxTileCacheSize===void 0&&d?d._maxTileCacheSize:this._maxTileCacheSize}loaded(){if(this._sourceErrored)return!0;if(!this._sourceLoaded||!this._source.loaded())return!1;for(let d in this._tiles){let f=this._tiles[d];if(f.state!=="errored"&&(f.state!=="loaded"||!f.bucketsLoaded()))return!1}return!0}getSource(){return this._source}pause(){this._paused=!0}resume(){if(!this._paused)return;let d=this._shouldReloadOnResume;this._paused=!1,this._shouldReloadOnResume=!1,d&&this.reload(),this.transform&&this.update(this.transform)}_loadTile(d,f){return d.isSymbolTile=this._onlySymbols,d.isExtraShadowCaster=this._shadowCasterTiles[d.tileID.key],this._source.loadTile(d,f)}_unloadTile(d){if(this._source.unloadTile)return this._source.unloadTile(d,()=>{})}_abortTile(d){if(this._source.abortTile)return this._source.abortTile(d,()=>{})}serialize(){return this._source.serialize()}prepare(d){this._source.prepare&&this._source.prepare(),this._state.coalesceChanges(this._tiles,this.map?this.map.painter:null);for(let f in this._tiles){let y=this._tiles[f];y.upload(d),y.prepare(this.map.style.imageManager,this.map?this.map.painter:null,this._source.scope)}}getIds(){return o.b2(this._tiles).map(d=>d.tileID).sort(Br).map(d=>d.key)}getRenderableIds(d,f){let y=[];for(let w in this._tiles)this._isIdRenderable(+w,d,f)&&y.push(this._tiles[w]);return d?y.sort((w,E)=>{let D=w.tileID,R=E.tileID,B=new o.P(D.canonical.x,D.canonical.y)._rotate(this.transform.angle),U=new o.P(R.canonical.x,R.canonical.y)._rotate(this.transform.angle);return D.overscaledZ-R.overscaledZ||U.y-B.y||U.x-B.x}).map(w=>w.tileID.key):y.map(w=>w.tileID).sort(Br).map(w=>w.key)}hasRenderableParent(d){let f=this.findLoadedParent(d,0);return!!f&&this._isIdRenderable(f.tileID.key)}_isIdRenderable(d,f,y){return this._tiles[d]&&this._tiles[d].hasData()&&!this._coveredTiles[d]&&(f||!this._tiles[d].holdingForFade())&&(y||!this._shadowCasterTiles[d])}reload(){if(this._paused)this._shouldReloadOnResume=!0;else{this._cache.reset();for(let d in this._tiles)this._tiles[d].state!=="errored"&&this._reloadTile(+d,"reloading")}}_reloadTile(d,f){let y=this._tiles[d];y&&(y.state!=="loading"&&(y.state=f),this._loadTile(y,this._tileLoaded.bind(this,y,d,f)))}_tileLoaded(d,f,y,w){if(w)if(d.state="errored",w.status!==404)this._source.fire(new o.a(w,{tile:d}));else{if(!(d.tileID.key in this._loadedParentTiles))return void this._source.fire(new o.b("data",{dataType:"source",sourceDataType:"error",sourceId:this._source.id}));if(this._source.type==="raster-dem"&&this.usedForTerrain&&this.map.painter.terrain){let E=this.map.painter.terrain;this.update(this.transform,E.getScaledDemTileSize(),!0),E.resetTileLookupCache(this.id)}else this.update(this.transform)}else d.timeAdded=o.f.now(),y==="expired"&&(d.refreshedUponExpiration=!0),this._setTileReloadTimer(f,d),this._source.type==="raster-dem"&&d.dem&&this._backfillDEM(d),this._state.initializeTileState(d,this.map?this.map.painter:null),this._source.fire(new o.b("data",{dataType:"source",tile:d,coord:d.tileID,sourceCacheId:this.id}))}_backfillDEM(d){let f=this.getRenderableIds();for(let w=0;w1||(Math.abs(D)>1&&(Math.abs(D+B)===1?D+=B:Math.abs(D-B)===1&&(D-=B)),E.dem&&w.dem&&(w.dem.backfillBorder(E.dem,D,R),w.neighboringTiles&&w.neighboringTiles[U]&&(w.neighboringTiles[U].backfilled=!0)))}}getTile(d){return this.getTileByID(d.key)}getTileByID(d){return this._tiles[d]}_retainLoadedChildren(d,f,y,w){for(let E in this._tiles){let D=this._tiles[E];if(w[E]||!D.hasData()||D.tileID.overscaledZ<=f||D.tileID.overscaledZ>y)continue;let R=D.tileID;for(;D&&D.tileID.overscaledZ>f+1;){let U=D.tileID.scaledTo(D.tileID.overscaledZ-1);D=this._tiles[U.key],D&&D.hasData()&&(R=U)}let B=R;for(;B.overscaledZ>f;)if(B=B.scaledTo(B.overscaledZ-1),d[B.key]){w[R.key]=R;break}}}findLoadedParent(d,f){if(d.key in this._loadedParentTiles){let y=this._loadedParentTiles[d.key];return y&&y.tileID.overscaledZ>=f?y:null}for(let y=d.overscaledZ-1;y>=f;y--){let w=d.scaledTo(y),E=this._getLoadedTile(w);if(E)return E}}_getLoadedTile(d){let f=this._tiles[d.key];return f&&f.hasData()?f:this._cache.getByKey(this._source.reparseOverscaled?d.wrapped().key:d.canonical.key)}updateCacheSize(d,f){f=f||this._source.tileSize;let y=Math.ceil(d.width/f)+1,w=Math.ceil(d.height/f)+1,E=Math.floor(y*w*5),D=typeof this._minTileCacheSize=="number"?Math.max(this._minTileCacheSize,E):E,R=typeof this._maxTileCacheSize=="number"?Math.min(this._maxTileCacheSize,D):D;this._cache.setMaxSize(R)}handleWrapJump(d){let f=Math.round((d-(this._prevLng===void 0?d:this._prevLng))/360);if(this._prevLng=d,f){let y={};for(let w in this._tiles){let E=this._tiles[w];E.tileID=E.tileID.unwrapTo(E.tileID.wrap+f),y[E.tileID.key]=E}this._tiles=y;for(let w in this._timers)clearTimeout(this._timers[w]),delete this._timers[w];for(let w in this._tiles)this._setTileReloadTimer(+w,this._tiles[w])}}update(d,f,y,w){if(this.transform=d,!this._sourceLoaded||this._paused||this.transform.freezeTileCoverage||this.usedForTerrain&&!y)return;let E;if(this.updateCacheSize(d,f),this.transform.projection.name!=="globe"&&this.handleWrapJump(this.transform.center.lng),this._shadowCasterTiles={},this._coveredTiles={},this.used||this.usedForTerrain)if(this._source.tileID)E=d.getVisibleUnwrappedCoordinates(this._source.tileID).map(B=>new o.ap(B.canonical.z,B.wrap,B.canonical.z,B.canonical.x,B.canonical.y));else if(this.tileCoverLift!==0){let B=d.clone();B.tileCoverLift=this.tileCoverLift,E=B.coveringTiles({tileSize:f||this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom&&!y,reparseOverscaled:this._source.reparseOverscaled,isTerrainDEM:this.usedForTerrain}),this._source.minzoom<=1&&d.projection.name==="globe"&&(E.push(new o.ap(1,0,1,0,0)),E.push(new o.ap(1,0,1,1,0)),E.push(new o.ap(1,0,1,0,1)),E.push(new o.ap(1,0,1,1,1)))}else E=d.coveringTiles({tileSize:f||this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom&&!y,reparseOverscaled:this._source.reparseOverscaled,isTerrainDEM:this.usedForTerrain}),this._source.hasTile&&(E=E.filter(B=>this._source.hasTile(B)));else E=[];if(E.length>0&&this.castsShadows&&w&&this.transform.projection.name!=="globe"&&!this.usedForTerrain&&!gy(this._source.type)){let B=d.coveringZoomLevel({tileSize:f||this._source.tileSize,roundZoom:this._source.roundZoom&&!y}),U=Math.min(B,this._source.maxzoom),G=d.extendTileCoverForShadows(E,w,U);for(let $ of G)this._shadowCasterTiles[$.key]=!0,E.push($)}let D=this._updateRetainedTiles(E);if(gy(this._source.type)&&E.length!==0){let B={},U={},G=Object.keys(D);for(let Q of G){let te=D[Q],he=this._tiles[Q];if(!he||he.fadeEndTime&&he.fadeEndTime<=o.f.now())continue;let me=this.findLoadedParent(te,Math.max(te.overscaledZ-Ph.maxOverzooming,this._source.minzoom));me&&(this._addTile(me.tileID),B[me.tileID.key]=me.tileID),U[Q]=te}let $=E[E.length-1].overscaledZ;for(let Q in this._tiles){let te=this._tiles[Q];if(D[Q]||!te.hasData())continue;let he=te.tileID;for(;he.overscaledZ>$;){he=he.scaledTo(he.overscaledZ-1);let me=this._tiles[he.key];if(me&&me.hasData()&&U[he.key]){D[Q]=te.tileID;break}}}for(let Q in B)D[Q]||(this._coveredTiles[Q]=!0,D[Q]=B[Q])}for(let B in D)this._tiles[B].clearFadeHold();let R=o.b3(this._tiles,D);for(let B of R){let U=this._tiles[B];U.hasSymbolBuckets&&!U.holdingForFade()?U.setHoldDuration(this.map._fadeDuration):U.hasSymbolBuckets&&!U.symbolFadeFinished()||this._removeTile(+B)}this._updateLoadedParentTileCache(),this._onlySymbols&&this._source.afterUpdate&&this._source.afterUpdate()}releaseSymbolFadeTiles(){for(let d in this._tiles)this._tiles[d].holdingForFade()&&this._removeTile(+d)}_updateRetainedTiles(d){let f={};if(d.length===0)return f;let y={},w=d.reduce((U,G)=>Math.min(U,G.overscaledZ),1/0),E=d[0].overscaledZ,D=Math.max(E-Ph.maxOverzooming,this._source.minzoom),R=Math.max(E+Ph.maxUnderzooming,this._source.minzoom),B={};for(let U of d){let G=this._addTile(U);f[U.key]=U,G.hasData()||w=this._source.maxzoom){let Q=U.children(this._source.maxzoom)[0],te=this.getTile(Q);if(te&&te.hasData()){f[Q.key]=Q;continue}}else{let Q=U.children(this._source.maxzoom);if(f[Q[0].key]&&f[Q[1].key]&&f[Q[2].key]&&f[Q[3].key])continue}let $=G.wasRequested();for(let Q=U.overscaledZ-1;Q>=D;--Q){let te=U.scaledTo(Q);if(y[te.key]||(y[te.key]=!0,G=this.getTile(te),!G&&$&&(G=this._addTile(te)),G&&(f[te.key]=te,$=G.wasRequested(),G.hasData())))break}}return f}_updateLoadedParentTileCache(){this._loadedParentTiles={};for(let d in this._tiles){let f=[],y,w=this._tiles[d].tileID;for(;w.overscaledZ>0;){if(w.key in this._loadedParentTiles){y=this._loadedParentTiles[w.key];break}f.push(w.key);let E=w.scaledTo(w.overscaledZ-1);if(y=this._getLoadedTile(E),y)break;w=E}for(let E of f)this._loadedParentTiles[E]=y}}_addTile(d){let f=this._tiles[d.key];if(f)return f.isExtraShadowCaster!==!0||this._shadowCasterTiles[d.key]||this._reloadTile(d.key,"reloading"),f;f=this._cache.getAndRemove(d),f&&(this._setTileReloadTimer(d.key,f),f.tileID=d,this._state.initializeTileState(f,this.map?this.map.painter:null),this._cacheTimers[d.key]&&(clearTimeout(this._cacheTimers[d.key]),delete this._cacheTimers[d.key],this._setTileReloadTimer(d.key,f)));let y=!!f;if(!y){let w=this.map?this.map.painter:null,E=this._source.tileSize*d.overscaleFactor();f=this._source.type==="raster-array"?new my(d,E,this.transform.tileZoom,w,this._isRaster):new Nh(d,E,this.transform.tileZoom,w,this._isRaster),this._loadTile(f,this._tileLoaded.bind(this,f,d.key,f.state))}return f?(f.uses++,this._tiles[d.key]=f,y||this._source.fire(new o.b("dataloading",{tile:f,coord:f.tileID,dataType:"source"})),f):null}_setTileReloadTimer(d,f){d in this._timers&&(clearTimeout(this._timers[d]),delete this._timers[d]);let y=f.getExpiryTimeout();y&&(this._timers[d]=setTimeout(()=>{this._reloadTile(d,"expired"),delete this._timers[d]},y))}_removeTile(d){let f=this._tiles[d];f&&(f.uses--,delete this._tiles[d],this._timers[d]&&(clearTimeout(this._timers[d]),delete this._timers[d]),f.uses>0||(f.hasData()&&f.state!=="reloading"||f.state==="empty"?this._cache.add(f.tileID,f,f.getExpiryTimeout()):(f.aborted=!0,this._abortTile(f),this._unloadTile(f))))}clearTiles(){this._shouldReloadOnResume=!1,this._paused=!1;for(let d in this._tiles)this._removeTile(+d);this._source._clear&&this._source._clear(),this._cache.reset(),this.map&&this.usedForTerrain&&this.map.painter.terrain&&this.map.painter.terrain.resetTileLookupCache(this.id)}tilesIn(d,f,y){let w=[],E=this.transform;if(!E)return w;let D=E.projection.name==="globe",R=o.a8(E.center.lng);for(let B in this._tiles){let U=this._tiles[B];if(y&&U.clearQueryDebugViz(),U.holdingForFade())continue;let G;if(D){let $=U.tileID.canonical;if($.z===0){let Q=[Math.abs(o.ad(R,...xp($,-1))-R),Math.abs(o.ad(R,...xp($,1))-R)];G=[0,2*Q.indexOf(Math.min(...Q))-1]}else{let Q=[Math.abs(o.ad(R,...xp($,-1))-R),Math.abs(o.ad(R,...xp($,0))-R),Math.abs(o.ad(R,...xp($,1))-R)];G=[Q.indexOf(Math.min(...Q))-1]}}else G=[0];for(let $ of G){let Q=d.containsTile(U,E,f,$);Q&&w.push(Q)}}return w}getShadowCasterCoordinates(){return this._getRenderableCoordinates(!1,!0)}getVisibleCoordinates(d){return this._getRenderableCoordinates(d)}_getRenderableCoordinates(d,f){let y=this.getRenderableIds(d,f).map(E=>this._tiles[E].tileID),w=this.transform.projection.name==="globe";for(let E of y)E.projMatrix=this.transform.calculateProjMatrix(E.toUnwrapped()),E.expandedProjMatrix=w?this.transform.calculateProjMatrix(E.toUnwrapped(),!1,!0):E.projMatrix;return y}sortCoordinatesByDistance(d){let f=d.slice(),y=this.transform._camera.position,w=this.transform._camera.forward(),E={};for(let D of f){let R=1/(1<E[D.key]-E[R.key]),f}hasTransition(){if(this._source.hasTransition())return!0;if(gy(this._source.type))for(let d in this._tiles){let f=this._tiles[d];if(f.fadeEndTime!==void 0&&f.fadeEndTime>=o.f.now())return!0}return!1}setFeatureState(d,f,y){this._state.updateState(d=d||"_geojsonTileLayer",f,y)}removeFeatureState(d,f,y){this._state.removeFeatureState(d=d||"_geojsonTileLayer",f,y)}getFeatureState(d,f){return this._state.getState(d=d||"_geojsonTileLayer",f)}setDependencies(d,f,y){let w=this._tiles[d];w&&w.setDependencies(f,y)}reloadTilesForDependencies(d,f){for(let y in this._tiles)this._tiles[y].hasDependency(d,f)&&this._reloadTile(+y,"reloading");this._cache.filter(y=>!y.hasDependency(d,f))}_preloadTiles(d,f){if(!this._sourceLoaded){let B=()=>{this._sourceLoaded&&(this._source.off("data",B),this._preloadTiles(d,f))};return void this._source.on("data",B)}let y=new Map,w=Array.isArray(d)?d:[d],E=this.map.painter.terrain,D=this.usedForTerrain&&E?E.getScaledDemTileSize():this._source.tileSize;for(let B of w){let U=B.coveringTiles({tileSize:D,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom&&!this.usedForTerrain,reparseOverscaled:this._source.reparseOverscaled,isTerrainDEM:this.usedForTerrain});for(let G of U)y.set(G.key,G);this.usedForTerrain&&B.updateElevation(!1)}let R=Array.from(y.values());o.b4(R,(B,U)=>{let G=new Nh(B,this._source.tileSize*B.overscaleFactor(),this.transform.tileZoom,this.map.painter,this._isRaster);this._loadTile(G,$=>{this._source.type==="raster-dem"&&G.dem&&this._backfillDEM(G),U($,G)})},f)}}function Br(v,d){let f=Math.abs(2*v.wrap)-+(v.wrap<0),y=Math.abs(2*d.wrap)-+(d.wrap<0);return v.overscaledZ-d.overscaledZ||y-f||d.canonical.y-v.canonical.y||d.canonical.x-v.canonical.x}function gy(v){return v==="raster"||v==="image"||v==="video"||v==="custom"}function xp(v,d){let f=1<0:y.type==="model"&&(w=!y.isHidden(d)&&y.paint.get("model-opacity")>0),this.layersGotHidden=this.layersGotHidden||!w&&f.visible,f.visible=w}}updateZOffset(d,f){this.currentBuildingBuckets=[];for(let w of this.layers){let E=w.layer,D=this.style.getLayerSourceCache(E),R=1;E.type==="fill-extrusion"&&(R=w.visible?E.paint.get("fill-extrusion-vertical-scale"):0);let B=D?D.getTile(f):null;if(!B&&D&&f.canonical.z>D.getSource().minzoom){let U=f.scaledTo(Math.min(D.getSource().maxzoom,f.overscaledZ-1));for(;U.overscaledZ>=D.getSource().minzoom&&(B=D.getTile(U),!B&&U.overscaledZ!==0);)U=U.scaledTo(U.overscaledZ-1)}this.currentBuildingBuckets.push({bucket:B?B.getBucket(E):null,tileID:B?B.tileID:f,verticalScale:R})}d.hasAnyZOffset=!1;let y=!1;for(let w=0;w{y in d&&(f[y]=d[y])}),f}function cP(v){v=v.slice();let d=Object.create(null);for(let f=0;f0?(w-D)/R:0;return this.points[E].mult(1-B).add(this.points[f].mult(B))}}class XS{constructor(d,f,y){let w=this.boxCells=[],E=this.circleCells=[];this.xCellCount=Math.ceil(d/y),this.yCellCount=Math.ceil(f/y);for(let D=0;Dthis.width||w<0||f>this.height)return!E&&[];let R=[];if(d<=0&&f<=0&&this.width<=y&&this.height<=w){if(E)return!0;for(let B=0;B0:R}_queryCircle(d,f,y,w,E){let D=d-y,R=d+y,B=f-y,U=f+y;if(R<0||D>this.width||U<0||B>this.height)return!w&&[];let G=[];return this._forEachCell(D,B,R,U,this._queryCellCircle,G,{hitTest:w,circle:{x:d,y:f,radius:y},seenUids:{box:{},circle:{}}},E),w?G.length>0:G}query(d,f,y,w,E){return this._query(d,f,y,w,!1,E)}hitTest(d,f,y,w,E){return this._query(d,f,y,w,!0,E)}hitTestCircle(d,f,y,w){return this._queryCircle(d,f,y,!0,w)}_queryCell(d,f,y,w,E,D,R,B){let U=R.seenUids,G=this.boxCells[E];if(G!==null){let Q=this.bboxes;for(let te of G)if(!U.box[te]){U.box[te]=!0;let he=4*te;if(d<=Q[he+2]&&f<=Q[he+3]&&y>=Q[he+0]&&w>=Q[he+1]&&(!B||B(this.boxKeys[te]))){if(R.hitTest)return D.push(!0),!0;D.push({key:this.boxKeys[te],x1:Q[he],y1:Q[he+1],x2:Q[he+2],y2:Q[he+3]})}}}let $=this.circleCells[E];if($!==null){let Q=this.circles;for(let te of $)if(!U.circle[te]){U.circle[te]=!0;let he=3*te;if(this._circleAndRectCollide(Q[he],Q[he+1],Q[he+2],d,f,y,w)&&(!B||B(this.circleKeys[te]))){if(R.hitTest)return D.push(!0),!0;{let me=Q[he],_e=Q[he+1],ye=Q[he+2];D.push({key:this.circleKeys[te],x1:me-ye,y1:_e-ye,x2:me+ye,y2:_e+ye})}}}}}_queryCellCircle(d,f,y,w,E,D,R,B){let U=R.circle,G=R.seenUids,$=this.boxCells[E];if($!==null){let te=this.bboxes;for(let he of $)if(!G.box[he]){G.box[he]=!0;let me=4*he;if(this._circleAndRectCollide(U.x,U.y,U.radius,te[me+0],te[me+1],te[me+2],te[me+3])&&(!B||B(this.boxKeys[he])))return D.push(!0),!0}}let Q=this.circleCells[E];if(Q!==null){let te=this.circles;for(let he of Q)if(!G.circle[he]){G.circle[he]=!0;let me=3*he;if(this._circlesCollide(te[me],te[me+1],te[me+2],U.x,U.y,U.radius)&&(!B||B(this.circleKeys[he])))return D.push(!0),!0}}}_forEachCell(d,f,y,w,E,D,R,B){let U=this._convertToXCellCoord(d),G=this._convertToYCellCoord(f),$=this._convertToXCellCoord(y),Q=this._convertToYCellCoord(w);for(let te=U;te<=$;te++)for(let he=G;he<=Q;he++)if(E.call(this,d,f,y,w,this.xCellCount*he+te,D,R,B))return}_convertToXCellCoord(d){return Math.max(0,Math.min(this.xCellCount-1,Math.floor(d*this.xScale)))}_convertToYCellCoord(d){return Math.max(0,Math.min(this.yCellCount-1,Math.floor(d*this.yScale)))}_circlesCollide(d,f,y,w,E,D){let R=w-d,B=E-f,U=y+D;return U*U>R*R+B*B}_circleAndRectCollide(d,f,y,w,E,D,R){let B=(D-w)/2,U=Math.abs(d-(w+B));if(U>B+y)return!1;let G=(R-E)/2,$=Math.abs(f-(E+G));if($>G+y)return!1;if(U<=B||$<=G)return!0;let Q=U-B,te=$-G;return Q*Q+te*te<=y*y}}let ja={unknown:0,flipRequired:1,flipNotRequired:2},Lg=Math.tan(85*Math.PI/180);function by(v,d,f,y,w,E,D){let R=o.a9.create();if(f)if(E.name==="globe"){let B=o.b6(w,d);o.a9.multiply(R,R,B)}else{let B=o.b7.invert([],D);R[0]=B[0],R[1]=B[1],R[4]=B[2],R[5]=B[3],y||o.a9.rotateZ(R,R,w.angle)}else o.a9.multiply(R,w.labelPlaneMatrix,v);return R}function xy(v,d,f,y,w,E,D){let R=by(v,d,f,y,w,E,D);return E.name==="globe"&&f||(R[2]=R[6]=R[10]=R[14]=0),R}function Cp(v,d,f,y,w,E,D){if(f){if(E.name==="globe"){let R=by(v,d,f,y,w,E,D);return o.a9.invert(R,R),o.a9.multiply(R,v,R),R}{let R=o.a9.clone(v),B=o.a9.identity([]);return B[0]=D[0],B[1]=D[1],B[4]=D[2],B[5]=D[3],o.a9.multiply(R,R,B),y||o.a9.rotateZ(R,R,-w.angle),R}}return w.glCoordMatrix}function nh(v,d,f,y){let w=[v,d,f,1];f?o.aa.transformMat4(w,w,y):tE(w,w,y);let E=w[3];return w[0]/=E,w[1]/=E,w[2]/=E,w}function x1(v,d){return Math.min(.5+v/d*.5,1.5)}function w1(v,d){let f=v[0]/v[3],y=v[1]/v[3];return f>=-d[0]&&f<=d[0]&&y>=-d[1]&&y<=d[1]}function mv(v,d,f,y,w,E,D,R,B,U){let G=f.transform,$=y?v.textSizeData:v.iconSizeData,Q=o.b8($,f.transform.zoom),te=G.projection.name==="globe",he=[256/f.width*2+1,256/f.height*2+1],me=y?v.text.dynamicLayoutVertexArray:v.icon.dynamicLayoutVertexArray;me.clear();let _e=null;te&&(_e=y?v.text.globeExtVertexArray:v.icon.globeExtVertexArray);let ye=v.lineVertexArray,Ae=y?v.text.placedSymbolArray:v.icon.placedSymbolArray,je=f.transform.width/f.transform.height,He,Ze=!1;for(let be=0;beMath.abs(f)?{useVertical:!0}:v===o.b9.vertical?y>0?{needsFlipping:!0}:null:d!==ja.unknown&&function(w,E){return w===0||Math.abs(E/w)>Lg}(f,y)?d===ja.flipRequired?{needsFlipping:!0}:null:f<0?{needsFlipping:!0}:null}function Bg(v,d,f,y,w,E,D,R,B,U,G,$,Q,te,he,me,_e,ye,Ae){let je=d/24,He=v.lineOffsetX*je,Ze=v.lineOffsetY*je,{lineStartIndex:be,glyphStartIndex:Oe,numGlyphs:st,segment:ot,writingMode:xt,flipState:Yt}=v,gt=be+v.lineLength,zt=Zt=>{if(G){let[St,jt,$t]=Zt.up,Ge=U.length;o.bb(G,Ge+0,St,jt,$t),o.bb(G,Ge+1,St,jt,$t),o.bb(G,Ge+2,St,jt,$t),o.bb(G,Ge+3,St,jt,$t)}let[ft,kt,Si]=Zt.point;o.bc(U,ft,kt,Si,Zt.angle)};if(st>1){let Zt=C1(je,R,He,Ze,f,$,Q,v,B,E,te,me,!1,_e,ye,Ae);if(!Zt)return{notEnoughRoom:!0};if(y&&!f){let[ft,kt,Si]=Zt.first.point,[St,jt,$t]=Zt.last.point;[ft,kt]=nh(ft,kt,Si,D),[St,jt]=nh(St,jt,$t,D);let Ge=Sm(xt,Yt,(St-ft)*he,jt-kt);if(v.flipState=Ge&&Ge.needsFlipping?ja.flipRequired:ja.flipNotRequired,Ge)return Ge}zt(Zt.first);for(let ft=Oe+1;ft0?St:eE(Q,Si,ft,1,w,void 0,_e,ye.canonical),$t=Sm(xt,Yt,(jt[0]-ft[0])*he,jt[1]-ft[1]);if(v.flipState=$t&&$t.needsFlipping?ja.flipRequired:ja.flipNotRequired,$t)return $t}let Zt=Em(je*R.getoffsetX(Oe),He,Ze,f,$,Q,ot,be,gt,B,E,te,me,!1,!1,_e,ye,Ae);if(!Zt)return{notEnoughRoom:!0};zt(Zt)}return{}}function JS(v,d,f,y,w){let{x:E,y:D,z:R}=y.projectTilePoint(v.x,v.y,d);if(!w)return nh(E,D,R,f);let[B,U,G]=w(v);return nh(E+B,D+U,R+G,f)}function eE(v,d,f,y,w,E,D,R){let B=JS(v.sub(d)._unit()._add(v),R,w,D,E);return o.Q.sub(B,f,B),o.Q.normalize(B,B),o.Q.scaleAndAdd(B,f,B,y)}function Em(v,d,f,y,w,E,D,R,B,U,G,$,Q,te,he,me,_e,ye){let Ae=y?v-d:v+d,je=Ae>0?1:-1,He=0;y&&(je*=-1,He=Math.PI),je<0&&(He+=Math.PI);let Ze=R+D+(je>0?0:1)|0,be=w,Oe=w,st=0,ot=0,xt=Math.abs(Ae),Yt=[],gt=[],zt=E,Zt=zt,ft=()=>eE(Zt,zt,Oe,xt-st+1,G,Q,me,_e.canonical);for(;st+ot<=xt;){if(Ze+=je,Ze=B)return null;if(Oe=be,Zt=zt,Yt.push(Oe),te&>.push(Zt),zt=new o.P(U.getx(Ze),U.gety(Ze)),be=$[Ze],!be){let Nn=JS(zt,_e.canonical,G,me,Q);be=Nn[3]>0?$[Ze]=Nn:ft()}st+=ot,ot=o.Q.distance(Oe,be)}he&&Q&&($[Ze]&&(be=ft(),ot=o.Q.distance(Oe,be)),$[Ze]=be);let kt=(xt-st)/ot,Si=zt.sub(Zt)._mult(kt)._add(Zt),St=o.Q.sub([],be,Oe),jt=o.Q.scaleAndAdd([],Oe,St,kt),$t=[0,0,1],Ge=St[0],hi=St[1];if(ye&&($t=me.upVector(_e.canonical,Si.x,Si.y),$t[0]!==0||$t[1]!==0||$t[2]!==1)){let Nn=[$t[2],0,-$t[0]],Kn=o.Q.cross([],$t,Nn);o.Q.normalize(Nn,Nn),o.Q.normalize(Kn,Kn),Ge=o.Q.dot(St,Nn),hi=o.Q.dot(St,Kn)}if(f){let Nn=o.Q.cross([],$t,St);o.Q.normalize(Nn,Nn),o.Q.scaleAndAdd(jt,jt,Nn,f*je)}let mn=He+Math.atan2(hi,Ge);return Yt.push(jt),te&>.push(Si),{point:jt,angle:mn,path:Yt,tilePath:gt,up:$t}}function gv(v,d){let f=d.length,y=f+4*v;d.resize(y),d.float32.fill(-1/0,4*f,4*y)}function tE(v,d,f){let y=d[0],w=d[1];return v[0]=f[0]*y+f[4]*w+f[12],v[1]=f[1]*y+f[5]*w+f[13],v[3]=f[3]*y+f[7]*w+f[15],v}let rh=100;class uP{constructor(d,f,y=new XS(d.width+200,d.height+200,25),w=new XS(d.width+200,d.height+200,25)){this.transform=d,this.grid=y,this.ignoredGrid=w,this.pitchfactor=Math.cos(d._pitch)*d.cameraToCenterDistance,this.screenRightBoundary=d.width+rh,this.screenBottomBoundary=d.height+rh,this.gridRightBoundary=d.width+200,this.gridBottomBoundary=d.height+200,this.fogState=f}placeCollisionBox(d,f,y,w,E,D,R,B){let U=y.projectedAnchorX,G=y.projectedAnchorY,$=y.projectedAnchorZ,Q=y.elevation,te=y.tileID,he=d.getProjection();if(Q&&te){let[be,Oe,st]=he.upVector(te.canonical,y.tileAnchorX,y.tileAnchorY),ot=he.upVectorScale(te.canonical,this.transform.center.lat,this.transform.worldSize).metersToTile;U+=be*Q*ot,G+=Oe*Q*ot,$+=st*Q*ot}let me=this.projectAndGetPerspectiveRatio(R,U,G,$,y.tileID,he.name==="globe"||!!Q||this.transform.pitch>0,he),_e=D*me.perspectiveRatio,ye=(y.x1*f+w.x-y.padding)*_e+me.point.x,Ae=(y.y1*f+w.y-y.padding)*_e+me.point.y,je=(y.x2*f+w.x+y.padding)*_e+me.point.x,He=(y.y2*f+w.y+y.padding)*_e+me.point.y,Ze=me.perspectiveRatio<=.55||me.occluded;return!this.isInsideGrid(ye,Ae,je,He)||!E&&this.grid.hitTest(ye,Ae,je,He,B)||Ze?{box:[],offscreen:!1,occluded:me.occluded}:{box:[ye,Ae,je,He],offscreen:this.isOffscreen(ye,Ae,je,He),occluded:!1}}placeCollisionCircles(d,f,y,w,E,D,R,B,U,G,$,Q,te,he,me){let _e=[],ye=this.transform.elevation,Ae=d.getProjection(),je=ye?ye.getAtTileOffsetFunc(me,this.transform.center.lat,this.transform.worldSize,Ae):null,He=new o.P(y.tileAnchorX,y.tileAnchorY),{x:Ze,y:be,z:Oe}=Ae.projectTilePoint(He.x,He.y,me.canonical);if(je){let[Si,St,jt]=je(He);Ze+=Si,be+=St,Oe+=jt}let st=Ae.name==="globe",ot=this.projectAndGetPerspectiveRatio(R,Ze,be,Oe,me,st||!!ye||this.transform.pitch>0,Ae),{perspectiveRatio:xt}=ot,Yt=($?D/xt:D*xt)/o.bf,gt=nh(Ze,be,Oe,B),zt=ot.signedDistanceFromCamera>0?C1(Yt,E,y.lineOffsetX*Yt,y.lineOffsetY*Yt,!1,gt,He,y,w,B,{},ye&&!$?je:null,$&&!!ye,Ae,me,$):null,Zt=!1,ft=!1,kt=!0;if(zt&&!ot.occluded){let Si=.5*te*xt+he,St=new o.P(-100,-100),jt=new o.P(this.screenRightBoundary,this.screenBottomBoundary),$t=new wp,{first:Ge,last:hi}=zt,mn=Ge.path.length,Nn=[];for(let rr=mn-1;rr>=1;rr--)Nn.push(Ge.path[rr]);for(let rr=1;rr(je&&!st&&(Or=je(Norr[3]<=0)&&(Nn=[]));let Hn=[];if(Nn.length>0){let rr=1/0,vo=-1/0,Or=1/0,No=-1/0;for(let ho of Nn)rr=Math.min(rr,ho[0]),Or=Math.min(Or,ho[1]),vo=Math.max(vo,ho[0]),No=Math.max(No,ho[1]);vo>=St.x&&rr<=jt.x&&No>=St.y&&Or<=jt.y&&(Hn=[Nn.map(ho=>new o.P(ho[0],ho[1]))],(rrjt.x||Orjt.y)&&(Hn=o.bd(Hn,St.x,St.y,jt.x,jt.y)))}for(let rr of Hn){$t.reset(rr,.25*Si);let vo=0;vo=$t.length<=.5*Si?1:Math.ceil($t.paddedLength/Kn)+1;for(let Or=0;Or0?(o.aa.transformMat4(B,B,d),this.fogState&&E&&R.name!=="globe"&&(U=function(Q,te,he,me,_e,ye){let Ae=ye.calculateFogTileMatrix(_e),je=[te,he,me];return o.Q.transformMat4(je,je,Ae),ao(Q,o.Q.length(je),ye.pitch,ye._fov)}(this.fogState,f,y,w,E.toUnwrapped(),this.transform)>.9)):tE(B,B,d);let G=B[3];return{point:new o.P((B[0]/G+1)/2*this.transform.width+rh,(-B[1]/G+1)/2*this.transform.height+rh),perspectiveRatio:Math.min(.5+this.transform.getCameraToCenterDistance(R)/G*.5,1.5),signedDistanceFromCamera:G,occluded:D&&B[2]>G||U}}isOffscreen(d,f,y,w){return y=this.screenRightBoundary||wthis.screenBottomBoundary}isInsideGrid(d,f,y,w){return y>=0&&d=0&&fy.collisionGroupID===f}}return this.collisionGroups[d]}}function Ck(v,d,f,y,w){let{horizontalAlign:E,verticalAlign:D}=o.bi(v),R=-(E-.5)*d,B=-(D-.5)*f,U=o.bh(v,y);return new o.P(R+U[0]*w,B+U[1]*w)}function Cy(v,d,f,y,w){let E=new o.P(v,d);return f&&E._rotate(y?w:-w),E}class iE{constructor(d,f,y,w,E,D){this.transform=d.clone(),this.projection=d.projection.name,this.collisionIndex=new uP(this.transform,E),this.buildingIndex=D,this.placements={},this.opacities={},this.variableOffsets={},this.stale=!1,this.commitTime=0,this.fadeDuration=f,this.retainedQueryData={},this.collisionGroups=new T1(y),this.collisionCircleArrays={},this.prevPlacement=w,w&&(w.prevPlacement=void 0),this.placedOrientations={}}getBucketParts(d,f,y,w){let E=y.getBucket(f),D=y.latestFeatureIndex;if(!E||!D||f.fqid!==E.layerIds[0])return;let R=E.layers[0].layout,B=y.collisionBoxArray,U=Math.pow(2,this.transform.zoom-y.tileID.overscaledZ),G=y.tileSize/o.Y,$=y.tileID.toUnwrapped();this.transform.setProjection(E.projection);let Q=(te=y.tileID,he=E.getProjection(),me=this.transform,he.name===this.projection?me.calculateProjMatrix(te.toUnwrapped()):S1(me,he,te));var te,he,me;let _e=R.get("text-pitch-alignment")==="map",ye=R.get("text-rotation-alignment")==="map";f.compileFilter();let Ae=f.dynamicFilter(),je=f.dynamicFilterNeedsFeature(),He=this.transform.calculatePixelsToTileUnitsMatrix(y),Ze=xy(Q,y.tileID.canonical,_e,ye,this.transform,E.getProjection(),He),be=null;if(_e){let ot=Cp(Q,y.tileID.canonical,_e,ye,this.transform,E.getProjection(),He);be=o.a9.multiply([],this.transform.labelPlaneMatrix,ot)}let Oe=null;Ae&&y.latestFeatureIndex&&(Oe={unwrappedTileID:$,dynamicFilter:Ae,dynamicFilterNeedsFeature:je,featureIndex:y.latestFeatureIndex}),this.retainedQueryData[E.bucketInstanceId]=new Im(E.bucketInstanceId,D,E.sourceLayerIndex,E.index,y.tileID);let st={bucket:E,layout:R,posMatrix:Q,textLabelPlaneMatrix:Ze,labelToScreenMatrix:be,clippingData:Oe,scale:U,textPixelRatio:G,holdingForFade:y.holdingForFade(),collisionBoxArray:B,partiallyEvaluatedTextSize:o.b8(E.textSizeData,this.transform.zoom),partiallyEvaluatedIconSize:o.b8(E.iconSizeData,this.transform.zoom),collisionGroup:this.collisionGroups.get(E.sourceID)};if(w)for(let ot of E.sortKeyRanges){let{sortKey:xt,symbolInstanceStart:Yt,symbolInstanceEnd:gt}=ot;d.push({sortKey:xt,symbolInstanceStart:Yt,symbolInstanceEnd:gt,parameters:st})}else d.push({symbolInstanceStart:0,symbolInstanceEnd:E.symbolInstances.length,parameters:st})}attemptAnchorPlacement(d,f,y,w,E,D,R,B,U,G,$,Q,te,he,me,_e,ye,Ae){let{textOffset0:je,textOffset1:He,crossTileID:Ze}=Q,be=[je,He],Oe=Ck(d,y,w,be,E),st=this.collisionIndex.placeCollisionBox(he,E,f,Cy(Oe.x,Oe.y,D,R,this.transform.angle),$,B,U,G.predicate);if(_e){let ot=he.getSymbolInstanceIconSize(Ae,this.transform.zoom,Q.placedIconSymbolIndex);if(this.collisionIndex.placeCollisionBox(he,ot,_e,Cy(Oe.x,Oe.y,D,R,this.transform.angle),$,B,U,G.predicate).box.length===0)return}if(st.box.length>0){let ot;return this.prevPlacement&&this.prevPlacement.variableOffsets[Ze]&&this.prevPlacement.placements[Ze]&&this.prevPlacement.placements[Ze].text&&(ot=this.prevPlacement.variableOffsets[Ze].anchor),this.variableOffsets[Ze]={textOffset:be,width:y,height:w,anchor:d,textScale:E,prevAnchor:ot},this.markUsedJustification(he,d,Q,me),he.allowVerticalPlacement&&(this.markUsedOrientation(he,me,Q),this.placedOrientations[Ze]=me),{shift:Oe,placedGlyphBoxes:st}}}placeLayerBucketPart(d,f,y,w){let{bucket:E,layout:D,posMatrix:R,textLabelPlaneMatrix:B,labelToScreenMatrix:U,clippingData:G,textPixelRatio:$,holdingForFade:Q,collisionBoxArray:te,partiallyEvaluatedTextSize:he,partiallyEvaluatedIconSize:me,collisionGroup:_e}=d.parameters,ye=D.get("text-optional"),Ae=D.get("icon-optional"),je=D.get("text-allow-overlap"),He=D.get("icon-allow-overlap"),Ze=D.get("text-rotation-alignment")==="map",be=D.get("text-pitch-alignment")==="map",Oe=D.get("symbol-z-order")==="viewport-y",st=D.get("symbol-z-elevate");this.transform.setProjection(E.projection);let ot=je&&(He||!E.hasIconData()||Ae),xt=He&&(je||!E.hasTextData()||ye);!E.collisionArrays&&te&&E.deserializeCollisionBoxes(te),y&&w&&E.updateCollisionDebugBuffers(this.transform.zoom,te);let Yt=(gt,zt,Zt)=>{let{crossTileID:ft,numVerticalGlyphVertices:kt}=gt;if(G){let Ks={zoom:this.transform.zoom,pitch:this.transform.pitch},Ts=null;if(G.dynamicFilterNeedsFeature){let $r=this.retainedQueryData[E.bucketInstanceId];Ts=G.featureIndex.loadFeature({featureIndex:gt.featureIndex,bucketIndex:$r.bucketIndex,sourceLayerIndex:$r.sourceLayerIndex,layoutVertexArrayOffset:0})}if(!(0,G.dynamicFilter)(Ks,Ts,this.retainedQueryData[E.bucketInstanceId].tileID.canonical,new o.P(gt.tileAnchorX,gt.tileAnchorY),this.transform.calculateDistanceTileData(G.unwrappedTileID)))return this.placements[ft]=new wy(!1,!1,!1,!0),void f.add(ft)}if(f.has(ft))return;if(Q)return void(this.placements[ft]=new wy(!1,!1,!1));let Si=!1,St=!1,jt=!0,$t=!1,Ge=!1,hi=null,mn={box:null,offscreen:null,occluded:null},Nn={box:null,offscreen:null,occluded:null},Kn=null,Hn=null,rr=null,vo=0,Or=0,No=0;Zt.textFeatureIndex?vo=Zt.textFeatureIndex:gt.useRuntimeCollisionCircles&&(vo=gt.featureIndex),Zt.verticalTextFeatureIndex&&(Or=Zt.verticalTextFeatureIndex);let ho=Ks=>{Ks.tileID=this.retainedQueryData[E.bucketInstanceId].tileID;let Ts=this.transform.elevation;Ks.elevation=gt.zOffset+(Ts?Ts.getAtTileOffset(Ks.tileID,Ks.tileAnchorX,Ks.tileAnchorY):0)},ga=Zt.textBox;if(ga){ho(ga);let Ks=$r=>{let Kr=o.b9.horizontal;if(E.allowVerticalPlacement&&!$r&&this.prevPlacement){let oa=this.prevPlacement.placedOrientations[ft];oa&&(this.placedOrientations[ft]=oa,Kr=oa,this.markUsedOrientation(E,Kr,gt))}return Kr},Ts=($r,Kr)=>{if(E.allowVerticalPlacement&&kt>0&&Zt.verticalTextBox){for(let oa of E.writingModes)if(oa===o.b9.vertical?(mn=Kr(),Nn=mn):mn=$r(),mn&&mn.box&&mn.box.length)break}else mn=$r()};if(D.get("text-variable-anchor")){let $r=D.get("text-variable-anchor");if(this.prevPlacement&&this.prevPlacement.variableOffsets[ft]){let Us=this.prevPlacement.variableOffsets[ft];$r.indexOf(Us.anchor)>0&&($r=$r.filter(po=>po!==Us.anchor),$r.unshift(Us.anchor))}let Kr=(Us,po,Vr)=>{let id=E.getSymbolInstanceTextSize(he,gt,this.transform.zoom,zt),qc=(Us.x2-Us.x1)*id+2*Us.padding,gc=(Us.y2-Us.y1)*id+2*Us.padding,$c=gt.hasIconTextFit&&!He?po:null;$c&&ho($c);let nd={box:[],offscreen:!1,occluded:!1},su=je?2*$r.length:$r.length;for(let _c=0;_c=$r.length,gt,zt,E,Vr,$c,he,me);if(Rc&&(nd=Rc.placedGlyphBoxes,nd&&nd.box&&nd.box.length)){Si=!0,hi=Rc.shift;break}}return nd};Ts(()=>Kr(ga,Zt.iconBox,o.b9.horizontal),()=>{let Us=Zt.verticalTextBox;return Us&&ho(Us),E.allowVerticalPlacement&&!(mn&&mn.box&&mn.box.length)&&kt>0&&Us?Kr(Us,Zt.verticalIconBox,o.b9.vertical):{box:null,offscreen:null,occluded:null}}),mn&&(Si=mn.box,jt=mn.offscreen,$t=mn.occluded);let oa=Ks(!(!mn||!mn.box));if(!Si&&this.prevPlacement){let Us=this.prevPlacement.variableOffsets[ft];Us&&(this.variableOffsets[ft]=Us,this.markUsedJustification(E,Us.anchor,gt,oa))}}else{let $r=(Kr,oa)=>{let Us=E.getSymbolInstanceTextSize(he,gt,this.transform.zoom,zt),po=this.collisionIndex.placeCollisionBox(E,Us,Kr,new o.P(0,0),je,$,R,_e.predicate);return po&&po.box&&po.box.length&&(this.markUsedOrientation(E,oa,gt),this.placedOrientations[ft]=oa),po};Ts(()=>$r(ga,o.b9.horizontal),()=>{let Kr=Zt.verticalTextBox;return E.allowVerticalPlacement&&kt>0&&Kr?(ho(Kr),$r(Kr,o.b9.vertical)):{box:null,offscreen:null,occluded:null}}),Ks(!!(mn&&mn.box&&mn.box.length))}}if(Kn=mn,Si=Kn&&Kn.box&&Kn.box.length>0,jt=Kn&&Kn.offscreen,$t=Kn&&Kn.occluded,gt.useRuntimeCollisionCircles){let Ks=E.text.placedSymbolArray.get(gt.centerJustifiedTextSymbolIndex>=0?gt.centerJustifiedTextSymbolIndex:gt.verticalPlacedTextSymbolIndex),Ts=o.ba(E.textSizeData,he,Ks),$r=D.get("text-padding");Hn=this.collisionIndex.placeCollisionCircles(E,je,Ks,E.lineVertexArray,E.glyphOffsetArray,Ts,R,B,U,y,be,_e.predicate,gt.collisionCircleDiameter*Ts/o.bf,$r,this.retainedQueryData[E.bucketInstanceId].tileID),Si=je||Hn.circles.length>0&&!Hn.collisionDetected,jt=jt&&Hn.offscreen,$t=Hn.occluded}if(Zt.iconFeatureIndex&&(No=Zt.iconFeatureIndex),Zt.iconBox){let Ks=Ts=>{ho(Ts);let $r=gt.hasIconTextFit&&hi?Cy(hi.x,hi.y,Ze,be,this.transform.angle):new o.P(0,0),Kr=E.getSymbolInstanceIconSize(me,this.transform.zoom,gt.placedIconSymbolIndex);return this.collisionIndex.placeCollisionBox(E,Kr,Ts,$r,He,$,R,_e.predicate)};Nn&&Nn.box&&Nn.box.length&&Zt.verticalIconBox?(rr=Ks(Zt.verticalIconBox),St=rr.box.length>0):(rr=Ks(Zt.iconBox),St=rr.box.length>0),jt=jt&&rr.offscreen,Ge=rr.occluded}let _s=ye||gt.numHorizontalGlyphVertices===0&&kt===0,Zl=Ae||gt.numIconVertices===0;if(_s||Zl?Zl?_s||(St=St&&Si):Si=St&&Si:St=Si=St&&Si,Si&&Kn&&Kn.box&&this.collisionIndex.insertCollisionBox(Kn.box,D.get("text-ignore-placement"),E.bucketInstanceId,Nn&&Nn.box&&Or?Or:vo,_e.ID),St&&rr&&this.collisionIndex.insertCollisionBox(rr.box,D.get("icon-ignore-placement"),E.bucketInstanceId,No,_e.ID),Hn&&(Si&&this.collisionIndex.insertCollisionCircles(Hn.circles,D.get("text-ignore-placement"),E.bucketInstanceId,vo,_e.ID),y)){let Ks=E.bucketInstanceId,Ts=this.collisionCircleArrays[Ks];Ts===void 0&&(Ts=this.collisionCircleArrays[Ks]=new dP);for(let $r=0;$r=0;--zt){let Zt=gt[zt];Yt(E.symbolInstances.get(Zt),Zt,E.collisionArrays[Zt])}E.hasAnyZOffset&&o.w(`${E.layerIds[0]} layer symbol-z-elevate: symbols are not sorted by elevation if symbol-z-order is evaluated to viewport-y`)}else if(E.hasAnyZOffset){let gt=E.getSortedIndexesByZOffset();for(let zt=0;zt=0&&(d.text.placedSymbolArray.get(E).crossTileID=$>=0&&E!==$?0:U),D>=0&&(d.text.placedSymbolArray.get(D).crossTileID=$>=0&&D!==$?0:U),R>=0&&(d.text.placedSymbolArray.get(R).crossTileID=$>=0&&R!==$?0:U),B>=0&&(d.text.placedSymbolArray.get(B).crossTileID=$>=0&&B!==$?0:U)}markUsedOrientation(d,f,y){let w=f===o.b9.horizontal||f===o.b9.horizontalOnly?f:0,E=f===o.b9.vertical?f:0,{leftJustifiedTextSymbolIndex:D,centerJustifiedTextSymbolIndex:R,rightJustifiedTextSymbolIndex:B,verticalPlacedTextSymbolIndex:U}=y,G=d.text.placedSymbolArray;D>=0&&(G.get(D).placedOrientation=w),R>=0&&(G.get(R).placedOrientation=w),B>=0&&(G.get(B).placedOrientation=w),U>=0&&(G.get(U).placedOrientation=E)}commit(d){this.commitTime=d,this.zoomAtLastRecencyCheck=this.transform.zoom;let f=this.prevPlacement,y=!1;this.prevZoomAdjustment=f?f.zoomAdjustment(this.transform.zoom):0;let w=f?f.symbolFadeChange(d):1,E=f?f.opacities:{},D=f?f.variableOffsets:{},R=f?f.placedOrientations:{};for(let B in this.placements){let U=this.placements[B],G=E[B];G?(this.opacities[B]=new ru(G,w,U.text,U.icon,null,U.clipped),y=y||U.text!==G.text.placed||U.icon!==G.icon.placed):(this.opacities[B]=new ru(null,w,U.text,U.icon,U.skipFade,U.clipped),y=y||U.text||U.icon)}for(let B in E){let U=E[B];if(!this.opacities[B]){let G=new ru(U,w,!1,!1);G.isHidden()||(this.opacities[B]=G,y=y||U.text.placed||U.icon.placed)}}for(let B in D)this.variableOffsets[B]||!this.opacities[B]||this.opacities[B].isHidden()||(this.variableOffsets[B]=D[B]);for(let B in R)this.placedOrientations[B]||!this.opacities[B]||this.opacities[B].isHidden()||(this.placedOrientations[B]=R[B]);y?this.lastPlacementChangeTime=d:typeof this.lastPlacementChangeTime!="number"&&(this.lastPlacementChangeTime=f?f.lastPlacementChangeTime:d)}updateLayerOpacities(d,f){let y=new Set;for(let w of f){let E=w.getBucket(d);E&&w.latestFeatureIndex&&d.fqid===E.layerIds[0]&&(this.updateBucketOpacities(E,y,w.collisionBoxArray),E.layers[0].layout.get("symbol-z-elevate")&&this.buildingIndex&&(this.buildingIndex.updateZOffset(E,w.tileID),E.updateZOffset()))}}updateBucketOpacities(d,f,y){d.hasTextData()&&d.text.opacityVertexArray.clear(),d.hasIconData()&&d.icon.opacityVertexArray.clear(),d.hasIconCollisionBoxData()&&d.iconCollisionBox.collisionVertexArray.clear(),d.hasTextCollisionBoxData()&&d.textCollisionBox.collisionVertexArray.clear();let w=d.layers[0].layout,E=!!d.layers[0].dynamicFilter(),D=new ru(null,0,!1,!1,!0),R=w.get("text-allow-overlap"),B=w.get("icon-allow-overlap"),U=w.get("text-variable-anchor"),G=w.get("text-rotation-alignment")==="map",$=w.get("text-pitch-alignment")==="map",Q=new ru(null,0,R&&(B||!d.hasIconData()||w.get("icon-optional")),B&&(R||!d.hasTextData()||w.get("text-optional")),!0);!d.collisionArrays&&y&&(d.hasIconCollisionBoxData()||d.hasTextCollisionBoxData())&&d.deserializeCollisionBoxes(y);let te=(me,_e,ye)=>{for(let Ae=0;Ae<_e/4;Ae++)me.opacityVertexArray.emplaceBack(ye)},he=0;for(let me=0;me0||Ae>0,st=He>0,ot=this.placedOrientations[je],xt=ot===o.b9.vertical,Yt=ot===o.b9.horizontal||ot===o.b9.horizontalOnly;if(!Oe&&!st||be.isHidden()||he++,Oe){let gt=rE(be.text);te(d.text,ye,xt?vv:gt),te(d.text,Ae,Yt?vv:gt);let zt=be.text.isHidden(),{leftJustifiedTextSymbolIndex:Zt,centerJustifiedTextSymbolIndex:ft,rightJustifiedTextSymbolIndex:kt,verticalPlacedTextSymbolIndex:Si}=_e,St=d.text.placedSymbolArray,jt=zt||xt?1:0;Zt>=0&&(St.get(Zt).hidden=jt),ft>=0&&(St.get(ft).hidden=jt),kt>=0&&(St.get(kt).hidden=jt),Si>=0&&(St.get(Si).hidden=zt||Yt?1:0);let $t=this.variableOffsets[je];$t&&this.markUsedJustification(d,$t.anchor,_e,ot);let Ge=this.placedOrientations[je];Ge&&(this.markUsedJustification(d,"left",_e,Ge),this.markUsedOrientation(d,Ge,_e))}if(st){let gt=rE(be.icon),{placedIconSymbolIndex:zt,verticalPlacedIconSymbolIndex:Zt}=_e,ft=d.icon.placedSymbolArray,kt=be.icon.isHidden()?1:0;zt>=0&&(te(d.icon,He,xt?vv:gt),ft.get(zt).hidden=kt),Zt>=0&&(te(d.icon,_e.numVerticalIconVertices,Yt?vv:gt),ft.get(Zt).hidden=kt)}if(d.hasIconCollisionBoxData()||d.hasTextCollisionBoxData()){let gt=d.collisionArrays[me];if(gt){let zt=new o.P(0,0),Zt=!0;if(gt.textBox||gt.verticalTextBox){if(U){let kt=this.variableOffsets[je];kt?(zt=Ck(kt.anchor,kt.width,kt.height,kt.textOffset,kt.textScale),G&&zt._rotate($?this.transform.angle:-this.transform.angle)):Zt=!1}E&&(Zt=!be.clipped),gt.textBox&&_v(d.textCollisionBox.collisionVertexArray,be.text.placed,!Zt||xt,zt.x,zt.y),gt.verticalTextBox&&_v(d.textCollisionBox.collisionVertexArray,be.text.placed,!Zt||Yt,zt.x,zt.y)}let ft=Zt&&!!(!Yt&>.verticalIconBox);gt.iconBox&&_v(d.iconCollisionBox.collisionVertexArray,be.icon.placed,ft,_e.hasIconTextFit?zt.x:0,_e.hasIconTextFit?zt.y:0),gt.verticalIconBox&&_v(d.iconCollisionBox.collisionVertexArray,be.icon.placed,!ft,_e.hasIconTextFit?zt.x:0,_e.hasIconTextFit?zt.y:0)}}}if(d.fullyClipped=he===0,d.sortFeatures(this.transform.angle),this.retainedQueryData[d.bucketInstanceId]&&(this.retainedQueryData[d.bucketInstanceId].featureSortOrder=d.featureSortOrder),d.hasTextData()&&d.text.opacityVertexBuffer&&d.text.opacityVertexBuffer.updateData(d.text.opacityVertexArray),d.hasIconData()&&d.icon.opacityVertexBuffer&&d.icon.opacityVertexBuffer.updateData(d.icon.opacityVertexArray),d.hasIconCollisionBoxData()&&d.iconCollisionBox.collisionVertexBuffer&&d.iconCollisionBox.collisionVertexBuffer.updateData(d.iconCollisionBox.collisionVertexArray),d.hasTextCollisionBoxData()&&d.textCollisionBox.collisionVertexBuffer&&d.textCollisionBox.collisionVertexBuffer.updateData(d.textCollisionBox.collisionVertexArray),d.bucketInstanceId in this.collisionCircleArrays){let me=this.collisionCircleArrays[d.bucketInstanceId];d.placementInvProjMatrix=me.invProjMatrix,d.placementViewportMatrix=me.viewportMatrix,d.collisionCircleArray=me.circles,delete this.collisionCircleArrays[d.bucketInstanceId]}}symbolFadeChange(d){return this.fadeDuration===0?1:(d-this.commitTime)/this.fadeDuration+this.prevZoomAdjustment}zoomAdjustment(d){return Math.max(0,(this.transform.zoom-d)/1.5)}hasTransitions(d){return this.stale||d-this.lastPlacementChangeTimed}setStale(){this.stale=!0}}function _v(v,d,f,y,w){v.emplaceBack(d?1:0,f?1:0,y||0,w||0),v.emplaceBack(d?1:0,f?1:0,y||0,w||0),v.emplaceBack(d?1:0,f?1:0,y||0,w||0),v.emplaceBack(d?1:0,f?1:0,y||0,w||0)}let Sy=Math.pow(2,25),Ey=Math.pow(2,24),nE=Math.pow(2,17),hP=Math.pow(2,16),Sk=Math.pow(2,9),Ek=Math.pow(2,8),A1=Math.pow(2,1);function rE(v){if(v.opacity===0&&!v.placed)return 0;if(v.opacity===1&&v.placed)return 4294967295;let d=v.placed?1:0,f=Math.floor(127*v.opacity);return f*Sy+d*Ey+f*nE+d*hP+f*Sk+d*Ek+f*A1+d}let vv=0;class yv{constructor(d){this._sortAcrossTiles=d.layout.get("symbol-z-order")!=="viewport-y"&&d.layout.get("symbol-sort-key").constantOr(1)!==void 0,this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs=new Set,this._bucketParts=[]}continuePlacement(d,f,y,w,E){let D=this._bucketParts;for(;this._currentTileIndexR.sortKey-B.sortKey));this._currentPartIndex{let R=o.f.now()-E;return!this._forceFullPlacement&&R>2};for(;this._currentPlacementIndex>=0;){let R=f[d[this._currentPlacementIndex]],B=this.placement.collisionIndex.transform.zoom;if(R.type==="symbol"&&(!R.minzoom||R.minzoom<=B)&&(!R.maxzoom||R.maxzoom>B)){let U=R,G=U.layout.get("symbol-z-elevate"),$=this._inProgressLayer=this._inProgressLayer||new yv(U),Q=o.aj(R.source,R.scope);if($.continuePlacement(G?w[Q]:y[Q],this.placement,this._showCollisionBoxes,R,D))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0}commit(d){return this.placement.commit(d),this.placement}}let oE=512/o.Y/2;class Ik{constructor(d,f,y){this.tileID=d,this.bucketInstanceId=y,this.index=new o.bj(f.length,16,Int32Array),this.keys=[],this.crossTileIDs=[];let w=d.canonical.x*o.Y,E=d.canonical.y*o.Y;for(let D=0;Dd.overscaledZ)for(let R in D){let B=D[R];B.tileID.isChildOf(d)&&B.findMatches(f.symbolInstances,d,w)}else{let R=D[d.scaledTo(Number(E)).key];R&&R.findMatches(f.symbolInstances,d,w)}}for(let E=0;E{f[y]=!0});for(let y in this.layerIndexes)f[y]||delete this.layerIndexes[y]}}class k1{constructor(d=0,f=0,y=0,w=0){if(isNaN(d)||d<0||isNaN(f)||f<0||isNaN(y)||y<0||isNaN(w)||w<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=d,this.bottom=f,this.left=y,this.right=w}interpolate(d,f,y){return f.top!=null&&d.top!=null&&(this.top=o.X(d.top,f.top,y)),f.bottom!=null&&d.bottom!=null&&(this.bottom=o.X(d.bottom,f.bottom,y)),f.left!=null&&d.left!=null&&(this.left=o.X(d.left,f.left,y)),f.right!=null&&d.right!=null&&(this.right=o.X(d.right,f.right,y)),this}getCenter(d,f){let y=o.ad((this.left+d-this.right)/2,0,d),w=o.ad((this.top+f-this.bottom)/2,0,f);return new o.P(y,w)}equals(d){return this.top===d.top&&this.bottom===d.bottom&&this.left===d.left&&this.right===d.right}clone(){return new k1(this.top,this.bottom,this.left,this.right)}toJSON(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}}function M1(v,d){let f=o.bn(v,3);o.a9.fromQuat(v,d),o.bp(v,3,f)}function O1(v,d){let f=o.bl.identity([]);return o.bl.rotateZ(f,f,-d),o.bl.rotateX(f,f,-v),f}function oh(v,d){let f=[v[0],v[1],0],y=[d[0],d[1],0];if(o.Q.length(f)>=1e-15){let D=o.Q.normalize([],f);o.Q.scale(y,D,o.Q.dot(y,D)),d[0]=y[0],d[1]=y[1]}let w=o.Q.cross([],d,v);if(o.Q.len(w)<1e-15)return null;let E=Math.atan2(-w[1],w[0]);return O1(Math.atan2(Math.sqrt(v[0]*v[0]+v[1]*v[1]),-v[2]),E)}class xv{constructor(d,f){this.position=d,this.orientation=f}get position(){return this._position}set position(d){if(d){let f=d instanceof o.O?d:new o.O(d[0],d[1],d[2]);this._renderWorldCopies&&(f.x=o.bk(f.x,0,1)),this._position=f}else this._position=null}lookAtPoint(d,f){if(this.orientation=null,!this.position)return;let y=this.position,w=this._elevation?this._elevation.getAtPointOrZero(o.O.fromLngLat(d)):0,E=o.O.fromLngLat(d,w),D=[E.x-y.x,E.y-y.y,E.z-y.z];f||(f=[0,0,1]),f[2]=Math.abs(f[2]),this.orientation=oh(D,f)}setPitchBearing(d,f){this.orientation=O1(o.bm(d),o.bm(-f))}}class Ty{constructor(d,f){this._transform=o.a9.identity([]),this.orientation=f,this.position=d}get mercatorPosition(){let d=this.position;return new o.O(d[0],d[1],d[2])}get position(){let d=o.bn(this._transform,3);return[d[0],d[1],d[2]]}set position(d){var f;d&&o.bp(this._transform,3,[(f=d)[0],f[1],f[2],1])}get orientation(){return this._orientation}set orientation(d){this._orientation=d||o.bl.identity([]),d&&M1(this._transform,this._orientation)}getPitchBearing(){let d=this.forward(),f=this.right();return{bearing:Math.atan2(-f[1],f[0]),pitch:Math.atan2(Math.sqrt(d[0]*d[0]+d[1]*d[1]),-d[2])}}setPitchBearing(d,f){this._orientation=O1(d,f),M1(this._transform,this._orientation)}forward(){let d=o.bn(this._transform,2);return[-d[0],-d[1],-d[2]]}up(){let d=o.bn(this._transform,1);return[-d[0],-d[1],-d[2]]}right(){let d=o.bn(this._transform,0);return[d[0],d[1],d[2]]}getCameraToWorld(d,f){let y=new Float64Array(16);return o.a9.invert(y,this.getWorldToCamera(d,f)),y}getCameraToWorldMercator(){return this._transform}getWorldToCameraPosition(d,f,y){let w=this.position;o.Q.scale(w,w,-d);let E=new Float64Array(16);return o.a9.fromScaling(E,[y,y,y]),o.a9.translate(E,E,w),E[10]*=f,E}getWorldToCamera(d,f){let y=new Float64Array(16),w=new Float64Array(4),E=this.position;return o.bl.conjugate(w,this._orientation),o.Q.scale(E,E,-d),o.a9.fromQuat(y,w),o.a9.translate(y,y,E),y[1]*=-1,y[5]*=-1,y[9]*=-1,y[13]*=-1,y[8]*=f,y[9]*=f,y[10]*=f,y[11]*=f,y}getCameraToClipPerspective(d,f,y,w){let E=new Float64Array(16);return o.a9.perspective(E,d,f,y,w),E}getCameraToClipOrthographic(d,f,y,w,E,D){let R=new Float64Array(16);return o.a9.ortho(R,d,f,y,w,E,D),R}getDistanceToElevation(d,f=!1){let y=d===0?0:o.bo(d,f?o.ax(this.position[1]):this.position[1]),w=this.forward();return(y-this.position[2])/w[2]}clone(){return new Ty([...this.position],[...this.orientation])}}let zg=(v,d,f)=>(1-f)*v+f*d,Ay=v=>v*v*v*v*v;class R1{constructor(d,f,y,w,E,D,R){this.tileSize=512,this._renderWorldCopies=E===void 0||E,this._minZoom=d||0,this._maxZoom=f||22,this._minPitch=y??0,this._maxPitch=w??60,this.setProjection(D),this.setMaxBounds(R),this.width=0,this.height=0,this._center=new o.bq(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._nearZ=0,this._farZ=0,this._unmodified=!0,this._edgeInsets=new k1,this._projMatrixCache={},this._alignedProjMatrixCache={},this._fogTileMatrixCache={},this._expandedProjMatrixCache={},this._distanceTileDataCache={},this._camera=new Ty,this._centerAltitude=0,this._averageElevation=0,this.cameraElevationReference="ground",this._pixelsPerMercatorPixel=1,this.globeRadius=0,this.globeCenterInViewSpace=[0,0,0],this._tileCoverLift=0,this.freezeTileCoverage=!1,this._horizonShift=.1,this._orthographicProjectionAtLowPitch=!1}clone(){let d=new R1(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies,this.getProjection());return d._elevation=this._elevation,d._centerAltitude=this._centerAltitude,d._centerAltitudeValidForExaggeration=this._centerAltitudeValidForExaggeration,d.tileSize=this.tileSize,d.mercatorFromTransition=this.mercatorFromTransition,d.width=this.width,d.height=this.height,d.cameraElevationReference=this.cameraElevationReference,d._center=this._center,d._setZoom(this.zoom),d._seaLevelZoom=this._seaLevelZoom,d.angle=this.angle,d._fov=this._fov,d._pitch=this._pitch,d._nearZ=this._nearZ,d._farZ=this._farZ,d._averageElevation=this._averageElevation,d._orthographicProjectionAtLowPitch=this._orthographicProjectionAtLowPitch,d._unmodified=this._unmodified,d._edgeInsets=this._edgeInsets.clone(),d._camera=this._camera.clone(),d._calcMatrices(),d.freezeTileCoverage=this.freezeTileCoverage,d.frustumCorners=this.frustumCorners,d}get isOrthographic(){return this.projection.name!=="globe"&&this._orthographicProjectionAtLowPitch&&this.pitch<15}get elevation(){return this._elevation}set elevation(d){this._elevation!==d&&(this._elevation=d,this._updateCameraOnTerrain(),this._calcMatrices())}get depthOcclusionForSymbolsAndCircles(){return this.projection.name!=="globe"&&!this.isOrthographic}updateElevation(d,f=!1){let y=this._elevation&&this._elevation.exaggeration()!==this._centerAltitudeValidForExaggeration;(this._seaLevelZoom==null||y)&&this._updateCameraOnTerrain(),(d||y)&&this._constrainCamera(f),this._calcMatrices()}getProjection(){return o.af(this.projection,["name","center","parallels"])}setProjection(d){this.projectionOptions=d||{name:"mercator"};let f=this.projection?this.getProjection():void 0;this.projection=o.br(this.projectionOptions);let y=!s(f,this.getProjection());return y&&this._calcMatrices(),this.mercatorFromTransition=!1,y}setOrthographicProjectionAtLowPitch(d){return this._orthographicProjectionAtLowPitch!==d&&(this._orthographicProjectionAtLowPitch=d,this._calcMatrices(),!0)}setMercatorFromTransition(){let d=this.projection.name;this.mercatorFromTransition=!0,this.projectionOptions={name:"mercator"},this.projection=o.br({name:"mercator"});let f=d!==this.projection.name;return f&&this._calcMatrices(),f}get minZoom(){return this._minZoom}set minZoom(d){this._minZoom!==d&&(this._minZoom=d,this.zoom=Math.max(this.zoom,d))}get maxZoom(){return this._maxZoom}set maxZoom(d){this._maxZoom!==d&&(this._maxZoom=d,this.zoom=Math.min(this.zoom,d))}get minPitch(){return this._minPitch}set minPitch(d){this._minPitch!==d&&(this._minPitch=d,this.pitch=Math.max(this.pitch,d))}get maxPitch(){return this._maxPitch}set maxPitch(d){this._maxPitch!==d&&(this._maxPitch=d,this.pitch=Math.min(this.pitch,d))}get renderWorldCopies(){return this._renderWorldCopies&&this.projection.supportsWorldCopies===!0}set renderWorldCopies(d){d===void 0?d=!0:d===null&&(d=!1),this._renderWorldCopies=d}get worldSize(){return this.tileSize*this.scale}get cameraWorldSizeForFog(){let d=Math.max(this._camera.getDistanceToElevation(this._averageElevation),Number.EPSILON);return this._worldSizeFromZoom(this._zoomFromMercatorZ(d))}get cameraWorldSize(){let d=Math.max(this._camera.getDistanceToElevation(this._averageElevation,!0),Number.EPSILON);return this._worldSizeFromZoom(this._zoomFromMercatorZ(d))}get pixelsPerMeter(){return this.projection.pixelsPerMeter(this.center.lat,this.worldSize)}get cameraPixelsPerMeter(){return o.bo(1,this.center.lat)*this.cameraWorldSizeForFog}get centerOffset(){return this.centerPoint._sub(this.size._div(2))}get size(){return new o.P(this.width,this.height)}get bearing(){return o.bk(this.rotation,-180,180)}set bearing(d){this.rotation=d}get rotation(){return-this.angle/Math.PI*180}set rotation(d){let f=-d*Math.PI/180;this.angle!==f&&(this._unmodified=!1,this.angle=f,this._calcMatrices(),this.rotationMatrix=o.b7.create(),o.b7.rotate(this.rotationMatrix,this.rotationMatrix,this.angle))}get pitch(){return this._pitch/Math.PI*180}set pitch(d){let f=o.ad(d,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==f&&(this._unmodified=!1,this._pitch=f,this._calcMatrices())}get aspect(){return this.width/this.height}get fov(){return this._fov/Math.PI*180}get fovX(){return this._fov}get fovY(){let d=1/Math.tan(.5*this.fovX);return 2*Math.atan(1/this.aspect/d)}set fov(d){d=Math.max(.01,Math.min(60,d)),this._fov!==d&&(this._unmodified=!1,this._fov=o.bm(d),this._calcMatrices())}get averageElevation(){return this._averageElevation}set averageElevation(d){this._averageElevation=d,this._calcFogMatrices(),this._distanceTileDataCache={}}get zoom(){return this._zoom}set zoom(d){let f=Math.min(Math.max(d,this.minZoom),this.maxZoom);this._zoom!==f&&(this._unmodified=!1,this._setZoom(f),this._updateSeaLevelZoom(),this._constrain(),this._calcMatrices())}_setZoom(d){this._zoom=d,this.scale=this.zoomScale(d),this.tileZoom=Math.floor(d),this.zoomFraction=d-this.tileZoom}get tileCoverLift(){return this._tileCoverLift}set tileCoverLift(d){this._tileCoverLift!==d&&(this._tileCoverLift=d)}_updateCameraOnTerrain(){let d=this.elevation?this.elevation.getAtPoint(this.locationCoordinate(this.center),Number.NEGATIVE_INFINITY):Number.NEGATIVE_INFINITY,f=this.elevation&&d===Number.NEGATIVE_INFINITY&&this.elevation.visibleDemTiles.length>0&&this.elevation.exaggeration()>0&&this._centerAltitudeValidForExaggeration;if(!this._elevation||d===Number.NEGATIVE_INFINITY&&(!f||!this._centerAltitude))return this._centerAltitude=0,this._seaLevelZoom=null,void(this._centerAltitudeValidForExaggeration=void 0);let y=this._elevation;f||this._centerAltitude&&this._centerAltitudeValidForExaggeration&&y.exaggeration()&&this._centerAltitudeValidForExaggeration!==y.exaggeration()?(this._centerAltitude=this._centerAltitude/this._centerAltitudeValidForExaggeration*y.exaggeration(),this._centerAltitudeValidForExaggeration=y.exaggeration()):(this._centerAltitude=d||0,this._centerAltitudeValidForExaggeration=y.exaggeration()),this._updateSeaLevelZoom()}_updateSeaLevelZoom(){this._centerAltitudeValidForExaggeration!==void 0&&(this._seaLevelZoom=this._zoomFromMercatorZ((this.pixelsPerMeter*this._centerAltitude+this.cameraToCenterDistance)/this.worldSize))}sampleAverageElevation(){if(!this._elevation)return 0;let d=this._elevation,f=[[.5,.2],[.3,.5],[.5,.5],[.7,.5],[.5,.8]],y=this.horizonLineFromTop(),w=0,E=0;for(let D=0;D0,te=R.y+10,me=D.wrap-(Q?0:1),_e=D.wrap+($?0:1),ye=Q?R.x-1:G-1,Ae=$?R.x+1:0;f[0]<0?(w.push(new o.ap(B,_e,R.z,Ae,R.y)),f[1]<0&&te&&(w.push(new o.ap(B,U,R.z,R.x,R.y+1)),w.push(new o.ap(B,_e,R.z,Ae,R.y+1))),f[1]>0&&he&&(w.push(new o.ap(B,U,R.z,R.x,R.y-1)),w.push(new o.ap(B,_e,R.z,Ae,R.y-1)))):f[0]>0?(w.push(new o.ap(B,me,R.z,ye,R.y)),f[1]<0&&te&&(w.push(new o.ap(B,U,R.z,R.x,R.y+1)),w.push(new o.ap(B,me,R.z,ye,R.y+1))),f[1]>0&&he&&(w.push(new o.ap(B,U,R.z,R.x,R.y-1)),w.push(new o.ap(B,me,R.z,ye,R.y-1)))):f[1]<0&&te?w.push(new o.ap(B,U,R.z,R.x,R.y+1)):he&&w.push(new o.ap(B,U,R.z,R.x,R.y-1))}if(w.length>1){w.sort((B,U)=>B.overscaledZ-U.overscaledZ||B.wrap-U.wrap||B.canonical.z-U.canonical.z||B.canonical.x-U.canonical.x||B.canonical.y-U.canonical.y);let D=0,R=0;for(;RD.isChildOf(R))||E.push(D);return w=E.filter(D=>!d.some(R=>!!(D.overscaledZd.maxzoom&&(f=d.maxzoom);let R=this.locationCoordinate(this.center),B=this.center.lat,U=1<{let $t=new o.O(St.x+25e-6,St.y,St.z),Ge=new o.O(St.x,St.y+25e-6,St.z),hi=St.toLngLat(),mn=$t.toLngLat(),Nn=Ge.toLngLat(),Kn=this.locationCoordinate(hi),Hn=this.locationCoordinate(mn),rr=this.locationCoordinate(Nn),vo=Math.hypot(Hn.x-Kn.x,Hn.y-Kn.y),Or=Math.hypot(rr.x-Kn.x,rr.y-Kn.y);return Math.sqrt(vo*Or)*Oe/25e-6},ot=St=>{let jt=Ze,$t=be;return{aabb:o.bx(this,U,0,0,0,St,$t,jt,this.projection),zoom:0,x:0,y:0,minZ:$t,maxZ:jt,wrap:St,fullyVisible:!1}},xt=[],Yt=[],gt=f,zt=d.reparseOverscaled?y:f,Zt=St=>St*St,ft=Zt((_e-this._centerAltitude)*me),kt=St=>{if(!this._elevation||!St.tileID||!D)return;let jt=this._elevation.getMinMaxForTile(St.tileID),$t=St.aabb;jt?($t.min[2]=jt.min,$t.max[2]=jt.max,$t.center[2]=($t.min[2]+$t.max[2])/2):(St.shouldSplit=Si(St),St.shouldSplit||($t.min[2]=$t.max[2]=$t.center[2]=this._centerAltitude))},Si=St=>{if(St.zoom=.9)return!0}else if(E&&(Ge=Zt(St.aabb.distanceZ(ye)*me)),this.projection.isReprojectedInTileSpace&&y<=5){let Kn=Math.pow(2,St.zoom),Hn=st(new o.O((St.x+.5)/Kn,(St.y+.5)/Kn));hi=Hn>.85?1:Hn}let mn=jt*jt+$t*$t+Ge,Nn=Zt((1<{if(Hn*Zt(.707)0;){let St=xt.pop(),jt=St.x,$t=St.y,Ge=St.fullyVisible,hi=()=>this.projection.name==="globe"&&(St.y===0||St.y===(1<>1),Hn={aabb:D?St.aabb.quadrant(mn):o.bx(this,U,St.zoom+1,Nn,Kn,St.wrap,St.minZ,St.maxZ,this.projection),zoom:St.zoom+1,x:Nn,y:Kn,wrap:St.wrap,fullyVisible:Ge,tileID:void 0,shouldSplit:void 0,minZ:St.minZ,maxZ:St.maxZ};E&&!$&&(Hn.tileID=new o.ap(St.zoom+1===gt?zt:St.zoom+1,St.wrap,St.zoom+1,Nn,Kn),kt(Hn)),xt.push(Hn)}else{let mn=St.zoom===gt?zt:St.zoom;if(d.minzoom&&d.minzoom>mn)continue;if(!Ge){let rr=Ae?St.aabb.intersectsPrecise(te):St.aabb.intersectsPreciseFlat(te);if(rr===0&&hi()){let vo=new o.bv(St.zoom,jt,$t);rr=o.bw(this,U,vo,!0).intersectsPrecise(te)}if(rr===0)continue}let Nn=G[0]-(.5+jt+(St.wrap<{let Ge=[0,0,0,1],hi=[o.Y,o.Y,0,1],mn=this.calculateFogTileMatrix($t.tileID.toUnwrapped());o.aa.transformMat4(Ge,Ge,mn),o.aa.transformMat4(hi,hi,mn);let Nn=o.aa.min([],Ge,hi),Kn=o.aa.max([],Ge,hi),Hn=o.by(Nn,Kn);if(Hn===0)return!0;let rr=!1,vo=this._elevation;if(vo&&Hn>St&&jt!==0){let Or=this.calculateProjMatrix($t.tileID.toUnwrapped()),No;d.isTerrainDEM||(No=vo.getMinMaxForTile($t.tileID)),No||(No={min:be,max:Ze});let ho=o.bK(this.rotation),ga=[ho[0]*o.Y,ho[1]*o.Y,No.max];o.Q.transformMat4(ga,ga,Or),rr=(1-ga[1])*this.height*.5St.distanceSq-jt.distanceSq).map(St=>St.tileID)}resize(d,f){this.width=d,this.height=f,this.pixelsToGLUnits=[2/d,-2/f],this._constrain(),this._calcMatrices()}get unmodified(){return this._unmodified}zoomScale(d){return Math.pow(2,d)}scaleZoom(d){return Math.log(d)/Math.LN2}project(d){let f=o.ad(d.lat,-o.bz,o.bz),y=this.projection.project(d.lng,f);return new o.P(y.x*this.worldSize,y.y*this.worldSize)}unproject(d){return this.projection.unproject(d.x/this.worldSize,d.y/this.worldSize)}get point(){return this.project(this.center)}get pointMerc(){return this.point._div(this.worldSize)}get pixelsPerMeterRatio(){return this.pixelsPerMeter/o.bo(1,this.center.lat)/this.worldSize}setLocationAtPoint(d,f){let y,w,E=this.centerPoint;if(this.projection.name==="globe"){let R=this.worldSize;y=(f.x-E.x)/R,w=(f.y-E.y)/R}else{let R=this.pointCoordinate(f),B=this.pointCoordinate(E);y=R.x-B.x,w=R.y-B.y}let D=this.locationCoordinate(d);this.setLocation(new o.O(D.x-y,D.y-w))}setLocation(d){this.center=this.coordinateLocation(d),this.projection.wrap&&(this.center=this.center.wrap())}locationPoint(d){return this.projection.locationPoint(this,d)}locationPoint3D(d){return this.projection.locationPoint(this,d,!0)}pointLocation(d){return this.coordinateLocation(this.pointCoordinate(d))}pointLocation3D(d){return this.coordinateLocation(this.pointCoordinate3D(d))}locationCoordinate(d,f){let y=f?o.bo(f,d.lat):void 0,w=this.projection.project(d.lng,d.lat);return new o.O(w.x,w.y,y)}coordinateLocation(d){return this.projection.unproject(d.x,d.y)}pointRayIntersection(d,f){let y=f??this._centerAltitude,w=[d.x,d.y,0,1],E=[d.x,d.y,1,1];o.aa.transformMat4(w,w,this.pixelMatrixInverse),o.aa.transformMat4(E,E,this.pixelMatrixInverse);let D=E[3];o.aa.scale(w,w,1/w[3]),o.aa.scale(E,E,1/D);let R=w[2],B=E[2];return{p0:w,p1:E,t:R===B?0:(y-R)/(B-R)}}screenPointToMercatorRay(d){let f=[d.x,d.y,0,1],y=[d.x,d.y,1,1];return o.aa.transformMat4(f,f,this.pixelMatrixInverse),o.aa.transformMat4(y,y,this.pixelMatrixInverse),o.aa.scale(f,f,1/f[3]),o.aa.scale(y,y,1/y[3]),f[2]=o.bo(f[2],this._center.lat)*this.worldSize,y[2]=o.bo(y[2],this._center.lat)*this.worldSize,o.aa.scale(f,f,1/this.worldSize),o.aa.scale(y,y,1/this.worldSize),new o.a5([f[0],f[1],f[2]],o.Q.normalize([],o.Q.sub([],y,f)))}rayIntersectionCoordinate(d){let{p0:f,p1:y,t:w}=d,E=o.bo(f[2],this._center.lat),D=o.bo(y[2],this._center.lat);return new o.O(o.X(f[0],y[0],w)/this.worldSize,o.X(f[1],y[1],w)/this.worldSize,o.X(E,D,w))}pointCoordinate(d,f=this._centerAltitude){return this.projection.pointCoordinate(this,d.x,d.y,f)}pointCoordinate3D(d){if(!this.elevation)return this.pointCoordinate(d);let f=this.projection.pointCoordinate3D(this,d.x,d.y);if(f)return new o.O(f[0],f[1],f[2]);let y=0,w=this.horizonLineFromTop();if(d.y>w)return this.pointCoordinate(d);let E=.02*w,D=d.clone();for(let R=0;R<10&&w-y>E;R++){D.y=o.X(y,w,.66);let B=this.projection.pointCoordinate3D(this,D.x,D.y);B?(w=D.y,f=B):y=D.y}return f?new o.O(f[0],f[1],f[2]):this.pointCoordinate(d)}isPointAboveHorizon(d){return this.projection.isPointAboveHorizon(this,d)}isPointOnSurface(d){if(d.y<0||d.y>this.height||d.x<0||d.x>this.width)return!1;if(this.elevation||this.zoom>=o.bA)return!this.isPointAboveHorizon(d);let f=this.pointCoordinate(d);return f.y>=0&&f.y<=1}_coordinatePoint(d,f){let y=f&&this.elevation?this.elevation.getAtPointOrZero(d,this._centerAltitude):this._centerAltitude,w=[d.x*this.worldSize,d.y*this.worldSize,y+d.toAltitude(),1];return o.aa.transformMat4(w,w,this.pixelMatrix),w[3]>0?new o.P(w[0]/w[3],w[1]/w[3]):new o.P(Number.MAX_VALUE,Number.MAX_VALUE)}_getBoundsNonRectangular(){let{top:d,left:f}=this._edgeInsets,y=this.height-this._edgeInsets.bottom,w=this.width-this._edgeInsets.right,E=this.pointLocation3D(new o.P(f,d)),D=this.pointLocation3D(new o.P(w,d)),R=this.pointLocation3D(new o.P(w,y)),B=this.pointLocation3D(new o.P(f,y)),U=Math.min(E.lng,D.lng,R.lng,B.lng),G=Math.max(E.lng,D.lng,R.lng,B.lng),$=Math.min(E.lat,D.lat,R.lat,B.lat),Q=Math.max(E.lat,D.lat,R.lat,B.lat),te=Math.pow(2,-this.zoom)/16*270,he=this.projection.name==="globe"?1:4,me=(_e,ye,Ae,je,He)=>{let Ze=(_e+Ae)/2,be=(ye+je)/2,Oe=new o.P(Ze,be),{lng:st,lat:ot}=this.pointLocation3D(Oe),xt=Math.max(0,U-st,$-ot,st-G,ot-Q);U=Math.min(U,st),G=Math.max(G,st),$=Math.min($,ot),Q=Math.max(Q,ot),(Hete)&&(me(_e,ye,Ze,be,He+1),me(Ze,be,Ae,je,He+1))};if(me(f,d,w,d,1),me(w,d,w,y,1),me(w,y,f,y,1),me(f,y,f,d,1),this.projection.name==="globe"){let[_e,ye]=o.bB(this);_e?(Q=90,G=180,U=-180):ye&&($=-90,G=180,U=-180)}return new o.ag(new o.bq(U,$),new o.bq(G,Q))}_getBoundsRectangular(d,f){let{top:y,left:w}=this._edgeInsets,E=this.height-this._edgeInsets.bottom,D=this.width-this._edgeInsets.right,R=new o.P(w,y),B=new o.P(D,y),U=new o.P(D,E),G=new o.P(w,E),$=this.pointCoordinate(R,d),Q=this.pointCoordinate(B,d),te=this.pointCoordinate(U,f),he=this.pointCoordinate(G,f),me=(_e,ye)=>(ye.y-_e.y)/(ye.x-_e.x);return $.y>1&&Q.y>=0?$=new o.O((1-he.y)/me(he,$)+he.x,1):$.y<0&&Q.y<=1&&($=new o.O(-he.y/me(he,$)+he.x,0)),Q.y>1&&$.y>=0?Q=new o.O((1-te.y)/me(te,Q)+te.x,1):Q.y<0&&$.y<=1&&(Q=new o.O(-te.y/me(te,Q)+te.x,0)),new o.ag().extend(this.coordinateLocation($)).extend(this.coordinateLocation(Q)).extend(this.coordinateLocation(he)).extend(this.coordinateLocation(te))}_getBoundsRectangularTerrain(){let d=this.elevation;if(!d.visibleDemTiles.length||d.isUsingMockSource())return this._getBoundsRectangular(0,0);let f=d.visibleDemTiles.reduce((y,w)=>{if(w.dem){let E=w.dem.tree;y.min=Math.min(y.min,E.minimums[0]),y.max=Math.max(y.max,E.maximums[0])}return y},{min:Number.MAX_VALUE,max:0});return this._getBoundsRectangular(f.min*d.exaggeration(),f.max*d.exaggeration())}getBounds(){return this.projection.name==="mercator"||this.projection.name==="equirectangular"?this._terrainEnabled()?this._getBoundsRectangularTerrain():this._getBoundsRectangular(0,0):this._getBoundsNonRectangular()}horizonLineFromTop(d=!0){let f=this.height/2/Math.tan(this._fov/2)/Math.tan(Math.max(this._pitch,.1))-this.centerOffset.y,y=this.height/2-f*(1-this._horizonShift);return d?Math.max(0,y):y}getMaxBounds(){return this.maxBounds}setMaxBounds(d){this.maxBounds=d,this.minLat=-o.bz,this.maxLat=o.bz,this.minLng=-180,this.maxLng=180,d&&(this.minLat=d.getSouth(),this.maxLat=d.getNorth(),this.minLng=d.getWest(),this.maxLng=d.getEast(),this.maxLng$&&(R=$-U),$-Gte&&(D=te-B),te-Q{for(let Si=0;Si<16;Si++)zt[Si]=zg(Zt[Si],ft[Si],kt)})(R,R,B,Ay(this.pitch>=15?1:this.pitch/15))}else R=B;let U=o.a9.mul([],B,D),G=o.a9.mul([],R,D);if(this.projection.isReprojectedInTileSpace){let ot=this.locationCoordinate(this.center),xt=o.a9.identity([]);o.a9.translate(xt,xt,[ot.x*this.worldSize,ot.y*this.worldSize,0]),o.a9.multiply(xt,xt,o.bE(this)),o.a9.translate(xt,xt,[-ot.x*this.worldSize,-ot.y*this.worldSize,0]),o.a9.multiply(G,G,xt),o.a9.multiply(U,U,xt),this.inverseAdjustmentMatrix=o.bF(this)}else this.inverseAdjustmentMatrix=[1,0,0,1];if(this.mercatorMatrix=o.a9.scale([],G,[this.worldSize,this.worldSize,this.worldSize/E,1]),this.projMatrix=G,this.invProjMatrix=o.a9.invert(new Float64Array(16),this.projMatrix),f){let ot=this._camera.getCameraToClipPerspective(this._fov,this.width/this.height,this._nearZ,1/0);ot[8]=2*-d.x/this.width,ot[9]=2*d.y/this.height,this.expandedFarZProjMatrix=o.a9.mul([],ot,D)}else this.expandedFarZProjMatrix=this.projMatrix;let $=o.a9.invert([],R);this.frustumCorners=o.bG.fromInvProjectionMatrix($,this.horizonLineFromTop(),this.height),this.cameraFrustum=o.bt.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,0,!f);let Q=new Float32Array(16);o.a9.identity(Q),o.a9.scale(Q,Q,[1,-1,1]),o.a9.rotateX(Q,Q,this._pitch),o.a9.rotateZ(Q,Q,this.angle);let te=o.a9.perspective(new Float32Array(16),this._fov,this.width/this.height,this._nearZ,this._farZ);this.starsProjMatrix=o.a9.clone(te);let he=(Math.PI/2-this._pitch)*(this.height/this._fov)*this._horizonShift;te[8]=2*-d.x/this.width,te[9]=2*(d.y+he)/this.height,this.skyboxMatrix=o.a9.multiply(Q,te,Q);let me=this.point,_e=me.x,ye=me.y,Ae=this.width%2/2,je=this.height%2/2,He=Math.cos(this.angle),Ze=Math.sin(this.angle),be=_e-Math.round(_e)+He*Ae+Ze*je,Oe=ye-Math.round(ye)+He*je+Ze*Ae,st=new Float64Array(G);if(o.a9.translate(st,st,[be>.5?be-1:be,Oe>.5?Oe-1:Oe,0]),this.alignedProjMatrix=st,G=o.a9.create(),o.a9.scale(G,G,[this.width/2,-this.height/2,1]),o.a9.translate(G,G,[1,-1,0]),this.labelPlaneMatrix=G,G=o.a9.create(),o.a9.scale(G,G,[1,-1,1]),o.a9.translate(G,G,[-1,-1,0]),o.a9.scale(G,G,[2/this.width,2/this.height,1]),this.glCoordMatrix=G,this.pixelMatrix=o.a9.multiply(new Float64Array(16),this.labelPlaneMatrix,U),this._calcFogMatrices(),this._distanceTileDataCache={},G=o.a9.invert(new Float64Array(16),this.pixelMatrix),!G)throw new Error("failed to invert matrix");if(this.pixelMatrixInverse=G,this.projection.name==="globe"||this.mercatorFromTransition){this.globeMatrix=o.bH(this);let ot=[this.globeMatrix[12],this.globeMatrix[13],this.globeMatrix[14]];this.globeCenterInViewSpace=o.Q.transformMat4(ot,ot,D),this.globeRadius=this.worldSize/2/Math.PI-1}else this.globeMatrix=G;this._projMatrixCache={},this._alignedProjMatrixCache={},this._pixelsToTileUnitsCache={},this._expandedProjMatrixCache={}}_calcFogMatrices(){this._fogTileMatrixCache={};let d=this.cameraWorldSizeForFog,f=this.cameraPixelsPerMeter,y=this._camera.position,w=1/this.height/this._pixelsPerMercatorPixel,E=[d,d,f];o.Q.scale(E,E,w),o.Q.scale(y,y,-1),o.Q.multiply(y,y,E);let D=o.a9.create();o.a9.translate(D,D,y),o.a9.scale(D,D,E),this.mercatorFogMatrix=D,this.worldToFogMatrix=this._camera.getWorldToCameraPosition(d,f,w)}_computeCameraPosition(d){let f=(d=d||this.pixelsPerMeter)/this.pixelsPerMeter,y=this._camera.forward(),w=this.point,E=this._mercatorZfromZoom(this._seaLevelZoom?this._seaLevelZoom:this._zoom)*f-d/this.worldSize*this._centerAltitude;return[w.x/this.worldSize-y[0]*E,w.y/this.worldSize-y[1]*E,d/this.worldSize*this._centerAltitude-y[2]*E]}_updateCameraState(){this.height&&(this._camera.setPitchBearing(this._pitch,this.angle),this._camera.position=this._computeCameraPosition())}_translateCameraConstrained(d){let f=this._maxCameraBoundsDistance()*Math.cos(this._pitch),y=this._camera.position[2],w=d[2],E=1;this.projection.wrap&&(this.center=this.center.wrap()),w>0&&(E=Math.min((f-y)/w,1)),this._camera.position=o.Q.scaleAndAdd([],this._camera.position,d,E),this._updateStateFromCamera()}_updateStateFromCamera(){let d=this._camera.position,f=this._camera.forward(),{pitch:y,bearing:w}=this._camera.getPitchBearing(),E=o.bo(this._centerAltitude,this.center.lat)*this._pixelsPerMercatorPixel,D=this._mercatorZfromZoom(this._maxZoom)*Math.cos(o.bm(this._maxPitch)),R=Math.max((d[2]-E)/Math.cos(y),D),B=this._zoomFromMercatorZ(R);o.Q.scaleAndAdd(d,d,f,R),this._pitch=o.ad(y,o.bm(this.minPitch),o.bm(this.maxPitch)),this.angle=o.bk(w,-Math.PI,Math.PI),this._setZoom(o.ad(B,this._minZoom,this._maxZoom)),this._updateSeaLevelZoom(),this._center=this.coordinateLocation(new o.O(d[0],d[1],d[2])),this._unmodified=!1,this._constrain(),this._calcMatrices()}_worldSizeFromZoom(d){return Math.pow(2,d)*this.tileSize}_mercatorZfromZoom(d){return this.cameraToCenterDistance/this._worldSizeFromZoom(d)}_minimumHeightOverTerrain(){let d=Math.min(this._seaLevelZoom!=null?this._seaLevelZoom:this._zoom,this._maxZoom)+4;return this._mercatorZfromZoom(d)}_zoomFromMercatorZ(d){return this.scaleZoom(this.cameraToCenterDistance/(d*this.tileSize))}zoomFromMercatorZAdjusted(d){let f=0,y=o.bA,w=0,E=1/0;for(;y-f>1e-6&&y>f;){let D=f+.5*(y-f),R=this.tileSize*Math.pow(2,D),B=this.getCameraToCenterDistance(this.projection,D,R),U=this.scaleZoom(B/(d*this.tileSize)),G=Math.abs(D-U);GU||Q.y>1)return!0}return!1}isHorizonVisible(){return this.pitch+o.bI(this.fovAboveCenter)>88||this.anyCornerOffEdge(new o.P(0,0),new o.P(this.width,this.height))}zoomDeltaToMovement(d,f){let y=o.Q.length(o.Q.sub([],this._camera.position,d)),w=this._zoomFromMercatorZ(y)+f;return y-this._mercatorZfromZoom(w)}getCameraPoint(){if(this.projection.name==="globe"){let d=function([f,y,w],E){let D=[f,y,w,1];o.aa.transformMat4(D,D,E);let R=D[3]=Math.max(D[3],1e-6);return D[0]/=R,D[1]/=R,D[2]/=R,D}([this.globeMatrix[12],this.globeMatrix[13],this.globeMatrix[14]],this.pixelMatrix);return new o.P(d[0],d[1])}{let d=Math.tan(this._pitch)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new o.P(0,d))}}getCameraToCenterDistance(d,f=this.zoom,y=this.worldSize){let w=o.bD(d,f,this.width,this.height,1024),E=d.pixelSpaceConversion(this.center.lat,y,w),D=.5/Math.tan(.5*this._fov)*this.height*E;return this.isOrthographic&&(D=zg(1,D,Ay(this.pitch>=15?1:this.pitch/15))),D}getWorldToCameraMatrix(){let d=this._camera.getWorldToCamera(this.worldSize,this.projection.zAxisUnit==="meters"?this.pixelsPerMeter:1);return this.projection.name==="globe"&&o.a9.multiply(d,d,this.globeMatrix),d}getFrustum(d){return o.bt.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,d,this.projection.zAxisUnit==="meters")}}let Dd={BaseColor:5,MetallicRoughness:6,Normal:7,Occlusion:8,Emission:9,ShadowMap0:10},Tm=(v,d)=>{if(d>0&&v.terrain&&o.w("Cutoff is currently disabled on terrain"),d<=0||v.terrain)return{shouldRenderCutoff:!1,uniformValues:{u_cutoff_params:[0,0,0,1]}};let f=v.transform,y=Math.max(Math.abs(f._zoom-(v.minCutoffZoom-1)),1),w=f.isLODDisabled(!1)?o.S(60,45,f.pitch):o.S(30,15,f.pitch),E=f._farZ-f._nearZ,D=d*f.height,R=((1-(B=w))*f.cameraToCenterDistance+B*(f._farZ+D))*y;var B;return{shouldRenderCutoff:w<1,uniformValues:{u_cutoff_params:[f._nearZ,f._farZ,(R-f._nearZ)/E,(R-D-f._nearZ)/E]}}},ku={cascadeCount:2,shadowMapResolution:2048};class aE{constructor(d,f){this.aabb=d,this.lastCascade=f}}class pP{add(d,f){let y=this.receivers[d.key];y!==void 0?(y.aabb.min[0]=Math.min(y.aabb.min[0],f.min[0]),y.aabb.min[1]=Math.min(y.aabb.min[1],f.min[1]),y.aabb.min[2]=Math.min(y.aabb.min[2],f.min[2]),y.aabb.max[0]=Math.max(y.aabb.max[0],f.max[0]),y.aabb.max[1]=Math.max(y.aabb.max[1],f.max[1]),y.aabb.max[2]=Math.max(y.aabb.max[2],f.max[2])):this.receivers[d.key]=new aE(f,null)}clear(){this.receivers={}}get(d){return this.receivers[d.key]}computeRequiredCascades(d,f,y){let w=o.bV.fromPoints(d.points),E=0;for(let D in this.receivers){let R=this.receivers[D];if(!R||!w.intersectsAabb(R.aabb))continue;R.aabb.min=w.closestPoint(R.aabb.min),R.aabb.max=w.closestPoint(R.aabb.max);let B=R.aabb.getCorners();for(let U=0;U1||Q[1]<-1||Q[1]>1){G=!1;break}}if(R.lastCascade=U,E=Math.max(E,U),G)break}}return E+1}}class Tk{constructor(d){this.painter=d,this._enabled=!1,this._shadowLayerCount=0,this._numCascadesToRender=0,this._cascades=[],this._groundShadowTiles=[],this._receivers=new pP,this._depthMode=new or(d.context.gl.LEQUAL,or.ReadWrite,[0,1]),this._uniformValues={u_light_matrix_0:new Float32Array(16),u_light_matrix_1:new Float32Array(16),u_shadow_intensity:0,u_fade_range:[0,0],u_shadow_normal_offset:[1,1,1],u_shadow_texel_size:1,u_shadow_map_resolution:1,u_shadow_direction:[0,0,1],u_shadow_bias:[36e-5,.0012,.012],u_shadowmap_0:0,u_shadowmap_1:0},this._forceDisable=!1,this.useNormalOffset=!1,d.tp.registerParameter(this,["Shadows"],"_forceDisable",{label:"forceDisable"},()=>{this.painter.style.map.triggerRepaint()}),d.tp.registerParameter(ku,["Shadows"],"cascadeCount",{min:1,max:2,step:1}),d.tp.registerParameter(ku,["Shadows"],"shadowMapResolution",{min:32,max:2048,step:32}),d.tp.registerBinding(this,["Shadows"],"_numCascadesToRender",{readonly:!0,label:"numCascadesToRender"})}destroy(){for(let d of this._cascades)d.texture.destroy(),d.framebuffer.destroy();this._cascades=[]}updateShadowParameters(d,f){let y=this.painter;if(this._enabled=!1,this._shadowLayerCount=0,this._receivers.clear(),!f||!f.properties)return;let w=f.properties.get("shadow-intensity");if(!f.shadowsEnabled()||w<=0||(this._shadowLayerCount=y.style.order.reduce((he,me)=>{let _e=y.style._mergedLayers[me];return he+(_e.hasShadowPass()&&!_e.isHidden(d.zoom)?1:0)},0),this._enabled=this._shadowLayerCount>0,!this.enabled))return;let E=y.context,D=ku.shadowMapResolution,R=ku.shadowMapResolution;if(this._cascades.length===0||ku.shadowMapResolution!==this._cascades[0].texture.size[0]){this._cascades=[];for(let he=0;he_e.dem).forEach(_e=>{let ye=_e.dem.tree;me[0]=Math.min(me[0],ye.minimums[0]),me[1]=Math.max(me[1],ye.maximums[0])}),me[0]!==1e4&&(B=(me[1]-me[0])*he.exaggeration())}let U=1.5*d.cameraToCenterDistance,G=3*U,$=new Float64Array(16);for(let he=0;he=0)return{};let E=function(B,U,G){let $=G/(1<0&&(o.Q.add(E[1],E[1],[w[0]*D,0,0]),o.Q.add(E[2],E[2],[w[0]*D,0,0])),w[1]<0?(o.Q.add(E[0],E[0],[0,w[1]*D,0]),o.Q.add(E[1],E[1],[0,w[1]*D,0])):w[1]>0&&(o.Q.add(E[2],E[2],[0,w[1]*D,0]),o.Q.add(E[3],E[3],[0,w[1]*D,0]));let R={};return R.vertices=E,R.planes=[Ms(E[1],E[0],E[4]),Ms(E[2],E[1],E[5]),Ms(E[3],E[2],E[6]),Ms(E[0],E[3],E[7])],R}addShadowReceiver(d,f,y){this._receivers.add(d,o.bV.fromTileIdAndHeight(d,f,y))}getMaxCascadeForTile(d){let f=this._receivers.get(d);return f&&f.lastCascade?f.lastCascade:0}}function Ms(v,d,f){let y=o.Q.sub([],f,d),w=o.Q.sub([],v,d),E=o.Q.cross([],y,w),D=o.Q.length(E);return D===0?[0,0,1,0]:(o.Q.scale(E,E,1/D),[E[0],E[1],E[2],-o.Q.dot(E,d)])}function lE(v){let d=v.properties.get("direction"),f=o.bT(d.x,d.y,d.z);f[2]=o.ad(f[2],0,75);let y=o.bW([f[0],f[1],f[2]]);return o.Q.fromValues(y.x,y.y,y.z)}function Ak(v,d){let f=v.properties.get("color"),y=v.properties.get("intensity"),w=v.properties.get("direction"),E=[w.x,w.y,w.z],D=d.properties.get("color"),R=d.properties.get("intensity"),B=Math.max(o.Q.dot([0,0,1],E),0),U=[0,0,0];o.Q.scale(U,D.toArray01Linear().slice(0,3),R);let G=[0,0,0];return o.Q.scale(G,f.toArray01Linear().slice(0,3),B*y),o.bX([U[0]>0?U[0]/(U[0]+G[0]):0,U[1]>0?U[1]/(U[1]+G[1]):0,U[2]>0?U[2]/(U[2]+G[2]):0])}function cE(v,d,f,y,w,E){let D=v.zoom,R=v.scale,B=v.worldSize,U=1/B,G=v.aspect,$=Math.sqrt(1+G*G)*Math.tan(.5*v.fovX),Q=$*$,te=y-f,he=y+f,me,_e;Q>te/he?(me=y,_e=y*$):(me=.5*he*(1+Q),_e=.5*Math.sqrt(te*te+2*(y*y+f*f)*Q+he*he*Q*Q));let ye=v.projection.pixelsPerMeter(v.center.lat,B),Ae=v._camera.getCameraToWorldMercator(),je=[0,0,-me*U];o.Q.transformMat4(je,je,Ae);let He=_e*U,Ze=v._edgeInsets;if(!(Ze.left===0&&Ze.top===0&&Ze.right===0&&Ze.bottom===0||Ze.left===Ze.right&&Ze.top===Ze.bottom)){let Ge=v._camera.getWorldToCamera(v.worldSize,v.projection.zAxisUnit==="meters"?ye:1),hi=v._camera.getCameraToClipPerspective(v._fov,v.width/v.height,f,y);hi[8]=2*-v.centerOffset.x/v.width,hi[9]=2*v.centerOffset.y/v.height;let mn=new Float64Array(16);o.a9.mul(mn,hi,Ge);let Nn=new Float64Array(16);o.a9.invert(Nn,mn);let Kn=o.bt.fromInvProjectionMatrix(Nn,B,D,!0);for(let Hn of Kn.points){let rr=((be=Hn)[0]/=R,be[1]/=R,be[2]=o.bo(be[2],v._center.lat),be);He=Math.max(He,o.Q.len(o.Q.subtract([],je,rr)))}}var be;He*=w/(w-1);let Oe=Math.acos(d[2]),st=Math.atan2(-d[0],-d[1]),ot=new Ty;ot.position=je,ot.setPitchBearing(Oe,st);let xt=ot.getWorldToCamera(B,ye),Yt=He*B,gt=Math.min(v._mercatorZfromZoom(17)*B*-2,-2*Yt),zt=ot.getCameraToClipOrthographic(-Yt,Yt,-Yt,Yt,gt,(Yt+E*ye)/d[2]),Zt=new Float64Array(16);o.a9.multiply(Zt,zt,xt);let ft=o.Q.fromValues(Math.floor(1e6*je[0])/1e6*B,Math.floor(1e6*je[1])/1e6*B,0),kt=.5*w,Si=[0,0,0];o.Q.transformMat4(Si,ft,Zt),o.Q.scale(Si,Si,kt);let St=[Math.floor(Si[0]),Math.floor(Si[1]),Math.floor(Si[2])],jt=[0,0,0];o.Q.sub(jt,Si,St),o.Q.scale(jt,jt,-1/kt);let $t=new Float64Array(16);return o.a9.identity($t),o.a9.translate($t,$t,jt),o.a9.multiply(Zt,$t,Zt),[Zt,Yt]}let xf=(v,d)=>di(v,d&&d.filter(f=>f.identifier!=="source.canvas")),fP=o.af(Wo,["addLayer","removeLayer","setLights","setPaintProperty","setLayoutProperty","setSlot","setFilter","addSource","removeSource","setLayerZoomRange","setLight","setTransition","setGeoJSONSourceData","setTerrain","setFog","setProjection","setCamera","addImport","removeImport","updateImport"]),mP=o.af(Wo,["setCenter","setZoom","setBearing","setPitch"]),Dk={version:8,layers:[],sources:{}},uE={duration:300,delay:0};class sh extends o.E{constructor(d,f={}){super(),this.map=d,this.scope=f.scope||"",this.globalId=null,this.fragments=[],this.importDepth=f.importDepth||0,this.importsCache=f.importsCache||new Map,this.resolvedImports=f.resolvedImports||new Set,this.transition=o.e({},uE),this._buildingIndex=new QS(this),this.crossTileSymbolIndex=new sE,this._mergedOrder=[],this._drapedFirstOrder=[],this._mergedLayers={},this._mergedSourceCaches={},this._mergedOtherSourceCaches={},this._mergedSymbolSourceCaches={},this._has3DLayers=!1,this._hasCircleLayers=!1,this._hasSymbolLayers=!1,this._changes=f.styleChanges||new q,this.dispatcher=f.dispatcher?f.dispatcher:new o.bZ(o.b_(),this),f.imageManager?this.imageManager=f.imageManager:(this.imageManager=new Me,this.imageManager.setEventedParent(this)),this.imageManager.createScope(this.scope),this.glyphManager=f.glyphManager?f.glyphManager:new o.b$(d._requestManager,f.localFontFamily?o.c0.all:f.localIdeographFontFamily?o.c0.ideographs:o.c0.none,f.localFontFamily||f.localIdeographFontFamily),f.modelManager?this.modelManager=f.modelManager:(this.modelManager=new fe(d._requestManager),this.modelManager.setEventedParent(this)),this._layers={},this._serializedLayers={},this._sourceCaches={},this._otherSourceCaches={},this._symbolSourceCaches={},this._loaded=!1,this._precompileDone=!1,this._shouldPrecompile=!1,this._availableImages=[],this._order=[],this._markersNeedUpdate=!1,this.options=f.configOptions?f.configOptions:new Map,this._configDependentLayers=f.configDependentLayers?f.configDependentLayers:new Set,this._config=f.config,this._initialConfig=f.initialConfig,this.dispatcher.broadcast("setReferrer",o.c1());let y=this;this._rtlTextPluginCallback=sh.registerForPluginStateChange(w=>{y.dispatcher.broadcast("syncRTLPluginState",{pluginStatus:w.pluginStatus,pluginURL:w.pluginURL},(E,D)=>{if(o.c2(E),D&&D.every(R=>R))for(let R in y._sourceCaches){let B=y._sourceCaches[R],U=B.getSource().type;U!=="vector"&&U!=="geojson"||B.reload()}})}),this.on("data",w=>{if(w.dataType!=="source"||w.sourceDataType!=="metadata")return;let E=this.getOwnSource(w.sourceId);if(E&&E.vectorLayerIds)for(let D in this._layers){let R=this._layers[D];R.source===E.id&&this._validateLayer(R)}})}load(d){return d?(typeof d=="string"?this.loadURL(d):this.loadJSON(d),this):this}_getGlobalId(d){if(!d)return null;if(typeof d=="string"){if(o.c3(d))return d;let f=o.c4(d);if(!f.startsWith("http"))try{return new URL(f,location.href).toString()}catch{return f}return f}return`json://${o.c5(JSON.stringify(d))}`}_diffStyle(d,f,y){this.globalId=this._getGlobalId(d);let w=(E,D)=>{try{D(null,this.setState(E,y))}catch(R){D(R,!1)}};if(typeof d=="string"){let E=this.map._requestManager.normalizeStyleURL(d),D=this.map._requestManager.transformRequest(E,o.R.Style);o.g(D,(R,B)=>{R?this.fire(new o.a(R)):B&&w(B,f)})}else typeof d=="object"&&w(d,f)}loadURL(d,f={}){this.fire(new o.b("dataloading",{dataType:"style"}));let y=typeof f.validate=="boolean"?f.validate:!o.c3(d);this.globalId=this._getGlobalId(d),d=this.map._requestManager.normalizeStyleURL(d,f.accessToken),this.resolvedImports.add(d);let w=this.importsCache.get(d);if(w)return this._load(w,y);let E=this.map._requestManager.transformRequest(d,o.R.Style);this._request=o.g(E,(D,R)=>{if(this._request=null,D)this.fire(new o.a(D));else if(R)return this.importsCache.set(d,R),this._load(R,y)})}loadJSON(d,f={}){this.fire(new o.b("dataloading",{dataType:"style"})),this.globalId=this._getGlobalId(d),this._request=o.f.frame(()=>{this._request=null,this._load(d,f.validate!==!1)})}loadEmpty(){this.fire(new o.b("dataloading",{dataType:"style"})),this._load(Dk,!1)}_loadImports(d,f,y){if(this.importDepth>=4)return o.w("Style doesn't support nesting deeper than 5"),Promise.resolve();let w=[];for(let E of d){let D=this._createFragmentStyle(E),R=new Promise(G=>{D.once("style.import.load",G),D.once("error",G)}).then(()=>this.mergeAll());if(w.push(R),this.resolvedImports.has(E.url)){D.loadEmpty();continue}let B=E.data||this.importsCache.get(E.url);B?(D.loadJSON(B,{validate:f}),this._isInternalStyle(B)&&(D.globalId=null)):E.url?D.loadURL(E.url,{validate:f}):D.loadEmpty();let U={style:D,id:E.id,config:E.config};if(y){let G=this.fragments.findIndex(({id:$})=>$===y);this.fragments=this.fragments.slice(0,G).concat(U).concat(this.fragments.slice(G))}else this.fragments.push(U)}return Promise.allSettled(w)}getImportGlobalIds(d=this,f=new Set){for(let y of d.fragments)y.style.globalId&&f.add(y.style.globalId),this.getImportGlobalIds(y.style,f);return[...f.values()]}_createFragmentStyle(d){let f=this.scope?o.aj(d.id,this.scope):d.id,y,w=this._initialConfig&&this._initialConfig[f];(d.config||w)&&(y=o.e({},d.config,w));let E=new sh(this.map,{scope:f,styleChanges:this._changes,importDepth:this.importDepth+1,importsCache:this.importsCache,resolvedImports:new Set(this.resolvedImports),dispatcher:this.dispatcher,imageManager:this.imageManager,glyphManager:this.glyphManager,modelManager:this.modelManager,config:y,configOptions:this.options,configDependentLayers:this._configDependentLayers});return E.setEventedParent(this.map,{style:E}),E}_reloadImports(){this.mergeAll(),this._updateMapProjection(),this.updateConfigDependencies(),this.map._triggerCameraUpdate(this.camera),this.dispatcher.broadcast("setLayers",{layers:this._serializeLayers(this._order),scope:this.scope,options:this.options}),this._shouldPrecompile=this.isRootStyle()}_isInternalStyle(d){return this.isRootStyle()&&(d.fragment||!!d.schema&&d.fragment!==!1)}_load(d,f){let y=d.schema;if(this._isInternalStyle(d)){let R=o.e({},Dk,{imports:[{id:"basemap",data:d,url:""}]});return void this._load(R,f)}if(this.updateConfig(this._config,y),f&&xf(this,Qe(d)))return;this._loaded=!0,this.stylesheet=o.c6(d);for(let R in d.sources)this.addSource(R,d.sources[R],{validate:!1,isInitialLoad:!0});d.sprite?this._loadSprite(d.sprite):(this.imageManager.setLoaded(!0,this.scope),this.dispatcher.broadcast("spriteLoaded",{scope:this.scope,isLoaded:!0})),this.glyphManager.setURL(d.glyphs,this.scope);let w=cP(this.stylesheet.layers);if(this._order=w.map(R=>R.id),this.stylesheet.light&&o.w("The `light` root property is deprecated, prefer using `lights` with `flat` light type instead."),this.stylesheet.lights)if(this.stylesheet.lights.length===1&&this.stylesheet.lights[0].type==="flat"){let R=this.stylesheet.lights[0];this.light=new bi(R.properties,R.id)}else this.setLights(this.stylesheet.lights);this.light||(this.light=new bi(this.stylesheet.light)),this._layers={},this._serializedLayers={};for(let R of w){let B=o.c7(R,this.scope,this.options);B.isConfigDependent&&this._configDependentLayers.add(B.fqid),B.setEventedParent(this,{layer:{id:B.id}}),this._layers[B.id]=B,this._serializedLayers[B.id]=B.serialize();let U=this.getOwnLayerSourceCache(B),G=!!this.directionalLight&&this.directionalLight.shadowsEnabled();U&&B.canCastShadows()&&G&&(U.castsShadows=!0)}this.stylesheet.models&&this.modelManager.addModels(this.stylesheet.models,this.scope);let E=this.stylesheet.terrain;E&&(this.disableElevatedTerrain===void 0&&(this.disableElevatedTerrain=o.f.hasCanvasFingerprintNoise()),this.disableElevatedTerrain?o.w("Terrain and hillshade are disabled because of Canvas2D limitations when fingerprinting protection is enabled (e.g. in private browsing mode)."):this.terrainSetForDrapingOnly()||this._createTerrain(E,1)),this.stylesheet.fog&&this._createFog(this.stylesheet.fog),this.stylesheet.transition&&this.setTransition(this.stylesheet.transition),this.fire(new o.b("data",{dataType:"style"}));let D=this.isRootStyle();d.imports?this._loadImports(d.imports,f).then(()=>{this._reloadImports(),this.fire(new o.b(D?"style.load":"style.import.load"))}):(this._reloadImports(),this.fire(new o.b(D?"style.load":"style.import.load")))}isRootStyle(){return this.importDepth===0}mergeAll(){let d,f,y,w,E,D,R,B;this.terrain&&this.terrain.scope!==this.scope&&delete this.terrain,this.forEachFragmentStyle(U=>{if(U.stylesheet){if(U.light!=null&&(d=U.light),U.stylesheet.lights)for(let G of U.stylesheet.lights)G.type==="ambient"&&U.ambientLight!=null&&(f=U.ambientLight),G.type==="directional"&&U.directionalLight!=null&&(y=U.directionalLight);w=this._prioritizeTerrain(w,U.terrain,U.stylesheet.terrain),U.stylesheet.fog&&U.fog!=null&&(E=U.fog),U.stylesheet.camera!=null&&(B=U.stylesheet.camera),U.stylesheet.projection!=null&&(D=U.stylesheet.projection),U.stylesheet.transition!=null&&(R=U.stylesheet.transition)}}),this.light=d,this.ambientLight=f,this.directionalLight=y,this.fog=E,w===null?delete this.terrain:this.terrain=w,this.camera=B||{"camera-projection":"perspective"},this.projection=D||{name:"mercator"},this.transition=o.e({},uE,R),this.mergeSources(),this.mergeLayers()}forEachFragmentStyle(d){let f=y=>{for(let w of y.fragments)f(w.style);d(y)};f(this)}_prioritizeTerrain(d,f,y){let w=d&&d.drapeRenderMode===0;return y===null?f&&f.drapeRenderMode===0?f:w?d:null:f!=null&&(!d||w||f&&f.drapeRenderMode===1)?f:d}mergeTerrain(){let d;this.terrain&&this.terrain.scope!==this.scope&&delete this.terrain,this.forEachFragmentStyle(f=>{d=this._prioritizeTerrain(d,f.terrain,f.stylesheet.terrain)}),d===null?delete this.terrain:this.terrain=d}mergeProjection(){let d;this.forEachFragmentStyle(f=>{f.stylesheet.projection!=null&&(d=f.stylesheet.projection)}),this.projection=d||{name:"mercator"}}mergeSources(){let d={},f={},y={};this.forEachFragmentStyle(w=>{for(let E in w._sourceCaches){let D=o.aj(E,w.scope);d[D]=w._sourceCaches[E]}for(let E in w._otherSourceCaches){let D=o.aj(E,w.scope);f[D]=w._otherSourceCaches[E]}for(let E in w._symbolSourceCaches){let D=o.aj(E,w.scope);y[D]=w._symbolSourceCaches[E]}}),this._mergedSourceCaches=d,this._mergedOtherSourceCaches=f,this._mergedSymbolSourceCaches=y}mergeLayers(){let d={},f=[],y={};this._has3DLayers=!1,this._hasCircleLayers=!1,this._hasSymbolLayers=!1,this.forEachFragmentStyle(E=>{for(let D of E._order){let R=E._layers[D];if(R.type==="slot"){let B=o.c8(D);if(d[B])continue;d[B]=[]}R.slot&&d[R.slot]?d[R.slot].push(R):f.push(R)}}),this._mergedOrder=[];let w=(E=[])=>{for(let D of E)if(D.type==="slot"){let R=o.c8(D.id);d[R]&&w(d[R])}else{let R=o.aj(D.id,D.scope);this._mergedOrder.push(R),y[R]=D,D.is3D()&&(this._has3DLayers=!0),D.type==="circle"&&(this._hasCircleLayers=!0),D.type==="symbol"&&(this._hasSymbolLayers=!0)}};w(f),this._mergedLayers=y,this.updateDrapeFirstLayers(),this._buildingIndex.processLayersChanged()}terrainSetForDrapingOnly(){return!!this.terrain&&this.terrain.drapeRenderMode===0}getCamera(){return this.stylesheet.camera}setCamera(d){return this.stylesheet.camera=o.e({},this.stylesheet.camera,d),this.camera=this.stylesheet.camera,this}setProjection(d){d?this.stylesheet.projection=d:delete this.stylesheet.projection,this.mergeProjection(),this._updateMapProjection()}applyProjectionUpdate(){this._loaded&&(this.dispatcher.broadcast("setProjection",this.map.transform.projectionOptions),this.map.transform.projection.requiresDraping?(this.getTerrain()||this.stylesheet.terrain)&&!this.disableElevatedTerrain||this.setTerrainForDraping():this.terrainSetForDrapingOnly()&&this.setTerrain(null,0))}_updateMapProjection(){this.isRootStyle()&&(this.map._useExplicitProjection?this.applyProjectionUpdate():this.map._prioritizeAndUpdateProjection(null,this.projection))}_loadSprite(d){this._spriteRequest=function(f,y,w){let E,D,R,B=o.f.devicePixelRatio>1?"@2x":"",U=o.g(y.transformRequest(y.normalizeSpriteURL(f,B,".json"),o.R.SpriteJSON),(Q,te)=>{U=null,R||(R=Q,E=te,$())}),G=o.d(y.transformRequest(y.normalizeSpriteURL(f,B,".png"),o.R.SpriteImage),(Q,te)=>{G=null,R||(R=Q,D=te,$())});function $(){if(R)w(R);else if(E&&D){let Q=o.f.getImageData(D),te={};for(let he in E){let{width:me,height:_e,x:ye,y:Ae,sdf:je,pixelRatio:He,stretchX:Ze,stretchY:be,content:Oe}=E[he],st=new o.h({width:me,height:_e});o.h.copy(Q,st,{x:ye,y:Ae},{x:0,y:0},{width:me,height:_e}),te[he]={data:st,pixelRatio:He,sdf:je,stretchX:Ze,stretchY:be,content:Oe}}w(null,te)}}return{cancel(){U&&(U.cancel(),U=null),G&&(G.cancel(),G=null)}}}(d,this.map._requestManager,(f,y)=>{if(this._spriteRequest=null,f)this.fire(new o.a(f));else if(y)for(let w in y)this.imageManager.addImage(w,this.scope,y[w]);this.imageManager.setLoaded(!0,this.scope),this._availableImages=this.imageManager.listImages(this.scope),this.dispatcher.broadcast("setImages",{scope:this.scope,images:this._availableImages}),this.dispatcher.broadcast("spriteLoaded",{scope:this.scope,isLoaded:!0}),this.fire(new o.b("data",{dataType:"style"}))})}_validateLayer(d){let f=this.getOwnSource(d.source);if(!f)return;let y=d.sourceLayer;y&&(f.type==="geojson"||f.vectorLayerIds&&f.vectorLayerIds.indexOf(y)===-1)&&this.fire(new o.a(new Error(`Source layer "${y}" does not exist on source "${f.id}" as specified by style layer "${d.id}"`)))}loaded(){if(!this._loaded||Object.keys(this._changes.getUpdatedSourceCaches()).length)return!1;for(let d in this._sourceCaches)if(!this._sourceCaches[d].loaded())return!1;if(!this.imageManager.isLoaded()||!this.modelManager.isLoaded())return!1;for(let{style:d}of this.fragments)if(!d.loaded())return!1;return!0}_serializeImports(){if(this.stylesheet.imports)return this.stylesheet.imports.map((d,f)=>{let y=this.fragments[f];return y&&y.style&&(d.data=y.style.serialize()),d})}_serializeSources(){let d={};for(let f in this._sourceCaches){let y=this._sourceCaches[f].getSource();d[y.id]||(d[y.id]=y.serialize())}return d}_serializeLayers(d){let f=[];for(let y of d){let w=this._layers[y];w&&w.type!=="custom"&&f.push(w.serialize())}return f}hasLightTransitions(){return!(!this.light||!this.light.hasTransition())||!(!this.ambientLight||!this.ambientLight.hasTransition())||!(!this.directionalLight||!this.directionalLight.hasTransition())}hasFogTransition(){return!!this.fog&&this.fog.hasTransition()}hasTransitions(){if(this.hasLightTransitions()||this.hasFogTransition())return!0;for(let d in this._sourceCaches)if(this._sourceCaches[d].hasTransition())return!0;for(let d in this._layers)if(this._layers[d].hasTransition())return!0;return!1}get order(){return this.terrain?this._drapedFirstOrder:this._mergedOrder}isLayerDraped(d){return!!this.terrain&&d.isDraped(this.getLayerSourceCache(d))}_checkLoaded(){if(!this._loaded)throw new Error("Style is not done loading")}_checkLayer(d){let f=this.getOwnLayer(d);if(f)return f;this.fire(new o.a(new Error(`The layer '${d}' does not exist in the map's style.`)))}_checkSource(d){let f=this.getOwnSource(d);if(f)return f;this.fire(new o.a(new Error(`The source '${d}' does not exist in the map's style.`)))}update(d){if(!this._loaded)return;this.ambientLight&&this.ambientLight.recalculate(d),this.directionalLight&&this.directionalLight.recalculate(d);let f=this.calculateLightsBrightness();d.brightness=f||0,f!==this._brightness&&(this._brightness=f,this.dispatcher.broadcast("setBrightness",f));let y=this._changes.isDirty();if(this._changes.isDirty()){let E=this._changes.getLayerUpdatesByScope();for(let D in E){let{updatedIds:R,removedIds:B}=E[D];(R||B)&&this._updateWorkerLayers(D,R,B)}this.updateSourceCaches(),this._updateTilesForChangedImages(),this.updateLayers(d),this.light&&this.light.updateTransitions(d),this.ambientLight&&this.ambientLight.updateTransitions(d),this.directionalLight&&this.directionalLight.updateTransitions(d),this.fog&&this.fog.updateTransitions(d),this._changes.reset()}let w={};for(let E in this._mergedSourceCaches){let D=this._mergedSourceCaches[E];w[E]=D.used,D.used=!1,D.tileCoverLift=0}for(let E of this._mergedOrder){let D=this._mergedLayers[E];if(D.recalculate(d,this._availableImages),!D.isHidden(d.zoom)){let R=this.getLayerSourceCache(D);R&&(R.used=!0,R.tileCoverLift=Math.max(R.tileCoverLift,D.tileCoverLift()))}if(!this._precompileDone&&this._shouldPrecompile)for(let R=D.minzoom||0;R<(D.maxzoom||25.5);R++){let B=this.map.painter;if(B){let U=D.getProgramIds();if(!U)continue;for(let G of U){let $=D.getDefaultProgramParams(G,d.zoom);$&&(B.style=this,this.fog&&(B._fogVisible=!0,$.overrideFog=!0,B.getOrCreateProgram(G,$)),B._fogVisible=!1,$.overrideFog=!1,B.getOrCreateProgram(G,$),(this.stylesheet.terrain||this.stylesheet.projection&&this.stylesheet.projection.name==="globe")&&($.overrideRtt=!0,B.getOrCreateProgram(G,$)))}}}}this._shouldPrecompile&&(this._precompileDone=!0);for(let E in w){let D=this._mergedSourceCaches[E];w[E]!==D.used&&D.getSource().fire(new o.b("data",{sourceDataType:"visibility",dataType:"source",sourceId:D.getSource().id}))}this.light&&this.light.recalculate(d),this.terrain&&this.terrain.recalculate(d),this.fog&&this.fog.recalculate(d),this.z=d.zoom,this._markersNeedUpdate&&(this._updateMarkersOpacity(),this._markersNeedUpdate=!1),y&&this.fire(new o.b("data",{dataType:"style"}))}_updateTilesForChangedImages(){let d=this._changes.getUpdatedImages();if(d.length){for(let f in this._sourceCaches)this._sourceCaches[f].reloadTilesForDependencies(["icons","patterns"],d);this._changes.resetUpdatedImages()}}_updateWorkerLayers(d,f,y){let w=this.getFragmentStyle(d);w&&this.dispatcher.broadcast("updateLayers",{layers:f?w._serializeLayers(f):[],scope:d,removedIds:y||[],options:w.options})}setState(d,f){if(this._checkLoaded(),xf(this,Qe(d)))return!1;(d=o.c6(d)).layers=cP(d.layers);let y=function(D,R){if(!D)return[{command:Wo.setStyle,args:[R]}];let B=[];try{if(!s(D.version,R.version))return[{command:Wo.setStyle,args:[R]}];s(D.center,R.center)||B.push({command:Wo.setCenter,args:[R.center]}),s(D.zoom,R.zoom)||B.push({command:Wo.setZoom,args:[R.zoom]}),s(D.bearing,R.bearing)||B.push({command:Wo.setBearing,args:[R.bearing]}),s(D.pitch,R.pitch)||B.push({command:Wo.setPitch,args:[R.pitch]}),s(D.sprite,R.sprite)||B.push({command:Wo.setSprite,args:[R.sprite]}),s(D.glyphs,R.glyphs)||B.push({command:Wo.setGlyphs,args:[R.glyphs]}),s(D.imports,R.imports)||function(te=[],he=[],me){he=he||[];let _e=(te=te||[]).map(vy),ye=he.map(vy),Ae=te.reduce(yy,{}),je=he.reduce(yy,{}),He=_e.slice(),Ze,be,Oe,st;for(Ze=0,be=0;Ze<_e.length;Ze++)Oe=_e[Ze],je.hasOwnProperty(Oe)?be++:(me.push({command:Wo.removeImport,args:[Oe]}),He.splice(He.indexOf(Oe,be),1));for(Ze=0,be=0;Ze{te.source&&U[te.source]?B.push({command:Wo.removeLayer,args:[te.id]}):$.push(te)});let Q=D.terrain;Q&&U[Q.source]&&(B.push({command:Wo.setTerrain,args:[void 0]}),Q=void 0),B=B.concat(G),s(Q,R.terrain)||B.push({command:Wo.setTerrain,args:[R.terrain]}),function(te,he,me){he=he||[];let _e=(te=te||[]).map(vy),ye=he.map(vy),Ae=te.reduce(yy,{}),je=he.reduce(yy,{}),He=_e.slice(),Ze=Object.create(null),be,Oe,st,ot,xt,Yt,gt;for(be=0,Oe=0;be<_e.length;be++)st=_e[be],je.hasOwnProperty(st)?Oe++:(me.push({command:Wo.removeLayer,args:[st]}),He.splice(He.indexOf(st,Oe),1));for(be=0,Oe=0;be!(D.command in mP));if(y.length===0)return!1;let w=y.filter(D=>!(D.command in fP));if(w.length>0)throw new Error(`Unimplemented: ${w.map(D=>D.command).join(", ")}.`);let E=[];return y.forEach(D=>{E.push(this[D.command].apply(this,D.args))}),f&&Promise.all(E).then(f),this.stylesheet=d,this.mergeAll(),this.dispatcher.broadcast("setLayers",{layers:this._serializeLayers(this._order),scope:this.scope,options:this.options}),!0}addImage(d,f){return this.getImage(d)?this.fire(new o.a(new Error("An image with this name already exists."))):(this.imageManager.addImage(d,this.scope,f),this._afterImageUpdated(d),this)}updateImage(d,f){this.imageManager.updateImage(d,this.scope,f)}getImage(d){return this.imageManager.getImage(d,this.scope)}removeImage(d){return this.getImage(d)?(this.imageManager.removeImage(d,this.scope),this._afterImageUpdated(d),this):this.fire(new o.a(new Error("No image with this name exists.")))}_afterImageUpdated(d){this._availableImages=this.imageManager.listImages(this.scope),this._changes.updateImage(d),this.dispatcher.broadcast("setImages",{scope:this.scope,images:this._availableImages}),this.fire(new o.b("data",{dataType:"style"}))}listImages(){return this._checkLoaded(),this._availableImages.slice()}addModel(d,f,y={}){return this._checkLoaded(),this._validate(ti,`models.${d}`,f,null,y)||(this.modelManager.addModel(d,f,this.scope),this._changes.setDirty()),this}hasModel(d){return this.modelManager.hasModel(d,this.scope)}removeModel(d){return this.hasModel(d)?(this.modelManager.removeModel(d,this.scope),this):this.fire(new o.a(new Error("No model with this ID exists.")))}listModels(){return this._checkLoaded(),this.modelManager.listModels(this.scope)}addSource(d,f,y={}){if(this._checkLoaded(),this.getOwnSource(d)!==void 0)throw new Error(`There is already a source with ID "${d}".`);if(!f.type)throw new Error(`The type property must be defined, but only the following properties were given: ${Object.keys(f).join(", ")}.`);if(["vector","raster","geojson","video","image"].indexOf(f.type)>=0&&this._validate(Xt,`sources.${d}`,f,null,y))return;this.map&&this.map._collectResourceTiming&&(f.collectResourceTiming=!0);let w=yk(d,f,this.dispatcher,this);w.scope=this.scope,w.setEventedParent(this,()=>({isSourceLoaded:this._isSourceCacheLoaded(w.id),source:w.serialize(),sourceId:w.id}));let E=D=>{let R=(D?"symbol:":"other:")+w.id,B=o.aj(R,this.scope),U=this._sourceCaches[R]=new Ph(B,w,D);(D?this._symbolSourceCaches:this._otherSourceCaches)[w.id]=U,U.onAdd(this.map)};E(!1),f.type!=="vector"&&f.type!=="geojson"||E(!0),w.onAdd&&w.onAdd(this.map),y.isInitialLoad||(this.mergeSources(),this._changes.setDirty())}removeSource(d){this._checkLoaded();let f=this.getOwnSource(d);if(!f)throw new Error("There is no source with this ID");for(let w in this._layers)if(this._layers[w].source===d)return this.fire(new o.a(new Error(`Source "${d}" cannot be removed while layer "${w}" is using it.`)));if(this.terrain&&this.terrain.scope===this.scope&&this.terrain.get().source===d)return this.fire(new o.a(new Error(`Source "${d}" cannot be removed while terrain is using it.`)));let y=this.getOwnSourceCaches(d);for(let w of y){let E=o.c8(w.id);delete this._sourceCaches[E],this._changes.discardSourceCacheUpdate(w.id),w.fire(new o.b("data",{sourceDataType:"metadata",dataType:"source",sourceId:w.getSource().id})),w.setEventedParent(null),w.clearTiles()}return delete this._otherSourceCaches[d],delete this._symbolSourceCaches[d],this.mergeSources(),f.setEventedParent(null),f.onRemove&&f.onRemove(this.map),this._changes.setDirty(),this}setGeoJSONSourceData(d,f){this._checkLoaded(),this.getOwnSource(d).setData(f),this._changes.setDirty()}getOwnSource(d){let f=this.getOwnSourceCache(d);return f&&f.getSource()}getOwnSources(){let d=[];for(let f in this._otherSourceCaches){let y=this.getOwnSourceCache(f);y&&d.push(y.getSource())}return d}areTilesLoaded(){let d=this._mergedSourceCaches;for(let f in d){let y=d[f]._tiles;for(let w in y){let E=y[w];if(E.state!=="loaded"&&E.state!=="errored")return!1}}return!0}setLights(d){if(this._checkLoaded(),!d)return delete this.ambientLight,void delete this.directionalLight;let f=this._getTransitionParameters();for(let w of d){if(this._validate(qe,"lights",w))return;switch(w.type){case"ambient":if(this.ambientLight){let E=this.ambientLight;E.set(w),E.updateTransitions(f)}else this.ambientLight=new br(w,Xr,this.scope,this.options);break;case"directional":if(this.directionalLight){let E=this.directionalLight;E.set(w),E.updateTransitions(f)}else this.directionalLight=new br(w,Oo,this.scope,this.options)}}let y=new o.N(this.z||0,f);this.ambientLight&&this.ambientLight.recalculate(y),this.directionalLight&&this.directionalLight.recalculate(y),this._brightness=this.calculateLightsBrightness(),this.dispatcher.broadcast("setBrightness",this._brightness)}calculateLightsBrightness(){let d=this.directionalLight,f=this.ambientLight;if(!d||!f)return;let y=$=>.2126*($[0]<=.03928?$[0]/12.92:Math.pow(($[0]+.055)/1.055,2.4))+.7152*($[1]<=.03928?$[1]/12.92:Math.pow(($[1]+.055)/1.055,2.4))+.0722*($[2]<=.03928?$[2]/12.92:Math.pow(($[2]+.055)/1.055,2.4)),w=d.properties.get("color").toArray01(),E=d.properties.get("intensity"),D=d.properties.get("direction"),R=1-o.bT(D.x,D.y,D.z)[2]/90,B=y(w)*E*R,U=f.properties.get("color").toArray01(),G=f.properties.get("intensity");return(B+y(U)*G)/2}getBrightness(){return this._brightness}getLights(){if(!this.enable3dLights())return null;let d=[];return this.directionalLight&&d.push(this.directionalLight.get()),this.ambientLight&&d.push(this.ambientLight.get()),d}enable3dLights(){return!!this.ambientLight&&!!this.directionalLight}getFragmentStyle(d){if(!d)return this;if(o.c9(d)){let f=o.ca(d),y=this.fragments.find(({id:E})=>E===f);if(!y)throw new Error(`Style import not found: ${d}`);let w=o.c8(d);return y.style.getFragmentStyle(w)}{let f=this.fragments.find(({id:y})=>y===d);if(!f)throw new Error(`Style import not found: ${d}`);return f.style}}getConfigProperty(d,f){let y=this.getFragmentStyle(d);if(!y)return null;let w=o.aj(f,y.scope),E=y.options.get(w),D=E?E.value||E.default:null;return D?D.serialize():null}setConfigProperty(d,f,y){let w=this.getFragmentStyle(d);if(!w)return;let E=w.stylesheet.schema;if(!E||!E[f])return;let D=o.t(y);if(D.result!=="success")return void xf(this,D.value);let R=D.value.expression,B=o.aj(f,w.scope),U=w.options.get(B);if(!U)return;let G,{minValue:$,maxValue:Q,stepValue:te,type:he,values:me}=E[f],_e=o.t(E[f].default);_e.result==="success"&&(G=_e.value.expression),G?(this.options.set(B,wt(Ce({},U),{value:R,default:G,minValue:$,maxValue:Q,stepValue:te,type:he,values:me})),this.updateConfigDependencies()):this.fire(new o.a(new Error(`No schema defined for the config option "${f}" in the "${d}" fragment.`)))}getConfig(d){let f=this.getFragmentStyle(d);if(!f)return null;let y=f.stylesheet.schema;if(!y)return null;let w={};for(let E in y){let D=o.aj(E,f.scope),R=f.options.get(D),B=R?R.value||R.default:null;w[E]=B?B.serialize():null}return w}setConfig(d,f){let y=this.getFragmentStyle(d);y&&(y.updateConfig(f,y.stylesheet.schema),this.updateConfigDependencies())}getSchema(d){let f=this.getFragmentStyle(d);return f?f.stylesheet.schema:null}setSchema(d,f){let y=this.getFragmentStyle(d);y&&(y.stylesheet.schema=f,y.updateConfig(y._config,f),this.updateConfigDependencies())}updateConfig(d,f){if(this._config=d,d||f)if(f)for(let y in f){let w,E,D=o.t(f[y].default);if(D.result==="success"&&(w=D.value.expression),d&&d[y]!==void 0){let Q=o.t(d[y]);Q.result==="success"&&(E=Q.value.expression)}let{minValue:R,maxValue:B,stepValue:U,type:G,values:$}=f[y];if(w){let Q=o.aj(y,this.scope);this.options.set(Q,{default:w,value:E,minValue:R,maxValue:B,stepValue:U,type:G,values:$})}else this.fire(new o.a(new Error(`No schema defined for config option "${y}".`)))}else this.fire(new o.a(new Error("Attempting to set config for a style without schema.")))}updateConfigDependencies(){for(let d of this._configDependentLayers){let f=this.getLayer(d);f&&(f.possiblyEvaluateVisibility(),this._updateLayer(f))}this.ambientLight&&this.ambientLight.updateConfig(this.options),this.directionalLight&&this.directionalLight.updateConfig(this.options),this.fog&&this.fog.updateConfig(this.options),this._changes.setDirty()}addLayer(d,f,y={}){this._checkLoaded();let w=d.id;if(this._layers[w])return void this.fire(new o.a(new Error(`Layer with id "${w}" already exists on this map`)));let E;if(d.type==="custom"){if(xf(this,o.cb(d)))return;E=o.c7(d,this.scope,this.options)}else{if(typeof d.source=="object"&&(this.addSource(w,d.source),d=o.c6(d),d=o.e(d,{source:w})),this._validate(we,`layers.${w}`,d,{arrayIndex:-1},y))return;E=o.c7(d,this.scope,this.options),this._validateLayer(E),E.setEventedParent(this,{layer:{id:w}}),this._serializedLayers[E.id]=E.serialize()}E.isConfigDependent&&this._configDependentLayers.add(E.fqid);let D=this._order.length;if(f){let G=this._order.indexOf(f);if(G===-1)return void this.fire(new o.a(new Error(`Layer with id "${f}" does not exist on this map.`)));E.slot===this._layers[f].slot?D=G:o.w(`Layer with id "${f}" has a different slot. Layers can only be rearranged within the same slot.`)}this._order.splice(D,0,w),this._layerOrderChanged=!0,this._layers[w]=E;let R=this.getOwnLayerSourceCache(E),B=!!this.directionalLight&&this.directionalLight.shadowsEnabled();R&&E.canCastShadows()&&B&&(R.castsShadows=!0);let U=this._changes.getRemovedLayer(E);if(U&&E.source&&R&&E.type!=="custom"){this._changes.discardLayerRemoval(E);let G=o.aj(E.source,E.scope);U.type!==E.type?this._changes.updateSourceCache(G,"clear"):(this._changes.updateSourceCache(G,"reload"),R.pause())}this._updateLayer(E),E.onAdd&&E.onAdd(this.map),E.scope=this.scope,this.mergeLayers()}moveLayer(d,f){this._checkLoaded();let y=this._checkLayer(d);if(!y||d===f)return;let w=this._order.indexOf(d);this._order.splice(w,1);let E=this._order.length;if(f){let D=this._order.indexOf(f);if(D===-1)return void this.fire(new o.a(new Error(`Layer with id "${f}" does not exist on this map.`)));y.slot===this._layers[f].slot?E=D:o.w(`Layer with id "${f}" has a different slot. Layers can only be rearranged within the same slot.`)}this._order.splice(E,0,d),this._changes.setDirty(),this._layerOrderChanged=!0,this.mergeLayers()}removeLayer(d){this._checkLoaded();let f=this._checkLayer(d);if(!f)return;f.setEventedParent(null);let y=this._order.indexOf(d);this._order.splice(y,1),delete this._layers[d],delete this._serializedLayers[d],this._changes.setDirty(),this._layerOrderChanged=!0,this._configDependentLayers.delete(f.fqid),this._changes.removeLayer(f);let w=this.getOwnLayerSourceCache(f);if(w&&w.castsShadows){let E=!1;for(let D in this._layers)if(this._layers[D].source===f.source&&this._layers[D].canCastShadows()){E=!0;break}w.castsShadows=E}f.onRemove&&f.onRemove(this.map),this.mergeLayers()}getOwnLayer(d){return this._layers[d]}hasLayer(d){return d in this._mergedLayers}hasLayerType(d){for(let f in this._layers)if(this._layers[f].type===d)return!0;return!1}setLayerZoomRange(d,f,y){this._checkLoaded();let w=this._checkLayer(d);w&&(w.minzoom===f&&w.maxzoom===y||(f!=null&&(w.minzoom=f),y!=null&&(w.maxzoom=y),this._updateLayer(w)))}setSlot(d,f){this._checkLoaded();let y=this._checkLayer(d);y&&y.slot!==f&&(y.slot=f,this._updateLayer(y))}setFilter(d,f,y={}){this._checkLoaded();let w=this._checkLayer(d);if(w&&!s(w.filter,f))return f==null?(w.filter=void 0,void this._updateLayer(w)):void(this._validate(Je,`layers.${w.id}.filter`,f,{layerType:w.type},y)||(w.filter=o.c6(f),this._updateLayer(w)))}getFilter(d){let f=this._checkLayer(d);if(f)return o.c6(f.filter)}setLayoutProperty(d,f,y,w={}){this._checkLoaded();let E=this._checkLayer(d);if(E&&!s(E.getLayoutProperty(f),y)){if(y!=null&&(!w||w.validate!==!1)&&xf(E,vt.call(Qe,{key:`layers.${d}.layout.${f}`,layerType:E.type,objectKey:f,value:y,styleSpec:o.G,style:{glyphs:!0,sprite:!0}})))return;E.setLayoutProperty(f,y),E.isConfigDependent&&this._configDependentLayers.add(E.fqid),this._updateLayer(E)}}getLayoutProperty(d,f){let y=this._checkLayer(d);if(y)return y.getLayoutProperty(f)}setPaintProperty(d,f,y,w={}){this._checkLoaded();let E=this._checkLayer(d);if(!E||s(E.getPaintProperty(f),y)||y!=null&&(!w||w.validate!==!1)&&xf(E,rt.call(Qe,{key:`layers.${d}.paint.${f}`,layerType:E.type,objectKey:f,value:y,styleSpec:o.G})))return;let D=E.setPaintProperty(f,y);E.isConfigDependent&&this._configDependentLayers.add(E.fqid),D&&this._updateLayer(E),this._changes.updatePaintProperties(E)}getPaintProperty(d,f){let y=this._checkLayer(d);if(y)return y.getPaintProperty(f)}setFeatureState(d,f){this._checkLoaded();let y=d.source,w=d.sourceLayer,E=this._checkSource(y);if(!E)return;let D=E.type;if(D==="geojson"&&w)return void this.fire(new o.a(new Error("GeoJSON sources cannot have a sourceLayer parameter.")));if(D==="vector"&&!w)return void this.fire(new o.a(new Error("The sourceLayer parameter must be provided for vector source types.")));d.id===void 0&&this.fire(new o.a(new Error("The feature id parameter must be provided.")));let R=this.getOwnSourceCaches(y);for(let B of R)B.setFeatureState(w,d.id,f)}removeFeatureState(d,f){this._checkLoaded();let y=d.source,w=this._checkSource(y);if(!w)return;let E=w.type,D=E==="vector"?d.sourceLayer:void 0;if(E==="vector"&&!D)return void this.fire(new o.a(new Error("The sourceLayer parameter must be provided for vector source types.")));if(f&&typeof d.id!="string"&&typeof d.id!="number")return void this.fire(new o.a(new Error("A feature id is required to remove its specific state property.")));let R=this.getOwnSourceCaches(y);for(let B of R)B.removeFeatureState(D,d.id,f)}getFeatureState(d){this._checkLoaded();let f=d.source,y=d.sourceLayer,w=this._checkSource(f);if(w){if(w.type!=="vector"||y)return d.id===void 0&&this.fire(new o.a(new Error("The feature id parameter must be provided."))),this.getOwnSourceCaches(f)[0].getFeatureState(y,d.id);this.fire(new o.a(new Error("The sourceLayer parameter must be provided for vector source types.")))}}setTransition(d){return this.stylesheet.transition=o.e({},this.stylesheet.transition,d),this.transition=this.stylesheet.transition,this}getTransition(){return o.e({},this.stylesheet.transition)}serialize(){this._checkLoaded();let d=this.getTerrain(),f=d&&this.terrain&&this.terrain.scope===this.scope?d:this.stylesheet.terrain;return o.cc({version:this.stylesheet.version,name:this.stylesheet.name,metadata:this.stylesheet.metadata,fragment:this.stylesheet.fragment,imports:this._serializeImports(),schema:this.stylesheet.schema,camera:this.stylesheet.camera,light:this.stylesheet.light,lights:this.stylesheet.lights,terrain:f,fog:this.stylesheet.fog,center:this.stylesheet.center,zoom:this.stylesheet.zoom,bearing:this.stylesheet.bearing,pitch:this.stylesheet.pitch,sprite:this.stylesheet.sprite,glyphs:this.stylesheet.glyphs,transition:this.stylesheet.transition,projection:this.stylesheet.projection,sources:this._serializeSources(),layers:this._serializeLayers(this._order)},y=>y!==void 0)}_updateLayer(d){this._changes.updateLayer(d);let f=this.getLayerSourceCache(d),y=o.aj(d.source,d.scope),w=this._changes.getUpdatedSourceCaches();d.source&&!w[y]&&f&&f.getSource().type!=="raster"&&(this._changes.updateSourceCache(y,"reload"),f.pause()),d.invalidateCompiledFilter()}_flattenAndSortRenderedFeatures(d){let f=R=>this._mergedLayers[R].type==="fill-extrusion"||this._mergedLayers[R].type==="model",y=this.order,w={},E=[];for(let R=y.length-1;R>=0;R--){let B=y[R];if(f(B)){w[B]=R;for(let U of d){let G=U[B];if(G)for(let $ of G)E.push($)}}}E.sort((R,B)=>B.intersectionZ-R.intersectionZ);let D=[];for(let R=y.length-1;R>=0;R--){let B=y[R];if(f(B))for(let U=E.length-1;U>=0;U--){let G=E[U].feature;if(w[G.layer.id]{let G=this.getLayer(U);return G&&G.is3D()}):this.has3DLayers(),B=ls.createFromScreenPoints(d,y);for(let U in this._mergedSourceCaches){let G=this._mergedSourceCaches[U].getSource();if(!G||G.scope!==f.scope)continue;let $=this._mergedSourceCaches[U].getSource().id;f.layers&&!w[$]||E.push(Bo(this._mergedSourceCaches[U],this._mergedLayers,D,B,f,y,R,!!this.map._showQueryGeometry))}return this.placement&&E.push(function(U,G,$,Q,te,he,me){let _e={},ye=he.queryRenderedSymbols(Q),Ae=[];for(let je of Object.keys(ye).map(Number))Ae.push(me[je]);Ae.sort(ZS);for(let je of Ae){let He=je.featureIndex.lookupSymbolFeatures(ye[je.bucketInstanceId],G,je.bucketIndex,je.sourceLayerIndex,te.filter,te.layers,te.availableImages,U);for(let Ze in He){let be=_e[Ze]=_e[Ze]||[],Oe=He[Ze];Oe.sort((st,ot)=>{let xt=je.featureSortOrder;if(xt){let Yt=xt.indexOf(st.featureIndex);return xt.indexOf(ot.featureIndex)-Yt}return ot.featureIndex-st.featureIndex});for(let st of Oe)be.push(st)}}for(let je in _e)_e[je].forEach(He=>{let Ze=He.feature,be=$(U[je]);if(!be)return;let Oe=be.getFeatureState(Ze.layer["source-layer"],Ze.id);Ze.source=Ze.layer.source,Ze.layer["source-layer"]&&(Ze.sourceLayer=Ze.layer["source-layer"]),Ze.state=Oe});return _e}(this._mergedLayers,D,this.getLayerSourceCache.bind(this),B.screenGeometry,f,this.placement.collisionIndex,this.placement.retainedQueryData)),this._flattenAndSortRenderedFeatures(E)}querySourceFeatures(d,f){f&&f.filter&&this._validate(Je,"querySourceFeatures.filter",f.filter,null,f);let y=this.getOwnSourceCaches(d),w=[];for(let E of y)w=w.concat(Du(E,f));return w}addSourceType(d,f,y){return sh.getSourceType(d)?y(new Error(`A source type called "${d}" already exists.`)):(sh.setSourceType(d,f),f.workerSourceURL?void this.dispatcher.broadcast("loadWorkerSource",{name:d,url:f.workerSourceURL},y):y(null,null))}getFlatLight(){return this.light.getLight()}setFlatLight(d,f,y={}){this._checkLoaded();let w=this.light.getLight(),E=!1;for(let R in d)if(!s(d[R],w[R])){E=!0;break}if(!E)return;let D=this._getTransitionParameters();this.light.setLight(d,f,y),this.light.updateTransitions(D)}getTerrain(){return this.terrain&&this.terrain.drapeRenderMode===1?this.terrain.get():null}setTerrainForDraping(){this.setTerrain({source:"",exaggeration:0},0)}setTerrain(d,f=1){if(this._checkLoaded(),!d)return this.terrainSetForDrapingOnly()&&f!==0||delete this.terrain,d===null?this.stylesheet.terrain=null:delete this.stylesheet.terrain,this._force3DLayerUpdate(),void(this._markersNeedUpdate=!0);let y=d,w=d.source==null;if(f===1){if(typeof y.source=="object"){let R="terrain-dem-src";this.addSource(R,y.source),y=o.c6(y),y=o.e(y,{source:R})}let E=o.e({},y),D={};if(this.terrain&&w){E.source=this.terrain.get().source;let R=this.terrain?this.getFragmentStyle(this.terrain.scope):null;R&&(D.style=R.serialize())}if(this._validate(ge,"terrain",E,D))return}if(!this.terrain||this.terrain.scope!==this.scope&&!w||this.terrain&&f!==this.terrain.drapeRenderMode){if(!y)return;this._createTerrain(y,f),this.fire(new o.b("data",{dataType:"style"}))}else{let E=this.terrain,D=E.get();for(let R of Object.keys(o.G.terrain))!y.hasOwnProperty(R)&&o.G.terrain[R].default&&(y[R]=o.G.terrain[R].default);for(let R in d)if(!s(d[R],D[R])){E.set(d,this.options),this.stylesheet.terrain=d;let B=this._getTransitionParameters({duration:0});E.updateTransitions(B),this.fire(new o.b("data",{dataType:"style"}));break}}this.mergeTerrain(),this.updateDrapeFirstLayers(),this._markersNeedUpdate=!0}_createFog(d){let f=this.fog=new Mr(d,this.map.transform,this.scope,this.options);this.stylesheet.fog=f.get();let y=this._getTransitionParameters({duration:0});f.updateTransitions(y)}_updateMarkersOpacity(){this.map._markers.length!==0&&this.map._requestDomTask(()=>{for(let d of this.map._markers)d._evaluateOpacity()})}getFog(){return this.fog?this.fog.get():null}setFog(d){if(this._checkLoaded(),!d)return delete this.fog,delete this.stylesheet.fog,void(this._markersNeedUpdate=!0);if(this.fog){let f=this.fog;if(!s(f.get(),d)){f.set(d,this.options),this.stylesheet.fog=f.get();let y=this._getTransitionParameters({duration:0});f.updateTransitions(y)}}else this._createFog(d);this._markersNeedUpdate=!0}_getTransitionParameters(d){return{now:o.f.now(),transition:o.e(this.transition,d)}}updateDrapeFirstLayers(){if(!this.terrain)return;let d=[],f=[];for(let y in this._mergedLayers)this.isLayerDraped(this._mergedLayers[y])?d.push(y):f.push(y);this._drapedFirstOrder=[],this._drapedFirstOrder.push(...d),this._drapedFirstOrder.push(...f)}_createTerrain(d,f){let y=this.terrain=new yr(d,f,this.scope,this.options);f===1&&(this.stylesheet.terrain=d),this.mergeTerrain(),this.updateDrapeFirstLayers(),this._force3DLayerUpdate();let w=this._getTransitionParameters({duration:0});y.updateTransitions(w)}_force3DLayerUpdate(){for(let d in this._layers){let f=this._layers[d];f.type==="fill-extrusion"&&this._updateLayer(f)}}_forceSymbolLayerUpdate(){for(let d in this._layers){let f=this._layers[d];f.type==="symbol"&&this._updateLayer(f)}}_validate(d,f,y,w,E={}){if(E&&E.validate===!1)return!1;let D=o.e({},this.serialize());return xf(this,d.call(Qe,o.e({key:f,style:D,value:y,styleSpec:o.G},w)))}_remove(){this._request&&(this._request.cancel(),this._request=null),this._spriteRequest&&(this._spriteRequest.cancel(),this._spriteRequest=null),o.cd.off("pluginStateChange",this._rtlTextPluginCallback);for(let d in this._mergedLayers)this._mergedLayers[d].setEventedParent(null);for(let d in this._mergedSourceCaches)this._mergedSourceCaches[d].clearTiles(),this._mergedSourceCaches[d].setEventedParent(null);this.setEventedParent(null),delete this.fog,delete this.terrain,delete this.ambientLight,delete this.directionalLight,this.isRootStyle()&&(this.imageManager.setEventedParent(null),this.modelManager.setEventedParent(null),this.dispatcher.remove())}clearSource(d){let f=this.getSourceCaches(d);for(let y of f)y.clearTiles()}clearSources(){for(let d in this._mergedSourceCaches)this._mergedSourceCaches[d].clearTiles()}reloadSource(d){let f=this.getSourceCaches(d);for(let y of f)y.resume(),y.reload()}reloadSources(){for(let d of this.getSources())d.reload&&d.reload()}updateSources(d){let f;this.directionalLight&&(f=lE(this.directionalLight));for(let y in this._mergedSourceCaches)this._mergedSourceCaches[y].update(d,void 0,void 0,f)}_generateCollisionBoxes(){for(let d in this._sourceCaches){let f=this._sourceCaches[d];f.resume(),f.reload()}}_updatePlacement(d,f,y,w,E=!1){let D=!1,R=!1,B={},U={};for(let G of this._mergedOrder){let $=this._mergedLayers[G];if($.type!=="symbol")continue;let Q=o.aj($.source,$.scope),te=B[Q];if(!te){let me=this.getLayerSourceCache($);if(!me)continue;let _e=me.getRenderableIds(!0).map(ye=>me.getTileByID(ye));U[Q]=_e.slice(),te=B[Q]=_e.sort((ye,Ae)=>Ae.tileID.overscaledZ-ye.tileID.overscaledZ||(ye.tileID.isLessThan(Ae.tileID)?-1:1))}let he=this.crossTileSymbolIndex.addLayer($,te,d.center.lng,d.projection);D=D||he}if(this.crossTileSymbolIndex.pruneUnusedLayers(this._mergedOrder),E=E||this._layerOrderChanged||y===0,this._layerOrderChanged&&this.fire(new o.b("neworder")),(E||!this.pauseablePlacement||this.pauseablePlacement.isDone()&&!this.placement.stillRecent(o.f.now(),d.zoom))&&(this.pauseablePlacement=new bv(d,this._mergedOrder,E,f,y,w,this.placement,this.fog&&d.projection.supportsFog?this.fog.state:null,this._buildingIndex),this._layerOrderChanged=!1),this.pauseablePlacement.isDone()?this.placement.setStale():(this.pauseablePlacement.continuePlacement(this._mergedOrder,this._mergedLayers,B,U),this.pauseablePlacement.isDone()&&(this.placement=this.pauseablePlacement.commit(o.f.now()),R=!0),D&&this.pauseablePlacement.placement.setStale()),R||D){this._buildingIndex.onNewFrame(d.zoom);for(let G of this._mergedOrder){let $=this._mergedLayers[G];$.type==="symbol"&&this.placement.updateLayerOpacities($,B[o.aj($.source,$.scope)])}}return!this.pauseablePlacement.isDone()||this.placement.hasTransitions(o.f.now())}_releaseSymbolFadeTiles(){for(let d in this._sourceCaches)this._sourceCaches[d].releaseSymbolFadeTiles()}addImport(d,f){this._checkLoaded();let y=this.stylesheet.imports=this.stylesheet.imports||[];if(y.findIndex(({id:E})=>E===d.id)!==-1)return void this.fire(new o.a(new Error(`Import with id '${d.id}' already exists in the map's style.`)));if(!f)return y.push(d),this._loadImports([d],!0);let w=y.findIndex(({id:E})=>E===f);return w===-1&&this.fire(new o.a(new Error(`Import with id "${f}" does not exist on this map.`))),this.stylesheet.imports=y.slice(0,w).concat(d).concat(y.slice(w)),this._loadImports([d],!0,f)}updateImport(d,f){this._checkLoaded();let y=this.stylesheet.imports||[],w=this.getImportIndex(d);return w===-1?this:typeof f=="string"?(this.setImportUrl(d,f),this):(f.url&&f.url!==y[w].url&&this.setImportUrl(d,f.url),s(f.config,y[w].config)||this.setImportConfig(d,f.config),s(f.data,y[w].data)||this.setImportData(d,f.data),this)}moveImport(d,f){this._checkLoaded();let y=this.stylesheet.imports||[],w=this.getImportIndex(d);if(w===-1)return this;let E=this.getImportIndex(f);if(E===-1)return this;let D=y[w],R=this.fragments[w];return y=y.filter(({id:B})=>B!==d),this.fragments=this.fragments.filter(({id:B})=>B!==d),this.stylesheet.imports=y.slice(0,E).concat(D).concat(y.slice(E)),this.fragments=this.fragments.slice(0,E).concat(R).concat(this.fragments.slice(E)),this.mergeLayers(),this}setImportUrl(d,f){this._checkLoaded();let y=this.stylesheet.imports||[],w=this.getImportIndex(d);if(w===-1)return this;y[w].url=f;let E=this.fragments[w];return E.style=this._createFragmentStyle(y[w]),E.style.on("style.import.load",()=>this.mergeAll()),E.style.loadURL(f),this}setImportData(d,f){this._checkLoaded();let y=this.getImportIndex(d),w=this.stylesheet.imports||[];return y===-1?this:f?(this.fragments[y].style.setState(f),this._reloadImports(),this):(delete w[y].data,this.setImportUrl(d,w[y].url))}setImportConfig(d,f){this._checkLoaded();let y=this.getImportIndex(d),w=this.stylesheet.imports||[];if(y===-1)return this;f?w[y].config=f:delete w[y].config;let E=this.fragments[y],D=E.style.stylesheet&&E.style.stylesheet.schema;return E.config=f,E.style.updateConfig(f,D),this.updateConfigDependencies(),this}removeImport(d){this._checkLoaded();let f=this.stylesheet.imports||[],y=this.getImportIndex(d);y!==-1&&(f.splice(y,1),this.fragments[y].style._remove(),this.fragments.splice(y,1),this._reloadImports())}getImportIndex(d){let f=(this.stylesheet.imports||[]).findIndex(y=>y.id===d);return f===-1&&this.fire(new o.a(new Error(`Import '${d}' does not exist in the map's style and cannot be updated.`))),f}getLayer(d){return this._mergedLayers[d]}getSources(){let d=[];for(let f in this._mergedOtherSourceCaches){let y=this._mergedOtherSourceCaches[f];y&&d.push(y.getSource())}return d}getSource(d,f){let y=this.getSourceCache(d,f);return y&&y.getSource()}getLayerSource(d){let f=this.getLayerSourceCache(d);return f&&f.getSource()}getSourceCache(d,f){let y=o.aj(d,f);return this._mergedOtherSourceCaches[y]}getLayerSourceCache(d){let f=o.aj(d.source,d.scope);return d.type==="symbol"?this._mergedSymbolSourceCaches[f]:this._mergedOtherSourceCaches[f]}getSourceCaches(d){if(d==null)return Object.values(this._mergedSourceCaches);let f=[];return this._mergedOtherSourceCaches[d]&&f.push(this._mergedOtherSourceCaches[d]),this._mergedSymbolSourceCaches[d]&&f.push(this._mergedSymbolSourceCaches[d]),f}updateSourceCaches(){let d=this._changes.getUpdatedSourceCaches();for(let f in d){let y=d[f];y==="reload"?this.reloadSource(f):y==="clear"&&this.clearSource(f)}}updateLayers(d){let f=this._changes.getUpdatedPaintProperties();for(let y of f){let w=this.getLayer(y);w&&w.updateTransitions(d)}}getImages(d,f,y){this.imageManager.getImages(f.icons,f.scope,y),this._updateTilesForChangedImages();let w=E=>{E&&E.setDependencies(f.tileID.key,f.type,f.icons)};w(this._otherSourceCaches[f.source]),w(this._symbolSourceCaches[f.source])}getGlyphs(d,f,y){this.glyphManager.getGlyphs(f.stacks,f.scope,y)}getResource(d,f,y){return o.ce(f,y)}getOwnSourceCache(d){return this._otherSourceCaches[d]}getOwnLayerSourceCache(d){return d.type==="symbol"?this._symbolSourceCaches[d.source]:this._otherSourceCaches[d.source]}getOwnSourceCaches(d){let f=[];return this._otherSourceCaches[d]&&f.push(this._otherSourceCaches[d]),this._symbolSourceCaches[d]&&f.push(this._symbolSourceCaches[d]),f}_isSourceCacheLoaded(d){let f=this.getOwnSourceCaches(d);return f.length===0?(this.fire(new o.a(new Error(`There is no source with ID '${d}'`))),!1):f.every(y=>y.loaded())}has3DLayers(){return this._has3DLayers}hasSymbolLayers(){return this._hasSymbolLayers}hasCircleLayers(){return this._hasCircleLayers}_clearWorkerCaches(){this.dispatcher.broadcast("clearCaches")}destroy(){this._clearWorkerCaches(),this.fragments.forEach(d=>{d.style._remove()}),this.terrainSetForDrapingOnly()&&(delete this.terrain,delete this.stylesheet.terrain)}}sh.getSourceType=function(v){return cn[v]},sh.setSourceType=function(v,d){cn[v]=d},sh.registerForPluginStateChange=o.bY;var wv=` #define EPSILON 0.0000001 #define PI 3.141592653589793 #ifdef RENDER_CUTOFF float cutoff_opacity(vec4 cutoff_params,float depth) {float near=cutoff_params.x;float far=cutoff_params.y;float cutoffStart=cutoff_params.z;float cutoffEnd=cutoff_params.w;float linearDepth=(depth-near)/(far-near);return clamp((linearDepth-cutoffStart)/(cutoffEnd-cutoffStart),0.0,1.0);} #endif`,dE=` out vec4 glFragColor;highp float unpack_depth(highp vec4 rgba_depth) {const highp vec4 bit_shift=vec4(1.0/(255.0*255.0*255.0),1.0/(255.0*255.0),1.0/255.0,1.0);return dot(rgba_depth,bit_shift)*2.0-1.0;}highp vec4 pack_depth(highp float ndc_z) {highp float depth=ndc_z*0.5+0.5;const highp vec4 bit_shift=vec4(255.0*255.0*255.0,255.0*255.0,255.0,1.0);const highp vec4 bit_mask =vec4(0.0,1.0/255.0,1.0/255.0,1.0/255.0);highp vec4 res=fract(depth*bit_shift);res-=res.xxyz*bit_mask;return res;} #ifdef INDICATOR_CUTOUT uniform vec2 u_indicator_cutout_centers;uniform vec4 u_indicator_cutout_params; #endif vec4 applyCutout(vec4 color) { #ifdef INDICATOR_CUTOUT float holeMinOpacity=u_indicator_cutout_params.x;float holeRadius=max(u_indicator_cutout_params.y,0.0);float holeAspectRatio=u_indicator_cutout_params.z;float fadeStart=u_indicator_cutout_params.w;float distA=distance(vec2(gl_FragCoord.x,gl_FragCoord.y*holeAspectRatio),vec2(u_indicator_cutout_centers[0],u_indicator_cutout_centers[1]*holeAspectRatio));return color*min(smoothstep(fadeStart,holeRadius,distA)+holeMinOpacity,1.0); #else return color; #endif } #ifdef DEBUG_WIREFRAME #define HANDLE_WIREFRAME_DEBUG \\ glFragColor=vec4(0.7,0.0,0.0,0.7); \\ gl_FragDepth=gl_FragCoord.z-0.0001; #else #define HANDLE_WIREFRAME_DEBUG #endif #ifdef RENDER_CUTOFF uniform highp vec4 u_cutoff_params;in float v_cutoff_opacity; #endif vec4 textureLodCustom(sampler2D image,vec2 pos,vec2 lod_coord) {vec2 size=vec2(textureSize(image,0));vec2 dx=dFdx(lod_coord.xy*size);vec2 dy=dFdy(lod_coord.xy*size);float delta_max_sqr=max(dot(dx,dx),dot(dy,dy));float lod=0.5*log2(delta_max_sqr);return textureLod(image,pos,lod);}`,N1=` #define EXTENT 8192.0 #define RAD_TO_DEG 180.0/PI #define DEG_TO_RAD PI/180.0 #define GLOBE_RADIUS EXTENT/PI/2.0 float wrap(float n,float min,float max) {float d=max-min;float w=mod(mod(n-min,d)+d,d)+min;return (w==min) ? max : w;} #ifdef PROJECTION_GLOBE_VIEW vec3 mercator_tile_position(mat4 matrix,vec2 tile_anchor,vec3 tile_id,vec2 mercator_center) { #ifndef PROJECTED_POS_ON_VIEWPORT float tiles=tile_id.z;vec2 mercator=(tile_anchor/EXTENT+tile_id.xy)/tiles;mercator-=mercator_center;mercator.x=wrap(mercator.x,-0.5,0.5);vec4 mercator_tile=vec4(mercator.xy*EXTENT,EXTENT/(2.0*PI),1.0);mercator_tile=matrix*mercator_tile;return mercator_tile.xyz; #else return vec3(0.0); #endif }vec3 mix_globe_mercator(vec3 globe,vec3 mercator,float t) {return mix(globe,mercator,t);}mat3 globe_mercator_surface_vectors(vec3 pos_normal,vec3 up_dir,float zoom_transition) {vec3 normal=zoom_transition==0.0 ? pos_normal : normalize(mix(pos_normal,up_dir,zoom_transition));vec3 xAxis=normalize(vec3(normal.z,0.0,-normal.x));vec3 yAxis=normalize(cross(normal,xAxis));return mat3(xAxis,yAxis,normal);} #endif vec2 unpack_float(const float packedValue) {int packedIntValue=int(packedValue);int v0=packedIntValue/256;return vec2(v0,packedIntValue-v0*256);}vec2 unpack_opacity(const float packedOpacity) {int intOpacity=int(packedOpacity)/2;return vec2(float(intOpacity)/127.0,mod(packedOpacity,2.0));}vec4 decode_color(const vec2 encodedColor) {return vec4( unpack_float(encodedColor[0])/255.0,unpack_float(encodedColor[1])/255.0 );}float unpack_mix_vec2(const vec2 packedValue,const float t) {return mix(packedValue[0],packedValue[1],t);}vec4 unpack_mix_color(const vec4 packedColors,const float t) {vec4 minColor=decode_color(vec2(packedColors[0],packedColors[1]));vec4 maxColor=decode_color(vec2(packedColors[2],packedColors[3]));return mix(minColor,maxColor,t);}vec2 get_pattern_pos(const vec2 pixel_coord_upper,const vec2 pixel_coord_lower,const vec2 pattern_size,const float tile_units_to_pixels,const vec2 pos) {vec2 offset=mod(mod(mod(pixel_coord_upper,pattern_size)*256.0,pattern_size)*256.0+pixel_coord_lower,pattern_size);return (tile_units_to_pixels*pos+offset)/pattern_size;}float mercatorXfromLng(float lng) {return (180.0+lng)/360.0;}float mercatorYfromLat(float lat) {return (180.0-(RAD_TO_DEG*log(tan(PI/4.0+lat/2.0*DEG_TO_RAD))))/360.0;}vec3 latLngToECEF(vec2 latLng) {latLng=DEG_TO_RAD*latLng;float cosLat=cos(latLng[0]);float sinLat=sin(latLng[0]);float cosLng=cos(latLng[1]);float sinLng=sin(latLng[1]);float sx=cosLat*sinLng*GLOBE_RADIUS;float sy=-sinLat*GLOBE_RADIUS;float sz=cosLat*cosLng*GLOBE_RADIUS;return vec3(sx,sy,sz);} #ifdef RENDER_CUTOFF uniform vec4 u_cutoff_params;out float v_cutoff_opacity; #endif const vec4 AWAY=vec4(-1000.0,-1000.0,-1000.0,1);const float skirtOffset=24575.0;vec3 decomposeToPosAndSkirt(vec2 posWithComposedSkirt) {float skirt=float(posWithComposedSkirt.x >=skirtOffset);vec2 pos=posWithComposedSkirt-vec2(skirt*skirtOffset,0.0);return vec3(pos,skirt);}`,xs="in highp vec3 a_pos_3f;uniform lowp mat4 u_matrix;out highp vec3 v_uv;void main() {const mat3 half_neg_pi_around_x=mat3(1.0,0.0, 0.0,0.0,0.0,-1.0,0.0,1.0, 0.0);v_uv=half_neg_pi_around_x*a_pos_3f;vec4 pos=u_matrix*vec4(a_pos_3f,1.0);gl_Position=pos.xyww;}",hE=` #define ELEVATION_SCALE 7.0 #define ELEVATION_OFFSET 450.0 #ifdef PROJECTION_GLOBE_VIEW uniform vec3 u_tile_tl_up;uniform vec3 u_tile_tr_up;uniform vec3 u_tile_br_up;uniform vec3 u_tile_bl_up;uniform float u_tile_up_scale;vec3 elevationVector(vec2 pos) {vec2 uv=pos/EXTENT;vec3 up=normalize(mix( mix(u_tile_tl_up,u_tile_tr_up,uv.xxx),mix(u_tile_bl_up,u_tile_br_up,uv.xxx),uv.yyy));return up*u_tile_up_scale;} #else vec3 elevationVector(vec2 pos) { return vec3(0,0,1); } #endif #ifdef TERRAIN uniform highp sampler2D u_dem;uniform highp sampler2D u_dem_prev;uniform vec2 u_dem_tl;uniform vec2 u_dem_tl_prev;uniform float u_dem_scale;uniform float u_dem_scale_prev;uniform float u_dem_size;uniform float u_dem_lerp;uniform float u_exaggeration;uniform float u_meter_to_dem;uniform mat4 u_label_plane_matrix_inv;uniform sampler2D u_depth;uniform vec2 u_depth_size_inv;vec4 tileUvToDemSample(vec2 uv,float dem_size,float dem_scale,vec2 dem_tl) {vec2 pos=dem_size*(uv*dem_scale+dem_tl)+1.0;vec2 f=fract(pos);return vec4((pos-f+0.5)/(dem_size+2.0),f);}float currentElevation(vec2 apos) { #ifdef TERRAIN_DEM_FLOAT_FORMAT vec2 pos=(u_dem_size*(apos/8192.0*u_dem_scale+u_dem_tl)+1.5)/(u_dem_size+2.0);return u_exaggeration*texture(u_dem,pos).r; #else float dd=1.0/(u_dem_size+2.0);vec4 r=tileUvToDemSample(apos/8192.0,u_dem_size,u_dem_scale,u_dem_tl);vec2 pos=r.xy;vec2 f=r.zw;float tl=texture(u_dem,pos).r;float tr=texture(u_dem,pos+vec2(dd,0)).r;float bl=texture(u_dem,pos+vec2(0,dd)).r;float br=texture(u_dem,pos+vec2(dd,dd)).r;return u_exaggeration*mix(mix(tl,tr,f.x),mix(bl,br,f.x),f.y); #endif }float prevElevation(vec2 apos) { #ifdef TERRAIN_DEM_FLOAT_FORMAT vec2 pos=(u_dem_size*(apos/8192.0*u_dem_scale_prev+u_dem_tl_prev)+1.5)/(u_dem_size+2.0);return u_exaggeration*texture(u_dem_prev,pos).r; #else float dd=1.0/(u_dem_size+2.0);vec4 r=tileUvToDemSample(apos/8192.0,u_dem_size,u_dem_scale_prev,u_dem_tl_prev);vec2 pos=r.xy;vec2 f=r.zw;float tl=texture(u_dem_prev,pos).r;float tr=texture(u_dem_prev,pos+vec2(dd,0)).r;float bl=texture(u_dem_prev,pos+vec2(0,dd)).r;float br=texture(u_dem_prev,pos+vec2(dd,dd)).r;return u_exaggeration*mix(mix(tl,tr,f.x),mix(bl,br,f.x),f.y); #endif } #ifdef TERRAIN_VERTEX_MORPHING float elevation(vec2 apos) { #ifdef ZERO_EXAGGERATION return 0.0; #endif float nextElevation=currentElevation(apos);float prevElevation=prevElevation(apos);return mix(prevElevation,nextElevation,u_dem_lerp);} #else float elevation(vec2 apos) { #ifdef ZERO_EXAGGERATION return 0.0; #endif return currentElevation(apos);} #endif highp float unpack_depth(highp vec4 rgba_depth) {const highp vec4 bit_shift=vec4(1.0/(255.0*255.0*255.0),1.0/(255.0*255.0),1.0/255.0,1.0);return dot(rgba_depth,bit_shift)*2.0-1.0;}bool isOccluded(vec4 frag) {vec3 coord=frag.xyz/frag.w;float depth=unpack_depth(texture(u_depth,(coord.xy+1.0)*0.5));return coord.z > depth+0.0005;}float occlusionFade(vec4 frag) {vec3 coord=frag.xyz/frag.w;vec3 df=vec3(5.0*u_depth_size_inv,0.0);vec2 uv=0.5*coord.xy+0.5;vec4 depth=vec4( unpack_depth(texture(u_depth,uv-df.xz)),unpack_depth(texture(u_depth,uv+df.xz)),unpack_depth(texture(u_depth,uv-df.zy)),unpack_depth(texture(u_depth,uv+df.zy)) );return dot(vec4(0.25),vec4(1.0)-clamp(300.0*(vec4(coord.z-0.001)-depth),0.0,1.0));}vec4 fourSample(vec2 pos,vec2 off) {float tl=texture(u_dem,pos).r;float tr=texture(u_dem,pos+vec2(off.x,0.0)).r;float bl=texture(u_dem,pos+vec2(0.0,off.y)).r;float br=texture(u_dem,pos+off).r;return vec4(tl,tr,bl,br);}float flatElevation(vec2 pack) {vec2 apos=floor(pack/8.0);vec2 span=10.0*(pack-apos*8.0);vec2 uvTex=(apos-vec2(1.0,1.0))/8190.0;float size=u_dem_size+2.0;float dd=1.0/size;vec2 pos=u_dem_size*(uvTex*u_dem_scale+u_dem_tl)+1.0;vec2 f=fract(pos);pos=(pos-f+0.5)*dd;vec4 h=fourSample(pos,vec2(dd));float z=mix(mix(h.x,h.y,f.x),mix(h.z,h.w,f.x),f.y);vec2 w=floor(0.5*(span*u_meter_to_dem-1.0));vec2 d=dd*w;h=fourSample(pos-d,2.0*d+vec2(dd));vec4 diff=abs(h.xzxy-h.ywzw);vec2 slope=min(vec2(0.25),u_meter_to_dem*0.5*(diff.xz+diff.yw)/(2.0*w+vec2(1.0)));vec2 fix=slope*span;float base=z+max(fix.x,fix.y);return u_exaggeration*base;}float elevationFromUint16(float word) {return u_exaggeration*(word/ELEVATION_SCALE-ELEVATION_OFFSET);} #else float elevation(vec2 pos) { return 0.0; }bool isOccluded(vec4 frag) { return false; }float occlusionFade(vec4 frag) { return 1.0; } #endif`,Cv=`#ifdef FOG uniform mediump vec4 u_fog_color;uniform mediump vec2 u_fog_range;uniform mediump float u_fog_horizon_blend;uniform mediump mat4 u_fog_matrix;out vec3 v_fog_pos;float fog_range(float depth) {return (depth-u_fog_range[0])/(u_fog_range[1]-u_fog_range[0]);}float fog_horizon_blending(vec3 camera_dir) {float t=max(0.0,camera_dir.z/u_fog_horizon_blend);return u_fog_color.a*exp(-3.0*t*t);}float fog_opacity(float t) {const float decay=6.0;float falloff=1.0-min(1.0,exp(-decay*t));falloff*=falloff*falloff;return u_fog_color.a*min(1.0,1.00747*falloff);}vec3 fog_position(vec3 pos) {return (u_fog_matrix*vec4(pos,1.0)).xyz;}vec3 fog_position(vec2 pos) {return fog_position(vec3(pos,0.0));}float fog(vec3 pos) {float depth=length(pos);float opacity=fog_opacity(fog_range(depth));return opacity*fog_horizon_blending(pos/depth);} #endif`,kk=`highp vec3 hash(highp vec2 p) {highp vec3 p3=fract(p.xyx*vec3(443.8975,397.2973,491.1871));p3+=dot(p3,p3.yxz+19.19);return fract((p3.xxy+p3.yzz)*p3.zyx);}vec3 dither(vec3 color,highp vec2 seed) {vec3 rnd=hash(seed)+hash(seed+0.59374)-0.5;return color+rnd/255.0;} #ifdef FOG uniform mediump vec4 u_fog_color;uniform mediump vec2 u_fog_range;uniform mediump float u_fog_horizon_blend;uniform mediump vec2 u_fog_vertical_limit;uniform mediump float u_fog_temporal_offset;in vec3 v_fog_pos;uniform highp vec3 u_frustum_tl;uniform highp vec3 u_frustum_tr;uniform highp vec3 u_frustum_br;uniform highp vec3 u_frustum_bl;uniform highp vec3 u_globe_pos;uniform highp float u_globe_radius;uniform highp vec2 u_viewport;uniform float u_globe_transition;uniform int u_is_globe;float fog_range(float depth) {return (depth-u_fog_range[0])/(u_fog_range[1]-u_fog_range[0]);}float fog_horizon_blending(vec3 camera_dir) {float t=max(0.0,camera_dir.z/u_fog_horizon_blend);return u_fog_color.a*exp(-3.0*t*t);}float fog_opacity(float t) {const float decay=6.0;float falloff=1.0-min(1.0,exp(-decay*t));falloff*=falloff*falloff;return u_fog_color.a*min(1.0,1.00747*falloff);}float globe_glow_progress() {highp vec2 uv=gl_FragCoord.xy/u_viewport;highp vec3 ray_dir=mix( mix(u_frustum_tl,u_frustum_tr,uv.x),mix(u_frustum_bl,u_frustum_br,uv.x),1.0-uv.y);highp vec3 dir=normalize(ray_dir);highp vec3 closest_point=dot(u_globe_pos,dir)*dir;highp float sdf=length(closest_point-u_globe_pos)/u_globe_radius;return sdf+PI*0.5;}float fog_opacity(vec3 pos) {float depth=length(pos);return fog_opacity(fog_range(depth));}vec3 fog_apply(vec3 color,vec3 pos,float opacity_limit) {float depth=length(pos);float opacity;if (u_is_globe==1) {float glow_progress=globe_glow_progress();float t=mix(glow_progress,depth,u_globe_transition);opacity=fog_opacity(fog_range(t));} else {opacity=fog_opacity(fog_range(depth));opacity*=fog_horizon_blending(pos/depth);}return mix(color,u_fog_color.rgb,min(opacity,opacity_limit));}vec3 fog_apply(vec3 color,vec3 pos) {return fog_apply(color,pos,1.0);}vec4 fog_apply_from_vert(vec4 color,float fog_opac) {float alpha=EPSILON+color.a;color.rgb=mix(color.rgb/alpha,u_fog_color.rgb,fog_opac)*alpha;return color;}vec3 fog_apply_sky_gradient(vec3 camera_ray,vec3 sky_color) {float horizon_blend=fog_horizon_blending(normalize(camera_ray));return mix(sky_color,u_fog_color.rgb,horizon_blend);}vec4 fog_apply_premultiplied(vec4 color,vec3 pos) {float alpha=EPSILON+color.a;color.rgb=fog_apply(color.rgb/alpha,pos)*alpha;return color;}vec4 fog_apply_premultiplied(vec4 color,vec3 pos,float heightMeters) {float verticalProgress=(u_fog_vertical_limit.x > 0.0 || u_fog_vertical_limit.y > 0.0) ? smoothstep(u_fog_vertical_limit.x,u_fog_vertical_limit.y,heightMeters) : 0.0;float opacityLimit=1.0-smoothstep(0.9,1.0,fog_opacity(pos));return mix(fog_apply_premultiplied(color,pos),color,min(verticalProgress,opacityLimit));}vec3 fog_dither(vec3 color) { #ifdef FOG_DITHERING vec2 dither_seed=gl_FragCoord.xy+u_fog_temporal_offset;return dither(color,dither_seed); #else return color; #endif }vec4 fog_dither(vec4 color) {return vec4(fog_dither(color.rgb),color.a);} #endif`,P1=`#ifdef RASTER_ARRAY uniform sampler2D u_image0;uniform sampler2D u_image1;const vec4 NODATA=vec4(1);ivec4 _raTexLinearCoord(highp vec2 texCoord,highp vec2 texResolution,out highp vec2 fxy) {texCoord=texCoord*texResolution-0.5;fxy=fract(texCoord);texCoord-=fxy;return ivec4(texCoord.xxyy+vec2(1.5,0.5).xyxy);}vec2 _raTexLinearMix(highp vec2 fxy,highp vec4 colorMix,highp float colorOffset,highp vec4 t00,highp vec4 t10,highp vec4 t01,highp vec4 t11) {vec2 c00=t00==NODATA ? vec2(0) : vec2(colorOffset+dot(t00,colorMix),1);vec2 c10=t10==NODATA ? vec2(0) : vec2(colorOffset+dot(t10,colorMix),1);vec2 c01=t01==NODATA ? vec2(0) : vec2(colorOffset+dot(t01,colorMix),1);vec2 c11=t11==NODATA ? vec2(0) : vec2(colorOffset+dot(t11,colorMix),1);return mix(mix(c01,c11,fxy.x),mix(c00,c10,fxy.x),fxy.y);}vec2 raTexture2D_image0_linear(highp vec2 texCoord,highp vec2 texResolution,highp vec4 colorMix,highp float colorOffset) {vec2 fxy;ivec4 c=_raTexLinearCoord(texCoord,texResolution,fxy);return _raTexLinearMix(fxy,colorMix,colorOffset,texelFetch(u_image0,c.yz,0),texelFetch(u_image0,c.xz,0),texelFetch(u_image0,c.yw,0),texelFetch(u_image0,c.xw,0) );}vec2 raTexture2D_image1_linear(highp vec2 texCoord,highp vec2 texResolution,highp vec4 colorMix,highp float colorOffset) {vec2 fxy;ivec4 c=_raTexLinearCoord(texCoord,texResolution,fxy);return _raTexLinearMix(fxy,colorMix,colorOffset,texelFetch(u_image1,c.yz,0),texelFetch(u_image1,c.xz,0),texelFetch(u_image1,c.yw,0),texelFetch(u_image1,c.xw,0) );}vec2 raTexture2D_image0_nearest(highp vec2 texCoord,highp vec2 texResolution,highp vec4 colorMix,highp float colorOffset) {vec4 t=texelFetch(u_image0,ivec2(texCoord*texResolution),0);return t==NODATA ? vec2(0) : vec2(colorOffset+dot(t,colorMix),1);}vec2 raTexture2D_image1_nearest(highp vec2 texCoord,highp vec2 texResolution,highp vec4 colorMix,highp float colorOffset) {vec4 t=texelFetch(u_image1,ivec2(texCoord*texResolution),0);return t==NODATA ? vec2(0) : vec2(colorOffset+dot(t,colorMix),1);} #endif`,pE=`#ifdef RASTER_ARRAY uniform sampler2D u_velocity;uniform mediump vec2 u_velocity_res;uniform mediump float u_max_speed;const vec4 NO_DATA=vec4(1);const vec2 INVALID_VELOCITY=vec2(-1);uniform highp vec2 u_uv_offset;uniform highp float u_data_offset;uniform highp vec4 u_data_scale;ivec4 rasterArrayLinearCoord(highp vec2 texCoord,highp vec2 texResolution,out highp vec2 fxy) {texCoord=texCoord*texResolution-0.5;fxy=fract(texCoord);texCoord-=fxy;return ivec4(texCoord.xxyy+vec2(1.5,0.5).xyxy);}highp vec2 lookup_velocity(highp vec2 uv) {uv=u_uv_offset.x+u_uv_offset.y*uv;highp vec2 fxy;ivec4 c=rasterArrayLinearCoord(uv,u_velocity_res,fxy);highp vec4 tl=texelFetch(u_velocity,c.yz,0);highp vec4 tr=texelFetch(u_velocity,c.xz,0);highp vec4 bl=texelFetch(u_velocity,c.yw,0);highp vec4 br=texelFetch(u_velocity,c.xw,0);if (tl==NO_DATA) {return INVALID_VELOCITY;}if (tr==NO_DATA) {return INVALID_VELOCITY;}if (bl==NO_DATA) {return INVALID_VELOCITY;}if (br==NO_DATA) {return INVALID_VELOCITY;}highp vec4 t=mix(mix(bl,br,fxy.x),mix(tl,tr,fxy.x),fxy.y);highp vec2 velocity=vec2(u_data_offset+dot(t.rg,u_data_scale.yx),-(u_data_offset+dot(t.ba,u_data_scale.yx)));velocity/=max(u_max_speed,length(velocity));return velocity;} #endif uniform highp float u_particle_pos_scale;uniform highp vec2 u_particle_pos_offset;highp vec4 pack_pos_to_rgba(highp vec2 p) {highp vec2 v=(p+u_particle_pos_offset)/u_particle_pos_scale;highp vec4 r=vec4(v.x,fract(v.x*255.0),v.y,fract(v.y*255.0));return vec4(r.x-r.y/255.0,r.y,r.z-r.w/255.0,r.w);}highp vec2 unpack_pos_from_rgba(highp vec4 v) {v=floor(v*255.0+0.5)/255.0;highp vec2 p=vec2(v.x+(v.y/255.0),v.z+(v.w/255.0));return u_particle_pos_scale*p-u_particle_pos_offset;}`,Dy=`#ifdef RENDER_SHADOWS uniform mediump vec3 u_shadow_direction;uniform highp vec3 u_shadow_normal_offset;vec3 shadow_normal_offset(vec3 normal) {float tileInMeters=u_shadow_normal_offset[0];vec3 n=vec3(-normal.xy,tileInMeters*normal.z);float dotScale=min(1.0-dot(normal,u_shadow_direction),1.0)*0.5+0.5;return n*dotScale;}vec3 shadow_normal_offset_model(vec3 normal) {float dotScale=min(1.0-dot(normal,u_shadow_direction),1.0)*0.5+0.5;return normal*dotScale;}float shadow_normal_offset_multiplier0() {return u_shadow_normal_offset[1];}float shadow_normal_offset_multiplier1() {return u_shadow_normal_offset[2];} #endif//RENDER_SHADOWS`,fE=`#ifdef RENDER_SHADOWS #ifdef DEPTH_TEXTURE uniform highp sampler2D u_shadowmap_0;uniform highp sampler2D u_shadowmap_1; #else uniform sampler2D u_shadowmap_0;uniform sampler2D u_shadowmap_1; #endif uniform float u_shadow_intensity;uniform float u_shadow_map_resolution;uniform float u_shadow_texel_size;uniform highp vec3 u_shadow_normal_offset;uniform vec2 u_fade_range;uniform mediump vec3 u_shadow_direction;uniform highp vec3 u_shadow_bias;highp float shadow_sample_1(highp vec2 uv,highp float compare) {highp float shadow_depth; #ifdef DEPTH_TEXTURE shadow_depth=texture(u_shadowmap_1,uv).r; #else shadow_depth=unpack_depth(texture(u_shadowmap_1,uv))*0.5+0.5; #endif return step(shadow_depth,compare);}highp float shadow_sample_0(highp vec2 uv,highp float compare) {highp float shadow_depth; #ifdef DEPTH_TEXTURE shadow_depth=texture(u_shadowmap_0,uv).r; #else shadow_depth=unpack_depth(texture(u_shadowmap_0,uv))*0.5+0.5; #endif return step(shadow_depth,compare);}float shadow_occlusion_1(highp vec4 pos,highp float bias) {highp vec2 uv=pos.xy;return shadow_sample_1(uv,pos.z-bias);}float shadow_occlusion_0(highp vec4 pos,highp float bias) {highp float compare0=pos.z-bias; #ifdef NATIVE highp vec2 uv=pos.xy;highp vec4 samples=textureGather(u_shadowmap_0,uv,0);lowp vec4 stepSamples=step(samples,vec4(compare0)); #else highp vec2 uv00=pos.xy-vec2(0.5*u_shadow_texel_size);highp vec2 uv10=uv00+vec2(u_shadow_texel_size,0.0);highp vec2 uv01=uv00+vec2(0.0,u_shadow_texel_size);highp vec2 uv11=uv01+vec2(u_shadow_texel_size,0.0);lowp vec4 stepSamples=vec4( shadow_sample_0(uv01,compare0),shadow_sample_0(uv11,compare0),shadow_sample_0(uv10,compare0),shadow_sample_0(uv00,compare0) ); #endif vec2 f=fract(pos.xy*u_shadow_map_resolution-vec2(0.5));lowp vec2 lerpx=mix(stepSamples.wx,stepSamples.zy,f.xx);return mix(lerpx.x,lerpx.y,f.y);}float shadow_occlusion(highp vec4 light_view_pos0,highp vec4 light_view_pos1,float view_depth,highp float bias) { #ifdef SHADOWS_SINGLE_CASCADE light_view_pos0.xyz=light_view_pos0.xyz/light_view_pos0.w*0.5+0.5;return shadow_occlusion_0(light_view_pos0,bias); #else light_view_pos0.xyz/=light_view_pos0.w;light_view_pos1.xyz/=light_view_pos1.w;vec4 uv=vec4(light_view_pos0.xy,light_view_pos1.xy);vec4 abs_bounds=abs(uv);if (abs_bounds.x < 1.0 && abs_bounds.y < 1.0) {light_view_pos0.xyz=light_view_pos0.xyz*0.5+0.5;return shadow_occlusion_0(light_view_pos0,bias);}if (abs_bounds.z >=1.0 || abs_bounds.w >=1.0) {return 0.0;}light_view_pos1.xyz=light_view_pos1.xyz*0.5+0.5;float occlusion1=shadow_occlusion_1(light_view_pos1,bias);return mix(occlusion1,0.0,smoothstep(u_fade_range.x,u_fade_range.y,view_depth)); #endif }highp float calculate_shadow_bias(float NDotL) { #ifdef NORMAL_OFFSET return 0.5*u_shadow_bias.x; #else return 0.5*(u_shadow_bias.x+clamp(u_shadow_bias.y*tan(acos(NDotL)),0.0,u_shadow_bias.z)); #endif }float shadowed_light_factor_normal(vec3 N,highp vec4 light_view_pos0,highp vec4 light_view_pos1,float view_depth) {float NDotL=dot(N,u_shadow_direction);float bias=calculate_shadow_bias(NDotL);float occlusion=shadow_occlusion(light_view_pos0,light_view_pos1,view_depth,bias);return mix(0.0,(1.0-(u_shadow_intensity*occlusion))*NDotL,step(0.0,NDotL));}float shadowed_light_factor_normal_unbiased(vec3 N,highp vec4 light_view_pos0,highp vec4 light_view_pos1,float view_depth) {float NDotL=dot(N,u_shadow_direction);float bias=0.0;float occlusion=shadow_occlusion(light_view_pos0,light_view_pos1,view_depth,bias);return mix(0.0,(1.0-(u_shadow_intensity*occlusion))*NDotL,step(0.0,NDotL));}float shadowed_light_factor(highp vec4 light_view_pos0,highp vec4 light_view_pos1,float view_depth) {float bias=0.0;float occlusion=shadow_occlusion(light_view_pos0,light_view_pos1,view_depth,bias);return 1.0-(u_shadow_intensity*occlusion);}float shadow_occlusion(float ndotl,highp vec4 light_view_pos0,highp vec4 light_view_pos1,float view_depth) {float bias=calculate_shadow_bias(ndotl);return shadow_occlusion(light_view_pos0,light_view_pos1,view_depth,bias);} #endif`;let cs=[];Am(wv,cs),Am(N1,cs),Am(dE,cs);let Jr={"_prelude_fog.vertex.glsl":Cv,"_prelude_terrain.vertex.glsl":hE,"_prelude_shadow.vertex.glsl":Dy,"_prelude_fog.fragment.glsl":kk,"_prelude_shadow.fragment.glsl":fE,"_prelude_lighting.glsl":` #ifdef LIGHTING_3D_MODE uniform mediump vec3 u_lighting_ambient_color;uniform mediump vec3 u_lighting_directional_dir;uniform mediump vec3 u_lighting_directional_color;uniform mediump vec3 u_ground_radiance;float calculate_ambient_directional_factor(vec3 normal) {float NdotL=dot(normal,u_lighting_directional_dir);const float factor_reduction_max=0.3;float dir_luminance=dot(u_lighting_directional_color,vec3(0.2126,0.7152,0.0722));float directional_factor_min=1.0-factor_reduction_max*min(dir_luminance,1.0);float ambient_directional_factor=mix(directional_factor_min,1.0,min((NdotL+1.0),1.0));const float vertical_factor_min=0.92;float vertical_factor=mix(vertical_factor_min,1.0,normal.z*0.5+0.5);return vertical_factor*ambient_directional_factor;}vec3 linearProduct(vec3 srgbIn,vec3 k) {return srgbIn*pow(k,vec3(1./2.2));}vec3 apply_lighting(vec3 color,vec3 normal,float dir_factor) {float ambient_directional_factor=calculate_ambient_directional_factor(normal);vec3 ambient_contrib=ambient_directional_factor*u_lighting_ambient_color;vec3 directional_contrib=u_lighting_directional_color*dir_factor;return linearProduct(color,ambient_contrib+directional_contrib);}vec4 apply_lighting(vec4 color,vec3 normal,float dir_factor) {return vec4(apply_lighting(color.rgb,normal,dir_factor),color.a);}vec3 apply_lighting(vec3 color,vec3 normal) {float dir_factor=max(dot(normal,u_lighting_directional_dir),0.0);return apply_lighting(color.rgb,normal,dir_factor);}vec4 apply_lighting(vec4 color,vec3 normal) {float dir_factor=max(dot(normal,u_lighting_directional_dir),0.0);return vec4(apply_lighting(color.rgb,normal,dir_factor),color.a);}vec3 apply_lighting_ground(vec3 color) {return color*u_ground_radiance;}vec4 apply_lighting_ground(vec4 color) {return vec4(apply_lighting_ground(color.rgb),color.a);}float calculate_NdotL(vec3 normal) {const float ext=0.70710678118;return (clamp(dot(normal,u_lighting_directional_dir),-ext,1.0)+ext)/(1.0+ext);}vec4 apply_lighting_with_emission_ground(vec4 color,float emissive_strength) {return mix(apply_lighting_ground(color),color,emissive_strength);}vec3 compute_flood_lighting(vec3 flood_light_color,float fully_occluded_factor,float occlusion,vec3 ground_shadow_factor) {vec3 fully_occluded_color=flood_light_color*mix(ground_shadow_factor,vec3(1.0),fully_occluded_factor);float occlusion_ramp=smoothstep(0.0,0.2,1.0-occlusion);return mix(fully_occluded_color,flood_light_color,occlusion_ramp);}vec3 compute_emissive_draped(vec3 unlit_color,float fully_occluded_factor,float occlusion,vec3 ground_shadow_factor) {vec3 fully_occluded_color=unlit_color*mix(ground_shadow_factor,vec3(1.0),fully_occluded_factor);return mix(fully_occluded_color,unlit_color,1.0-occlusion);} #endif//LIGHTING_3D_MODE`,"_prelude_raster_array.glsl":P1,"_prelude_raster_particle.glsl":pE},ky={};io("",hE),io(kk,Cv),io(fE,Dy),io(P1,""),io(pE,"");let My=io(dE,N1),Vg=wv;var Sp={background:io(`#include "_prelude_fog.fragment.glsl" #include "_prelude_lighting.glsl" uniform vec4 u_color;uniform float u_opacity; #ifdef LIGHTING_3D_MODE in vec4 v_color; #endif void main() {vec4 out_color; #ifdef LIGHTING_3D_MODE out_color=v_color; #else out_color=u_color; #endif #ifdef FOG out_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos)); #endif glFragColor=out_color*u_opacity; #ifdef OVERDRAW_INSPECTOR glFragColor=vec4(1.0); #endif HANDLE_WIREFRAME_DEBUG;}`,`#include "_prelude_fog.vertex.glsl" #include "_prelude_lighting.glsl" in vec2 a_pos;uniform mat4 u_matrix; #ifdef LIGHTING_3D_MODE uniform mediump vec4 u_color;out vec4 v_color;uniform float u_emissive_strength; #endif void main() {gl_Position=u_matrix*vec4(a_pos,0,1); #ifdef LIGHTING_3D_MODE v_color=apply_lighting_with_emission_ground(u_color,u_emissive_strength); #endif #ifdef FOG v_fog_pos=fog_position(a_pos); #endif }`),backgroundPattern:io(`#include "_prelude_fog.fragment.glsl" #include "_prelude_lighting.glsl" uniform vec2 u_pattern_tl;uniform vec2 u_pattern_br;uniform vec2 u_texsize;uniform float u_opacity;uniform float u_emissive_strength;uniform sampler2D u_image;in vec2 v_pos;void main() {vec2 imagecoord=mod(v_pos,1.0);vec2 pos=mix(u_pattern_tl/u_texsize,u_pattern_br/u_texsize,imagecoord);vec4 out_color=textureLodCustom(u_image,pos,v_pos); #ifdef LIGHTING_3D_MODE out_color=apply_lighting_with_emission_ground(out_color,u_emissive_strength); #endif #ifdef FOG out_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos)); #endif glFragColor=out_color*u_opacity; #ifdef OVERDRAW_INSPECTOR glFragColor=vec4(1.0); #endif HANDLE_WIREFRAME_DEBUG;}`,`#include "_prelude_fog.vertex.glsl" uniform mat4 u_matrix;uniform vec2 u_pattern_size;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_tile_units_to_pixels;in vec2 a_pos;out vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_pattern_size,u_tile_units_to_pixels,a_pos); #ifdef FOG v_fog_pos=fog_position(a_pos); #endif }`),circle:io(`#include "_prelude_fog.fragment.glsl" #include "_prelude_lighting.glsl" in vec3 v_data;in float v_visibility; #pragma mapbox: define highp vec4 color #pragma mapbox: define mediump float radius #pragma mapbox: define lowp float blur #pragma mapbox: define lowp float opacity #pragma mapbox: define highp vec4 stroke_color #pragma mapbox: define mediump float stroke_width #pragma mapbox: define lowp float stroke_opacity uniform float u_emissive_strength;void main() { #pragma mapbox: initialize highp vec4 color #pragma mapbox: initialize mediump float radius #pragma mapbox: initialize lowp float blur #pragma mapbox: initialize lowp float opacity #pragma mapbox: initialize highp vec4 stroke_color #pragma mapbox: initialize mediump float stroke_width #pragma mapbox: initialize lowp float stroke_opacity vec2 extrude=v_data.xy;float extrude_length=length(extrude);lowp float antialiasblur=v_data.z;float antialiased_blur=-max(blur,antialiasblur);float opacity_t=smoothstep(0.0,antialiased_blur,extrude_length-1.0);float color_t=stroke_width < 0.01 ? 0.0 : smoothstep( antialiased_blur,0.0,extrude_length-radius/(radius+stroke_width) );vec4 out_color=mix(color*opacity,stroke_color*stroke_opacity,color_t); #ifdef LIGHTING_3D_MODE out_color=apply_lighting_with_emission_ground(out_color,u_emissive_strength); #endif #ifdef FOG out_color=fog_apply_premultiplied(out_color,v_fog_pos); #endif glFragColor=out_color*(v_visibility*opacity_t); #ifdef OVERDRAW_INSPECTOR glFragColor=vec4(1.0); #endif }`,`#include "_prelude_fog.vertex.glsl" #include "_prelude_terrain.vertex.glsl" #define NUM_VISIBILITY_RINGS 2 #define INV_SQRT2 0.70710678 #define ELEVATION_BIAS 0.0001 #define NUM_SAMPLES_PER_RING 16 uniform mat4 u_matrix;uniform mat2 u_extrude_scale;uniform lowp float u_device_pixel_ratio;uniform highp float u_camera_to_center_distance;in vec2 a_pos; #ifdef PROJECTION_GLOBE_VIEW in vec3 a_pos_3;in vec3 a_pos_normal_3;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_tile_id;uniform float u_zoom_transition;uniform vec3 u_up_dir; #endif out vec3 v_data;out float v_visibility; #pragma mapbox: define highp vec4 color #pragma mapbox: define mediump float radius #pragma mapbox: define lowp float blur #pragma mapbox: define lowp float opacity #pragma mapbox: define highp vec4 stroke_color #pragma mapbox: define mediump float stroke_width #pragma mapbox: define lowp float stroke_opacity vec2 calc_offset(vec2 extrusion,float radius,float stroke_width, float view_scale) {return extrusion*(radius+stroke_width)*u_extrude_scale*view_scale;}float cantilevered_elevation(vec2 pos,float radius,float stroke_width,float view_scale) {vec2 c1=pos+calc_offset(vec2(-1,-1),radius,stroke_width,view_scale);vec2 c2=pos+calc_offset(vec2(1,-1),radius,stroke_width,view_scale);vec2 c3=pos+calc_offset(vec2(1,1),radius,stroke_width,view_scale);vec2 c4=pos+calc_offset(vec2(-1,1),radius,stroke_width,view_scale);float h1=elevation(c1)+ELEVATION_BIAS;float h2=elevation(c2)+ELEVATION_BIAS;float h3=elevation(c3)+ELEVATION_BIAS;float h4=elevation(c4)+ELEVATION_BIAS;return max(h4,max(h3,max(h1,h2)));}float circle_elevation(vec2 pos) { #if defined(TERRAIN) return elevation(pos)+ELEVATION_BIAS; #else return 0.0; #endif }vec4 project_vertex(vec2 extrusion,vec4 world_center,vec4 projected_center,float radius,float stroke_width, float view_scale,mat3 surface_vectors) {vec2 sample_offset=calc_offset(extrusion,radius,stroke_width,view_scale); #ifdef PITCH_WITH_MAP #ifdef PROJECTION_GLOBE_VIEW return u_matrix*( world_center+vec4(sample_offset.x*surface_vectors[0]+sample_offset.y*surface_vectors[1],0) ); #else return u_matrix*( world_center+vec4(sample_offset,0,0) ); #endif #else return projected_center+vec4(sample_offset,0,0); #endif }float get_sample_step() { #ifdef PITCH_WITH_MAP return 2.0*PI/float(NUM_SAMPLES_PER_RING); #else return PI/float(NUM_SAMPLES_PER_RING); #endif }void main(void) { #pragma mapbox: initialize highp vec4 color #pragma mapbox: initialize mediump float radius #pragma mapbox: initialize lowp float blur #pragma mapbox: initialize lowp float opacity #pragma mapbox: initialize highp vec4 stroke_color #pragma mapbox: initialize mediump float stroke_width #pragma mapbox: initialize lowp float stroke_opacity vec2 extrude=vec2(mod(a_pos,2.0)*2.0-1.0);vec2 circle_center=floor(a_pos*0.5);vec4 world_center;mat3 surface_vectors; #ifdef PROJECTION_GLOBE_VIEW vec3 pos_normal_3=a_pos_normal_3/16384.0;surface_vectors=globe_mercator_surface_vectors(pos_normal_3,u_up_dir,u_zoom_transition);vec3 surface_extrusion=extrude.x*surface_vectors[0]+extrude.y*surface_vectors[1];vec3 globe_elevation=elevationVector(circle_center)*circle_elevation(circle_center);vec3 globe_pos=a_pos_3+surface_extrusion+globe_elevation;vec3 mercator_elevation=u_up_dir*u_tile_up_scale*circle_elevation(circle_center);vec3 merc_pos=mercator_tile_position(u_inv_rot_matrix,circle_center,u_tile_id,u_merc_center)+surface_extrusion+mercator_elevation;vec3 pos=mix_globe_mercator(globe_pos,merc_pos,u_zoom_transition);world_center=vec4(pos,1); #else surface_vectors=mat3(1.0);float height=circle_elevation(circle_center);world_center=vec4(circle_center,height,1); #endif vec4 projected_center=u_matrix*world_center;float view_scale=0.0; #ifdef PITCH_WITH_MAP #ifdef SCALE_WITH_MAP view_scale=1.0; #else view_scale=projected_center.w/u_camera_to_center_distance; #endif #else #ifdef SCALE_WITH_MAP view_scale=u_camera_to_center_distance; #else view_scale=projected_center.w; #endif #endif gl_Position=project_vertex(extrude,world_center,projected_center,radius,stroke_width,view_scale,surface_vectors);float visibility=0.0; #ifdef TERRAIN float step=get_sample_step();vec4 occlusion_world_center;vec4 occlusion_projected_center; #ifdef PITCH_WITH_MAP float cantilevered_height=cantilevered_elevation(circle_center,radius,stroke_width,view_scale);occlusion_world_center=vec4(circle_center,cantilevered_height,1);occlusion_projected_center=u_matrix*occlusion_world_center; #else occlusion_world_center=world_center;occlusion_projected_center=projected_center; #endif for(int ring=0; ring < NUM_VISIBILITY_RINGS; ring++) {float scale=(float(ring)+1.0)/float(NUM_VISIBILITY_RINGS);for(int i=0; i < NUM_SAMPLES_PER_RING; i++) {vec2 extrusion=vec2(cos(step*float(i)),-sin(step*float(i)))*scale;vec4 frag_pos=project_vertex(extrusion,occlusion_world_center,occlusion_projected_center,radius,stroke_width,view_scale,surface_vectors);visibility+=float(!isOccluded(frag_pos));}}visibility/=float(NUM_VISIBILITY_RINGS)*float(NUM_SAMPLES_PER_RING); #else visibility=1.0; #endif #ifdef PROJECTION_GLOBE_VIEW visibility=1.0; #endif v_visibility=visibility;lowp float antialiasblur=1.0/u_device_pixel_ratio/(radius+stroke_width);v_data=vec3(extrude.x,extrude.y,antialiasblur); #ifdef FOG v_fog_pos=fog_position(world_center.xyz); #endif }`),clippingMask:io("void main() {glFragColor=vec4(1.0);}","in vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}"),heatmap:io(`#include "_prelude_fog.fragment.glsl" uniform highp float u_intensity;in vec2 v_extrude; #pragma mapbox: define highp float weight #define GAUSS_COEF 0.3989422804014327 void main() { #pragma mapbox: initialize highp float weight float d=-0.5*3.0*3.0*dot(v_extrude,v_extrude);float val=weight*u_intensity*GAUSS_COEF*exp(d);glFragColor=vec4(val,1.0,1.0,1.0); #ifdef FOG if (u_is_globe==0) {glFragColor.r*=pow(1.0-fog_opacity(v_fog_pos),2.0);} #endif #ifdef OVERDRAW_INSPECTOR glFragColor=vec4(1.0); #endif HANDLE_WIREFRAME_DEBUG;}`,`#include "_prelude_terrain.vertex.glsl" #include "_prelude_fog.vertex.glsl" uniform mat4 u_matrix;uniform float u_extrude_scale;uniform float u_opacity;uniform float u_intensity;in vec2 a_pos; #ifdef PROJECTION_GLOBE_VIEW in vec3 a_pos_3;in vec3 a_pos_normal_3;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_tile_id;uniform float u_zoom_transition;uniform vec3 u_up_dir; #endif out vec2 v_extrude; #pragma mapbox: define highp float weight #pragma mapbox: define mediump float radius const highp float ZERO=1.0/255.0/16.0; #define GAUSS_COEF 0.3989422804014327 void main(void) { #pragma mapbox: initialize highp float weight #pragma mapbox: initialize mediump float radius vec2 unscaled_extrude=vec2(mod(a_pos,2.0)*2.0-1.0);float S=sqrt(-2.0*log(ZERO/weight/u_intensity/GAUSS_COEF))/3.0;v_extrude=S*unscaled_extrude;vec2 extrude=v_extrude*radius*u_extrude_scale;vec2 tilePos=floor(a_pos*0.5);vec3 pos; #ifdef PROJECTION_GLOBE_VIEW vec3 pos_normal_3=a_pos_normal_3/16384.0;mat3 surface_vectors=globe_mercator_surface_vectors(pos_normal_3,u_up_dir,u_zoom_transition);vec3 surface_extrusion=extrude.x*surface_vectors[0]+extrude.y*surface_vectors[1];vec3 globe_elevation=elevationVector(tilePos)*elevation(tilePos);vec3 globe_pos=a_pos_3+surface_extrusion+globe_elevation;vec3 mercator_elevation=u_up_dir*u_tile_up_scale*elevation(tilePos);vec3 merc_pos=mercator_tile_position(u_inv_rot_matrix,tilePos,u_tile_id,u_merc_center)+surface_extrusion+mercator_elevation;pos=mix_globe_mercator(globe_pos,merc_pos,u_zoom_transition); #else pos=vec3(tilePos+extrude,elevation(tilePos)); #endif gl_Position=u_matrix*vec4(pos,1); #ifdef FOG v_fog_pos=fog_position(pos); #endif }`),heatmapTexture:io(`uniform sampler2D u_image;uniform sampler2D u_color_ramp;uniform float u_opacity;in vec2 v_pos;void main() {float t=texture(u_image,v_pos).r;vec4 color=texture(u_color_ramp,vec2(t,0.5));glFragColor=color*u_opacity; #ifdef OVERDRAW_INSPECTOR glFragColor=vec4(0.0); #endif HANDLE_WIREFRAME_DEBUG;}`,"in vec2 a_pos;out vec2 v_pos;void main() {gl_Position=vec4(a_pos,0,1);v_pos=a_pos*0.5+0.5;}"),collisionBox:io("in float v_placed;in float v_notUsed;void main() {vec4 red =vec4(1.0,0.0,0.0,1.0);vec4 blue=vec4(0.0,0.0,1.0,0.5);glFragColor =mix(red,blue,step(0.5,v_placed))*0.5;glFragColor*=mix(1.0,0.1,step(0.5,v_notUsed));}",`#include "_prelude_terrain.vertex.glsl" in vec3 a_pos;in vec2 a_anchor_pos;in vec2 a_extrude;in vec2 a_placed;in vec2 a_shift;in float a_size_scale;in vec2 a_padding;in float a_z_offset;uniform mat4 u_matrix;uniform vec2 u_extrude_scale;uniform float u_camera_to_center_distance;out float v_placed;out float v_notUsed;void main() {vec4 projectedPoint=u_matrix*vec4(a_pos+elevationVector(a_anchor_pos)*(a_z_offset+elevation(a_anchor_pos)),1);highp float camera_to_anchor_distance=projectedPoint.w;highp float collision_perspective_ratio=clamp( 0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,1.5);gl_Position=projectedPoint;gl_Position.xy+=(a_extrude*a_size_scale+a_shift+a_padding)*u_extrude_scale*gl_Position.w*collision_perspective_ratio;v_placed=a_placed.x;v_notUsed=a_placed.y;}`),collisionCircle:io("in float v_radius;in vec2 v_extrude;in float v_perspective_ratio;in float v_collision;void main() {float alpha=0.5*min(v_perspective_ratio,1.0);float stroke_radius=0.9*max(v_perspective_ratio,1.0);float distance_to_center=length(v_extrude);float distance_to_edge=abs(distance_to_center-v_radius);float opacity_t=smoothstep(-stroke_radius,0.0,-distance_to_edge);vec4 color=mix(vec4(0.0,0.0,1.0,0.5),vec4(1.0,0.0,0.0,1.0),v_collision);glFragColor=color*alpha*opacity_t;}",`in vec2 a_pos_2f;in float a_radius;in vec2 a_flags;uniform mat4 u_matrix;uniform mat4 u_inv_matrix;uniform vec2 u_viewport_size;uniform float u_camera_to_center_distance;out float v_radius;out vec2 v_extrude;out float v_perspective_ratio;out float v_collision;vec3 toTilePosition(vec2 screenPos) {vec4 rayStart=u_inv_matrix*vec4(screenPos,-1.0,1.0);vec4 rayEnd =u_inv_matrix*vec4(screenPos, 1.0,1.0);rayStart.xyz/=rayStart.w;rayEnd.xyz /=rayEnd.w;highp float t=(0.0-rayStart.z)/(rayEnd.z-rayStart.z);return mix(rayStart.xyz,rayEnd.xyz,t);}void main() {vec2 quadCenterPos=a_pos_2f;float radius=a_radius;float collision=a_flags.x;float vertexIdx=a_flags.y;vec2 quadVertexOffset=vec2( mix(-1.0,1.0,float(vertexIdx >=2.0)),mix(-1.0,1.0,float(vertexIdx >=1.0 && vertexIdx <=2.0)));vec2 quadVertexExtent=quadVertexOffset*radius;vec3 tilePos=toTilePosition(quadCenterPos);vec4 clipPos=u_matrix*vec4(tilePos,1.0);highp float camera_to_anchor_distance=clipPos.w;highp float collision_perspective_ratio=clamp( 0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);float padding_factor=1.2;v_radius=radius;v_extrude=quadVertexExtent*padding_factor;v_perspective_ratio=collision_perspective_ratio;v_collision=collision;gl_Position=vec4(clipPos.xyz/clipPos.w,1.0)+vec4(quadVertexExtent*padding_factor/u_viewport_size*2.0,0.0,0.0);}`),debug:io("uniform highp vec4 u_color;uniform sampler2D u_overlay;in vec2 v_uv;void main() {vec4 overlay_color=texture(u_overlay,v_uv);glFragColor=mix(u_color,overlay_color,overlay_color.a);}",`#include "_prelude_terrain.vertex.glsl" in vec2 a_pos; #ifdef PROJECTION_GLOBE_VIEW in vec3 a_pos_3; #endif out vec2 v_uv;uniform mat4 u_matrix;uniform float u_overlay_scale;void main() {float h=elevation(a_pos);v_uv=a_pos/8192.0; #ifdef PROJECTION_GLOBE_VIEW gl_Position=u_matrix*vec4(a_pos_3+elevationVector(a_pos)*h,1); #else gl_Position=u_matrix*vec4(a_pos*u_overlay_scale,h,1); #endif }`),fill:io(`#include "_prelude_fog.fragment.glsl" #include "_prelude_lighting.glsl" #pragma mapbox: define highp vec4 color #pragma mapbox: define lowp float opacity uniform float u_emissive_strength;void main() { #pragma mapbox: initialize highp vec4 color #pragma mapbox: initialize lowp float opacity vec4 out_color=color; #ifdef LIGHTING_3D_MODE out_color=apply_lighting_with_emission_ground(out_color,u_emissive_strength); #endif #ifdef FOG out_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos)); #endif glFragColor=out_color*opacity; #ifdef OVERDRAW_INSPECTOR glFragColor=vec4(1.0); #endif HANDLE_WIREFRAME_DEBUG;}`,`#include "_prelude_fog.vertex.glsl" in vec2 a_pos;uniform mat4 u_matrix; #pragma mapbox: define highp vec4 color #pragma mapbox: define lowp float opacity void main() { #pragma mapbox: initialize highp vec4 color #pragma mapbox: initialize lowp float opacity gl_Position=u_matrix*vec4(a_pos,0,1); #ifdef FOG v_fog_pos=fog_position(a_pos); #endif }`),fillOutline:io(`#include "_prelude_fog.fragment.glsl" #include "_prelude_lighting.glsl" in highp vec2 v_pos;uniform float u_emissive_strength; #pragma mapbox: define highp vec4 outline_color #pragma mapbox: define lowp float opacity void main() { #pragma mapbox: initialize highp vec4 outline_color #pragma mapbox: initialize lowp float opacity float dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);vec4 out_color=outline_color; #ifdef LIGHTING_3D_MODE out_color=apply_lighting_with_emission_ground(out_color,u_emissive_strength); #endif #ifdef FOG out_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos)); #endif glFragColor=out_color*(alpha*opacity); #ifdef OVERDRAW_INSPECTOR glFragColor=vec4(1.0); #endif HANDLE_WIREFRAME_DEBUG;}`,`#include "_prelude_fog.vertex.glsl" in vec2 a_pos;uniform mat4 u_matrix;uniform vec2 u_world;out highp vec2 v_pos; #pragma mapbox: define highp vec4 outline_color #pragma mapbox: define lowp float opacity void main() { #pragma mapbox: initialize highp vec4 outline_color #pragma mapbox: initialize lowp float opacity gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world; #ifdef FOG v_fog_pos=fog_position(a_pos); #endif }`),fillOutlinePattern:io(`#include "_prelude_fog.fragment.glsl" #include "_prelude_lighting.glsl" uniform vec2 u_texsize;uniform sampler2D u_image;uniform float u_emissive_strength;in highp vec2 v_pos;in highp vec2 v_pos_world; #pragma mapbox: define lowp float opacity #pragma mapbox: define lowp vec4 pattern void main() { #pragma mapbox: initialize lowp float opacity #pragma mapbox: initialize mediump vec4 pattern vec2 pattern_tl=pattern.xy;vec2 pattern_br=pattern.zw;vec2 imagecoord=mod(v_pos,1.0);vec2 pos=mix(pattern_tl/u_texsize,pattern_br/u_texsize,imagecoord);vec2 lod_pos=mix(pattern_tl/u_texsize,pattern_br/u_texsize,v_pos);float dist=length(v_pos_world-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);vec4 out_color=textureLodCustom(u_image,pos,lod_pos); #ifdef LIGHTING_3D_MODE out_color=apply_lighting_with_emission_ground(out_color,u_emissive_strength); #endif #ifdef FOG out_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos)); #endif glFragColor=out_color*(alpha*opacity); #ifdef OVERDRAW_INSPECTOR glFragColor=vec4(1.0); #endif HANDLE_WIREFRAME_DEBUG;}`,`#include "_prelude_fog.vertex.glsl" uniform mat4 u_matrix;uniform vec2 u_world;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_tile_units_to_pixels;in vec2 a_pos;out highp vec2 v_pos;out highp vec2 v_pos_world; #pragma mapbox: define lowp float opacity #pragma mapbox: define lowp vec4 pattern #pragma mapbox: define lowp float pixel_ratio void main() { #pragma mapbox: initialize lowp float opacity #pragma mapbox: initialize mediump vec4 pattern #pragma mapbox: initialize lowp float pixel_ratio vec2 pattern_tl=pattern.xy;vec2 pattern_br=pattern.zw;gl_Position=u_matrix*vec4(a_pos,0,1);vec2 display_size=(pattern_br-pattern_tl)/pixel_ratio;v_pos=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,display_size,u_tile_units_to_pixels,a_pos);v_pos_world=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world; #ifdef FOG v_fog_pos=fog_position(a_pos); #endif }`),fillPattern:io(`#include "_prelude_fog.fragment.glsl" #include "_prelude_lighting.glsl" uniform vec2 u_texsize;uniform sampler2D u_image;in vec2 v_pos;uniform float u_emissive_strength; #pragma mapbox: define lowp float opacity #pragma mapbox: define lowp vec4 pattern void main() { #pragma mapbox: initialize lowp float opacity #pragma mapbox: initialize mediump vec4 pattern vec2 pattern_tl=pattern.xy;vec2 pattern_br=pattern.zw;vec2 imagecoord=mod(v_pos,1.0);vec2 pos=mix(pattern_tl/u_texsize,pattern_br/u_texsize,imagecoord);vec2 lod_pos=mix(pattern_tl/u_texsize,pattern_br/u_texsize,v_pos);vec4 out_color=textureLodCustom(u_image,pos,lod_pos); #ifdef LIGHTING_3D_MODE out_color=apply_lighting_with_emission_ground(out_color,u_emissive_strength); #endif #ifdef FOG out_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos)); #endif glFragColor=out_color*opacity; #ifdef OVERDRAW_INSPECTOR glFragColor=vec4(1.0); #endif HANDLE_WIREFRAME_DEBUG;}`,`#include "_prelude_fog.vertex.glsl" uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_tile_units_to_pixels;in vec2 a_pos;out vec2 v_pos; #pragma mapbox: define lowp float opacity #pragma mapbox: define lowp vec4 pattern #pragma mapbox: define lowp float pixel_ratio void main() { #pragma mapbox: initialize lowp float opacity #pragma mapbox: initialize mediump vec4 pattern #pragma mapbox: initialize lowp float pixel_ratio vec2 pattern_tl=pattern.xy;vec2 pattern_br=pattern.zw;vec2 display_size=(pattern_br-pattern_tl)/pixel_ratio;gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,display_size,u_tile_units_to_pixels,a_pos); #ifdef FOG v_fog_pos=fog_position(a_pos); #endif }`),fillExtrusion:io(`#include "_prelude_fog.fragment.glsl" #include "_prelude_shadow.fragment.glsl" #include "_prelude_lighting.glsl" in vec4 v_color;in vec4 v_flat; #ifdef RENDER_SHADOWS in highp vec4 v_pos_light_view_0;in highp vec4 v_pos_light_view_1; #endif uniform lowp float u_opacity; #ifdef FAUX_AO uniform lowp vec2 u_ao;in vec2 v_ao; #endif #if defined(ZERO_ROOF_RADIUS) && !defined(LIGHTING_3D_MODE) in vec4 v_roof_color; #endif #if defined(ZERO_ROOF_RADIUS) || defined(RENDER_SHADOWS) || defined(LIGHTING_3D_MODE) in highp vec3 v_normal; #endif uniform vec3 u_flood_light_color;uniform highp float u_vertical_scale;uniform float u_flood_light_intensity;uniform vec3 u_ground_shadow_factor; #if defined(LIGHTING_3D_MODE) && defined(FLOOD_LIGHT) in float v_flood_radius;in float v_has_floodlight; #endif uniform float u_emissive_strength;in float v_height;void main() { #if defined(ZERO_ROOF_RADIUS) || defined(RENDER_SHADOWS) || defined(LIGHTING_3D_MODE) vec3 normal=normalize(v_normal); #endif float z;vec4 color=v_color; #ifdef ZERO_ROOF_RADIUS z=float(normal.z > 0.00001); #ifdef LIGHTING_3D_MODE normal=mix(normal,vec3(0.0,0.0,1.0),z); #else color=mix(v_color,v_roof_color,z); #endif #endif float h=max(0.0,v_height);float ao_shade=1.0; #ifdef FAUX_AO float intensity=u_ao[0];float h_floors=h/(u_ao[1]*u_vertical_scale);float y_shade=1.0-0.9*intensity*min(v_ao.y,1.0);ao_shade=(1.0-0.08*intensity)*(y_shade+(1.0-y_shade)*(1.0-pow(1.0-min(h_floors/16.0,1.0),16.0)))+0.08*intensity*min(h_floors/160.0,1.0);float concave=v_ao.x*v_ao.x; #ifdef ZERO_ROOF_RADIUS concave*=(1.0-z); #endif float x_shade=mix(1.0,mix(0.6,0.75,min(h_floors/30.0,1.0)),intensity)+0.1*intensity*min(h,1.0);ao_shade*=mix(1.0,x_shade*x_shade*x_shade,concave); #ifdef LIGHTING_3D_MODE #ifdef FLOOD_LIGHT color.rgb*=mix(ao_shade,1.0,v_has_floodlight); #else color.rgb*=ao_shade; #endif #else color.rgb*=ao_shade; #endif #endif #ifdef LIGHTING_3D_MODE float flood_radiance=0.0; #ifdef FLOOD_LIGHT flood_radiance=(1.0-min(h/v_flood_radius,1.0))*u_flood_light_intensity*v_has_floodlight; #endif #ifdef RENDER_SHADOWS #ifdef FLOOD_LIGHT float ndotl_unclamped=dot(normal,u_shadow_direction);float ndotl=max(0.0,ndotl_unclamped);float occlusion=ndotl_unclamped < 0.0 ? 1.0 : shadow_occlusion(ndotl,v_pos_light_view_0,v_pos_light_view_1,1.0/gl_FragCoord.w);vec3 litColor=apply_lighting(color.rgb,normal,(1.0-u_shadow_intensity*occlusion)*ndotl);vec3 floodLitColor=compute_flood_lighting(u_flood_light_color*u_opacity,1.0-u_shadow_intensity,occlusion,u_ground_shadow_factor);color.rgb=mix(litColor,floodLitColor,flood_radiance); #else float shadowed_lighting_factor=shadowed_light_factor_normal(normal,v_pos_light_view_0,v_pos_light_view_1,1.0/gl_FragCoord.w);color.rgb=apply_lighting(color.rgb,normal,shadowed_lighting_factor); #endif #else color.rgb=apply_lighting(color.rgb,normal); #ifdef FLOOD_LIGHT color.rgb=mix(color.rgb,u_flood_light_color*u_opacity,flood_radiance); #endif #endif color.rgb=mix(color.rgb,v_flat.rgb,u_emissive_strength);color*=u_opacity; #endif #ifdef FOG color=fog_dither(fog_apply_premultiplied(color,v_fog_pos,h)); #endif #ifdef INDICATOR_CUTOUT color=applyCutout(color); #endif glFragColor=color; #ifdef OVERDRAW_INSPECTOR glFragColor=vec4(1.0); #endif HANDLE_WIREFRAME_DEBUG;}`,`#include "_prelude_fog.vertex.glsl" #include "_prelude_terrain.vertex.glsl" #include "_prelude_shadow.vertex.glsl" #include "_prelude_lighting.glsl" uniform mat4 u_matrix;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform float u_edge_radius;in vec4 a_pos_normal_ed;in vec2 a_centroid_pos; #ifdef PROJECTION_GLOBE_VIEW in vec3 a_pos_3;in vec3 a_pos_normal_3;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_tile_id;uniform float u_zoom_transition;uniform vec3 u_up_dir;uniform float u_height_lift; #endif uniform highp float u_vertical_scale;out vec4 v_color;out vec4 v_flat; #ifdef RENDER_SHADOWS uniform mat4 u_light_matrix_0;uniform mat4 u_light_matrix_1;out highp vec4 v_pos_light_view_0;out highp vec4 v_pos_light_view_1; #endif #if defined(ZERO_ROOF_RADIUS) && !defined(LIGHTING_3D_MODE) out vec4 v_roof_color; #endif #if defined(ZERO_ROOF_RADIUS) || defined(RENDER_SHADOWS) || defined(LIGHTING_3D_MODE) out highp vec3 v_normal; #endif #ifdef FAUX_AO uniform lowp vec2 u_ao;out vec2 v_ao; #endif #if defined(LIGHTING_3D_MODE) && defined(FLOOD_LIGHT) out float v_flood_radius;out float v_has_floodlight; #endif out float v_height; #pragma mapbox: define highp float base #pragma mapbox: define highp float height #pragma mapbox: define highp vec4 color #pragma mapbox: define highp float flood_light_wall_radius void main() { #pragma mapbox: initialize highp float base #pragma mapbox: initialize highp float height #pragma mapbox: initialize highp vec4 color #pragma mapbox: initialize highp float flood_light_wall_radius base*=u_vertical_scale;height*=u_vertical_scale;vec4 pos_nx=floor(a_pos_normal_ed*0.5);vec4 top_up_ny_start=a_pos_normal_ed-2.0*pos_nx;vec3 top_up_ny=top_up_ny_start.xyz;float x_normal=pos_nx.z/8192.0;vec3 normal=top_up_ny.y==1.0 ? vec3(0.0,0.0,1.0) : normalize(vec3(x_normal,(2.0*top_up_ny.z-1.0)*(1.0-abs(x_normal)),0.0)); #if defined(ZERO_ROOF_RADIUS) || defined(RENDER_SHADOWS) || defined(LIGHTING_3D_MODE) v_normal=normal; #endif base=max(0.0,base);float attr_height=height;height=max(0.0,top_up_ny.y==0.0 && top_up_ny.x==1.0 ? height-u_edge_radius : height);float t=top_up_ny.x;vec2 centroid_pos=vec2(0.0); #if defined(HAS_CENTROID) || defined(TERRAIN) centroid_pos=a_centroid_pos; #endif float ele=0.0;float h=0.0;float c_ele=0.0;vec3 pos; #ifdef TERRAIN bool flat_roof=centroid_pos.x !=0.0 && t > 0.0;ele=elevation(pos_nx.xy);c_ele=flat_roof ? centroid_pos.y==0.0 ? elevationFromUint16(centroid_pos.x) : flatElevation(centroid_pos) : ele;h=flat_roof ? max(c_ele+height,ele+base+2.0) : ele+(t > 0.0 ? height : base==0.0 ?-5.0 : base);pos=vec3(pos_nx.xy,h); #else h=t > 0.0 ? height : base;pos=vec3(pos_nx.xy,h); #endif #ifdef PROJECTION_GLOBE_VIEW float lift=float((t+base) > 0.0)*u_height_lift;h+=lift;vec3 globe_normal=normalize(mix(a_pos_normal_3/16384.0,u_up_dir,u_zoom_transition));vec3 globe_pos=a_pos_3+globe_normal*(u_tile_up_scale*h);vec3 merc_pos=mercator_tile_position(u_inv_rot_matrix,pos.xy,u_tile_id,u_merc_center)+u_up_dir*u_tile_up_scale*pos.z;pos=mix_globe_mercator(globe_pos,merc_pos,u_zoom_transition); #endif float cutoff=1.0;vec3 scaled_pos=pos; #ifdef RENDER_CUTOFF vec3 centroid_random=vec3(centroid_pos.xy,centroid_pos.x+centroid_pos.y+1.0);vec3 ground_pos=centroid_pos.x==0.0 ? pos.xyz : (centroid_random/8.0);vec4 ground=u_matrix*vec4(ground_pos.xy,ele,1.0);cutoff=max(0.01,cutoff_opacity(u_cutoff_params,ground.z));if (centroid_pos.y !=0.0 && centroid_pos.x !=0.0) {vec3 g=floor(ground_pos);vec3 mod_=centroid_random-g*8.0;float seed=min(1.0,0.1*(min(3.5,max(mod_.x+mod_.y,0.2*attr_height))*0.35+mod_.z));if (cutoff < 0.8-seed) {cutoff=0.0;}}float cutoff_scale=cutoff;scaled_pos.z=mix(c_ele,h,cutoff_scale); #endif float hidden=float((centroid_pos.x==0.0 && centroid_pos.y==1.0) || (cutoff < 0.01 && centroid_pos.x !=0.0));gl_Position=mix(u_matrix*vec4(scaled_pos,1),AWAY,hidden);h=h-ele;v_height=h; #ifdef RENDER_SHADOWS vec3 shd_pos0=pos;vec3 shd_pos1=pos; #ifdef NORMAL_OFFSET vec3 offset=shadow_normal_offset(normal);shd_pos0+=offset*shadow_normal_offset_multiplier0();shd_pos1+=offset*shadow_normal_offset_multiplier1(); #endif v_pos_light_view_0=u_light_matrix_0*vec4(shd_pos0,1);v_pos_light_view_1=u_light_matrix_1*vec4(shd_pos1,1); #endif float NdotL=0.0;float colorvalue=0.0; #ifndef LIGHTING_3D_MODE colorvalue=color.r*0.2126+color.g*0.7152+color.b*0.0722;vec4 ambientlight=vec4(0.03,0.03,0.03,1.0);color+=ambientlight;NdotL=clamp(dot(normal,u_lightpos),0.0,1.0);NdotL=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),NdotL);if (normal.y !=0.0) {float r=0.84;r=mix(0.7,0.98,1.0-u_lightintensity);NdotL*=( (1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),r,1.0)));} #endif #ifdef FAUX_AO float concave=pos_nx.w-floor(pos_nx.w*0.5)*2.0;float start=top_up_ny_start.w;float y_ground=1.0-clamp(t+base,0.0,1.0);float top_height=height; #ifdef TERRAIN top_height=mix(max(c_ele+height,ele+base+2.0),ele+height,float(centroid_pos.x==0.0))-ele;y_ground+=y_ground*5.0/max(3.0,top_height); #endif v_ao=vec2(mix(concave,-concave,start),y_ground);NdotL*=(1.0+0.05*(1.0-top_up_ny.y)*u_ao[0]); #ifdef PROJECTION_GLOBE_VIEW top_height+=u_height_lift; #endif gl_Position.z-=(0.0000006*(min(top_height,500.)+2.0*min(base,500.0)+60.0*concave+3.0*start))*gl_Position.w; #endif #ifdef LIGHTING_3D_MODE #ifdef FLOOD_LIGHT float is_wall=1.0-float(t > 0.0 && top_up_ny.y > 0.0);v_has_floodlight=float(flood_light_wall_radius > 0.0 && is_wall > 0.0);v_flood_radius=flood_light_wall_radius*u_vertical_scale; #endif v_color=vec4(color.rgb,1.0);v_flat=vec4(linearProduct(color.rgb,vec3(calculate_NdotL(normal))),1.0); #else v_color=vec4(0.0,0.0,0.0,1.0);v_color.rgb+=clamp(color.rgb*NdotL*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_color*=u_opacity; #endif #if defined(ZERO_ROOF_RADIUS) && !defined(LIGHTING_3D_MODE) float roofNdotL=clamp(u_lightpos.z,0.0,1.0);roofNdotL=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),roofNdotL);v_roof_color=vec4(0.0,0.0,0.0,1.0);v_roof_color.rgb+=clamp(color.rgb*roofNdotL*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_roof_color*=u_opacity; #endif #ifdef FOG v_fog_pos=fog_position(pos); #endif }`),fillExtrusionDepth:io(`in highp float v_depth;void main() { #ifndef DEPTH_TEXTURE glFragColor=pack_depth(v_depth); #endif }`,`#include "_prelude_terrain.vertex.glsl" uniform mat4 u_matrix;uniform float u_edge_radius;uniform float u_vertical_scale;in vec4 a_pos_normal_ed;in vec2 a_centroid_pos; #pragma mapbox: define highp float base #pragma mapbox: define highp float height out highp float v_depth;void main() { #pragma mapbox: initialize highp float base #pragma mapbox: initialize highp float height base*=u_vertical_scale;height*=u_vertical_scale;vec3 pos_nx=floor(a_pos_normal_ed.xyz*0.5);mediump vec3 top_up_ny=a_pos_normal_ed.xyz-2.0*pos_nx;base=max(0.0,base);height=max(0.0,top_up_ny.y==0.0 && top_up_ny.x==1.0 ? height-u_edge_radius : height);float t=top_up_ny.x;vec2 centroid_pos=vec2(0.0); #if defined(HAS_CENTROID) || defined(TERRAIN) centroid_pos=a_centroid_pos; #endif vec3 pos; #ifdef TERRAIN bool flat_roof=centroid_pos.x !=0.0 && t > 0.0;float ele=elevation(pos_nx.xy);float c_ele=flat_roof ? centroid_pos.y==0.0 ? elevationFromUint16(centroid_pos.x) : flatElevation(centroid_pos) : ele;float h=flat_roof ? max(c_ele+height,ele+base+2.0) : ele+(t > 0.0 ? height : base);pos=vec3(pos_nx.xy,h); #else pos=vec3(pos_nx.xy,t > 0.0 ? height : base); #endif float hidden=float(centroid_pos.x==0.0 && centroid_pos.y==1.0);gl_Position=mix(u_matrix*vec4(pos,1),AWAY,hidden);v_depth=gl_Position.z/gl_Position.w;}`),fillExtrusionPattern:io(`#include "_prelude_fog.fragment.glsl" #include "_prelude_lighting.glsl" uniform vec2 u_texsize;uniform sampler2D u_image; #ifdef FAUX_AO uniform lowp vec2 u_ao;in vec3 v_ao; #endif #ifdef LIGHTING_3D_MODE in vec3 v_normal; #endif in vec2 v_pos;in vec4 v_lighting;uniform lowp float u_opacity; #pragma mapbox: define highp float base #pragma mapbox: define highp float height #pragma mapbox: define mediump vec4 pattern #pragma mapbox: define highp float pixel_ratio void main() { #pragma mapbox: initialize highp float base #pragma mapbox: initialize highp float height #pragma mapbox: initialize mediump vec4 pattern #pragma mapbox: initialize highp float pixel_ratio vec2 pattern_tl=pattern.xy;vec2 pattern_br=pattern.zw;vec2 imagecoord=mod(v_pos,1.0);vec2 pos=mix(pattern_tl/u_texsize,pattern_br/u_texsize,imagecoord);vec2 lod_pos=mix(pattern_tl/u_texsize,pattern_br/u_texsize,v_pos);vec4 out_color=textureLodCustom(u_image,pos,lod_pos); #ifdef LIGHTING_3D_MODE out_color=apply_lighting(out_color,normalize(v_normal))*u_opacity; #else out_color=out_color*v_lighting; #endif #ifdef FAUX_AO float intensity=u_ao[0];float h=max(0.0,v_ao.z);float h_floors=h/u_ao[1];float y_shade=1.0-0.9*intensity*min(v_ao.y,1.0);float shade=(1.0-0.08*intensity)*(y_shade+(1.0-y_shade)*(1.0-pow(1.0-min(h_floors/16.0,1.0),16.0)))+0.08*intensity*min(h_floors/160.0,1.0);float concave=v_ao.x*v_ao.x;float x_shade=mix(1.0,mix(0.6,0.75,min(h_floors/30.0,1.0)),intensity)+0.1*intensity*min(h,1.0);shade*=mix(1.0,x_shade*x_shade*x_shade,concave);out_color.rgb=out_color.rgb*shade; #endif #ifdef FOG out_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos)); #endif #ifdef INDICATOR_CUTOUT out_color=applyCutout(out_color); #endif glFragColor=out_color; #ifdef OVERDRAW_INSPECTOR glFragColor=vec4(1.0); #endif HANDLE_WIREFRAME_DEBUG;}`,`#include "_prelude_fog.vertex.glsl" #include "_prelude_terrain.vertex.glsl" #include "_prelude_lighting.glsl" uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_height_factor;uniform float u_tile_units_to_pixels;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;in vec4 a_pos_normal_ed;in vec2 a_centroid_pos; #ifdef PROJECTION_GLOBE_VIEW in vec3 a_pos_3;in vec3 a_pos_normal_3;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_tile_id;uniform float u_zoom_transition;uniform vec3 u_up_dir;uniform float u_height_lift; #endif out vec2 v_pos;out vec4 v_lighting; #ifdef FAUX_AO uniform lowp vec2 u_ao;out vec3 v_ao; #endif #ifdef LIGHTING_3D_MODE out vec3 v_normal; #endif #pragma mapbox: define highp float base #pragma mapbox: define highp float height #pragma mapbox: define mediump vec4 pattern #pragma mapbox: define highp float pixel_ratio void main() { #pragma mapbox: initialize highp float base #pragma mapbox: initialize highp float height #pragma mapbox: initialize mediump vec4 pattern #pragma mapbox: initialize highp float pixel_ratio vec2 pattern_tl=pattern.xy;vec2 pattern_br=pattern.zw;vec4 pos_nx=floor(a_pos_normal_ed*0.5);mediump vec4 top_up_ny_start=a_pos_normal_ed-2.0*pos_nx;mediump vec3 top_up_ny=top_up_ny_start.xyz;float x_normal=pos_nx.z/8192.0;vec3 normal=top_up_ny.y==1.0 ? vec3(0.0,0.0,1.0) : normalize(vec3(x_normal,(2.0*top_up_ny.z-1.0)*(1.0-abs(x_normal)),0.0));float edgedistance=a_pos_normal_ed.w;vec2 display_size=(pattern_br-pattern_tl)/pixel_ratio;base=max(0.0,base);height=max(0.0,height);float t=top_up_ny.x;float z=t > 0.0 ? height : base;vec2 centroid_pos=vec2(0.0); #if defined(HAS_CENTROID) || defined(TERRAIN) centroid_pos=a_centroid_pos; #endif float ele=0.0;float h=z;vec3 p;float c_ele; #ifdef TERRAIN bool flat_roof=centroid_pos.x !=0.0 && t > 0.0;ele=elevation(pos_nx.xy);c_ele=flat_roof ? centroid_pos.y==0.0 ? elevationFromUint16(centroid_pos.x) : flatElevation(centroid_pos) : ele;h=flat_roof ? max(c_ele+height,ele+base+2.0) : ele+(t > 0.0 ? height : base==0.0 ?-5.0 : base);p=vec3(pos_nx.xy,h); #else p=vec3(pos_nx.xy,z); #endif #ifdef PROJECTION_GLOBE_VIEW float lift=float((t+base) > 0.0)*u_height_lift;h+=lift;vec3 globe_normal=normalize(mix(a_pos_normal_3/16384.0,u_up_dir,u_zoom_transition));vec3 globe_pos=a_pos_3+globe_normal*(u_tile_up_scale*(p.z+lift));vec3 merc_pos=mercator_tile_position(u_inv_rot_matrix,p.xy,u_tile_id,u_merc_center)+u_up_dir*u_tile_up_scale*p.z;p=mix_globe_mercator(globe_pos,merc_pos,u_zoom_transition); #endif float hidden=float(centroid_pos.x==0.0 && centroid_pos.y==1.0);gl_Position=mix(u_matrix*vec4(p,1),AWAY,hidden);vec2 pos=normal.z==1.0 ? pos_nx.xy : vec2(edgedistance,z*u_height_factor);v_pos=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,display_size,u_tile_units_to_pixels,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float NdotL=0.0; #ifdef LIGHTING_3D_MODE NdotL=calculate_NdotL(normal); #else NdotL=clamp(dot(normal,u_lightpos),0.0,1.0);NdotL=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),NdotL); #endif if (normal.y !=0.0) {float r=0.84; #ifndef LIGHTING_3D_MODE r=mix(0.7,0.98,1.0-u_lightintensity); #endif NdotL*=( (1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),r,1.0)));} #ifdef FAUX_AO float concave=pos_nx.w-floor(pos_nx.w*0.5)*2.0;float start=top_up_ny_start.w;float y_ground=1.0-clamp(t+base,0.0,1.0);float top_height=height; #ifdef TERRAIN top_height=mix(max(c_ele+height,ele+base+2.0),ele+height,float(centroid_pos.x==0.0))-ele;y_ground+=y_ground*5.0/max(3.0,top_height); #endif v_ao=vec3(mix(concave,-concave,start),y_ground,h-ele);NdotL*=(1.0+0.05*(1.0-top_up_ny.y)*u_ao[0]); #ifdef PROJECTION_GLOBE_VIEW top_height+=u_height_lift; #endif gl_Position.z-=(0.0000006*(min(top_height,500.)+2.0*min(base,500.0)+60.0*concave+3.0*start))*gl_Position.w; #endif #ifdef LIGHTING_3D_MODE v_normal=normal; #else v_lighting.rgb+=clamp(NdotL*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity; #endif #ifdef FOG v_fog_pos=fog_position(p); #endif }`),groundShadow:io(`#include "_prelude_shadow.fragment.glsl" precision highp float;uniform vec3 u_ground_shadow_factor;in vec4 v_pos_light_view_0;in vec4 v_pos_light_view_1; #ifdef FOG in float v_fog_opacity; #endif void main() {float light=shadowed_light_factor(v_pos_light_view_0,v_pos_light_view_1,1.0/gl_FragCoord.w);vec3 shadow=mix(u_ground_shadow_factor,vec3(1.0),light); #ifdef RENDER_CUTOFF shadow=mix(vec3(1.0),shadow,cutoff_opacity(u_cutoff_params,1.0/gl_FragCoord.w)); #endif #ifdef FOG shadow=mix(shadow,vec3(1.0),v_fog_opacity); #endif #ifdef INDICATOR_CUTOUT shadow=mix(shadow,vec3(1.0),1.0-applyCutout(vec4(1.0)).r); #endif glFragColor=vec4(shadow,1.0);}`,`#include "_prelude_fog.vertex.glsl" uniform mat4 u_matrix;uniform mat4 u_light_matrix_0;uniform mat4 u_light_matrix_1;in vec2 a_pos;out vec4 v_pos_light_view_0;out vec4 v_pos_light_view_1; #ifdef FOG out float v_fog_opacity; #endif void main() {gl_Position=u_matrix*vec4(a_pos,0.0,1.0);v_pos_light_view_0=u_light_matrix_0*vec4(a_pos,0.0,1.0);v_pos_light_view_1=u_light_matrix_1*vec4(a_pos,0.0,1.0); #ifdef FOG v_fog_pos=fog_position(a_pos);v_fog_opacity=fog(v_fog_pos); #endif }`),fillExtrusionGroundEffect:io(`uniform highp float u_ao_pass;uniform highp float u_opacity;uniform highp float u_flood_light_intensity;uniform highp vec3 u_flood_light_color;uniform highp float u_attenuation;uniform sampler2D u_fb;uniform float u_fb_size; #ifdef SDF_SUBPASS in highp vec2 v_pos;in highp vec4 v_line_segment;in highp float v_flood_light_radius_tile;in highp vec2 v_ao;float line_df(highp vec2 a,highp vec2 b,highp vec2 p) {highp vec2 ba=b-a;highp vec2 pa=p-a;highp float r=clamp(dot(pa,ba)/dot(ba,ba),0.0,1.0);return length(pa-r*ba);} #ifdef FOG in highp float v_fog; #endif #endif void main() { #ifdef CLEAR_SUBPASS vec4 color=vec4(1.0); #ifdef CLEAR_FROM_TEXTURE color=texture(u_fb,gl_FragCoord.xy/vec2(u_fb_size)); #endif glFragColor=color; #else #ifdef SDF_SUBPASS highp float d=line_df(v_line_segment.xy,v_line_segment.zw,v_pos);highp float effect_radius=mix(v_flood_light_radius_tile,v_ao.y,u_ao_pass);d/=effect_radius;d=min(d,1.0);d=1.0-pow(1.0-d,u_attenuation);highp float effect_intensity=mix(u_flood_light_intensity,v_ao.x,u_ao_pass);highp float fog=1.0; #ifdef FOG fog=v_fog; #endif #ifdef RENDER_CUTOFF fog*=v_cutoff_opacity; #endif glFragColor=vec4(vec3(0.0),mix(1.0,d,effect_intensity*u_opacity*fog)); #else vec4 color=mix(vec4(u_flood_light_color,1.0),vec4(vec3(0.0),1.0),u_ao_pass); #ifdef OVERDRAW_INSPECTOR color=vec4(1.0); #endif glFragColor=color; #endif HANDLE_WIREFRAME_DEBUG; #endif }`,`#include "_prelude_fog.vertex.glsl" in highp vec4 a_pos_end;in highp float a_angular_offset_factor;in highp float a_hidden_by_landmark; #ifdef SDF_SUBPASS out highp vec2 v_pos;out highp vec4 v_line_segment;out highp float v_flood_light_radius_tile;out highp vec2 v_ao; #ifdef FOG out highp float v_fog; #endif #endif uniform highp float u_flood_light_intensity;uniform highp mat4 u_matrix;uniform highp float u_ao_pass;uniform highp float u_meter_to_tile;uniform highp float u_edge_radius;uniform highp vec2 u_ao; #pragma mapbox: define highp float flood_light_ground_radius const float TANGENT_CUTOFF=4.0;const float NORM=32767.0;void main() { #pragma mapbox: initialize highp float flood_light_ground_radius vec2 p=a_pos_end.xy;vec2 q=floor(a_pos_end.zw*0.5);vec2 start_bottom=a_pos_end.zw-q*2.0;float fl_ground_radius=flood_light_ground_radius;fl_ground_radius=abs(flood_light_ground_radius);float direction=flood_light_ground_radius < 0.0 ?-1.0 : 1.0;float flood_radius_tile=fl_ground_radius*u_meter_to_tile;vec2 v=normalize(q-p);float ao_radius=u_ao.y/3.5;float effect_radius=mix(flood_radius_tile,ao_radius,u_ao_pass)+u_edge_radius;float angular_offset_factor=a_angular_offset_factor/NORM*TANGENT_CUTOFF;float angular_offset=direction*angular_offset_factor*effect_radius;float top=1.0-start_bottom.y;float side=(0.5-start_bottom.x)*2.0;vec2 extrusion_parallel=v*side*mix(1.0,angular_offset,top);vec2 perp=vec2(v.y,-v.x);vec2 extrusion_perp=direction*perp*effect_radius*top;vec3 pos=vec3(mix(q,p,start_bottom.x),0.0);pos.xy+=extrusion_parallel+extrusion_perp; #ifdef SDF_SUBPASS v_pos=pos.xy;v_line_segment=vec4(p,q)+perp.xyxy*u_edge_radius;v_flood_light_radius_tile=flood_radius_tile;v_ao=vec2(u_ao.x,ao_radius); #ifdef FOG v_fog_pos=fog_position(pos);v_fog=1.0-fog(v_fog_pos); #endif #endif float hidden_by_landmark=0.0; #ifdef HAS_CENTROID hidden_by_landmark=a_hidden_by_landmark; #endif float isFloodlit=float(fl_ground_radius > 0.0 && u_flood_light_intensity > 0.0);float hidden=mix(1.0-isFloodlit,isFloodlit,u_ao_pass);hidden+=hidden_by_landmark;gl_Position=mix(u_matrix*vec4(pos,1.0),AWAY,float(hidden > 0.0)); #ifdef RENDER_CUTOFF v_cutoff_opacity=cutoff_opacity(u_cutoff_params,gl_Position.z); #endif }`),hillshadePrepare:io(`precision highp float;uniform sampler2D u_image;in vec2 v_pos;uniform vec2 u_dimension;uniform float u_zoom;float getElevation(vec2 coord) {return texture(u_image,coord).r/4.0;}void main() {vec2 epsilon=1.0/u_dimension;float a=getElevation(v_pos+vec2(-epsilon.x,-epsilon.y));float b=getElevation(v_pos+vec2(0,-epsilon.y));float c=getElevation(v_pos+vec2(epsilon.x,-epsilon.y));float d=getElevation(v_pos+vec2(-epsilon.x,0));float e=getElevation(v_pos+vec2(epsilon.x,0));float f=getElevation(v_pos+vec2(-epsilon.x,epsilon.y));float g=getElevation(v_pos+vec2(0,epsilon.y));float h=getElevation(v_pos+vec2(epsilon.x,epsilon.y));float exaggerationFactor=u_zoom < 2.0 ? 0.4 : u_zoom < 4.5 ? 0.35 : 0.3;float exaggeration=u_zoom < 15.0 ? (u_zoom-15.0)*exaggerationFactor : 0.0;vec2 deriv=vec2( (c+e+e+h)-(a+d+d+f),(f+g+g+h)-(a+b+b+c) )/pow(2.0,exaggeration+(19.2562-u_zoom));glFragColor=clamp(vec4( deriv.x/2.0+0.5,deriv.y/2.0+0.5,1.0,1.0),0.0,1.0);}`,"uniform mat4 u_matrix;uniform vec2 u_dimension;in vec2 a_pos;in vec2 a_texture_pos;out vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_texture_pos/8192.0)*scale+epsilon;}"),hillshade:io(`#include "_prelude_fog.fragment.glsl" #include "_prelude_lighting.glsl" uniform sampler2D u_image;in vec2 v_pos;uniform vec2 u_latrange;uniform vec2 u_light;uniform vec4 u_shadow;uniform vec4 u_highlight;uniform vec4 u_accent;uniform float u_emissive_strength;void main() {vec4 pixel=texture(u_image,v_pos);vec2 deriv=((pixel.rg*2.0)-1.0);float scaleFactor=cos(radians((u_latrange[0]-u_latrange[1])*(1.0-v_pos.y)+u_latrange[1]));float slope=atan(1.25*length(deriv)/scaleFactor);float aspect=deriv.x !=0.0 ? atan(deriv.y,-deriv.x) : PI/2.0*(deriv.y > 0.0 ? 1.0 :-1.0);float intensity=u_light.x;float azimuth=u_light.y+PI;float base=1.875-intensity*1.75;float maxValue=0.5*PI;float scaledSlope=intensity !=0.5 ? ((pow(base,slope)-1.0)/(pow(base,maxValue)-1.0))*maxValue : slope;float accent=cos(scaledSlope);vec4 accent_color=(1.0-accent)*u_accent*clamp(intensity*2.0,0.0,1.0);float shade=abs(mod((aspect+azimuth)/PI+0.5,2.0)-1.0);vec4 shade_color=mix(u_shadow,u_highlight,shade)*sin(scaledSlope)*clamp(intensity*2.0,0.0,1.0);glFragColor=accent_color*(1.0-shade_color.a)+shade_color; #ifdef LIGHTING_3D_MODE glFragColor=apply_lighting_with_emission_ground(glFragColor,u_emissive_strength); #endif #ifdef FOG glFragColor=fog_dither(fog_apply_premultiplied(glFragColor,v_fog_pos)); #endif #ifdef OVERDRAW_INSPECTOR glFragColor=vec4(1.0); #endif HANDLE_WIREFRAME_DEBUG;}`,`#include "_prelude_fog.vertex.glsl" uniform mat4 u_matrix;in vec2 a_pos;in vec2 a_texture_pos;out vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=a_texture_pos/8192.0; #ifdef FOG v_fog_pos=fog_position(a_pos); #endif }`),line:io(`#include "_prelude_fog.fragment.glsl" #include "_prelude_lighting.glsl" uniform lowp float u_device_pixel_ratio;uniform float u_alpha_discard_threshold;uniform highp vec2 u_trim_offset;in vec2 v_width2;in vec2 v_normal;in float v_gamma_scale;in highp vec4 v_uv; #ifdef RENDER_LINE_DASH uniform sampler2D u_dash_image;in vec2 v_tex; #endif #ifdef RENDER_LINE_GRADIENT uniform sampler2D u_gradient_image; #endif float luminance(vec3 c) {return (c.r+c.r+c.b+c.g+c.g+c.g)*0.1667;}uniform float u_emissive_strength; #pragma mapbox: define highp vec4 color #pragma mapbox: define lowp float floorwidth #pragma mapbox: define lowp vec4 dash #pragma mapbox: define lowp float blur #pragma mapbox: define lowp float opacity #pragma mapbox: define lowp float border_width #pragma mapbox: define lowp vec4 border_color float linearstep(float edge0,float edge1,float x) {return clamp((x-edge0)/(edge1-edge0),0.0,1.0);}void main() { #pragma mapbox: initialize highp vec4 color #pragma mapbox: initialize lowp float floorwidth #pragma mapbox: initialize lowp vec4 dash #pragma mapbox: initialize lowp float blur #pragma mapbox: initialize lowp float opacity #pragma mapbox: initialize lowp float border_width #pragma mapbox: initialize lowp vec4 border_color float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0); #ifdef RENDER_LINE_DASH float sdfdist=texture(u_dash_image,v_tex).r;float sdfgamma=1.0/(2.0*u_device_pixel_ratio)/dash.z;alpha*=linearstep(0.5-sdfgamma/floorwidth,0.5+sdfgamma/floorwidth,sdfdist); #endif highp vec4 out_color; #ifdef RENDER_LINE_GRADIENT out_color=texture(u_gradient_image,v_uv.xy); #else out_color=color; #endif float trimmed=1.0; #ifdef RENDER_LINE_TRIM_OFFSET highp float start=v_uv[2];highp float end=v_uv[3];highp float trim_start=u_trim_offset[0];highp float trim_end=u_trim_offset[1];highp float line_progress=(start+(v_uv.x)*(end-start));if (trim_end > trim_start) {if (line_progress <=trim_end && line_progress >=trim_start) {out_color=vec4(0,0,0,0);trimmed=0.0;}} #endif if (u_alpha_discard_threshold !=0.0) {if (alpha < u_alpha_discard_threshold) {discard;}} #ifdef RENDER_LINE_BORDER float edgeBlur=(border_width+1.0/u_device_pixel_ratio);float alpha2=clamp(min(dist-(v_width2.t-edgeBlur),v_width2.s-dist)/edgeBlur,0.0,1.0);if (alpha2 < 1.) {float smoothAlpha=smoothstep(0.6,1.0,alpha2);if (border_color.a==0.0) { float Y=(out_color.a > 0.01) ? luminance(out_color.rgb/out_color.a) : 1.;float adjustment=(Y > 0.) ? 0.5/Y : 0.45;if (out_color.a > 0.25 && Y < 0.25) {vec3 borderColor=(Y > 0.) ? out_color.rgb : vec3(1,1,1)*out_color.a;out_color.rgb=out_color.rgb+borderColor*(adjustment*(1.0-smoothAlpha));} else {out_color.rgb*=(0.6 +0.4*smoothAlpha);}} else {out_color.rgb=mix(border_color.rgb*border_color.a*trimmed,out_color.rgb,smoothAlpha);}} #endif #ifdef LIGHTING_3D_MODE out_color=apply_lighting_with_emission_ground(out_color,u_emissive_strength); #endif #ifdef FOG out_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos)); #endif out_color*=(alpha*opacity); #ifdef INDICATOR_CUTOUT out_color=applyCutout(out_color); #endif glFragColor=out_color; #ifdef OVERDRAW_INSPECTOR glFragColor=vec4(1.0); #endif HANDLE_WIREFRAME_DEBUG;}`,`#include "_prelude_fog.vertex.glsl" #define EXTRUDE_SCALE 0.015873016 in vec2 a_pos_normal;in vec4 a_data; #if defined(RENDER_LINE_GRADIENT) || defined(RENDER_LINE_TRIM_OFFSET) in highp vec4 a_packed; #endif #ifdef RENDER_LINE_DASH in float a_linesofar; #endif uniform mat4 u_matrix;uniform mat2 u_pixels_to_tile_units;uniform vec2 u_units_to_pixels;uniform lowp float u_device_pixel_ratio;out vec2 v_normal;out vec2 v_width2;out float v_gamma_scale;out highp vec4 v_uv; #ifdef RENDER_LINE_DASH uniform vec2 u_texsize;uniform float u_tile_units_to_pixels;out vec2 v_tex; #endif #ifdef RENDER_LINE_GRADIENT uniform float u_image_height; #endif #pragma mapbox: define highp vec4 color #pragma mapbox: define lowp float floorwidth #pragma mapbox: define lowp vec4 dash #pragma mapbox: define lowp float blur #pragma mapbox: define lowp float opacity #pragma mapbox: define mediump float gapwidth #pragma mapbox: define lowp float offset #pragma mapbox: define mediump float width #pragma mapbox: define lowp float border_width #pragma mapbox: define lowp vec4 border_color void main() { #pragma mapbox: initialize highp vec4 color #pragma mapbox: initialize lowp float floorwidth #pragma mapbox: initialize lowp vec4 dash #pragma mapbox: initialize lowp float blur #pragma mapbox: initialize lowp float opacity #pragma mapbox: initialize mediump float gapwidth #pragma mapbox: initialize lowp float offset #pragma mapbox: initialize mediump float width #pragma mapbox: initialize lowp float border_width #pragma mapbox: initialize lowp vec4 border_color float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*EXTRUDE_SCALE;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*EXTRUDE_SCALE*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist*u_pixels_to_tile_units,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2*u_pixels_to_tile_units,0.0,1.0)+projected_extrude; #ifndef RENDER_TO_TEXTURE float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective; #else v_gamma_scale=1.0; #endif #if defined(RENDER_LINE_GRADIENT) || defined(RENDER_LINE_TRIM_OFFSET) float a_uv_x=a_packed[0];float a_split_index=a_packed[1];highp float a_clip_start=a_packed[2];highp float a_clip_end=a_packed[3]; #ifdef RENDER_LINE_GRADIENT highp float texel_height=1.0/u_image_height;highp float half_texel_height=0.5*texel_height;v_uv=vec4(a_uv_x,a_split_index*texel_height-half_texel_height,a_clip_start,a_clip_end); #else v_uv=vec4(a_uv_x,0.0,a_clip_start,a_clip_end); #endif #endif #ifdef RENDER_LINE_DASH float scale=dash.z==0.0 ? 0.0 : u_tile_units_to_pixels/dash.z;float height=dash.y;v_tex=vec2(a_linesofar*scale/floorwidth,(-normal.y*height+dash.x+0.5)/u_texsize.y); #endif v_width2=vec2(outset,inset); #ifdef FOG v_fog_pos=fog_position(pos); #endif }`),linePattern:io(`#include "_prelude_fog.fragment.glsl" #include "_prelude_lighting.glsl" uniform lowp float u_device_pixel_ratio;uniform vec2 u_texsize;uniform mediump float u_tile_units_to_pixels;uniform highp vec2 u_trim_offset;uniform sampler2D u_image;in vec2 v_normal;in vec2 v_width2;in float v_linesofar;in float v_gamma_scale;in float v_width; #ifdef RENDER_LINE_TRIM_OFFSET in highp vec4 v_uv; #endif #ifdef LINE_JOIN_NONE in vec2 v_pattern_data; #endif #pragma mapbox: define lowp vec4 pattern #pragma mapbox: define lowp float pixel_ratio #pragma mapbox: define lowp float blur #pragma mapbox: define lowp float opacity void main() { #pragma mapbox: initialize mediump vec4 pattern #pragma mapbox: initialize lowp float pixel_ratio #pragma mapbox: initialize lowp float blur #pragma mapbox: initialize lowp float opacity vec2 pattern_tl=pattern.xy;vec2 pattern_br=pattern.zw;vec2 display_size=(pattern_br-pattern_tl)/pixel_ratio;vec2 pattern_size=vec2(display_size.x/u_tile_units_to_pixels,display_size.y);float aspect=display_size.y/v_width;float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float pattern_x=v_linesofar/pattern_size.x*aspect;float x=mod(pattern_x,1.0);float y=0.5*v_normal.y+0.5;vec2 texel_size=1.0/u_texsize;vec2 pos=mix(pattern_tl*texel_size-texel_size,pattern_br*texel_size+texel_size,vec2(x,y));vec2 lod_pos=mix(pattern_tl*texel_size-texel_size,pattern_br*texel_size+texel_size,vec2(pattern_x,y));vec4 color=textureLodCustom(u_image,pos,lod_pos); #ifdef RENDER_LINE_TRIM_OFFSET highp float start=v_uv[2];highp float end=v_uv[3];highp float trim_start=u_trim_offset[0];highp float trim_end=u_trim_offset[1];highp float line_progress=(start+(v_uv.x)*(end-start));if (trim_end > trim_start) {if (line_progress <=trim_end && line_progress >=trim_start) {color=vec4(0,0,0,0);}} #endif #ifdef LINE_JOIN_NONE float pattern_len=pattern_size.x/aspect;float segment_phase=pattern_len-mod((v_linesofar-v_pattern_data.x),pattern_len);float visible_start=segment_phase-step(pattern_len*0.5,segment_phase)*pattern_len;float visible_end=floor((v_pattern_data.y-segment_phase)/pattern_len)*pattern_len+segment_phase;visible_end+=step(pattern_len*0.5,v_pattern_data.y-visible_end)*pattern_len;if (v_pattern_data.x < visible_start || v_pattern_data.x >=visible_end) {color=vec4(0.0);} #endif #ifdef LIGHTING_3D_MODE color=apply_lighting_ground(color); #endif #ifdef FOG color=fog_dither(fog_apply_premultiplied(color,v_fog_pos)); #endif color*=(alpha*opacity); #ifdef INDICATOR_CUTOUT color=applyCutout(color); #endif glFragColor=color; #ifdef OVERDRAW_INSPECTOR glFragColor=vec4(1.0); #endif HANDLE_WIREFRAME_DEBUG;}`,`#include "_prelude_fog.vertex.glsl" #define scale 0.015873016 in vec2 a_pos_normal;in vec4 a_data; #ifdef RENDER_LINE_TRIM_OFFSET in highp vec4 a_packed; #endif in float a_linesofar; #ifdef LINE_JOIN_NONE in vec2 a_pattern_data;out vec2 v_pattern_data; #endif uniform mat4 u_matrix;uniform mediump float u_tile_units_to_pixels;uniform vec2 u_units_to_pixels;uniform mat2 u_pixels_to_tile_units;uniform lowp float u_device_pixel_ratio;out vec2 v_normal;out vec2 v_width2;out float v_linesofar;out float v_gamma_scale;out float v_width; #ifdef RENDER_LINE_TRIM_OFFSET out highp vec4 v_uv; #endif #pragma mapbox: define lowp float blur #pragma mapbox: define lowp float opacity #pragma mapbox: define lowp float offset #pragma mapbox: define mediump float gapwidth #pragma mapbox: define mediump float width #pragma mapbox: define lowp float floorwidth #pragma mapbox: define lowp vec4 pattern #pragma mapbox: define lowp float pixel_ratio void main() { #pragma mapbox: initialize lowp float blur #pragma mapbox: initialize lowp float opacity #pragma mapbox: initialize lowp float offset #pragma mapbox: initialize mediump float gapwidth #pragma mapbox: initialize mediump float width #pragma mapbox: initialize lowp float floorwidth #pragma mapbox: initialize mediump vec4 pattern #pragma mapbox: initialize lowp float pixel_ratio float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist*u_pixels_to_tile_units,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2*u_pixels_to_tile_units,0.0,1.0)+projected_extrude; #ifndef RENDER_TO_TEXTURE float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective; #else v_gamma_scale=1.0; #endif #ifdef RENDER_LINE_TRIM_OFFSET float a_uv_x=a_packed[0];highp float a_clip_start=a_packed[2];highp float a_clip_end=a_packed[3];v_uv=vec4(a_uv_x,0.0,a_clip_start,a_clip_end); #endif v_linesofar=a_linesofar;v_width2=vec2(outset,inset);v_width=floorwidth; #ifdef LINE_JOIN_NONE v_width+=ANTIALIASING;float offset_sign=(fract(a_pattern_data.x)-0.5)*4.0;float line_progress_offset=offset_sign*v_width*0.5/u_tile_units_to_pixels;v_linesofar+=line_progress_offset;v_pattern_data=vec2(a_pattern_data.x+line_progress_offset,a_pattern_data.y); #endif #ifdef FOG v_fog_pos=fog_position(pos); #endif }`),raster:io(`#include "_prelude_fog.fragment.glsl" #include "_prelude_lighting.glsl" #include "_prelude_raster_array.glsl" uniform float u_fade_t;uniform float u_opacity;uniform highp float u_raster_elevation;uniform highp float u_zoom_transition;in vec2 v_pos0;in vec2 v_pos1;in float v_depth; #ifdef PROJECTION_GLOBE_VIEW in float v_split_fade; #endif uniform float u_brightness_low;uniform float u_brightness_high;uniform float u_saturation_factor;uniform float u_contrast_factor;uniform vec3 u_spin_weights;uniform float u_emissive_strength; #ifndef RASTER_ARRAY uniform sampler2D u_image0;uniform sampler2D u_image1; #endif #ifdef RASTER_COLOR uniform sampler2D u_color_ramp;uniform highp vec4 u_colorization_mix;uniform highp float u_colorization_offset;uniform vec2 u_texture_res; #endif void main() {vec4 color0,color1,color;vec2 value; #ifdef RASTER_COLOR #ifdef RASTER_ARRAY #ifdef RASTER_ARRAY_LINEAR value=mix( raTexture2D_image0_linear(v_pos0,u_texture_res,u_colorization_mix,u_colorization_offset),raTexture2D_image1_linear(v_pos1,u_texture_res,u_colorization_mix,u_colorization_offset),u_fade_t ); #else value=mix( raTexture2D_image0_nearest(v_pos0,u_texture_res,u_colorization_mix,u_colorization_offset),raTexture2D_image1_nearest(v_pos1,u_texture_res,u_colorization_mix,u_colorization_offset),u_fade_t ); #endif if (value.y > 0.0) value.x/=value.y; #else color=mix(texture(u_image0,v_pos0),texture(u_image1,v_pos1),u_fade_t);value=vec2(u_colorization_offset+dot(color.rgb,u_colorization_mix.rgb),color.a); #endif color=texture(u_color_ramp,vec2(value.x,0.5));if (color.a > 0.0) color.rgb/=color.a;color.a*=value.y; #else color0=texture(u_image0,v_pos0);color1=texture(u_image1,v_pos1);if (color0.a > 0.0) color0.rgb/=color0.a;if (color1.a > 0.0) color1.rgb/=color1.a;color=mix(color0,color1,u_fade_t); #endif color.a*=u_opacity; #ifdef GLOBE_POLES color.a*=1.0-smoothstep(0.0,0.05,u_zoom_transition); #endif vec3 rgb=color.rgb;rgb=vec3( dot(rgb,u_spin_weights.xyz),dot(rgb,u_spin_weights.zxy),dot(rgb,u_spin_weights.yzx));float average=(color.r+color.g+color.b)/3.0;rgb+=(average-rgb)*u_saturation_factor;rgb=(rgb-0.5)*u_contrast_factor+0.5;vec3 u_high_vec=vec3(u_brightness_low,u_brightness_low,u_brightness_low);vec3 u_low_vec=vec3(u_brightness_high,u_brightness_high,u_brightness_high);vec3 out_color=mix(u_high_vec,u_low_vec,rgb); #ifdef LIGHTING_3D_MODE out_color=apply_lighting_with_emission_ground(vec4(out_color,1.0),u_emissive_strength).rgb; #endif #ifdef FOG highp float fog_limit_high_meters=1000000.0;highp float fog_limit_low_meters=600000.0;float fog_limit=1.0-smoothstep(fog_limit_low_meters,fog_limit_high_meters,u_raster_elevation);out_color=fog_dither(fog_apply(out_color,v_fog_pos,fog_limit)); #endif glFragColor=vec4(out_color*color.a,color.a); #ifdef PROJECTION_GLOBE_VIEW glFragColor*=mix(1.0,1.0-smoothstep(0.0,0.05,u_zoom_transition),smoothstep(0.8,0.9,v_split_fade)); #endif #ifdef RENDER_CUTOFF glFragColor=glFragColor*cutoff_opacity(u_cutoff_params,v_depth); #endif #ifdef OVERDRAW_INSPECTOR glFragColor=vec4(1.0); #endif HANDLE_WIREFRAME_DEBUG;}`,`#include "_prelude_fog.vertex.glsl" uniform mat4 u_matrix;uniform mat4 u_normalize_matrix;uniform mat4 u_globe_matrix;uniform mat4 u_merc_matrix;uniform mat3 u_grid_matrix;uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform vec2 u_perspective_transform;uniform vec2 u_texture_offset;uniform float u_raster_elevation;uniform float u_zoom_transition;uniform vec2 u_merc_center; #define GLOBE_UPSCALE GLOBE_RADIUS/6371008.8 #ifdef GLOBE_POLES in vec3 a_globe_pos;in vec2 a_uv; #else in vec2 a_pos;in vec2 a_texture_pos; #endif out vec2 v_pos0;out vec2 v_pos1;out float v_depth; #ifdef PROJECTION_GLOBE_VIEW out float v_split_fade; #endif void main() {vec2 uv; #ifdef GLOBE_POLES vec3 globe_pos=a_globe_pos;globe_pos+=normalize(globe_pos)*u_raster_elevation*GLOBE_UPSCALE;gl_Position=u_matrix*u_globe_matrix*vec4(globe_pos ,1.0);uv=a_uv; #ifdef FOG v_fog_pos=fog_position((u_normalize_matrix*vec4(a_globe_pos,1.0)).xyz); #endif #else float w=1.0+dot(a_texture_pos,u_perspective_transform);uv=a_texture_pos/8192.0; #ifdef PROJECTION_GLOBE_VIEW vec3 decomposed_pos_and_skirt=decomposeToPosAndSkirt(a_pos);vec3 latLng=u_grid_matrix*vec3(decomposed_pos_and_skirt.xy,1.0);vec3 globe_pos=latLngToECEF(latLng.xy);globe_pos+=normalize(globe_pos)*u_raster_elevation*GLOBE_UPSCALE;vec4 globe_world_pos=u_globe_matrix*vec4(globe_pos,1.0);vec4 merc_world_pos=vec4(0.0);float mercatorY=mercatorYfromLat(latLng[0]);float mercatorX=mercatorXfromLng(latLng[1]); v_split_fade=0.0;if (u_zoom_transition > 0.0) {vec2 merc_pos=vec2(mercatorX,mercatorY);merc_world_pos=vec4(merc_pos,u_raster_elevation,1.0);merc_world_pos.xy-=u_merc_center;merc_world_pos.x=wrap(merc_world_pos.x,-0.5,0.5);merc_world_pos=u_merc_matrix*merc_world_pos;float opposite_merc_center=mod(u_merc_center.x+0.5,1.0);float dist_from_poles=(abs(mercatorY-0.5)*2.0);float range=0.1;v_split_fade=abs(opposite_merc_center-mercatorX);v_split_fade=clamp(1.0-v_split_fade,0.0,1.0);v_split_fade=max(smoothstep(1.0-range,1.0,dist_from_poles),max(smoothstep(1.0-range,1.0,v_split_fade),smoothstep(1.0-range,1.0,1.0-v_split_fade)));}float tiles=u_grid_matrix[0][2];if (tiles > 0.0) {float idx=u_grid_matrix[1][2];float idy=u_grid_matrix[2][2];float uvY=mercatorY*tiles-idy;float uvX=mercatorX*tiles-idx;uv=vec2(uvX,uvY);}vec4 interpolated_pos=vec4(mix(globe_world_pos.xyz,merc_world_pos.xyz,u_zoom_transition)*w,w);gl_Position=u_matrix*interpolated_pos; #ifdef FOG v_fog_pos=fog_position((u_normalize_matrix*vec4(globe_pos,1.0)).xyz); #endif #else gl_Position=u_matrix*vec4(a_pos*w,u_raster_elevation*w,w); #ifdef FOG v_fog_pos=fog_position(a_pos); #endif #endif #endif v_pos0=uv;v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;v_pos0=u_texture_offset.x+u_texture_offset.y*v_pos0;v_pos1=u_texture_offset.x+u_texture_offset.y*v_pos1; #ifdef RENDER_CUTOFF v_depth=gl_Position.z; #endif }`),rasterParticle:io(`#include "_prelude_fog.fragment.glsl" #include "_prelude_lighting.glsl" uniform float u_fade_t;uniform float u_opacity;uniform highp float u_raster_elevation;in vec2 v_pos0;in vec2 v_pos1;uniform sampler2D u_image0;uniform sampler2D u_image1;void main() {vec4 color0,color1,color;color0=texture(u_image0,v_pos0);color1=texture(u_image1,v_pos1);if (color0.a > 0.0) color0.rgb/=color0.a;if (color1.a > 0.0) color1.rgb/=color1.a;color=mix(color0,color1,u_fade_t);color.a*=u_opacity;vec3 out_color=color.rgb; #ifdef LIGHTING_3D_MODE out_color=apply_lighting_with_emission_ground(vec4(out_color,1.0),0.0).rgb; #endif #ifdef FOG highp float fog_limit_high_meters=1000000.0;highp float fog_limit_low_meters=600000.0;float fog_limit=1.0-smoothstep(fog_limit_low_meters,fog_limit_high_meters,u_raster_elevation);out_color=fog_dither(fog_apply(out_color,v_fog_pos,fog_limit)); #endif glFragColor=vec4(out_color*color.a,color.a); #ifdef OVERDRAW_INSPECTOR glFragColor=vec4(1.0); #endif HANDLE_WIREFRAME_DEBUG;}`,`#include "_prelude_fog.vertex.glsl" uniform mat4 u_matrix;uniform mat4 u_normalize_matrix;uniform mat4 u_globe_matrix;uniform mat4 u_merc_matrix;uniform mat3 u_grid_matrix;uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform float u_raster_elevation;uniform float u_zoom_transition;uniform vec2 u_merc_center; #define GLOBE_UPSCALE GLOBE_RADIUS/6371008.8 in vec2 a_pos;in vec2 a_texture_pos;out vec2 v_pos0;out vec2 v_pos1;void main() {float w=1.0;vec2 uv; #ifdef PROJECTION_GLOBE_VIEW vec3 decomposed_pos_and_skirt=decomposeToPosAndSkirt(a_pos);vec3 latLng=u_grid_matrix*vec3(decomposed_pos_and_skirt.xy,1.0);float mercatorY=mercatorYfromLat(latLng[0]);float mercatorX=mercatorXfromLng(latLng[1]);float tiles=u_grid_matrix[0][2];float idx=u_grid_matrix[1][2];float idy=u_grid_matrix[2][2];float uvX=mercatorX*tiles-idx;float uvY=mercatorY*tiles-idy;uv=vec2(uvX,uvY);vec3 globe_pos=latLngToECEF(latLng.xy);globe_pos+=normalize(globe_pos)*u_raster_elevation*GLOBE_UPSCALE;vec4 globe_world_pos=u_globe_matrix*vec4(globe_pos,1.0);vec4 merc_world_pos=vec4(0.0);if (u_zoom_transition > 0.0) {vec2 merc_pos=vec2(mercatorX,mercatorY);merc_world_pos=vec4(merc_pos,u_raster_elevation,1.0);merc_world_pos.xy-=u_merc_center;merc_world_pos.x=wrap(merc_world_pos.x,-0.5,0.5);merc_world_pos=u_merc_matrix*merc_world_pos;}vec4 interpolated_pos=vec4(mix(globe_world_pos.xyz,merc_world_pos.xyz,u_zoom_transition)*w,w);gl_Position=u_matrix*interpolated_pos; #ifdef FOG v_fog_pos=fog_position((u_normalize_matrix*vec4(globe_pos,1.0)).xyz); #endif #else uv=a_texture_pos/8192.0;gl_Position=u_matrix*vec4(a_pos*w,u_raster_elevation*w,w); #ifdef FOG v_fog_pos=fog_position(a_pos); #endif #endif v_pos0=uv;v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;}`),rasterParticleDraw:io("uniform sampler2D u_color_ramp;in float v_particle_speed;void main() {glFragColor=texture(u_color_ramp,vec2(v_particle_speed,0.5));}",`#include "_prelude_raster_particle.glsl" in float a_index;uniform sampler2D u_particle_texture;uniform float u_particle_texture_side_len;uniform vec2 u_tile_offset;out float v_particle_speed;void main() {ivec2 pixel_coord=ivec2( mod(a_index,u_particle_texture_side_len),a_index/u_particle_texture_side_len);vec4 pixel=texelFetch(u_particle_texture,pixel_coord,0);vec2 pos=unpack_pos_from_rgba(pixel)+u_tile_offset;vec2 tex_coord=fract(pos);vec2 velocity=lookup_velocity(tex_coord);if (velocity==INVALID_VELOCITY) {gl_Position=AWAY;v_particle_speed=0.0;} else {gl_Position=vec4(2.0*pos-vec2(1.0),0.0,1.0);v_particle_speed=length(velocity);}gl_PointSize=1.0;}`),rasterParticleTexture:io("uniform sampler2D u_texture;uniform float u_opacity;in vec2 v_tex_pos;void main() {vec4 color=texture(u_texture,v_tex_pos);glFragColor=vec4(floor(255.0*color*u_opacity)/255.0);}","in vec2 a_pos;out vec2 v_tex_pos;void main() {vec2 uv=0.5*a_pos+vec2(0.5);v_tex_pos=uv;gl_Position=vec4(a_pos,0.0,1.0);}"),rasterParticleUpdate:io(`#include "_prelude_raster_particle.glsl" uniform sampler2D u_particle_texture;uniform mediump float u_particle_texture_side_len;uniform mediump float u_speed_factor;uniform highp float u_reset_rate;uniform highp float u_rand_seed;in highp vec2 v_tex_coord;const highp vec3 rand_constants=vec3(12.9898,78.233,4375.85453);highp float rand(const highp vec2 co) {highp float t=dot(rand_constants.xy,co);return fract(sin(t)*(rand_constants.z+t));}void main() {ivec2 pixel_coord=ivec2(v_tex_coord*u_particle_texture_side_len);highp vec4 pixel=texelFetch(u_particle_texture,pixel_coord,0);highp vec2 pos=unpack_pos_from_rgba(pixel);highp vec2 velocity=lookup_velocity(clamp(pos,0.0,1.0));highp vec2 dp=velocity==INVALID_VELOCITY ? vec2(0) : velocity*u_speed_factor;pos=pos+dp;highp vec2 seed=(pos+v_tex_coord)*u_rand_seed;highp vec2 random_pos=vec2(rand(seed+1.3),rand(seed+2.1));highp float speed=velocity==INVALID_VELOCITY ? 0.0 : length(velocity);highp float reset_rate_bump=speed*u_reset_rate;highp vec2 particle_pos_min=-u_particle_pos_offset;highp vec2 particle_pos_max=vec2(1.0)+u_particle_pos_offset;highp vec2 pos_drop_rate=vec2(1.0)-step(particle_pos_min,pos)+step(particle_pos_max,pos);highp float drop_rate=max(u_reset_rate+reset_rate_bump,length(pos_drop_rate));highp float drop=step(1.0-drop_rate,rand(seed));highp vec2 next_pos=mix(pos,random_pos,drop);glFragColor=pack_pos_to_rgba(next_pos);}`,"in vec2 a_pos;out vec2 v_tex_coord;void main() {v_tex_coord=0.5*(a_pos+vec2(1.0));gl_Position=vec4(a_pos,0.0,1.0);}"),symbolIcon:io(`#include "_prelude_lighting.glsl" uniform sampler2D u_texture; #ifdef ICON_TRANSITION uniform float u_icon_transition; #endif in float v_fade_opacity;in vec2 v_tex_a; #ifdef ICON_TRANSITION in vec2 v_tex_b; #endif #ifdef COLOR_ADJUSTMENT uniform mat4 u_color_adj_mat; #endif #pragma mapbox: define lowp float opacity #pragma mapbox: define lowp float emissive_strength void main() { #pragma mapbox: initialize lowp float opacity #pragma mapbox: initialize lowp float emissive_strength lowp float alpha=opacity*v_fade_opacity;vec4 out_color; #ifdef ICON_TRANSITION vec4 a=texture(u_texture,v_tex_a)*(1.0-u_icon_transition);vec4 b=texture(u_texture,v_tex_b)*u_icon_transition;out_color=(a+b); #else out_color=texture(u_texture,v_tex_a); #endif #ifdef COLOR_ADJUSTMENT out_color=u_color_adj_mat*out_color; #endif out_color*=alpha; #ifdef LIGHTING_3D_MODE out_color=apply_lighting_with_emission_ground(out_color,emissive_strength); #endif glFragColor=out_color; #ifdef OVERDRAW_INSPECTOR glFragColor=vec4(1.0); #endif HANDLE_WIREFRAME_DEBUG;}`,`#include "_prelude_terrain.vertex.glsl" in vec4 a_pos_offset;in vec4 a_tex_size;in vec4 a_pixeloffset;in vec4 a_projected_pos;in float a_fade_opacity; #ifdef Z_OFFSET in float a_z_offset; #endif #ifdef PROJECTION_GLOBE_VIEW in vec3 a_globe_anchor;in vec3 a_globe_normal; #endif #ifdef ICON_TRANSITION in vec2 a_texb; #endif uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform highp float u_camera_to_center_distance;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform float u_fade_change;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform vec2 u_texsize;uniform vec3 u_up_vector; #ifdef PROJECTION_GLOBE_VIEW uniform vec3 u_tile_id;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_camera_forward;uniform float u_zoom_transition;uniform vec3 u_ecef_origin;uniform mat4 u_tile_matrix; #endif out vec2 v_tex_a; #ifdef ICON_TRANSITION out vec2 v_tex_b; #endif out float v_fade_opacity; #pragma mapbox: define lowp float opacity #pragma mapbox: define lowp float emissive_strength void main() { #pragma mapbox: initialize lowp float opacity #pragma mapbox: initialize lowp float emissive_strength vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_tex_size.xy;vec2 a_size=a_tex_size.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;vec2 a_min_font_scale=a_pixeloffset.zw/256.0;highp float segment_angle=-a_projected_pos[3];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec2 tile_anchor=a_pos;float e=elevation(tile_anchor); #ifdef Z_OFFSET e+=a_z_offset; #endif vec3 h=elevationVector(tile_anchor)*e;float globe_occlusion_fade;vec3 world_pos;vec3 mercator_pos; #ifdef PROJECTION_GLOBE_VIEW mercator_pos=mercator_tile_position(u_inv_rot_matrix,tile_anchor,u_tile_id,u_merc_center);world_pos=mix_globe_mercator(a_globe_anchor+h,mercator_pos,u_zoom_transition);vec4 ecef_point=u_tile_matrix*vec4(world_pos,1.0);vec3 origin_to_point=ecef_point.xyz-u_ecef_origin;globe_occlusion_fade=dot(origin_to_point,u_camera_forward) >=0.0 ? 0.0 : 1.0; #else world_pos=vec3(tile_anchor,0)+h;globe_occlusion_fade=1.0; #endif vec4 projected_point=u_matrix*vec4(world_pos,1);highp float camera_to_anchor_distance=projected_point.w;highp float distance_ratio=u_pitch_with_map ? camera_to_anchor_distance/u_camera_to_center_distance : u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp( 0.5+0.5*distance_ratio,0.0,1.5);size*=perspective_ratio;float font_scale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjected_point; #ifdef PROJECTION_GLOBE_VIEW vec3 displacement=vec3(a_globe_normal.z,0,-a_globe_normal.x);offsetProjected_point=u_matrix*vec4(a_globe_anchor+displacement,1); #else offsetProjected_point=u_matrix*vec4(tile_anchor+vec2(1,0),0,1); #endif vec2 a=projected_point.xy/projected_point.w;vec2 b=offsetProjected_point.xy/offsetProjected_point.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}vec4 projected_pos; #ifdef PROJECTION_GLOBE_VIEW vec3 proj_pos=mix_globe_mercator(a_projected_pos.xyz+h,mercator_pos,u_zoom_transition);projected_pos=u_label_plane_matrix*vec4(proj_pos,1.0); #else projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,h.z,1.0); #endif highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);float z=0.0;vec2 offset=rotation_matrix*(a_offset/32.0*max(a_min_font_scale,font_scale)+a_pxoffset/16.0); #ifdef TERRAIN #ifdef PITCH_WITH_MAP_TERRAIN vec4 tile_pos=u_label_plane_matrix_inv*vec4(a_projected_pos.xy+offset,0.0,1.0);z=elevation(tile_pos.xy); #endif #endif float occlusion_fade=occlusionFade(projected_point)*globe_occlusion_fade;float projection_transition_fade=1.0; #if defined(PROJECTED_POS_ON_VIEWPORT) && defined(PROJECTION_GLOBE_VIEW) projection_transition_fade=1.0-step(EPSILON,u_zoom_transition); #endif vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float out_fade_opacity=max(0.0,min(occlusion_fade,fade_opacity[0]+fade_change))*projection_transition_fade;float alpha=opacity*out_fade_opacity;float hidden=float(alpha==0.0 || projected_point.w <=0.0 || occlusion_fade==0.0); #ifdef PROJECTION_GLOBE_VIEW vec3 xAxis=u_pitch_with_map ? normalize(cross(a_globe_normal,u_up_vector)) : vec3(1,0,0);vec3 yAxis=u_pitch_with_map ? normalize(cross(a_globe_normal,xAxis)) : vec3(0,1,0);gl_Position=mix(u_coord_matrix*vec4(projected_pos.xyz/projected_pos.w+xAxis*offset.x+yAxis*offset.y,1.0),AWAY,hidden); #else gl_Position=mix(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+offset,z,1.0),AWAY,hidden); #endif v_tex_a=a_tex/u_texsize; #ifdef ICON_TRANSITION v_tex_b=a_texb/u_texsize; #endif v_fade_opacity=out_fade_opacity;}`),symbolSDF:io(`#include "_prelude_lighting.glsl" #define SDF_PX 8.0 uniform sampler2D u_texture;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;uniform bool u_is_text;uniform bool u_is_halo;in float v_draw_halo;in vec2 v_data0;in vec3 v_data1; #pragma mapbox: define highp vec4 fill_color #pragma mapbox: define highp vec4 halo_color #pragma mapbox: define lowp float opacity #pragma mapbox: define lowp float halo_width #pragma mapbox: define lowp float halo_blur #pragma mapbox: define lowp float emissive_strength void main() { #pragma mapbox: initialize highp vec4 fill_color #pragma mapbox: initialize highp vec4 halo_color #pragma mapbox: initialize lowp float opacity #pragma mapbox: initialize lowp float halo_width #pragma mapbox: initialize lowp float halo_blur #pragma mapbox: initialize lowp float emissive_strength float EDGE_GAMMA=0.105/u_device_pixel_ratio;vec2 tex=v_data0.xy;float gamma_scale=v_data1.x;float size=v_data1.y;float fade_opacity=v_data1[2];float fontScale=u_is_text ? size/24.0 : size;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;bool draw_halo=v_draw_halo > 0.0;if (draw_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture(u_texture,tex).r;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);vec4 out_color=color*(alpha*opacity*fade_opacity); #ifdef LIGHTING_3D_MODE out_color=apply_lighting_with_emission_ground(out_color,emissive_strength); #endif glFragColor=out_color; #ifdef OVERDRAW_INSPECTOR glFragColor=vec4(1.0); #endif HANDLE_WIREFRAME_DEBUG;}`,`#include "_prelude_terrain.vertex.glsl" in vec4 a_pos_offset;in vec4 a_tex_size;in vec4 a_pixeloffset;in vec4 a_projected_pos;in float a_fade_opacity; #ifdef Z_OFFSET in float a_z_offset; #endif #ifdef PROJECTION_GLOBE_VIEW in vec3 a_globe_anchor;in vec3 a_globe_normal; #endif uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec3 u_up_vector;uniform bool u_is_halo; #ifdef PROJECTION_GLOBE_VIEW uniform vec3 u_tile_id;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_camera_forward;uniform float u_zoom_transition;uniform vec3 u_ecef_origin;uniform mat4 u_tile_matrix; #endif out float v_draw_halo;out vec2 v_data0;out vec3 v_data1; #pragma mapbox: define highp vec4 fill_color #pragma mapbox: define highp vec4 halo_color #pragma mapbox: define lowp float opacity #pragma mapbox: define lowp float halo_width #pragma mapbox: define lowp float halo_blur #pragma mapbox: define lowp float emissive_strength void main() { #pragma mapbox: initialize highp vec4 fill_color #pragma mapbox: initialize highp vec4 halo_color #pragma mapbox: initialize lowp float opacity #pragma mapbox: initialize lowp float halo_width #pragma mapbox: initialize lowp float halo_blur #pragma mapbox: initialize lowp float emissive_strength vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_tex_size.xy;vec2 a_size=a_tex_size.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;highp float segment_angle=-a_projected_pos[3];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec2 tile_anchor=a_pos;float e=elevation(tile_anchor); #ifdef Z_OFFSET e+=a_z_offset; #endif vec3 h=elevationVector(tile_anchor)*e;float globe_occlusion_fade;vec3 world_pos;vec3 mercator_pos; #ifdef PROJECTION_GLOBE_VIEW mercator_pos=mercator_tile_position(u_inv_rot_matrix,tile_anchor,u_tile_id,u_merc_center);world_pos=mix_globe_mercator(a_globe_anchor+h,mercator_pos,u_zoom_transition);vec4 ecef_point=u_tile_matrix*vec4(world_pos,1.0);vec3 origin_to_point=ecef_point.xyz-u_ecef_origin;globe_occlusion_fade=dot(origin_to_point,u_camera_forward) >=0.0 ? 0.0 : 1.0; #else world_pos=vec3(tile_anchor,0)+h;globe_occlusion_fade=1.0; #endif vec4 projected_point=u_matrix*vec4(world_pos,1);highp float camera_to_anchor_distance=projected_point.w;highp float distance_ratio=u_pitch_with_map ? camera_to_anchor_distance/u_camera_to_center_distance : u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp( 0.5+0.5*distance_ratio,0.0,1.5);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetprojected_point; #ifdef PROJECTION_GLOBE_VIEW vec3 displacement=vec3(a_globe_normal.z,0,-a_globe_normal.x);offsetprojected_point=u_matrix*vec4(a_globe_anchor+displacement,1); #else offsetprojected_point=u_matrix*vec4(tile_anchor+vec2(1,0),0,1); #endif vec2 a=projected_point.xy/projected_point.w;vec2 b=offsetprojected_point.xy/offsetprojected_point.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}vec4 projected_pos; #ifdef PROJECTION_GLOBE_VIEW vec3 proj_pos=mix_globe_mercator(a_projected_pos.xyz+h,mercator_pos,u_zoom_transition);projected_pos=u_label_plane_matrix*vec4(proj_pos,1.0); #else projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,h.z,1.0); #endif highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);float z=0.0;vec2 offset=rotation_matrix*(a_offset/32.0*fontScale+a_pxoffset); #ifdef TERRAIN #ifdef PITCH_WITH_MAP_TERRAIN vec4 tile_pos=u_label_plane_matrix_inv*vec4(a_projected_pos.xy+offset,0.0,1.0);z=elevation(tile_pos.xy); #endif #endif float occlusion_fade=occlusionFade(projected_point)*globe_occlusion_fade;float projection_transition_fade=1.0; #if defined(PROJECTED_POS_ON_VIEWPORT) && defined(PROJECTION_GLOBE_VIEW) projection_transition_fade=1.0-step(EPSILON,u_zoom_transition); #endif vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(occlusion_fade,fade_opacity[0]+fade_change));float out_fade_opacity=interpolated_fade_opacity*projection_transition_fade;float alpha=opacity*out_fade_opacity;float hidden=float(alpha==0.0 || projected_point.w <=0.0 || occlusion_fade==0.0); #ifdef PROJECTION_GLOBE_VIEW vec3 xAxis=u_pitch_with_map ? normalize(cross(a_globe_normal,u_up_vector)) : vec3(1,0,0);vec3 yAxis=u_pitch_with_map ? normalize(cross(a_globe_normal,xAxis)) : vec3(0,1,0);gl_Position=mix(u_coord_matrix*vec4(projected_pos.xyz/projected_pos.w+xAxis*offset.x+yAxis*offset.y,1.0),AWAY,hidden); #else gl_Position=mix(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+offset,z,1.0),AWAY,hidden); #endif float gamma_scale=gl_Position.w;v_draw_halo=(u_is_halo && float(gl_InstanceID)==0.0) ? 1.0 : 0.0;v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,out_fade_opacity);}`),symbolTextAndIcon:io(`#include "_prelude_lighting.glsl" #define SDF_PX 8.0 #define SDF 1.0 #define ICON 0.0 uniform sampler2D u_texture;uniform sampler2D u_texture_icon;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;uniform bool u_is_halo;in float v_draw_halo;in vec4 v_data0;in vec4 v_data1; #pragma mapbox: define highp vec4 fill_color #pragma mapbox: define highp vec4 halo_color #pragma mapbox: define lowp float opacity #pragma mapbox: define lowp float halo_width #pragma mapbox: define lowp float halo_blur #pragma mapbox: define lowp float emissive_strength void main() { #pragma mapbox: initialize highp vec4 fill_color #pragma mapbox: initialize highp vec4 halo_color #pragma mapbox: initialize lowp float opacity #pragma mapbox: initialize lowp float halo_width #pragma mapbox: initialize lowp float halo_blur #pragma mapbox: initialize lowp float emissive_strength float fade_opacity=v_data1[2];if (v_data1.w==ICON) {vec2 tex_icon=v_data0.zw;lowp float alpha=opacity*fade_opacity;glFragColor=texture(u_texture_icon,tex_icon)*alpha; #ifdef OVERDRAW_INSPECTOR glFragColor=vec4(1.0); #endif return;}vec2 tex=v_data0.xy;float EDGE_GAMMA=0.105/u_device_pixel_ratio;float gamma_scale=v_data1.x;float size=v_data1.y;float fontScale=size/24.0;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;bool draw_halo=v_draw_halo > 0.0;if (draw_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture(u_texture,tex).r;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);vec4 out_color=color*(alpha*opacity*fade_opacity); #ifdef LIGHTING_3D_MODE out_color=apply_lighting_with_emission_ground(out_color,emissive_strength); #endif glFragColor=out_color; #ifdef OVERDRAW_INSPECTOR glFragColor=vec4(1.0); #endif HANDLE_WIREFRAME_DEBUG;}`,`#include "_prelude_terrain.vertex.glsl" in vec4 a_pos_offset;in vec4 a_tex_size;in vec4 a_projected_pos;in float a_fade_opacity; #ifdef Z_OFFSET in float a_z_offset; #endif #ifdef PROJECTION_GLOBE_VIEW in vec3 a_globe_anchor;in vec3 a_globe_normal; #endif uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec3 u_up_vector;uniform vec2 u_texsize_icon;uniform bool u_is_halo; #ifdef PROJECTION_GLOBE_VIEW uniform vec3 u_tile_id;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_camera_forward;uniform float u_zoom_transition;uniform vec3 u_ecef_origin;uniform mat4 u_tile_matrix; #endif out float v_draw_halo;out vec4 v_data0;out vec4 v_data1; #pragma mapbox: define highp vec4 fill_color #pragma mapbox: define highp vec4 halo_color #pragma mapbox: define lowp float opacity #pragma mapbox: define lowp float halo_width #pragma mapbox: define lowp float halo_blur #pragma mapbox: define lowp float emissive_strength void main() { #pragma mapbox: initialize highp vec4 fill_color #pragma mapbox: initialize highp vec4 halo_color #pragma mapbox: initialize lowp float opacity #pragma mapbox: initialize lowp float halo_width #pragma mapbox: initialize lowp float halo_blur #pragma mapbox: initialize lowp float emissive_strength vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_tex_size.xy;vec2 a_size=a_tex_size.zw;float a_size_min=floor(a_size[0]*0.5);float is_sdf=a_size[0]-2.0*a_size_min;highp float segment_angle=-a_projected_pos[3];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec2 tile_anchor=a_pos;float e=elevation(tile_anchor); #ifdef Z_OFFSET e+=a_z_offset; #endif vec3 h=elevationVector(tile_anchor)*e;float globe_occlusion_fade;vec3 world_pos;vec3 mercator_pos; #ifdef PROJECTION_GLOBE_VIEW mercator_pos=mercator_tile_position(u_inv_rot_matrix,tile_anchor,u_tile_id,u_merc_center);world_pos=mix_globe_mercator(a_globe_anchor+h,mercator_pos,u_zoom_transition);vec4 ecef_point=u_tile_matrix*vec4(world_pos,1.0);vec3 origin_to_point=ecef_point.xyz-u_ecef_origin;globe_occlusion_fade=dot(origin_to_point,u_camera_forward) >=0.0 ? 0.0 : 1.0; #else world_pos=vec3(tile_anchor,0)+h;globe_occlusion_fade=1.0; #endif vec4 projected_point=u_matrix*vec4(world_pos,1);highp float camera_to_anchor_distance=projected_point.w;highp float distance_ratio=u_pitch_with_map ? camera_to_anchor_distance/u_camera_to_center_distance : u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp( 0.5+0.5*distance_ratio,0.0,1.5);size*=perspective_ratio;float font_scale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offset_projected_point=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projected_point.xy/projected_point.w;vec2 b=offset_projected_point.xy/offset_projected_point.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}vec4 projected_pos; #ifdef PROJECTION_GLOBE_VIEW vec3 proj_pos=mix_globe_mercator(a_projected_pos.xyz+h,mercator_pos,u_zoom_transition);projected_pos=u_label_plane_matrix*vec4(proj_pos,1.0); #else projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,h.z,1.0); #endif highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);float z=0.0;vec2 offset=rotation_matrix*(a_offset/32.0*font_scale); #ifdef TERRAIN #ifdef PITCH_WITH_MAP_TERRAIN vec4 tile_pos=u_label_plane_matrix_inv*vec4(a_projected_pos.xy+offset,0.0,1.0);z=elevation(tile_pos.xy); #endif #endif float occlusion_fade=occlusionFade(projected_point)*globe_occlusion_fade;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(occlusion_fade,fade_opacity[0]+fade_change));float projection_transition_fade=1.0; #if defined(PROJECTED_POS_ON_VIEWPORT) && defined(PROJECTION_GLOBE_VIEW) projection_transition_fade=1.0-step(EPSILON,u_zoom_transition); #endif float out_fade_opacity=interpolated_fade_opacity*projection_transition_fade;float alpha=opacity*out_fade_opacity;float hidden=float(alpha==0.0 || projected_point.w <=0.0 || occlusion_fade==0.0); #ifdef PROJECTION_GLOBE_VIEW vec3 xAxis=u_pitch_with_map ? normalize(cross(a_globe_normal,u_up_vector)) : vec3(1,0,0);vec3 yAxis=u_pitch_with_map ? normalize(cross(a_globe_normal,xAxis)) : vec3(0,1,0);gl_Position=mix(u_coord_matrix*vec4(projected_pos.xyz/projected_pos.w+xAxis*offset.x+yAxis*offset.y,1.0),AWAY,hidden); #else gl_Position=mix(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+offset,z,1.0),AWAY,hidden); #endif float gamma_scale=gl_Position.w;v_draw_halo=(u_is_halo && float(gl_InstanceID)==0.0) ? 1.0 : 0.0;v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,out_fade_opacity,is_sdf);}`),terrainRaster:io(`#include "_prelude_fog.fragment.glsl" #include "_prelude_shadow.fragment.glsl" #include "_prelude_lighting.glsl" uniform sampler2D u_image0;in vec2 v_pos0; #ifdef FOG in float v_fog_opacity; #endif #ifdef RENDER_SHADOWS in vec4 v_pos_light_view_0;in vec4 v_pos_light_view_1; #endif uniform vec3 u_ground_shadow_factor;void main() {vec4 image_color=texture(u_image0,v_pos0);vec4 color; #ifdef LIGHTING_3D_MODE const vec3 normal=vec3(0.0,0.0,1.0); #ifdef RENDER_SHADOWS float cutoffOpacity=1.0; #ifdef RENDER_CUTOFF cutoffOpacity=cutoff_opacity(u_cutoff_params,1.0/gl_FragCoord.w); #endif #ifdef LIGHTING_3D_ALPHA_EMISSIVENESS vec3 unlit_base=image_color.rgb*(1.0-image_color.a);vec3 emissive_base=image_color.rgb*image_color.a;float ndotl=u_shadow_direction.z;float occlusion=ndotl < 0.0 ? 1.0 : shadow_occlusion(v_pos_light_view_0,v_pos_light_view_1,1.0/gl_FragCoord.w,0.0);ndotl=max(0.0,ndotl);vec3 lit=apply_lighting(unlit_base,normal,mix(1.0,(1.0-(u_shadow_intensity*occlusion))*ndotl,cutoffOpacity));vec3 emissive=compute_emissive_draped(emissive_base,1.0-u_shadow_intensity,occlusion,u_ground_shadow_factor);color.rgb=lit+emissive;color.a=1.0; #else float lighting_factor=shadowed_light_factor_normal_unbiased(normal,v_pos_light_view_0,v_pos_light_view_1,1.0/gl_FragCoord.w);color=apply_lighting(image_color,normal,mix(1.0,lighting_factor,cutoffOpacity)); #endif #else float lighting_factor=u_lighting_directional_dir.z;color=apply_lighting(image_color,normal,lighting_factor); #ifdef LIGHTING_3D_ALPHA_EMISSIVENESS color.rgb=mix(color.rgb,image_color.rgb,image_color.a);color.a=1.0; #endif #endif #else color=image_color; #endif #ifdef FOG #ifdef ZERO_EXAGGERATION color=fog_dither(fog_apply_premultiplied(color,v_fog_pos)); #else color=fog_dither(fog_apply_from_vert(color,v_fog_opacity)); #endif #endif glFragColor=color; #ifdef OVERDRAW_INSPECTOR glFragColor=vec4(1.0); #endif HANDLE_WIREFRAME_DEBUG;}`,`#include "_prelude_fog.vertex.glsl" #include "_prelude_terrain.vertex.glsl" uniform mat4 u_matrix;uniform float u_skirt_height;in vec2 a_pos;out vec2 v_pos0; #ifdef FOG out float v_fog_opacity; #endif #ifdef RENDER_SHADOWS uniform mat4 u_light_matrix_0;uniform mat4 u_light_matrix_1;out vec4 v_pos_light_view_0;out vec4 v_pos_light_view_1;out float v_depth; #endif void main() {vec3 decomposedPosAndSkirt=decomposeToPosAndSkirt(a_pos);float skirt=decomposedPosAndSkirt.z;vec2 decodedPos=decomposedPosAndSkirt.xy;float elevation=elevation(decodedPos)-skirt*u_skirt_height;v_pos0=decodedPos/8192.0;gl_Position=u_matrix*vec4(decodedPos,elevation,1.0); #ifdef FOG #ifdef ZERO_EXAGGERATION v_fog_pos=fog_position(decodedPos); #else v_fog_opacity=fog(fog_position(vec3(decodedPos,elevation))); #endif #endif #ifdef RENDER_SHADOWS vec3 pos=vec3(decodedPos,elevation);v_pos_light_view_0=u_light_matrix_0*vec4(pos,1.);v_pos_light_view_1=u_light_matrix_1*vec4(pos,1.); #endif }`),terrainDepth:io("precision highp float;in float v_depth;void main() {glFragColor=pack_depth(v_depth);}",`#include "_prelude_terrain.vertex.glsl" uniform mat4 u_matrix;in vec2 a_pos;out float v_depth;void main() {float elevation=elevation(a_pos);gl_Position=u_matrix*vec4(a_pos,elevation,1.0);v_depth=gl_Position.z/gl_Position.w;}`),skybox:io(`#include "_prelude_fog.fragment.glsl" in lowp vec3 v_uv;uniform lowp samplerCube u_cubemap;uniform lowp float u_opacity;uniform highp float u_temporal_offset;uniform highp vec3 u_sun_direction;float sun_disk(highp vec3 ray_direction,highp vec3 sun_direction) {highp float cos_angle=dot(normalize(ray_direction),sun_direction);const highp float cos_sun_angular_diameter=0.99996192306;const highp float smoothstep_delta=1e-5;return smoothstep( cos_sun_angular_diameter-smoothstep_delta,cos_sun_angular_diameter+smoothstep_delta,cos_angle);}float map(float value,float start,float end,float new_start,float new_end) {return ((value-start)*(new_end-new_start))/(end-start)+new_start;}void main() {vec3 uv=v_uv;const float y_bias=0.015;uv.y+=y_bias;uv.y=pow(abs(uv.y),1.0/5.0);uv.y=map(uv.y,0.0,1.0,-1.0,1.0);vec3 sky_color=texture(u_cubemap,uv).rgb; #ifdef FOG sky_color=fog_apply_sky_gradient(v_uv.xzy,sky_color); #endif sky_color.rgb=dither(sky_color.rgb,gl_FragCoord.xy+u_temporal_offset);sky_color+=0.1*sun_disk(v_uv,u_sun_direction);glFragColor=vec4(sky_color*u_opacity,u_opacity); #ifdef OVERDRAW_INSPECTOR glFragColor=vec4(1.0); #endif }`,xs),skyboxGradient:io(`#include "_prelude_fog.fragment.glsl" in highp vec3 v_uv;uniform lowp sampler2D u_color_ramp;uniform highp vec3 u_center_direction;uniform lowp float u_radius;uniform lowp float u_opacity;uniform highp float u_temporal_offset;void main() {float progress=acos(dot(normalize(v_uv),u_center_direction))/u_radius;vec4 color=texture(u_color_ramp,vec2(progress,0.5)); #ifdef FOG color.rgb=fog_apply_sky_gradient(v_uv.xzy,color.rgb/color.a)*color.a; #endif color*=u_opacity;color.rgb=dither(color.rgb,gl_FragCoord.xy+u_temporal_offset);glFragColor=color; #ifdef OVERDRAW_INSPECTOR glFragColor=vec4(1.0); #endif }`,xs),skyboxCapture:io(` in highp vec3 v_position;uniform highp float u_sun_intensity;uniform highp float u_luminance;uniform lowp vec3 u_sun_direction;uniform highp vec4 u_color_tint_r;uniform highp vec4 u_color_tint_m;precision highp float; #define BETA_R vec3(5.5e-6,13.0e-6,22.4e-6) #define BETA_M vec3(21e-6,21e-6,21e-6) #define MIE_G 0.76 #define DENSITY_HEIGHT_SCALE_R 8000.0 #define DENSITY_HEIGHT_SCALE_M 1200.0 #define PLANET_RADIUS 6360e3 #define ATMOSPHERE_RADIUS 6420e3 #define SAMPLE_STEPS 10 #define DENSITY_STEPS 4 float ray_sphere_exit(vec3 orig,vec3 dir,float radius) {float a=dot(dir,dir);float b=2.0*dot(dir,orig);float c=dot(orig,orig)-radius*radius;float d=sqrt(b*b-4.0*a*c);return (-b+d)/(2.0*a);}vec3 extinction(vec2 density) {return exp(-vec3(BETA_R*u_color_tint_r.a*density.x+BETA_M*u_color_tint_m.a*density.y));}vec2 local_density(vec3 point) {float height=max(length(point)-PLANET_RADIUS,0.0);float exp_r=exp(-height/DENSITY_HEIGHT_SCALE_R);float exp_m=exp(-height/DENSITY_HEIGHT_SCALE_M);return vec2(exp_r,exp_m);}float phase_ray(float cos_angle) {return (3.0/(16.0*PI))*(1.0+cos_angle*cos_angle);}float phase_mie(float cos_angle) {return (3.0/(8.0*PI))*((1.0-MIE_G*MIE_G)*(1.0+cos_angle*cos_angle))/((2.0+MIE_G*MIE_G)*pow(1.0+MIE_G*MIE_G-2.0*MIE_G*cos_angle,1.5));}vec2 density_to_atmosphere(vec3 point,vec3 light_dir) {float ray_len=ray_sphere_exit(point,light_dir,ATMOSPHERE_RADIUS);float step_len=ray_len/float(DENSITY_STEPS);vec2 density_point_to_atmosphere=vec2(0.0);for (int i=0; i < DENSITY_STEPS;++i) {vec3 point_on_ray=point+light_dir*((float(i)+0.5)*step_len);density_point_to_atmosphere+=local_density(point_on_ray)*step_len;;}return density_point_to_atmosphere;}vec3 atmosphere(vec3 ray_dir,vec3 sun_direction,float sun_intensity) {vec2 density_orig_to_point=vec2(0.0);vec3 scatter_r=vec3(0.0);vec3 scatter_m=vec3(0.0);vec3 origin=vec3(0.0,PLANET_RADIUS,0.0);float ray_len=ray_sphere_exit(origin,ray_dir,ATMOSPHERE_RADIUS);float step_len=ray_len/float(SAMPLE_STEPS);for (int i=0; i < SAMPLE_STEPS;++i) {vec3 point_on_ray=origin+ray_dir*((float(i)+0.5)*step_len);vec2 density=local_density(point_on_ray)*step_len;density_orig_to_point+=density;vec2 density_point_to_atmosphere=density_to_atmosphere(point_on_ray,sun_direction);vec2 density_orig_to_atmosphere=density_orig_to_point+density_point_to_atmosphere;vec3 extinction=extinction(density_orig_to_atmosphere);scatter_r+=density.x*extinction;scatter_m+=density.y*extinction;}float cos_angle=dot(ray_dir,sun_direction);float phase_r=phase_ray(cos_angle);float phase_m=phase_mie(cos_angle);vec3 beta_r=BETA_R*u_color_tint_r.rgb*u_color_tint_r.a;vec3 beta_m=BETA_M*u_color_tint_m.rgb*u_color_tint_m.a;return (scatter_r*phase_r*beta_r+scatter_m*phase_m*beta_m)*sun_intensity;}const float A=0.15;const float B=0.50;const float C=0.10;const float D=0.20;const float E=0.02;const float F=0.30;vec3 uncharted2_tonemap(vec3 x) {return ((x*(A*x+C*B)+D*E)/(x*(A*x+B)+D*F))-E/F;}void main() {vec3 ray_direction=v_position;ray_direction.y=pow(ray_direction.y,5.0);const float y_bias=0.015;ray_direction.y+=y_bias;vec3 color=atmosphere(normalize(ray_direction),u_sun_direction,u_sun_intensity);float white_scale=1.0748724675633854;color=uncharted2_tonemap((log2(2.0/pow(u_luminance,4.0)))*color)*white_scale;glFragColor=vec4(color,1.0);}`,"in highp vec3 a_pos_3f;uniform mat3 u_matrix_3f;out highp vec3 v_position;float map(float value,float start,float end,float new_start,float new_end) {return ((value-start)*(new_end-new_start))/(end-start)+new_start;}void main() {vec4 pos=vec4(u_matrix_3f*a_pos_3f,1.0);v_position=pos.xyz;v_position.y*=-1.0;v_position.y=map(v_position.y,-1.0,1.0,0.0,1.0);gl_Position=vec4(a_pos_3f.xy,0.0,1.0);}"),globeRaster:io(`#include "_prelude_fog.fragment.glsl" #include "_prelude_lighting.glsl" uniform sampler2D u_image0;uniform float u_far_z_cutoff;in vec2 v_pos0; #ifndef FOG uniform highp vec3 u_frustum_tl;uniform highp vec3 u_frustum_tr;uniform highp vec3 u_frustum_br;uniform highp vec3 u_frustum_bl;uniform highp vec3 u_globe_pos;uniform highp float u_globe_radius;uniform vec2 u_viewport; #endif void main() {vec4 color; #ifdef CUSTOM_ANTIALIASING vec2 uv=gl_FragCoord.xy/u_viewport;highp vec3 ray_dir=mix( mix(u_frustum_tl,u_frustum_tr,uv.x),mix(u_frustum_bl,u_frustum_br,uv.x),1.0-uv.y);vec3 dir=normalize(ray_dir);vec3 closest_point=dot(u_globe_pos,dir)*dir;float norm_dist_from_center=1.0-length(closest_point-u_globe_pos)/u_globe_radius;const float antialias_pixel=2.0;float antialias_factor=antialias_pixel*fwidth(norm_dist_from_center);float antialias=smoothstep(0.0,antialias_factor,norm_dist_from_center);vec4 raster=texture(u_image0,v_pos0); #ifdef LIGHTING_3D_MODE #ifdef LIGHTING_3D_ALPHA_EMISSIVENESS raster=apply_lighting_with_emission_ground(raster,raster.a);color=vec4(raster.rgb*antialias,antialias); #else raster=apply_lighting_ground(raster);color=vec4(raster.rgb*antialias,raster.a*antialias); #endif #else color=vec4(raster.rgb*antialias,raster.a*antialias); #endif #else color=texture(u_image0,v_pos0); #ifdef LIGHTING_3D_MODE #ifdef LIGHTING_3D_ALPHA_EMISSIVENESS color=apply_lighting_with_emission_ground(color,color.a);color.a=1.0; #else color=apply_lighting_ground(color); #endif #endif #endif #ifdef FOG color=fog_dither(fog_apply_premultiplied(color,v_fog_pos)); #endif color*=1.0-step(u_far_z_cutoff,1.0/gl_FragCoord.w);glFragColor=color; #ifdef OVERDRAW_INSPECTOR glFragColor=vec4(1.0); #endif HANDLE_WIREFRAME_DEBUG;}`,`#include "_prelude_fog.vertex.glsl" #include "_prelude_terrain.vertex.glsl" uniform mat4 u_proj_matrix;uniform mat4 u_normalize_matrix;uniform mat4 u_globe_matrix;uniform mat4 u_merc_matrix;uniform float u_zoom_transition;uniform vec2 u_merc_center;uniform mat3 u_grid_matrix;uniform float u_skirt_height; #ifdef GLOBE_POLES in vec3 a_globe_pos;in vec2 a_uv; #else in vec2 a_pos; #endif out vec2 v_pos0;void main() { #ifdef GLOBE_POLES vec3 globe_pos=a_globe_pos;vec2 uv=a_uv; #else float tiles=u_grid_matrix[0][2];float idx=u_grid_matrix[1][2];float idy=u_grid_matrix[2][2];vec3 decomposed_pos_and_skirt=decomposeToPosAndSkirt(a_pos);vec3 latLng=u_grid_matrix*vec3(decomposed_pos_and_skirt.xy,1.0);float mercatorY=mercatorYfromLat(latLng[0]);float uvY=mercatorY*tiles-idy;float mercatorX=mercatorXfromLng(latLng[1]);float uvX=mercatorX*tiles-idx;vec3 globe_pos=latLngToECEF(latLng.xy);vec2 merc_pos=vec2(mercatorX,mercatorY);vec2 uv=vec2(uvX,uvY); #endif v_pos0=uv;vec2 tile_pos=uv*EXTENT;vec3 globe_derived_up_vector=normalize(globe_pos)*u_tile_up_scale; #ifdef GLOBE_POLES vec3 up_vector=globe_derived_up_vector; #else vec3 up_vector=elevationVector(tile_pos); #endif float height=elevation(tile_pos);globe_pos+=up_vector*height; #ifndef GLOBE_POLES globe_pos-=globe_derived_up_vector*u_skirt_height*decomposed_pos_and_skirt.z; #endif #ifdef GLOBE_POLES vec4 interpolated_pos=u_globe_matrix*vec4(globe_pos,1.0); #else vec4 globe_world_pos=u_globe_matrix*vec4(globe_pos,1.0);vec4 merc_world_pos=vec4(0.0);if (u_zoom_transition > 0.0) {merc_world_pos=vec4(merc_pos,height-u_skirt_height*decomposed_pos_and_skirt.z,1.0);merc_world_pos.xy-=u_merc_center;merc_world_pos.x=wrap(merc_world_pos.x,-0.5,0.5);merc_world_pos=u_merc_matrix*merc_world_pos;}vec4 interpolated_pos=vec4(mix(globe_world_pos.xyz,merc_world_pos.xyz,u_zoom_transition),1.0); #endif gl_Position=u_proj_matrix*interpolated_pos; #ifdef FOG v_fog_pos=fog_position((u_normalize_matrix*vec4(globe_pos,1.0)).xyz); #endif }`),globeAtmosphere:io(`#include "_prelude_fog.fragment.glsl" uniform float u_transition;uniform highp float u_fadeout_range;uniform highp float u_temporal_offset;uniform vec4 u_color;uniform vec4 u_high_color;uniform vec4 u_space_color;uniform float u_horizon_angle;in highp vec3 v_ray_dir;in highp vec3 v_horizon_dir;void main() {highp vec3 dir=normalize(v_ray_dir);float globe_pos_dot_dir; #ifdef PROJECTION_GLOBE_VIEW globe_pos_dot_dir=dot(u_globe_pos,dir);highp vec3 closest_point_forward=abs(globe_pos_dot_dir)*dir;float norm_dist_from_center=length(closest_point_forward-u_globe_pos)/u_globe_radius;if (norm_dist_from_center < 0.98) { #ifdef ALPHA_PASS glFragColor=vec4(0,0,0,0);return; #else #ifdef NATIVE glFragColor=vec4(1,1,1,1); #else glFragColor=vec4(0,0,0,1); #endif return; #endif } #endif highp vec3 horizon_dir=normalize(v_horizon_dir);float horizon_angle_mercator=dir.y < horizon_dir.y ? 0.0 : max(acos(clamp(dot(dir,horizon_dir),-1.0,1.0)),0.0);float horizon_angle; #ifdef PROJECTION_GLOBE_VIEW highp vec3 closest_point=globe_pos_dot_dir*dir;highp float closest_point_to_center=length(closest_point-u_globe_pos);highp float theta=asin(clamp(closest_point_to_center/length(u_globe_pos),-1.0,1.0));horizon_angle=globe_pos_dot_dir < 0.0 ? PI-theta-u_horizon_angle : theta-u_horizon_angle;float angle_t=pow(u_transition,10.0);horizon_angle=mix(horizon_angle,horizon_angle_mercator,angle_t); #else horizon_angle=horizon_angle_mercator; #endif horizon_angle/=PI;float t=exp(-horizon_angle/u_fadeout_range);float alpha_0=u_color.a;float alpha_1=u_high_color.a;float alpha_2=u_space_color.a;vec3 color_stop_0=u_color.rgb;vec3 color_stop_1=u_high_color.rgb;vec3 color_stop_2=u_space_color.rgb; #ifdef ALPHA_PASS float a0=mix(alpha_2,1.0,alpha_1);float a1=mix(a0,1.0,alpha_0);float a2=mix(a0,a1,t);float a =mix(alpha_2,a2,t);glFragColor=vec4(1.0,1.0,1.0,a); #else vec3 c0=mix(color_stop_2,color_stop_1,alpha_1);vec3 c1=mix(c0,color_stop_0,alpha_0);vec3 c2=mix(c0,c1,t);vec3 c=c2; #ifndef NATIVE c=dither(c,gl_FragCoord.xy+u_temporal_offset); #endif glFragColor=vec4(c*t,t); #endif }`,`in vec3 a_pos;in vec2 a_uv;uniform vec3 u_frustum_tl;uniform vec3 u_frustum_tr;uniform vec3 u_frustum_br;uniform vec3 u_frustum_bl;uniform float u_horizon;out highp vec3 v_ray_dir;out highp vec3 v_horizon_dir;void main() {v_ray_dir=mix( mix(u_frustum_tl,u_frustum_tr,a_uv.x),mix(u_frustum_bl,u_frustum_br,a_uv.x),a_uv.y);v_horizon_dir=mix( mix(u_frustum_tl,u_frustum_bl,u_horizon),mix(u_frustum_tr,u_frustum_br,u_horizon),a_uv.x);gl_Position=vec4(a_pos,1.0);}`),model:io(`#include "_prelude_fog.fragment.glsl" #include "_prelude_shadow.fragment.glsl" #include "_prelude_lighting.glsl" uniform float u_opacity;uniform vec3 u_lightcolor;uniform vec3 u_lightpos;uniform float u_lightintensity;uniform vec4 u_baseColorFactor;uniform vec4 u_emissiveFactor;uniform float u_metallicFactor;uniform float u_roughnessFactor;uniform float u_emissive_strength;in highp vec4 v_position_height;in lowp vec4 v_color_mix; #ifdef RENDER_SHADOWS in vec4 v_pos_light_view_0;in vec4 v_pos_light_view_1;in float v_depth_shadows; #endif #ifdef OCCLUSION_TEXTURE_TRANSFORM uniform vec4 u_occlusionTextureTransform; #endif #pragma mapbox: define-attribute highp vec3 normal_3f #pragma mapbox: define-attribute highp vec3 color_3f #pragma mapbox: define-attribute highp vec4 color_4f #pragma mapbox: define-attribute highp vec2 uv_2f #pragma mapbox: initialize-attribute highp vec3 normal_3f #pragma mapbox: initialize-attribute highp vec3 color_3f #pragma mapbox: initialize-attribute highp vec4 color_4f #pragma mapbox: initialize-attribute highp vec2 uv_2f #ifdef HAS_ATTRIBUTE_a_pbr in lowp vec4 v_roughness_metallic_emissive_alpha;in mediump vec4 v_height_based_emission_params; #endif #ifdef HAS_TEXTURE_u_baseColorTexture uniform sampler2D u_baseColorTexture;uniform bool u_baseTextureIsAlpha;uniform bool u_alphaMask;uniform float u_alphaCutoff; #endif #ifdef HAS_TEXTURE_u_metallicRoughnessTexture uniform sampler2D u_metallicRoughnessTexture; #endif #ifdef HAS_TEXTURE_u_occlusionTexture uniform sampler2D u_occlusionTexture;uniform float u_aoIntensity; #endif #ifdef HAS_TEXTURE_u_normalTexture uniform sampler2D u_normalTexture; #endif #ifdef HAS_TEXTURE_u_emissionTexture uniform sampler2D u_emissionTexture; #endif #ifdef TERRAIN_FRAGMENT_OCCLUSION in highp float v_depth;uniform sampler2D u_depthTexture;uniform vec2 u_inv_depth_size;bool isOccluded() {vec2 coord=gl_FragCoord.xy*u_inv_depth_size;highp float depth=unpack_depth(texture(u_depthTexture,coord));return v_depth > depth+0.0005;} #endif #define saturate(_x) clamp(_x,0.,1.) vec3 linearTosRGB(vec3 color) {return pow(color,vec3(1./2.2));}vec3 sRGBToLinear(vec3 srgbIn) {return pow(srgbIn,vec3(2.2));}float calculate_NdotL(vec3 normal,vec3 lightDir) {const float ext=0.70710678118;return (clamp(dot(normal,lightDir),-ext,1.0)+ext)/(1.0+ext);}vec3 getDiffuseShadedColor(vec3 albedo,vec3 normal,vec3 lightDir,vec3 lightColor) { #ifdef LIGHTING_3D_MODE vec3 transformed_normal=vec3(-normal.xy,normal.z);float lighting_factor; #ifdef RENDER_SHADOWS lighting_factor=shadowed_light_factor_normal(transformed_normal,v_pos_light_view_0,v_pos_light_view_1,v_depth_shadows); #else lighting_factor=saturate(dot(transformed_normal,u_lighting_directional_dir)); #endif return apply_lighting(albedo,transformed_normal,lighting_factor); #else vec3 n=normal;float colorvalue=((albedo.x*0.2126)+(albedo.y*0.7152))+(albedo.z*0.0722);vec3 c=vec3(0.03,0.03,0.03);float directional=clamp(dot(n,vec3(lightDir)),0.0,1.0);directional=mix(1.0-u_lightintensity,max((1.0-colorvalue)+u_lightintensity,1.0),directional);vec3 c3=c+clamp((albedo*directional)*lightColor,mix(vec3(0.0),vec3(0.3),vec3(1.0)-lightColor),vec3(1.0));return c3; #endif }vec4 getBaseColor() {vec4 albedo=u_baseColorFactor; #ifdef HAS_ATTRIBUTE_a_color_3f albedo*=vec4(color_3f,1.0); #endif #ifdef HAS_ATTRIBUTE_a_pbr #else #ifdef HAS_ATTRIBUTE_a_color_4f albedo*=color_4f; #endif #endif #if defined (HAS_TEXTURE_u_baseColorTexture) && defined (HAS_ATTRIBUTE_a_uv_2f) vec4 texColor=texture(u_baseColorTexture,uv_2f);if(u_alphaMask) {if (texColor.w < u_alphaCutoff) {discard;}} #ifdef UNPREMULT_TEXTURE_IN_SHADER if(texColor.w > 0.0) {texColor.rgb/=texColor.w;}texColor.w=1.0; #endif if(u_baseTextureIsAlpha) {if (texColor.r < 0.5) {discard;}} else {texColor.rgb=sRGBToLinear(texColor.rgb);albedo*=texColor;} #endif return vec4(mix(albedo.rgb,v_color_mix.rgb,v_color_mix.a),albedo.a);}highp mat3 cotangentFrame(highp vec3 N,highp vec3 p,highp vec2 uv ) { #ifdef HAS_TEXTURE_u_normalTexture highp vec3 dp1=vec3(dFdx(p.x),dFdx(p.y),dFdx(p.z));highp vec3 dp2=vec3(dFdy(p.x),dFdy(p.y),dFdy(p.z));highp vec2 duv1=vec2(dFdx(uv.x),dFdx(uv.y));highp vec2 duv2=vec2(dFdy(uv.x),dFdy(uv.y));highp vec3 dp2perp=cross( dp2,N );highp vec3 dp1perp=cross( N,dp1 );highp vec3 T=dp2perp*duv1.x+dp1perp*duv2.x;highp vec3 B=dp2perp*duv1.y+dp1perp*duv2.y;highp float lengthT=dot(T,T);highp float lengthB=dot(B,B);highp float maxLength=max(lengthT,lengthB);highp float invmax=inversesqrt( maxLength );highp mat3 res=mat3( T*invmax,B*invmax,N );return res; #else return mat3(1.0); #endif }highp vec3 getNormal(){highp vec3 n; #ifdef HAS_ATTRIBUTE_a_normal_3f n=normalize(normal_3f); #else highp vec3 fdx=vec3(dFdx(v_position_height.x),dFdx(v_position_height.y),dFdx(v_position_height.z));highp vec3 fdy=vec3(dFdy(v_position_height.x),dFdy(v_position_height.y),dFdy(v_position_height.z));n=normalize(cross(fdx,fdy))*-1.0; #endif #if defined(HAS_TEXTURE_u_normalTexture) && defined(HAS_ATTRIBUTE_a_uv_2f) vec3 nMap=texture( u_normalTexture,uv_2f).xyz;nMap=normalize(2.0*nMap-vec3(1.0));highp vec3 v=normalize(-v_position_height.xyz);highp mat3 TBN=cotangentFrame(n,v,uv_2f);n=normalize(TBN*nMap); #endif return n;}struct Material {float perceptualRoughness;float alphaRoughness;float metallic;vec3 f90;vec4 baseColor;vec3 diffuseColor;vec3 specularColor;highp vec3 normal;};Material getPBRMaterial() {Material mat;mat.baseColor=getBaseColor();mat.perceptualRoughness=u_roughnessFactor;mat.metallic=u_metallicFactor; #ifdef HAS_ATTRIBUTE_a_pbr mat.perceptualRoughness=v_roughness_metallic_emissive_alpha.x;mat.metallic=v_roughness_metallic_emissive_alpha.y;mat.baseColor.w*=v_roughness_metallic_emissive_alpha.w; #endif #if defined(HAS_TEXTURE_u_metallicRoughnessTexture) && defined(HAS_ATTRIBUTE_a_uv_2f) vec4 mrSample=texture(u_metallicRoughnessTexture,uv_2f);mat.perceptualRoughness*=mrSample.g;mat.metallic*=mrSample.b; #endif const float c_minRoughness=0.04;mat.perceptualRoughness=clamp(mat.perceptualRoughness,c_minRoughness,1.0);mat.metallic=saturate(mat.metallic);mat.alphaRoughness=mat.perceptualRoughness*mat.perceptualRoughness;const vec3 f0=vec3(0.04);mat.diffuseColor=mat.baseColor.rgb*(vec3(1.0)-f0);mat.diffuseColor*=1.0-mat.metallic;mat.specularColor=mix(f0,mat.baseColor.rgb,mat.metallic);highp float reflectance=max(max(mat.specularColor.r,mat.specularColor.g),mat.specularColor.b);highp float reflectance90=saturate(reflectance*25.0);mat.f90=vec3(reflectance90);mat.normal=getNormal();return mat;}float V_GGX(float NdotL,float NdotV,float roughness) {float a2=roughness*roughness;float GGXV=NdotL*sqrt(NdotV*NdotV*(1.0-a2)+a2);float GGXL=NdotV*sqrt(NdotL*NdotL*(1.0-a2)+a2);return 0.5/(GGXV+GGXL);}float V_GGXFast(float NdotL,float NdotV,float roughness) {float a=roughness;float GGXV=NdotL*(NdotV*(1.0-a)+a);float GGXL=NdotV*(NdotL*(1.0-a)+a);return 0.5/(GGXV+GGXL);}vec3 F_Schlick(vec3 specularColor,vec3 f90,float VdotH) {return specularColor+(f90-specularColor)*pow(clamp(1.0-VdotH,0.0,1.0),5.0);}vec3 F_SchlickFast(vec3 specularColor,float VdotH) {float x=1.0-VdotH;float x4=x*x*x*x;return specularColor+(1.0-specularColor)*x4*x;}float D_GGX(highp float NdotH,float alphaRoughness) {highp float a4=alphaRoughness*alphaRoughness;highp float f=(NdotH*a4-NdotH)*NdotH+1.0;return a4/(PI*f*f);}vec3 diffuseBurley(Material mat,float LdotH,float NdotL,float NdotV) {float f90=2.0*LdotH*LdotH*mat.alphaRoughness-0.5;return (mat.diffuseColor/PI)*(1.0+f90*pow((1.0-NdotL),5.0))*(1.0+f90*pow((1.0-NdotV),5.0));}vec3 diffuseLambertian(Material mat) { #ifdef LIGHTING_3D_MODE return mat.diffuseColor; #else return mat.diffuseColor/PI; #endif }vec3 EnvBRDFApprox(vec3 specularColor,float roughness,highp float NdotV) {vec4 c0=vec4(-1,-0.0275,-0.572,0.022);vec4 c1=vec4(1,0.0425,1.04,-0.04);highp vec4 r=roughness*c0+c1;highp float a004=min(r.x*r.x,exp2(-9.28*NdotV))*r.x+r.y;vec2 AB=vec2(-1.04,1.04)*a004+r.zw;return specularColor*AB.x+AB.y;}vec3 computeIndirectLightContribution(Material mat,float NdotV,vec3 normal) {vec3 env_light=vec3(0.65,0.65,0.65); #ifdef LIGHTING_3D_MODE float ambient_factor=calculate_ambient_directional_factor(normal);env_light=u_lighting_ambient_color*ambient_factor; #endif vec3 envBRDF=EnvBRDFApprox(mat.specularColor,mat.perceptualRoughness,NdotV);vec3 indirectSpecular= envBRDF*env_light;vec3 indirectDiffuse=mat.diffuseColor*env_light;return indirectSpecular+indirectDiffuse;}vec3 computeLightContribution(Material mat,vec3 lightPosition,vec3 lightColor) {highp vec3 n=mat.normal;highp vec3 v=normalize(-v_position_height.xyz);highp vec3 l=normalize(lightPosition);highp vec3 h=normalize(v+l);float NdotV=clamp(abs(dot(n,v)),0.001,1.0);float NdotL=saturate(dot(n,l));highp float NdotH=saturate(dot(n,h));float VdotH=saturate(dot(v,h));vec3 f=F_SchlickFast(mat.specularColor,VdotH);float g=V_GGXFast(NdotL,NdotV,mat.alphaRoughness);float d=D_GGX(NdotH,mat.alphaRoughness);vec3 diffuseTerm=(1.0-f)*diffuseLambertian(mat);vec3 specularTerm=f*g*d;vec3 transformed_normal=vec3(-n.xy,n.z);float lighting_factor; #ifdef RENDER_SHADOWS lighting_factor=shadowed_light_factor_normal(transformed_normal,v_pos_light_view_0,v_pos_light_view_1,v_depth_shadows); #else lighting_factor=NdotL; #endif vec3 directLightColor=(specularTerm+diffuseTerm)*lighting_factor*lightColor;vec3 indirectLightColor=computeIndirectLightContribution(mat,NdotV,transformed_normal);vec3 color=(saturate(directLightColor)+indirectLightColor);float intensityFactor=1.0; #if !defined(LIGHTING_3D_MODE) const vec3 luminosityFactor=vec3(0.2126,0.7152,0.0722);float luminance=dot(diffuseTerm,luminosityFactor);intensityFactor=mix((1.0-u_lightintensity),max((1.0-luminance+u_lightintensity),1.0),NdotL); #endif color*=intensityFactor;return color;}void main() { #ifdef TERRAIN_FRAGMENT_OCCLUSION if (isOccluded()) {discard;} #endif vec3 lightDir=u_lightpos;vec3 lightColor=u_lightcolor; #ifdef LIGHTING_3D_MODE lightDir=u_lighting_directional_dir;lightDir.xy=-lightDir.xy;lightColor=u_lighting_directional_color; #endif vec4 finalColor; #ifdef DIFFUSE_SHADED vec3 N=getNormal();vec3 baseColor=getBaseColor().rgb;vec3 diffuse=getDiffuseShadedColor(baseColor,N,lightDir,lightColor); #ifdef HAS_TEXTURE_u_occlusionTexture float ao=(texture(u_occlusionTexture,uv_2f).r-1.0)*u_aoIntensity+1.0;diffuse*=ao; #endif finalColor=vec4(mix(diffuse,baseColor,u_emissive_strength),1.0)*u_opacity; #else Material mat=getPBRMaterial();vec3 color=computeLightContribution(mat,lightDir,lightColor);float ao=1.0; #if defined (HAS_TEXTURE_u_occlusionTexture) && defined(HAS_ATTRIBUTE_a_uv_2f) #ifdef OCCLUSION_TEXTURE_TRANSFORM vec2 uv=uv_2f.xy*u_occlusionTextureTransform.zw+u_occlusionTextureTransform.xy; #else vec2 uv=uv_2f; #endif ao=(texture(u_occlusionTexture,uv).x-1.0)*u_aoIntensity+1.0;color*=ao; #endif vec4 emissive=u_emissiveFactor; #if defined(HAS_TEXTURE_u_emissionTexture) && defined(HAS_ATTRIBUTE_a_uv_2f) emissive.rgb*=sRGBToLinear(texture(u_emissionTexture,uv_2f).rgb); #endif color+=emissive.rgb;float opacity=mat.baseColor.w*u_opacity; #ifdef HAS_ATTRIBUTE_a_pbr float resEmission=v_roughness_metallic_emissive_alpha.z;resEmission*=v_height_based_emission_params.z+v_height_based_emission_params.w*pow(clamp(v_height_based_emission_params.x,0.0,1.0),v_height_based_emission_params.y);color=mix(color,v_color_mix.rgb,min(1.0,resEmission)); #ifdef HAS_ATTRIBUTE_a_color_4f float distance=length(vec2(1.3*max(0.0,abs(color_4f.x)-color_4f.z),color_4f.y));distance+= mix(0.5,0.0,clamp(resEmission-1.0,0.0,1.0));opacity*=v_roughness_metallic_emissive_alpha.w*saturate(1.0-distance*distance); #endif #endif vec3 unlitColor=mat.baseColor.rgb*ao+emissive.rgb;color=mix(color,unlitColor,u_emissive_strength);color=linearTosRGB(color);color*=opacity;finalColor=vec4(color,opacity); #endif #ifdef FOG finalColor=fog_dither(fog_apply_premultiplied(finalColor,v_fog_pos,v_position_height.w)); #endif #ifdef RENDER_CUTOFF finalColor*=v_cutoff_opacity; #endif #ifdef INDICATOR_CUTOUT finalColor=applyCutout(finalColor); #endif glFragColor=finalColor; #ifdef OVERDRAW_INSPECTOR glFragColor=vec4(1.0); #endif HANDLE_WIREFRAME_DEBUG;}`,`#include "_prelude_fog.vertex.glsl" #include "_prelude_shadow.vertex.glsl" in vec3 a_pos_3f; #pragma mapbox: define-attribute highp vec3 normal_3f #pragma mapbox: define-attribute highp vec2 uv_2f #pragma mapbox: define-attribute highp vec3 color_3f #pragma mapbox: define-attribute highp vec4 color_4f #pragma mapbox: define-attribute-vertex-shader-only highp vec4 pbr #pragma mapbox: define-attribute-vertex-shader-only highp vec3 heightBasedEmissiveStrength uniform mat4 u_matrix;uniform mat4 u_node_matrix;uniform mat4 u_lighting_matrix;uniform vec3 u_camera_pos;uniform vec4 u_color_mix; #ifdef INSTANCED_ARRAYS in vec4 a_normal_matrix0;in vec4 a_normal_matrix1;in vec4 a_normal_matrix2;in vec4 a_normal_matrix3; #else uniform highp mat4 u_normal_matrix; #endif #ifdef RENDER_SHADOWS uniform mat4 u_light_matrix_0;uniform mat4 u_light_matrix_1;out vec4 v_pos_light_view_0;out vec4 v_pos_light_view_1;out float v_depth_shadows; #endif out vec4 v_position_height;out lowp vec4 v_color_mix; #ifdef TERRAIN_FRAGMENT_OCCLUSION out highp float v_depth; #endif #ifdef HAS_ATTRIBUTE_a_pbr out lowp vec4 v_roughness_metallic_emissive_alpha;out mediump vec4 v_height_based_emission_params; #endif vec3 sRGBToLinear(vec3 srgbIn) {return pow(srgbIn,vec3(2.2));}void main() { #pragma mapbox: initialize-attribute highp vec3 normal_3f #pragma mapbox: initialize-attribute highp vec2 uv_2f #pragma mapbox: initialize-attribute highp vec3 color_3f #pragma mapbox: initialize-attribute highp vec4 color_4f #pragma mapbox: initialize-attribute-custom highp vec4 pbr #pragma mapbox: initialize-attribute-custom highp vec3 heightBasedEmissiveStrength highp mat4 normal_matrix; #ifdef INSTANCED_ARRAYS normal_matrix=mat4(a_normal_matrix0,a_normal_matrix1,a_normal_matrix2,a_normal_matrix3); #else normal_matrix=u_normal_matrix; #endif vec3 local_pos;mat3 rs; #ifdef MODEL_POSITION_ON_GPU vec3 pos_color=normal_matrix[0].xyz;vec4 translate=normal_matrix[1];vec3 pos_a=floor(pos_color);vec3 rgb=1.05*(pos_color-pos_a);float color_mix=pos_a.z/100.0;v_color_mix=vec4(sRGBToLinear(rgb),color_mix);float meter_to_tile=normal_matrix[0].w;vec4 pos=vec4(pos_a.xy,translate.z,1.0);rs[0].x=normal_matrix[1].w;rs[0].yz=normal_matrix[2].xy;rs[1].xy=normal_matrix[2].zw;rs[1].z=normal_matrix[3].x;rs[2].xyz=normal_matrix[3].yzw;vec4 pos_node=u_lighting_matrix*vec4(a_pos_3f,1.0);vec3 rotated_pos_node=rs*pos_node.xyz;vec3 pos_model_tile=(rotated_pos_node+vec3(translate.xy,0.0))*vec3(meter_to_tile,meter_to_tile,1.0);pos.xyz+=pos_model_tile;local_pos=pos.xyz;gl_Position=u_matrix*pos;pos.z*=meter_to_tile;v_position_height.xyz=pos.xyz-u_camera_pos; #else local_pos=a_pos_3f;gl_Position=u_matrix*vec4(a_pos_3f,1);v_position_height.xyz=vec3(u_lighting_matrix*vec4(a_pos_3f,1));v_color_mix=vec4(sRGBToLinear(u_color_mix.rgb),u_color_mix.a); #endif v_position_height.w=a_pos_3f.z; #ifdef HAS_ATTRIBUTE_a_pbr vec4 albedo_c=decode_color(pbr.xy);vec2 e_r_m=unpack_float(pbr.z);vec2 r_m= unpack_float(e_r_m.y*16.0);r_m.r=r_m.r*16.0;v_color_mix=vec4(albedo_c.rgb,1.0);v_roughness_metallic_emissive_alpha=vec4(vec3(r_m,e_r_m.x)/255.0,albedo_c.a);v_roughness_metallic_emissive_alpha.z*=2.0;float heightBasedRelativeIntepolation=a_pos_3f.z*heightBasedEmissiveStrength.x+heightBasedEmissiveStrength.y;v_height_based_emission_params.x=heightBasedRelativeIntepolation;v_height_based_emission_params.y=heightBasedEmissiveStrength.z;vec2 emissionMultiplierValues=unpack_float(pbr.w)/256.0;v_height_based_emission_params.z=emissionMultiplierValues.x;v_height_based_emission_params.w=emissionMultiplierValues.y-emissionMultiplierValues.x; #endif #ifdef FOG v_fog_pos=fog_position(local_pos); #endif #ifdef RENDER_CUTOFF v_cutoff_opacity=cutoff_opacity(u_cutoff_params,gl_Position.z); #endif #ifdef TERRAIN_FRAGMENT_OCCLUSION v_depth=gl_Position.z/gl_Position.w; #endif #ifdef HAS_ATTRIBUTE_a_normal_3f #ifdef MODEL_POSITION_ON_GPU float x_squared_scale=dot(rs[0],rs[0]);float y_squared_scale=dot(rs[1],rs[1]);float z_squared_scale=dot(rs[2],rs[2]);vec3 squared_scale=vec3(x_squared_scale,y_squared_scale,z_squared_scale);normal_3f=rs*((u_lighting_matrix*vec4(normal_3f,0.0)).xyz/squared_scale);normal_3f=normalize(normal_3f); #else normal_3f=vec3(normal_matrix*vec4(normal_3f,0)); #endif #endif #ifdef HAS_ATTRIBUTE_a_pbr #ifdef HAS_ATTRIBUTE_a_color_4f v_roughness_metallic_emissive_alpha.w=clamp(color_4f.a*v_roughness_metallic_emissive_alpha.w*(v_roughness_metallic_emissive_alpha.z-1.0),0.0,1.0); #endif #endif #ifdef RENDER_SHADOWS vec4 shadow_pos=u_node_matrix*vec4(local_pos,1.0); #ifdef NORMAL_OFFSET #ifdef HAS_ATTRIBUTE_a_normal_3f #ifdef MODEL_POSITION_ON_GPU vec3 offset=shadow_normal_offset(vec3(-normal_3f.xy,normal_3f.z));shadow_pos.xyz+=offset*shadow_normal_offset_multiplier0(); #else vec3 offset=shadow_normal_offset_model(normalize(normal_3f));shadow_pos.xyz+=offset*shadow_normal_offset_multiplier0(); #endif #endif #endif v_pos_light_view_0=u_light_matrix_0*shadow_pos;v_pos_light_view_1=u_light_matrix_1*shadow_pos;v_depth_shadows=gl_Position.w; #endif }`),modelDepth:io(`in highp float v_depth;void main() { #ifndef DEPTH_TEXTURE glFragColor=pack_depth(v_depth); #endif }`,`in vec3 a_pos_3f;uniform mat4 u_matrix;out highp float v_depth; #ifdef MODEL_POSITION_ON_GPU #ifdef INSTANCED_ARRAYS in vec4 a_normal_matrix0;in vec4 a_normal_matrix1;in vec4 a_normal_matrix2;in vec4 a_normal_matrix3; #else uniform highp mat4 u_instance; #endif uniform highp mat4 u_node_matrix; #endif void main() { #ifdef MODEL_POSITION_ON_GPU highp mat4 instance; #ifdef INSTANCED_ARRAYS instance=mat4(a_normal_matrix0,a_normal_matrix1,a_normal_matrix2,a_normal_matrix3); #else instance=u_instance; #endif vec3 pos_color=instance[0].xyz;vec4 translate=instance[1];vec3 pos_a=floor(pos_color);float meter_to_tile=instance[0].w;vec4 pos=vec4(pos_a.xy,translate.z,1.0);mat3 rs;rs[0].x=instance[1].w;rs[0].yz=instance[2].xy;rs[1].xy=instance[2].zw;rs[1].z=instance[3].x;rs[2].xyz=instance[3].yzw;vec4 pos_node=u_node_matrix*vec4(a_pos_3f,1.0);vec3 rotated_pos_node=rs*pos_node.xyz;vec3 pos_model_tile=(rotated_pos_node+vec3(translate.xy,0.0))*vec3(meter_to_tile,meter_to_tile,1.0);pos.xyz+=pos_model_tile;gl_Position=u_matrix*pos; #else gl_Position=u_matrix*vec4(a_pos_3f,1); #endif v_depth=gl_Position.z/gl_Position.w;}`),stars:io(`in highp vec2 v_uv;in mediump float v_intensity;float shapeCircle(in vec2 uv) {float beginFade=0.6;float lengthFromCenter=length(v_uv);return 1.0-clamp((lengthFromCenter-beginFade)/(1.0-beginFade),0.0,1.0);}void main() {float alpha=shapeCircle(v_uv);vec3 color=vec3(1.0,1.0,1.0);alpha*=v_intensity;glFragColor=vec4(color*alpha,alpha);HANDLE_WIREFRAME_DEBUG;}`,` in vec3 a_pos_3f;in vec2 a_uv;in float a_size_scale;in float a_fade_opacity;uniform mat4 u_matrix;uniform vec3 u_up;uniform vec3 u_right;uniform float u_intensity_multiplier;out highp vec2 v_uv;out mediump float v_intensity;void main() {v_uv=a_uv;v_intensity=a_fade_opacity*u_intensity_multiplier;vec3 pos=a_pos_3f;pos+=a_uv.x*u_right*a_size_scale;pos+=a_uv.y*u_up*a_size_scale;gl_Position=u_matrix*vec4(pos,1.0);}`)};function Am(v,d){let f=v.replace(/\s*\/\/[^\n]*\n/g,` `).split(` `);for(let y of f)if(y=y.trim(),y[0]==="#"&&y.includes("if")&&!y.includes("endif")){y=y.replace("#","").replace(/ifdef|ifndef|elif|if/g,"").replace(/!|defined|\(|\)|\|\||&&/g,"").replace(/\s+/g," ").trim();let w=y.split(" ");for(let E of w)d.includes(E)||d.push(E)}}function io(v,d){let f=/#include\s+"([^"]+)"/g,y=/#pragma mapbox: ([\w\-]+) ([\w]+) ([\w]+) ([\w]+)/g,w=d.match(/(attribute(\S*)|(^\s*|;)in) (highp |mediump |lowp )?([\w]+) ([\w]+)/gm);w&&(w=w.map(U=>{let G=U.split(" ");return G[G.length-1]}),w=[...new Set(w)]);let E={},D=[],R=[];if(v=v.replace(f,(U,G)=>(R.push(G),"")),(d=d.replace(f,(U,G)=>(D.push(G),""))).includes("flat out"))return void console.error('The usage of "flat" qualifier is disallowed, see: https://bugs.webkit.org/show_bug.cgi?id=268071');let B=[...cs];Am(v,B),Am(d,B);for(let U of[...D,...R])Jr[U]||console.error(`Undefined include: ${U}`),ky[U]||(ky[U]=[],Am(Jr[U],ky[U])),B=[...B,...ky[U]];return{fragmentSource:v=v.replace(y,(U,G,$,Q,te)=>(E[te]=!0,G==="define"?` #ifndef HAS_UNIFORM_u_${te} in ${$} ${Q} ${te}; #else uniform ${$} ${Q} u_${te}; #endif `:G==="initialize"?` #ifdef HAS_UNIFORM_u_${te} ${$} ${Q} ${te} = u_${te}; #endif `:G==="define-attribute"?` #ifdef HAS_ATTRIBUTE_a_${te} in ${$} ${Q} ${te}; #endif `:G==="initialize-attribute"?"":void 0)),vertexSource:d=d.replace(y,(U,G,$,Q,te)=>{let he=Q==="float"?"vec2":Q,me=te.match(/color/)?"color":he;return G==="define-attribute-vertex-shader-only"?` #ifdef HAS_ATTRIBUTE_a_${te} in ${$} ${Q} a_${te}; #endif `:E[te]?G==="define"?` #ifndef HAS_UNIFORM_u_${te} uniform lowp float u_${te}_t; in ${$} ${he} a_${te}; out ${$} ${Q} ${te}; #else uniform ${$} ${Q} u_${te}; #endif `:G==="initialize"?me==="vec4"?` #ifndef HAS_UNIFORM_u_${te} ${te} = a_${te}; #else ${$} ${Q} ${te} = u_${te}; #endif `:` #ifndef HAS_UNIFORM_u_${te} ${te} = unpack_mix_${me}(a_${te}, u_${te}_t); #else ${$} ${Q} ${te} = u_${te}; #endif `:G==="define-attribute"?` #ifdef HAS_ATTRIBUTE_a_${te} in ${$} ${Q} a_${te}; out ${$} ${Q} ${te}; #endif `:G==="initialize-attribute"?` #ifdef HAS_ATTRIBUTE_a_${te} ${te} = a_${te}; #endif `:void 0:G==="define"?` #ifndef HAS_UNIFORM_u_${te} uniform lowp float u_${te}_t; in ${$} ${he} a_${te}; #else uniform ${$} ${Q} u_${te}; #endif `:G==="define-instanced"?me==="mat4"?` #ifdef INSTANCED_ARRAYS in vec4 a_${te}0; in vec4 a_${te}1; in vec4 a_${te}2; in vec4 a_${te}3; #else uniform ${$} ${Q} u_${te}; #endif `:` #ifdef INSTANCED_ARRAYS in ${$} ${he} a_${te}; #else uniform ${$} ${Q} u_${te}; #endif `:G==="initialize-attribute-custom"?` #ifdef HAS_ATTRIBUTE_a_${te} ${$} ${Q} ${te} = a_${te}; #endif `:me==="vec4"?` #ifndef HAS_UNIFORM_u_${te} ${$} ${Q} ${te} = a_${te}; #else ${$} ${Q} ${te} = u_${te}; #endif `:` #ifndef HAS_UNIFORM_u_${te} ${$} ${Q} ${te} = unpack_mix_${me}(a_${te}, u_${te}_t); #else ${$} ${Q} ${te} = u_${te}; #endif `}),staticAttributes:w,usedDefines:B,vertexIncludes:D,fragmentIncludes:R}}class Tn{constructor(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffers=[],this.vao=null}bind(d,f,y,w,E,D,R,B){this.context=d;let U=this.boundPaintVertexBuffers.length!==w.length;for(let $=0;!U&&${let He=Ae.paint.get("hillshade-shadow-color"),Ze=Ae.paint.get("hillshade-highlight-color"),be=Ae.paint.get("hillshade-accent-color"),Oe=Ae.paint.get("hillshade-emissive-strength"),st=o.bm(Ae.paint.get("hillshade-illumination-direction"));if(Ae.paint.get("hillshade-illumination-anchor")==="viewport")st-=_e.transform.angle;else if(_e.style&&_e.style.enable3dLights()&&_e.style.directionalLight){let xt=_e.style.directionalLight.properties.get("direction"),Yt=o.bT(xt.x,xt.y,xt.z);st=o.bm(Yt[1])}let ot=!_e.options.moving;return{u_matrix:je||_e.transform.calculateProjMatrix(ye.tileID.toUnwrapped(),ot),u_image:0,u_latrange:Zo(0,ye.tileID),u_light:[Ae.paint.get("hillshade-exaggeration"),st],u_shadow:He,u_highlight:Ze,u_emissive_strength:Oe,u_accent:be}})(v,f,y,v.terrain?d.projMatrix:null);v.uploadCommonUniforms(R,$,d.toUnwrapped());let{tileBoundsBuffer:te,tileBoundsIndexBuffer:he,tileBoundsSegments:me}=v.getTileBoundsBuffers(f);$.draw(v,B.TRIANGLES,w,E,D,Cr.disabled,Q,y.id,te,he,me)}function ah(v,d,f){if(!d.needsDEMTextureUpload)return;let y=v.context,w=y.gl;y.pixelStoreUnpackPremultiplyAlpha.set(!1),d.demTexture=d.demTexture||v.getTileTexture(f.stride);let E=f.getPixels();d.demTexture?d.demTexture.update(E,{premultiply:!1}):d.demTexture=new o.T(y,E,w.R32F,{premultiply:!1}),d.needsDEMTextureUpload=!1}function Sv(v,d,f){let y=v.context,w=y.gl;if(!d.dem)return;let E=d.dem;if(y.activeTexture.set(w.TEXTURE1),ah(v,d,E),!d.demTexture)return;d.demTexture.bind(w.NEAREST,w.CLAMP_TO_EDGE);let D=E.dim;y.activeTexture.set(w.TEXTURE0);let R=d.hillshadeFBO;if(!R){let Q=new o.T(y,{width:D,height:D,data:null},w.RGBA);Q.bind(w.LINEAR,w.CLAMP_TO_EDGE),R=d.hillshadeFBO=y.createFramebuffer(D,D,!0,"renderbuffer"),R.colorAttachment.set(Q.texture)}y.bindFramebuffer.set(R.framebuffer),y.viewport.set([0,0,D,D]);let{tileBoundsBuffer:B,tileBoundsIndexBuffer:U,tileBoundsSegments:G}=v.getMercatorTileBoundsBuffers(),$=[];v.linearFloatFilteringSupported()&&$.push("TERRAIN_DEM_FLOAT_FORMAT"),v.getOrCreateProgram("hillshadePrepare",{defines:$}).draw(v,w.TRIANGLES,or.disabled,Fr.disabled,lo.unblended,Cr.disabled,((Q,te)=>{let he=te.stride,me=o.a9.create();return o.a9.ortho(me,0,o.Y,-o.Y,0,0,1),o.a9.translate(me,me,[0,-o.Y,0]),{u_matrix:me,u_image:1,u_dimension:[he,he],u_zoom:Q.overscaledZ}})(d.tileID,E),f.id,B,U,G),d.needsHillshadePrepare=!1}let Eo=v=>({u_matrix:new o.bN(v),u_image0:new o.bR(v),u_skirt_height:new o.bQ(v),u_ground_shadow_factor:new o.bP(v)}),F1=(v,d,f)=>({u_matrix:v,u_image0:0,u_skirt_height:d,u_ground_shadow_factor:f}),Ev=(v,d,f,y,w,E,D,R,B,U,G,$,Q,te,he,me)=>({u_proj_matrix:Float32Array.from(v),u_globe_matrix:d,u_normalize_matrix:Float32Array.from(y),u_merc_matrix:f,u_zoom_transition:w,u_merc_center:E,u_image0:0,u_frustum_tl:D,u_frustum_tr:R,u_frustum_br:B,u_frustum_bl:U,u_globe_pos:G,u_globe_radius:$,u_viewport:Q,u_grid_matrix:me?Float32Array.from(me):new Float32Array(9),u_skirt_height:te,u_far_z_cutoff:he});function Oy(v,d){return v!=null&&d!=null&&!(!v.hasData()||!d.hasData())&&v.demTexture!=null&&d.demTexture!=null&&v.tileID.key!==d.tileID.key}let mc=new class{constructor(){this.operations={}}newMorphing(v,d,f,y,w){if(v in this.operations){let E=this.operations[v];E.to.tileID.key!==f.tileID.key&&(E.queued=f)}else this.operations[v]={startTime:y,phase:0,duration:w,from:d,to:f,queued:null}}getMorphValuesForProxy(v){if(!(v in this.operations))return null;let d=this.operations[v];return{from:d.from,to:d.to,phase:d.phase}}update(v){for(let d in this.operations){let f=this.operations[d];for(f.phase=(v-f.startTime)/f.duration;f.phase>=1||!this._validOp(f);)if(!this._nextOp(f,v)){delete this.operations[d];break}}}_nextOp(v,d){return!!v.queued&&(v.from=v.to,v.to=v.queued,v.queued=null,v.phase=0,v.startTime=d,!0)}_validOp(v){return v.from.hasData()&&v.to.hasData()}},Ha={0:null,1:"TERRAIN_VERTEX_MORPHING"};function mE(v,d,f){if(d===0)return 0;let y=d<1&&f===514?.25/d:1;return 6*Math.pow(1.5,22-v)*Math.max(d,1)*y}function Ry(v,d){let f=1<({u_matrix:v});function Dm(v,d,f,y,w){if(w>0){let E=o.f.now(),D=(E-v.timeAdded)/w,R=d?(E-d.timeAdded)/w:-1,B=f.getSource(),U=y.coveringZoomLevel({tileSize:B.tileSize,roundZoom:B.roundZoom}),G=!d||Math.abs(d.tileID.overscaledZ-U)>Math.abs(v.tileID.overscaledZ-U),$=G&&v.refreshedUponExpiration?1:o.ad(G?D:1-R,0,1);return v.refreshedUponExpiration&&D>=1&&(v.refreshedUponExpiration=!1),d?{opacity:1,mix:1-$}:{opacity:$,mix:0}}return{opacity:1,mix:0}}class Mk extends Ph{constructor(d){let f={type:"raster-dem",maxzoom:d.transform.maxZoom},y=new o.bZ(o.b_(),null),w=yk("mock-dem",f,y,d.style);super("mock-dem",w,!1),w.setEventedParent(this),this._sourceLoaded=!0}_loadTile(d,f){d.state="loaded",f(null)}}class gE extends Ph{constructor(d){let f=yk("proxy",{type:"geojson",maxzoom:d.transform.maxZoom},new o.bZ(o.b_(),null),d.style);super("proxy",f,!1),f.setEventedParent(this),this.map=this.getSource().map=d,this.used=this._sourceLoaded=!0,this.renderCache=[],this.renderCachePool=[],this.proxyCachedFBO={}}update(d,f,y){if(d.freezeTileCoverage)return;this.transform=d;let w=d.coveringTiles({tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled}).reduce((E,D)=>{if(E[D.key]="",!this._tiles[D.key]){let R=new Nh(D,this._source.tileSize*D.overscaleFactor(),d.tileZoom);R.state="loaded",this._tiles[D.key]=R}return E},{});for(let E in this._tiles)E in w||(this.freeFBO(E),this._tiles[E].unloadVectorData(),delete this._tiles[E])}freeFBO(d){let f=this.proxyCachedFBO[d];if(f!==void 0){let y=Object.values(f);this.renderCachePool.push(...y),delete this.proxyCachedFBO[d]}}deallocRenderCache(){this.renderCache.forEach(d=>d.fb.destroy()),this.renderCache=[],this.renderCachePool=[],this.proxyCachedFBO={}}}class Yc extends o.ap{constructor(d,f,y){super(d.overscaledZ,d.wrap,d.canonical.z,d.canonical.x,d.canonical.y),this.proxyTileKey=f,this.projMatrix=y}}class ed extends o.cp{constructor(d,f){super(),this._debugParams={sortTilesHiZFirst:!0,disableRenderCache:!1},d.tp.registerParameter(this._debugParams,["Terrain"],"sortTilesHiZFirst",{},()=>{this._style.map.triggerRepaint()}),d.tp.registerParameter(this._debugParams,["Terrain"],"disableRenderCache",{},()=>{this._style.map.triggerRepaint()}),d.tp.registerButton(["Terrain"],"Invalidate Render Cache",()=>{this.invalidateRenderCache=!0,this._style.map.triggerRepaint()}),this.painter=d,this.terrainTileForTile={},this.prevTerrainTileForTile={};let[y,w,E]=function(B){let U=new o.aQ,G=new o.az,$=131;U.reserve(17161),G.reserve(33800);let Q=o.Y/128,te=o.Y+Q/2,he=te+Q;for(let _e=-Q;_ete||_e<0||_e>te?24575:0,je=o.ad(Math.round(ye),0,o.Y),He=o.ad(Math.round(_e),0,o.Y);U.emplaceBack(je+Ae,He)}let me=(_e,ye)=>{let Ae=ye*$+_e;G.emplaceBack(Ae+1,Ae,Ae+$),G.emplaceBack(Ae+$,Ae+$+1,Ae+1)};for(let _e=1;_e<129;_e++)for(let ye=1;ye<129;ye++)me(ye,_e);return[0,129].forEach(_e=>{for(let ye=0;ye<130;ye++)me(ye,_e),me(_e,ye)}),[U,G,32768]}(),D=d.context;this.gridBuffer=D.createVertexBuffer(y,o.aS.members),this.gridIndexBuffer=D.createIndexBuffer(w),this.gridSegments=o.aE.simpleSegment(0,0,y.length,w.length),this.gridNoSkirtSegments=o.aE.simpleSegment(0,0,y.length,E),this.proxyCoords=[],this.proxiedCoords={},this._visibleDemTiles=[],this._drapedRenderBatches=[],this._sourceTilesOverlap={},this.proxySourceCache=new gE(f.map),this.orthoMatrix=o.a9.create(),o.a9.ortho(this.orthoMatrix,this.painter.transform.projection.name==="globe"?.015:0,o.Y,0,o.Y,0,1);let R=D.gl;this._overlapStencilMode=new Fr({func:R.GEQUAL,mask:255},0,255,R.KEEP,R.KEEP,R.REPLACE),this._previousZoom=d.transform.zoom,this.pool=[],this._findCoveringTileCache={},this._tilesDirty={},this.style=f,this._useVertexMorphing=!0,this._exaggeration=1,this._mockSourceCache=new Mk(f.map),this._pendingGroundEffectLayers=[]}set style(d){d.on("data",this._onStyleDataEvent.bind(this)),this._style=d,this._style.map.on("moveend",()=>{this._clearLineLayersFromRenderCache()})}update(d,f,y){if(d&&d.terrain){this._style!==d&&(this.style=d,this._evaluationZoom=void 0);let w=d.terrain.properties,E=d.terrain.drapeRenderMode===0,D=d.terrain.isZoomDependent();this._previousUpdateTimestamp=this.enabled?this._updateTimestamp:void 0,this._updateTimestamp=o.f.now();let R=d.terrain&&d.terrain.scope,B=w.get("source"),U=E?this._mockSourceCache:d.getSourceCache(B,R);if(!U)return void o.w(`Couldn't find terrain source "${B}".`);if(this.sourceCache=U,this._exaggeration=D?this.calculateExaggeration(f):w.get("exaggeration"),!f.projection.requiresDraping&&D&&this._exaggeration===0)return void this._disable();this.enabled=!0;let G=()=>{this.sourceCache.used&&o.w(`Raster DEM source '${this.sourceCache.id}' is used both for terrain and as layer source. This leads to lower resolution of hillshade. For full hillshade resolution but higher memory consumption, define another raster DEM source.`);let $=this.getScaledDemTileSize();this.sourceCache.update(f,$,!0),this.resetTileLookupCache(this.sourceCache.id)};this.sourceCache.usedForTerrain||(this.resetTileLookupCache(this.sourceCache.id),this.sourceCache.usedForTerrain=!0,G(),this._initializing=!0),G(),f.updateElevation(!0,y),this.resetTileLookupCache(this.proxySourceCache.id),this.proxySourceCache.update(f),this._emptyDEMTextureDirty=!0,this._previousZoom=f.zoom}else this._disable()}calculateExaggeration(d){let f=this._previousCameraAltitude,y=d.getFreeCameraOptions().position.z/d.pixelsPerMeter*d.worldSize;this._previousCameraAltitude=y;let w=f!=null?y-f:Number.MAX_VALUE;if(Math.abs(w)<2)return this._exaggeration;let E=d.zoom,D=this._style.terrain;if(!this._previousUpdateTimestamp)return D.getExaggeration(E);let R=E-this._previousZoom,B=this._previousUpdateTimestamp,U=E;this._evaluationZoom!=null&&(U=this._evaluationZoom,Math.abs(E-U)>.5&&(R=.5*(E-U+R)),R*w<0&&(U+=R)),this._evaluationZoom=U;let G=D.getExaggeration(U),$=G===D.getExaggeration(Math.max(0,U-.1));if($&&Math.abs(G-this._exaggeration)<.01)return G;let Q=Math.min(.1,.00375*(this._updateTimestamp-B));return($||G<.1||Math.abs(R)<1e-4)&&(Q=Math.min(.2,4*Q)),o.X(this._exaggeration,G,Q)}resetTileLookupCache(d){this._findCoveringTileCache[d]={}}getScaledDemTileSize(){return this.sourceCache.getSource().tileSize/128*this.proxySourceCache.getSource().tileSize}_onStyleDataEvent(d){d.coord&&d.dataType==="source"?this._clearRenderCacheForTile(d.sourceCacheId,d.coord):d.dataType==="style"&&(this.invalidateRenderCache=!0,this._evaluationZoom=void 0,this._previousUpdateTimestamp=void 0,this._previousCameraAltitude=void 0)}_disable(){if(this.enabled&&(this.enabled=!1,this._sharedDepthStencil=void 0,this._evaluationZoom=void 0,this._previousUpdateTimestamp=void 0,this.proxySourceCache.deallocRenderCache(),this._style))for(let d in this._style._mergedSourceCaches)this._style._mergedSourceCaches[d].usedForTerrain=!1}destroy(){this._disable(),this._emptyDEMTexture&&this._emptyDEMTexture.destroy(),this._emptyDepthBufferTexture&&this._emptyDepthBufferTexture.destroy(),this.pool.forEach(d=>d.fb.destroy()),this.pool=[],this._depthFBO&&(this._depthFBO.destroy(),this._depthFBO=void 0,this._depthTexture=void 0),this.framebufferCopyTexture&&this.framebufferCopyTexture.destroy()}_source(){return this.enabled?this.sourceCache:null}isUsingMockSource(){return this.sourceCache===this._mockSourceCache}exaggeration(){return this._exaggeration}get visibleDemTiles(){return this._visibleDemTiles}get drapeBufferSize(){let d=2*this.proxySourceCache.getSource().tileSize;return[d,d]}set useVertexMorphing(d){this._useVertexMorphing=d}updateTileBinding(d){if(!this.enabled)return;this.prevTerrainTileForTile=this.terrainTileForTile;let f=this.proxySourceCache,y=this.painter.transform;this._initializing&&(this._initializing=y._centerAltitude===0&&this.getAtPointOrZero(o.O.fromLngLat(y.center),-1)===-1,this._emptyDEMTextureDirty=!this._initializing);let w=this.proxyCoords=f.getIds().map(B=>{let U=f.getTileByID(B).tileID;return U.projMatrix=y.calculateProjMatrix(U.toUnwrapped()),U});(function(B,U){let G=U.transform.pointCoordinate(U.transform.getCameraPoint()),$=new o.P(G.x,G.y);B.sort((Q,te)=>{if(te.overscaledZ-Q.overscaledZ)return te.overscaledZ-Q.overscaledZ;let he=new o.P(Q.canonical.x+(1<{this.proxyToSource[B.key]={}}),this.terrainTileForTile={};let D=this._style._mergedSourceCaches;for(let B in D){let U=D[B];if(!U.used||(U!==this.sourceCache&&this.resetTileLookupCache(U.id),this._setupProxiedCoordsForOrtho(U,d[B],E),U.usedForTerrain))continue;let G=d[B];U.getSource().reparseOverscaled&&this._assignTerrainTiles(G)}this.proxiedCoords[f.id]=w.map(B=>new Yc(B,B.key,this.orthoMatrix)),this._assignTerrainTiles(w),this._prepareDEMTextures(),this._setupDrapedRenderBatches(),this._initFBOPool(),this._setupRenderCache(E),this.renderingToTexture=!1;let R={};this._visibleDemTiles=[];for(let B of this.proxyCoords){let U=this.terrainTileForTile[B.key];if(!U)continue;let G=U.tileID.key;G in R||(this._visibleDemTiles.push(U),R[G]=G)}}_assignTerrainTiles(d){this._initializing||d.forEach(f=>{if(this.terrainTileForTile[f.key])return;let y=this._findTileCoveringTileID(f,this.sourceCache);y&&(this.terrainTileForTile[f.key]=y)})}_prepareDEMTextures(){let d=this.painter.context,f=d.gl;for(let y in this.terrainTileForTile){let w=this.terrainTileForTile[y],E=w.dem;!E||w.demTexture&&!w.needsDEMTextureUpload||(d.activeTexture.set(f.TEXTURE1),ah(this.painter,w,E))}}_prepareDemTileUniforms(d,f,y,w){if(!f||f.demTexture==null)return!1;let E=d.tileID.canonical,D=Math.pow(2,f.tileID.canonical.z-E.z),R=w||"";return y[`u_dem_tl${R}`]=[E.x*D%1,E.y*D%1],y[`u_dem_scale${R}`]=D,!0}get emptyDEMTexture(){return!this._emptyDEMTextureDirty&&this._emptyDEMTexture?this._emptyDEMTexture:this._updateEmptyDEMTexture()}get emptyDepthBufferTexture(){let d=this.painter.context,f=d.gl;if(!this._emptyDepthBufferTexture){let y=new o.h({width:1,height:1},Uint8Array.of(255,255,255,255));this._emptyDepthBufferTexture=new o.T(d,y,f.RGBA,{premultiply:!1})}return this._emptyDepthBufferTexture}_getLoadedAreaMinimum(){let d=0,f=this._visibleDemTiles.reduce((y,w)=>{if(!w.dem)return y;let E=w.dem.tree.minimums[0];return E>0&&d++,y+E},0);return d?f/d:0}_updateEmptyDEMTexture(){let d=this.painter.context,f=d.gl;d.activeTexture.set(f.TEXTURE2);let y=this._getLoadedAreaMinimum(),[w,E]=(()=>{let R=new o.cr({width:1,height:1},new Float32Array([y]));return[f.R32F,R]})();this._emptyDEMTextureDirty=!1;let D=this._emptyDEMTexture;return D?D.update(E,{premultiply:!1}):D=this._emptyDEMTexture=new o.T(d,E,w,{premultiply:!1}),D}setupElevationDraw(d,f,y){let w=this.painter.context,E=w.gl,D={u_dem:2,u_dem_prev:4,u_dem_tl:[0,0],u_dem_tl_prev:[0,0],u_dem_scale:0,u_dem_scale_prev:0,u_dem_size:0,u_dem_lerp:1,u_depth:3,u_depth_size_inv:[0,0],u_exaggeration:0};D.u_exaggeration=this.exaggeration();let R=null,B=null,U=1;if(y&&y.morphing&&this._useVertexMorphing){let Q=y.morphing.srcDemTile,te=y.morphing.dstDemTile;U=y.morphing.phase,Q&&te&&(this._prepareDemTileUniforms(d,Q,D,"_prev")&&(B=Q),this._prepareDemTileUniforms(d,te,D)&&(R=te))}let G=Q=>Q&&Q.demTexture&&this.painter.linearFloatFilteringSupported()?E.LINEAR:E.NEAREST,$=Q=>{D.u_dem_size=Q.size[0]===1?1:Q.size[0]-2};if(B&&R)w.activeTexture.set(E.TEXTURE2),R.demTexture.bind(G(R),E.CLAMP_TO_EDGE),w.activeTexture.set(E.TEXTURE4),B.demTexture.bind(G(B),E.CLAMP_TO_EDGE),R.demTexture&&$(R.demTexture),D.u_dem_lerp=U;else{R=this.terrainTileForTile[d.tileID.key],w.activeTexture.set(E.TEXTURE2);let Q=this._prepareDemTileUniforms(d,R,D)?R.demTexture:this.emptyDEMTexture;Q.bind(G(R),E.CLAMP_TO_EDGE),$(Q)}if(w.activeTexture.set(E.TEXTURE3),y&&y.useDepthForOcclusion?(this._depthTexture&&this._depthTexture.bind(E.NEAREST,E.CLAMP_TO_EDGE),this._depthFBO&&(D.u_depth_size_inv=[1/this._depthFBO.width,1/this._depthFBO.height])):(this.emptyDepthBufferTexture.bind(E.NEAREST,E.CLAMP_TO_EDGE),D.u_depth_size_inv=[1,1]),y&&y.useMeterToDem&&R){let Q=(1<{if(ye===Zt)return;let ft=[Ha[Zt],"PROJECTION_GLOBE_VIEW"];je&&ft.push("CUSTOM_ANTIALIASING");let kt=U.isTileAffectedByFog(zt);_e=U.getOrCreateProgram("globeRaster",{defines:ft,overrideFog:kt}),ye=Zt},Ze=U.colorModeForRenderPass(),be=new or(me.LEQUAL,or.ReadWrite,U.depthRangeFor3D);mc.update(te);let Oe=o.cj(Ae),st=[o.a8(Ae.center.lng),o.ah(Ae.center.lat)],ot=U.globeSharedBuffers,xt=[Ae.width*o.f.devicePixelRatio,Ae.height*o.f.devicePixelRatio],Yt=Float32Array.from(Ae.globeMatrix),gt={useDenormalizedUpVectorScale:!0};{let zt=U.transform,Zt=mE(zt.zoom,G.exaggeration(),G.sourceCache._source.tileSize);ye=-1;let ft=me.TRIANGLES;for(let kt of Q){let Si=$.getTile(kt),St=Fr.disabled,jt=G.prevTerrainTileForTile[kt.key],$t=G.terrainTileForTile[kt.key];Oy(jt,$t)&&mc.newMorphing(kt.key,jt,$t,te,250),he.activeTexture.set(me.TEXTURE0),Si.texture&&Si.texture.bind(me.LINEAR,me.CLAMP_TO_EDGE);let Ge=mc.getMorphValuesForProxy(kt.key),hi=Ge?1:0;Ge&&o.k(gt,{morphing:{srcDemTile:Ge.from,dstDemTile:Ge.to,phase:o.ch(Ge.phase)}});let mn=o.ck(kt.canonical),Nn=o.cl(mn.getCenter().lat),Kn=o.cm(kt.canonical,mn,Nn,zt.worldSize/zt._pixelsPerMercatorPixel),Hn=o.aW(o.cn(kt.canonical)),rr=Ev(zt.expandedFarZProjMatrix,Yt,Oe,Hn,o.W(zt.zoom),st,zt.frustumCorners.TL,zt.frustumCorners.TR,zt.frustumCorners.BR,zt.frustumCorners.BL,zt.globeCenterInViewSpace,zt.globeRadius,xt,Zt,zt._farZ,Kn);if(He(kt,hi),_e&&(G.setupElevationDraw(Si,_e,gt),U.uploadCommonUniforms(he,_e,kt.toUnwrapped()),ot)){let[vo,Or,No]=ot.getGridBuffers(Nn,Zt!==0);_e.draw(U,ft,be,St,Ze,Cr.backCCW,rr,"globe_raster",vo,Or,No)}}}if(ot&&(U.renderDefaultNorthPole||U.renderDefaultSouthPole)){let zt=["GLOBE_POLES","PROJECTION_GLOBE_VIEW"];je&&zt.push("CUSTOM_ANTIALIASING"),_e=U.getOrCreateProgram("globeRaster",{defines:zt});for(let Zt of Q){let{x:ft,y:kt,z:Si}=Zt.canonical,St=kt===0,jt=kt===(1<vo.draw(U,me.TRIANGLES,be,Fr.disabled,Ze,Cr.disabled,Ev(Ae.expandedFarZProjMatrix,Kn,Kn,Hn,0,st,Ae.frustumCorners.TL,Ae.frustumCorners.TR,Ae.frustumCorners.BR,Ae.frustumCorners.BL,Ae.globeCenterInViewSpace,Ae.globeRadius,xt,0,Ae._farZ),"globe_pole_raster",Or,hi,mn);G.setupElevationDraw(Nn,_e,gt),U.uploadCommonUniforms(he,_e,Zt.toUnwrapped()),St&&U.renderDefaultNorthPole&&rr(_e,$t),jt&&U.renderDefaultSouthPole&&(Kn=o.a9.scale(o.a9.create(),Kn,[1,-1,1]),rr(_e,Ge))}}}})(w,E,D,R,B);else{let U=w.context,G=U.gl,$,Q,te=w.shadowRenderer,he=Tm(w,w.longestCutoffRange),me=Ze=>{if(Q===Ze)return;let be=[];be.push(Ha[Ze]),he.shouldRenderCutoff&&be.push("RENDER_CUTOFF"),$=w.getOrCreateProgram("terrainRaster",{defines:be}),Q=Ze},_e=w.colorModeForRenderPass(),ye=new or(G.LEQUAL,or.ReadWrite,w.depthRangeFor3D);mc.update(B);let Ae=w.transform,je=mE(Ae.zoom,E.exaggeration(),E.sourceCache._source.tileSize),He=[0,0,0];if(te){let Ze=w.style.directionalLight,be=w.style.ambientLight;Ze&&be&&(He=Ak(Ze,be))}{Q=-1;let Ze=G.TRIANGLES,[be,Oe]=[E.gridIndexBuffer,E.gridSegments];for(let st of R){let ot=D.getTile(st),xt=Fr.disabled,Yt=E.prevTerrainTileForTile[st.key],gt=E.terrainTileForTile[st.key];Oy(Yt,gt)&&mc.newMorphing(st.key,Yt,gt,B,250),U.activeTexture.set(G.TEXTURE0),ot.texture&&ot.texture.bind(G.LINEAR,G.CLAMP_TO_EDGE);let zt=mc.getMorphValuesForProxy(st.key),Zt=zt?1:0,ft;zt&&(ft={morphing:{srcDemTile:zt.from,dstDemTile:zt.to,phase:o.ch(zt.phase)}});let kt=F1(st.projMatrix,Ry(st.canonical,Ae.renderWorldCopies)?je/10:je,He);if(me(Zt),!$)continue;E.setupElevationDraw(ot,$,ft);let Si=st.toUnwrapped();te&&te.setupShadows(Si,$),w.uploadCommonUniforms(U,$,Si,null,he),$.draw(w,Ze,ye,xt,_e,Cr.backCCW,kt,"terrain_raster",E.gridBuffer,be,Oe)}}}}(f,this,this.proxySourceCache,d,this._updateTimestamp),this.renderingToTexture=!0,f.gpuTimingDeferredRenderEnd(),d.splice(0,d.length))}renderBatch(d){if(this._drapedRenderBatches.length===0)return d+1;this.renderingToTexture=!0;let f=this.painter,y=this.painter.context,w=this.proxySourceCache,E=this.proxiedCoords[w.id],D=this._drapedRenderBatches.shift(),R=f.style.order,B=[],U=0;for(let G of E){let $=w.getTileByID(G.proxyTileKey),Q=w.proxyCachedFBO[G.key]?w.proxyCachedFBO[G.key][d]:void 0,te=Q!==void 0?w.renderCache[Q]:this.pool[U++],he=Q!==void 0;if($.texture=te.tex,he&&!te.dirty){B.push($.tileID);continue}let me;y.bindFramebuffer.set(te.fb.framebuffer),this.renderedToTile=!1,te.dirty&&(y.clear({color:o.aA.transparent,stencil:0}),te.dirty=!1);for(let _e=D.start;_e<=D.end;++_e){let ye=f.style._mergedLayers[R[_e]];if(ye.isHidden(f.transform.zoom))continue;let Ae=f.style.getLayerSourceCache(ye),je=Ae?this.proxyToSource[G.key][Ae.id]:[G];if(!je)continue;let He=je;y.viewport.set([0,0,te.fb.width,te.fb.height]),me!==(Ae?Ae.id:null)&&(this._setupStencil(te,je,ye,Ae),me=Ae?Ae.id:null),f.renderLayer(f,Ae,ye,He)}if(this._drapedRenderBatches.length===0)for(let _e of this._pendingGroundEffectLayers){let ye=f.style._mergedLayers[R[_e]];if(ye.isHidden(f.transform.zoom))continue;let Ae=f.style.getLayerSourceCache(ye),je=Ae?this.proxyToSource[G.key][Ae.id]:[G];if(!je)continue;let He=je;y.viewport.set([0,0,te.fb.width,te.fb.height]),me!==(Ae?Ae.id:null)&&(this._setupStencil(te,je,ye,Ae),me=Ae?Ae.id:null),f.renderLayer(f,Ae,ye,He)}this.renderedToTile?(te.dirty=!0,B.push($.tileID)):he||--U,U===5&&(U=0,this.renderToBackBuffer(B))}return this.renderToBackBuffer(B),this.renderingToTexture=!1,y.bindFramebuffer.set(null),y.viewport.set([0,0,f.width,f.height]),D.end+1}postRender(){}isLayerOrderingCorrect(d){let f=d.order.length,y=-1,w=f;for(let E=0;Ey}getMinElevationBelowMSL(){let d=0;return this._visibleDemTiles.filter(f=>f.dem).forEach(f=>{d=Math.min(d,f.dem.tree.minimums[0])}),d===0?d:(d-30)*this._exaggeration}raycast(d,f,y){if(!this._visibleDemTiles)return null;let w=this._visibleDemTiles.filter(E=>E.dem).map(E=>{let D=E.tileID,R=1<(E.t!==null?E.t:Number.MAX_VALUE)-(D.t!==null?D.t:Number.MAX_VALUE));for(let E of w){if(E.t==null)return null;let D=E.tile.dem.tree.raycast(E.minx,E.miny,E.maxx,E.maxy,d,f,y);if(D!=null)return D}return null}_createFBO(){let d=this.painter.context,f=d.gl,y=this.drapeBufferSize;d.activeTexture.set(f.TEXTURE0);let w=new o.T(d,{width:y[0],height:y[1],data:null},f.RGBA);w.bind(f.LINEAR,f.CLAMP_TO_EDGE);let E=d.createFramebuffer(y[0],y[1],!0,null);return E.colorAttachment.set(w.texture),E.depthAttachment=new lP(d,E.framebuffer),this._sharedDepthStencil===void 0?(this._sharedDepthStencil=d.createRenderbuffer(d.gl.DEPTH_STENCIL,y[0],y[1]),this._stencilRef=0,E.depthAttachment.set(this._sharedDepthStencil),d.clear({stencil:0})):E.depthAttachment.set(this._sharedDepthStencil),d.extTextureFilterAnisotropic&&f.texParameterf(f.TEXTURE_2D,d.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,d.extTextureFilterAnisotropicMax),{fb:E,tex:w,dirty:!1}}_initFBOPool(){for(;this.pool.length{let f=this._style._mergedLayers[d],y=f.isHidden(this.painter.transform.zoom);return f.type==="custom"?!y&&f.shouldRedrape():!y&&f.hasTransition()})}_clearLineLayersFromRenderCache(){let d=!1;for(let y of this._style.getSources())if(y instanceof ln){d=!0;break}if(!d)return;let f={};for(let y=0;yB>R.end)||o.w("fill-extrusion with flood lighting and/or ground ambient occlusion should be moved to be on top of all draped layers.")}this._drapedRenderBatches=y}_setupRenderCache(d){let f=this.proxySourceCache;if(this._shouldDisableRenderCache()||this.invalidateRenderCache){if(this.invalidateRenderCache=!1,f.renderCache.length>f.renderCachePool.length){let D=Object.values(f.proxyCachedFBO);f.proxyCachedFBO={};for(let R=0;R=0;D--){let R=y[D];if(f.getTileByID(R.key),f.proxyCachedFBO[R.key]!==void 0){let B=d[R.key],U=this.proxyToSource[R.key],G=0;for(let $ in U){let Q=U[$],te=B[$];if(!te||te.length!==Q.length||Q.some((he,me)=>he!==te[me]||w[$]&&w[$].hasOwnProperty(he.key))){G=-1;break}++G}for(let $ in f.proxyCachedFBO[R.key])f.renderCache[f.proxyCachedFBO[R.key][$]].dirty=G<0||G!==Object.values(B).length}}let E=[...this._drapedRenderBatches];E.sort((D,R)=>R.end-R.start-(D.end-D.start));for(let D of E)for(let R of y){if(f.proxyCachedFBO[R.key])continue;let B=f.renderCachePool.pop();B===void 0&&f.renderCache.length<50&&(B=f.renderCache.length,f.renderCache.push(this._createFBO())),B!==void 0&&(f.proxyCachedFBO[R.key]={},f.proxyCachedFBO[R.key][D.start]=B,f.renderCache[B].dirty=!0)}this._tilesDirty={}}_setupStencil(d,f,y,w){if(!w||!this._sourceTilesOverlap[w.id])return void(this._overlapStencilType&&(this._overlapStencilType=!1));let E=this.painter.context,D=E.gl;if(f.length<=1)return void(this._overlapStencilType=!1);let R;if(y.isTileClipped())R=f.length,this._overlapStencilMode.test={func:D.EQUAL,mask:255},this._overlapStencilType="Clip";else{if(!(f[0].overscaledZ>f[f.length-1].overscaledZ))return void(this._overlapStencilType=!1);R=1,this._overlapStencilMode.test={func:D.GREATER,mask:255},this._overlapStencilType="Mask"}this._stencilRef+R>255&&(E.clear({stencil:0}),this._stencilRef=0),this._stencilRef+=R,this._overlapStencilMode.ref=this._stencilRef,y.isTileClipped()&&this._renderTileClippingMasks(f,this._overlapStencilMode.ref)}clipOrMaskOverlapStencilType(){return this._overlapStencilType==="Clip"||this._overlapStencilType==="Mask"}stencilModeForRTTOverlap(d){return this.renderingToTexture&&this._overlapStencilType?(this._overlapStencilType==="Clip"&&(this._overlapStencilMode.ref=this.painter._tileClippingMaskIDs[d.key]),this._overlapStencilMode):Fr.disabled}_renderTileClippingMasks(d,f){let y=this.painter,w=this.painter.context,E=w.gl;y._tileClippingMaskIDs={},w.setColorMode(lo.disabled),w.setDepthMode(or.disabled);let D=y.getOrCreateProgram("clippingMask");for(let R of d){let B=y._tileClippingMaskIDs[R.key]=--f;D.draw(y,E.TRIANGLES,or.disabled,new Fr({func:E.ALWAYS,mask:0},B,255,E.KEEP,E.KEEP,E.REPLACE),lo.disabled,Cr.disabled,Ny(R.projMatrix),"$clipping",y.tileExtentBuffer,y.quadTriangleIndexBuffer,y.tileExtentSegments)}}pointCoordinate(d){let f=this.painter.transform;if(d.x<0||d.x>f.width||d.y<0||d.y>f.height)return null;let y=[d.x,d.y,1,1];o.aa.transformMat4(y,y,f.pixelMatrixInverse),o.aa.scale(y,y,1/y[3]),y[0]/=f.worldSize,y[1]/=f.worldSize;let w=f._camera.position,E=o.bo(1,f.center.lat),D=[w[0],w[1],w[2]/E,0],R=o.Q.subtract([],y.slice(0,3),D);o.Q.normalize(R,R);let B=this.raycast(D,R,this._exaggeration);return B!==null&&B?(o.Q.scaleAndAdd(D,D,R,B),D[3]=D[2],D[2]*=E,D):null}drawDepth(){let d=this.painter,f=d.context,y=this.proxySourceCache,w=Math.ceil(d.width),E=Math.ceil(d.height);if(!this._depthFBO||this._depthFBO.width===w&&this._depthFBO.height===E||(this._depthFBO.destroy(),this._depthFBO=void 0,this._depthTexture=void 0),!this._depthFBO){let D=f.gl,R=f.createFramebuffer(w,E,!0,"renderbuffer");f.activeTexture.set(D.TEXTURE0);let B=new o.T(f,{width:w,height:E,data:null},D.RGBA);B.bind(D.NEAREST,D.CLAMP_TO_EDGE),R.colorAttachment.set(B.texture);let U=f.createRenderbuffer(f.gl.DEPTH_COMPONENT16,w,E);R.depthAttachment.set(U),this._depthFBO=R,this._depthTexture=B}f.bindFramebuffer.set(this._depthFBO.framebuffer),f.viewport.set([0,0,w,E]),function(D,R,B,U){if(D.transform.projection.name==="globe")return;let G=D.context,$=G.gl;G.clear({depth:1});let Q=D.getOrCreateProgram("terrainDepth"),te=new or($.LESS,or.ReadWrite,D.depthRangeFor3D);for(let he of U){let me=B.getTile(he),_e=F1(he.projMatrix,0,[0,0,0]);R.setupElevationDraw(me,Q),Q.draw(D,$.TRIANGLES,te,Fr.disabled,lo.unblended,Cr.backCCW,_e,"terrain_depth",R.gridBuffer,R.gridIndexBuffer,R.gridNoSkirtSegments)}}(d,this,y,this.proxyCoords)}_setupProxiedCoordsForOrtho(d,f,y){if(d.getSource()instanceof o.as)return this._setupProxiedCoordsForImageSource(d,f,y);this._findCoveringTileCache[d.id]=this._findCoveringTileCache[d.id]||{};let w=this.proxiedCoords[d.id]=[],E=this.proxyCoords;for(let B=0;BG.overscaledZ-U.overscaledZ)}_setupProxiedCoordsForImageSource(d,f,y){if(!d.getSource().loaded())return;let w=this.proxiedCoords[d.id]=[],E=this.proxyCoords,D=d.getSource(),R=D.tileID;if(!R)return;let B=new o.P(R.x,R.y)._div(1<($.min.x=Math.min($.min.x,Q.x-B.x),$.min.y=Math.min($.min.y,Q.y-B.y),$.max.x=Math.max($.max.x,Q.x-B.x),$.max.y=Math.max($.max.y,Q.y-B.y),$),{min:new o.P(Number.MAX_VALUE,Number.MAX_VALUE),max:new o.P(-Number.MAX_VALUE,-Number.MAX_VALUE)}),G=($,Q)=>{let te=$.wrap+$.canonical.x/(1<<$.canonical.z),he=$.canonical.y/(1<<$.canonical.z),me=o.Y/(1<<$.canonical.z),_e=Q.wrap+Q.canonical.x/(1<_e+U.max.x||he+meye+U.max.y};for(let $=0;$D.key===f.tileID.key);if(E)return E}if(f.tileID.key!==d.key){let E=d.canonical.z-f.tileID.canonical.z,D,R,B;w=o.a9.create();let U=f.tileID.wrap-d.wrap<0?(D=o.Y>>E,R=D*((f.tileID.canonical.x<=$){let Q=d.canonical.z-$;f.getSource().reparseOverscaled?(R=Math.max(d.canonical.z+2,f.transform.tileZoom),D=new o.ap(R,d.wrap,$,d.canonical.x>>Q,d.canonical.y>>Q)):Q!==0&&(R=$,D=new o.ap(R,d.wrap,$,d.canonical.x>>Q,d.canonical.y>>Q))}D.key!==d.key&&(U.push(D.key),y=f.getTile(D))}let G=$=>{U.forEach(Q=>{w[Q]=$}),U.length=0};for(R-=1;R>=B&&(!y||!y.hasData());R--){y&&G(y.tileID.key);let $=D.calculateScaledKey(R);if(y=f.getTileByID($),y&&y.hasData())break;let Q=w[$];if(Q===null)break;Q===void 0?U.push($):y=f.getTileByID(Q)}return G(y?y.tileID.key:null),y&&y.hasData()?y:null}findDEMTileFor(d){return this.enabled?this._findTileCoveringTileID(d,this.sourceCache):null}prepareDrawTile(){this.renderedToTile=!0}_clearRenderCacheForTile(d,f){let y=this._tilesDirty[d];y||(y=this._tilesDirty[d]={}),y[f.key]=!0}}function gP(v,d,f){let y=function(R,B,U){let G=o.Q.dot(B,R),$=o.Q.dot(U,[.2126,.7152,.0722]),Q=(he,me,_e)=>(1-_e)*he+_e*me,te=Q(1-.3*Math.min($,1),1,Math.min(G+1,1));return Q(.92,1,Math.asin(o.ad(B[2],-1,1))/Math.PI+.5)*te}(v,[0,0,1],d),w=[0,0,0];o.Q.scale(w,f.slice(0,3),y);let E=[0,0,0];o.Q.scale(E,d.slice(0,3),v[2]);let D=[0,0,0];return o.Q.add(D,w,E),o.bX(D)}let Iv=["fill","fillOutline","fillPattern","line","linePattern","background","backgroundPattern","hillshade","raster"],yl=["stars","fillExtrusion","fillExtrusionGroundEffect","model","symbolSDF","symbolIcon","symbolTextAndIcon"];class kd{static cacheKey(d,f,y,w){let E=`${f}${w?w.cacheKey:""}`;for(let D of y)d.usedDefines.includes(D)&&(E+=`/${D}`);return E}constructor(d,f,y,w,E,D){let R=d.gl;this.program=R.createProgram(),this.configuration=w,this.name=f,this.fixedDefines=[...D];let B=w?w.getBinderAttributes():[],U=(y.staticAttributes||[]).concat(B),G=w?w.defines():[];G=G.concat(D.map(_e=>`#define ${_e}`));let $=`#version 300 es `,Q=$+G.concat("precision mediump float;",Vg,My.fragmentSource).join(` `);for(let _e of y.fragmentIncludes)Q+=` ${Jr[_e]}`;Q+=` ${y.fragmentSource}`;let te=$+G.concat("precision highp float;",Vg,My.vertexSource).join(` `);for(let _e of y.vertexIncludes)te+=` ${Jr[_e]}`;te+=` ${y.vertexSource}`;let he=R.createShader(R.FRAGMENT_SHADER);if(R.isContextLost())return void(this.failedToCreate=!0);R.shaderSource(he,Q),R.compileShader(he),R.attachShader(this.program,he);let me=R.createShader(R.VERTEX_SHADER);if(R.isContextLost())this.failedToCreate=!0;else{R.shaderSource(me,te),R.compileShader(me),R.attachShader(this.program,me),this.attributes={},this.numAttributes=U.length;for(let _e=0;_e({u_dem:new o.bR(_e),u_dem_prev:new o.bR(_e),u_dem_tl:new o.bO(_e),u_dem_scale:new o.bQ(_e),u_dem_tl_prev:new o.bO(_e),u_dem_scale_prev:new o.bQ(_e),u_dem_size:new o.bQ(_e),u_dem_lerp:new o.bQ(_e),u_exaggeration:new o.bQ(_e),u_depth:new o.bR(_e),u_depth_size_inv:new o.bO(_e),u_meter_to_dem:new o.bQ(_e),u_label_plane_matrix_inv:new o.bN(_e)}))(d)),D.includes("GLOBE")&&(this.globeUniforms=(_e=>({u_tile_tl_up:new o.bP(_e),u_tile_tr_up:new o.bP(_e),u_tile_br_up:new o.bP(_e),u_tile_bl_up:new o.bP(_e),u_tile_up_scale:new o.bQ(_e)}))(d)),D.includes("FOG")&&(this.fogUniforms=(_e=>({u_fog_matrix:new o.bN(_e),u_fog_range:new o.bO(_e),u_fog_color:new o.bS(_e),u_fog_horizon_blend:new o.bQ(_e),u_fog_vertical_limit:new o.bO(_e),u_fog_temporal_offset:new o.bQ(_e),u_frustum_tl:new o.bP(_e),u_frustum_tr:new o.bP(_e),u_frustum_br:new o.bP(_e),u_frustum_bl:new o.bP(_e),u_globe_pos:new o.bP(_e),u_globe_radius:new o.bQ(_e),u_globe_transition:new o.bQ(_e),u_is_globe:new o.bR(_e),u_viewport:new o.bO(_e)}))(d)),D.includes("RENDER_CUTOFF")&&(this.cutoffUniforms=(_e=>({u_cutoff_params:new o.bS(_e)}))(d)),D.includes("LIGHTING_3D_MODE")&&(this.lightsUniforms=(_e=>({u_lighting_ambient_color:new o.bP(_e),u_lighting_directional_dir:new o.bP(_e),u_lighting_directional_color:new o.bP(_e),u_ground_radiance:new o.bP(_e)}))(d)),D.includes("RENDER_SHADOWS")&&(this.shadowUniforms=(_e=>({u_light_matrix_0:new o.bN(_e),u_light_matrix_1:new o.bN(_e),u_fade_range:new o.bO(_e),u_shadow_normal_offset:new o.bP(_e),u_shadow_intensity:new o.bQ(_e),u_shadow_texel_size:new o.bQ(_e),u_shadow_map_resolution:new o.bQ(_e),u_shadow_direction:new o.bP(_e),u_shadow_bias:new o.bP(_e),u_shadowmap_0:new o.bR(_e),u_shadowmap_1:new o.bR(_e)}))(d))}}setTerrainUniformValues(d,f){if(!this.terrainUniforms)return;let y=this.terrainUniforms;if(!this.failedToCreate){d.program.set(this.program);for(let w in f)y[w]&&y[w].set(this.program,w,f[w])}}setGlobeUniformValues(d,f){if(!this.globeUniforms)return;let y=this.globeUniforms;if(!this.failedToCreate){d.program.set(this.program);for(let w in f)y[w]&&y[w].set(this.program,w,f[w])}}setFogUniformValues(d,f){if(!this.fogUniforms)return;let y=this.fogUniforms;if(!this.failedToCreate){d.program.set(this.program);for(let w in f)y[w].set(this.program,w,f[w])}}setCutoffUniformValues(d,f){if(!this.cutoffUniforms)return;let y=this.cutoffUniforms;if(!this.failedToCreate){d.program.set(this.program);for(let w in f)y[w].set(this.program,w,f[w])}}setLightsUniformValues(d,f){if(!this.lightsUniforms)return;let y=this.lightsUniforms;if(!this.failedToCreate){d.program.set(this.program);for(let w in f)y[w].set(this.program,w,f[w])}}setShadowUniformValues(d,f){if(this.failedToCreate||!this.shadowUniforms)return;let y=this.shadowUniforms;d.program.set(this.program);for(let w in f)y[w].set(this.program,w,f[w])}_drawDebugWireframe(d,f,y,w,E,D,R,B,U,G){let $=d.options.wireframe;if($.terrain===!1&&$.layers2D===!1&&$.layers3D===!1)return;let Q=d.context;if(!(!(!$.terrain||this.name!=="terrainRaster"&&this.name!=="globeRaster")||!(!$.layers2D||d._terrain&&d._terrain.renderingToTexture||!Iv.includes(this.name))||!(!$.layers3D||!yl.includes(this.name))))return;let te=Q.gl,he=d.wireframeDebugCache.getLinesFromTrianglesBuffer(d.frameCounter,E,Q);if(!he)return;let me=[...this.fixedDefines];me.push("DEBUG_WIREFRAME");let _e=d.getOrCreateProgram(this.name,{config:this.configuration,defines:me});Q.program.set(_e.program);let ye=(He,Ze,be)=>{if(Ze[He]&&be[He])for(let Oe in Ze[He])be[He][Oe]&&be[He][Oe].set(be.program,Oe,Ze[He][Oe].current)};U&&U.setUniforms(_e.program,Q,_e.binderUniforms,R,{zoom:B}),ye("fixedUniforms",this,_e),ye("terrainUniforms",this,_e),ye("globeUniforms",this,_e),ye("fogUniforms",this,_e),ye("lightsUniforms",this,_e),ye("shadowUniforms",this,_e),he.bind(),Q.setColorMode(new lo([te.ONE,te.ONE_MINUS_SRC_ALPHA,te.ZERO,te.ONE],o.aA.transparent,[!0,!0,!0,!1])),Q.setDepthMode(new or(f.func===te.LESS?te.LEQUAL:f.func,or.ReadOnly,f.range)),Q.setStencilMode(Fr.disabled);let Ae=3*D.primitiveLength*2,je=3*D.primitiveOffset*2*2;G&&G>1?te.drawElementsInstanced(te.LINES,Ae,te.UNSIGNED_SHORT,je,G):te.drawElements(te.LINES,Ae,te.UNSIGNED_SHORT,je),E.bind(),Q.program.set(this.program),Q.setDepthMode(f),Q.setStencilMode(y),Q.setColorMode(w)}draw(d,f,y,w,E,D,R,B,U,G,$,Q,te,he,me,_e){let ye=d.context,Ae=ye.gl;if(this.failedToCreate)return;ye.program.set(this.program),ye.setDepthMode(y),ye.setStencilMode(w),ye.setColorMode(E),ye.setCullFace(D);for(let Ze of Object.keys(this.fixedUniforms))this.fixedUniforms[Ze].set(this.program,Ze,R[Ze]);he&&he.setUniforms(this.program,ye,this.binderUniforms,Q,{zoom:te});let je={[Ae.POINTS]:1,[Ae.LINES]:2,[Ae.TRIANGLES]:3,[Ae.LINE_STRIP]:1}[f],He=_e&&_e>0?1:void 0;for(let Ze of $.get()){let be=Ze.vaos||(Ze.vaos={});(be[B]||(be[B]=new Tn)).bind(ye,this,U,he?he.getPaintVertexBuffers():[],G,Ze.vertexOffset,me||[],He),_e&&_e>1?Ae.drawElementsInstanced(f,Ze.primitiveLength*je,Ae.UNSIGNED_SHORT,Ze.primitiveOffset*je*2,_e):G?Ae.drawElements(f,Ze.primitiveLength*je,Ae.UNSIGNED_SHORT,Ze.primitiveOffset*je*2):Ae.drawArrays(f,Ze.vertexOffset,Ze.vertexLength),f===Ae.TRIANGLES&&G&&this._drawDebugWireframe(d,y,w,E,G,Ze,Q,te,he,_e)}}}function Ep(v,d){let f=Math.pow(2,d.tileID.overscaledZ),y=d.tileSize*Math.pow(2,v.transform.tileZoom)/f,w=y*(d.tileID.canonical.x+d.tileID.wrap*f),E=y*d.tileID.canonical.y;return{u_image:0,u_texsize:d.imageAtlasTexture?d.imageAtlasTexture.size:[0,0],u_tile_units_to_pixels:1/o.a6(d,1,v.transform.tileZoom),u_pixel_coord_upper:[w>>16,E>>16],u_pixel_coord_lower:[65535&w,65535&E]}}let sc=o.a9.create(),L1=(v,d,f,y,w,E,D,R,B,U,G,$,Q,te,he,me)=>{let _e=d.style.light,ye=_e.properties.get("position"),Ae=[ye.x,ye.y,ye.z],je=o.ct.create();_e.properties.get("anchor")==="viewport"&&(o.ct.fromRotation(je,-d.transform.angle),o.Q.transformMat3(Ae,Ae,je));let He=_e.properties.get("color"),Ze=d.transform,be={u_matrix:v,u_lightpos:Ae,u_lightintensity:_e.properties.get("intensity"),u_lightcolor:[He.r,He.g,He.b],u_vertical_gradient:+f,u_opacity:y,u_tile_id:[0,0,0],u_zoom_transition:0,u_inv_rot_matrix:sc,u_merc_center:[0,0],u_up_dir:[0,0,0],u_height_lift:0,u_ao:w,u_edge_radius:E,u_flood_light_color:$,u_vertical_scale:Q,u_flood_light_intensity:te,u_ground_shadow_factor:he,u_emissive_strength:me};return Ze.projection.name==="globe"&&(be.u_tile_id=[D.canonical.x,D.canonical.y,1<({u_matrix:v,u_edge_radius:d,u_vertical_scale:f}),Py=(v,d,f,y,w,E,D,R,B,U,G,$,Q,te)=>{let he=L1(v,d,f,y,w,E,D,B,U,G,$,Q,te,1,[0,0,0],0),me={u_height_factor:-Math.pow(2,D.overscaledZ)/R.tileSize/8};return o.e(he,Ep(d,R),me)},Ug=(v,d)=>({u_matrix:v,u_emissive_strength:d}),wf=(v,d,f,y)=>o.e(Ug(v,d),Ep(f,y)),_P=(v,d,f)=>({u_matrix:v,u_world:f,u_emissive_strength:d}),Cf=(v,d,f,y,w)=>o.e(wf(v,d,f,y),{u_world:w}),vP=(v,d,f,y)=>{let w=o.Y/f.tileSize;return{u_matrix:v,u_camera_to_center_distance:d.getCameraToCenterDistance(y),u_extrude_scale:[d.pixelsToGLUnits[0]/w,d.pixelsToGLUnits[1]/w]}},Ok=(v,d,f=1)=>({u_matrix:v,u_color:d,u_overlay:0,u_overlay_scale:f}),td=o.a9.create(),Rk=(v,d,f,y,w,E,D)=>{let R=v.transform,B=R.projection.name==="globe",U=B?o.cu(R.zoom,d.canonical)*R._pixelsPerMercatorPixel:o.a6(f,1,E),G={u_matrix:d.projMatrix,u_extrude_scale:U,u_intensity:D,u_inv_rot_matrix:td,u_merc_center:[0,0],u_tile_id:[0,0,0],u_zoom_transition:0,u_up_dir:[0,0,0]};if(B){G.u_inv_rot_matrix=y,G.u_merc_center=w,G.u_tile_id=[d.canonical.x,d.canonical.y,1<({u_matrix:v,u_normalize_matrix:d,u_globe_matrix:f,u_merc_matrix:y,u_grid_matrix:w,u_tl_parent:E,u_scale_parent:U,u_fade_t:G.mix,u_opacity:G.opacity*$.paint.get("raster-opacity"),u_image0:0,u_image1:1,u_brightness_low:$.paint.get("raster-brightness-min"),u_brightness_high:$.paint.get("raster-brightness-max"),u_saturation_factor:o.cv($.paint.get("raster-saturation")),u_contrast_factor:o.cw($.paint.get("raster-contrast")),u_spin_weights:vE($.paint.get("raster-hue-rotate")),u_perspective_transform:Q,u_raster_elevation:te,u_zoom_transition:D,u_merc_center:R,u_cutoff_params:B,u_colorization_mix:Tv(o.cx,me,ye),u_colorization_offset:_E(o.cx,_e,ye),u_color_ramp:he,u_texture_offset:[je/(Ae+2*je),Ae/(Ae+2*je)],u_texture_res:[Ae+2*je,Ae+2*je],u_emissive_strength:He});function vE(v){v*=Math.PI/180;let d=Math.sin(v),f=Math.cos(v);return[(2*f+1)/3,(-Math.sqrt(3)*d-f+1)/3,(Math.sqrt(3)*d-f+1)/3]}let B1=(v,d,f,y,w,E,D,R,B,U,G,$)=>({u_matrix:v,u_normalize_matrix:d,u_globe_matrix:f,u_merc_matrix:y,u_grid_matrix:w,u_tl_parent:E,u_scale_parent:U,u_fade_t:G.mix,u_opacity:G.opacity,u_image0:0,u_image1:1,u_raster_elevation:$,u_zoom_transition:D,u_merc_center:R,u_cutoff_params:B}),Fy=(v,d,f,y,w,E,D,R,B,U)=>({u_particle_texture:v,u_particle_texture_side_len:d,u_tile_offset:f,u_velocity:y,u_color_ramp:E,u_velocity_res:w,u_max_speed:D,u_uv_offset:R,u_data_scale:B,u_data_offset:U,u_particle_pos_scale:1.3,u_particle_pos_offset:[Pg,Pg]}),Pk=(v,d,f,y,w,E,D,R,B,U)=>({u_particle_texture:v,u_particle_texture_side_len:d,u_velocity:f,u_velocity_res:y,u_max_speed:w,u_speed_factor:E,u_reset_rate:D,u_rand_seed:Math.random(),u_uv_offset:R,u_data_scale:B,u_data_offset:U,u_particle_pos_scale:1.3,u_particle_pos_offset:[Pg,Pg]}),Av=o.a9.create(),yE=(v,d,f,y,w,E,D,R,B,U,G,$,Q,te,he,me,_e,ye)=>{let Ae=w.transform,je={u_is_size_zoom_constant:+(v==="constant"||v==="source"),u_is_size_feature_constant:+(v==="constant"||v==="camera"),u_size_t:d?d.uSizeT:0,u_size:d?d.uSize:0,u_camera_to_center_distance:Ae.getCameraToCenterDistance(me),u_rotate_symbol:+f,u_aspect_ratio:Ae.width/Ae.height,u_fade_change:w.options.fadeDuration?w.symbolFadeChange:1,u_matrix:E,u_label_plane_matrix:D,u_coord_matrix:R,u_is_text:+B,u_pitch_with_map:+y,u_texsize:U,u_texture:0,u_tile_id:[0,0,0],u_zoom_transition:0,u_inv_rot_matrix:Av,u_merc_center:[0,0],u_camera_forward:[0,0,0],u_ecef_origin:[0,0,0],u_tile_matrix:Av,u_up_vector:[0,-1,0],u_color_adj_mat:_e,u_icon_transition:ye||0};return me.name==="globe"&&(je.u_tile_id=[G.canonical.x,G.canonical.y,1<o.e(yE(v,d,f,y,w,E,D,R,B,U,$,Q,te,he,me,_e),{u_gamma_scale:y?w.transform.getCameraToCenterDistance(_e)*Math.cos(w.terrain?0:w.transform._pitch):1,u_device_pixel_ratio:o.f.devicePixelRatio,u_is_halo:+G,undefined:void 0}),Hg=(v,d,f,y,w,E,D,R,B,U,G,$,Q,te,he,me)=>o.e(jg(v,d,f,y,w,E,D,R,!0,B,!0,G,$,Q,te,he,me),{u_texsize_icon:U,u_texture_icon:1}),yP=(v,d,f,y)=>({u_matrix:v,u_emissive_strength:d,u_opacity:f,u_color:y}),Fk=(v,d,f,y,w,E,D)=>o.e(function(R,B,U,G){let $=U.imageManager.getPattern(R.toString(),B),{width:Q,height:te}=U.imageManager.getPixelSize(B),he=Math.pow(2,G.tileID.overscaledZ),me=G.tileSize*Math.pow(2,U.transform.tileZoom)/he,_e=me*(G.tileID.canonical.x+G.tileID.wrap*he),ye=me*G.tileID.canonical.y;return{u_image:0,u_pattern_tl:$.tl,u_pattern_br:$.br,u_texsize:[Q,te],u_pattern_size:$.displaySize,u_tile_units_to_pixels:1/o.a6(G,1,U.transform.tileZoom),u_pixel_coord_upper:[_e>>16,ye>>16],u_pixel_coord_lower:[65535&_e,65535&ye]}}(w,E,y,D),{u_matrix:v,u_emissive_strength:d,u_opacity:f}),Lk=new Float32Array(o.a9.identity([])),z1=(v,d,f,y,w,E,D,R,B,U,G,$,Q,te=[0,0,0],he)=>{let me=w.style.light,_e=me.properties.get("position"),ye=[-_e.x,-_e.y,_e.z],Ae=o.ct.create();me.properties.get("anchor")==="viewport"&&(o.ct.fromRotation(Ae,-w.transform.angle),o.Q.transformMat3(ye,ye,Ae));let je=G.alphaMode==="MASK",He=me.properties.get("color"),Ze=Q.paint.get("model-ambient-occlusion-intensity"),be=Q.paint.get("model-color").constantOr(o.aA.white),Oe=Q.paint.get("model-color-mix-intensity").constantOr(0);return{u_matrix:v,u_lighting_matrix:d,u_normal_matrix:f,u_node_matrix:y||Lk,u_lightpos:ye,u_lightintensity:me.properties.get("intensity"),u_lightcolor:[He.r,He.g,He.b],u_camera_pos:te,u_opacity:E,u_baseTextureIsAlpha:0,u_alphaMask:+je,u_alphaCutoff:G.alphaCutoff,u_baseColorFactor:[D.r,D.g,D.b,D.a],u_emissiveFactor:[R[0],R[1],R[2],1],u_metallicFactor:B,u_roughnessFactor:U,u_baseColorTexture:Dd.BaseColor,u_metallicRoughnessTexture:Dd.MetallicRoughness,u_normalTexture:Dd.Normal,u_occlusionTexture:Dd.Occlusion,u_emissionTexture:Dd.Emission,u_color_mix:[be.r,be.g,be.b,Oe],u_aoIntensity:Ze,u_emissive_strength:$,u_occlusionTextureTransform:he||[0,0,0,0]}},bE=(v,d=Lk,f=Lk)=>({u_matrix:v,u_instance:d,u_node_matrix:f}),V1={fillExtrusion:v=>({u_matrix:new o.bN(v),u_lightpos:new o.bP(v),u_lightintensity:new o.bQ(v),u_lightcolor:new o.bP(v),u_vertical_gradient:new o.bQ(v),u_opacity:new o.bQ(v),u_edge_radius:new o.bQ(v),u_ao:new o.bO(v),u_tile_id:new o.bP(v),u_zoom_transition:new o.bQ(v),u_inv_rot_matrix:new o.bN(v),u_merc_center:new o.bO(v),u_up_dir:new o.bP(v),u_height_lift:new o.bQ(v),u_flood_light_color:new o.bP(v),u_vertical_scale:new o.bQ(v),u_flood_light_intensity:new o.bQ(v),u_ground_shadow_factor:new o.bP(v),u_emissive_strength:new o.bQ(v)}),fillExtrusionDepth:v=>({u_matrix:new o.bN(v),u_edge_radius:new o.bQ(v),u_vertical_scale:new o.bQ(v)}),fillExtrusionPattern:v=>({u_matrix:new o.bN(v),u_lightpos:new o.bP(v),u_lightintensity:new o.bQ(v),u_lightcolor:new o.bP(v),u_vertical_gradient:new o.bQ(v),u_height_factor:new o.bQ(v),u_edge_radius:new o.bQ(v),u_ao:new o.bO(v),u_tile_id:new o.bP(v),u_zoom_transition:new o.bQ(v),u_inv_rot_matrix:new o.bN(v),u_merc_center:new o.bO(v),u_up_dir:new o.bP(v),u_height_lift:new o.bQ(v),u_image:new o.bR(v),u_texsize:new o.bO(v),u_pixel_coord_upper:new o.bO(v),u_pixel_coord_lower:new o.bO(v),u_tile_units_to_pixels:new o.bQ(v),u_opacity:new o.bQ(v)}),fillExtrusionGroundEffect:v=>({u_matrix:new o.bN(v),u_opacity:new o.bQ(v),u_ao_pass:new o.bQ(v),u_meter_to_tile:new o.bQ(v),u_ao:new o.bO(v),u_flood_light_intensity:new o.bQ(v),u_flood_light_color:new o.bP(v),u_attenuation:new o.bQ(v),u_edge_radius:new o.bQ(v),u_fb:new o.bR(v),u_fb_size:new o.bQ(v)}),fill:v=>({u_matrix:new o.bN(v),u_emissive_strength:new o.bQ(v)}),fillPattern:v=>({u_matrix:new o.bN(v),u_emissive_strength:new o.bQ(v),u_image:new o.bR(v),u_texsize:new o.bO(v),u_pixel_coord_upper:new o.bO(v),u_pixel_coord_lower:new o.bO(v),u_tile_units_to_pixels:new o.bQ(v)}),fillOutline:v=>({u_matrix:new o.bN(v),u_emissive_strength:new o.bQ(v),u_world:new o.bO(v)}),fillOutlinePattern:v=>({u_matrix:new o.bN(v),u_emissive_strength:new o.bQ(v),u_world:new o.bO(v),u_image:new o.bR(v),u_texsize:new o.bO(v),u_pixel_coord_upper:new o.bO(v),u_pixel_coord_lower:new o.bO(v),u_tile_units_to_pixels:new o.bQ(v)}),circle:o.cz,collisionBox:v=>({u_matrix:new o.bN(v),u_camera_to_center_distance:new o.bQ(v),u_extrude_scale:new o.bO(v)}),collisionCircle:v=>({u_matrix:new o.bN(v),u_inv_matrix:new o.bN(v),u_camera_to_center_distance:new o.bQ(v),u_viewport_size:new o.bO(v)}),debug:v=>({u_color:new o.cf(v),u_matrix:new o.bN(v),u_overlay:new o.bR(v),u_overlay_scale:new o.bQ(v)}),clippingMask:v=>({u_matrix:new o.bN(v)}),heatmap:v=>({u_extrude_scale:new o.bQ(v),u_intensity:new o.bQ(v),u_matrix:new o.bN(v),u_inv_rot_matrix:new o.bN(v),u_merc_center:new o.bO(v),u_tile_id:new o.bP(v),u_zoom_transition:new o.bQ(v),u_up_dir:new o.bP(v)}),heatmapTexture:v=>({u_image:new o.bR(v),u_color_ramp:new o.bR(v),u_opacity:new o.bQ(v)}),hillshade:v=>({u_matrix:new o.bN(v),u_image:new o.bR(v),u_latrange:new o.bO(v),u_light:new o.bO(v),u_shadow:new o.cf(v),u_highlight:new o.cf(v),u_emissive_strength:new o.bQ(v),u_accent:new o.cf(v)}),hillshadePrepare:v=>({u_matrix:new o.bN(v),u_image:new o.bR(v),u_dimension:new o.bO(v),u_zoom:new o.bQ(v)}),line:o.cA,linePattern:o.cB,raster:v=>({u_matrix:new o.bN(v),u_normalize_matrix:new o.bN(v),u_globe_matrix:new o.bN(v),u_merc_matrix:new o.bN(v),u_grid_matrix:new o.cg(v),u_tl_parent:new o.bO(v),u_scale_parent:new o.bQ(v),u_fade_t:new o.bQ(v),u_opacity:new o.bQ(v),u_image0:new o.bR(v),u_image1:new o.bR(v),u_brightness_low:new o.bQ(v),u_brightness_high:new o.bQ(v),u_saturation_factor:new o.bQ(v),u_contrast_factor:new o.bQ(v),u_spin_weights:new o.bP(v),u_perspective_transform:new o.bO(v),u_raster_elevation:new o.bQ(v),u_zoom_transition:new o.bQ(v),u_merc_center:new o.bO(v),u_cutoff_params:new o.bS(v),u_colorization_mix:new o.bS(v),u_colorization_offset:new o.bQ(v),u_color_ramp:new o.bR(v),u_texture_offset:new o.bO(v),u_texture_res:new o.bO(v),u_emissive_strength:new o.bQ(v)}),rasterParticle:v=>({u_matrix:new o.bN(v),u_normalize_matrix:new o.bN(v),u_globe_matrix:new o.bN(v),u_merc_matrix:new o.bN(v),u_grid_matrix:new o.cg(v),u_tl_parent:new o.bO(v),u_scale_parent:new o.bQ(v),u_fade_t:new o.bQ(v),u_opacity:new o.bQ(v),u_image0:new o.bR(v),u_image1:new o.bR(v),u_raster_elevation:new o.bQ(v),u_zoom_transition:new o.bQ(v),u_merc_center:new o.bO(v),u_cutoff_params:new o.bS(v)}),rasterParticleTexture:v=>({u_texture:new o.bR(v),u_opacity:new o.bQ(v)}),rasterParticleDraw:v=>({u_particle_texture:new o.bR(v),u_particle_texture_side_len:new o.bQ(v),u_tile_offset:new o.bO(v),u_velocity:new o.bR(v),u_color_ramp:new o.bR(v),u_velocity_res:new o.bO(v),u_max_speed:new o.bQ(v),u_uv_offset:new o.bO(v),u_data_scale:new o.bS(v),u_data_offset:new o.bQ(v),u_particle_pos_scale:new o.bQ(v),u_particle_pos_offset:new o.bO(v)}),rasterParticleUpdate:v=>({u_particle_texture:new o.bR(v),u_particle_texture_side_len:new o.bQ(v),u_velocity:new o.bR(v),u_velocity_res:new o.bO(v),u_max_speed:new o.bQ(v),u_speed_factor:new o.bQ(v),u_reset_rate:new o.bQ(v),u_rand_seed:new o.bQ(v),u_uv_offset:new o.bO(v),u_data_scale:new o.bS(v),u_data_offset:new o.bQ(v),u_particle_pos_scale:new o.bQ(v),u_particle_pos_offset:new o.bO(v)}),symbolIcon:v=>({u_is_size_zoom_constant:new o.bR(v),u_is_size_feature_constant:new o.bR(v),u_size_t:new o.bQ(v),u_size:new o.bQ(v),u_camera_to_center_distance:new o.bQ(v),u_rotate_symbol:new o.bR(v),u_aspect_ratio:new o.bQ(v),u_fade_change:new o.bQ(v),u_matrix:new o.bN(v),u_label_plane_matrix:new o.bN(v),u_coord_matrix:new o.bN(v),u_is_text:new o.bR(v),u_pitch_with_map:new o.bR(v),u_texsize:new o.bO(v),u_tile_id:new o.bP(v),u_zoom_transition:new o.bQ(v),u_inv_rot_matrix:new o.bN(v),u_merc_center:new o.bO(v),u_camera_forward:new o.bP(v),u_tile_matrix:new o.bN(v),u_up_vector:new o.bP(v),u_ecef_origin:new o.bP(v),u_texture:new o.bR(v),u_icon_transition:new o.bQ(v),u_color_adj_mat:new o.bN(v)}),symbolSDF:v=>({u_is_size_zoom_constant:new o.bR(v),u_is_size_feature_constant:new o.bR(v),u_size_t:new o.bQ(v),u_size:new o.bQ(v),u_camera_to_center_distance:new o.bQ(v),u_rotate_symbol:new o.bR(v),u_aspect_ratio:new o.bQ(v),u_fade_change:new o.bQ(v),u_matrix:new o.bN(v),u_label_plane_matrix:new o.bN(v),u_coord_matrix:new o.bN(v),u_is_text:new o.bR(v),u_pitch_with_map:new o.bR(v),u_texsize:new o.bO(v),u_texture:new o.bR(v),u_gamma_scale:new o.bQ(v),u_device_pixel_ratio:new o.bQ(v),u_tile_id:new o.bP(v),u_zoom_transition:new o.bQ(v),u_inv_rot_matrix:new o.bN(v),u_merc_center:new o.bO(v),u_camera_forward:new o.bP(v),u_tile_matrix:new o.bN(v),u_up_vector:new o.bP(v),u_ecef_origin:new o.bP(v),u_is_halo:new o.bR(v)}),symbolTextAndIcon:v=>({u_is_size_zoom_constant:new o.bR(v),u_is_size_feature_constant:new o.bR(v),u_size_t:new o.bQ(v),u_size:new o.bQ(v),u_camera_to_center_distance:new o.bQ(v),u_rotate_symbol:new o.bR(v),u_aspect_ratio:new o.bQ(v),u_fade_change:new o.bQ(v),u_matrix:new o.bN(v),u_label_plane_matrix:new o.bN(v),u_coord_matrix:new o.bN(v),u_is_text:new o.bR(v),u_pitch_with_map:new o.bR(v),u_texsize:new o.bO(v),u_texsize_icon:new o.bO(v),u_texture:new o.bR(v),u_texture_icon:new o.bR(v),u_gamma_scale:new o.bQ(v),u_device_pixel_ratio:new o.bQ(v),u_is_halo:new o.bR(v)}),background:v=>({u_matrix:new o.bN(v),u_emissive_strength:new o.bQ(v),u_opacity:new o.bQ(v),u_color:new o.cf(v)}),backgroundPattern:v=>({u_matrix:new o.bN(v),u_emissive_strength:new o.bQ(v),u_opacity:new o.bQ(v),u_image:new o.bR(v),u_pattern_tl:new o.bO(v),u_pattern_br:new o.bO(v),u_texsize:new o.bO(v),u_pattern_size:new o.bO(v),u_pixel_coord_upper:new o.bO(v),u_pixel_coord_lower:new o.bO(v),u_tile_units_to_pixels:new o.bQ(v)}),terrainRaster:Eo,terrainDepth:Eo,skybox:v=>({u_matrix:new o.bN(v),u_sun_direction:new o.bP(v),u_cubemap:new o.bR(v),u_opacity:new o.bQ(v),u_temporal_offset:new o.bQ(v)}),skyboxGradient:v=>({u_matrix:new o.bN(v),u_color_ramp:new o.bR(v),u_center_direction:new o.bP(v),u_radius:new o.bQ(v),u_opacity:new o.bQ(v),u_temporal_offset:new o.bQ(v)}),skyboxCapture:v=>({u_matrix_3f:new o.cg(v),u_sun_direction:new o.bP(v),u_sun_intensity:new o.bQ(v),u_color_tint_r:new o.bS(v),u_color_tint_m:new o.bS(v),u_luminance:new o.bQ(v)}),globeRaster:v=>({u_proj_matrix:new o.bN(v),u_globe_matrix:new o.bN(v),u_normalize_matrix:new o.bN(v),u_merc_matrix:new o.bN(v),u_zoom_transition:new o.bQ(v),u_merc_center:new o.bO(v),u_image0:new o.bR(v),u_grid_matrix:new o.cg(v),u_skirt_height:new o.bQ(v),u_far_z_cutoff:new o.bQ(v),u_frustum_tl:new o.bP(v),u_frustum_tr:new o.bP(v),u_frustum_br:new o.bP(v),u_frustum_bl:new o.bP(v),u_globe_pos:new o.bP(v),u_globe_radius:new o.bQ(v),u_viewport:new o.bO(v)}),globeAtmosphere:v=>({u_frustum_tl:new o.bP(v),u_frustum_tr:new o.bP(v),u_frustum_br:new o.bP(v),u_frustum_bl:new o.bP(v),u_horizon:new o.bQ(v),u_transition:new o.bQ(v),u_fadeout_range:new o.bQ(v),u_color:new o.bS(v),u_high_color:new o.bS(v),u_space_color:new o.bS(v),u_temporal_offset:new o.bQ(v),u_horizon_angle:new o.bQ(v)}),model:v=>({u_matrix:new o.bN(v),u_lighting_matrix:new o.bN(v),u_normal_matrix:new o.bN(v),u_node_matrix:new o.bN(v),u_lightpos:new o.bP(v),u_lightintensity:new o.bQ(v),u_lightcolor:new o.bP(v),u_camera_pos:new o.bP(v),u_opacity:new o.bQ(v),u_baseColorFactor:new o.bS(v),u_emissiveFactor:new o.bS(v),u_metallicFactor:new o.bQ(v),u_roughnessFactor:new o.bQ(v),u_baseTextureIsAlpha:new o.bR(v),u_alphaMask:new o.bR(v),u_alphaCutoff:new o.bQ(v),u_baseColorTexture:new o.bR(v),u_metallicRoughnessTexture:new o.bR(v),u_normalTexture:new o.bR(v),u_occlusionTexture:new o.bR(v),u_emissionTexture:new o.bR(v),u_color_mix:new o.bS(v),u_aoIntensity:new o.bQ(v),u_emissive_strength:new o.bQ(v),u_occlusionTextureTransform:new o.bS(v)}),modelDepth:v=>({u_matrix:new o.bN(v),u_instance:new o.bN(v),u_node_matrix:new o.bN(v)}),groundShadow:v=>({u_matrix:new o.bN(v),u_ground_shadow_factor:new o.bP(v)}),stars:v=>({u_matrix:new o.bN(v),u_up:new o.bP(v),u_right:new o.bP(v),u_intensity_multiplier:new o.bQ(v)})},Ly;function xE(v,d,f,y,w,E,D){let R=v.context,B=R.gl,U=v.transform,G=v.getOrCreateProgram("collisionBox"),$=[],Q=0,te=0;for(let He=0;He0){let gt=o.a9.create(),zt=ot;o.a9.mul(gt,Oe.placementInvProjMatrix,U.glCoordMatrix),o.a9.mul(gt,gt,Oe.placementViewportMatrix),$.push({circleArray:Yt,circleOffset:te,transform:zt,invTransform:gt,projection:Oe.getProjection()}),Q+=Yt.length/4,te=Q}xt&&(v.terrain&&v.terrain.setupElevationDraw(be,G),G.draw(v,B.LINES,or.disabled,Fr.disabled,v.colorModeForRenderPass(),Cr.disabled,vP(ot,U,be,Oe.getProjection()),f.id,xt.layoutVertexBuffer,xt.indexBuffer,xt.segments,null,U.zoom,null,[xt.collisionVertexBuffer,xt.collisionVertexBufferExt]))}if(!D||!$.length)return;let he=v.getOrCreateProgram("collisionCircle"),me=new o.cC;me.resize(4*Q),me._trim();let _e=0;for(let He of $)for(let Ze=0;Ze=0&&(he[He.associatedIconIndex]={x:gt,y:zt,z:Zt,angle:jt})}else gv(Oe,Q)}if(G){te.clear();let je=v.icon.placedSymbolArray;for(let He=0;He{let $r=st&&f.layout.get("symbol-placement")!=="point",Kr=[],oa=$r||vo,Us=f.paint.get("icon-image-cross-fade").constantOr(0);v.terrainRenderModeElevated()&&xt&&Kr.push("PITCH_WITH_MAP_TERRAIN"),mn&&(Kr.push("PROJECTION_GLOBE_VIEW"),oa&&Kr.push("PROJECTED_POS_ON_VIEWPORT")),Us>0&&Kr.push("ICON_TRANSITION"),hi.icon.zOffsetVertexBuffer&&Kr.push("Z_OFFSET"),ye===0&&Ae===0&&je===0&&He===1||Kr.push("COLOR_ADJUSTMENT");let po=hi.icon.programConfigurations.get(f.id),Vr=v.getOrCreateProgram(hi.sdfIcons?"symbolSDF":"symbolIcon",{config:po,defines:Kr}),id,qc=Ge.imageAtlasTexture?Ge.imageAtlasTexture.size:[0,0],gc=hi.iconSizeData,$c=o.b8(gc,Oe.zoom),nd=xt||Oe.pitch!==0,su=by(Kn,Ge.tileID.canonical,xt,st,Oe,hi.getProjection(),Hn),_c=Cp(Kn,Ge.tileID.canonical,xt,st,Oe,hi.getProjection(),Hn),Rc=v.translatePosMatrix(_c,Ge,R,U,!0),Kc=v.translatePosMatrix(Kn,Ge,R,U),Dp=oa?km:su,kp=st&&!xt&&!$r,Mp=jt;!Si&&!Oe.mercatorFromTransition||st||(Mp=Bk(Oe));let Ef=mn?Mp:jt;if(hi.sdfIcons&&!hi.iconsInText)id=jg(gc.kind,$c,kp,xt,v,Kc,Dp,Rc,!1,qc,!0,$t,Nn,ft,Or,Ef,hi.getProjection());else{let us=f.getColorAdjustmentMatrix(ye,Ae,je,He);id=yE(gc.kind,$c,kp,xt,v,Kc,Dp,Rc,!1,qc,$t,Nn,ft,Or,Ef,hi.getProjection(),us,Us)}let Nm=Ge.imageAtlasTexture?Ge.imageAtlasTexture:null,Od=f.layout.get("icon-size").constantOr(0)!==1||hi.iconsNeedLinear,Fv=hi.sdfIcons||v.options.rotating||v.options.zooming||Od||nd?be.LINEAR:be.NEAREST,Lv=hi.sdfIcons&&f.paint.get("icon-halo-width").constantOr(1)!==0,Qy=v.terrain&&xt&&$r?o.a9.invert(o.a9.create(),su):km;if($r&&hi.icon){let us=Oe.elevation,vc=us?us.getAtTileOffsetFunc($t,Oe.center.lat,Oe.worldSize,hi.getProjection()):null,nw=xy(Kn,Ge.tileID.canonical,xt,st,Oe,hi.getProjection(),Hn);mv(hi,Kn,v,!1,nw,_c,xt,me,vc,$t)}return{program:Vr,buffers:hi.icon,uniformValues:id,atlasTexture:Nm,atlasTextureIcon:null,atlasInterpolation:Fv,atlasInterpolationIcon:null,isSDF:hi.sdfIcons,hasHalo:Lv,tile:Ge,labelPlaneMatrixInv:Qy}},ho=()=>{let $r=ot&&f.layout.get("symbol-placement")!=="point",Kr=[],oa=$r||kt||vo;v.terrainRenderModeElevated()&&Yt&&Kr.push("PITCH_WITH_MAP_TERRAIN"),mn&&(Kr.push("PROJECTION_GLOBE_VIEW"),oa&&Kr.push("PROJECTED_POS_ON_VIEWPORT")),hi.text.zOffsetVertexBuffer&&Kr.push("Z_OFFSET");let Us=hi.text.programConfigurations.get(f.id),po=v.getOrCreateProgram(hi.iconsInText?"symbolTextAndIcon":"symbolSDF",{config:Us,defines:Kr}),Vr,id=[0,0],qc=null,gc=hi.textSizeData;hi.iconsInText&&(id=Ge.imageAtlasTexture?Ge.imageAtlasTexture.size:[0,0],qc=Ge.imageAtlasTexture?Ge.imageAtlasTexture:null,Vr=Yt||Oe.pitch!==0||v.options.rotating||v.options.zooming||gc.kind==="composite"||gc.kind==="camera"?be.LINEAR:be.NEAREST);let $c=Ge.glyphAtlasTexture?Ge.glyphAtlasTexture.size:[0,0],nd=o.b8(gc,Oe.zoom),su=by(Kn,Ge.tileID.canonical,Yt,ot,Oe,hi.getProjection(),Hn),_c=Cp(Kn,Ge.tileID.canonical,Yt,ot,Oe,hi.getProjection(),Hn),Rc=v.translatePosMatrix(_c,Ge,B,G,!0),Kc=v.translatePosMatrix(Kn,Ge,B,G),Dp=oa?km:su,kp=ot&&!Yt&&!$r,Mp=jt;!Si&&!Oe.mercatorFromTransition||ot||(Mp=Bk(Oe));let Ef=mn?Mp:jt,Nm;Nm=hi.iconsInText?Hg(gc.kind,nd,kp,Yt,v,Kc,Dp,Rc,$c,id,$t,Nn,ft,Or,Ef,hi.getProjection()):jg(gc.kind,nd,kp,Yt,v,Kc,Dp,Rc,!0,$c,!0,$t,Nn,ft,Or,Ef,hi.getProjection());let Od=Ge.glyphAtlasTexture?Ge.glyphAtlasTexture:null,Fv=be.LINEAR,Lv=f.paint.get("text-halo-width").constantOr(1)!==0,Qy=v.terrain&&Yt&&$r?o.a9.invert(o.a9.create(),su):km;if($r&&hi.text){let us=Oe.elevation,vc=us?us.getAtTileOffsetFunc($t,Oe.center.lat,Oe.worldSize,hi.getProjection()):null,nw=xy(Kn,Ge.tileID.canonical,Yt,ot,Oe,hi.getProjection(),Hn);mv(hi,Kn,v,!0,nw,_c,Yt,_e,vc,$t)}return{program:po,buffers:hi.text,uniformValues:Nm,atlasTexture:Od,atlasTextureIcon:qc,atlasInterpolation:Fv,atlasInterpolationIcon:Vr,isSDF:!0,hasHalo:Lv,tile:Ge,labelPlaneMatrixInv:Qy}},ga=hi.icon.segments.get().length,_s=hi.text.segments.get().length,Zl=ga&&!D.onlyText?No():null,ll=_s&&!D.onlyIcons?ho():null,Ks=f.paint.get("icon-opacity").constantOr(1),Ts=f.paint.get("text-opacity").constantOr(1);if(gt&&hi.canOverlap){zt=!0;let $r=Ks&&!D.onlyText?hi.icon.segments.get():[],Kr=Ts&&!D.onlyIcons?hi.text.segments.get():[];for(let oa of $r)St.push({segments:new o.aE([oa]),sortKey:oa.sortKey,state:Zl});for(let oa of Kr)St.push({segments:new o.aE([oa]),sortKey:oa.sortKey,state:ll})}else D.onlyText||St.push({segments:Ks?hi.icon.segments:new o.aE([]),sortKey:0,state:Zl}),D.onlyIcons||St.push({segments:Ts?hi.text.segments:new o.aE([]),sortKey:0,state:ll})}zt&&St.sort(($t,Ge)=>$t.sortKey-Ge.sortKey);for(let $t of St){let Ge=$t.state;if(Ge)if(v.terrain&&v.terrain.setupElevationDraw(Ge.tile,Ge.program,{useDepthForOcclusion:Oe.depthOcclusionForSymbolsAndCircles,labelPlaneMatrixInv:Ge.labelPlaneMatrixInv}),Ze.activeTexture.set(be.TEXTURE0),Ge.atlasTexture&&Ge.atlasTexture.bind(Ge.atlasInterpolation,be.CLAMP_TO_EDGE,!0),Ge.atlasTextureIcon&&(Ze.activeTexture.set(be.TEXTURE1),Ge.atlasTextureIcon&&Ge.atlasTextureIcon.bind(Ge.atlasInterpolationIcon,be.CLAMP_TO_EDGE,!0)),v.uploadCommonLightUniforms(v.context,Ge.program),Ge.hasHalo){let hi=Ge.uniformValues;hi.u_is_halo=1,wE(Ge.buffers,$t.segments,f,v,Ge.program,Zt,w,E,hi,2),hi.u_is_halo=0}else{if(Ge.isSDF){let hi=Ge.uniformValues;Ge.hasHalo&&(hi.u_is_halo=1,wE(Ge.buffers,$t.segments,f,v,Ge.program,Zt,w,E,hi,1)),hi.u_is_halo=0}wE(Ge.buffers,$t.segments,f,v,Ge.program,Zt,w,E,Ge.uniformValues,1)}}}function wE(v,d,f,y,w,E,D,R,B,U){let G=[v.dynamicLayoutVertexBuffer,v.opacityVertexBuffer,v.iconTransitioningVertexBuffer,v.globeExtVertexBuffer,v.zOffsetVertexBuffer];w.draw(y,y.context.gl.TRIANGLES,E,D,R,Cr.disabled,B,f.id,v.layoutVertexBuffer,v.indexBuffer,d,f.paint,y.transform.zoom,v.programConfigurations.get(f.id),G,U)}function CE(v,d,f,y,w,E,D){let R=v.context.gl,B=f.paint.get("fill-pattern"),U=B&&B.constantOr(1),G,$,Q,te,he;D?($=U&&!f.getPaintProperty("fill-outline-color")?"fillOutlinePattern":"fillOutline",G=R.LINES):($=U?"fillPattern":"fill",G=R.TRIANGLES);for(let me of y){let _e=d.getTile(me);if(U&&!_e.patternsLoaded())continue;let ye=_e.getBucket(f);if(!ye)continue;v.prepareDrawTile();let Ae=ye.programConfigurations.get(f.id),je=v.isTileAffectedByFog(me),He=v.getOrCreateProgram($,{config:Ae,overrideFog:je});U&&(v.context.activeTexture.set(R.TEXTURE0),_e.imageAtlasTexture&&_e.imageAtlasTexture.bind(R.LINEAR,R.CLAMP_TO_EDGE),Ae.updatePaintBuffers());let Ze=B.constantOr(null);if(Ze&&_e.imageAtlas){let st=_e.imageAtlas.patternPositions[Ze.toString()];st&&Ae.setConstantPatternPositions(st)}let be=v.translatePosMatrix(me.projMatrix,_e,f.paint.get("fill-translate"),f.paint.get("fill-translate-anchor")),Oe=f.paint.get("fill-emissive-strength");if(D){te=ye.indexBuffer2,he=ye.segments2;let st=v.terrain&&v.terrain.renderingToTexture?v.terrain.drapeBufferSize:[R.drawingBufferWidth,R.drawingBufferHeight];Q=$==="fillOutlinePattern"&&U?Cf(be,Oe,v,_e,st):_P(be,Oe,st)}else te=ye.indexBuffer,he=ye.segments,Q=U?wf(be,Oe,v,_e):Ug(be,Oe);v.uploadCommonUniforms(v.context,He,me.toUnwrapped()),He.draw(v,G,w,v.stencilModeForClipping(me),E,Cr.disabled,Q,f.id,ye.layoutVertexBuffer,te,he,f.paint,v.transform.zoom,Ae,void 0)}}function dn(v,d,f,y,w,E,D,R){f.resetLayerRenderingStats(v);let B=v.context,U=B.gl,G=v.transform,$=f.paint.get("fill-extrusion-pattern"),Q=$.constantOr(1),te=f.paint.get("fill-extrusion-opacity"),he=v.style.enable3dLights(),me=f.paint.get(he&&!Q?"fill-extrusion-ambient-occlusion-wall-radius":"fill-extrusion-ambient-occlusion-radius"),_e=[f.paint.get("fill-extrusion-ambient-occlusion-intensity"),me],ye=f.layout.get("fill-extrusion-edge-radius"),Ae=ye>0&&!f.paint.get("fill-extrusion-rounded-roof"),je=Ae?0:ye,He=G.projection.name==="globe"?o.cM():0,Ze=G.projection.name==="globe",be=Ze?o.W(G.zoom):0,Oe=[o.a8(G.center.lng),o.ah(G.center.lat)],st=f.paint.get("fill-extrusion-flood-light-color").toArray01().slice(0,3),ot=f.paint.get("fill-extrusion-flood-light-intensity"),xt=f.paint.get("fill-extrusion-vertical-scale"),Yt=Tm(v,f.paint.get("fill-extrusion-cutoff-fade-range")),gt=f.paint.get("fill-extrusion-emissive-strength"),zt=[],Zt;Ze&&zt.push("PROJECTION_GLOBE_VIEW"),_e[0]>0&&zt.push("FAUX_AO"),Ae&&zt.push("ZERO_ROOF_RADIUS"),R&&zt.push("HAS_CENTROID"),ot>0&&zt.push("FLOOD_LIGHT"),Yt.shouldRenderCutoff&&zt.push("RENDER_CUTOFF");let ft=v.renderPass==="shadow",kt=v.shadowRenderer,Si=ft&&!!kt;v.shadowRenderer&&(v.shadowRenderer.useNormalOffset=!0);let St=[0,0,0];if(kt){let Ge=v.style.directionalLight,hi=v.style.ambientLight;Ge&&hi&&(St=Ak(Ge,hi)),Zt=zt.concat(["SHADOWS_SINGLE_CASCADE"])}let jt=Si?"fillExtrusionDepth":Q?"fillExtrusionPattern":"fillExtrusion",$t=f.getLayerRenderingStats();for(let Ge of y){let hi=d.getTile(Ge),mn=hi.getBucket(f);if(!mn||mn.projection.name!==G.projection.name)continue;let Nn=!1;kt&&(Nn=kt.getMaxCascadeForTile(Ge.toUnwrapped())===0);let Kn=v.isTileAffectedByFog(Ge),Hn=mn.programConfigurations.get(f.id),rr=v.getOrCreateProgram(jt,{config:Hn,defines:Nn?Zt:zt,overrideFog:Kn});if(v.terrain&&v.terrain.setupElevationDraw(hi,rr,{useMeterToDem:!0}),!mn.centroidVertexBuffer){let _s=rr.attributes.a_centroid_pos;_s!==void 0&&U.vertexAttrib2f(_s,0,0)}!ft&&kt&&kt.setupShadows(hi.tileID.toUnwrapped(),rr,"vector-tile",hi.tileID.overscaledZ),Q&&(v.context.activeTexture.set(U.TEXTURE0),hi.imageAtlasTexture&&hi.imageAtlasTexture.bind(U.LINEAR,U.CLAMP_TO_EDGE),Hn.updatePaintBuffers());let vo=$.constantOr(null);if(vo&&hi.imageAtlas){let _s=hi.imageAtlas.patternPositions[vo.toString()];_s&&Hn.setConstantPatternPositions(_s)}let Or=f.paint.get("fill-extrusion-vertical-gradient"),No;if(ft&&kt){if(Sf(hi.tileID,mn,v))continue;let _s=kt.calculateShadowPassMatrixFromTile(hi.tileID.toUnwrapped());No=Ip(_s,je,xt)}else{let _s=v.translatePosMatrix(Ge.expandedProjMatrix,hi,f.paint.get("fill-extrusion-translate"),f.paint.get("fill-extrusion-translate-anchor")),Zl=G.projection.createInversionMatrix(G,Ge.canonical);No=Q?Py(_s,v,Or,te,_e,je,Ge,hi,He,be,Oe,Zl,st,xt):L1(_s,v,Or,te,_e,je,Ge,He,be,Oe,Zl,st,xt,ot,St,gt)}v.uploadCommonUniforms(B,rr,Ge.toUnwrapped(),null,Yt);let ho=mn.segments;if(G.projection.name==="mercator"&&!ft&&(ho=mn.getVisibleSegments(hi.tileID,v.terrain,v.transform.getFrustum(0)),!ho.get().length))continue;if($t)if(ft)for(let _s of ho.get())$t.numRenderedVerticesInShadowPass+=_s.primitiveLength;else for(let _s of ho.get())$t.numRenderedVerticesInTransparentPass+=_s.primitiveLength;let ga=[];(v.terrain||R)&&ga.push(mn.centroidVertexBuffer),Ze&&ga.push(mn.layoutVertexExtBuffer),rr.draw(v,B.gl.TRIANGLES,w,E,D,Cr.backCCW,No,f.id,mn.layoutVertexBuffer,mn.indexBuffer,ho,f.paint,v.transform.zoom,Hn,ga)}v.shadowRenderer&&(v.shadowRenderer.useNormalOffset=!1)}function Mm(v,d,f,y,w,E,D,R,B,U,G,$,Q,te,he,me,_e,ye,Ae){let je=v.context,He=je.gl,Ze=v.transform,be=v.transform.zoom,Oe=[],st=Tm(v,f.paint.get("fill-extrusion-cutoff-fade-range"));U==="clear"?(Oe.push("CLEAR_SUBPASS"),Ae&&(Oe.push("CLEAR_FROM_TEXTURE"),je.activeTexture.set(He.TEXTURE0),Ae.bind(He.LINEAR,He.CLAMP_TO_EDGE))):U==="sdf"&&Oe.push("SDF_SUBPASS"),_e&&Oe.push("HAS_CENTROID"),st.shouldRenderCutoff&&Oe.push("RENDER_CUTOFF");let ot=f.layout.get("fill-extrusion-edge-radius"),xt=(Yt,gt,zt,Zt,ft)=>{let kt=gt.programConfigurations.get(f.id),Si=v.isTileAffectedByFog(Yt),St=v.getOrCreateProgram("fillExtrusionGroundEffect",{config:kt,defines:Oe,overrideFog:Si}),jt=((Ge,hi,mn,Nn,Kn,Hn,rr,vo,Or,No,ho)=>({u_matrix:hi,u_opacity:mn,u_ao_pass:Nn?1:0,u_meter_to_tile:Kn,u_ao:Hn,u_flood_light_intensity:rr,u_flood_light_color:vo,u_attenuation:Or,u_edge_radius:No,u_fb:0,u_fb_size:ho}))(0,Zt,G,B,ft,[$,Q*ft],te,he,me,be>=17?0:ot*ft,Ae?Ae.size[0]:0),$t=[];_e&&$t.push(gt.hiddenByLandmarkVertexBuffer),v.uploadCommonUniforms(je,St,Yt.toUnwrapped(),null,st),St.draw(v,je.gl.TRIANGLES,w,E,D,R,jt,f.id,gt.vertexBuffer,gt.indexBuffer,zt,f.paint,be,kt,$t)};for(let Yt of y){let gt=d.getTile(Yt),zt=gt.getBucket(f);if(!zt||zt.projection.name!==Ze.projection.name||!zt.groundEffect||zt.groundEffect&&!zt.groundEffect.hasData())continue;let Zt=zt.groundEffect,ft=1/zt.tileToMeter;{let kt=v.translatePosMatrix(Yt.projMatrix,gt,f.paint.get("fill-extrusion-translate"),f.paint.get("fill-extrusion-translate-anchor")),Si=Zt.getDefaultSegment();xt(Yt,Zt,Si,kt,ft)}if(ye)for(let kt=0;kt<4;kt++){let Si=o.cN[kt](Yt),St=d.getTile(Si);if(!St)continue;let jt=St.getBucket(f);if(!jt||jt.projection.name!==Ze.projection.name||!jt.groundEffect||jt.groundEffect&&!jt.groundEffect.hasData())continue;let $t=jt.groundEffect,Ge,hi;kt===0?(Ge=[-o.Y,0,0],hi=1):kt===1?(Ge=[o.Y,0,0],hi=0):kt===2?(Ge=[0,-o.Y,0],hi=3):(Ge=[0,o.Y,0],hi=2);let mn=$t.regionSegments[hi];if(!mn)continue;let Nn=new Float32Array(16);o.a9.translate(Nn,Yt.projMatrix,Ge),xt(Yt,$t,mn,v.translatePosMatrix(Nn,gt,f.paint.get("fill-extrusion-translate"),f.paint.get("fill-extrusion-translate-anchor")),ft)}}}function Vk(v,d,f,y,w,E,D){y.centroidVertexArray.length===0&&y.createCentroidsBuffer();let R=E?E.findDEMTileFor(f):null;if(!(R&&R.dem||D))return;let B=ye=>new o.P(Math.ceil((ye+o.cQ)*o.cR),0),U=ye=>{let Ae=d.getSource().minzoom,je=Ze=>{let be=d.getTileByID(Ze);if(be&&be.hasData())return be.getBucket(w)},He=[0,-1,1];for(let Ze of He){if(ye.overscaledZ+Ze(G[0]=Math.min(ye.min.y,Ae.min.y),G[1]=Math.max(ye.max.y,Ae.max.y),G[2]=o.Y-Ae.min.x>ye.max.x?Ae.min.x-o.Y:ye.max.x,G),Q=(ye,Ae)=>(G[0]=Math.min(ye.min.x,Ae.min.x),G[1]=Math.max(ye.max.x,Ae.max.x),G[2]=o.Y-Ae.min.y>ye.max.y?Ae.min.y-o.Y:ye.max.y,G),te=[(ye,Ae)=>$(ye,Ae),(ye,Ae)=>$(Ae,ye),(ye,Ae)=>Q(ye,Ae),(ye,Ae)=>Q(Ae,ye)],he=(ye,Ae,je,He,Ze,be,Oe)=>{if(!E)return 0;let st=[[be?je:ye,be?ye:je,0],[be?je:Ae,be?Ae:je,0]],ot=Oe<0?o.Y+Oe:Oe,xt=[be?ot:(ye+Ae)/2,be?(ye+Ae)/2:ot,0];return je===0&&Oe<0||je!==0&&Oe>0?E.getForTilePoints(Ze,[xt],!0,He):st.push(xt),E.getForTilePoints(f,st,!0,R),Math.max(st[0][2],st[1][2],xt[2])/E.exaggeration()};for(let ye=0;ye<4;ye++){let Ae=y.borderFeatureIndices[ye];if(Ae.length===0)continue;let je=o.cN[ye](f),He=U(je);if(!(He&&He instanceof o.cO)||y.borderDoneWithNeighborZ[ye]===He.canonical.z)continue;He.centroidVertexArray.length===0&&He.createCentroidsBuffer();let Ze=E?E.findDEMTileFor(je):null;if(!(Ze&&Ze.dem||D))continue;let be=(ye<2?1:5)-ye,Oe=He.borderDoneWithNeighborZ[be]!==y.canonical.z,st=He.borderFeatureIndices[be],ot=0;if(y.canonical.z!==He.canonical.z){for(let xt of Ae)y.showCentroid(y.featuresOnBorder[xt]);if(Oe)for(let xt of st)He.showCentroid(He.featuresOnBorder[xt]);y.borderDoneWithNeighborZ[ye]=He.canonical.z,He.borderDoneWithNeighborZ[be]=y.canonical.z}for(let xt of Ae){let Yt=y.featuresOnBorder[xt],gt=y.centroidData[Yt.centroidDataIndex],zt=Yt.borders[ye],Zt;for(;otzt[0]+3||ft[0]>zt[0]-3)break;He.showCentroid(Zt),ot++}if(Zt&&otzt[1]-3)&&(kt++,++ot!==st.length);)Zt=He.featuresOnBorder[st[ot]];if(Zt=He.featuresOnBorder[st[ft]],kt>1){let jt=Zt.borders[be];Math.abs(zt[0]-jt[0])<3&&Math.abs(zt[1]-jt[1])<3&&(kt=1,ot=ft+1)}else if(kt===0){y.showCentroid(Yt);continue}let Si=He.centroidData[Zt.centroidDataIndex];D&&kt===1&&(((me=gt).flags|(_e=Si).flags)&o.cP?(me.flags|=o.cP,_e.flags|=o.cP):(me.flags&=~o.cP,_e.flags&=~o.cP));let St=Yt.intersectsCount()>1||Zt.intersectsCount()>1;if(kt>1)ot=ft,gt.centroidXY=Si.centroidXY=new o.P(0,0);else if(Ze&&Ze.dem&&!St){let jt=te[ye](gt,Si),$t=ye%2?o.Y-1:0,Ge=he(jt[0],Math.min(o.Y-1,jt[1]),$t,Ze,je,ye<2,jt[2]);gt.centroidXY=Si.centroidXY=B(Ge)}else St?gt.centroidXY=Si.centroidXY=new o.P(0,0):(gt.centroidXY=y.encodeBorderCentroid(Yt),Si.centroidXY=He.encodeBorderCentroid(Zt));y.writeCentroidToBuffer(gt),He.writeCentroidToBuffer(Si)}else y.showCentroid(Yt)}y.borderDoneWithNeighborZ[ye]=He.canonical.z,He.borderDoneWithNeighborZ[be]=y.canonical.z}var me,_e;(y.needsCentroidUpdate||!y.centroidVertexBuffer&&y.centroidVertexArray.length!==0)&&y.uploadCentroid(v)}let SE=[1,0,0],EE=[0,1,0],By=[0,0,1];function Sf(v,d,f){let y=f.transform,w=f.shadowRenderer;if(!w)return!0;let E=v.toUnwrapped(),D=y.tileSize*w._cascades[f.currentShadowCascade].scale,R=d.maxHeight;if(y.elevation){let me=y.elevation.getMinMaxForTile(v);me&&(R+=me.max)}let B=[...w.shadowDirection];B[2]=-B[2];let U=w.computeSimplifiedTileShadowVolume(E,R,D,B);if(!U)return!1;let G=[SE,EE,By,B,[B[0],0,B[2]],[0,B[1],B[2]]],$=y.projection.name==="globe",Q=y.scaleZoom(D),te=o.bt.fromInvProjectionMatrix(y.invProjMatrix,y.worldSize,Q,!$),he=w.getCurrentCascadeFrustum();return te.intersectsPrecise(U.vertices,U.planes,G)===0||he.intersectsPrecise(U.vertices,U.planes,G)===0}function U1(v){return[v[0]*o.cS,v[1]*o.cS,v[2]*o.cS,0]}function Ol(v,d,f,y,w,E,D,R,B){let U=y.getSource(),G=f.globeSharedBuffers;if(!G)return;let $,Q,te;if(d&&($=y.getTile(d)),U instanceof o.as?(Q=U.texture,te=o.co(0,0,f.transform)):$&&d&&(Q=$.texture,te=o.co(d.canonical.z,d.canonical.x,f.transform)),!Q||!te)return;v||(te=o.a9.scale(o.a9.create(),te,[1,-1,1]));let he=f.context,me=he.gl,_e=w.paint.get("raster-resampling")==="nearest"?me.NEAREST:me.LINEAR,ye=f.colorModeForDrapableLayerRenderPass(E),Ae=D.defines;Ae.push("GLOBE_POLES");let je=new or(me.LEQUAL,or.ReadWrite,f.depthRangeFor3D),He=Float32Array.from(f.transform.expandedFarZProjMatrix),Ze=Float32Array.from(o.aW(o.cn(new o.bv(0,0,0))));f.terrain&&f.terrain.prepareDrawTile(),he.activeTexture.set(me.TEXTURE0),Q.bind(_e,me.CLAMP_TO_EDGE),he.activeTexture.set(me.TEXTURE1),Q.bind(_e,me.CLAMP_TO_EDGE),Q.useMipmap&&he.extTextureFilterAnisotropic&&f.transform.pitch>20&&me.texParameterf(me.TEXTURE_2D,he.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,he.extTextureFilterAnisotropicMax);let[be,Oe,st,ot]=d?G.getPoleBuffers(d.canonical.z,!1):G.getPoleBuffers(0,!0),xt=w.paint.get("raster-elevation"),Yt;v?(Yt=be,f.renderDefaultNorthPole=xt!==0):(Yt=Oe,f.renderDefaultSouthPole=xt!==0);let gt=U1(D.mix),zt=((ft,kt,Si,St,jt,$t,Ge,hi,mn,Nn,Kn,Hn,rr)=>Nk(ft,kt,Si,new Float32Array(16),new Float32Array(9),[0,0],St,[0,0],[0,0,0,0],1,{opacity:1,mix:0},$t,[0,0],hi,2,Nn,Kn,Hn,1,0,rr))(He,Ze,te,o.W(f.transform.zoom),0,w,0,xt,0,gt,D.offset,D.range,E),Zt=f.getOrCreateProgram("raster",{defines:Ae});f.uploadCommonUniforms(he,Zt,null),Zt.draw(f,me.TRIANGLES,je,B,ye,R,zt,w.id,Yt,st,ot)}function IE(v){let d=v._nearZ,f=v.projection.farthestPixelDistance(v),y=f-d,w=.2*v.height,E=d+w;return[d,f,(E-w-d)/y,(E-d)/y]}function zy(v,d,f,y){if(v)return d instanceof Ui&&v instanceof my?d.getTextureDescriptor(v,f,!0):{texture:v.texture,mix:U1(y.mix),offset:y.offset,buffer:0,tileSize:1}}function AU(v,d,f){if(!v)return null;let y=d.getTextureDescriptor(v,f,!0);if(!y)return null;let{texture:w,mix:E,offset:D,tileSize:R,buffer:B,format:U}=y;if(!w||!U)return null;let G=!1;return U==="uint32"&&(G=!0,E[3]=0,E=Tv(o.cT,E,[0,f.paint.get("raster-particle-max-speed")]),D=_E(o.cT,D,[0,f.paint.get("raster-particle-max-speed")])),{texture:w,textureOffset:[B/(R+2*B),R/(R+2*B)],tileSize:R,scalarData:G,scale:E,offset:D,defines:["RASTER_ARRAY",{uint8:"DATA_FORMAT_UINT8",uint16:"DATA_FORMAT_UINT16",uint32:"DATA_FORMAT_UINT32"}[U]]}}function bP(v){let d=v._nearZ,f=v.projection.farthestPixelDistance(v),y=f-d,w=.2*v.height,E=d+w;return[d,f,(E-w-d)/y,(E-d)/y]}let j1=new o.aA(1,0,0,1),DU=new o.aA(0,1,0,1),xP=new o.aA(0,0,1,1),wP=new o.aA(1,0,1,1),Uk=new o.aA(0,1,1,1);function Mv(v,d,f,y,w,E,D){let R=v.context,B=v.transform,U=R.gl,G=B.projection.name==="globe",$=G?["PROJECTION_GLOBE_VIEW"]:[],Q=o.a9.clone(f.projMatrix);if(G&&o.W(B.zoom)>0){let gt=o.aV(f.canonical,B),zt=o.cU(gt);Q=o.a9.multiply(new Float32Array(16),B.globeMatrix,zt),o.a9.multiply(Q,B.projMatrix,Q)}let te=o.a9.create();te[12]+=2*w/(o.f.devicePixelRatio*B.width),te[13]+=2*E/(o.f.devicePixelRatio*B.height),o.a9.multiply(Q,te,Q);let he=v.getOrCreateProgram("debug",{defines:$}),me=d.getTileByID(f.key);v.terrain&&v.terrain.setupElevationDraw(me,he);let _e=or.disabled,ye=Fr.disabled,Ae=v.colorModeForRenderPass(),je="$debug";R.activeTexture.set(U.TEXTURE0),v.emptyTexture.bind(U.LINEAR,U.CLAMP_TO_EDGE),G?me._makeGlobeTileDebugBuffers(v.context,B):me._makeDebugTileBoundsBuffers(v.context,B.projection);let He=me._tileDebugBuffer||v.debugBuffer,Ze=me._tileDebugIndexBuffer||v.debugIndexBuffer,be=me._tileDebugSegments||v.debugSegments;if(he.draw(v,U.LINE_STRIP,_e,ye,Ae,Cr.disabled,Ok(Q,y),je,He,Ze,be,null,null,null,[me._globeTileDebugBorderBuffer]),D){let gt=me.latestRawTileData,zt=Math.floor((gt&>.byteLength||0)/1024),Zt=f.canonical.toString();f.overscaledZ!==f.canonical.z&&(Zt+=` => ${f.overscaledZ}`),Zt+=` ${me.state}`,Zt+=` ${zt}kb`,function(ft,kt){ft.initDebugOverlayCanvas();let Si=ft.debugOverlayCanvas,St=ft.context.gl,jt=ft.debugOverlayCanvas.getContext("2d");jt.clearRect(0,0,Si.width,Si.height),jt.shadowColor="white",jt.shadowBlur=2,jt.lineWidth=1.5,jt.strokeStyle="white",jt.textBaseline="top",jt.font="bold 36px Open Sans, sans-serif",jt.fillText(kt,5,5),jt.strokeText(kt,5,5),ft.debugOverlayTexture.update(Si),ft.debugOverlayTexture.bind(St.LINEAR,St.CLAMP_TO_EDGE)}(v,Zt)}let Oe=d.getTile(f).tileSize,st=512/Math.min(Oe,512)*(f.overscaledZ/B.zoom)*.5,ot=me._tileDebugTextBuffer||v.debugBuffer,xt=me._tileDebugTextIndexBuffer||v.quadTriangleIndexBuffer,Yt=me._tileDebugTextSegments||v.debugSegments;he.draw(v,U.TRIANGLES,_e,ye,lo.alphaBlended,Cr.disabled,Ok(Q,o.aA.transparent,st),je,ot,xt,Yt,null,null,null,[me._globeTileDebugTextBuffer])}function TE(v,d,f,y){H1(v,0,d+f/2,v.transform.width,f,y)}function CP(v,d,f,y){H1(v,d-f/2,0,f,v.transform.height,y)}function H1(v,d,f,y,w,E){let D=v.context,R=D.gl;R.enable(R.SCISSOR_TEST),R.scissor(d*o.f.devicePixelRatio,f*o.f.devicePixelRatio,y*o.f.devicePixelRatio,w*o.f.devicePixelRatio),D.clear({color:E}),R.disable(R.SCISSOR_TEST)}let AE=o.aB([{name:"a_pos_3f",components:3,type:"Float32"}]),{members:jk}=AE;function Fh(v,d,f,y){v.emplaceBack(d,f,y)}class Hk{constructor(d){this.vertexArray=new o.cV,this.indices=new o.az,Fh(this.vertexArray,-1,-1,1),Fh(this.vertexArray,1,-1,1),Fh(this.vertexArray,-1,1,1),Fh(this.vertexArray,1,1,1),Fh(this.vertexArray,-1,-1,-1),Fh(this.vertexArray,1,-1,-1),Fh(this.vertexArray,-1,1,-1),Fh(this.vertexArray,1,1,-1),this.indices.emplaceBack(5,1,3),this.indices.emplaceBack(3,7,5),this.indices.emplaceBack(6,2,0),this.indices.emplaceBack(0,4,6),this.indices.emplaceBack(2,6,7),this.indices.emplaceBack(7,3,2),this.indices.emplaceBack(5,4,0),this.indices.emplaceBack(0,1,5),this.indices.emplaceBack(0,2,3),this.indices.emplaceBack(3,1,0),this.indices.emplaceBack(7,6,4),this.indices.emplaceBack(4,5,7),this.vertexBuffer=d.createVertexBuffer(this.vertexArray,jk),this.indexBuffer=d.createIndexBuffer(this.indices),this.segment=o.aE.simpleSegment(0,0,36,12)}}function Oa(v,d,f,y,w,E){let D=v.context.gl,R=d.paint.get("sky-atmosphere-color"),B=d.paint.get("sky-atmosphere-halo-color"),U=d.paint.get("sky-atmosphere-sun-intensity"),G=(($,Q,te,he,me)=>({u_matrix_3f:$,u_sun_direction:Q,u_sun_intensity:te,u_color_tint_r:[he.r,he.g,he.b,he.a],u_color_tint_m:[me.r,me.g,me.b,me.a],u_luminance:5e-5}))(o.ct.fromMat4(o.ct.create(),y),w,U,R,B);D.framebufferTexture2D(D.FRAMEBUFFER,D.COLOR_ATTACHMENT0,D.TEXTURE_CUBE_MAP_POSITIVE_X+E,d.skyboxTexture,0),f.draw(v,D.TRIANGLES,or.disabled,Fr.disabled,lo.unblended,Cr.frontCW,G,"skyboxCapture",d.skyboxGeometry.vertexBuffer,d.skyboxGeometry.indexBuffer,d.skyboxGeometry.segment)}let Gk=o.aB([{type:"Float32",name:"a_pos",components:3},{type:"Float32",name:"a_uv",components:2}]);class G1{constructor(d){let f=new o.cW;f.emplaceBack(-1,1,1,0,0),f.emplaceBack(1,1,1,1,0),f.emplaceBack(1,-1,1,1,1),f.emplaceBack(-1,-1,1,0,1);let y=new o.az;y.emplaceBack(0,1,2),y.emplaceBack(2,3,0),this.vertexBuffer=d.createVertexBuffer(f,Gk.members),this.indexBuffer=d.createIndexBuffer(y),this.segments=o.aE.simpleSegment(0,0,4,2)}destroy(){this.vertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy()}}let Yk=o.aB([{type:"Float32",name:"a_pos_3f",components:3},{type:"Float32",name:"a_uv",components:2},{type:"Float32",name:"a_size_scale",components:1},{type:"Float32",name:"a_fade_opacity",components:1}]);class Gg{constructor(){this.starsCount=16e3,this.sizeMultiplier=.15,this.sizeRange=100,this.intensityRange=200}}class qk{constructor(d){this.colorModeAlphaBlendedWriteRGB=new lo([1,y1,1,y1],o.aA.transparent,[!0,!0,!0,!1]),this.colorModeWriteAlpha=new lo([1,0,1,0],o.aA.transparent,[!1,!1,!1,!0]),this.params=new Gg,this.updateNeeded=!0,d.tp.registerParameter(this.params,["Stars"],"starsCount",{min:100,max:16e3,step:1},()=>{this.updateNeeded=!0}),d.tp.registerParameter(this.params,["Stars"],"sizeMultiplier",{min:.01,max:2,step:.01}),d.tp.registerParameter(this.params,["Stars"],"sizeRange",{min:0,max:200,step:1},()=>{this.updateNeeded=!0}),d.tp.registerParameter(this.params,["Stars"],"intensityRange",{min:0,max:200,step:1},()=>{this.updateNeeded=!0})}update(d){let f=d.context;if(!this.atmosphereBuffer||this.updateNeeded){this.updateNeeded=!1,this.atmosphereBuffer=new G1(f);let y=this.params.sizeRange,w=this.params.intensityRange,E=function(G){let $=o.aC(30),Q=[];for(let te=0;te{let He=E.projection.name==="globe"?["PROJECTION_GLOBE_VIEW","FOG"]:["FOG"];je&&He.push("ALPHA_PASS");let Ze=d.getOrCreateProgram("globeAtmosphere",{defines:He}),be=((st,ot,xt,Yt,gt,zt,Zt,ft,kt,Si,St,jt)=>({u_frustum_tl:st,u_frustum_tr:ot,u_frustum_br:xt,u_frustum_bl:Yt,u_horizon:gt,u_transition:zt,u_fadeout_range:Zt,u_color:ft,u_high_color:kt,u_space_color:Si,u_temporal_offset:St,u_horizon_angle:jt}))(E.frustumCorners.TL,E.frustumCorners.TR,E.frustumCorners.BR,E.frustumCorners.BL,E.frustumCorners.horizon,R,Q,B,U,G,he,ye);d.uploadCommonUniforms(y,Ze);let Oe=this.atmosphereBuffer;Oe&&Ze.draw(d,w.TRIANGLES,D,Fr.disabled,je?this.colorModeWriteAlpha:this.colorModeAlphaBlendedWriteRGB,Cr.backCW,be,je?"atmosphere_glow_alpha":"atmosphere_glow",Oe.vertexBuffer,Oe.indexBuffer,Oe.segments)};Ae(!1),Ae(!0)}drawStars(d,f){let y=o.ad(f.properties.get("star-intensity"),0,1);if(y===0)return;let w=d.context,E=w.gl,D=d.transform,R=d.getOrCreateProgram("stars"),B=o.bl.identity([]);o.bl.rotateX(B,B,-D._pitch),o.bl.rotateZ(B,B,-D.angle),o.bl.rotateX(B,B,o.bm(D._center.lat)),o.bl.rotateY(B,B,-o.bm(D._center.lng));let U=o.a9.fromQuat(new Float32Array(16),B),G=o.a9.multiply([],D.starsProjMatrix,U),$=o.ct.fromMat4([],U),Q=o.ct.invert([],$),te=[0,1,0];o.Q.transformMat3(te,te,Q),o.Q.scale(te,te,this.params.sizeMultiplier);let he=[1,0,0];o.Q.transformMat3(he,he,Q),o.Q.scale(he,he,this.params.sizeMultiplier);let me=(_e=te,ye=he,Ae=y,{u_matrix:Float32Array.from(G),u_up:_e,u_right:ye,u_intensity_multiplier:Ae});var _e,ye,Ae;d.uploadCommonUniforms(w,R),this.starsVx&&this.starsIdx&&R.draw(d,E.TRIANGLES,or.disabled,Fr.disabled,this.colorModeAlphaBlendedWriteRGB,Cr.disabled,me,"atmosphere_stars",this.starsVx,this.starsIdx,this.starsSegments)}}function DE(v,d){let f=[...v],y=d.cameraWorldSizeForFog/d.worldSize,w=o.a9.identity([]);return o.a9.scale(w,w,[y,y,1]),o.a9.multiply(f,w,f),o.a9.multiply(f,d.worldToFogMatrix,f),f}function Yg(v,d,f,y){let w=f.material,E=y.context,{baseColorTexture:D,metallicRoughnessTexture:R}=w.pbrMetallicRoughness,{normalTexture:B,occlusionTexture:U,emissionTexture:G}=w;function $(Q,te,he){if(Q&&(v.push(te),E.activeTexture.set(E.gl.TEXTURE0+he),Q.gfxTexture)){let{minFilter:me,magFilter:_e,wrapS:ye,wrapT:Ae}=Q.sampler;Q.gfxTexture.bindExtraParam(me,_e,ye,Ae)}}$(D,"HAS_TEXTURE_u_baseColorTexture",Dd.BaseColor),$(R,"HAS_TEXTURE_u_metallicRoughnessTexture",Dd.MetallicRoughness),$(B,"HAS_TEXTURE_u_normalTexture",Dd.Normal),$(U,"HAS_TEXTURE_u_occlusionTexture",Dd.Occlusion),$(G,"HAS_TEXTURE_u_emissionTexture",Dd.Emission),f.texcoordBuffer&&(v.push("HAS_ATTRIBUTE_a_uv_2f"),d.push(f.texcoordBuffer)),f.colorBuffer&&(v.push(f.colorBuffer.itemSize===12?"HAS_ATTRIBUTE_a_color_3f":"HAS_ATTRIBUTE_a_color_4f"),d.push(f.colorBuffer)),f.normalBuffer&&(v.push("HAS_ATTRIBUTE_a_normal_3f"),d.push(f.normalBuffer)),f.pbrBuffer&&(v.push("HAS_ATTRIBUTE_a_pbr"),v.push("HAS_ATTRIBUTE_a_heightBasedEmissiveStrength"),d.push(f.pbrBuffer)),w.alphaMode!=="OPAQUE"&&w.alphaMode!=="MASK"||v.push("UNPREMULT_TEXTURE_IN_SHADER"),w.defined||v.push("DIFFUSE_SHADED"),v.push("USE_STANDARD_DERIVATIVES")}function Om(v,d,f,y,w,E){let D=f.paint.get("model-opacity"),R=d.context,B=new or(d.context.gl.LEQUAL,or.ReadWrite,d.depthRangeFor3D),U=d.transform,G=v.mesh,$=G.material,Q=$.pbrMetallicRoughness,te=d.style.fog,he;he=d.transform.projection.zAxisUnit==="pixels"?[...v.nodeModelMatrix]:o.a9.multiply([],y.zScaleMatrix,v.nodeModelMatrix),o.a9.multiply(he,y.negCameraPosMatrix,he);let me=o.a9.invert([],he);o.a9.transpose(me,me);let _e=f.paint.get("model-emissive-strength").constantOr(0),ye=z1(new Float32Array(v.worldViewProjection),new Float32Array(he),new Float32Array(me),null,d,D,Q.baseColorFactor,$.emissiveFactor,Q.metallicFactor,Q.roughnessFactor,$,_e,f),Ae={defines:[]},je=[];Yg(Ae.defines,je,G,d);let He=d.shadowRenderer;He&&(He.useNormalOffset=!1);let Ze=null;if(te){let st=DE(v.nodeModelMatrix,d.transform);if(Ze=new Float32Array(st),U.projection.name!=="globe"){let ot=G.aabb.min,xt=G.aabb.max,[Yt,gt]=te.getOpacityForBounds(st,ot[0],ot[1],xt[0],xt[1]);Ae.overrideFog=Yt>=Lr||gt>=Lr}}let be=Tm(d,f.paint.get("model-cutoff-fade-range"));be.shouldRenderCutoff&&Ae.defines.push("RENDER_CUTOFF");let Oe=d.getOrCreateProgram("model",Ae);d.uploadCommonUniforms(R,Oe,null,Ze,be),d.renderPass!=="shadow"&&He&&He.setupShadowsFromMatrix(v.nodeModelMatrix,Oe),Oe.draw(d,R.gl.TRIANGLES,B,w,E,G.material.doubleSided?Cr.disabled:Cr.backCCW,ye,f.id,G.vertexBuffer,G.indexBuffer,G.segments,f.paint,d.transform.zoom,void 0,je)}function Y1(v,d,f,y,w,E,D){let R;R=v.projection.name==="globe"?o.c_(f,v):[...f],o.a9.multiply(R,R,d.matrix);let B=o.a9.multiply([],y,R);if(d.meshes)for(let U of d.meshes){if(U.material.alphaMode!=="BLEND"){D.push({mesh:U,depth:0,modelIndex:w,worldViewProjection:B,nodeModelMatrix:R});continue}let G=o.Q.transformMat4([],U.centroid,B);G[2]>0&&E.push({mesh:U,depth:G[2],modelIndex:w,worldViewProjection:B,nodeModelMatrix:R})}if(d.children)for(let U of d.children)Y1(v,U,f,y,w,E,D)}function Vy(v,d,f,y){let w=f.shadowRenderer;if(!w)return;let E=w.getShadowPassDepthMode(),D=w.getShadowPassColorMode(),R=w.calculateShadowPassMatrixFromMatrix(d),B=bE(R);f.getOrCreateProgram("modelDepth",{defines:f._shadowMapDebug?[]:["DEPTH_TEXTURE"]}).draw(f,f.context.gl.TRIANGLES,E,Fr.disabled,D,Cr.backCCW,B,y.id,v.vertexBuffer,v.indexBuffer,v.segments,y.paint,f.transform.zoom,void 0,void 0)}function q1(v,d,f){let y=d.updateZoomBasedPaintProperties(),w=function(E,D,R){let B,U,G,$=E.terrain?E.terrain.exaggeration():0;if(E.terrain&&$>0){let Q=E.terrain,te=Q.findDEMTileFor(R);te&&te.dem?B=o.d0.create(Q,R,te):$=0}if($===0&&(D.terrainElevationMin=0,D.terrainElevationMax=0),$===D.validForExaggeration&&($===0||B&&B._demTile&&B._demTile.tileID===D.validForDEMTile.id&&B._dem._timestamp===D.validForDEMTile.timestamp))return!1;for(let Q in D.instancesPerModel){let te=D.instancesPerModel[Q];for(let he=0;heU&&(U=te.max)}let G=o.ad(y.x,E,D)-y.x,$=o.ad(y.y,R,B)-y.y,Q=o.bo(U,d.center.lat)-y.z;return d._zoomFromMercatorZ(Math.sqrt(G*G+$*$+Q*Q))}function $1(v,d,f,y,w,E,D){let R=v.context,B=v.renderPass==="shadow",U=v.shadowRenderer,G=B&&U?U.getShadowPassDepthMode():new or(R.gl.LEQUAL,or.ReadWrite,v.depthRangeFor3D),$=v.isTileAffectedByFog(E);if(f.meshes)for(let Q of f.meshes){let te=["MODEL_POSITION_ON_GPU"],he=[],me,_e,ye;y.instancedDataArray.length>20&&te.push("INSTANCED_ARRAYS");let Ae=Tm(v,d.paint.get("model-cutoff-fade-range"));if(Ae.shouldRenderCutoff&&te.push("RENDER_CUTOFF"),B&&U)me=v.getOrCreateProgram("modelDepth",{defines:te}),_e=bE(D.shadowTileMatrix,D.shadowTileMatrix,Float32Array.from(f.matrix)),ye=U.getShadowPassColorMode();else{Yg(te,he,Q,v),me=v.getOrCreateProgram("model",{defines:te,overrideFog:$});let He=Q.material,Ze=He.pbrMetallicRoughness,be=d.paint.get("model-opacity"),Oe=d.paint.get("model-emissive-strength").constantOr(0);_e=z1(E.expandedProjMatrix,Float32Array.from(f.matrix),new Float32Array(16),null,v,be,Ze.baseColorFactor,He.emissiveFactor,Ze.metallicFactor,Ze.roughnessFactor,He,Oe,d,w),U&&(D.shadowUniformsInitialized?me.setShadowUniformValues(R,U.getShadowUniformValues()):(U.setupShadows(E.toUnwrapped(),me,"model-tile",E.overscaledZ),D.shadowUniformsInitialized=!0)),ye=Ae.shouldRenderCutoff||be<1||He.alphaMode!=="OPAQUE"?lo.alphaBlended:lo.unblended}v.uploadCommonUniforms(R,me,E.toUnwrapped(),null,Ae);let je=Q.material.doubleSided?Cr.disabled:Cr.backCCW;if(y.instancedDataArray.length>20)he.push(y.instancedDataBuffer),me.draw(v,R.gl.TRIANGLES,G,Fr.disabled,ye,je,_e,d.id,Q.vertexBuffer,Q.indexBuffer,Q.segments,d.paint,v.transform.zoom,void 0,he,y.instancedDataArray.length);else{let He=B?"u_instance":"u_normal_matrix";for(let Ze=0;Ze30&&(y.buf.destroy(),this._storage.delete(f))}destroy(){for(let[d,f]of this._storage)f.buf.destroy(),this._storage.delete(d)}}let OE={symbol:function(v,d,f,y,w){if(v.renderPass!=="translucent")return;let E=Fr.disabled,D=v.colorModeForRenderPass();f.layout.get("text-variable-anchor")&&function(U,G,$,Q,te,he,me){let _e=G.transform,ye=te==="map",Ae=he==="map";for(let je of U){let He=Q.getTile(je),Ze=He.getBucket($);if(!Ze||!Ze.text||!Ze.text.segments.get().length)continue;let be=o.b8(Ze.textSizeData,_e.zoom),Oe=E1(je,Ze.getProjection(),_e),st=_e.calculatePixelsToTileUnitsMatrix(He),ot=by(Oe,He.tileID.canonical,Ae,ye,_e,Ze.getProjection(),st),xt=Ze.hasIconTextFit()&&Ze.hasIconData();if(be){let Yt=Math.pow(2,_e.zoom-He.tileID.overscaledZ);zk(Ze,ye,Ae,me,o.cE,_e,ot,je,Yt,be,xt)}}}(y,v,f,d,f.layout.get("text-rotation-alignment"),f.layout.get("text-pitch-alignment"),w);let R=f.paint.get("icon-opacity").constantOr(1)!==0,B=f.paint.get("text-opacity").constantOr(1)!==0;f.layout.get("symbol-sort-key").constantOr(1)!==void 0&&(R||B)?kv(v,d,f,y,E,D):(R&&kv(v,d,f,y,E,D,{onlyIcons:!0}),B&&kv(v,d,f,y,E,D,{onlyText:!0})),d.map.showCollisionBoxes&&(xE(v,d,f,y,f.paint.get("text-translate"),f.paint.get("text-translate-anchor"),!0),xE(v,d,f,y,f.paint.get("icon-translate"),f.paint.get("icon-translate-anchor"),!1))},circle:function(v,d,f,y){if(v.renderPass!=="translucent")return;let w=f.paint.get("circle-opacity"),E=f.paint.get("circle-stroke-width"),D=f.paint.get("circle-stroke-opacity"),R=f.layout.get("circle-sort-key").constantOr(1)!==void 0,B=f.paint.get("circle-emissive-strength");if(w.constantOr(1)===0&&(E.constantOr(1)===0||D.constantOr(1)===0))return;let U=v.context,G=U.gl,$=v.transform,Q=v.depthModeForSublayer(0,or.ReadOnly),te=Fr.disabled,he=v.colorModeForDrapableLayerRenderPass(B),me=$.projection.name==="globe",_e=[o.a8($.center.lng),o.ah($.center.lat)],ye=[];for(let je=0;jeje.sortKey-He.sortKey);let Ae={useDepthForOcclusion:$.depthOcclusionForSymbolsAndCircles};for(let je of ye){let{programConfiguration:He,program:Ze,layoutVertexBuffer:be,globeExtVertexBuffer:Oe,indexBuffer:st,uniformValues:ot,tile:xt}=je.state,Yt=je.segments;v.terrain&&v.terrain.setupElevationDraw(xt,Ze,Ae),v.uploadCommonUniforms(U,Ze,xt.tileID.toUnwrapped()),Ze.draw(v,G.TRIANGLES,Q,te,he,Cr.disabled,ot,f.id,be,st,Yt,f.paint,$.zoom,He,[Oe])}},heatmap:function(v,d,f,y){if(f.paint.get("heatmap-opacity")!==0)if(v.renderPass==="offscreen"){let w=v.context,E=w.gl,D=Fr.disabled,R=new lo([E.ONE,E.ONE,E.ONE,E.ONE],o.aA.transparent,[!0,!0,!0,!0]);(function(te,he,me,_e){let ye=te.gl,Ae=he.width*_e,je=he.height*_e;te.activeTexture.set(ye.TEXTURE1),te.viewport.set([0,0,Ae,je]);let He=me.heatmapFbo;if(!He||He&&(He.width!==Ae||He.height!==je)){He&&He.destroy();let Ze=ye.createTexture();ye.bindTexture(ye.TEXTURE_2D,Ze),ye.texParameteri(ye.TEXTURE_2D,ye.TEXTURE_WRAP_S,ye.CLAMP_TO_EDGE),ye.texParameteri(ye.TEXTURE_2D,ye.TEXTURE_WRAP_T,ye.CLAMP_TO_EDGE),ye.texParameteri(ye.TEXTURE_2D,ye.TEXTURE_MIN_FILTER,ye.LINEAR),ye.texParameteri(ye.TEXTURE_2D,ye.TEXTURE_MAG_FILTER,ye.LINEAR),He=me.heatmapFbo=te.createFramebuffer(Ae,je,!0,null),function(be,Oe,st,ot,xt,Yt){let gt=be.gl;gt.texImage2D(gt.TEXTURE_2D,0,be.extRenderToTextureHalfFloat?gt.RGBA16F:gt.RGBA,xt,Yt,0,gt.RGBA,be.extRenderToTextureHalfFloat?gt.HALF_FLOAT:gt.UNSIGNED_BYTE,null),ot.colorAttachment.set(st)}(te,0,Ze,He,Ae,je)}else ye.bindTexture(ye.TEXTURE_2D,He.colorAttachment.get()),te.bindFramebuffer.set(He.framebuffer)})(w,v,f,v.transform.projection.name==="globe"?.5:.25),w.clear({color:o.aA.transparent});let B=v.transform,U=B.projection.name==="globe",G=U?["PROJECTION_GLOBE_VIEW"]:[],$=U?Cr.frontCCW:Cr.disabled,Q=[o.a8(B.center.lng),o.ah(B.center.lat)];for(let te=0;te({u_image:0,u_color_ramp:1,u_opacity:$.paint.get("heatmap-opacity")}))(0,E),E.id,w.viewportBuffer,w.quadTriangleIndexBuffer,w.viewportSegments,E.paint,w.transform.zoom)}(v,f))},line:function(v,d,f,y){if(v.renderPass!=="translucent")return;let w=f.paint.get("line-opacity"),E=f.paint.get("line-width");if(w.constantOr(1)===0||E.constantOr(1)===0)return;let D=f.paint.get("line-emissive-strength"),R=v.depthModeForSublayer(0,or.ReadOnly),B=v.colorModeForDrapableLayerRenderPass(D),U=v.terrain&&v.terrain.renderingToTexture?1:o.f.devicePixelRatio,G=f.paint.get("line-dasharray"),$=G.constantOr(1),Q=f.layout.get("line-cap"),te=f.paint.get("line-pattern"),he=te.constantOr(1),me=f.paint.get("line-opacity").constantOr(1)!==1,_e=!he&&me,ye=f.paint.get("line-gradient"),Ae=he?"linePattern":"line",je=v.context,He=je.gl,Ze=o.cH(f);v.terrain&&v.terrain.clipOrMaskOverlapStencilType()&&(_e=!1);for(let be of y){let Oe=d.getTile(be);if(he&&!Oe.patternsLoaded())continue;let st=Oe.getBucket(f);if(!st)continue;v.prepareDrawTile();let ot=st.programConfigurations.get(f.id),xt=v.isTileAffectedByFog(be),Yt=v.getOrCreateProgram(Ae,{config:ot,defines:Ze,overrideFog:xt}),gt=te.constantOr(null);if(gt&&Oe.imageAtlas){let $t=Oe.imageAtlas.patternPositions[gt.toString()];$t&&ot.setConstantPatternPositions($t)}let zt=G.constantOr(null),Zt=Q.constantOr(null);if(!he&&zt&&Zt&&Oe.lineAtlas){let $t=Oe.lineAtlas.getDash(zt,Zt);$t&&ot.setConstantPatternPositions($t)}let[ft,kt]=f.paint.get("line-trim-offset");(Zt==="round"||Zt==="square")&&ft!==kt&&(ft===0&&(ft-=1),kt===1&&(kt+=1));let Si=v.terrain?be.projMatrix:null,St=he?o.cI(v,Oe,f,Si,U,[ft,kt]):o.cJ(v,Oe,f,Si,st.lineClipsArray.length,U,[ft,kt]);if(ye){let $t=st.gradients[f.id],Ge=$t.texture;if(f.gradientVersion!==$t.version){let hi=256;if(f.stepInterpolant){let mn=d.getSource().maxzoom,Nn=be.canonical.z===mn?Math.ceil(1<{Yt.draw(v,He.TRIANGLES,R,$t,B,Cr.disabled,St,f.id,st.layoutVertexBuffer,st.indexBuffer,st.segments,f.paint,v.transform.zoom,ot,[st.layoutVertexBuffer2,st.patternVertexBuffer])};if(_e){let $t=v.stencilModeForClipping(be).ref;$t===0&&v.terrain&&je.clear({stencil:0});let Ge={func:He.EQUAL,mask:255};St.u_alpha_discard_threshold=.8,jt(new Fr(Ge,$t,255,He.KEEP,He.KEEP,He.INVERT)),St.u_alpha_discard_threshold=0,jt(new Fr(Ge,$t,255,He.KEEP,He.KEEP,He.KEEP))}else jt(v.stencilModeForClipping(be))}_e&&(v.resetStencilClippingMasks(),v.terrain&&je.clear({stencil:0}))},fill:function(v,d,f,y){let w=f.paint.get("fill-color"),E=f.paint.get("fill-opacity");if(E.constantOr(1)===0)return;let D=f.paint.get("fill-emissive-strength"),R=v.colorModeForDrapableLayerRenderPass(D),B=f.paint.get("fill-pattern"),U=v.opaquePassEnabledForLayer()&&!B.constantOr(1)&&w.constantOr(o.aA.transparent).a===1&&E.constantOr(0)===1?"opaque":"translucent";if(v.renderPass===U){let G=v.depthModeForSublayer(1,v.renderPass==="opaque"?or.ReadWrite:or.ReadOnly);CE(v,d,f,y,G,R,!1)}if(v.renderPass==="translucent"&&f.paint.get("fill-antialias")){let G=v.depthModeForSublayer(f.getPaintProperty("fill-outline-color")?2:0,or.ReadOnly);CE(v,d,f,y,G,R,!0)}},"fill-extrusion":function(v,d,f,y){let w=f.paint.get("fill-extrusion-opacity"),E=v.context,D=E.gl,R=v.terrain,B=R&&R.renderingToTexture;if(w===0)return;let U=v.conflationActive&&v.layerUsedInConflation(f,d.getSource());if(U&&function(G,$,Q,te){for(let he of te){let me=$.getTile(he).getBucket(Q);me&&(me.updateReplacement(he,G.replacementSource),me.uploadCentroid(G.context))}}(v,d,f,y),R||U)for(let G of y){let $=d.getTile(G).getBucket(f);$&&Vk(v.context,d,G,$,f,R,U)}if(v.renderPass==="shadow"&&v.shadowRenderer){let G=v.shadowRenderer;if(R&&w<.65&&f._transitionablePaint._values["fill-extrusion-opacity"].value.expression instanceof o.Z)return;let $=G.getShadowPassDepthMode(),Q=G.getShadowPassColorMode();dn(v,d,f,y,$,Fr.disabled,Q,U)}else if(v.renderPass==="translucent"){let G=!f.paint.get("fill-extrusion-pattern").constantOr(1),$=f.paint.get("fill-extrusion-color").constantOr(o.aA.white);if(!B&&$.a!==0){let Q=new or(v.context.gl.LEQUAL,or.ReadWrite,v.depthRangeFor3D);w===1&&G?dn(v,d,f,y,Q,Fr.disabled,lo.unblended,U):(dn(v,d,f,y,Q,Fr.disabled,lo.disabled,U),dn(v,d,f,y,Q,v.stencilModeFor3D(),v.colorModeForRenderPass(),U),v.resetStencilClippingMasks())}if(v.style.enable3dLights()&&G&&(!R&&v.transform.projection.name!=="globe"||B)){let Q=f.paint.get("fill-extrusion-opacity"),te=f.paint.get("fill-extrusion-ambient-occlusion-intensity"),he=f.paint.get("fill-extrusion-ambient-occlusion-ground-radius"),me=f.paint.get("fill-extrusion-flood-light-intensity"),_e=f.paint.get("fill-extrusion-flood-light-color").toArray01().slice(0,3),ye=te>0&&he>0,Ae=me>0,je=(Ze,be,Oe)=>(1-Oe)*Ze+Oe*be,He=Ze=>{let be=v.depthModeForSublayer(1,or.ReadOnly,D.LEQUAL,!0),Oe=f.paint.get(Ze?"fill-extrusion-ambient-occlusion-ground-attenuation":"fill-extrusion-flood-light-ground-attenuation"),st=je(.1,3,Oe),ot=v._showOverdrawInspector;if(!ot){let xt=new Fr({func:D.ALWAYS,mask:255},255,255,D.KEEP,D.KEEP,D.REPLACE),Yt=new lo([D.ONE,D.ONE,D.ONE,D.ONE],o.aA.transparent,[!1,!1,!1,!0],D.MIN);Mm(v,d,f,y,be,xt,Yt,Cr.disabled,Ze,"sdf",Q,te,he,me,_e,st,U,!1)}{let xt=ot?Fr.disabled:new Fr({func:D.EQUAL,mask:255},255,255,D.KEEP,D.DECR,D.DECR),Yt=ot?v.colorModeForRenderPass():new lo([D.ONE_MINUS_DST_ALPHA,D.DST_ALPHA,D.ONE,D.ONE],o.aA.transparent,[!0,!0,!0,!0]);Mm(v,d,f,y,be,xt,Yt,Cr.disabled,Ze,"color",Q,te,he,me,_e,st,U,!1)}};if(B){let Ze=(be,Oe,st)=>{let ot=v.depthModeForSublayer(1,or.ReadOnly,D.LEQUAL,!1),xt=f.paint.get(be?"fill-extrusion-ambient-occlusion-ground-attenuation":"fill-extrusion-flood-light-ground-attenuation"),Yt=je(.1,3,xt);{let gt=new lo([D.ONE,D.ONE,D.ONE,D.ONE],o.aA.transparent,[!1,!1,!1,!0]);Mm(v,d,f,y,ot,Fr.disabled,gt,Cr.disabled,be,"clear",Q,te,he,me,_e,Yt,U,Oe)}{let gt=new Fr({func:D.ALWAYS,mask:255},255,255,D.KEEP,D.KEEP,D.REPLACE),zt=new lo([D.ONE,D.ONE,D.ONE,D.ONE],o.aA.transparent,[!1,!1,!1,!0],D.MIN);Mm(v,d,f,y,ot,gt,zt,Cr.disabled,be,"sdf",Q,te,he,me,_e,Yt,U,Oe)}{let gt=be?D.ZERO:D.ONE_MINUS_DST_ALPHA,zt=new Fr({func:D.EQUAL,mask:255},255,255,D.KEEP,D.DECR,D.DECR),Zt=new lo([gt,D.DST_ALPHA,D.ONE_MINUS_DST_ALPHA,D.ZERO],o.aA.transparent,[!0,!0,!0,!0]);Mm(v,d,f,y,ot,zt,Zt,Cr.disabled,be,"color",Q,te,he,me,_e,Yt,U,Oe)}{let gt=new lo([D.ONE,D.ONE,D.ONE,be?D.ZERO:D.ONE],o.aA.transparent,[!1,!1,!1,!0],be?D.FUNC_ADD:D.MAX);Mm(v,d,f,y,ot,Fr.disabled,gt,Cr.disabled,be,"clear",Q,te,he,me,_e,Yt,U,Oe,st)}};if(ye||Ae){let be;if(v.prepareDrawTile(),R){let Oe=R.drapeBufferSize[0],st=R.drapeBufferSize[1];be=R.framebufferCopyTexture,be&&(!be||be.size[0]===Oe&&be.size[1]===st)||(be&&be.destroy(),be=R.framebufferCopyTexture=new o.T(E,new o.h({width:Oe,height:st}),D.RGBA)),be.bind(D.LINEAR,D.CLAMP_TO_EDGE),D.copyTexImage2D(D.TEXTURE_2D,0,D.RGBA,0,0,Oe,st,0)}ye&&Ze(!0,!1,be),Ae&&Ze(!1,!0,be)}}else ye&&He(!0),Ae&&He(!1)}}},hillshade:function(v,d,f,y){if(v.renderPass!=="offscreen"&&v.renderPass!=="translucent"||v.style.disableElevatedTerrain)return;let w=v.context,E=v.terrain&&v.terrain.renderingToTexture,[D,R]=v.renderPass!=="translucent"||E?[{},y]:v.stencilConfigForOverlap(y);for(let B of R){let U=d.getTile(B);if(U.needsHillshadePrepare&&v.renderPass==="offscreen")Sv(v,U,f);else if(v.renderPass==="translucent"){let G=v.depthModeForSublayer(0,or.ReadOnly),$=f.paint.get("hillshade-emissive-strength"),Q=v.colorModeForDrapableLayerRenderPass($),te=E&&v.terrain?v.terrain.stencilModeForRTTOverlap(B):D[B.overscaledZ];jo(v,B,U,f,G,te,Q)}}w.viewport.set([0,0,v.width,v.height]),v.resetStencilClippingMasks()},raster:function(v,d,f,y,w,E){if(v.renderPass!=="translucent"||f.paint.get("raster-opacity")===0)return;let D=v.transform.projection.name==="globe",R=f.paint.get("raster-elevation")!==0,B=R&&D;if(v.renderElevatedRasterBackface&&!B)return;let U=v.context,G=U.gl,$=d.getSource(),Q=function(be,Oe,st,ot){let xt=Oe.paint.get("raster-color"),Yt=be.type==="raster-array",gt=[],zt=Oe.paint.get("raster-resampling"),Zt=Oe.paint.get("raster-color-mix"),ft=Oe.paint.get("raster-color-range"),kt=[Zt[0],Zt[1],Zt[2],0],Si=Zt[3],St=zt==="nearest"?ot.NEAREST:ot.LINEAR;if(Yt&&(gt.push("RASTER_ARRAY"),xt||gt.push("RASTER_COLOR"),zt==="linear"&>.push("RASTER_ARRAY_LINEAR"),St=ot.NEAREST,!ft&&be.rasterLayers)){let jt=be.rasterLayers.find(({id:$t})=>$t===Oe.sourceLayer);jt&&jt.fields&&jt.fields.range&&(ft=jt.fields.range)}if(ft=ft||[0,1],xt){gt.push("RASTER_COLOR"),st.activeTexture.set(ot.TEXTURE2),Oe.updateColorRamp(ft);let jt=Oe.colorRampTexture;jt||(jt=Oe.colorRampTexture=new o.T(st,Oe.colorRamp,ot.RGBA)),jt.bind(ot.LINEAR,ot.CLAMP_TO_EDGE)}return{mix:kt,range:ft,offset:Si,defines:gt,resampling:St}}($,f,U,G);if($ instanceof o.as&&!y.length&&!D)return;let te=f.paint.get("raster-emissive-strength"),he=v.colorModeForDrapableLayerRenderPass(te),me=v.terrain&&v.terrain.renderingToTexture,_e=!v.options.moving,ye=f.paint.get("raster-resampling")==="nearest"?G.NEAREST:G.LINEAR;if($ instanceof o.as&&!y.length&&($.onNorthPole||$.onSouthPole)){let be=R?v.stencilModeFor3D():Fr.disabled;return void Ol(!!$.onNorthPole,null,v,d,f,te,Q,Cr.disabled,be)}if(!y.length)return;let[Ae,je]=$ instanceof o.as||me?[{},y]:v.stencilConfigForOverlap(y),He=je[je.length-1].overscaledZ;B&&Q.defines.push("PROJECTION_GLOBE_VIEW"),R&&Q.defines.push("RENDER_CUTOFF");let Ze=(be,Oe,st)=>{for(let ot of be){let xt=ot.toUnwrapped(),Yt=d.getTile(ot);if(me&&(!Yt||!Yt.hasData()))continue;U.activeTexture.set(G.TEXTURE0);let gt=zy(Yt,$,f,Q);if(!gt||!gt.texture)continue;let{texture:zt,mix:Zt,offset:ft,tileSize:kt,buffer:Si}=gt,St,jt;me?(St=or.disabled,jt=ot.projMatrix):R?(St=new or(G.LEQUAL,or.ReadWrite,v.depthRangeFor3D),jt=D?Float32Array.from(v.transform.expandedFarZProjMatrix):v.transform.calculateProjMatrix(xt,_e)):(St=v.depthModeForSublayer(ot.overscaledZ-He,f.paint.get("raster-opacity")===1?or.ReadWrite:or.ReadOnly,G.LESS),jt=v.transform.calculateProjMatrix(xt,_e));let $t=v.terrain&&me?v.terrain.stencilModeForRTTOverlap(ot):Ae[ot.overscaledZ],Ge=E?0:f.paint.get("raster-fade-duration");Yt.registerFadeDuration(Ge);let hi=d.findLoadedParent(ot,0),mn=Dm(Yt,hi,d,v.transform,Ge),Nn,Kn;v.terrain&&v.terrain.prepareDrawTile(),U.activeTexture.set(G.TEXTURE0),zt.bind(ye,G.CLAMP_TO_EDGE),U.activeTexture.set(G.TEXTURE1),hi?(hi.texture&&hi.texture.bind(ye,G.CLAMP_TO_EDGE),Nn=Math.pow(2,hi.tileID.overscaledZ-Yt.tileID.overscaledZ),Kn=[Yt.tileID.canonical.x*Nn%1,Yt.tileID.canonical.y*Nn%1]):zt.bind(ye,G.CLAMP_TO_EDGE),zt.useMipmap&&U.extTextureFilterAnisotropic&&v.transform.pitch>20&&G.texParameterf(G.TEXTURE_2D,U.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,U.extTextureFilterAnisotropicMax);let Hn=v.transform,rr,vo=R?IE(Hn):[0,0,0,0],Or,No,ho,ga,_s,Zl=0;if(B&&$ instanceof o.as&&$.coordinates.length>3)Or=Float32Array.from(o.aW(o.cn(new o.bv(0,0,0)))),No=Float32Array.from(Hn.globeMatrix),ho=Float32Array.from(o.cj(Hn)),ga=[o.a8(Hn.center.lng),o.ah(Hn.center.lat)],rr=$.elevatedGlobePerspectiveTransform,_s=$.elevatedGlobeGridMatrix||new Float32Array(9);else if(B){let $r=o.ck(ot.canonical);Zl=o.cl($r.getCenter().lat),Or=Float32Array.from(o.aW(o.cn(ot.canonical))),No=Float32Array.from(Hn.globeMatrix),ho=Float32Array.from(o.cj(Hn)),ga=[o.a8(Hn.center.lng),o.ah(Hn.center.lat)],rr=[0,0],_s=Float32Array.from(o.cm(ot.canonical,$r,Zl,Hn.worldSize/Hn._pixelsPerMercatorPixel))}else rr=$ instanceof o.as?$.perspectiveTransform:[0,0],Or=new Float32Array(16),No=new Float32Array(9),ho=new Float32Array(16),ga=[0,0],_s=new Float32Array(9);let ll=Nk(jt,Or,No,ho,_s,Kn||[0,0],o.W(v.transform.zoom),ga,vo,Nn||1,mn,f,rr,R?f.paint.get("raster-elevation"):0,2,Zt,ft,Q.range,kt,Si,te),Ks=v.isTileAffectedByFog(ot),Ts=v.getOrCreateProgram("raster",{defines:Q.defines,overrideFog:Ks});if(v.uploadCommonUniforms(U,Ts,xt),$ instanceof o.as){let $r=$.elevatedGlobeVertexBuffer,Kr=$.elevatedGlobeIndexBuffer;if(me||!D)$.boundsBuffer&&$.boundsSegments&&Ts.draw(v,G.TRIANGLES,St,Fr.disabled,he,Cr.disabled,ll,f.id,$.boundsBuffer,v.quadTriangleIndexBuffer,$.boundsSegments);else if($r&&Kr){let oa=Hn.zoom<=o.bJ?$.elevatedGlobeSegments:$.getSegmentsForLongitude(Hn.center.lng);oa&&Ts.draw(v,G.TRIANGLES,St,Fr.disabled,he,Oe,ll,f.id,$r,Kr,oa)}}else if(B){St=new or(G.LEQUAL,or.ReadOnly,v.depthRangeFor3D);let $r=v.globeSharedBuffers;if($r){let[Kr,oa,Us]=$r.getGridBuffers(Zl,!1);Ts.draw(v,G.TRIANGLES,St,st||$t,v.colorModeForRenderPass(),Oe,ll,f.id,Kr,oa,Us)}}else{let{tileBoundsBuffer:$r,tileBoundsIndexBuffer:Kr,tileBoundsSegments:oa}=v.getTileBoundsBuffers(Yt);Ts.draw(v,G.TRIANGLES,St,$t,he,Cr.disabled,ll,f.id,$r,Kr,oa)}}if(!($ instanceof o.as)&&B)for(let ot of be){let xt=ot.canonical.y===(1<o.cN[jt](gt));kt.push(gt);let Si=gt.canonical.x,St=gt.canonical.y;for(let jt of kt){let $t=je.getTile(ot?jt.wrapped():jt);if(!$t)continue;let Ge=$t.rasterParticleState;if(!Ge)continue;let hi=jt.canonical.x+(1<je.tileID)),$&&(R.activeTexture.set(B.TEXTURE0),v.imageManager.bind(v.context,f.scope));for(let je of Ae){let He=v.isTileAffectedByFog(je),Ze=v.getOrCreateProgram(_e,{overrideFog:He}),be=je.toUnwrapped(),Oe=y?je.projMatrix:v.transform.calculateProjMatrix(be);v.prepareDrawTile();let st=d?d.getTile(je):ye?ye[je.key]:new Nh(je,G,U.zoom,v),ot=$?Fk(Oe,D,E,v,$,f.scope,{tileID:je,tileSize:G}):yP(Oe,D,E,w);v.uploadCommonUniforms(R,Ze,be);let{tileBoundsBuffer:xt,tileBoundsIndexBuffer:Yt,tileBoundsSegments:gt}=v.getTileBoundsBuffers(st);Ze.draw(v,B.TRIANGLES,he,te,me,Cr.disabled,ot,f.id,xt,Yt,gt)}},sky:function(v,d,f){let y=v._atmosphere?o.W(v.transform.zoom):1,w=f.paint.get("sky-opacity")*y;if(w===0)return;let E=v.context,D=f.paint.get("sky-type"),R=new or(E.gl.LEQUAL,or.ReadOnly,[0,1]),B=v.frameCounter/1e3%1;D==="atmosphere"?v.renderPass==="offscreen"?f.needsSkyboxCapture(v)&&(function(U,G,$,Q){let te=U.context,he=te.gl,me=G.skyboxFbo;if(!me){me=G.skyboxFbo=te.createFramebuffer(32,32,!0,null),G.skyboxGeometry=new Hk(te),G.skyboxTexture=te.gl.createTexture(),he.bindTexture(he.TEXTURE_CUBE_MAP,G.skyboxTexture),he.texParameteri(he.TEXTURE_CUBE_MAP,he.TEXTURE_WRAP_S,he.CLAMP_TO_EDGE),he.texParameteri(he.TEXTURE_CUBE_MAP,he.TEXTURE_WRAP_T,he.CLAMP_TO_EDGE),he.texParameteri(he.TEXTURE_CUBE_MAP,he.TEXTURE_MIN_FILTER,he.LINEAR),he.texParameteri(he.TEXTURE_CUBE_MAP,he.TEXTURE_MAG_FILTER,he.LINEAR);for(let je=0;je<6;++je)he.texImage2D(he.TEXTURE_CUBE_MAP_POSITIVE_X+je,0,he.RGBA,32,32,0,he.RGBA,he.UNSIGNED_BYTE,null)}te.bindFramebuffer.set(me.framebuffer),te.viewport.set([0,0,32,32]);let _e=G.getCenter(U,!0),ye=U.getOrCreateProgram("skyboxCapture"),Ae=new Float64Array(16);o.a9.identity(Ae),o.a9.rotateY(Ae,Ae,.5*-Math.PI),Oa(U,G,ye,Ae,_e,0),o.a9.identity(Ae),o.a9.rotateY(Ae,Ae,.5*Math.PI),Oa(U,G,ye,Ae,_e,1),o.a9.identity(Ae),o.a9.rotateX(Ae,Ae,.5*-Math.PI),Oa(U,G,ye,Ae,_e,2),o.a9.identity(Ae),o.a9.rotateX(Ae,Ae,.5*Math.PI),Oa(U,G,ye,Ae,_e,3),o.a9.identity(Ae),Oa(U,G,ye,Ae,_e,4),o.a9.identity(Ae),o.a9.rotateY(Ae,Ae,Math.PI),Oa(U,G,ye,Ae,_e,5),te.viewport.set([0,0,U.width,U.height])}(v,f),f.markSkyboxValid(v)):v.renderPass==="sky"&&function(U,G,$,Q,te){let he=U.context,me=he.gl,_e=U.transform,ye=U.getOrCreateProgram("skybox");he.activeTexture.set(me.TEXTURE0),me.bindTexture(me.TEXTURE_CUBE_MAP,G.skyboxTexture);let Ae=((je,He,Ze,be,Oe)=>({u_matrix:je,u_sun_direction:He,u_cubemap:0,u_opacity:be,u_temporal_offset:Oe}))(_e.skyboxMatrix,G.getCenter(U,!1),0,Q,te);U.uploadCommonUniforms(he,ye),ye.draw(U,me.TRIANGLES,$,Fr.disabled,U.colorModeForRenderPass(),Cr.backCW,Ae,"skybox",G.skyboxGeometry.vertexBuffer,G.skyboxGeometry.indexBuffer,G.skyboxGeometry.segment)}(v,f,R,w,B):D==="gradient"&&v.renderPass==="sky"&&function(U,G,$,Q,te){let he=U.context,me=he.gl,_e=U.transform,ye=U.getOrCreateProgram("skyboxGradient");G.skyboxGeometry||(G.skyboxGeometry=new Hk(he)),he.activeTexture.set(me.TEXTURE0);let Ae=G.colorRampTexture;Ae||(Ae=G.colorRampTexture=new o.T(he,G.colorRamp,me.RGBA)),Ae.bind(me.LINEAR,me.CLAMP_TO_EDGE);let je=((He,Ze,be,Oe,st)=>({u_matrix:He,u_color_ramp:0,u_center_direction:Ze,u_radius:o.bm(be),u_opacity:Oe,u_temporal_offset:st}))(_e.skyboxMatrix,G.getCenter(U,!1),G.paint.get("sky-gradient-radius"),Q,te);U.uploadCommonUniforms(he,ye),ye.draw(U,me.TRIANGLES,$,Fr.disabled,U.colorModeForRenderPass(),Cr.backCW,je,"skyboxGradient",G.skyboxGeometry.vertexBuffer,G.skyboxGeometry.indexBuffer,G.skyboxGeometry.segment)}(v,f,R,w,B)},debug:function(v,d,f,y,w,E){for(let D=0;D{D&&(D.useNormalOffset=!0,R||(D.enabled=!0))},U=d.getSource();if(v.renderPass==="light-beam"&&U.type!=="batched-model")return;if(U.type==="vector"||U.type==="geojson")return function(ye,Ae,je,He,Ze){let be=ye.transform;if(be.projection.name!=="mercator")return void o.w(`Drawing 3D models for ${be.projection.name} projection is not yet implemented`);let Oe=be.getFreeCameraOptions().position;if(!ye.modelManager)return;let st=ye.modelManager;je.modelManager=st;let ot=ye.shadowRenderer;if(!je._unevaluatedLayout._values.hasOwnProperty("model-id"))return;let xt=je._unevaluatedLayout._values["model-id"],Yt=Ce({},je.layout.get("model-id").parameters);for(let gt of He){let zt=Ae.getTile(gt).getBucket(je);if(!zt||zt.projection.name!==be.projection.name)continue;let Zt=zt.getModelUris();Zt&&!zt.modelsRequested&&(st.addModelsFromBucket(Zt,Ze),zt.modelsRequested=!0);let ft=kE(gt,be);Yt.zoom=ft;let kt=xt.possiblyEvaluate(Yt);if(q1(ye,zt,gt),Md.shadowUniformsInitialized=!1,Md.useSingleShadowCascade=!!ot&&ot.getMaxCascadeForTile(gt.toUnwrapped())===0,ye.renderPass==="shadow"&&ot){if(ye.currentShadowCascade===1&&zt.isInsideFirstShadowMapFrustum)continue;let jt=be.calculatePosMatrix(gt.toUnwrapped(),be.worldSize);if(Md.tileMatrix.set(jt),Md.shadowTileMatrix=Float32Array.from(ot.calculateShadowPassMatrixFromMatrix(jt)),Md.aabb.min.fill(0),Md.aabb.max[0]=Md.aabb.max[1]=o.Y,Md.aabb.max[2]=0,Uy(zt,Md,ye,je.scope))continue}let Si=1<0&&(jt=kt.evaluate($t.features[0].feature,{}));let Ge=st.getModel(jt,Ze);if(Ge&&Ge.uploaded)for(let hi of Ge.nodes)$1(ye,je,hi,$t,St,gt,Md)}}}(v,d,f,y,U.type==="vector"?f.scope:""),void B();if(!U.loaded())return;if(U.type==="batched-model")return function(ye,Ae,je,He){je.resetLayerRenderingStats(ye);let Ze=ye.context,be=ye.transform,Oe=ye.style.fog,st=ye.shadowRenderer;if(be.projection.name!=="mercator")return void o.w(`Drawing 3D landmark models for ${be.projection.name} projection is not yet implemented`);let ot=ye.transform.getFreeCameraOptions().position,xt=o.Q.scale([],[ot.x,ot.y,ot.z],ye.transform.worldSize);o.Q.negate(xt,xt);let Yt=o.a9.identity([]),gt=o.cZ(be.center.lat,be.zoom),zt=o.a9.fromScaling([],[1,1,1/gt]);o.a9.translate(Yt,Yt,xt);let Zt=je.paint.get("model-opacity"),ft=new or(Ze.gl.LEQUAL,or.ReadWrite,ye.depthRangeFor3D),kt=new or(Ze.gl.LEQUAL,or.ReadOnly,ye.depthRangeFor3D),Si=new o.bV([1/0,1/0,1/0],[-1/0,-1/0,-1/0]),St=ye.renderPass==="shadow",jt=St&&st?st.getCurrentCascadeFrustum():be.getFrustum(be.scaleZoom(be.worldSize)),$t=je.getLayerRenderingStats(),Ge=function(hi,mn){for(let Nn of He){let Kn=Ae.getTile(Nn).getBucket(je);if(!Kn||!Kn.uploaded)continue;let Hn=!1;st&&(Hn=st.getMaxCascadeForTile(Nn.toUnwrapped())===0);let rr=be.calculatePosMatrix(Nn.toUnwrapped(),be.worldSize),vo=Kn.modelTraits;for(let Or of Kn.getNodesInfo()){if(Or.hiddenByReplacement||!Or.node.meshes)continue;let No=Or.evaluatedScale,ho=Or.node,ga=0;if(ye.terrain&&ho.elevation&&(ga=ho.elevation*ye.terrain.exaggeration()),No[0]<=1&&No[1]<=1&&No[2]<=1&&(()=>{let po=Or.getLocalBounds();return Si.min=[...po.min],Si.max=[...po.max],Si.min[2]+=ga,Si.max[2]+=ga,o.Q.transformMat4(Si.min,Si.min,rr),o.Q.transformMat4(Si.max,Si.max,rr),Si})().intersects(jt)===0)continue;let _s=[...rr];o.a9.translate(_s,_s,[(ho.anchor?ho.anchor[0]:0)*(No[0]-1),(ho.anchor?ho.anchor[1]:0)*(No[1]-1),ga]),o.Q.exactEquals(No,o.c$)||o.a9.scale(_s,_s,No);let Zl=o.a9.multiply([],_s,ho.matrix),ll=o.a9.multiply([],zt,_s);o.a9.multiply(ll,Yt,ll);let Ks=o.a9.invert([],ll);o.a9.transpose(Ks,Ks),o.a9.scale(Ks,Ks,ME),ll=o.a9.multiply(ll,ll,ho.matrix);let Ts=ye.renderPass==="light-beam",$r=o.a9.multiply([],be.expandedFarZProjMatrix,Zl),Kr=o.a9.multiply([],be.expandedFarZProjMatrix,_s),oa=vo&o.d1.HasMapboxMeshFeatures,Us=oa?0:Or.evaluatedRMEA[0][2];for(let po=0;po=Lr||Od>=Lr}}let su=Vr.material,_c;su.occlusionTexture&&su.occlusionTexture.offsetScale&&(_c=su.occlusionTexture.offsetScale,gc.defines.push("OCCLUSION_TEXTURE_TRANSFORM")),!St&&st&&(st.useNormalOffset=!!Vr.normalBuffer);let Rc=ye.getOrCreateProgram("model",gc);!St&&st&&st.setupShadowsFromMatrix(_s,Rc,st.useNormalOffset),ye.uploadCommonUniforms(Ze,Rc,null,nd);let Kc=su.pbrMetallicRoughness;Kc.metallicFactor=.9,Kc.roughnessFactor=.5;let Dp=z1(new Float32Array(qc),new Float32Array(ll),new Float32Array(Ks),new Float32Array(ho.matrix),ye,Zt,Kc.baseColorFactor,su.emissiveFactor,Kc.metallicFactor,Kc.roughnessFactor,su,Us,je,[0,0,0],_c);Rc.draw(ye,Ze.gl.TRIANGLES,mn&&!id?ft:kt,Fr.disabled,hi?id||Zt<1||Or.hasTranslucentParts?lo.alphaBlended:lo.unblended:lo.disabled,Cr.backCCW,Dp,je.id,Vr.vertexBuffer,Vr.indexBuffer,Vr.segments,je.paint,ye.transform.zoom,void 0,$c)}}}};(function(hi,mn,Nn,Kn){let Hn=hi.terrain?hi.terrain.exaggeration():0,rr=hi.transform.zoom;for(let vo of Kn){let Or=mn.getTile(vo).getBucket(Nn);Or&&(hi.conflationActive&&Or.updateReplacement(vo,hi.replacementSource),Or.evaluateScale(hi,Nn),hi.terrain&&Hn>0&&Or.elevationUpdate(hi.terrain,Hn,vo,Nn.source),Or.needsReEvaluation(hi,rr,Nn)&&Or.evaluate(Nn))}})(ye,Ae,je,He),Zt===1?Ge(!0,!0):(Ge(!1,!0),Ge(!0,!1))}(v,d,f,y),void B();let G=U.getModels(),$=[],Q=v.transform.getFreeCameraOptions().position,te=o.Q.scale([],[Q.x,Q.y,Q.z],v.transform.worldSize);o.Q.negate(te,te);let he=[],me=[],_e=0;for(let ye of G){let Ae=f.paint.get("model-rotation").constantOr(null),je=f.paint.get("model-scale").constantOr(null),He=f.paint.get("model-translation").constantOr(null);ye.computeModelMatrix(v,Ae,je,He,!0,!0,!1);let Ze=o.a9.identity([]),be=o.cZ(ye.position.lat,v.transform.zoom),Oe=o.a9.fromScaling([],[1,1,1/be]);o.a9.translate(Ze,Ze,te),$.push({zScaleMatrix:Oe,negCameraPosMatrix:Ze});for(let st of ye.nodes)Y1(v.transform,st,ye.matrix,v.transform.expandedFarZProjMatrix,_e,he,me);_e++}if(he.sort((ye,Ae)=>Ae.depth-ye.depth),v.renderPass!=="shadow"){if(w===1)for(let ye of me)Om(ye,v,f,$[ye.modelIndex],Fr.disabled,v.colorModeForRenderPass());else{for(let ye of me)Om(ye,v,f,$[ye.modelIndex],Fr.disabled,lo.disabled);for(let ye of me)Om(ye,v,f,$[ye.modelIndex],v.stencilModeFor3D(),v.colorModeForRenderPass());v.resetStencilClippingMasks()}for(let ye of he)Om(ye,v,f,$[ye.modelIndex],Fr.disabled,v.colorModeForRenderPass());B()}else{for(let ye of me)Vy(ye.mesh,ye.nodeModelMatrix,v,f);for(let ye of he)Vy(ye.mesh,ye.nodeModelMatrix,v,f);B()}}},qg={model:function(v,d,f){let y=d.getSource();if(!y.loaded())return;if(y.type==="vector"||y.type==="geojson")return void(f.modelManager&&f.modelManager.upload(f,y.type==="vector"?v.scope:""));if(y.type==="batched-model")return;let w=y.getModels();for(let E of w)E.upload(f.context)},raster:function(v,d,f){let y=d.getSource();if(!(y instanceof Ui&&y.loaded()))return;let w=v.sourceLayer||y.rasterLayerIds&&y.rasterLayerIds[0];if(!w)return;let E=v.paint.get("raster-array-band")||y.getInitialBand(w);if(E==null)return;let D=d.getIds().map(R=>d.getTileByID(R));for(let R of D)R.updateNeeded(w,E)&&y.prepareTile(R,w,E)},"raster-particle":function(v,d,f){let y=d.getSource();if(!(y instanceof Ui&&y.loaded()))return;let w=v.sourceLayer||y.rasterLayerIds&&y.rasterLayerIds[0];if(!w)return;let E=v.paint.get("raster-particle-array-band")||y.getInitialBand(w);if(E==null)return;let D=d.getIds().map(R=>d.getTileByID(R));for(let R of D)R.updateNeeded(w,E)&&y.prepareTile(R,w,E)}};class EP{constructor(d,f,y,w){this.context=new Rh(d,f),this.transform=y,this._tileTextures={},this.frameCopies=[],this.loadTimeStamps=[],this.tp=w,this._timeStamp=new Date().getTime(),this._averageFPS=0,this._fpsHistory=[],this._debugParams={showTerrainProxyTiles:!1,fpsWindow:30,continousRedraw:!1,enabledLayers:{}};let E=["fill","line","symbol","circle","heatmap","fill-extrusion","raster","raster-particle","hillshade","model","background","sky"];for(let D of E)this._debugParams.enabledLayers[D]=!0;w.registerParameter(this._debugParams,["Terrain"],"showTerrainProxyTiles",{},()=>{this.style.map.triggerRepaint()}),w.registerParameter(this._debugParams,["FPS"],"fpsWindow",{min:1,max:100,step:1}),w.registerBinding(this._debugParams,["FPS"],"continousRedraw",{readonly:!0,label:"continuous redraw"}),w.registerBinding(this,["FPS"],"_averageFPS",{readonly:!0,label:"value"}),w.registerBinding(this,["FPS"],"_averageFPS",{readonly:!0,label:"graph",view:"graph",min:0,max:200});for(let D of E)w.registerParameter(this._debugParams.enabledLayers,["Debug","Layers"],D);this.setup(),this.numSublayers=Ph.maxUnderzooming+Ph.maxOverzooming+1,this.depthEpsilon=1/Math.pow(2,16),this.deferredRenderGpuTimeQueries=[],this.gpuTimers={},this.frameCounter=0,this._backgroundTiles={},this.conflationActive=!1,this.replacementSource=new o.d3,this.longestCutoffRange=0,this.minCutoffZoom=0,this._fogVisible=!1,this._cachedTileFogOpacities={},this._shadowRenderer=new Tk(this),this._wireframeDebugCache=new $k,this.renderDefaultNorthPole=!0,this.renderDefaultSouthPole=!0}updateTerrain(d,f){let y=!!d&&!!d.terrain&&this.transform.projection.supportsTerrain;if(!(y||this._terrain&&this._terrain.enabled))return;this._terrain||(this._terrain=new ed(this,d));let w=this._terrain;this.transform.elevation=y?w:null,w.update(d,this.transform,f),this.transform.elevation&&!w.enabled&&(this.transform.elevation=null)}_updateFog(d){let f=d.fog;if(!f||this.transform.projection.name==="globe"||f.getOpacity(this.transform.pitch)<1||f.properties.get("horizon-blend")<.03)return void(this.transform.fogCullDistSq=null);let[y,w]=f.getFovAdjustedRange(this.transform._fov);if(y>w)return void(this.transform.fogCullDistSq=null);let E=y+.78*(w-y);this.transform.fogCullDistSq=E*E}get terrain(){return this.transform._terrainEnabled()&&this._terrain&&this._terrain.enabled?this._terrain:null}get shadowRenderer(){return this._shadowRenderer&&this._shadowRenderer.enabled?this._shadowRenderer:null}get wireframeDebugCache(){return this._wireframeDebugCache}resize(d,f){if(this.width=d*o.f.devicePixelRatio,this.height=f*o.f.devicePixelRatio,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(let y of this.style.order)this.style._mergedLayers[y].resize()}setup(){let d=this.context,f=new o.aQ;f.emplaceBack(0,0),f.emplaceBack(o.Y,0),f.emplaceBack(0,o.Y),f.emplaceBack(o.Y,o.Y),this.tileExtentBuffer=d.createVertexBuffer(f,o.aS.members),this.tileExtentSegments=o.aE.simpleSegment(0,0,4,2);let y=new o.aQ;y.emplaceBack(0,0),y.emplaceBack(o.Y,0),y.emplaceBack(0,o.Y),y.emplaceBack(o.Y,o.Y),this.debugBuffer=d.createVertexBuffer(y,o.aS.members),this.debugSegments=o.aE.simpleSegment(0,0,4,5);let w=new o.aQ;w.emplaceBack(-1,-1),w.emplaceBack(1,-1),w.emplaceBack(-1,1),w.emplaceBack(1,1),this.viewportBuffer=d.createVertexBuffer(w,o.aS.members),this.viewportSegments=o.aE.simpleSegment(0,0,4,2);let E=new o.ay;E.emplaceBack(0,0,0,0),E.emplaceBack(o.Y,0,o.Y,0),E.emplaceBack(0,o.Y,0,o.Y),E.emplaceBack(o.Y,o.Y,o.Y,o.Y),this.mercatorBoundsBuffer=d.createVertexBuffer(E,o.aU.members),this.mercatorBoundsSegments=o.aE.simpleSegment(0,0,4,2);let D=new o.az;D.emplaceBack(0,1,2),D.emplaceBack(2,1,3),this.quadTriangleIndexBuffer=d.createIndexBuffer(D);let R=new o.aR;for(let U of[0,1,3,2,0])R.emplaceBack(U);this.debugIndexBuffer=d.createIndexBuffer(R),this.emptyTexture=new o.T(d,new o.h({width:1,height:1},Uint8Array.of(0,0,0,0)),d.gl.RGBA),this.identityMat=o.a9.create();let B=this.context.gl;this.stencilClearMode=new Fr({func:B.ALWAYS,mask:0},0,255,B.ZERO,B.ZERO,B.ZERO),this.loadTimeStamps.push(performance.now())}getMercatorTileBoundsBuffers(){return{tileBoundsBuffer:this.mercatorBoundsBuffer,tileBoundsIndexBuffer:this.quadTriangleIndexBuffer,tileBoundsSegments:this.mercatorBoundsSegments}}getTileBoundsBuffers(d){return d._makeTileBoundsBuffers(this.context,this.transform.projection),d._tileBoundsBuffer?{tileBoundsBuffer:d._tileBoundsBuffer,tileBoundsIndexBuffer:d._tileBoundsIndexBuffer,tileBoundsSegments:d._tileBoundsSegments}:this.getMercatorTileBoundsBuffers()}clearStencil(){let d=this.context.gl;this.nextStencilID=1,this.currentStencilSource=void 0,this._tileClippingMaskIDs={},this.getOrCreateProgram("clippingMask").draw(this,d.TRIANGLES,or.disabled,this.stencilClearMode,lo.disabled,Cr.disabled,Ny(this.identityMat),"$clipping",this.viewportBuffer,this.quadTriangleIndexBuffer,this.viewportSegments)}resetStencilClippingMasks(){this.terrain||(this.currentStencilSource=void 0,this._tileClippingMaskIDs={})}_renderTileClippingMasks(d,f,y){if(!f||this.currentStencilSource===f.id||!d.isTileClipped()||!y||y.length===0)return;if(this._tileClippingMaskIDs&&!this.terrain){let R=!1;for(let B of y)if(this._tileClippingMaskIDs[B.key]===void 0){R=!0;break}if(!R)return}this.currentStencilSource=f.id;let w=this.context,E=w.gl;this.nextStencilID+y.length>256&&this.clearStencil(),w.setColorMode(lo.disabled),w.setDepthMode(or.disabled);let D=this.getOrCreateProgram("clippingMask");this._tileClippingMaskIDs={};for(let R of y){let B=f.getTile(R),U=this._tileClippingMaskIDs[R.key]=this.nextStencilID++,{tileBoundsBuffer:G,tileBoundsIndexBuffer:$,tileBoundsSegments:Q}=this.getTileBoundsBuffers(B);D.draw(this,E.TRIANGLES,or.disabled,new Fr({func:E.ALWAYS,mask:0},U,255,E.KEEP,E.KEEP,E.REPLACE),lo.disabled,Cr.disabled,Ny(R.projMatrix),"$clipping",G,$,Q)}}stencilModeFor3D(){this.currentStencilSource=void 0,this.nextStencilID+1>256&&this.clearStencil();let d=this.nextStencilID++,f=this.context.gl;return new Fr({func:f.NOTEQUAL,mask:255},d,255,f.KEEP,f.KEEP,f.REPLACE)}stencilModeForClipping(d){if(this.terrain)return this.terrain.stencilModeForRTTOverlap(d);let f=this.context.gl;return new Fr({func:f.EQUAL,mask:255},this._tileClippingMaskIDs[d.key],0,f.KEEP,f.KEEP,f.REPLACE)}stencilConfigForOverlap(d){let f=this.context.gl,y=d.sort((D,R)=>R.overscaledZ-D.overscaledZ),w=y[y.length-1].overscaledZ,E=y[0].overscaledZ-w+1;if(E>1){this.currentStencilSource=void 0,this.nextStencilID+E>256&&this.clearStencil();let D={};for(let R=0;Rthis._debugParams.fpsWindow&&this._fpsHistory.splice(0,this._fpsHistory.length-this._debugParams.fpsWindow),this._averageFPS=Math.round(this._fpsHistory.reduce((y,w)=>y+w/this._fpsHistory.length,0))}render(d,f){this._wireframeDebugCache.update(this.frameCounter),this._debugParams.continousRedraw=d.map.repaint,this.style=d,this.options=f;let y=this.style._mergedLayers,w=this.style.order.filter(be=>{let Oe=y[be];return!(Oe.type in this._debugParams.enabledLayers)||this._debugParams.enabledLayers[Oe.type]}),E=w.map(be=>y[be]),D=this.style._mergedSourceCaches;this.imageManager=d.imageManager,this.modelManager=d.modelManager,this.symbolFadeChange=d.placement.symbolFadeChange(o.f.now()),this.imageManager.beginFrame();let R=0,B=!1;for(let be in D){let Oe=D[be];Oe.used&&(Oe.prepare(this.context),Oe.getSource().usedInConflation&&++R)}for(let be of E)be.isHidden(this.transform.zoom)||this.prepareLayer(be);let U={},G={},$={},Q={},te={};for(let be in D){let Oe=D[be];U[be]=Oe.getVisibleCoordinates(),G[be]=U[be].slice().reverse(),$[be]=Oe.getVisibleCoordinates(!0).reverse(),Q[be]=Oe.getShadowCasterCoordinates(),te[be]=Oe.sortCoordinatesByDistance(U[be])}let he=be=>{let Oe=this.style.getLayerSourceCache(be);return Oe&&Oe.used?Oe.getSource():null};if(R){let be=[];for(let Oe of E)this.layerUsedInConflation(Oe,he(Oe))&&be.push(Oe);if(be&&be.length>1){let Oe=[];for(let st of be){let ot=this.style.getLayerSourceCache(st);ot&&ot.used&&ot.getSource().usedInConflation&&Oe.push({layer:st.fqid,cache:ot})}this.replacementSource.setSources(Oe),B=!0}}B||this.replacementSource.clear(),this.conflationActive=B,this.minCutoffZoom=0,this.longestCutoffRange=0;for(let be of E){let Oe=be.cutoffRange();if(this.longestCutoffRange=Math.max(Oe,this.longestCutoffRange),Oe>0){let st=he(be);st&&(this.minCutoffZoom=Math.max(st.minzoom,this.minCutoffZoom)),be.minzoom&&(this.minCutoffZoom=Math.max(be.minzoom,this.minCutoffZoom))}}this.opaquePassCutoff=1/0;for(let be=0;be{if(f.showOverdrawInspector)return o.aA.black;if(this.style.fog&&this.transform.projection.supportsFog&&!Ae){let be=this.style.fog.properties.get("color").toArray01();return new o.aA(...be)}if(this.style.fog&&this.transform.projection.supportsFog&&Ae){let be=this.style.fog.properties.get("space-color").toArray01();return new o.aA(...be)}return o.aA.transparent})();if(this.context.clear({color:je,depth:1}),this.clearStencil(),this._showOverdrawInspector=f.showOverdrawInspector,this.renderPass="opaque",this.style.fog&&this.transform.projection.supportsFog&&this._atmosphere&&!this._showOverdrawInspector&&Ae&&this._atmosphere.drawStars(this,this.style.fog),!this.terrain)for(this.currentLayer=w.length-1;this.currentLayer>=0;this.currentLayer--){let be=E[this.currentLayer],Oe=d.getLayerSourceCache(be);if(be.isSky())continue;let st=Oe?(be.is3D()?te:G)[Oe.id]:void 0;this._renderTileClippingMasks(be,Oe,st),this.renderLayer(this,Oe,be,st)}if(this.style.fog&&this.transform.projection.supportsFog&&this._atmosphere&&!this._showOverdrawInspector&&Ae&&this._atmosphere.drawAtmosphereGlow(this,this.style.fog),this.renderPass="sky",(!this._atmosphere||o.W(this.transform.zoom)>0)&&(this.transform.projection.name==="globe"||this.transform.isHorizonVisible()))for(this.currentLayer=0;this.currentLayer0&&be.hasShadowPass()&&--Ze==0&&(_e.drawGroundShadows(),this.firstLightBeamLayer<=this.currentLayer)){let st=this.currentLayer;for(this.renderPass="light-beam",this.currentLayer=this.firstLightBeamLayer;this.currentLayer<=st;this.currentLayer++){let ot=E[this.currentLayer];if(!ot.hasLightBeamPass())continue;let xt=d.getLayerSourceCache(ot);this.renderLayer(this,xt,ot,xt?G[xt.id]:void 0)}this.currentLayer=st,this.renderPass="translucent"}++this.currentLayer}}if(this.terrain&&this.terrain.postRender(),this.options.showTileBoundaries||this.options.showQueryGeometry||this.options.showTileAABBs){let be=null;E.forEach(Oe=>{let st=d.getLayerSourceCache(Oe);st&&!Oe.isHidden(this.transform.zoom)&&st.getVisibleCoordinates().length&&(!be||be.getSource().maxzoom0?f.pop():null}isPatternMissing(d,f){return d===null||d!==void 0&&!this.imageManager.getPattern(d.toString(),f)}terrainRenderModeElevated(){return this.style&&!!this.style.getTerrain()&&!!this.terrain&&!this.terrain.renderingToTexture}linearFloatFilteringSupported(){return this.context.extTextureFloatLinear!=null}currentGlobalDefines(d,f,y){let w=y===void 0?this.terrain&&this.terrain.renderingToTexture:y,E=this.terrain&&this.terrain.exaggeration()===0,D=[];return this.style&&this.style.enable3dLights()&&(d==="globeRaster"||d==="terrainRaster"?(D.push("LIGHTING_3D_MODE"),D.push("LIGHTING_3D_ALPHA_EMISSIVENESS")):w||D.push("LIGHTING_3D_MODE")),this.renderPass==="shadow"?this._shadowMapDebug||D.push("DEPTH_TEXTURE"):this.shadowRenderer&&(this.shadowRenderer.useNormalOffset?D.push("RENDER_SHADOWS","DEPTH_TEXTURE","NORMAL_OFFSET"):D.push("RENDER_SHADOWS","DEPTH_TEXTURE")),this.terrainRenderModeElevated()&&(D.push("TERRAIN"),this.linearFloatFilteringSupported()&&D.push("TERRAIN_DEM_FLOAT_FORMAT"),E&&D.push("ZERO_EXAGGERATION")),this.transform.projection.name==="globe"&&D.push("GLOBE"),!this._fogVisible||w||f!==void 0&&!f||D.push("FOG","FOG_DITHERING"),w&&D.push("RENDER_TO_TEXTURE"),this._showOverdrawInspector&&D.push("OVERDRAW_INSPECTOR"),D}getOrCreateProgram(d,f){this.cache=this.cache||{};let y=f&&f.defines||[],w=f&&f.config,E=this.currentGlobalDefines(d,f&&f.overrideFog,f&&f.overrideRtt).concat(y),D=kd.cacheKey(Sp[d],d,E,w);return this.cache[D]||(this.cache[D]=new kd(this.context,d,Sp[d],w,V1[d],E)),this.cache[D]}setCustomLayerDefaults(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.frontFace.setDefault(),this.context.cullFaceSide.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()}setBaseState(){let d=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(d.FUNC_ADD)}initDebugOverlayCanvas(){this.debugOverlayCanvas==null&&(this.debugOverlayCanvas=document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512,this.debugOverlayTexture=new o.T(this.context,this.debugOverlayCanvas,this.context.gl.RGBA))}destroy(){this._terrain&&this._terrain.destroy(),this._atmosphere&&(this._atmosphere.destroy(),this._atmosphere=void 0),this.globeSharedBuffers&&this.globeSharedBuffers.destroy(),this.emptyTexture.destroy(),this.debugOverlayTexture&&this.debugOverlayTexture.destroy(),this._wireframeDebugCache.destroy()}prepareDrawTile(){this.terrain&&this.terrain.prepareDrawTile()}uploadCommonLightUniforms(d,f){if(this.style.enable3dLights()){let y=this.style.directionalLight,w=this.style.ambientLight;if(y&&w){let E=((D,R)=>{let B=D.properties.get("direction"),U=D.properties.get("color").toArray01(),G=D.properties.get("intensity"),$=R.properties.get("color").toArray01(),Q=R.properties.get("intensity"),te=[B.x,B.y,B.z],he=o.cs($,Q),me=o.cs(U,G);return{u_lighting_ambient_color:he,u_lighting_directional_dir:te,u_lighting_directional_color:me,u_ground_radiance:gP(te,me,he)}})(y,w);f.setLightsUniformValues(d,E)}}}uploadCommonUniforms(d,f,y,w,E){if(this.uploadCommonLightUniforms(d,f),this.terrain&&this.terrain.renderingToTexture)return;let D=this.style.fog;if(D){let R=D.getOpacity(this.transform.pitch),B=((U,G,$,Q,te,he,me,_e,ye,Ae,je,He)=>{let Ze=U.transform,be=G.properties.get("color").toArray01();be[3]=Q;let Oe=U.frameCounter/1e3%1,[st,ot]=G.properties.get("vertical-range");return{u_fog_matrix:$?Ze.calculateFogTileMatrix($):He||U.identityMat,u_fog_range:G.getFovAdjustedRange(Ze._fov),u_fog_color:be,u_fog_horizon_blend:G.properties.get("horizon-blend"),u_fog_vertical_limit:[Math.min(st,ot),ot],u_fog_temporal_offset:Oe,u_frustum_tl:te,u_frustum_tr:he,u_frustum_br:me,u_frustum_bl:_e,u_globe_pos:ye,u_globe_radius:Ae,u_viewport:je,u_globe_transition:o.W(Ze.zoom),u_is_globe:+(Ze.projection.name==="globe")}})(this,D,y,R,this.transform.frustumCorners.TL,this.transform.frustumCorners.TR,this.transform.frustumCorners.BR,this.transform.frustumCorners.BL,this.transform.globeCenterInViewSpace,this.transform.globeRadius,[this.transform.width*o.f.devicePixelRatio,this.transform.height*o.f.devicePixelRatio],w);f.setFogUniformValues(d,B)}E&&f.setCutoffUniformValues(d,E.uniformValues)}setTileLoadedFlag(d){this.tileLoaded=d}saveCanvasCopy(){let d=this.canvasCopy();d&&(this.frameCopies.push(d),this.tileLoaded=!1)}canvasCopy(){let d=this.context.gl,f=d.createTexture();return d.bindTexture(d.TEXTURE_2D,f),d.copyTexImage2D(d.TEXTURE_2D,0,d.RGBA,0,0,d.drawingBufferWidth,d.drawingBufferHeight,0),f}getCanvasCopiesAndTimestamps(){return{canvasCopies:this.frameCopies,timeStamps:this.loadTimeStamps}}averageElevationNeedsEasing(){if(!this.transform._elevation)return!1;let d=this.style&&this.style.fog;return!!d&&d.getOpacity(this.transform.pitch)!==0}getBackgroundTiles(){let d=this._backgroundTiles,f=this._backgroundTiles={},y=this.transform.coveringTiles({tileSize:512});for(let w of y)f[w.key]=d[w.key]||new Nh(w,512,this.transform.tileZoom,this);return f}clearBackgroundTiles(){this._backgroundTiles={}}layerUsedInConflation(d,f){return!(!d.is3D()||d.minzoom&&d.minzoom>this.transform.zoom||d.sourceLayer!=="building"&&(!f||f.type!=="batched-model"))}isTileAffectedByFog(d){if(!this.style||!this.style.fog)return!1;if(this.transform.projection.name==="globe")return!0;let f=this._cachedTileFogOpacities[d.key];return f||(this._cachedTileFogOpacities[d.key]=f=this.style.fog.getOpacityForTile(d)),f[0]>=Lr||f[1]>=Lr}}function Kk(v,d){let f=!1,y=null,w=()=>{y=null,f&&(v(),y=setTimeout(w,d),f=!1)};return()=>(f=!0,y||w(),y)}class kU{constructor(d){this._hashName=d&&encodeURIComponent(d),o.a$(["_getCurrentHash","_onHashChange","_updateHash"],this),this._updateHash=Kk(this._updateHashUnthrottled.bind(this),300)}addTo(d){return this._map=d,window.addEventListener("hashchange",this._onHashChange,!1),d.on("moveend",this._updateHash),this}remove(){return this._map?(this._map.off("moveend",this._updateHash),window.removeEventListener("hashchange",this._onHashChange,!1),clearTimeout(this._updateHash()),this._map=void 0,this):this}getHashString(){let d=this._map;if(!d)return"";let f=Wk(d);if(this._hashName){let y=this._hashName,w=!1,E=location.hash.slice(1).split("&").map(D=>{let R=D.split("=")[0];return R===y?(w=!0,`${R}=${f}`):D}).filter(D=>D);return w||E.push(`${y}=${f}`),`#${E.join("&")}`}return`#${f}`}_getCurrentHash(){let d=location.hash.replace("#","");if(this._hashName){let f;return d.split("&").map(y=>y.split("=")).forEach(y=>{y[0]===this._hashName&&(f=y)}),(f&&f[1]||"").split("/")}return d.split("/")}_onHashChange(){let d=this._map;if(!d)return!1;let f=this._getCurrentHash();if(f.length>=3&&!f.some(y=>isNaN(y))){let y=d.dragRotate.isEnabled()&&d.touchZoomRotate.isEnabled()?+(f[3]||0):d.getBearing();return d.jumpTo({center:[+f[2],+f[1]],zoom:+f[0],bearing:y,pitch:+(f[4]||0)}),!0}return!1}_updateHashUnthrottled(){history.replaceState(history.state,"",location.href.replace(/(#.+)?$/,this.getHashString()))}}function Wk(v,d){let f=v.getCenter(),y=Math.round(100*v.getZoom())/100,w=Math.ceil((y*Math.LN2+Math.log(512/360/.5))/Math.LN10),E=Math.pow(10,w),D=Math.round(f.lng*E)/E,R=Math.round(f.lat*E)/E,B=v.getBearing(),U=v.getPitch(),G=d?`/${D}/${R}/${y}`:`${y}/${R}/${D}`;return(B||U)&&(G+="/"+Math.round(10*B)/10),U&&(G+=`/${Math.round(U)}`),G}let jy={linearity:.3,easing:o.d6(0,0,.3,1)},RE=o.e({deceleration:2500,maxSpeed:1400},jy),Zk=o.e({deceleration:20,maxSpeed:1400},jy),NE=o.e({deceleration:1e3,maxSpeed:360},jy),IP=o.e({deceleration:1e3,maxSpeed:90},jy);class Qk{constructor(d){this._map=d,this.clear()}clear(){this._inertiaBuffer=[]}record(d){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:o.f.now(),settings:d})}_drainInertiaBuffer(){let d=this._inertiaBuffer,f=o.f.now();for(;d.length>0&&f-d[0].time>160;)d.shift()}_onMoveEnd(d){if(this._map._prefersReducedMotion()||(this._drainInertiaBuffer(),this._inertiaBuffer.length<2))return;let f={zoom:0,bearing:0,pitch:0,pan:new o.P(0,0),pinchAround:void 0,around:void 0};for(let{settings:E}of this._inertiaBuffer)f.zoom+=E.zoomDelta||0,f.bearing+=E.bearingDelta||0,f.pitch+=E.pitchDelta||0,E.panDelta&&f.pan._add(E.panDelta),E.around&&(f.around=E.around),E.pinchAround&&(f.pinchAround=E.pinchAround);let y=this._inertiaBuffer[this._inertiaBuffer.length-1].time-this._inertiaBuffer[0].time,w={};if(f.pan.mag()){let E=Rm(f.pan.mag(),y,o.e({},RE,d||{}));w.offset=f.pan.mult(E.amount/f.pan.mag()),w.center=this._map.transform.center,PE(w,E)}if(f.zoom){let E=Rm(f.zoom,y,Zk);w.zoom=this._map.transform.zoom+E.amount,PE(w,E)}if(f.bearing){let E=Rm(f.bearing,y,NE);w.bearing=this._map.transform.bearing+o.ad(E.amount,-179,179),PE(w,E)}if(f.pitch){let E=Rm(f.pitch,y,IP);w.pitch=this._map.transform.pitch+E.amount,PE(w,E)}if(w.zoom||w.bearing){let E=f.pinchAround===void 0?f.around:f.pinchAround;w.around=E?this._map.unproject(E):this._map.getCenter()}return this.clear(),w.noMoveStart=!0,w}}function PE(v,d){(!v.duration||v.durationf.unproject(B)),R=E.reduce((B,U,G,$)=>B.add(U.div($.length)),new o.P(0,0));super(d,{points:E,point:R,lngLats:D,lngLat:f.unproject(R),originalEvent:y}),this._defaultPrevented=!1}}class lh extends o.b{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(d,f,y){super(d,{originalEvent:y}),this._defaultPrevented=!1}}class FE{constructor(d,f){this._map=d,this._clickTolerance=f.clickTolerance}reset(){this._mousedownPos=void 0}wheel(d){return this._firePreventable(new lh(d.type,this._map,d))}mousedown(d,f){return this._mousedownPos=f,this._firePreventable(new ou(d.type,this._map,d))}mouseup(d){this._map.fire(new ou(d.type,this._map,d))}preclick(d){let f=o.e({},d);f.type="preclick",this._map.fire(new ou(f.type,this._map,f))}click(d,f){this._mousedownPos&&this._mousedownPos.dist(f)>=this._clickTolerance||(this.preclick(d),this._map.fire(new ou(d.type,this._map,d)))}dblclick(d){return this._firePreventable(new ou(d.type,this._map,d))}mouseover(d){this._map.fire(new ou(d.type,this._map,d))}mouseout(d){this._map.fire(new ou(d.type,this._map,d))}touchstart(d){return this._firePreventable(new Hy(d.type,this._map,d))}touchmove(d){this._map.fire(new Hy(d.type,this._map,d))}touchend(d){this._map.fire(new Hy(d.type,this._map,d))}touchcancel(d){this._map.fire(new Hy(d.type,this._map,d))}_firePreventable(d){if(this._map.fire(d),d.defaultPrevented)return{}}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}}class LE{constructor(d){this._map=d}reset(){this._delayContextMenu=!1,this._contextMenuEvent=void 0}mousemove(d){this._map.fire(new ou(d.type,this._map,d))}mousedown(){this._delayContextMenu=!0}mouseup(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new ou("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)}contextmenu(d){this._delayContextMenu?this._contextMenuEvent=d:this._map.fire(new ou(d.type,this._map,d)),this._map.listens("contextmenu")&&d.preventDefault()}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}}class K1{constructor(d,f){this._map=d,this._el=d.getCanvasContainer(),this._container=d.getContainer(),this._clickTolerance=f.clickTolerance||1}isEnabled(){return!!this._enabled}isActive(){return!!this._active}enable(){this.isEnabled()||(this._enabled=!0)}disable(){this.isEnabled()&&(this._enabled=!1)}mousedown(d,f){this.isEnabled()&&d.shiftKey&&d.button===0&&(F(),this._startPos=this._lastPos=f,this._active=!0)}mousemoveWindow(d,f){if(!this._active)return;let y=f,w=this._startPos,E=this._lastPos;if(!w||!E||E.equals(y)||!this._box&&y.dist(w){this._box&&(this._box.style.transform=`translate(${D}px,${B}px)`,this._box.style.width=R-D+"px",this._box.style.height=U-B+"px")})}mouseupWindow(d,f){if(!this._active)return;let y=this._startPos,w=f;if(y&&d.button===0){if(this.reset(),j(),y.x!==w.x||y.y!==w.y)return this._map.fire(new o.b("boxzoomend",{originalEvent:d})),{cameraAnimation:E=>E.fitScreenCoordinates(y,w,this._map.getBearing(),{linear:!1})};this._fireEvent("boxzoomcancel",d)}}keydown(d){this._active&&d.keyCode===27&&(this.reset(),this._fireEvent("boxzoomcancel",d))}blur(){this.reset()}reset(){this._active=!1,this._container.classList.remove("mapboxgl-crosshair"),this._box&&(this._box.remove(),this._box=null),L(),delete this._startPos,delete this._lastPos}_fireEvent(d,f){return this._map.fire(new o.b(d,{originalEvent:f}))}}function W1(v,d){let f={};for(let y=0;ythis.numTouches)&&(this.aborted=!0),this.aborted||(this.startTime===0&&(this.startTime=d.timeStamp),y.length===this.numTouches&&(this.centroid=function(w){let E=new o.P(0,0);for(let D of w)E._add(D);return E.div(w.length)}(f),this.touches=W1(y,f)))}touchmove(d,f,y){if(this.aborted||!this.centroid)return;let w=W1(y,f);for(let E in this.touches){let D=w[E];(!D||D.dist(this.touches[E])>30)&&(this.aborted=!0)}}touchend(d,f,y){if((!this.centroid||d.timeStamp-this.startTime>500)&&(this.aborted=!0),y.length===0){let w=!this.aborted&&this.centroid;if(this.reset(),w)return w}}}class Gy{constructor(d){this.singleTap=new BE(d),this.numTaps=d.numTaps,this.reset()}reset(){this.lastTime=1/0,this.lastTap=void 0,this.count=0,this.singleTap.reset()}touchstart(d,f,y){this.singleTap.touchstart(d,f,y)}touchmove(d,f,y){this.singleTap.touchmove(d,f,y)}touchend(d,f,y){let w=this.singleTap.touchend(d,f,y);if(w){let E=d.timeStamp-this.lastTime<500,D=!this.lastTap||this.lastTap.dist(w)<30;if(E&&D||this.reset(),this.count++,this.lastTime=d.timeStamp,this.lastTap=w,this.count===this.numTaps)return this.reset(),w}}}class zE{constructor(){this._zoomIn=new Gy({numTouches:1,numTaps:2}),this._zoomOut=new Gy({numTouches:2,numTaps:1}),this.reset()}reset(){this._active=!1,this._zoomIn.reset(),this._zoomOut.reset()}touchstart(d,f,y){this._zoomIn.touchstart(d,f,y),this._zoomOut.touchstart(d,f,y)}touchmove(d,f,y){this._zoomIn.touchmove(d,f,y),this._zoomOut.touchmove(d,f,y)}touchend(d,f,y){let w=this._zoomIn.touchend(d,f,y),E=this._zoomOut.touchend(d,f,y);return w?(this._active=!0,d.preventDefault(),setTimeout(()=>this.reset(),0),{cameraAnimation:D=>D.easeTo({duration:300,zoom:D.getZoom()+1,around:D.unproject(w)},{originalEvent:d})}):E?(this._active=!0,d.preventDefault(),setTimeout(()=>this.reset(),0),{cameraAnimation:D=>D.easeTo({duration:300,zoom:D.getZoom()-1,around:D.unproject(E)},{originalEvent:d})}):void 0}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}let Xk={0:1,2:2};class Ov{constructor(d){this.reset(),this._clickTolerance=d.clickTolerance||1}blur(){this.reset()}reset(){this._active=!1,this._moved=!1,this._lastPoint=void 0,this._eventButton=void 0}_correctButton(d,f){return!1}_move(d,f){return{}}mousedown(d,f){if(this._lastPoint)return;let y=ne(d);this._correctButton(d,y)&&(this._lastPoint=f,this._eventButton=y)}mousemoveWindow(d,f){let y=this._lastPoint;if(y){if(d.preventDefault(),this._eventButton!=null&&function(w,E){let D=Xk[E];return w.buttons===void 0||(w.buttons&D)!==D}(d,this._eventButton))this.reset();else if(this._moved||!(f.dist(y)0&&(this._active=!0);let w=W1(y,f),E=new o.P(0,0),D=new o.P(0,0),R=0;for(let U in w){let G=w[U],$=this._touches[U];$&&(E._add(G),D._add(G.sub($)),R++,w[U]=G)}if(this._touches=w,R{this._alertContainer.classList.remove("mapboxgl-touch-pan-blocker-show"),this._alertContainer.removeAttribute("role")},500)}}class Q1{constructor(){this.reset()}reset(){this._active=!1,this._firstTwoTouches=void 0}_start(d){}_move(d,f,y){return{}}touchstart(d,f,y){this._firstTwoTouches||y.length<2||(this._firstTwoTouches=[y[0].identifier,y[1].identifier],this._start([f[0],f[1]]))}touchmove(d,f,y){let w=this._firstTwoTouches;if(!w)return;d.preventDefault();let[E,D]=w,R=UE(y,f,E),B=UE(y,f,D);if(!R||!B)return;let U=this._aroundCenter?null:R.add(B).div(2);return this._move([R,B],U,d)}touchend(d,f,y){if(!this._firstTwoTouches)return;let[w,E]=this._firstTwoTouches,D=UE(y,f,w),R=UE(y,f,E);D&&R||(this._active&&j(),this.reset())}touchcancel(){this.reset()}enable(d){this._enabled=!0,this._aroundCenter=!!d&&d.around==="center"}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}function UE(v,d,f){for(let y=0;yMath.abs(v.x)}class HE extends Q1{constructor(d){super(),this._map=d}reset(){super.reset(),this._valid=void 0,this._firstMove=void 0,this._lastPoints=void 0}_start(d){this._lastPoints=d,Rv(d[0].sub(d[1]))&&(this._valid=!1)}_move(d,f,y){let w=this._lastPoints;if(!w)return;let E=d[0].sub(w[0]),D=d[1].sub(w[1]);return this._map._cooperativeGestures&&!o.d7()&&y.touches.length<3||(this._valid=this.gestureBeginsVertically(E,D,y.timeStamp),!this._valid)?void 0:(this._lastPoints=d,this._active=!0,{pitchDelta:(E.y+D.y)/2*-.5})}gestureBeginsVertically(d,f,y){if(this._valid!==void 0)return this._valid;let w=d.mag()>=2,E=f.mag()>=2;if(!w&&!E)return;if(!w||!E)return this._firstMove==null&&(this._firstMove=y),y-this._firstMove<100&&void 0;let D=d.y>0==f.y>0;return Rv(d)&&Rv(f)&&D}}let Nv={panStep:100,bearingStep:15,pitchStep:10};class Jk{constructor(){let d=Nv;this._panStep=d.panStep,this._bearingStep=d.bearingStep,this._pitchStep=d.pitchStep,this._rotationDisabled=!1}blur(){this.reset()}reset(){this._active=!1}keydown(d){if(d.altKey||d.ctrlKey||d.metaKey)return;let f=0,y=0,w=0,E=0,D=0;switch(d.keyCode){case 61:case 107:case 171:case 187:f=1;break;case 189:case 109:case 173:f=-1;break;case 37:d.shiftKey?y=-1:(d.preventDefault(),E=-1);break;case 39:d.shiftKey?y=1:(d.preventDefault(),E=1);break;case 38:d.shiftKey?w=1:(d.preventDefault(),D=-1);break;case 40:d.shiftKey?w=-1:(d.preventDefault(),D=1);break;default:return}return this._rotationDisabled&&(y=0,w=0),{cameraAnimation:R=>{let B=R.getZoom();R.easeTo({duration:300,easeId:"keyboardHandler",easing:Tp,zoom:f?Math.round(B)+f*(d.shiftKey?2:1):B,bearing:R.getBearing()+y*this._bearingStep,pitch:R.getPitch()+w*this._pitchStep,offset:[-E*this._panStep,-D*this._panStep],center:R.getCenter()},{originalEvent:d})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}disableRotation(){this._rotationDisabled=!0}enableRotation(){this._rotationDisabled=!1}}function Tp(v){return v*(2-v)}let eM=4.000244140625,tM=1/450;class Kg{constructor(d,f){this._map=d,this._el=d.getCanvasContainer(),this._handler=f,this._delta=0,this._lastDelta=0,this._defaultZoomRate=.01,this._wheelZoomRate=tM,o.a$(["_onTimeout","_addScrollZoomBlocker","_showBlockerAlert"],this)}setZoomRate(d){this._defaultZoomRate=d}setWheelZoomRate(d){this._wheelZoomRate=d}isEnabled(){return!!this._enabled}isActive(){return this._active||this._finishTimeout!==void 0}isZooming(){return!!this._zooming}enable(d){this.isEnabled()||(this._enabled=!0,this._aroundCenter=!!d&&d.around==="center",this._map._cooperativeGestures&&this._addScrollZoomBlocker())}disable(){this.isEnabled()&&(this._enabled=!1,this._map._cooperativeGestures&&(clearTimeout(this._alertTimer),this._alertContainer.remove()))}wheel(d){if(!this.isEnabled())return;if(this._map._cooperativeGestures){if(!(d.ctrlKey||d.metaKey||this.isZooming()||o.d7()))return void this._showBlockerAlert();this._alertContainer.style.visibility!=="hidden"&&(this._alertContainer.style.visibility="hidden",clearTimeout(this._alertTimer))}let f=d.deltaMode===WheelEvent.DOM_DELTA_LINE?40*d.deltaY:d.deltaY,y=o.f.now(),w=y-(this._lastWheelEventTime||0);this._lastWheelEventTime=y,f!==0&&f%eM==0?this._type="wheel":f!==0&&Math.abs(f)<4?this._type="trackpad":w>400?(this._type=null,this._lastValue=f,this._timeout=setTimeout(this._onTimeout,40,d)):this._type||(this._type=Math.abs(w*f)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,f+=this._lastValue)),d.shiftKey&&f&&(f/=4),this._type&&(this._lastWheelEvent=d,this._delta-=f,this._active||this._start(d)),d.preventDefault()}_onTimeout(d){this._type="wheel",this._delta-=this._lastValue,this._active||this._start(d)}_start(d){if(!this._delta)return;this._frameId&&(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);let f=K(this._el,d);this._aroundPoint=this._aroundCenter?this._map.transform.centerPoint:f,this._aroundCoord=this._map.transform.pointCoordinate3D(this._aroundPoint),this._targetZoom=void 0,this._frameId||(this._frameId=!0,this._handler._triggerRenderFrame())}renderFrame(){if(!this._frameId||(this._frameId=null,!this.isActive()))return;let d=this._map.transform;this._type==="wheel"&&d.projection.wrap&&(d._center.lng>=180||d._center.lng<=-180)&&(this._prevEase=null,this._easing=null,this._lastWheelEvent=null,this._lastWheelEventTime=0);let f=()=>d._terrainEnabled()&&this._aroundCoord?d.computeZoomRelativeTo(this._aroundCoord):d.zoom;if(this._delta!==0){let U=this._type==="wheel"&&Math.abs(this._delta)>eM?this._wheelZoomRate:this._defaultZoomRate,G=2/(1+Math.exp(-Math.abs(this._delta*U)));this._delta<0&&G!==0&&(G=1/G);let $=f(),Q=Math.pow(2,$),te=typeof this._targetZoom=="number"?d.zoomScale(this._targetZoom):Q;this._targetZoom=Math.min(d.maxZoom,Math.max(d.minZoom,d.scaleZoom(te*G))),this._type==="wheel"&&(this._startZoom=$,this._easing=this._smoothOutEasing(200)),this._lastDelta=this._delta,this._delta=0}let y=typeof this._targetZoom=="number"?this._targetZoom:f(),w=this._startZoom,E=this._easing,D,R=!1;if(this._type==="wheel"&&w&&E){let U=Math.min((o.f.now()-this._lastWheelEventTime)/200,1),G=E(U);D=o.X(w,y,G),U<1?this._frameId||(this._frameId=!0):R=!0}else D=y,R=!0;this._active=!0,R&&(this._active=!1,this._finishTimeout=setTimeout(()=>{this._zooming=!1,this._handler._triggerRenderFrame(),delete this._targetZoom,delete this._finishTimeout},200));let B=D-f();return B*this._lastDelta<0&&(B=0),{noInertia:!0,needsRenderFrame:!R,zoomDelta:B,around:this._aroundPoint,aroundCoord:this._aroundCoord,originalEvent:this._lastWheelEvent}}_smoothOutEasing(d){let f=o.d8;if(this._prevEase){let y=this._prevEase,w=(o.f.now()-y.start)/y.duration,E=y.easing(w+.01)-y.easing(w),D=.27/Math.sqrt(E*E+1e-4)*.01,R=Math.sqrt(.0729-D*D);f=o.d6(D,R,.25,1)}return this._prevEase={start:o.f.now(),duration:d,easing:f},f}blur(){this.reset()}reset(){this._active=!1}_addScrollZoomBlocker(){this._map&&!this._alertContainer&&(this._alertContainer=x("div","mapboxgl-scroll-zoom-blocker",this._map._container),this._alertContainer.textContent=/(Mac|iPad)/i.test(navigator.userAgent)?this._map._getUIString("ScrollZoomBlocker.CmdMessage"):this._map._getUIString("ScrollZoomBlocker.CtrlMessage"),this._alertContainer.style.fontSize=`${Math.max(10,Math.min(24,Math.floor(.05*this._el.clientWidth)))}px`)}_showBlockerAlert(){this._alertContainer.style.visibility="visible",this._alertContainer.classList.add("mapboxgl-scroll-zoom-blocker-show"),this._alertContainer.setAttribute("role","alert"),clearTimeout(this._alertTimer),this._alertTimer=setTimeout(()=>{this._alertContainer.classList.remove("mapboxgl-scroll-zoom-blocker-show"),this._alertContainer.removeAttribute("role")},200)}}class MP{constructor(d,f){this._clickZoom=d,this._tapZoom=f}enable(){this._clickZoom.enable(),this._tapZoom.enable()}disable(){this._clickZoom.disable(),this._tapZoom.disable()}isEnabled(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()}isActive(){return this._clickZoom.isActive()||this._tapZoom.isActive()}}class Wg{constructor(){this.reset()}reset(){this._active=!1}blur(){this.reset()}dblclick(d,f){return d.preventDefault(),{cameraAnimation:y=>{y.easeTo({duration:300,zoom:y.getZoom()+(d.shiftKey?-1:1),around:y.unproject(f)},{originalEvent:d})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class OP{constructor(){this._tap=new Gy({numTouches:1,numTaps:1}),this.reset()}reset(){this._active=!1,this._swipePoint=void 0,this._swipeTouch=0,this._tapTime=0,this._tap.reset()}touchstart(d,f,y){this._swipePoint||(this._tapTime&&d.timeStamp-this._tapTime>500&&this.reset(),this._tapTime?y.length>0&&(this._swipePoint=f[0],this._swipeTouch=y[0].identifier):this._tap.touchstart(d,f,y))}touchmove(d,f,y){if(this._tapTime){if(this._swipePoint){if(y[0].identifier!==this._swipeTouch)return;let w=f[0],E=w.y-this._swipePoint.y;return this._swipePoint=w,d.preventDefault(),this._active=!0,{zoomDelta:E/128}}}else this._tap.touchmove(d,f,y)}touchend(d,f,y){this._tapTime?this._swipePoint&&y.length===0&&this.reset():this._tap.touchend(d,f,y)&&(this._tapTime=d.timeStamp)}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class X1{constructor(d,f,y){this._el=d,this._mousePan=f,this._touchPan=y}enable(d){this._inertiaOptions=d||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("mapboxgl-touch-drag-pan")}disable(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("mapboxgl-touch-drag-pan")}isEnabled(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()}isActive(){return this._mousePan.isActive()||this._touchPan.isActive()}}class RP{constructor(d,f,y){this._pitchWithRotate=d.pitchWithRotate,this._mouseRotate=f,this._mousePitch=y}enable(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()}disable(){this._mouseRotate.disable(),this._mousePitch.disable()}isEnabled(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())}isActive(){return this._mouseRotate.isActive()||this._mousePitch.isActive()}}class iM{constructor(d,f,y,w){this._el=d,this._touchZoom=f,this._touchRotate=y,this._tapDragZoom=w,this._rotationDisabled=!1,this._enabled=!0}enable(d){this._touchZoom.enable(d),this._rotationDisabled||this._touchRotate.enable(d),this._tapDragZoom.enable(),this._el.classList.add("mapboxgl-touch-zoom-rotate")}disable(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("mapboxgl-touch-zoom-rotate")}isEnabled(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()}isActive(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()}disableRotation(){this._rotationDisabled=!0,this._touchRotate.disable()}enableRotation(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()}}let Yy=v=>v.zoom||v.drag||v.pitch||v.rotate;class GE extends o.b{}class MU{constructor(){this.constants=[1,1,.01],this.radius=0}setup(d,f){let y=o.Q.sub([],f,d);this.radius=o.Q.length(y[2]<0?o.Q.div([],y,this.constants):[y[0],y[1],0])}projectRay(d){o.Q.div(d,d,this.constants),o.Q.normalize(d,d),o.Q.mul(d,d,this.constants);let f=o.Q.scale([],d,this.radius);if(f[2]>0){let y=o.Q.scale([],[0,0,1],o.Q.dot(f,[0,0,1])),w=o.Q.scale([],o.Q.normalize([],[f[0],f[1],0]),this.radius),E=o.Q.add([],f,o.Q.scale([],o.Q.sub([],o.Q.add([],w,y),f),2));f[0]=E[0],f[1]=E[1]}return f}}function qy(v){return v.panDelta&&v.panDelta.mag()||v.zoomDelta||v.bearingDelta||v.pitchDelta}class J1{constructor(d,f){this._map=d,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new Qk(d),this._bearingSnap=f.bearingSnap,this._previousActiveHandlers={},this._trackingEllipsoid=new MU,this._dragOrigin=null,this._eventsInProgress={},this._addDefaultHandlers(f),o.a$(["handleEvent","handleWindowEvent"],this);let y=this._el;this._listeners=[[y,"touchstart",{passive:!0}],[y,"touchmove",{passive:!1}],[y,"touchend",void 0],[y,"touchcancel",void 0],[y,"mousedown",void 0],[y,"mousemove",void 0],[y,"mouseup",void 0],[document,"mousemove",{capture:!0}],[document,"mouseup",void 0],[y,"mouseover",void 0],[y,"mouseout",void 0],[y,"dblclick",void 0],[y,"click",void 0],[y,"keydown",{capture:!1}],[y,"keyup",void 0],[y,"wheel",{passive:!1}],[y,"contextmenu",void 0],[window,"blur",void 0]];for(let[w,E,D]of this._listeners){let R=w===document?this.handleWindowEvent:this.handleEvent;w.addEventListener(E,R,D)}}destroy(){for(let[d,f,y]of this._listeners){let w=d===document?this.handleWindowEvent:this.handleEvent;d.removeEventListener(f,w,y)}}_addDefaultHandlers(d){let f=this._map,y=f.getCanvasContainer();this._add("mapEvent",new FE(f,d));let w=f.boxZoom=new K1(f,d);this._add("boxZoom",w);let E=new zE,D=new Wg;f.doubleClickZoom=new MP(D,E),this._add("tapZoom",E),this._add("clickZoom",D);let R=new OP;this._add("tapDragZoom",R);let B=f.touchPitch=new HE(f);this._add("touchPitch",B);let U=new Z1(d),G=new $g(d);f.dragRotate=new RP(d,U,G),this._add("mouseRotate",U,["mousePitch"]),this._add("mousePitch",G,["mouseRotate"]);let $=new VE(d),Q=new TP(f,d);f.dragPan=new X1(y,$,Q),this._add("mousePan",$),this._add("touchPan",Q,["touchZoom","touchRotate"]);let te=new jE,he=new DP;f.touchZoomRotate=new iM(y,he,te,R),this._add("touchRotate",te,["touchPan","touchZoom"]),this._add("touchZoom",he,["touchPan","touchRotate"]),this._add("blockableMapEvent",new LE(f));let me=f.scrollZoom=new Kg(f,this);this._add("scrollZoom",me,["mousePan"]);let _e=f.keyboard=new Jk;this._add("keyboard",_e);for(let ye of["boxZoom","doubleClickZoom","tapDragZoom","touchPitch","dragRotate","dragPan","touchZoomRotate","scrollZoom","keyboard"])d.interactive&&d[ye]&&f[ye].enable(d[ye])}_add(d,f,y){this._handlers.push({handlerName:d,handler:f,allowed:y}),this._handlersById[d]=f}stop(d){if(!this._updatingCamera){for(let{handler:f}of this._handlers)f.reset();this._inertia.clear(),this._fireEvents({},{},d),this._changes=[],this._originalZoom=void 0}}isActive(){for(let{handler:d}of this._handlers)if(d.isActive())return!0;return!1}isZooming(){return!!this._eventsInProgress.zoom||this._map.scrollZoom.isZooming()}isRotating(){return!!this._eventsInProgress.rotate}isMoving(){return!!Yy(this._eventsInProgress)||this.isZooming()}_isDragging(){return!!this._eventsInProgress.drag}_blockedByActive(d,f,y){for(let w in d)if(w!==y&&(!f||f.indexOf(w)<0))return!0;return!1}handleWindowEvent(d){this.handleEvent(d,`${d.type}Window`)}_getMapTouches(d){let f=[];for(let y of d)this._el.contains(y.target)&&f.push(y);return f}handleEvent(d,f){this._updatingCamera=!0;let y=d.type==="renderFrame",w=y?void 0:d,E={needsRenderFrame:!1},D={},R={},B=d.touches?this._getMapTouches(d.touches):void 0,U=B?ee(this._el,B):y?void 0:K(this._el,d);for(let{handlerName:Q,handler:te,allowed:he}of this._handlers){if(!te.isEnabled())continue;let me;this._blockedByActive(R,he,Q)?te.reset():te[f||d.type]&&(me=te[f||d.type](d,U,B),this.mergeHandlerResult(E,D,me,Q,w),me&&me.needsRenderFrame&&this._triggerRenderFrame()),(me||te.isActive())&&(R[Q]=te)}let G={};for(let Q in this._previousActiveHandlers)R[Q]||(G[Q]=w);this._previousActiveHandlers=R,(Object.keys(G).length||qy(E))&&(this._changes.push([E,D,G]),this._triggerRenderFrame()),(Object.keys(R).length||qy(E))&&this._map._stop(!0),this._updatingCamera=!1;let{cameraAnimation:$}=E;$&&(this._inertia.clear(),this._fireEvents({},{},!0),this._changes=[],$(this._map))}mergeHandlerResult(d,f,y,w,E){if(!y)return;o.e(d,y);let D={handlerName:w,originalEvent:y.originalEvent||E};y.zoomDelta!==void 0&&(f.zoom=D),y.panDelta!==void 0&&(f.drag=D),y.pitchDelta!==void 0&&(f.pitch=D),y.bearingDelta!==void 0&&(f.rotate=D)}_applyChanges(){let d={},f={},y={};for(let[w,E,D]of this._changes)w.panDelta&&(d.panDelta=(d.panDelta||new o.P(0,0))._add(w.panDelta)),w.zoomDelta&&(d.zoomDelta=(d.zoomDelta||0)+w.zoomDelta),w.bearingDelta&&(d.bearingDelta=(d.bearingDelta||0)+w.bearingDelta),w.pitchDelta&&(d.pitchDelta=(d.pitchDelta||0)+w.pitchDelta),w.around!==void 0&&(d.around=w.around),w.aroundCoord!==void 0&&(d.aroundCoord=w.aroundCoord),w.pinchAround!==void 0&&(d.pinchAround=w.pinchAround),w.noInertia&&(d.noInertia=w.noInertia),o.e(f,E),o.e(y,D);this._updateMapTransform(d,f,y),this._changes=[]}_updateMapTransform(d,f,y){let w=this._map,E=w.transform,D=Ae=>[Ae.x,Ae.y,Ae.z];if((Ae=>{let je=this._eventsInProgress.drag;return je&&!this._handlersById[je.handlerName].isActive()})()&&!qy(d)){let Ae=E.zoom;E.cameraElevationReference="sea",this._originalZoom!=null&&E._orthographicProjectionAtLowPitch&&E.projection.name!=="globe"&&E.pitch===0?(E.cameraElevationReference="ground",E.zoom=this._originalZoom):(E.recenterOnTerrain(),E.cameraElevationReference="ground"),Ae!==E.zoom&&this._map._update(!0)}if(E._isCameraConstrained&&w._stop(!0),!qy(d))return void this._fireEvents(f,y,!0);let{panDelta:R,zoomDelta:B,bearingDelta:U,pitchDelta:G,around:$,aroundCoord:Q,pinchAround:te}=d;E._isCameraConstrained&&(B>0&&(B=0),E._isCameraConstrained=!1),te!==void 0&&($=te),(B||(Ae=>f[Ae]&&!this._eventsInProgress[Ae])("drag"))&&$&&(this._dragOrigin=D(E.pointCoordinate3D($)),this._originalZoom=E.zoom,this._trackingEllipsoid.setup(E._camera.position,this._dragOrigin)),E.cameraElevationReference="sea",w._stop(!0),$=$||w.transform.centerPoint,U&&(E.bearing+=U),G&&(E.pitch+=G),E._updateCameraState();let he=[0,0,0];if(R)if(E.projection.name==="mercator"){let Ae=this._trackingEllipsoid.projectRay(E.screenPointToMercatorRay($).dir),je=this._trackingEllipsoid.projectRay(E.screenPointToMercatorRay($.sub(R)).dir);he[0]=je[0]-Ae[0],he[1]=je[1]-Ae[1]}else{let Ae=E.pointCoordinate($);if(E.projection.name==="globe"){R=R.rotate(-E.angle);let je=E._pixelsPerMercatorPixel/E.worldSize;he[0]=-R.x*o.d9(o.ax(Ae.y))*je,he[1]=-R.y*o.d9(E.center.lat)*je}else{let je=E.pointCoordinate($.sub(R));Ae&&je&&(he[0]=je.x-Ae.x,he[1]=je.y-Ae.y)}}let me=E.zoom,_e=[0,0,0];if(B){let Ae=D(Q||E.pointCoordinate3D($)),je={dir:o.Q.normalize([],o.Q.sub([],Ae,E._camera.position))};if(je.dir[2]<0){let He=E.zoomDeltaToMovement(Ae,B);o.Q.scale(_e,je.dir,He)}}let ye=o.Q.add(he,he,_e);E._translateCameraConstrained(ye),B&&Math.abs(E.zoom-me)>1e-4&&E.recenterOnTerrain(),E.cameraElevationReference="ground",this._map._update(),d.noInertia||this._inertia.record(d),this._fireEvents(f,y,!0)}_fireEvents(d,f,y){let w=Yy(this._eventsInProgress),E=Yy(d),D={};for(let G in d){let{originalEvent:$}=d[G];this._eventsInProgress[G]||(D[`${G}start`]=$),this._eventsInProgress[G]=d[G]}!w&&E&&this._fireEvent("movestart",E.originalEvent);for(let G in D)this._fireEvent(G,D[G]);E&&this._fireEvent("move",E.originalEvent);for(let G in d){let{originalEvent:$}=d[G];this._fireEvent(G,$)}let R={},B;for(let G in this._eventsInProgress){let{handlerName:$,originalEvent:Q}=this._eventsInProgress[G];this._handlersById[$].isActive()||(delete this._eventsInProgress[G],B=f[$]||Q,R[`${G}end`]=B)}for(let G in R)this._fireEvent(G,R[G]);let U=Yy(this._eventsInProgress);if(y&&(w||E)&&!U){this._updatingCamera=!0;let G=this._inertia._onMoveEnd(this._map.dragPan._inertiaOptions),$=Q=>Q!==0&&-this._bearingSnap{this._frameId=void 0,this.handleEvent(new GE("renderFrame",{timeStamp:d})),this._applyChanges()})}_triggerRenderFrame(){this._frameId===void 0&&(this._frameId=this._requestFrame())}}let nM="map.setFreeCameraOptions(...) and map.getFreeCameraOptions() are not yet supported for non-mercator projections.";class OU extends o.E{constructor(d,f){super(),this._moving=!1,this._zooming=!1,this.transform=d,this._bearingSnap=f.bearingSnap,this._respectPrefersReducedMotion=f.respectPrefersReducedMotion!==!1,o.a$(["_renderFrameCallback"],this)}getCenter(){return new o.bq(this.transform.center.lng,this.transform.center.lat)}setCenter(d,f){return this.jumpTo({center:d},f)}panBy(d,f,y){return d=o.P.convert(d).mult(-1),this.panTo(this.transform.center,o.e({offset:d},f),y)}panTo(d,f,y){return this.easeTo(o.e({center:d},f),y)}getZoom(){return this.transform.zoom}setZoom(d,f){return this.jumpTo({zoom:d},f),this}zoomTo(d,f,y){return this.easeTo(o.e({zoom:d},f),y)}zoomIn(d,f){return this.zoomTo(this.getZoom()+1,d,f),this}zoomOut(d,f){return this.zoomTo(this.getZoom()-1,d,f),this}getBearing(){return this.transform.bearing}setBearing(d,f){return this.jumpTo({bearing:d},f),this}getPadding(){return this.transform.padding}setPadding(d,f){return this.jumpTo({padding:d},f),this}rotateTo(d,f,y){return this.easeTo(o.e({bearing:d},f),y)}resetNorth(d,f){return this.rotateTo(0,o.e({duration:1e3},d),f),this}resetNorthPitch(d,f){return this.easeTo(o.e({bearing:0,pitch:0,duration:1e3},d),f),this}snapToNorth(d,f){return Math.abs(this.getBearing())d.aspect?y/(2*Math.tan(.5*d.fovX)*d.aspect):w/(2*Math.tan(.5*d.fovY)*d.aspect)}_cameraForBoundsOnGlobe(d,f,y,w,E,D){let R=d.clone(),B=this._extendCameraOptions(D);R.bearing=w,R.pitch=E;let U=o.bq.convert(f),G=o.bq.convert(y),$=.5*(U.lat+G.lat),Q=.5*(U.lng+G.lng),te=o.da($,Q),he=o.Q.normalize([],te),me=o.Q.normalize([],o.Q.cross([],he,[0,1,0])),_e=o.Q.cross([],me,he),ye=[me[0],me[1],me[2],0,_e[0],_e[1],_e[2],0,he[0],he[1],he[2],0,0,0,0,1],Ae=[te,o.da(U.lat,U.lng),o.da(G.lat,U.lng),o.da(G.lat,G.lng),o.da(U.lat,G.lng),o.da($,U.lng),o.da($,G.lng),o.da(U.lat,Q),o.da(G.lat,Q)],je=o.bV.fromPoints(Ae.map($t=>[o.Q.dot(me,$t),o.Q.dot(_e,$t),o.Q.dot(he,$t)])),He=o.Q.transformMat4([],je.center,ye);o.Q.squaredLength(He)===0&&o.Q.set(He,0,0,1),o.Q.normalize(He,He),o.Q.scale(He,He,o.ae),R.center=o.db(He);let Ze=R.getWorldToCameraMatrix(),be=o.a9.invert(new Float64Array(16),Ze);je=o.bV.applyTransform(je,o.a9.multiply([],Ze,ye));let Oe=this._extendAABB(je,R,B,w);if(!Oe)return void o.w("Map cannot fit within canvas with the given bounds, padding, and/or offset.");je=Oe,o.Q.transformMat4(He,He,Ze);let st=.5*(je.max[2]-je.min[2]),ot=this._minimumAABBFrustumDistance(R,je),xt=o.Q.scale([],[0,0,1],st),Yt=o.Q.add(xt,He,xt),gt=ot+(R.pitch===0?0:o.Q.distance(He,Yt)),zt=R.globeCenterInViewSpace,Zt=o.Q.sub([],He,[zt[0],zt[1],zt[2]]);o.Q.normalize(Zt,Zt),o.Q.scale(Zt,Zt,gt);let ft=o.Q.add([],He,Zt);o.Q.transformMat4(ft,ft,be);let kt=o.dc/o.ae,Si=o.Q.length(ft),St=o.bo(Math.max(Si*kt-o.dc,Number.EPSILON),0),jt=Math.min(R.zoomFromMercatorZAdjusted(St),B.maxZoom);return jt>.5*(o.bJ+o.bA)?(R.setProjection({name:"mercator"}),R.zoom=jt,this._cameraForBounds(R,f,y,w,E,D)):{center:R.center,zoom:jt,bearing:w,pitch:E}}_extendAABB(d,f,y,w){let E=.5*((y.padding.left||0)+(y.padding.right||0)),D=.5*((y.padding.top||0)+(y.padding.bottom||0)),R=D,B=E,U=E,G=D,$=f.width-(B+U),Q=f.height-(R+G),te=o.Q.sub([],d.max,d.min),he=Math.min($/te[0],Q/te[1]),me=Math.min(f.scaleZoom(f.scale*he),y.maxZoom);if(isNaN(me))return null;let _e=f.scale/f.zoomScale(me),ye=new o.bV([d.min[0]-B*_e,d.min[1]-G*_e,d.min[2]],[d.max[0]+U*_e,d.max[1]+R*_e,d.max[2]]),Ae=(typeof y.offset.x=="number"&&typeof y.offset.y=="number"?new o.P(y.offset.x,y.offset.y):o.P.convert(y.offset)).rotate(-o.bm(w));return ye.center[0]-=Ae.x*_e,ye.center[1]+=Ae.y*_e,ye}queryTerrainElevation(d,f){let y=this.transform.elevation;return y?(f=o.e({},{exaggerated:!0},f),y.getAtPoint(o.O.fromLngLat(d),null,f.exaggerated)):null}_cameraForBounds(d,f,y,w,E,D){if(d.projection.name==="globe")return this._cameraForBoundsOnGlobe(d,f,y,w,E,D);let R=d.clone(),B=this._extendCameraOptions(D);R.bearing=w,R.pitch=E;let U=o.bq.convert(f),G=o.bq.convert(y),$=new o.bq(U.lng,G.lat),Q=new o.bq(G.lng,U.lat),te=R.project(U),he=R.project(G),me=this.queryTerrainElevation(U),_e=this.queryTerrainElevation(G),ye=this.queryTerrainElevation($),Ae=this.queryTerrainElevation(Q),je=[[te.x,te.y,Math.min(me||0,_e||0,ye||0,Ae||0)],[he.x,he.y,Math.max(me||0,_e||0,ye||0,Ae||0)]],He=o.bV.fromPoints(je),Ze=R.getWorldToCameraMatrix(),be=o.a9.invert(new Float64Array(16),Ze);He=o.bV.applyTransform(He,Ze);let Oe=this._extendAABB(He,R,B,w);if(!Oe)return void o.w("Map cannot fit within canvas with the given bounds, padding, and/or offset.");He=Oe;let st=.5*o.Q.sub([],He.max,He.min)[2],ot=this._minimumAABBFrustumDistance(R,He),xt=[0,0,1,0];o.aa.transformMat4(xt,xt,Ze),o.aa.normalize(xt,xt);let Yt=o.Q.scale([],xt,ot+st),gt=o.Q.add([],He.center,Yt);o.Q.transformMat4(He.center,He.center,be),o.Q.transformMat4(gt,gt,be);let zt=[He.center[0],He.center[1],gt[2]*R.pixelsPerMeter];o.Q.scale(zt,zt,1/R.worldSize);let Zt=o.aw(zt[0]),ft=o.ax(zt[1]),kt=Math.min(R._zoomFromMercatorZ(zt[2]),B.maxZoom),Si=new o.bq(Zt,ft);return R.mercatorFromTransition&&kt<.5*(o.bJ+o.bA)?(R.setProjection({name:"globe"}),R.zoom=kt,this._cameraForBounds(R,f,y,w,E,D)):{center:Si,zoom:kt,bearing:w,pitch:E}}fitBounds(d,f,y){let w=this.cameraForBounds(d,f);return this._fitInternal(w,f,y)}fitScreenCoordinates(d,f,y,w,E){let D=o.P.convert(d),R=o.P.convert(f),B=new o.P(Math.min(D.x,R.x),Math.min(D.y,R.y)),U=new o.P(Math.max(D.x,R.x),Math.max(D.y,R.y));if(this.transform.projection.name==="mercator"&&this.transform.anyCornerOffEdge(D,R))return this;let G=this.transform.pointLocation3D(B),$=this.transform.pointLocation3D(U),Q=this.transform.pointLocation3D(new o.P(B.x,U.y)),te=this.transform.pointLocation3D(new o.P(U.x,B.y)),he=[Math.min(G.lng,$.lng,Q.lng,te.lng),Math.min(G.lat,$.lat,Q.lat,te.lat)],me=[Math.max(G.lng,$.lng,Q.lng,te.lng),Math.max(G.lat,$.lat,Q.lat,te.lat)],_e=w&&w.pitch?w.pitch:this.getPitch(),ye=this._cameraForBounds(this.transform,he,me,y,_e,w);return this._fitInternal(ye,w,E)}_fitInternal(d,f,y){return d?(f=o.e(d,f)).linear?this.easeTo(f,y):this.flyTo(f,y):this}jumpTo(d,f){this.stop();let y=d.preloadOnly?this.transform.clone():this.transform,w=!1,E=!1,D=!1;return"zoom"in d&&y.zoom!==+d.zoom&&(w=!0,y.zoom=+d.zoom),d.center!==void 0&&(y.center=o.bq.convert(d.center)),"bearing"in d&&y.bearing!==+d.bearing&&(E=!0,y.bearing=+d.bearing),"pitch"in d&&y.pitch!==+d.pitch&&(D=!0,y.pitch=+d.pitch),d.padding==null||y.isPaddingEqual(d.padding)||(y.padding=d.padding),d.preloadOnly?(this._preloadTiles(y),this):(this.fire(new o.b("movestart",f)).fire(new o.b("move",f)),w&&this.fire(new o.b("zoomstart",f)).fire(new o.b("zoom",f)).fire(new o.b("zoomend",f)),E&&this.fire(new o.b("rotatestart",f)).fire(new o.b("rotate",f)).fire(new o.b("rotateend",f)),D&&this.fire(new o.b("pitchstart",f)).fire(new o.b("pitch",f)).fire(new o.b("pitchend",f)),this.fire(new o.b("moveend",f)))}getFreeCameraOptions(){return this.transform.projection.supportsFreeCamera||o.w(nM),this.transform.getFreeCameraOptions()}setFreeCameraOptions(d,f){let y=this.transform;if(!y.projection.supportsFreeCamera)return o.w(nM),this;this.stop();let w=y.zoom,E=y.pitch,D=y.bearing;y.setFreeCameraOptions(d);let R=w!==y.zoom,B=E!==y.pitch,U=D!==y.bearing;return this.fire(new o.b("movestart",f)).fire(new o.b("move",f)),R&&this.fire(new o.b("zoomstart",f)).fire(new o.b("zoom",f)).fire(new o.b("zoomend",f)),U&&this.fire(new o.b("rotatestart",f)).fire(new o.b("rotate",f)).fire(new o.b("rotateend",f)),B&&this.fire(new o.b("pitchstart",f)).fire(new o.b("pitch",f)).fire(new o.b("pitchend",f)),this.fire(new o.b("moveend",f)),this}easeTo(d,f){this._stop(!1,d.easeId),((d=o.e({offset:[0,0],duration:500,easing:o.d8},d)).animate===!1||this._prefersReducedMotion(d))&&(d.duration=0);let y=this.transform,w=this.getZoom(),E=this.getBearing(),D=this.getPitch(),R=this.getPadding(),B="zoom"in d?+d.zoom:w,U="bearing"in d?this._normalizeBearing(d.bearing,E):E,G="pitch"in d?+d.pitch:D,$=this._extendPadding(d.padding),Q=o.P.convert(d.offset),te,he,me;if(y.projection.name==="globe"){let ot=o.O.fromLngLat(y.center),xt=Q.rotate(-y.angle);ot.x+=xt.x/y.worldSize,ot.y+=xt.y/y.worldSize;let Yt=ot.toLngLat(),gt=o.bq.convert(d.center||Yt);this._normalizeCenter(gt),te=y.centerPoint.add(xt),he=new o.P(ot.x,ot.y).mult(y.worldSize),me=new o.P(o.a8(gt.lng),o.ah(gt.lat)).mult(y.worldSize).sub(he)}else{te=y.centerPoint.add(Q);let ot=y.pointLocation(te),xt=o.bq.convert(d.center||ot);this._normalizeCenter(xt),he=y.project(ot),me=y.project(xt).sub(he)}let _e=y.zoomScale(B-w),ye,Ae;d.around&&(ye=o.bq.convert(d.around),Ae=y.locationPoint(ye));let je=this._zooming||B!==w,He=this._rotating||E!==U,Ze=this._pitching||G!==D,be=!y.isPaddingEqual($),Oe=ot=>xt=>{if(je&&(ot.zoom=o.X(w,B,xt)),He&&(ot.bearing=o.X(E,U,xt)),Ze&&(ot.pitch=o.X(D,G,xt)),be&&(ot.interpolatePadding(R,$,xt),te=ot.centerPoint.add(Q)),ye)ot.setLocationAtPoint(ye,Ae);else{let Yt=ot.zoomScale(ot.zoom-w),gt=B>w?Math.min(2,_e):Math.max(.5,_e),zt=Math.pow(gt,1-xt),Zt=ot.unproject(he.add(me.mult(xt*zt)).mult(Yt));ot.setLocationAtPoint(ot.renderWorldCopies?Zt.wrap():Zt,te)}return d.preloadOnly||this._fireMoveEvents(f),ot};if(d.preloadOnly){let ot=this._emulate(Oe,d.duration,y);return this._preloadTiles(ot),this}let st={moving:this._moving,zooming:this._zooming,rotating:this._rotating,pitching:this._pitching};return this._zooming=je,this._rotating=He,this._pitching=Ze,this._padding=be,this._easeId=d.easeId,this._prepareEase(f,d.noMoveStart,st),this._ease(Oe(y),ot=>{y.cameraElevationReference==="sea"&&y.recenterOnTerrain(),this._afterEase(f,ot)},d),this}_prepareEase(d,f,y={}){this._moving=!0,this.transform.cameraElevationReference="sea",this.transform._orthographicProjectionAtLowPitch&&this.transform.pitch===0&&this.transform.projection.name!=="globe"&&(this.transform.cameraElevationReference="ground"),f||y.moving||this.fire(new o.b("movestart",d)),this._zooming&&!y.zooming&&this.fire(new o.b("zoomstart",d)),this._rotating&&!y.rotating&&this.fire(new o.b("rotatestart",d)),this._pitching&&!y.pitching&&this.fire(new o.b("pitchstart",d))}_fireMoveEvents(d){this.fire(new o.b("move",d)),this._zooming&&this.fire(new o.b("zoom",d)),this._rotating&&this.fire(new o.b("rotate",d)),this._pitching&&this.fire(new o.b("pitch",d))}_afterEase(d,f){if(this._easeId&&f&&this._easeId===f)return;this._easeId=void 0,this.transform.cameraElevationReference="ground";let y=this._zooming,w=this._rotating,E=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,y&&this.fire(new o.b("zoomend",d)),w&&this.fire(new o.b("rotateend",d)),E&&this.fire(new o.b("pitchend",d)),this.fire(new o.b("moveend",d))}flyTo(d,f){if(this._prefersReducedMotion(d)){let jt=o.af(d,["center","zoom","bearing","pitch","around"]);return this.jumpTo(jt,f)}this.stop(),d=o.e({offset:[0,0],speed:1.2,curve:1.42,easing:o.d8},d);let y=this.transform,w=this.getZoom(),E=this.getBearing(),D=this.getPitch(),R=this.getPadding(),B="zoom"in d?o.ad(+d.zoom,y.minZoom,y.maxZoom):w,U="bearing"in d?this._normalizeBearing(d.bearing,E):E,G="pitch"in d?+d.pitch:D,$=this._extendPadding(d.padding),Q=y.zoomScale(B-w),te=o.P.convert(d.offset),he=y.centerPoint.add(te),me=y.pointLocation(he),_e=o.bq.convert(d.center||me);this._normalizeCenter(_e);let ye=y.project(me),Ae=y.project(_e).sub(ye),je=d.curve,He=Math.max(y.width,y.height),Ze=He/Q,be=Ae.mag();if("minZoom"in d){let jt=o.ad(Math.min(d.minZoom,w,B),y.minZoom,y.maxZoom),$t=He/y.zoomScale(jt-w);je=Math.sqrt($t/be*2)}let Oe=je*je;function st(jt){let $t=(Ze*Ze-He*He+(jt?-1:1)*Oe*Oe*be*be)/(2*(jt?Ze:He)*Oe*be);return Math.log(Math.sqrt($t*$t+1)-$t)}function ot(jt){return(Math.exp(jt)-Math.exp(-jt))/2}function xt(jt){return(Math.exp(jt)+Math.exp(-jt))/2}let Yt=st(0),gt=function(jt){return xt(Yt)/xt(Yt+je*jt)},zt=function(jt){return He*((xt(Yt)*(ot($t=Yt+je*jt)/xt($t))-ot(Yt))/Oe)/be;var $t},Zt=(st(1)-Yt)/je;if(Math.abs(be)<1e-6||!isFinite(Zt)){if(Math.abs(He-Ze)<1e-6)return this.easeTo(d,f);let jt=Zed.maxDuration&&(d.duration=0);let ft=E!==U,kt=G!==D,Si=!y.isPaddingEqual($),St=jt=>$t=>{let Ge=$t*Zt,hi=1/gt(Ge);jt.zoom=$t===1?B:w+jt.scaleZoom(hi),ft&&(jt.bearing=o.X(E,U,$t)),kt&&(jt.pitch=o.X(D,G,$t)),Si&&(jt.interpolatePadding(R,$,$t),he=jt.centerPoint.add(te));let mn=$t===1?_e:jt.unproject(ye.add(Ae.mult(zt(Ge))).mult(hi));return jt.setLocationAtPoint(jt.renderWorldCopies?mn.wrap():mn,he),jt._updateCameraOnTerrain(),d.preloadOnly||this._fireMoveEvents(f),jt};if(d.preloadOnly){let jt=this._emulate(St,d.duration,y);return this._preloadTiles(jt),this}return this._zooming=!0,this._rotating=ft,this._pitching=kt,this._padding=Si,this._prepareEase(f,!1),this._ease(St(y),()=>this._afterEase(f),d),this}isEasing(){return!!this._easeFrameId}stop(){return this._stop()}_requestRenderFrame(d){}_cancelRenderFrame(d){}_stop(d,f){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),this._easeFrameId=void 0,this._onEaseFrame=void 0),this._onEaseEnd){let y=this._onEaseEnd;this._onEaseEnd=void 0,y.call(this,f)}if(!d){let y=this.handlers;y&&y.stop(!1)}return this}_ease(d,f,y){y.animate===!1||y.duration===0?(d(1),f()):(this._easeStart=o.f.now(),this._easeOptions=y,this._onEaseFrame=d,this._onEaseEnd=f,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))}_renderFrameCallback(){let d=Math.min((o.f.now()-this._easeStart)/this._easeOptions.duration,1),f=this._onEaseFrame;f&&f(this._easeOptions.easing(d)),d<1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()}_normalizeBearing(d,f){d=o.bk(d,-180,180);let y=Math.abs(d-f);return Math.abs(d-360-f)180?-360:y<-180?360:0}_prefersReducedMotion(d){return this._respectPrefersReducedMotion&&o.f.prefersReducedMotion&&!(d&&d.essential)}_emulate(d,f,y){let w=Math.ceil(15*f/1e3),E=[],D=d(y.clone());for(let R=0;R<=w;R++){let B=D(R/w);E.push(B.clone())}return E}_preloadTiles(d,f){}}class YE{constructor(d={}){this.options=d,o.a$(["_toggleAttribution","_updateEditLink","_updateData","_updateCompact"],this)}getDefaultPosition(){return"bottom-right"}onAdd(d){let f=this.options&&this.options.compact;return this._map=d,this._container=x("div","mapboxgl-ctrl mapboxgl-ctrl-attrib"),this._compactButton=x("button","mapboxgl-ctrl-attrib-button",this._container),x("span","mapboxgl-ctrl-icon",this._compactButton).setAttribute("aria-hidden","true"),this._compactButton.type="button",this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=x("div","mapboxgl-ctrl-attrib-inner",this._container),f&&this._container.classList.add("mapboxgl-compact"),this._updateAttributions(),this._updateEditLink(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("moveend",this._updateEditLink),f===void 0&&(this._map.on("resize",this._updateCompact),this._updateCompact()),this._container}onRemove(){this._container.remove(),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("moveend",this._updateEditLink),this._map.off("resize",this._updateCompact),this._map=void 0,this._attribHTML=void 0}_setElementTitle(d,f){let y=this._map._getUIString(`AttributionControl.${f}`);d.removeAttribute("title"),d.firstElementChild&&d.firstElementChild.setAttribute("title",y)}_toggleAttribution(){this._container.classList.contains("mapboxgl-compact-show")?(this._container.classList.remove("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-expanded","false")):(this._container.classList.add("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-expanded","true"))}_updateEditLink(){let d=this._editLink;d||(d=this._editLink=this._container.querySelector(".mapbox-improve-map"));let f=[{key:"owner",value:this.styleOwner},{key:"id",value:this.styleId},{key:"access_token",value:this._map._requestManager._customAccessToken||o.dd.ACCESS_TOKEN}];if(d){let y=f.reduce((w,E,D)=>(E.value&&(w+=`${E.key}=${E.value}${Dw.length-E.length),d=d.filter((w,E)=>{for(let D=E+1;D=0)return!1;return!0}),this.options.customAttribution&&(Array.isArray(this.options.customAttribution)?d=[...this.options.customAttribution,...d]:d.unshift(this.options.customAttribution));let y=d.join(" | ");y!==this._attribHTML&&(this._attribHTML=y,d.length?(this._innerContainer.innerHTML=y,this._container.classList.remove("mapboxgl-attrib-empty")):this._container.classList.add("mapboxgl-attrib-empty"),this._editLink=null)}_updateCompact(){this._map.getCanvasContainer().offsetWidth<=640?this._container.classList.add("mapboxgl-compact"):this._container.classList.remove("mapboxgl-compact","mapboxgl-compact-show")}}class NP{constructor(){o.a$(["_updateLogo","_updateCompact"],this)}onAdd(d){this._map=d,this._container=x("div","mapboxgl-ctrl");let f=x("a","mapboxgl-ctrl-logo");return f.target="_blank",f.rel="noopener nofollow",f.href="https://www.mapbox.com/",f.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),f.setAttribute("rel","noopener nofollow"),this._container.appendChild(f),this._container.style.display="none",this._map.on("sourcedata",this._updateLogo),this._updateLogo(),this._map.on("resize",this._updateCompact),this._updateCompact(),this._container}onRemove(){this._container.remove(),this._map.off("sourcedata",this._updateLogo),this._map.off("resize",this._updateCompact)}getDefaultPosition(){return"bottom-left"}_updateLogo(d){d&&d.sourceDataType!=="metadata"||(this._container.style.display=this._logoRequired()?"block":"none")}_logoRequired(){if(!this._map.style)return!0;let d=this._map.style._sourceCaches;if(Object.entries(d).length===0)return!0;for(let f in d){let y=d[f].getSource();if(y.hasOwnProperty("mapbox_logo")&&!y.mapbox_logo)return!1}return!0}_updateCompact(){let d=this._container.children;if(d.length){let f=d[0];this._map.getCanvasContainer().offsetWidth<250?f.classList.add("mapboxgl-compact"):f.classList.remove("mapboxgl-compact")}}}class ew{constructor(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1}add(d){let f=++this._id;return this._queue.push({callback:d,id:f,cancelled:!1}),f}remove(d){let f=this._currentlyRunning,y=f?this._queue.concat(f):this._queue;for(let w of y)if(w.id===d)return void(w.cancelled=!0)}run(d=0){let f=this._currentlyRunning=this._queue;this._queue=[];for(let y of f)if(!y.cancelled&&(y.callback(d),this._cleared))break;this._cleared=!1,this._currentlyRunning=!1}clear(){this._currentlyRunning&&(this._cleared=!0),this._queue=[]}}function $y(v,d,f){if(v=new o.bq(v.lng,v.lat),d){let y=new o.bq(v.lng-360,v.lat),w=new o.bq(v.lng+360,v.lat),E=360*Math.ceil(Math.abs(v.lng-f.center.lng)/360),D=f.locationPoint(v).distSqr(d),R=d.x<0||d.y<0||d.x>f.width||d.y>f.height;f.locationPoint(y).distSqr(d)180;){let y=f.locationPoint(v);if(y.x>=0&&y.y>=0&&y.x<=f.width&&y.y<=f.height)break;v.lng>f.center.lng?v.lng-=360:v.lng+=360}return v}let Zg={center:"translate(-50%,-50%)",top:"translate(-50%,0)","top-left":"translate(0,0)","top-right":"translate(-100%,0)",bottom:"translate(-50%,-100%)","bottom-left":"translate(0,-100%)","bottom-right":"translate(-100%,-100%)",left:"translate(0,-50%)",right:"translate(-100%,-50%)"};class Ky extends o.E{constructor(d,f){if(super(),(d instanceof HTMLElement||f)&&(d=o.e({element:d},f)),o.a$(["_update","_onMove","_onUp","_addDragHandler","_onMapClick","_onKeyPress","_clearFadeTimer"],this),this._anchor=d&&d.anchor||"center",this._color=d&&d.color||"#3FB1CE",this._scale=d&&d.scale||1,this._draggable=d&&d.draggable||!1,this._clickTolerance=d&&d.clickTolerance||0,this._isDragging=!1,this._state="inactive",this._rotation=d&&d.rotation||0,this._rotationAlignment=d&&d.rotationAlignment||"auto",this._pitchAlignment=d&&d.pitchAlignment&&d.pitchAlignment||"auto",this._updateMoving=()=>this._update(!0),this._occludedOpacity=d&&d.occludedOpacity||.2,d&&d.element)this._element=d.element,this._offset=o.P.convert(d&&d.offset||[0,0]);else{this._defaultMarker=!0,this._element=x("div");let E=41,D=27,R=C("svg",{display:"block",height:E*this._scale+"px",width:D*this._scale+"px",viewBox:`0 0 ${D} ${E}`},this._element),B=C("radialGradient",{id:"shadowGradient"},C("defs",{},R));C("stop",{offset:"10%","stop-opacity":.4},B),C("stop",{offset:"100%","stop-opacity":.05},B),C("ellipse",{cx:13.5,cy:34.8,rx:10.5,ry:5.25,fill:"url(#shadowGradient)"},R),C("path",{fill:this._color,d:"M27,13.5C27,19.07 20.25,27 14.75,34.5C14.02,35.5 12.98,35.5 12.25,34.5C6.75,27 0,19.22 0,13.5C0,6.04 6.04,0 13.5,0C20.96,0 27,6.04 27,13.5Z"},R),C("path",{opacity:.25,d:"M13.5,0C6.04,0 0,6.04 0,13.5C0,19.22 6.75,27 12.25,34.5C13,35.52 14.02,35.5 14.75,34.5C20.25,27 27,19.07 27,13.5C27,6.04 20.96,0 13.5,0ZM13.5,1C20.42,1 26,6.58 26,13.5C26,15.9 24.5,19.18 22.22,22.74C19.95,26.3 16.71,30.14 13.94,33.91C13.74,34.18 13.61,34.32 13.5,34.44C13.39,34.32 13.26,34.18 13.06,33.91C10.28,30.13 7.41,26.31 5.02,22.77C2.62,19.23 1,15.95 1,13.5C1,6.58 6.58,1 13.5,1Z"},R),C("circle",{fill:"white",cx:13.5,cy:13.5,r:5.5},R),this._offset=o.P.convert(d&&d.offset||[0,-14])}this._element.hasAttribute("aria-label")||this._element.setAttribute("aria-label","Map marker"),this._element.hasAttribute("role")||this._element.setAttribute("role","img"),this._element.classList.add("mapboxgl-marker"),this._element.addEventListener("dragstart",E=>{E.preventDefault()}),this._element.addEventListener("mousedown",E=>{E.preventDefault()});let y=this._element.classList;for(let E in Zg)y.remove(`mapboxgl-marker-anchor-${E}`);y.add(`mapboxgl-marker-anchor-${this._anchor}`);let w=d&&d.className?d.className.trim().split(/\s+/):[];y.add(...w),this._popup=null}addTo(d){return d===this._map||(this.remove(),this._map=d,d.getCanvasContainer().appendChild(this._element),d.on("move",this._updateMoving),d.on("moveend",this._update),d.on("remove",this._clearFadeTimer),d._addMarker(this),this.setDraggable(this._draggable),this._update(),d.on("click",this._onMapClick)),this}remove(){let d=this._map;return d&&(d.off("click",this._onMapClick),d.off("move",this._updateMoving),d.off("moveend",this._update),d.off("mousedown",this._addDragHandler),d.off("touchstart",this._addDragHandler),d.off("mouseup",this._onUp),d.off("touchend",this._onUp),d.off("mousemove",this._onMove),d.off("touchmove",this._onMove),d.off("remove",this._clearFadeTimer),d._removeMarker(this),this._map=void 0),this._clearFadeTimer(),this._element.remove(),this._popup&&this._popup.remove(),this}getLngLat(){return this._lngLat}setLngLat(d){return this._lngLat=o.bq.convert(d),this._pos=null,this._popup&&this._popup.setLngLat(this._lngLat),this._update(!0),this}getElement(){return this._element}setPopup(d){if(this._popup&&(this._popup.remove(),this._popup=null,this._element.removeAttribute("role"),this._element.removeEventListener("keypress",this._onKeyPress),this._originalTabIndex||this._element.removeAttribute("tabindex")),d){if(!("offset"in d.options)){let w=Math.sqrt(Math.pow(13.5,2)/2);d.options.offset=this._defaultMarker?{top:[0,0],"top-left":[0,0],"top-right":[0,0],bottom:[0,-38.1],"bottom-left":[w,-1*(38.1-13.5+w)],"bottom-right":[-w,-1*(38.1-13.5+w)],left:[13.5,-1*(38.1-13.5)],right:[-13.5,-1*(38.1-13.5)]}:this._offset}this._popup=d,d._marker=this,this._lngLat&&this._popup.setLngLat(this._lngLat),this._element.setAttribute("role","button"),this._originalTabIndex=this._element.getAttribute("tabindex"),this._originalTabIndex||this._element.setAttribute("tabindex","0"),this._element.addEventListener("keypress",this._onKeyPress),this._element.setAttribute("aria-expanded","false")}return this}_onKeyPress(d){let f=d.code,y=d.charCode||d.keyCode;f!=="Space"&&f!=="Enter"&&y!==32&&y!==13||this.togglePopup()}_onMapClick(d){let f=d.originalEvent.target,y=this._element;this._popup&&(f===y||y.contains(f))&&this.togglePopup()}getPopup(){return this._popup}togglePopup(){let d=this._popup;return d?(d.isOpen()?(d.remove(),this._element.setAttribute("aria-expanded","false")):this._map&&(d.addTo(this._map),this._element.setAttribute("aria-expanded","true")),this):this}_behindTerrain(){let d=this._map,f=this._pos;if(!d||!f)return!1;let y=d.unproject(f),w=d.getFreeCameraOptions();if(!w.position)return!1;let E=w.position.toLngLat();return E.distanceTo(y)<.9*E.distanceTo(this._lngLat)}_evaluateOpacity(){let d=this._map;if(!d)return;let f=this._pos;if(!f||f.x<0||f.x>d.transform.width||f.y<0||f.y>d.transform.height)return void this._clearFadeTimer();let y=d.unproject(f),w;d._showingGlobe()&&o.de(d.transform,this._lngLat)?w=0:(w=1-d._queryFogOpacity(y),d.transform._terrainEnabled()&&d.getTerrain()&&this._behindTerrain()&&(w*=this._occludedOpacity)),this._element.style.opacity=`${w}`,this._element.style.pointerEvents=w>0?"auto":"none",this._popup&&this._popup._setOpacity(w),this._fadeTimer=null}_clearFadeTimer(){this._fadeTimer&&(clearTimeout(this._fadeTimer),this._fadeTimer=null)}_updateDOM(){let d=this._pos;if(!d||!this._map)return;let f=this._offset.mult(this._scale);this._element.style.transform=` translate(${d.x}px,${d.y}px) ${Zg[this._anchor]} ${this._calculateXYTransform()} ${this._calculateZTransform()} translate(${f.x}px,${f.y}px) `}_calculateXYTransform(){let d=this._pos,f=this._map,y=this.getPitchAlignment();if(!f||!d||y!=="map")return"";if(!f._showingGlobe()){let B=f.getPitch();return B?`rotateX(${B}deg)`:""}let w=o.bI(o.df(f.transform,this._lngLat)),E=d.sub(o.dg(f.transform)),D=Math.abs(E.x)+Math.abs(E.y);if(D===0)return"";let R=w/D;return`rotateX(${-E.y*R}deg) rotateY(${E.x*R}deg)`}_calculateZTransform(){let d=this._pos,f=this._map;if(!f||!d)return"";let y=0,w=this.getRotationAlignment();if(w==="map")if(f._showingGlobe()){let E=f.project(new o.bq(this._lngLat.lng,this._lngLat.lat+.001)),D=f.project(new o.bq(this._lngLat.lng,this._lngLat.lat-.001)).sub(E);y=o.bI(Math.atan2(D.y,D.x))-90}else y=-f.getBearing();else if(w==="horizon"){let E=o.S(4,6,f.getZoom()),D=o.dg(f.transform);D.y+=E*f.transform.height;let R=d.sub(D),B=o.bI(Math.atan2(R.y,R.x));y=(B>90?B-270:B+90)*(1-E)}return y+=this._rotation,y?`rotateZ(${y}deg)`:""}_update(d){cancelAnimationFrame(this._updateFrameId);let f=this._map;f&&(f.transform.renderWorldCopies&&(this._lngLat=$y(this._lngLat,this._pos,f.transform)),this._pos=f.project(this._lngLat),d===!0?this._updateFrameId=requestAnimationFrame(()=>{this._element&&this._pos&&this._anchor&&(this._pos=this._pos.round(),this._updateDOM())}):this._pos=this._pos.round(),f._requestDomTask(()=>{this._map&&(this._element&&this._pos&&this._anchor&&this._updateDOM(),(f._showingGlobe()||f.getTerrain()||f.getFog())&&!this._fadeTimer&&(this._fadeTimer=setTimeout(this._evaluateOpacity.bind(this),60)))}))}getOffset(){return this._offset}setOffset(d){return this._offset=o.P.convert(d),this._update(),this}addClassName(d){return this._element.classList.add(d),this}removeClassName(d){return this._element.classList.remove(d),this}toggleClassName(d){return this._element.classList.toggle(d)}_onMove(d){let f=this._map;if(!f)return;let y=this._pointerdownPos,w=this._positionDelta;if(y&&w){if(!this._isDragging){let E=this._clickTolerance||f._clickTolerance;if(d.point.dist(y)=this._endTime)return this._end;let f=o.ch((d-this._startTime)/(this._endTime-this._startTime));return this._start*(1-f)+this._end*f}isEasing(d){return d>=this._startTime&&d<=this._endTime}jumpTo(d){this._startTime=-1/0,this._endTime=-1/0,this._start=d,this._end=d}easeTo(d,f,y){this._start=this.getValue(f),this._end=d,this._startTime=f,this._endTime=f+y}}class rM{registerParameter(d,f,y,w,E){}registerButton(d,f,y){}registerBinding(d,f,y,w){}refreshUI(){}}let Qg={"AttributionControl.ToggleAttribution":"Toggle attribution","AttributionControl.MapFeedback":"Map feedback","FullscreenControl.Enter":"Enter fullscreen","FullscreenControl.Exit":"Exit fullscreen","GeolocateControl.FindMyLocation":"Find my location","GeolocateControl.LocationNotAvailable":"Location not available","LogoControl.Title":"Mapbox logo","Map.Title":"Map","NavigationControl.ResetBearing":"Reset bearing to north","NavigationControl.ZoomIn":"Zoom in","NavigationControl.ZoomOut":"Zoom out","ScrollZoomBlocker.CtrlMessage":"Use ctrl + scroll to zoom the map","ScrollZoomBlocker.CmdMessage":"Use \u2318 + scroll to zoom the map","TouchPanBlocker.Message":"Use two fingers to move the map"},Ap={center:[0,0],zoom:0,bearing:0,pitch:0,minZoom:-2,maxZoom:22,minPitch:0,maxPitch:85,interactive:!0,scrollZoom:!0,boxZoom:!0,dragRotate:!0,dragPan:!0,keyboard:!0,doubleClickZoom:!0,touchZoomRotate:!0,touchPitch:!0,cooperativeGestures:!1,performanceMetricsCollection:!0,bearingSnap:7,clickTolerance:3,pitchWithRotate:!0,hash:!1,attributionControl:!0,antialias:!1,failIfMajorPerformanceCaveat:!1,preserveDrawingBuffer:!1,trackResize:!0,renderWorldCopies:!0,refreshExpiredTiles:!0,minTileCacheSize:null,maxTileCacheSize:null,localIdeographFontFamily:"sans-serif",localFontFamily:null,transformRequest:null,accessToken:null,fadeDuration:300,respectPrefersReducedMotion:!0,crossSourceCollisions:!0,collectResourceTiming:!1,testMode:!1},Xg={showCompass:!0,showZoom:!0,visualizePitch:!1};class Zy{constructor(d,f,y=!1){this._clickTolerance=10,this.element=f,this.mouseRotate=new Z1({clickTolerance:d.dragRotate._mouseRotate._clickTolerance}),this.map=d,y&&(this.mousePitch=new $g({clickTolerance:d.dragRotate._mousePitch._clickTolerance})),o.a$(["mousedown","mousemove","mouseup","touchstart","touchmove","touchend","reset"],this),f.addEventListener("mousedown",this.mousedown),f.addEventListener("touchstart",this.touchstart,{passive:!1}),f.addEventListener("touchmove",this.touchmove),f.addEventListener("touchend",this.touchend),f.addEventListener("touchcancel",this.reset)}down(d,f){this.mouseRotate.mousedown(d,f),this.mousePitch&&this.mousePitch.mousedown(d,f),F()}move(d,f){let y=this.map,w=this.mouseRotate.mousemoveWindow(d,f),E=w&&w.bearingDelta;if(E&&y.setBearing(y.getBearing()+E),this.mousePitch){let D=this.mousePitch.mousemoveWindow(d,f),R=D&&D.pitchDelta;R&&y.setPitch(y.getPitch()+R)}}off(){let d=this.element;d.removeEventListener("mousedown",this.mousedown),d.removeEventListener("touchstart",this.touchstart,{passive:!1}),d.removeEventListener("touchmove",this.touchmove),d.removeEventListener("touchend",this.touchend),d.removeEventListener("touchcancel",this.reset),this.offTemp()}offTemp(){L(),window.removeEventListener("mousemove",this.mousemove),window.removeEventListener("mouseup",this.mouseup)}mousedown(d){this.down(o.e({},d,{ctrlKey:!0,preventDefault:()=>d.preventDefault()}),K(this.element,d)),window.addEventListener("mousemove",this.mousemove),window.addEventListener("mouseup",this.mouseup)}mousemove(d){this.move(d,K(this.element,d))}mouseup(d){this.mouseRotate.mouseupWindow(d),this.mousePitch&&this.mousePitch.mouseupWindow(d),this.offTemp()}touchstart(d){d.targetTouches.length!==1?this.reset():(this._startPos=this._lastPos=ee(this.element,d.targetTouches)[0],this.down({type:"mousedown",button:0,ctrlKey:!0,preventDefault:()=>d.preventDefault()},this._startPos))}touchmove(d){d.targetTouches.length!==1?this.reset():(this._lastPos=ee(this.element,d.targetTouches)[0],this.move({preventDefault:()=>d.preventDefault()},this._lastPos))}touchend(d){d.targetTouches.length===0&&this._startPos&&this._lastPos&&this._startPos.dist(this._lastPos)v.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(v.minPitch!=null&&v.maxPitch!=null&&v.minPitch>v.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(v.minPitch!=null&&v.minPitch<0)throw new Error("minPitch must be greater than or equal to 0");if(v.maxPitch!=null&&v.maxPitch>85)throw new Error("maxPitch must be less than or equal to 85");if(v.antialias&&o.dh(window)&&(v.antialias=!1,o.w("Antialiasing is disabled for this WebGL context to avoid browser bug: https://github.com/mapbox/mapbox-gl-js/issues/11609")),super(new R1(v.minZoom,v.maxZoom,v.minPitch,v.maxPitch,v.renderWorldCopies),v),this._repaint=!!v.repaint,this._interactive=v.interactive,this._minTileCacheSize=v.minTileCacheSize,this._maxTileCacheSize=v.maxTileCacheSize,this._failIfMajorPerformanceCaveat=v.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=v.preserveDrawingBuffer,this._antialias=v.antialias,this._trackResize=v.trackResize,this._bearingSnap=v.bearingSnap,this._refreshExpiredTiles=v.refreshExpiredTiles,this._fadeDuration=v.fadeDuration,this._isInitialLoad=!0,this._crossSourceCollisions=v.crossSourceCollisions,this._collectResourceTiming=v.collectResourceTiming,this._language=this._parseLanguage(v.language),this._worldview=v.worldview,this._renderTaskQueue=new ew,this._domRenderTaskQueue=new ew,this._controls=[],this._markers=[],this._popups=[],this._mapId=o.aF(),this._locale=o.e({},Qg,v.locale),this._clickTolerance=v.clickTolerance,this._cooperativeGestures=v.cooperativeGestures,this._performanceMetricsCollection=v.performanceMetricsCollection,this._containerWidth=0,this._containerHeight=0,this._showParseStatus=!0,this._averageElevationLastSampledAt=-1/0,this._averageElevationExaggeration=0,this._averageElevation=new $E(0),this._interactionRange=[1/0,-1/0],this._visibilityHidden=0,this._useExplicitProjection=!1,this._requestManager=new o.di(v.transformRequest,v.accessToken,v.testMode),this._silenceAuthErrors=!!v.testMode,this._contextCreateOptions=v.contextCreateOptions?Ce({},v.contextCreateOptions):{},typeof v.container=="string"){let f=document.getElementById(v.container);if(!f)throw new Error(`Container '${v.container.toString()}' not found.`);this._container=f}else{if(!(v.container instanceof HTMLElement))throw new Error("Invalid type: 'container' must be a String or HTMLElement.");this._container=v.container}if(this._container.childNodes.length>0&&o.w("The map container element should be empty, otherwise the map's interactivity will be negatively impacted. If you want to display a message when WebGL is not supported, use the Mapbox GL Supported plugin instead."),v.maxBounds&&this.setMaxBounds(v.maxBounds),o.a$(["_onWindowOnline","_onWindowResize","_onVisibilityChange","_onMapScroll","_contextLost","_contextRestored"],this),this._setupContainer(),this._tp=v.devtools?new rM(this):new rM,this._tp.registerParameter(this,["Debug"],"showOverdrawInspector"),this._tp.registerParameter(this,["Debug"],"showTileBoundaries"),this._tp.registerParameter(this,["Debug"],"showParseStatus"),this._tp.registerParameter(this,["Debug"],"repaint"),this._tp.registerParameter(this,["Debug"],"showTileAABBs"),this._tp.registerParameter(this,["Debug"],"showPadding"),this._tp.registerParameter(this,["Debug"],"showCollisionBoxes",{noSave:!0}),this._tp.registerParameter(this.transform,["Debug"],"freezeTileCoverage",{noSave:!0},()=>{this._update()}),this._tp.registerParameter(this,["Debug","Wireframe"],"showTerrainWireframe"),this._tp.registerParameter(this,["Debug","Wireframe"],"showLayers2DWireframe"),this._tp.registerParameter(this,["Debug","Wireframe"],"showLayers3DWireframe"),this._setupPainter(),this.painter===void 0)throw new Error("Failed to initialize WebGL.");if(this.on("move",()=>this._update(!1)),this.on("moveend",()=>this._update(!1)),this.on("zoom",()=>this._update(!0)),this._fullscreenchangeEvent="onfullscreenchange"in document?"fullscreenchange":"webkitfullscreenchange",window.addEventListener("online",this._onWindowOnline,!1),window.addEventListener("resize",this._onWindowResize,!1),window.addEventListener("orientationchange",this._onWindowResize,!1),window.addEventListener(this._fullscreenchangeEvent,this._onWindowResize,!1),window.addEventListener("visibilitychange",this._onVisibilityChange,!1),this.handlers=new J1(this,v),this._localFontFamily=v.localFontFamily,this._localIdeographFontFamily=v.localIdeographFontFamily,(v.style||!v.testMode)&&this.setStyle(v.style||o.dd.DEFAULT_STYLE,{config:v.config,localFontFamily:this._localFontFamily,localIdeographFontFamily:this._localIdeographFontFamily}),v.projection&&this.setProjection(v.projection),v.hash&&(this._hash=new kU(typeof v.hash=="string"&&v.hash||void 0).addTo(this)),!this._hash||!this._hash._onHashChange()){d.center==null&&d.zoom==null||(this.transform._unmodified=!1),this.jumpTo({center:v.center,zoom:v.zoom,bearing:v.bearing,pitch:v.pitch});let f=v.bounds;f&&(this.resize(),this.fitBounds(f,o.e({},v.fitBoundsOptions,{duration:0})))}this.resize(),v.attributionControl&&this.addControl(new YE({customAttribution:v.customAttribution})),this._logoControl=new NP,this.addControl(this._logoControl,v.logoPosition),this.on("style.load",()=>{this.transform.unmodified&&this.jumpTo(this.style.stylesheet),this._postStyleLoadEvent()}),this.on("data",f=>{this._update(f.dataType==="style"),this.fire(new o.b(`${f.dataType}data`,f))}),this.on("dataloading",f=>{this.fire(new o.b(`${f.dataType}dataloading`,f))})}_getMapId(){return this._mapId}addControl(v,d){if(d===void 0&&(d=v.getDefaultPosition?v.getDefaultPosition():"top-right"),!v||!v.onAdd)return this.fire(new o.a(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));let f=v.onAdd(this);this._controls.push(v);let y=this._controlPositions[d];return d.indexOf("bottom")!==-1?y.insertBefore(f,y.firstChild):y.appendChild(f),this}removeControl(v){if(!v||!v.onRemove)return this.fire(new o.a(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));let d=this._controls.indexOf(v);return d>-1&&this._controls.splice(d,1),v.onRemove(this),this}hasControl(v){return this._controls.indexOf(v)>-1}getContainer(){return this._container}getCanvasContainer(){return this._canvasContainer}getCanvas(){return this._canvas}resize(v){if(this._updateContainerDimensions(),this._containerWidth===this.transform.width&&this._containerHeight===this.transform.height)return this;this._resizeCanvas(this._containerWidth,this._containerHeight),this.transform.resize(this._containerWidth,this._containerHeight),this.painter.resize(Math.ceil(this._containerWidth),Math.ceil(this._containerHeight));let d=!this._moving;return d&&this.fire(new o.b("movestart",v)).fire(new o.b("move",v)),this.fire(new o.b("resize",v)),d&&this.fire(new o.b("moveend",v)),this}getBounds(){return this.transform.getBounds()}getMaxBounds(){return this.transform.getMaxBounds()||null}setMaxBounds(v){return this.transform.setMaxBounds(o.ag.convert(v)),this._update()}setMinZoom(v){if((v=v??-2)>=-2&&v<=this.transform.maxZoom)return this.transform.minZoom=v,this._update(),this.getZoom()=this.transform.minZoom)return this.transform.maxZoom=v,this._update(),this.getZoom()>v?this.setZoom(v):this.fire(new o.b("zoomstart")).fire(new o.b("zoom")).fire(new o.b("zoomend")),this;throw new Error("maxZoom must be greater than the current minZoom")}getMaxZoom(){return this.transform.maxZoom}setMinPitch(v){if((v=v??0)<0)throw new Error("minPitch must be greater than or equal to 0");if(v>=0&&v<=this.transform.maxPitch)return this.transform.minPitch=v,this._update(),this.getPitch()85)throw new Error("maxPitch must be less than or equal to 85");if(v>=this.transform.minPitch)return this.transform.maxPitch=v,this._update(),this.getPitch()>v?this.setPitch(v):this.fire(new o.b("pitchstart")).fire(new o.b("pitch")).fire(new o.b("pitchend")),this;throw new Error("maxPitch must be greater than or equal to minPitch")}getMaxPitch(){return this.transform.maxPitch}getRenderWorldCopies(){return this.transform.renderWorldCopies}setRenderWorldCopies(v){return this.transform.renderWorldCopies=v,this.transform.renderWorldCopies||this._forceMarkerAndPopupUpdate(!0),this._update()}getLanguage(){return this._language}_parseLanguage(v){return v==="auto"?navigator.language:Array.isArray(v)?v.length===0?void 0:v.map(d=>d==="auto"?navigator.language:d):v}setLanguage(v){let d=this._parseLanguage(v);if(!this.style||d===this._language)return this;this._language=d,this.style.reloadSources();for(let f of this._controls)f._setLanguage&&f._setLanguage(this._language);return this}getWorldview(){return this._worldview}setWorldview(v){return this.style&&v!==this._worldview?(this._worldview=v,this.style.reloadSources(),this):this}getProjection(){return this.transform.mercatorFromTransition?{name:"globe",center:[0,0]}:this.transform.getProjection()}_showingGlobe(){return this.transform.projection.name==="globe"}setProjection(v){return this._lazyInitEmptyStyle(),v?typeof v=="string"&&(v={name:v}):v=null,this._useExplicitProjection=!!v,this._prioritizeAndUpdateProjection(v,this.style.projection)}_updateProjectionTransition(){if(this.getProjection().name!=="globe")return;let v=this.transform,d=v.projection.name,f;d==="globe"&&v.zoom>=o.bA?(v.setMercatorFromTransition(),f=!0):d==="mercator"&&v.zoom=o.bA?this.transform.setMercatorFromTransition():this.transform.setProjection(v),this.style.applyProjectionUpdate(),d&&(this.painter.clearBackgroundTiles(),this.style.clearSources(),this._update(!0),this._forceMarkerAndPopupUpdate(!0)),this}project(v){return this.transform.locationPoint3D(o.bq.convert(v))}unproject(v){return this.transform.pointLocation3D(o.P.convert(v))}isMoving(){return this._moving||this.handlers&&this.handlers.isMoving()||!1}isZooming(){return this._zooming||this.handlers&&this.handlers.isZooming()||!1}isRotating(){return this._rotating||this.handlers&&this.handlers.isRotating()||!1}_isDragging(){return this.handlers&&this.handlers._isDragging()||!1}_createDelegatedListener(v,d,f){if(v==="mouseenter"||v==="mouseover"){let y=!1,w=D=>{let R=d.filter(U=>this.getLayer(U)),B=R.length?this.queryRenderedFeatures(D.point,{layers:R}):[];B.length?y||(y=!0,f.call(this,new ou(v,this,D.originalEvent,{features:B}))):y=!1},E=()=>{y=!1};return{layers:new Set(d),listener:f,delegates:{mousemove:w,mouseout:E}}}if(v==="mouseleave"||v==="mouseout"){let y=!1,w=D=>{let R=d.filter(B=>this.getLayer(B));(R.length?this.queryRenderedFeatures(D.point,{layers:R}):[]).length?y=!0:y&&(y=!1,f.call(this,new ou(v,this,D.originalEvent)))},E=D=>{y&&(y=!1,f.call(this,new ou(v,this,D.originalEvent)))};return{layers:new Set(d),listener:f,delegates:{mousemove:w,mouseout:E}}}{let y=w=>{let E=d.filter(R=>this.getLayer(R)),D=E.length?this.queryRenderedFeatures(w.point,{layers:E}):[];D.length&&(w.features=D,f.call(this,w),delete w.features)};return{layers:new Set(d),listener:f,delegates:{[v]:y}}}}on(v,d,f){if(f===void 0)return super.on(v,d);if(Array.isArray(d)||(d=[d]),d){for(let w of d)if(!this._isValidId(w))return this}let y=this._createDelegatedListener(v,d,f);this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[v]=this._delegatedListeners[v]||[],this._delegatedListeners[v].push(y);for(let w in y.delegates)this.on(w,y.delegates[w]);return this}once(v,d,f){if(f===void 0)return super.once(v,d);if(Array.isArray(d)||(d=[d]),d){for(let w of d)if(!this._isValidId(w))return this}let y=this._createDelegatedListener(v,d,f);for(let w in y.delegates)this.once(w,y.delegates[w]);return this}off(v,d,f){if(f===void 0)return super.off(v,d);d=new Set(Array.isArray(d)?d:[d]);for(let E of d)if(!this._isValidId(E))return this;let y=(E,D)=>{if(E.size!==D.size)return!1;for(let R of E)if(!D.has(R))return!1;return!0},w=this._delegatedListeners?this._delegatedListeners[v]:void 0;return w&&(E=>{for(let D=0;D{f?(o.w(`Unable to perform style diff: ${String(f.message||f.error||f)}. Rebuilding the style from scratch.`),this._updateStyle(v,d)):y&&this._update(!0)},()=>{this._postStyleLoadEvent()}),this):(this._localIdeographFontFamily=d.localIdeographFontFamily,this._localFontFamily=d.localFontFamily,this._updateStyle(v,d))}_getUIString(v){let d=this._locale[v];if(d==null)throw new Error(`Missing UI string '${v}'`);return d}_updateStyle(v,d){if(this.style&&(this.style.setEventedParent(null),this.style._remove(),this.style=void 0),v){let f=o.e({},d);d&&d.config&&(f.initialConfig=d.config,delete f.config),this.style=new sh(this,f).setEventedParent(this,{style:this.style}).load(v)}return this._updateTerrain(),this}_lazyInitEmptyStyle(){this.style||(this.style=new sh(this,{}),this.style.setEventedParent(this,{style:this.style}),this.style.loadEmpty())}getStyle(){if(this.style)return this.style.serialize()}isStyleLoaded(){return this.style?this.style.loaded():(o.w("There is no style added to the map."),!1)}_isValidId(v){return v==null?(this.fire(new o.a(new Error("IDs can't be empty."))),!1):!o.c9(v)||(this.fire(new o.a(new Error(`IDs can't contain special symbols: "${v}".`))),!1)}addSource(v,d){return this._isValidId(v)?(this._lazyInitEmptyStyle(),this.style.addSource(v,d),this._update(!0)):this}isSourceLoaded(v){return!!this._isValidId(v)&&!!this.style&&this.style._isSourceCacheLoaded(v)}areTilesLoaded(){return this.style.areTilesLoaded()}addSourceType(v,d,f){this._lazyInitEmptyStyle(),this.style.addSourceType(v,d,f)}removeSource(v){return this._isValidId(v)?(this.style.removeSource(v),this._updateTerrain(),this._update(!0)):this}getSource(v){return this._isValidId(v)?this.style.getOwnSource(v):null}addImage(v,d,{pixelRatio:f=1,sdf:y=!1,stretchX:w,stretchY:E,content:D}={}){if(this._lazyInitEmptyStyle(),d instanceof HTMLImageElement||ImageBitmap&&d instanceof ImageBitmap){let{width:R,height:B,data:U}=o.f.getImageData(d);this.style.addImage(v,{data:new o.h({width:R,height:B},U),pixelRatio:f,stretchX:w,stretchY:E,content:D,sdf:y,version:0})}else if(d.width===void 0||d.height===void 0)this.fire(new o.a(new Error("Invalid arguments to map.addImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")));else{let{width:R,height:B}=d,U=d;this.style.addImage(v,{data:new o.h({width:R,height:B},new Uint8Array(U.data)),pixelRatio:f,stretchX:w,stretchY:E,content:D,sdf:y,version:0,userImage:U}),U.onAdd&&U.onAdd(this,v)}}updateImage(v,d){this._lazyInitEmptyStyle();let f=this.style.getImage(v);if(!f)return void this.fire(new o.a(new Error("The map has no image with that id. If you are adding a new image use `map.addImage(...)` instead.")));let y=d instanceof HTMLImageElement||ImageBitmap&&d instanceof ImageBitmap?o.f.getImageData(d):d,{width:w,height:E}=y,D=y.data;if(w===void 0||E===void 0)return void this.fire(new o.a(new Error("Invalid arguments to map.updateImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")));if(w!==f.data.width||E!==f.data.height)return void this.fire(new o.a(new Error(`The width and height of the updated image (${w}, ${E}) must be that same as the previous version of the image (${f.data.width}, ${f.data.height})`)));let R=!(d instanceof HTMLImageElement||ImageBitmap&&d instanceof ImageBitmap);f.data.replace(D,R),this.style.updateImage(v,f)}hasImage(v){return v?!!this.style&&!!this.style.getImage(v):(this.fire(new o.a(new Error("Missing required image id"))),!1)}removeImage(v){this.style.removeImage(v)}loadImage(v,d){o.d(this._requestManager.transformRequest(v,o.R.Image),(f,y)=>{d(f,y instanceof HTMLImageElement?o.f.getImageData(y):y)})}listImages(){return this.style.listImages()}addModel(v,d){this._lazyInitEmptyStyle(),this.style.addModel(v,d)}hasModel(v){return v?this.style.hasModel(v):(this.fire(new o.a(new Error("Missing required model id"))),!1)}removeModel(v){this.style.removeModel(v)}listModels(){return this.style.listModels()}addLayer(v,d){return this._isValidId(v.id)?(this._lazyInitEmptyStyle(),this.style.addLayer(v,d),this._update(!0)):this}getSlot(v){let d=this.getLayer(v);return d&&d.slot||null}setSlot(v,d){return this.style.setSlot(v,d),this.style.mergeLayers(),this._update(!0)}addImport(v,d){return this.style.addImport(v,d),this}updateImport(v,d){return typeof d!="string"&&d.id!==v?(this.removeImport(v),this.addImport(d)):(this.style.updateImport(v,d),this._update(!0))}removeImport(v){return this.style.removeImport(v),this}moveImport(v,d){return this.style.moveImport(v,d),this._update(!0)}moveLayer(v,d){return this._isValidId(v)?(this.style.moveLayer(v,d),this._update(!0)):this}removeLayer(v){return this._isValidId(v)?(this.style.removeLayer(v),this._update(!0)):this}getLayer(v){return this._isValidId(v)?this.style.getOwnLayer(v):null}setLayerZoomRange(v,d,f){return this._isValidId(v)?(this.style.setLayerZoomRange(v,d,f),this._update(!0)):this}setFilter(v,d,f={}){return this._isValidId(v)?(this.style.setFilter(v,d,f),this._update(!0)):this}getFilter(v){return this._isValidId(v)?this.style.getFilter(v):null}setPaintProperty(v,d,f,y={}){return this._isValidId(v)?(this.style.setPaintProperty(v,d,f,y),this._update(!0)):this}getPaintProperty(v,d){return this._isValidId(v)?this.style.getPaintProperty(v,d):null}setLayoutProperty(v,d,f,y={}){return this._isValidId(v)?(this.style.setLayoutProperty(v,d,f,y),this._update(!0)):this}getLayoutProperty(v,d){return this._isValidId(v)?this.style.getLayoutProperty(v,d):null}getSchema(v){return this.style.getSchema(v)}setSchema(v,d){return this.style.setSchema(v,d),this._update(!0)}getConfig(v){return this.style.getConfig(v)}setConfig(v,d){return this.style.setConfig(v,d),this._update(!0)}getConfigProperty(v,d){return this.style.getConfigProperty(v,d)}setConfigProperty(v,d,f){return this.style.setConfigProperty(v,d,f),this._update(!0)}setLights(v){if(this._lazyInitEmptyStyle(),v&&v.length===1&&v[0].type==="flat"){let d=v[0];d.properties?this.style.setFlatLight(d.properties,d.id,{}):this.style.setFlatLight({},"flat")}else this.style.setLights(v),this.painter.terrain&&(this.painter.terrain.invalidateRenderCache=!0);return this._update(!0)}getLights(){let v=this.style.getLights()||[];return v.length===0&&v.push({id:this.style.light.id,type:"flat",properties:this.style.getFlatLight()}),v}setLight(v,d={}){return console.log("The `map.setLight` function is deprecated, prefer using `map.setLights` with `flat` light type instead."),this.setLights([{id:"flat",type:"flat",properties:v}])}getLight(){return console.log("The `map.getLight` function is deprecated, prefer using `map.getLights` instead."),this.style.getFlatLight()}setTerrain(v){return this._lazyInitEmptyStyle(),!v&&this.transform.projection.requiresDraping?this.style.setTerrainForDraping():this.style.setTerrain(v),this._averageElevationLastSampledAt=-1/0,this._update(!0)}getTerrain(){return this.style?this.style.getTerrain():null}setFog(v){return this._lazyInitEmptyStyle(),this.style.setFog(v),this._update(!0)}getFog(){return this.style?this.style.getFog():null}setCamera(v){return this.style.setCamera(v),this._triggerCameraUpdate(v)}_triggerCameraUpdate(v){return this._update(this.transform.setOrthographicProjectionAtLowPitch(v["camera-projection"]==="orthographic"))}getCamera(){return this.style.camera}_queryFogOpacity(v){return this.style&&this.style.fog?this.style.fog.getOpacityAtLatLng(o.bq.convert(v),this.transform):0}setFeatureState(v,d){return this._isValidId(v.source)?(this.style.setFeatureState(v,d),this._update()):this}removeFeatureState(v,d){return this._isValidId(v.source)?(this.style.removeFeatureState(v,d),this._update()):this}getFeatureState(v){return this._isValidId(v.source)?this.style.getFeatureState(v):null}_updateContainerDimensions(){if(!this._container)return;let v=this._container.getBoundingClientRect().width||400,d=this._container.getBoundingClientRect().height||300,f,y,w,E=this._container;for(;E&&(!y||!w);){let D=window.getComputedStyle(E).transform;D&&D!=="none"&&(f=D.match(/matrix.*\((.+)\)/)[1].split(", "),f[0]&&f[0]!=="0"&&f[0]!=="1"&&(y=f[0]),f[3]&&f[3]!=="0"&&f[3]!=="1"&&(w=f[3])),E=E.parentElement}this._containerWidth=y?Math.abs(v/y):v,this._containerHeight=w?Math.abs(d/w):d}_detectMissingCSS(){window.getComputedStyle(this._missingCSSCanary).getPropertyValue("background-color")!=="rgb(250, 128, 114)"&&o.w("This page appears to be missing CSS declarations for Mapbox GL JS, which may cause the map to display incorrectly. Please ensure your page includes mapbox-gl.css, as described in https://www.mapbox.com/mapbox-gl-js/api/.")}_setupContainer(){let v=this._container;v.classList.add("mapboxgl-map"),(this._missingCSSCanary=x("div","mapboxgl-canary",v)).style.visibility="hidden",this._detectMissingCSS();let d=this._canvasContainer=x("div","mapboxgl-canvas-container",v);this._canvas=x("canvas","mapboxgl-canvas",d),this._interactive&&(d.classList.add("mapboxgl-interactive"),this._canvas.setAttribute("tabindex","0")),this._canvas.addEventListener("webglcontextlost",this._contextLost,!1),this._canvas.addEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.setAttribute("aria-label",this._getUIString("Map.Title")),this._canvas.setAttribute("role","region"),this._updateContainerDimensions(),this._resizeCanvas(this._containerWidth,this._containerHeight);let f=this._controlContainer=x("div","mapboxgl-control-container",v),y=this._controlPositions={};["top-left","top-right","bottom-left","bottom-right"].forEach(w=>{y[w]=x("div",`mapboxgl-ctrl-${w}`,f)}),this._container.addEventListener("scroll",this._onMapScroll,!1)}_resizeCanvas(v,d){let f=o.f.devicePixelRatio||1;this._canvas.width=f*Math.ceil(v),this._canvas.height=f*Math.ceil(d),this._canvas.style.width=`${v}px`,this._canvas.style.height=`${d}px`}_addMarker(v){this._markers.push(v)}_removeMarker(v){let d=this._markers.indexOf(v);d!==-1&&this._markers.splice(d,1)}_addPopup(v){this._popups.push(v)}_removePopup(v){let d=this._popups.indexOf(v);d!==-1&&this._popups.splice(d,1)}_setupPainter(){let v=o.e({},c.webGLContextAttributes,{failIfMajorPerformanceCaveat:this._failIfMajorPerformanceCaveat,preserveDrawingBuffer:this._preserveDrawingBuffer,antialias:this._antialias||!1}),d=this._canvas.getContext("webgl2",v);d?(o.dj(d,!0),this.painter=new EP(d,this._contextCreateOptions,this.transform,this._tp),this.on("data",f=>{f.dataType==="source"&&this.painter.setTileLoadedFlag(!0)}),o.dk.testSupport(d)):this.fire(new o.a(new Error("Failed to initialize WebGL")))}_contextLost(v){v.preventDefault(),this._frame&&(this._frame.cancel(),this._frame=null),this.fire(new o.b("webglcontextlost",{originalEvent:v}))}_contextRestored(v){this._setupPainter(),this.resize(),this._update(),this.fire(new o.b("webglcontextrestored",{originalEvent:v}))}_onMapScroll(v){if(v.target===this._container)return this._container.scrollTop=0,this._container.scrollLeft=0,!1}loaded(){return!this._styleDirty&&!this._sourcesDirty&&!!this.style&&this.style.loaded()}_update(v){return this.style?(this._styleDirty=this._styleDirty||v,this._sourcesDirty=!0,this.triggerRepaint(),this):this}_requestRenderFrame(v){return this._update(),this._renderTaskQueue.add(v)}_cancelRenderFrame(v){this._renderTaskQueue.remove(v)}_requestDomTask(v){!this.loaded()||this.loaded()&&!this.isMoving()?v():this._domRenderTaskQueue.add(v)}_render(v){let d;this.fire(new o.b("renderstart"));let f=this.painter.context.extTimerQuery,y=o.f.now(),w=this.painter.context.gl;if(this.listens("gpu-timing-frame")&&(d=w.createQuery(),w.beginQuery(f.TIME_ELAPSED_EXT,d)),this.painter.context.setDirty(),this.painter.setBaseState(),(this.isMoving()||this.isRotating()||this.isZooming())&&(this._interactionRange[0]=Math.min(this._interactionRange[0],performance.now()),this._interactionRange[1]=Math.max(this._interactionRange[1],performance.now())),this._renderTaskQueue.run(v),this._domRenderTaskQueue.run(v),this._removed)return;this._updateProjectionTransition();let E=this._isInitialLoad?0:this._fadeDuration;if(this.style&&this._styleDirty){this._styleDirty=!1;let B=this.transform.zoom,U=this.transform.pitch,G=o.f.now(),$=new o.N(B,{now:G,fadeDuration:E,pitch:U,transition:this.style.transition});this.style.update($)}this.style&&this.style.hasFogTransition()&&(this.style._markersNeedUpdate=!0,this._sourcesDirty=!0);let D=!1;if(this.style&&this._sourcesDirty?(this._sourcesDirty=!1,this.painter._updateFog(this.style),this._updateTerrain(),D=this._updateAverageElevation(y),this.style.updateSources(this.transform),this._forceMarkerAndPopupUpdate()):D=this._updateAverageElevation(y),this._placementDirty=this.style&&this.style._updatePlacement(this.painter.transform,this.showCollisionBoxes,E,this._crossSourceCollisions),this.style&&this.painter.render(this.style,{showTileBoundaries:this.showTileBoundaries,showParseStatus:this.showParseStatus,wireframe:{terrain:this.showTerrainWireframe,layers2D:this.showLayers2DWireframe,layers3D:this.showLayers3DWireframe},showOverdrawInspector:this._showOverdrawInspector,showQueryGeometry:!!this._showQueryGeometry,showTileAABBs:this.showTileAABBs,rotating:this.isRotating(),zooming:this.isZooming(),moving:this.isMoving(),fadeDuration:E,isInitialLoad:this._isInitialLoad,showPadding:this.showPadding,gpuTiming:!!this.listens("gpu-timing-layer"),gpuTimingDeferredRender:!!this.listens("gpu-timing-deferred-render"),speedIndexTiming:this.speedIndexTiming}),this.fire(new o.b("render")),this.loaded()&&!this._loaded&&(this._loaded=!0,this.fire(new o.b("load"))),this.style&&this.style.hasTransitions()&&(this._styleDirty=!0),this.style&&!this._placementDirty&&this.style._releaseSymbolFadeTiles(),d){let B=o.f.now()-y;w.endQuery(f.TIME_ELAPSED_EXT),setTimeout(()=>{let U=w.getQueryParameter(d,w.QUERY_RESULT)/1e6;w.deleteQuery(d),this.fire(new o.b("gpu-timing-frame",{cpuTime:B,gpuTime:U}))},50)}if(this.listens("gpu-timing-layer")){let B=this.painter.collectGpuTimers();setTimeout(()=>{let U=this.painter.queryGpuTimers(B);this.fire(new o.b("gpu-timing-layer",{layerTimes:U}))},50)}if(this.listens("gpu-timing-deferred-render")){let B=this.painter.collectDeferredRenderGpuQueries();setTimeout(()=>{let U=this.painter.queryGpuTimeDeferredRender(B);this.fire(new o.b("gpu-timing-deferred-render",{gpuTime:U}))},50)}let R=this._sourcesDirty||this._styleDirty||this._placementDirty||D;if(R||this._repaint)this.triggerRepaint();else{let B=!this.isMoving()&&this.loaded();if(B&&(D=this._updateAverageElevation(y,!0)),D)this.triggerRepaint();else if(this._triggerFrame(!1),B&&(this.fire(new o.b("idle")),this._isInitialLoad=!1,this.speedIndexTiming)){let U=this._calculateSpeedIndex();this.fire(new o.b("speedindexcompleted",{speedIndex:U})),this.speedIndexTiming=!1}}!this._loaded||this._fullyLoaded||R||(this._fullyLoaded=!0,this._performanceMetricsCollection&&o.dl(this._requestManager._customAccessToken,{width:this.painter.width,height:this.painter.height,interactionRange:this._interactionRange,visibilityHidden:this._visibilityHidden,terrainEnabled:!!this.painter.style.getTerrain(),fogEnabled:!!this.painter.style.getFog(),projection:this.getProjection().name,zoom:this.transform.zoom,renderer:this.painter.context.renderer,vendor:this.painter.context.vendor}),this._authenticate())}_forceMarkerAndPopupUpdate(v){for(let d of this._markers)v&&!this.getRenderWorldCopies()&&(d._lngLat=d._lngLat.wrap()),d._update();for(let d of this._popups)!v||this.getRenderWorldCopies()||d._trackPointer||(d._lngLat=d._lngLat.wrap()),d._update()}_updateAverageElevation(v,d=!1){let f=w=>(this.transform.averageElevation=w,this._update(!1),!0);if(!this.painter.averageElevationNeedsEasing())return this.transform.averageElevation!==0&&f(0);let y=this.transform.elevation&&this.transform.elevation.exaggeration()!==this._averageElevationExaggeration;if(y||(d||v-this._averageElevationLastSampledAt>500)&&!this._averageElevation.isEasing(v)){let w=this.transform.averageElevation,E=this.transform.sampleAverageElevation();this.transform.elevation&&(this._averageElevationExaggeration=this.transform.elevation.exaggeration()),isNaN(E)?E=0:this._averageElevationLastSampledAt=v;let D=Math.abs(w-E);if(D>1){if(this._isInitialLoad||y)return this._averageElevation.jumpTo(E),f(E);this._averageElevation.easeTo(E,v,300)}else if(D>1e-4)return this._averageElevation.jumpTo(E),f(E)}return!!this._averageElevation.isEasing(v)&&f(this._averageElevation.getValue(v))}_authenticate(){o.dm(this._getMapId(),this._requestManager._skuToken,this._requestManager._customAccessToken,v=>{if(v&&(v.message===o.dn||v.status===401)){let d=this.painter.context.gl;o.dj(d,!1),this._logoControl instanceof NP&&this._logoControl._updateLogo(),d&&d.clear(d.DEPTH_BUFFER_BIT|d.COLOR_BUFFER_BIT|d.STENCIL_BUFFER_BIT),this._silenceAuthErrors||this.fire(new o.a(new Error("A valid Mapbox access token is required to use Mapbox GL JS. To create an account or a new access token, visit https://account.mapbox.com/")))}}),o.dp(this._getMapId(),this._requestManager._skuToken,this._requestManager._customAccessToken,()=>{})}_postStyleLoadEvent(){this.style.globalId&&o.dq(this._requestManager._customAccessToken,{map:this,skuToken:this._requestManager._skuToken,style:this.style.globalId,importedStyles:this.style.getImportGlobalIds()})}_updateTerrain(){let v=this._isDragging();this.painter.updateTerrain(this.style,v)}_calculateSpeedIndex(){let v=this.painter.canvasCopy(),d=this.painter.getCanvasCopiesAndTimestamps();d.timeStamps.push(performance.now());let f=this.painter.context.gl,y=f.createFramebuffer();function w(E){f.framebufferTexture2D(f.FRAMEBUFFER,f.COLOR_ATTACHMENT0,f.TEXTURE_2D,E,0);let D=new Uint8Array(f.drawingBufferWidth*f.drawingBufferHeight*4);return f.readPixels(0,0,f.drawingBufferWidth,f.drawingBufferHeight,f.RGBA,f.UNSIGNED_BYTE,D),D}return f.bindFramebuffer(f.FRAMEBUFFER,y),this._canvasPixelComparison(w(v),d.canvasCopies.map(w),d.timeStamps)}_canvasPixelComparison(v,d,f){let y=f[1]-f[0],w=v.length/4;for(let E=0;E{let f=!!this._renderNextFrame;this._frame=null,this._renderNextFrame=null,f&&this._render(d)}))}_preloadTiles(v){let d=this.style?this.style.getSourceCaches():[];return o.b4(d,(f,y)=>f._preloadTiles(v,y),()=>{this.triggerRepaint()}),this}_onWindowOnline(){this._update()}_onWindowResize(v){this._trackResize&&this.resize({originalEvent:v})._update()}_onVisibilityChange(){document.visibilityState==="hidden"&&this._visibilityHidden++}get showTileBoundaries(){return!!this._showTileBoundaries}set showTileBoundaries(v){this._showTileBoundaries!==v&&(this._showTileBoundaries=v,this._tp.refreshUI(),this._update())}get showParseStatus(){return!!this._showParseStatus}set showParseStatus(v){this._showParseStatus!==v&&(this._showParseStatus=v,this._tp.refreshUI(),this._update())}get showTerrainWireframe(){return!!this._showTerrainWireframe}set showTerrainWireframe(v){this._showTerrainWireframe!==v&&(this._showTerrainWireframe=v,this._tp.refreshUI(),this._update())}get showLayers2DWireframe(){return!!this._showLayers2DWireframe}set showLayers2DWireframe(v){this._showLayers2DWireframe!==v&&(this._showLayers2DWireframe=v,this._tp.refreshUI(),this._update())}get showLayers3DWireframe(){return!!this._showLayers3DWireframe}set showLayers3DWireframe(v){this._showLayers3DWireframe!==v&&(this._showLayers3DWireframe=v,this._tp.refreshUI(),this._update())}get speedIndexTiming(){return!!this._speedIndexTiming}set speedIndexTiming(v){this._speedIndexTiming!==v&&(this._speedIndexTiming=v,this._update())}get showPadding(){return!!this._showPadding}set showPadding(v){this._showPadding!==v&&(this._showPadding=v,this._tp.refreshUI(),this._update())}get showCollisionBoxes(){return!!this._showCollisionBoxes}set showCollisionBoxes(v){this._showCollisionBoxes!==v&&(this._showCollisionBoxes=v,this._tp.refreshUI(),v?this.style._generateCollisionBoxes():this._update())}get showOverdrawInspector(){return!!this._showOverdrawInspector}set showOverdrawInspector(v){this._showOverdrawInspector!==v&&(this._showOverdrawInspector=v,this._tp.refreshUI(),this._update())}get repaint(){return!!this._repaint}set repaint(v){this._repaint!==v&&(this._repaint=v,this._tp.refreshUI(),this.triggerRepaint())}get vertices(){return!!this._vertices}set vertices(v){this._vertices=v,this._update()}get showTileAABBs(){return!!this._showTileAABBs}set showTileAABBs(v){this._showTileAABBs!==v&&(this._showTileAABBs=v,this._tp.refreshUI(),v&&this._update())}_setCacheLimits(v,d){o.dv(v,d)}get version(){return o.du}},NavigationControl:class{constructor(v){this.options=o.e({},Xg,v),this._container=x("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._container.addEventListener("contextmenu",d=>d.preventDefault()),this.options.showZoom&&(o.a$(["_setButtonTitle","_updateZoomButtons"],this),this._zoomInButton=this._createButton("mapboxgl-ctrl-zoom-in",d=>{this._map&&this._map.zoomIn({},{originalEvent:d})}),x("span","mapboxgl-ctrl-icon",this._zoomInButton).setAttribute("aria-hidden","true"),this._zoomOutButton=this._createButton("mapboxgl-ctrl-zoom-out",d=>{this._map&&this._map.zoomOut({},{originalEvent:d})}),x("span","mapboxgl-ctrl-icon",this._zoomOutButton).setAttribute("aria-hidden","true")),this.options.showCompass&&(o.a$(["_rotateCompassArrow"],this),this._compass=this._createButton("mapboxgl-ctrl-compass",d=>{let f=this._map;f&&(this.options.visualizePitch?f.resetNorthPitch({},{originalEvent:d}):f.resetNorth({},{originalEvent:d}))}),this._compassIcon=x("span","mapboxgl-ctrl-icon",this._compass),this._compassIcon.setAttribute("aria-hidden","true"))}_updateZoomButtons(){let v=this._map;if(!v)return;let d=v.getZoom(),f=d===v.getMaxZoom(),y=d===v.getMinZoom();this._zoomInButton.disabled=f,this._zoomOutButton.disabled=y,this._zoomInButton.setAttribute("aria-disabled",f.toString()),this._zoomOutButton.setAttribute("aria-disabled",y.toString())}_rotateCompassArrow(){let v=this._map;if(!v)return;let d=this.options.visualizePitch?`scale(${1/Math.pow(Math.cos(v.transform.pitch*(Math.PI/180)),.5)}) rotateX(${v.transform.pitch}deg) rotateZ(${v.transform.angle*(180/Math.PI)}deg)`:`rotate(${v.transform.angle*(180/Math.PI)}deg)`;v._requestDomTask(()=>{this._compassIcon&&(this._compassIcon.style.transform=d)})}onAdd(v){return this._map=v,this.options.showZoom&&(this._setButtonTitle(this._zoomInButton,"ZoomIn"),this._setButtonTitle(this._zoomOutButton,"ZoomOut"),v.on("zoom",this._updateZoomButtons),this._updateZoomButtons()),this.options.showCompass&&(this._setButtonTitle(this._compass,"ResetBearing"),this.options.visualizePitch&&v.on("pitch",this._rotateCompassArrow),v.on("rotate",this._rotateCompassArrow),this._rotateCompassArrow(),this._handler=new Zy(v,this._compass,this.options.visualizePitch)),this._container}onRemove(){let v=this._map;v&&(this._container.remove(),this.options.showZoom&&v.off("zoom",this._updateZoomButtons),this.options.showCompass&&(this.options.visualizePitch&&v.off("pitch",this._rotateCompassArrow),v.off("rotate",this._rotateCompassArrow),this._handler&&this._handler.off(),this._handler=void 0),this._map=void 0)}_createButton(v,d){let f=x("button",v,this._container);return f.type="button",f.addEventListener("click",d),f}_setButtonTitle(v,d){if(!this._map)return;let f=this._map._getUIString(`NavigationControl.${d}`);v.setAttribute("aria-label",f),v.firstElementChild&&v.firstElementChild.setAttribute("title",f)}},GeolocateControl:class extends o.E{constructor(v){super();let d=navigator.geolocation;this.options=o.e({geolocation:d},An,v),o.a$(["_onSuccess","_onError","_onZoom","_finish","_setupUI","_updateCamera","_updateMarker","_updateMarkerRotation","_onDeviceOrientation"],this),this._updateMarkerRotationThrottled=Kk(this._updateMarkerRotation,20),this._numberOfWatches=0}onAdd(v){return this._map=v,this._container=x("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkGeolocationSupport(this._setupUI),this._container}onRemove(){this._geolocationWatchID!==void 0&&(this.options.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),this._container.remove(),this._map.off("zoom",this._onZoom),this._map=void 0,this._numberOfWatches=0,this._noTimeout=!1}_checkGeolocationSupport(v){let d=(f=!!this.options.geolocation)=>{this._supportsGeolocation=f,v(f)};this._supportsGeolocation!==void 0?v(this._supportsGeolocation):navigator.permissions!==void 0?navigator.permissions.query({name:"geolocation"}).then(f=>d(f.state!=="denied")).catch(()=>d()):d()}_isOutOfMapMaxBounds(v){let d=this._map.getMaxBounds(),f=v.coords;return!!d&&(f.longituded.getEast()||f.latituded.getNorth())}_setErrorState(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting")}}_onSuccess(v){if(this._map){if(this._isOutOfMapMaxBounds(v))return this._setErrorState(),this.fire(new o.b("outofmaxbounds",v)),this._updateMarker(),void this._finish();if(this.options.trackUserLocation)switch(this._lastKnownPosition=v,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background")}this.options.showUserLocation&&this._watchState!=="OFF"&&this._updateMarker(v),this.options.trackUserLocation&&this._watchState!=="ACTIVE_LOCK"||this._updateCamera(v),this.options.showUserLocation&&this._userLocationDotMarker.removeClassName("mapboxgl-user-location-dot-stale"),this.fire(new o.b("geolocate",v)),this._finish()}}_updateCamera(v){let d=new o.bq(v.coords.longitude,v.coords.latitude),f=v.coords.accuracy,y=this._map.getBearing(),w=o.e({bearing:y},this.options.fitBoundsOptions);this._map.fitBounds(d.toBounds(f),w,{geolocateSource:!0})}_updateMarker(v){if(v){let d=new o.bq(v.coords.longitude,v.coords.latitude);this._accuracyCircleMarker.setLngLat(d).addTo(this._map),this._userLocationDotMarker.setLngLat(d).addTo(this._map),this._accuracy=v.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()}_updateCircleRadius(){let v=this._map.transform,d=o.bo(1,v._center.lat)*v.worldSize,f=Math.ceil(2*this._accuracy*d);this._circleElement.style.width=`${f}px`,this._circleElement.style.height=`${f}px`}_onZoom(){this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}_updateMarkerRotation(){this._userLocationDotMarker&&typeof this._heading=="number"?(this._userLocationDotMarker.setRotation(this._heading),this._userLocationDotMarker.addClassName("mapboxgl-user-location-show-heading")):(this._userLocationDotMarker.removeClassName("mapboxgl-user-location-show-heading"),this._userLocationDotMarker.setRotation(0))}_onError(v){if(this._map){if(this.options.trackUserLocation)if(v.code===1){this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;let d=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.setAttribute("aria-label",d),this._geolocateButton.firstElementChild&&this._geolocateButton.firstElementChild.setAttribute("title",d),this._geolocationWatchID!==void 0&&this._clearWatch()}else{if(v.code===3&&this._noTimeout)return;this._setErrorState()}this._watchState!=="OFF"&&this.options.showUserLocation&&this._userLocationDotMarker.addClassName("mapboxgl-user-location-dot-stale"),this.fire(new o.b("error",v)),this._finish()}}_finish(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0}_setupUI(v){if(this._map!==void 0){if(this._container.addEventListener("contextmenu",d=>d.preventDefault()),this._geolocateButton=x("button","mapboxgl-ctrl-geolocate",this._container),x("span","mapboxgl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden","true"),this._geolocateButton.type="button",v===!1){o.w("Geolocation support is not available so the GeolocateControl will be disabled.");let d=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.setAttribute("aria-label",d),this._geolocateButton.firstElementChild&&this._geolocateButton.firstElementChild.setAttribute("title",d)}else{let d=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.setAttribute("aria-label",d),this._geolocateButton.firstElementChild&&this._geolocateButton.firstElementChild.setAttribute("title",d)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=x("div","mapboxgl-user-location"),this._dotElement.appendChild(x("div","mapboxgl-user-location-dot")),this._dotElement.appendChild(x("div","mapboxgl-user-location-heading")),this._userLocationDotMarker=new Ky({element:this._dotElement,rotationAlignment:"map",pitchAlignment:"map"}),this._circleElement=x("div","mapboxgl-user-location-accuracy-circle"),this._accuracyCircleMarker=new Ky({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onZoom)),this._geolocateButton.addEventListener("click",this.trigger.bind(this)),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",d=>{d.geolocateSource||this._watchState!=="ACTIVE_LOCK"||d.originalEvent&&d.originalEvent.type==="resize"||(this._watchState="BACKGROUND",this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this.fire(new o.b("trackuserlocationend")))})}}_onDeviceOrientation(v){this._userLocationDotMarker&&(v.webkitCompassHeading?this._heading=v.webkitCompassHeading:v.absolute===!0&&(this._heading=-1*v.alpha),this._updateMarkerRotationThrottled())}trigger(){if(!this._setup)return o.w("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new o.b("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":this._numberOfWatches--,this._noTimeout=!1,this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this.fire(new o.b("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new o.b("trackuserlocationstart"))}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"BACKGROUND":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break;case"BACKGROUND_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error")}if(this._watchState==="OFF"&&this._geolocationWatchID!==void 0)this._clearWatch();else if(this._geolocationWatchID===void 0){let v;this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),this._numberOfWatches++,this._numberOfWatches>1?(v={maximumAge:6e5,timeout:0},this._noTimeout=!0):(v=this.options.positionOptions,this._noTimeout=!1),this._geolocationWatchID=this.options.geolocation.watchPosition(this._onSuccess,this._onError,v),this.options.showUserHeading&&this._addDeviceOrientationListener()}}else this.options.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0}_addDeviceOrientationListener(){let v=()=>{"ondeviceorientationabsolute"in window?window.addEventListener("deviceorientationabsolute",this._onDeviceOrientation):window.addEventListener("deviceorientation",this._onDeviceOrientation)};typeof DeviceMotionEvent<"u"&&typeof DeviceMotionEvent.requestPermission=="function"?DeviceOrientationEvent.requestPermission().then(d=>{d==="granted"&&v()}).catch(console.error):v()}_clearWatch(){this.options.geolocation.clearWatch(this._geolocationWatchID),window.removeEventListener("deviceorientation",this._onDeviceOrientation),window.removeEventListener("deviceorientationabsolute",this._onDeviceOrientation),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)}},AttributionControl:YE,ScaleControl:class{constructor(v){this.options=o.e({},oM,v),this._isNumberFormatSupported=function(){try{return new Intl.NumberFormat("en",{style:"unit",unitDisplay:"short",unit:"meter"}),!0}catch{return!1}}(),o.a$(["_update","_setScale","setUnit"],this)}getDefaultPosition(){return"bottom-left"}_update(){let v=this.options.maxWidth||100,d=this._map,f=d._containerHeight/2,y=d._containerWidth/2-v/2,w=d.unproject([y,f]),E=d.unproject([y+v,f]),D=w.distanceTo(E);if(this.options.unit==="imperial"){let R=3.2808*D;R>5280?this._setScale(v,R/5280,"mile"):this._setScale(v,R,"foot")}else this.options.unit==="nautical"?this._setScale(v,D/1852,"nautical-mile"):D>=1e3?this._setScale(v,D/1e3,"kilometer"):this._setScale(v,D,"meter")}_setScale(v,d,f){this._map._requestDomTask(()=>{let y=function(E){let D=Math.pow(10,`${Math.floor(E)}`.length-1),R=E/D;return R=R>=10?10:R>=5?5:R>=3?3:R>=2?2:R>=1?1:function(B){let U=Math.pow(10,Math.ceil(-Math.log(B)/Math.LN10));return Math.round(B*U)/U}(R),D*R}(d),w=y/d;this._container.innerHTML=this._isNumberFormatSupported&&f!=="nautical-mile"?new Intl.NumberFormat(this._language,{style:"unit",unitDisplay:"short",unit:f}).format(y):`${y} ${Pv[f]}`,this._container.style.width=v*w+"px"})}onAdd(v){return this._map=v,this._language=v.getLanguage(),this._container=x("div","mapboxgl-ctrl mapboxgl-ctrl-scale",v.getContainer()),this._container.dir="auto",this._map.on("move",this._update),this._update(),this._container}onRemove(){this._container.remove(),this._map.off("move",this._update),this._map=void 0}_setLanguage(v){this._language=v,this._update()}setUnit(v){this.options.unit=v,this._update()}},FullscreenControl:class{constructor(v){this._fullscreen=!1,v&&v.container&&(v.container instanceof HTMLElement?this._container=v.container:o.w("Full screen control 'container' must be a DOM element.")),o.a$(["_onClickFullscreen","_changeIcon"],this),"onfullscreenchange"in document?this._fullscreenchange="fullscreenchange":"onwebkitfullscreenchange"in document&&(this._fullscreenchange="webkitfullscreenchange")}onAdd(v){return this._map=v,this._container||(this._container=this._map.getContainer()),this._controlContainer=x("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display="none",o.w("This device does not support fullscreen mode.")),this._controlContainer}onRemove(){this._controlContainer.remove(),this._map=null,document.removeEventListener(this._fullscreenchange,this._changeIcon)}_checkFullscreenSupport(){return!(!document.fullscreenEnabled&&!document.webkitFullscreenEnabled)}_setupUI(){let v=this._fullscreenButton=x("button","mapboxgl-ctrl-fullscreen",this._controlContainer);x("span","mapboxgl-ctrl-icon",v).setAttribute("aria-hidden","true"),v.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),document.addEventListener(this._fullscreenchange,this._changeIcon)}_updateTitle(){let v=this._getTitle();this._fullscreenButton.setAttribute("aria-label",v),this._fullscreenButton.firstElementChild&&this._fullscreenButton.firstElementChild.setAttribute("title",v)}_getTitle(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")}_isFullscreen(){return this._fullscreen}_changeIcon(){(document.fullscreenElement||document.webkitFullscreenElement)===this._container!==this._fullscreen&&(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("mapboxgl-ctrl-shrink"),this._fullscreenButton.classList.toggle("mapboxgl-ctrl-fullscreen"),this._updateTitle())}_onClickFullscreen(){this._isFullscreen()?document.exitFullscreen?document.exitFullscreen():document.webkitCancelFullScreen&&document.webkitCancelFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.webkitRequestFullscreen&&this._container.webkitRequestFullscreen()}},Popup:class extends o.E{constructor(v){super(),this.options=o.e(Object.create(Wy),v),o.a$(["_update","_onClose","remove","_onMouseEvent"],this),this._classList=new Set(v&&v.className?v.className.trim().split(/\s+/):[])}addTo(v){return this._map&&this.remove(),this._map=v,this.options.closeOnClick&&v.on("preclick",this._onClose),this.options.closeOnMove&&v.on("move",this._onClose),v.on("remove",this.remove),this._update(),v._addPopup(this),this._focusFirstElement(),this._trackPointer?(v.on("mousemove",this._onMouseEvent),v.on("mouseup",this._onMouseEvent),v._canvasContainer.classList.add("mapboxgl-track-pointer")):v.on("move",this._update),this.fire(new o.b("open")),this}isOpen(){return!!this._map}remove(){this._content&&this._content.remove(),this._container&&(this._container.remove(),this._container=void 0);let v=this._map;return v&&(v.off("move",this._update),v.off("move",this._onClose),v.off("preclick",this._onClose),v.off("click",this._onClose),v.off("remove",this.remove),v.off("mousemove",this._onMouseEvent),v.off("mouseup",this._onMouseEvent),v.off("drag",this._onMouseEvent),v._canvasContainer&&v._canvasContainer.classList.remove("mapboxgl-track-pointer"),v._removePopup(this),this._map=void 0),this.fire(new o.b("close")),this}getLngLat(){return this._lngLat}setLngLat(v){this._lngLat=o.bq.convert(v),this._pos=null,this._trackPointer=!1,this._update();let d=this._map;return d&&(d.on("move",this._update),d.off("mousemove",this._onMouseEvent),d._canvasContainer.classList.remove("mapboxgl-track-pointer")),this}trackPointer(){this._trackPointer=!0,this._pos=null,this._update();let v=this._map;return v&&(v.off("move",this._update),v.on("mousemove",this._onMouseEvent),v.on("drag",this._onMouseEvent),v._canvasContainer.classList.add("mapboxgl-track-pointer")),this}getElement(){return this._container}setText(v){return this.setDOMContent(document.createTextNode(v))}setHTML(v){let d=document.createDocumentFragment(),f=document.createElement("body"),y;for(f.innerHTML=v;y=f.firstChild,y;)d.appendChild(y);return this.setDOMContent(d)}getMaxWidth(){return this._container&&this._container.style.maxWidth}setMaxWidth(v){return this.options.maxWidth=v,this._update(),this}setDOMContent(v){let d=this._content;if(d)for(;d.hasChildNodes();)d.firstChild&&d.removeChild(d.firstChild);else d=this._content=x("div","mapboxgl-popup-content",this._container||void 0);if(d.appendChild(v),this.options.closeButton){let f=this._closeButton=x("button","mapboxgl-popup-close-button",d);f.type="button",f.setAttribute("aria-label","Close popup"),f.setAttribute("aria-hidden","true"),f.innerHTML="×",f.addEventListener("click",this._onClose)}return this._update(),this._focusFirstElement(),this}addClassName(v){return this._classList.add(v),this._updateClassList(),this}removeClassName(v){return this._classList.delete(v),this._updateClassList(),this}setOffset(v){return this.options.offset=v,this._update(),this}toggleClassName(v){let d;return this._classList.delete(v)?d=!1:(this._classList.add(v),d=!0),this._updateClassList(),d}_onMouseEvent(v){this._update(v.point)}_getAnchor(v){if(this.options.anchor)return this.options.anchor;let d=this._map,f=this._container,y=this._pos;if(!d||!f||!y)return"bottom";let w=f.offsetWidth,E=f.offsetHeight,D=y.xd.transform.width-w/2;if(y.y+vd.transform.height-E){if(D)return"bottom-left";if(R)return"bottom-right"}return D?"left":R?"right":"bottom"}_updateClassList(){let v=this._container;if(!v)return;let d=[...this._classList];d.push("mapboxgl-popup"),this._anchor&&d.push(`mapboxgl-popup-anchor-${this._anchor}`),this._trackPointer&&d.push("mapboxgl-popup-track-pointer"),v.className=d.join(" ")}_update(v){let d=this._map,f=this._content;if(!d||!this._lngLat&&!this._trackPointer||!f)return;let y=this._container;if(y||(y=this._container=x("div","mapboxgl-popup",d.getContainer()),this._tip=x("div","mapboxgl-popup-tip",y),y.appendChild(f)),this.options.maxWidth&&y.style.maxWidth!==this.options.maxWidth&&(y.style.maxWidth=this.options.maxWidth),d.transform.renderWorldCopies&&!this._trackPointer&&(this._lngLat=$y(this._lngLat,this._pos,d.transform)),!this._trackPointer||v){let w=this._pos=this._trackPointer&&v?v:d.project(this._lngLat),E=tw(this.options.offset),D=this._anchor=this._getAnchor(E.y),R=tw(this.options.offset,D),B=w.add(R).round();d._requestDomTask(()=>{this._container&&D&&(this._container.style.transform=`${Zg[D]} translate(${B.x}px,${B.y}px)`)})}if(!this._marker&&d._showingGlobe()){let w=o.de(d.transform,this._lngLat)?0:1;this._setOpacity(w)}this._updateClassList()}_focusFirstElement(){if(!this.options.focusAfterOpen||!this._container)return;let v=this._container.querySelector(qE);v&&v.focus()}_onClose(){this.remove()}_setOpacity(v){this._container&&(this._container.style.opacity=`${v}`),this._content&&(this._content.style.pointerEvents=v?"auto":"none")}},Marker:Ky,Style:sh,LngLat:o.bq,LngLatBounds:o.ag,Point:o.P,MercatorCoordinate:o.O,FreeCameraOptions:xv,Evented:o.E,config:o.dd,prewarm:o.dy,clearPrewarmedResources:o.dz,get accessToken(){return o.dd.ACCESS_TOKEN},set accessToken(v){o.dd.ACCESS_TOKEN=v},get baseApiUrl(){return o.dd.API_URL},set baseApiUrl(v){o.dd.API_URL=v},get workerCount(){return o.dA.workerCount},set workerCount(v){o.dA.workerCount=v},get maxParallelImageRequests(){return o.dd.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(v){o.dd.MAX_PARALLEL_IMAGE_REQUESTS=v},clearStorage(v){o.dB(v)},get workerUrl(){return o.dC.workerUrl},set workerUrl(v){o.dC.workerUrl=v},get workerClass(){return o.dC.workerClass},set workerClass(v){o.dC.workerClass=v},get workerParams(){return o.dC.workerParams},set workerParams(v){o.dC.workerParams=v},get dracoUrl(){return o.dD()},set dracoUrl(v){o.dE(v)},get meshoptUrl(){return o.dF()},set meshoptUrl(v){o.dG(v)},setNow:o.f.setNow,restoreNow:o.f.restoreNow}});var r=t;return r})});var Qae=un((PTe,FTe)=>{"use strict";(function(n,e){typeof define=="function"&&define.amd?define([],e):typeof PTe<"u"?e():(e(),n.FileSaver={})})(PTe,function(){"use strict";function n(c,h){return typeof h>"u"?h={autoBom:!1}:typeof h!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),h={autoBom:!h}),h.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(c.type)?new Blob(["\uFEFF",c],{type:c.type}):c}function e(c,h,g){var x=new XMLHttpRequest;x.open("GET",c),x.responseType="blob",x.onload=function(){s(x.response,h,g)},x.onerror=function(){console.error("could not download file")},x.send()}function t(c){var h=new XMLHttpRequest;h.open("HEAD",c,!1);try{h.send()}catch{}return 200<=h.status&&299>=h.status}function i(c){try{c.dispatchEvent(new MouseEvent("click"))}catch{var h=document.createEvent("MouseEvents");h.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),c.dispatchEvent(h)}}var r=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof global=="object"&&global.global===global?global:void 0,o=r.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),s=r.saveAs||(typeof window!="object"||window!==r?function(){}:"download"in HTMLAnchorElement.prototype&&!o?function(c,h,g){var x=r.URL||r.webkitURL,C=document.createElement("a");h=h||c.name||"download",C.download=h,C.rel="noopener",typeof c=="string"?(C.href=c,C.origin===location.origin?i(C):t(C.href)?e(c,h,g):i(C,C.target="_blank")):(C.href=x.createObjectURL(c),setTimeout(function(){x.revokeObjectURL(C.href)},4e4),setTimeout(function(){i(C)},0))}:"msSaveOrOpenBlob"in navigator?function(c,h,g){if(h=h||c.name||"download",typeof c!="string")navigator.msSaveOrOpenBlob(n(c,g),h);else if(t(c))e(c,h,g);else{var x=document.createElement("a");x.href=c,x.target="_blank",setTimeout(function(){i(x)})}}:function(c,h,g,x){if(x=x||open("","_blank"),x&&(x.document.title=x.document.body.innerText="downloading..."),typeof c=="string")return e(c,h,g);var C=c.type==="application/octet-stream",A=/constructor/i.test(r.HTMLElement)||r.safari,k=/CriOS\/[\d]+/.test(navigator.userAgent);if((k||C&&A||o)&&typeof FileReader<"u"){var O=new FileReader;O.onloadend=function(){var z=O.result;z=k?z:z.replace(/^data:[^;]*;/,"data:attachment/file;"),x?x.location.href=z:location=z,x=null},O.readAsDataURL(c)}else{var F=r.URL||r.webkitURL,L=F.createObjectURL(c);x?x.location=L:location.href=L,x=null,setTimeout(function(){F.revokeObjectURL(L)},4e4)}});r.saveAs=s.saveAs=s,typeof FTe<"u"&&(FTe.exports=s)})});var UY=un((EZn,AQe)=>{"use strict";AQe.exports=bGt;var yGt=Object.prototype.hasOwnProperty;function bGt(){for(var n={},e=0;e{"use strict";var xGt=Object.prototype.toString;DQe.exports=function(n){var e;return xGt.call(n)==="[object Object]"&&(e=Object.getPrototypeOf(n),e===null||e===Object.getPrototypeOf({}))}});var FQe=un((TZn,PQe)=>{"use strict";var wGt=kQe(),CGt=UY(),MQe="value",TMe=` `,rc={};rc.assert=function(n,e){return e=e||{},function(t){var i=OD(n,t);if(i){var r=AMe(i,e);throw e.apiName&&(r=e.apiName+": "+r),new Error(r)}}};rc.shape=function(e){var t=TGt(e);return function(r){var o=OD(rc.plainObject,r);if(o)return o;for(var s,c,h=[],g=0;go.length?s:o})}};rc.equal=function(e){return function(i){if(i!==e)return JSON.stringify(e)}};rc.oneOf=function(){var e=Array.isArray(arguments[0])?arguments[0]:Array.prototype.slice.call(arguments),t=e.map(function(i){return rc.equal(i)});return rc.oneOfType.apply(this,t)};rc.range=function(e){var t=e[0],i=e[1];return function(o){var s=OD(rc.number,o);if(s||oi)return"number between "+t+" & "+i+" (inclusive)"}};rc.any=function(){};rc.boolean=function(e){if(typeof e!="boolean")return"boolean"};rc.number=function(e){if(typeof e!="number")return"number"};rc.plainArray=function(e){if(!Array.isArray(e))return"array"};rc.plainObject=function(e){if(!wGt(e))return"object"};rc.string=function(e){if(typeof e!="string")return"string"};rc.func=function(e){if(typeof e!="function")return"function"};function OD(n,e){if(!(e==null&&!n.hasOwnProperty("__required"))){var t=n(e);if(t)return Array.isArray(t)?t:[t]}}function AMe(n,e){var t=n.length,i=n[t-1],r=n.slice(0,t-1);return r.length===0&&(r=[MQe]),e=CGt(e,{path:r}),typeof i=="function"?i(e):RQe(e,EGt(i))}function SGt(n){return n.length<2?n[0]:n.length===2?n.join(" or "):n.slice(0,-1).join(", ")+", or "+n.slice(-1)}function EGt(n){return"must be "+IGt(n)+"."}function IGt(n){return/^an? /.test(n)?n:/^[aeiou]/i.test(n)?"an "+n:/^[a-z]/i.test(n)?"a "+n:n}function RQe(n,e){var t=NQe(n.path),i=n.path.join(".")+" "+e,r=t?"Item at position ":"";return r+i}function NQe(n){return typeof n[n.length-1]=="number"||typeof n[0]=="number"}function TGt(n){return Object.keys(n||{}).map(function(e){return{key:e,value:n[e]}})}rc.validate=OD;rc.processMessage=AMe;PQe.exports=rc});var BQe=un((AZn,LQe)=>{"use strict";var AGt=UY(),M4=FQe();function DGt(n){if(typeof window<"u")return n instanceof global.Blob||n instanceof global.ArrayBuffer?void 0:"Blob or ArrayBuffer";if(!(typeof n=="string"||n.pipe!==void 0))return"Filename or Readable stream"}function kGt(n,e){return M4.assert(M4.strictShape(n),e)}function MGt(n){var e="date";if(typeof n=="boolean")return e;try{var t=new Date(n);if(t.getTime&&isNaN(t.getTime()))return e}catch{return e}}function OGt(n){return M4.tuple(M4.number,M4.number)(n)}LQe.exports=AGt(M4,{file:DGt,date:MGt,coordinates:OGt,assertShape:kGt})});var VQe=un((DZn,zQe)=>{"use strict";function RGt(n,e){var t=function(i,r){return e.indexOf(i)!==-1&&r!==void 0};return typeof e=="function"&&(t=e),Object.keys(n).filter(function(i){return t(i,n[i])}).reduce(function(i,r){return i[r]=n[r],i},{})}zQe.exports=RGt});var jQe=un((kZn,UQe)=>{"use strict";function NGt(n,e){return Object.keys(n).reduce(function(t,i){return t[i]=e(i,n[i]),t},{})}UQe.exports=NGt});var GQe=un((MZn,HQe)=>{"use strict";var PGt=jQe();function FGt(n){return PGt(n,function(e,t){return typeof t=="boolean"?JSON.stringify(t):t})}HQe.exports=FGt});var YQe=un((Gue,jY)=>{"use strict";(function(n){var e=typeof Gue=="object"&&Gue,t=typeof jY=="object"&&jY&&jY.exports==e&&jY,i=typeof global=="object"&&global;(i.global===i||i.window===i)&&(n=i);var r=function(A){this.message=A};r.prototype=new Error,r.prototype.name="InvalidCharacterError";var o=function(A){throw new r(A)},s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=/[\t\n\f\r ]/g,h=function(A){A=String(A).replace(c,"");var k=A.length;k%4==0&&(A=A.replace(/==?$/,""),k=A.length),(k%4==1||/[^+a-zA-Z0-9/]/.test(A))&&o("Invalid character: the string to be decoded is not correctly encoded.");for(var O=0,F,L,z="",j=-1;++j>(-2*O&6)));return z},g=function(A){A=String(A),/[^\0-\xFF]/.test(A)&&o("The string to be encoded contains characters outside of the Latin1 range.");for(var k=A.length%3,O="",F=-1,L,z,j,K,ee,ne=A.length-k;++F>18&63)+s.charAt(ee>>12&63)+s.charAt(ee>>6&63)+s.charAt(ee&63);return k==2?(L=A.charCodeAt(F)<<8,z=A.charCodeAt(++F),ee=L+z,O+=s.charAt(ee>>10)+s.charAt(ee>>4&63)+s.charAt(ee<<2&63)+"="):k==1&&(ee=A.charCodeAt(F),O+=s.charAt(ee>>2)+s.charAt(ee<<4&63)+"=="),O},x={encode:g,decode:h,version:"0.1.0"};if(typeof define=="function"&&typeof define.amd=="object"&&define.amd)define(function(){return x});else if(e&&!e.nodeType)if(t)t.exports=x;else for(var C in x)x.hasOwnProperty(C)&&(e[C]=x[C]);else n.base64=x})(Gue)});var kMe=un((OZn,qQe)=>{"use strict";var LGt=YQe(),DMe={};function BGt(n){if(DMe[n])return DMe[n];var e=n.split("."),t=e[0],i=e[1];if(!i)throw new Error("Invalid token");var r=zGt(i),o={usage:t,user:r.u};return wN(r,"a")&&(o.authorization=r.a),wN(r,"exp")&&(o.expires=r.exp*1e3),wN(r,"iat")&&(o.created=r.iat*1e3),wN(r,"scopes")&&(o.scopes=r.scopes),wN(r,"client")&&(o.client=r.client),wN(r,"ll")&&(o.lastLogin=r.ll),wN(r,"iu")&&(o.impersonator=r.iu),DMe[n]=o,o}function zGt(n){try{return JSON.parse(LGt.decode(n))}catch{throw new Error("Invalid token")}}function wN(n,e){return Object.prototype.hasOwnProperty.call(n,e)}qQe.exports=BGt});var KQe=un((RZn,MMe)=>{"use strict";var VGt=Object.prototype.hasOwnProperty,ff="~";function HY(){}Object.create&&(HY.prototype=Object.create(null),new HY().__proto__||(ff=!1));function UGt(n,e,t){this.fn=n,this.context=e,this.once=t||!1}function $Qe(n,e,t,i,r){if(typeof t!="function")throw new TypeError("The listener must be a function");var o=new UGt(t,i||n,r),s=ff?ff+e:e;return n._events[s]?n._events[s].fn?n._events[s]=[n._events[s],o]:n._events[s].push(o):(n._events[s]=o,n._eventsCount++),n}function Yue(n,e){--n._eventsCount===0?n._events=new HY:delete n._events[e]}function fp(){this._events=new HY,this._eventsCount=0}fp.prototype.eventNames=function(){var e=[],t,i;if(this._eventsCount===0)return e;for(i in t=this._events)VGt.call(t,i)&&e.push(ff?i.slice(1):i);return Object.getOwnPropertySymbols?e.concat(Object.getOwnPropertySymbols(t)):e};fp.prototype.listeners=function(e){var t=ff?ff+e:e,i=this._events[t];if(!i)return[];if(i.fn)return[i.fn];for(var r=0,o=i.length,s=new Array(o);r{"use strict";function jGt(n){return n.map(encodeURIComponent).join(",")}function WQe(n){return Array.isArray(n)?jGt(n):encodeURIComponent(String(n))}function ZQe(n,e,t){if(t===!1||t===null)return n;var i=/\?/.test(n)?"&":"?",r=encodeURIComponent(e);return t!==void 0&&t!==""&&t!==!0&&(r+="="+WQe(t)),""+n+i+r}function HGt(n,e){if(!e)return n;var t=n;return Object.keys(e).forEach(function(i){var r=e[i];r!==void 0&&(Array.isArray(r)&&(r=r.filter(function(o){return o!=null}).join(",")),t=ZQe(t,i,r))}),t}function GGt(n,e){if(!e||n.slice(0,4)==="http")return n;var t=n[0]==="/"?"":"/";return""+e.replace(/\/$/,"")+t+n}function YGt(n,e){return e?n.replace(/\/:([a-zA-Z0-9]+)/g,function(t,i){var r=e[i];if(r===void 0)throw new Error("Unspecified route parameter "+i);var o=WQe(r);return"/"+o}):n}QQe.exports={appendQueryObject:HGt,appendQueryParam:ZQe,prependOrigin:GGt,interpolateRouteParams:YGt}});var GY=un((PZn,JQe)=>{"use strict";JQe.exports={API_ORIGIN:"https://api.mapbox.com",EVENT_PROGRESS_DOWNLOAD:"downloadProgress",EVENT_PROGRESS_UPLOAD:"uploadProgress",EVENT_ERROR:"error",EVENT_RESPONSE:"response",ERROR_HTTP:"HttpError",ERROR_REQUEST_ABORTED:"RequestAbortedError"}});var iXe=un((FZn,tXe)=>{"use strict";var qGt=kMe(),OMe=UY(),$Gt=KQe(),que=XQe(),eXe=GY(),KGt=1;function RD(n,e){if(!n)throw new Error("MapiRequest requires a client");if(!e||!e.path||!e.method)throw new Error("MapiRequest requires an options object with path and method properties");var t={};e.body&&(t["content-type"]="application/json");var i=OMe(t,e.headers),r=Object.keys(i).reduce(function(o,s){return o[s.toLowerCase()]=i[s],o},{});this.id=KGt++,this._options=e,this.emitter=new $Gt,this.client=n,this.response=null,this.error=null,this.sent=!1,this.aborted=!1,this.path=e.path,this.method=e.method,this.origin=e.origin||n.origin,this.query=e.query||{},this.params=e.params||{},this.body=e.body||null,this.file=e.file||null,this.encoding=e.encoding||"utf8",this.sendFileAs=e.sendFileAs||null,this.headers=r}RD.prototype.url=function(e){var t=que.prependOrigin(this.path,this.origin);t=que.appendQueryObject(t,this.query);var i=this.params,r=e??this.client.accessToken;if(r){t=que.appendQueryParam(t,"access_token",r);var o=qGt(r).user;i=OMe({ownerId:o},i)}return t=que.interpolateRouteParams(t,i),t};RD.prototype.send=function(){var e=this;if(e.sent)throw new Error("This request has already been sent. Check the response and error properties. Create a new request with clone().");return e.sent=!0,e.client.sendRequest(e).then(function(t){return e.response=t,e.emitter.emit(eXe.EVENT_RESPONSE,t),t},function(t){throw e.error=t,e.emitter.emit(eXe.EVENT_ERROR,t),t})};RD.prototype.abort=function(){this._nextPageRequest&&(this._nextPageRequest.abort(),delete this._nextPageRequest),!(this.response||this.error||this.aborted)&&(this.aborted=!0,this.client.abortRequest(this))};RD.prototype.eachPage=function(e){var t=this;function i(s){function c(){delete t._nextPageRequest;var h=s.nextPage();h&&(t._nextPageRequest=h,o(h))}e(null,s,c)}function r(s){e(s,null,function(){})}function o(s){s.send().then(i,r)}o(this)};RD.prototype.clone=function(){return this._extend()};RD.prototype._extend=function(e){var t=OMe(this._options,e);return new RD(this.client,t)};tXe.exports=RD});var RMe=un((LZn,rXe)=>{"use strict";var WGt=kMe(),ZGt=iXe(),QGt=GY();function nXe(n){if(!n||!n.accessToken)throw new Error("Cannot create a client without an access token");WGt(n.accessToken),this.accessToken=n.accessToken,this.origin=n.origin||QGt.API_ORIGIN}nXe.prototype.createRequest=function(e){return new ZGt(this,e)};rXe.exports=nXe});var sXe=un((BZn,oXe)=>{"use strict";function XGt(n){var e=n.match(/\s*(.+)\s*=\s*"?([^"]+)"?/);return e?{key:e[1],value:e[2]}:null}function JGt(n){var e=n.match(/]*)>(.*)/);if(!e)return null;var t=e[1],i=e[2].split(";"),r=null,o=i.reduce(function(s,c){var h=XGt(c);return h?h.key==="rel"?(r||(r=h.value),s):(s[h.key]=h.value,s):s},{});return r?{url:t,rel:r,params:o}:null}function e9t(n){return n?n.split(/,\s*{"use strict";var t9t=sXe();function NMe(n,e){this.request=n,this.headers=e.headers,this.rawBody=e.body,this.statusCode=e.statusCode;try{this.body=JSON.parse(e.body||"{}")}catch{this.body=e.body}this.links=t9t(this.headers.link)}NMe.prototype.hasNextPage=function(){return!!this.links.next};NMe.prototype.nextPage=function(){return this.hasNextPage()?this.request._extend({path:this.links.next.url}):null};aXe.exports=NMe});var dXe=un((VZn,uXe)=>{"use strict";var cXe=GY();function i9t(n){var e=n.type||cXe.ERROR_HTTP,t;if(n.body)try{t=JSON.parse(n.body)}catch{t=n.body}else t=null;var i=n.message||null;i||(typeof t=="string"?i=t:t&&typeof t.message=="string"?i=t.message:e===cXe.ERROR_REQUEST_ABORTED&&(i="Request aborted")),this.message=i,this.type=e,this.statusCode=n.statusCode||null,this.request=n.request,this.body=t}uXe.exports=i9t});var pXe=un((UZn,hXe)=>{"use strict";function n9t(n){var e=n.indexOf(":"),t=n.substring(0,e).trim().toLowerCase(),i=n.substring(e+1).trim();return{name:t,value:i}}function r9t(n){var e={};return n&&n.trim().split(/[\r|\n]+/).forEach(function(t){var i=n9t(t);e[i.name]=i.value}),e}hXe.exports=r9t});var yXe=un((jZn,vXe)=>{"use strict";var o9t=lXe(),fXe=dXe(),PMe=GY(),s9t=pXe(),$ue={};function a9t(n){var e=$ue[n.id];e&&(e.abort(),delete $ue[n.id])}function l9t(n,e){return new o9t(n,{body:e.response,headers:s9t(e.getAllResponseHeaders()),statusCode:e.status})}function mXe(n){var e=n.total,t=n.loaded,i=100*t/e;return{total:e,transferred:t,percent:i}}function gXe(n,e){return new Promise(function(t,i){e.onprogress=function(s){n.emitter.emit(PMe.EVENT_PROGRESS_DOWNLOAD,mXe(s))};var r=n.file;r&&(e.upload.onprogress=function(s){n.emitter.emit(PMe.EVENT_PROGRESS_UPLOAD,mXe(s))}),e.onerror=function(s){i(s)},e.onabort=function(){var s=new fXe({request:n,type:PMe.ERROR_REQUEST_ABORTED});i(s)},e.onload=function(){if(delete $ue[n.id],e.status<200||e.status>=400){var s=new fXe({request:n,body:e.response,statusCode:e.status});i(s);return}t(e)};var o=n.body;typeof o=="string"?e.send(o):o?e.send(JSON.stringify(o)):r?e.send(r):e.send(),$ue[n.id]=e}).then(function(t){return l9t(n,t)})}function _Xe(n,e){var t=n.url(e),i=new window.XMLHttpRequest;return i.open(n.method,t),Object.keys(n.headers).forEach(function(r){i.setRequestHeader(r,n.headers[r])}),i}function c9t(n){return Promise.resolve().then(function(){var e=_Xe(n,n.client.accessToken);return gXe(n,e)})}vXe.exports={browserAbort:a9t,sendRequestXhr:gXe,browserSend:c9t,createRequestXhr:_Xe}});var CXe=un((HZn,wXe)=>{"use strict";var bXe=yXe(),xXe=RMe();function O4(n){xXe.call(this,n)}O4.prototype=Object.create(xXe.prototype);O4.prototype.constructor=O4;O4.prototype.sendRequest=bXe.browserSend;O4.prototype.abortRequest=bXe.browserAbort;function u9t(n){return new O4(n)}wXe.exports=u9t});var EXe=un((GZn,SXe)=>{"use strict";var d9t=RMe(),h9t=CXe();function p9t(n){return function(e){var t;d9t.prototype.isPrototypeOf(e)?t=e:t=h9t(e);var i=Object.create(n);return i.client=t,i}}SXe.exports=p9t});var kXe=un((YZn,DXe)=>{"use strict";var IXe=UY(),pa=BQe(),Kue=VQe(),TXe=GQe(),f9t=EXe(),FMe={},AXe=["country","region","postcode","district","place","locality","neighborhood","address","poi","poi.landmark"];FMe.forwardGeocode=function(n){pa.assertShape({query:pa.required(pa.string),mode:pa.oneOf("mapbox.places","mapbox.places-permanent"),countries:pa.arrayOf(pa.string),proximity:pa.oneOf(pa.coordinates,"ip"),types:pa.arrayOf(pa.oneOf(AXe)),autocomplete:pa.boolean,bbox:pa.arrayOf(pa.number),limit:pa.number,language:pa.arrayOf(pa.string),routing:pa.boolean,fuzzyMatch:pa.boolean,worldview:pa.string})(n),n.mode=n.mode||"mapbox.places";var e=TXe(IXe({country:n.countries},Kue(n,["proximity","types","autocomplete","bbox","limit","language","routing","fuzzyMatch","worldview"])));return this.client.createRequest({method:"GET",path:"/geocoding/v5/:mode/:query.json",params:Kue(n,["mode","query"]),query:e})};FMe.reverseGeocode=function(n){pa.assertShape({query:pa.required(pa.coordinates),mode:pa.oneOf("mapbox.places","mapbox.places-permanent"),countries:pa.arrayOf(pa.string),types:pa.arrayOf(pa.oneOf(AXe)),bbox:pa.arrayOf(pa.number),limit:pa.number,language:pa.arrayOf(pa.string),reverseMode:pa.oneOf("distance","score"),routing:pa.boolean,worldview:pa.string})(n),n.mode=n.mode||"mapbox.places";var e=TXe(IXe({country:n.countries},Kue(n,["country","types","bbox","limit","language","reverseMode","routing","worldview"])));return this.client.createRequest({method:"GET",path:"/geocoding/v5/:mode/:query.json",params:Kue(n,["mode","query"]),query:e})};DXe.exports=f9t(FMe)});var jMe=un((VMe,UMe)=>{"use strict";(function(n,e){typeof VMe=="object"&&typeof UMe<"u"?UMe.exports=e():typeof define=="function"&&define.amd?define(e):(n=n||self).RBush=e()})(VMe,function(){"use strict";function n(L,z,j,K,ee){(function ne(X,q,fe,Se,pe){for(;Se>fe;){if(Se-fe>600){var Me=Se-fe+1,ie=q-fe+1,Re=Math.log(Me),Ue=.5*Math.exp(2*Re/3),Ee=.5*Math.sqrt(Re*Ue*(Me-Ue)/Me)*(ie-Me/2<0?-1:1),We=Math.max(fe,Math.floor(q-ie*Ue/Me+Ee)),Ie=Math.min(Se,Math.floor(q+(Me-ie)*Ue/Me+Ee));ne(X,q,We,Ie,pe)}var Be=X[q],Ve=fe,$e=Se;for(e(X,fe,q),pe(X[Se],Be)>0&&e(X,fe,Se);Ve<$e;){for(e(X,Ve,$e),Ve++,$e--;pe(X[Ve],Be)<0;)Ve++;for(;pe(X[$e],Be)>0;)$e--}pe(X[fe],Be)===0?e(X,fe,$e):e(X,++$e,Se),$e<=q&&(fe=$e+1),q<=$e&&(Se=$e-1)}})(L,z,j||0,K||L.length-1,ee||t)}function e(L,z,j){var K=L[z];L[z]=L[j],L[j]=K}function t(L,z){return Lz?1:0}var i=function(L){L===void 0&&(L=9),this._maxEntries=Math.max(4,L),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()};function r(L,z,j){if(!j)return z.indexOf(L);for(var K=0;K=L.minX&&z.maxY>=L.minY}function O(L){return{children:L,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function F(L,z,j,K,ee){for(var ne=[z,j];ne.length;)if(!((j=ne.pop())-(z=ne.pop())<=K)){var X=z+Math.ceil((j-z)/K/2)*K;n(L,X,z,j,ee),ne.push(z,X,X,j)}}return i.prototype.all=function(){return this._all(this.data,[])},i.prototype.search=function(L){var z=this.data,j=[];if(!k(L,z))return j;for(var K=this.toBBox,ee=[];z;){for(var ne=0;ne=0&&ee[z].children.length>this._maxEntries;)this._split(ee,z),z--;this._adjustParentBBoxes(K,ee,z)},i.prototype._split=function(L,z){var j=L[z],K=j.children.length,ee=this._minEntries;this._chooseSplitAxis(j,ee,K);var ne=this._chooseSplitIndex(j,ee,K),X=O(j.children.splice(ne,j.children.length-ne));X.height=j.height,X.leaf=j.leaf,o(j,this.toBBox),o(X,this.toBBox),z?L[z-1].children.push(X):this._splitRoot(j,X)},i.prototype._splitRoot=function(L,z){this.data=O([L,z]),this.data.height=L.height+1,this.data.leaf=!1,o(this.data,this.toBBox)},i.prototype._chooseSplitIndex=function(L,z,j){for(var K,ee,ne,X,q,fe,Se,pe=1/0,Me=1/0,ie=z;ie<=j-z;ie++){var Re=s(L,0,ie,this.toBBox),Ue=s(L,ie,j,this.toBBox),Ee=(ee=Re,ne=Ue,X=void 0,q=void 0,fe=void 0,Se=void 0,X=Math.max(ee.minX,ne.minX),q=Math.max(ee.minY,ne.minY),fe=Math.min(ee.maxX,ne.maxX),Se=Math.min(ee.maxY,ne.maxY),Math.max(0,fe-X)*Math.max(0,Se-q)),We=x(Re)+x(Ue);Ee=z;pe--){var Me=L.children[pe];c(X,L.leaf?ee(Me):Me),q+=C(X)}return q},i.prototype._adjustParentBBoxes=function(L,z,j){for(var K=j;K>=0;K--)c(z[K],L)},i.prototype._condense=function(L){for(var z=L.length-1,j=void 0;z>=0;z--)L[z].children.length===0?z>0?(j=L[z-1].children).splice(j.indexOf(L[z]),1):this.clear():o(L[z],this.toBBox)},i})});var NXe={};u_(NXe,{default:()=>HMe});function w9t(n,e){return ne?1:0}var HMe,PXe=nht(()=>{"use strict";HMe=class{constructor(e=[],t=w9t){if(this.data=e,this.length=this.data.length,this.compare=t,this.length>0)for(let i=(this.length>>1)-1;i>=0;i--)this._down(i)}push(e){this.data.push(e),this.length++,this._up(this.length-1)}pop(){if(this.length===0)return;let e=this.data[0],t=this.data.pop();return this.length--,this.length>0&&(this.data[0]=t,this._down(0)),e}peek(){return this.data[0]}_up(e){let{data:t,compare:i}=this,r=t[e];for(;e>0;){let o=e-1>>1,s=t[o];if(i(r,s)>=0)break;t[e]=s,e=o}t[e]=r}_down(e){let{data:t,compare:i}=this,r=this.length>>1,o=t[e];for(;e=0)break;t[e]=c,e=s}t[e]=o}}});var LXe=un((Cer,FXe)=>{"use strict";FXe.exports=function(e,t,i,r){var o=e[0],s=e[1],c=!1;i===void 0&&(i=0),r===void 0&&(r=t.length);for(var h=(r-i)/2,g=0,x=h-1;gs!=O>s&&o<(k-C)*(s-A)/(O-A)+C;F&&(c=!c)}return c}});var zXe=un((Ser,BXe)=>{"use strict";BXe.exports=function(e,t,i,r){var o=e[0],s=e[1],c=!1;i===void 0&&(i=0),r===void 0&&(r=t.length);for(var h=r-i,g=0,x=h-1;gs!=O>s&&o<(k-C)*(s-A)/(O-A)+C;F&&(c=!c)}return c}});var jXe=un((Eer,Wue)=>{"use strict";var VXe=LXe(),UXe=zXe();Wue.exports=function(e,t,i,r){return t.length>0&&Array.isArray(t[0])?UXe(e,t,i,r):VXe(e,t,i,r)};Wue.exports.nested=UXe;Wue.exports.flat=VXe});var GXe=un((Zue,HXe)=>{"use strict";(function(n,e){typeof Zue=="object"&&typeof HXe<"u"?e(Zue):typeof define=="function"&&define.amd?define(["exports"],e):e((n=n||self).predicates={})})(Zue,function(n){"use strict";let t=33306690738754706e-32;function i(k,O,F,L,z){let j,K,ee,ne,X=O[0],q=L[0],fe=0,Se=0;q>X==q>-X?(j=X,X=O[++fe]):(j=q,q=L[++Se]);let pe=0;if(feX==q>-X?(ee=j-((K=X+j)-X),X=O[++fe]):(ee=j-((K=q+j)-q),q=L[++Se]),j=K,ee!==0&&(z[pe++]=ee);feX==q>-X?(ee=j-((K=j+X)-(ne=K-j))+(X-ne),X=O[++fe]):(ee=j-((K=j+q)-(ne=K-j))+(q-ne),q=L[++Se]),j=K,ee!==0&&(z[pe++]=ee);for(;fe0!=ee>0)return ne;let X=Math.abs(K+ee);return Math.abs(ne)>=o*X?ne:-function(q,fe,Se,pe,Me,ie,Re){let Ue,Ee,We,Ie,Be,Ve,$e,Fe,Xe,ze,et,Pt,Ii,Gt,ji,an,en,ir,ve=q-Me,Qt=Se-Me,Rt=fe-ie,nt=pe-ie;Be=(ji=(Fe=ve-($e=(Ve=134217729*ve)-(Ve-ve)))*(ze=nt-(Xe=(Ve=134217729*nt)-(Ve-nt)))-((Gt=ve*nt)-$e*Xe-Fe*Xe-$e*ze))-(et=ji-(en=(Fe=Rt-($e=(Ve=134217729*Rt)-(Ve-Rt)))*(ze=Qt-(Xe=(Ve=134217729*Qt)-(Ve-Qt)))-((an=Rt*Qt)-$e*Xe-Fe*Xe-$e*ze))),h[0]=ji-(et+Be)+(Be-en),Be=(Ii=Gt-((Pt=Gt+et)-(Be=Pt-Gt))+(et-Be))-(et=Ii-an),h[1]=Ii-(et+Be)+(Be-an),Be=(ir=Pt+et)-Pt,h[2]=Pt-(ir-Be)+(et-Be),h[3]=ir;let xe=function(ge,de){let we=de[0];for(let Je=1;Je=Qe||-xe>=Qe||(Ue=q-(ve+(Be=q-ve))+(Be-Me),We=Se-(Qt+(Be=Se-Qt))+(Be-Me),Ee=fe-(Rt+(Be=fe-Rt))+(Be-ie),Ie=pe-(nt+(Be=pe-nt))+(Be-ie),Ue===0&&Ee===0&&We===0&&Ie===0)||(Qe=c*Re+t*Math.abs(xe),(xe+=ve*Ie+nt*Ue-(Rt*We+Qt*Ee))>=Qe||-xe>=Qe))return xe;Be=(ji=(Fe=Ue-($e=(Ve=134217729*Ue)-(Ve-Ue)))*(ze=nt-(Xe=(Ve=134217729*nt)-(Ve-nt)))-((Gt=Ue*nt)-$e*Xe-Fe*Xe-$e*ze))-(et=ji-(en=(Fe=Ee-($e=(Ve=134217729*Ee)-(Ve-Ee)))*(ze=Qt-(Xe=(Ve=134217729*Qt)-(Ve-Qt)))-((an=Ee*Qt)-$e*Xe-Fe*Xe-$e*ze))),A[0]=ji-(et+Be)+(Be-en),Be=(Ii=Gt-((Pt=Gt+et)-(Be=Pt-Gt))+(et-Be))-(et=Ii-an),A[1]=Ii-(et+Be)+(Be-an),Be=(ir=Pt+et)-Pt,A[2]=Pt-(ir-Be)+(et-Be),A[3]=ir;let Xt=i(4,h,4,A,g);Be=(ji=(Fe=ve-($e=(Ve=134217729*ve)-(Ve-ve)))*(ze=Ie-(Xe=(Ve=134217729*Ie)-(Ve-Ie)))-((Gt=ve*Ie)-$e*Xe-Fe*Xe-$e*ze))-(et=ji-(en=(Fe=Rt-($e=(Ve=134217729*Rt)-(Ve-Rt)))*(ze=We-(Xe=(Ve=134217729*We)-(Ve-We)))-((an=Rt*We)-$e*Xe-Fe*Xe-$e*ze))),A[0]=ji-(et+Be)+(Be-en),Be=(Ii=Gt-((Pt=Gt+et)-(Be=Pt-Gt))+(et-Be))-(et=Ii-an),A[1]=Ii-(et+Be)+(Be-an),Be=(ir=Pt+et)-Pt,A[2]=Pt-(ir-Be)+(et-Be),A[3]=ir;let Ut=i(Xt,g,4,A,x);Be=(ji=(Fe=Ue-($e=(Ve=134217729*Ue)-(Ve-Ue)))*(ze=Ie-(Xe=(Ve=134217729*Ie)-(Ve-Ie)))-((Gt=Ue*Ie)-$e*Xe-Fe*Xe-$e*ze))-(et=ji-(en=(Fe=Ee-($e=(Ve=134217729*Ee)-(Ve-Ee)))*(ze=We-(Xe=(Ve=134217729*We)-(Ve-We)))-((an=Ee*We)-$e*Xe-Fe*Xe-$e*ze))),A[0]=ji-(et+Be)+(Be-en),Be=(Ii=Gt-((Pt=Gt+et)-(Be=Pt-Gt))+(et-Be))-(et=Ii-an),A[1]=Ii-(et+Be)+(Be-an),Be=(ir=Pt+et)-Pt,A[2]=Pt-(ir-Be)+(et-Be),A[3]=ir;let qe=i(Ut,x,4,A,C);return C[qe-1]}(k,O,F,L,z,j,X)},n.orient2dfast=function(k,O,F,L,z,j){return(O-j)*(F-z)-(k-z)*(L-j)},Object.defineProperty(n,"__esModule",{value:!0})})});var ZXe=un((Ier,$Me)=>{"use strict";var YXe=jMe(),Xue=(PXe(),rht(NXe)),C9t=jXe(),S9t=GXe().orient2d;Xue.default&&(Xue=Xue.default);$Me.exports=WXe;$Me.exports.default=WXe;function WXe(n,e,t){e=Math.max(0,e===void 0?2:e),t=t||0;var i=D9t(n),r=new YXe(16);r.toBBox=function(j){return{minX:j[0],minY:j[1],maxX:j[0],maxY:j[1]}},r.compareMinX=function(j,K){return j[0]-K[0]},r.compareMinY=function(j,K){return j[1]-K[1]},r.load(n);for(var o=[],s=0,c;so||c.push({node:x,dist:C})}for(;c.length&&!c.peek().node.children;){var A=c.pop(),k=A.node,O=qMe(k,e,t),F=qMe(k,i,r);if(A.dist=e.minX&&n[0]<=e.maxX&&n[1]>=e.minY&&n[1]<=e.maxY}function $Xe(n,e,t){for(var i=Math.min(n[0],e[0]),r=Math.min(n[1],e[1]),o=Math.max(n[0],e[0]),s=Math.max(n[1],e[1]),c=t.search({minX:i,minY:r,maxX:o,maxY:s}),h=0;h0!=R4(n,e,i)>0&&R4(t,i,n)>0!=R4(t,i,e)>0}function GMe(n){var e=n.p,t=n.next.p;return n.minX=Math.min(e[0],t[0]),n.minY=Math.min(e[1],t[1]),n.maxX=Math.max(e[0],t[0]),n.maxY=Math.max(e[1],t[1]),n}function D9t(n){for(var e=n[0],t=n[0],i=n[0],r=n[0],o=0;oi[0]&&(i=s),s[1]r[1]&&(r=s)}var c=[e,t,i,r],h=c.slice();for(o=0;o1?(i=t[0],r=t[1]):c>0&&(i+=o*c,r+=s*c)}return o=n[0]-i,s=n[1]-r,o*o+s*s}function Que(n,e,t,i,r,o,s,c){var h=t-n,g=i-e,x=s-r,C=c-o,A=n-r,k=e-o,O=h*h+g*g,F=h*x+g*C,L=x*x+C*C,z=h*A+g*k,j=x*A+C*k,K=O*L-F*F,ee,ne,X,q,fe=K,Se=K;K===0?(ne=0,fe=1,q=j,Se=L):(ne=F*j-L*z,q=O*j-F*z,ne<0?(ne=0,q=j,Se=L):ne>fe&&(ne=fe,q=j+F,Se=L)),q<0?(q=0,-z<0?ne=0:-z>O?ne=fe:(ne=-z,fe=O)):q>Se&&(q=Se,-z+F<0?ne=0:-z+F>O?ne=fe:(ne=-z+F,fe=O)),ee=ne===0?0:ne/fe,X=q===0?0:q/Se;var pe=(1-ee)*n+ee*t,Me=(1-ee)*e+ee*i,ie=(1-X)*r+X*s,Re=(1-X)*o+X*c,Ue=ie-pe,Ee=Re-Me;return Ue*Ue+Ee*Ee}function k9t(n,e){return n[0]===e[0]?n[1]-e[1]:n[0]-e[0]}function M9t(n){n.sort(k9t);for(var e=[],t=0;t=2&&R4(e[e.length-2],e[e.length-1],n[t])<=0;)e.pop();e.push(n[t])}for(var i=[],r=n.length-1;r>=0;r--){for(;i.length>=2&&R4(i[i.length-2],i[i.length-1],n[r])<=0;)i.pop();i.push(n[r])}return i.pop(),e.pop(),e.concat(i)}});var XMe=un(Ao=>{"use strict";Object.defineProperty(Ao,"__esModule",{value:!0});Ao.earthRadius=63710088e-1;Ao.factors={centimeters:Ao.earthRadius*100,centimetres:Ao.earthRadius*100,degrees:Ao.earthRadius/111325,feet:Ao.earthRadius*3.28084,inches:Ao.earthRadius*39.37,kilometers:Ao.earthRadius/1e3,kilometres:Ao.earthRadius/1e3,meters:Ao.earthRadius,metres:Ao.earthRadius,miles:Ao.earthRadius/1609.344,millimeters:Ao.earthRadius*1e3,millimetres:Ao.earthRadius*1e3,nauticalmiles:Ao.earthRadius/1852,radians:1,yards:Ao.earthRadius*1.0936};Ao.unitsFactors={centimeters:100,centimetres:100,degrees:1/111325,feet:3.28084,inches:39.37,kilometers:1/1e3,kilometres:1/1e3,meters:1,metres:1,miles:1/1609.344,millimeters:1e3,millimetres:1e3,nauticalmiles:1/1852,radians:1/Ao.earthRadius,yards:1.0936133};Ao.areaFactors={acres:247105e-9,centimeters:1e4,centimetres:1e4,feet:10.763910417,hectares:1e-4,inches:1550.003100006,kilometers:1e-6,kilometres:1e-6,meters:1,metres:1,miles:386e-9,millimeters:1e6,millimetres:1e6,yards:1.195990046};function ND(n,e,t){t===void 0&&(t={});var i={type:"Feature"};return(t.id===0||t.id)&&(i.id=t.id),t.bbox&&(i.bbox=t.bbox),i.properties=e||{},i.geometry=n,i}Ao.feature=ND;function P9t(n,e,t){switch(t===void 0&&(t={}),n){case"Point":return KMe(e).geometry;case"LineString":return ZMe(e).geometry;case"Polygon":return WMe(e).geometry;case"MultiPoint":return JXe(e).geometry;case"MultiLineString":return XXe(e).geometry;case"MultiPolygon":return eJe(e).geometry;default:throw new Error(n+" is invalid")}}Ao.geometry=P9t;function KMe(n,e,t){if(t===void 0&&(t={}),!n)throw new Error("coordinates is required");if(!Array.isArray(n))throw new Error("coordinates must be an Array");if(n.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!Jue(n[0])||!Jue(n[1]))throw new Error("coordinates must contain numbers");var i={type:"Point",coordinates:n};return ND(i,e,t)}Ao.point=KMe;function F9t(n,e,t){return t===void 0&&(t={}),ede(n.map(function(i){return KMe(i,e)}),t)}Ao.points=F9t;function WMe(n,e,t){t===void 0&&(t={});for(var i=0,r=n;i=0))throw new Error("precision must be a positive number");var t=Math.pow(10,e||0);return Math.round(n*t)/t}Ao.round=V9t;function tJe(n,e){e===void 0&&(e="kilometers");var t=Ao.factors[e];if(!t)throw new Error(e+" units is invalid");return n*t}Ao.radiansToLength=tJe;function QMe(n,e){e===void 0&&(e="kilometers");var t=Ao.factors[e];if(!t)throw new Error(e+" units is invalid");return n/t}Ao.lengthToRadians=QMe;function U9t(n,e){return iJe(QMe(n,e))}Ao.lengthToDegrees=U9t;function j9t(n){var e=n%360;return e<0&&(e+=360),e}Ao.bearingToAzimuth=j9t;function iJe(n){var e=n%(2*Math.PI);return e*180/Math.PI}Ao.radiansToDegrees=iJe;function H9t(n){var e=n%360;return e*Math.PI/180}Ao.degreesToRadians=H9t;function G9t(n,e,t){if(e===void 0&&(e="kilometers"),t===void 0&&(t="kilometers"),!(n>=0))throw new Error("length must be a positive number");return tJe(QMe(n,e),t)}Ao.convertLength=G9t;function Y9t(n,e,t){if(e===void 0&&(e="meters"),t===void 0&&(t="kilometers"),!(n>=0))throw new Error("area must be a positive number");var i=Ao.areaFactors[e];if(!i)throw new Error("invalid original units");var r=Ao.areaFactors[t];if(!r)throw new Error("invalid final units");return n/i*r}Ao.convertArea=Y9t;function Jue(n){return!isNaN(n)&&n!==null&&!Array.isArray(n)}Ao.isNumber=Jue;function q9t(n){return!!n&&n.constructor===Object}Ao.isObject=q9t;function $9t(n){if(!n)throw new Error("bbox is required");if(!Array.isArray(n))throw new Error("bbox must be an Array");if(n.length!==4&&n.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");n.forEach(function(e){if(!Jue(e))throw new Error("bbox must only contain numbers")})}Ao.validateBBox=$9t;function K9t(n){if(!n)throw new Error("id is required");if(["string","number"].indexOf(typeof n)===-1)throw new Error("id must be a number or a string")}Ao.validateId=K9t});var aJe=un(Id=>{"use strict";Object.defineProperty(Id,"__esModule",{value:!0});var mp=XMe();function YY(n,e,t){if(n!==null)for(var i,r,o,s,c,h,g,x=0,C=0,A,k=n.type,O=k==="FeatureCollection",F=k==="Feature",L=O?n.features.length:1,z=0;zh||O>g||F>x){c=C,h=i,g=O,x=F,o=0;return}var L=mp.lineString([c,C],t.properties);if(e(L,i,r,F,o)===!1)return!1;o++,c=C})===!1)return!1}}})}function t7t(n,e,t){var i=t,r=!1;return oJe(n,function(o,s,c,h,g){r===!1&&t===void 0?i=o:i=e(i,o,s,c,h,g),r=!0}),i}function sJe(n,e){if(!n)throw new Error("geojson is required");tde(n,function(t,i,r){if(t.geometry!==null){var o=t.geometry.type,s=t.geometry.coordinates;switch(o){case"LineString":if(e(t,i,r,0,0)===!1)return!1;break;case"Polygon":for(var c=0;c{"use strict";var lJe=Object.prototype.toString;cJe.exports=function(e){var t=lJe.call(e),i=t==="[object Arguments]";return i||(i=t!=="[object Array]"&&e!==null&&typeof e=="object"&&typeof e.length=="number"&&e.length>=0&&lJe.call(e.callee)==="[object Function]"),i}});var vJe=un((Qer,_Je)=>{"use strict";var gJe;Object.keys||(qY=Object.prototype.hasOwnProperty,tOe=Object.prototype.toString,uJe=eOe(),iOe=Object.prototype.propertyIsEnumerable,dJe=!iOe.call({toString:null},"toString"),hJe=iOe.call(function(){},"prototype"),$Y=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],ide=function(n){var e=n.constructor;return e&&e.prototype===n},pJe={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},fJe=function(){if(typeof window>"u")return!1;for(var n in window)try{if(!pJe["$"+n]&&qY.call(window,n)&&window[n]!==null&&typeof window[n]=="object")try{ide(window[n])}catch{return!0}}catch{return!0}return!1}(),mJe=function(n){if(typeof window>"u"||!fJe)return ide(n);try{return ide(n)}catch{return!1}},gJe=function(e){var t=e!==null&&typeof e=="object",i=tOe.call(e)==="[object Function]",r=uJe(e),o=t&&tOe.call(e)==="[object String]",s=[];if(!t&&!i&&!r)throw new TypeError("Object.keys called on a non-object");var c=hJe&&i;if(o&&e.length>0&&!qY.call(e,0))for(var h=0;h0)for(var g=0;g{"use strict";var o7t=Array.prototype.slice,s7t=eOe(),yJe=Object.keys,nde=yJe?function(e){return yJe(e)}:vJe(),bJe=Object.keys;nde.shim=function(){if(Object.keys){var e=function(){var t=Object.keys(arguments);return t&&t.length===arguments.length}(1,2);e||(Object.keys=function(i){return s7t(i)?bJe(o7t.call(i)):bJe(i)})}else Object.keys=nde;return Object.keys||nde};xJe.exports=nde});var CJe=un((Jer,wJe)=>{"use strict";wJe.exports=Error});var EJe=un((etr,SJe)=>{"use strict";SJe.exports=EvalError});var TJe=un((ttr,IJe)=>{"use strict";IJe.exports=RangeError});var DJe=un((itr,AJe)=>{"use strict";AJe.exports=ReferenceError});var nOe=un((ntr,kJe)=>{"use strict";kJe.exports=SyntaxError});var gS=un((rtr,MJe)=>{"use strict";MJe.exports=TypeError});var RJe=un((otr,OJe)=>{"use strict";OJe.exports=URIError});var KY=un((str,NJe)=>{"use strict";NJe.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},t=Symbol("test"),i=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(i)!=="[object Symbol]")return!1;var r=42;e[t]=r;for(t in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var o=Object.getOwnPropertySymbols(e);if(o.length!==1||o[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(e,t);if(s.value!==r||s.enumerable!==!0)return!1}return!0}});var ode=un((atr,FJe)=>{"use strict";var PJe=typeof Symbol<"u"&&Symbol,a7t=KY();FJe.exports=function(){return typeof PJe!="function"||typeof Symbol!="function"||typeof PJe("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:a7t()}});var BJe=un((ltr,LJe)=>{"use strict";var rOe={__proto__:null,foo:{}},l7t=Object;LJe.exports=function(){return{__proto__:rOe}.foo===rOe.foo&&!(rOe instanceof l7t)}});var UJe=un((ctr,VJe)=>{"use strict";var c7t="Function.prototype.bind called on incompatible ",u7t=Object.prototype.toString,d7t=Math.max,h7t="[object Function]",zJe=function(e,t){for(var i=[],r=0;r{"use strict";var m7t=UJe();jJe.exports=Function.prototype.bind||m7t});var oOe=un((dtr,HJe)=>{"use strict";var g7t=Function.prototype.call,_7t=Object.prototype.hasOwnProperty,v7t=sde();HJe.exports=v7t.call(g7t,_7t)});var Z0=un((htr,KJe)=>{"use strict";var ca,y7t=CJe(),b7t=EJe(),x7t=TJe(),w7t=DJe(),L4=nOe(),F4=gS(),C7t=RJe(),$Je=Function,sOe=function(n){try{return $Je('"use strict"; return ('+n+").constructor;")()}catch{}},CN=Object.getOwnPropertyDescriptor;if(CN)try{CN({},"")}catch{CN=null}var aOe=function(){throw new F4},S7t=CN?function(){try{return arguments.callee,aOe}catch{try{return CN(arguments,"callee").get}catch{return aOe}}}():aOe,N4=ode()(),E7t=BJe()(),Jd=Object.getPrototypeOf||(E7t?function(n){return n.__proto__}:null),P4={},I7t=typeof Uint8Array>"u"||!Jd?ca:Jd(Uint8Array),SN={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?ca:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?ca:ArrayBuffer,"%ArrayIteratorPrototype%":N4&&Jd?Jd([][Symbol.iterator]()):ca,"%AsyncFromSyncIteratorPrototype%":ca,"%AsyncFunction%":P4,"%AsyncGenerator%":P4,"%AsyncGeneratorFunction%":P4,"%AsyncIteratorPrototype%":P4,"%Atomics%":typeof Atomics>"u"?ca:Atomics,"%BigInt%":typeof BigInt>"u"?ca:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?ca:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?ca:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?ca:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":y7t,"%eval%":eval,"%EvalError%":b7t,"%Float32Array%":typeof Float32Array>"u"?ca:Float32Array,"%Float64Array%":typeof Float64Array>"u"?ca:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?ca:FinalizationRegistry,"%Function%":$Je,"%GeneratorFunction%":P4,"%Int8Array%":typeof Int8Array>"u"?ca:Int8Array,"%Int16Array%":typeof Int16Array>"u"?ca:Int16Array,"%Int32Array%":typeof Int32Array>"u"?ca:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":N4&&Jd?Jd(Jd([][Symbol.iterator]())):ca,"%JSON%":typeof JSON=="object"?JSON:ca,"%Map%":typeof Map>"u"?ca:Map,"%MapIteratorPrototype%":typeof Map>"u"||!N4||!Jd?ca:Jd(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?ca:Promise,"%Proxy%":typeof Proxy>"u"?ca:Proxy,"%RangeError%":x7t,"%ReferenceError%":w7t,"%Reflect%":typeof Reflect>"u"?ca:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?ca:Set,"%SetIteratorPrototype%":typeof Set>"u"||!N4||!Jd?ca:Jd(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?ca:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":N4&&Jd?Jd(""[Symbol.iterator]()):ca,"%Symbol%":N4?Symbol:ca,"%SyntaxError%":L4,"%ThrowTypeError%":S7t,"%TypedArray%":I7t,"%TypeError%":F4,"%Uint8Array%":typeof Uint8Array>"u"?ca:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?ca:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?ca:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?ca:Uint32Array,"%URIError%":C7t,"%WeakMap%":typeof WeakMap>"u"?ca:WeakMap,"%WeakRef%":typeof WeakRef>"u"?ca:WeakRef,"%WeakSet%":typeof WeakSet>"u"?ca:WeakSet};if(Jd)try{null.error}catch(n){GJe=Jd(Jd(n)),SN["%Error.prototype%"]=GJe}var GJe,T7t=function n(e){var t;if(e==="%AsyncFunction%")t=sOe("async function () {}");else if(e==="%GeneratorFunction%")t=sOe("function* () {}");else if(e==="%AsyncGeneratorFunction%")t=sOe("async function* () {}");else if(e==="%AsyncGenerator%"){var i=n("%AsyncGeneratorFunction%");i&&(t=i.prototype)}else if(e==="%AsyncIteratorPrototype%"){var r=n("%AsyncGenerator%");r&&Jd&&(t=Jd(r.prototype))}return SN[e]=t,t},YJe={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},WY=sde(),ade=oOe(),A7t=WY.call(Function.call,Array.prototype.concat),D7t=WY.call(Function.apply,Array.prototype.splice),qJe=WY.call(Function.call,String.prototype.replace),lde=WY.call(Function.call,String.prototype.slice),k7t=WY.call(Function.call,RegExp.prototype.exec),M7t=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,O7t=/\\(\\)?/g,R7t=function(e){var t=lde(e,0,1),i=lde(e,-1);if(t==="%"&&i!=="%")throw new L4("invalid intrinsic syntax, expected closing `%`");if(i==="%"&&t!=="%")throw new L4("invalid intrinsic syntax, expected opening `%`");var r=[];return qJe(e,M7t,function(o,s,c,h){r[r.length]=c?qJe(h,O7t,"$1"):s||o}),r},N7t=function(e,t){var i=e,r;if(ade(YJe,i)&&(r=YJe[i],i="%"+r[0]+"%"),ade(SN,i)){var o=SN[i];if(o===P4&&(o=T7t(i)),typeof o>"u"&&!t)throw new F4("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:i,value:o}}throw new L4("intrinsic "+e+" does not exist!")};KJe.exports=function(e,t){if(typeof e!="string"||e.length===0)throw new F4("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new F4('"allowMissing" argument must be a boolean');if(k7t(/^%?[^%]*%?$/,e)===null)throw new L4("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var i=R7t(e),r=i.length>0?i[0]:"",o=N7t("%"+r+"%",t),s=o.name,c=o.value,h=!1,g=o.alias;g&&(r=g[0],D7t(i,A7t([0,1],g)));for(var x=1,C=!0;x=i.length){var F=CN(c,A);C=!!F,C&&"get"in F&&!("originalValue"in F.get)?c=F.get:c=c[A]}else C=ade(c,A),c=c[A];C&&!h&&(SN[s]=c)}}return c}});var ude=un((ptr,WJe)=>{"use strict";var P7t=Z0(),cde=P7t("%Object.defineProperty%",!0)||!1;if(cde)try{cde({},"a",{value:1})}catch{cde=!1}WJe.exports=cde});var hde=un((ftr,ZJe)=>{"use strict";var F7t=Z0(),dde=F7t("%Object.getOwnPropertyDescriptor%",!0);if(dde)try{dde([],"length")}catch{dde=null}ZJe.exports=dde});var pde=un((mtr,JJe)=>{"use strict";var QJe=ude(),L7t=nOe(),B4=gS(),XJe=hde();JJe.exports=function(e,t,i){if(!e||typeof e!="object"&&typeof e!="function")throw new B4("`obj` must be an object or a function`");if(typeof t!="string"&&typeof t!="symbol")throw new B4("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new B4("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new B4("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new B4("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new B4("`loose`, if provided, must be a boolean");var r=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,s=arguments.length>5?arguments[5]:null,c=arguments.length>6?arguments[6]:!1,h=!!XJe&&XJe(e,t);if(QJe)QJe(e,t,{configurable:s===null&&h?h.configurable:!s,enumerable:r===null&&h?h.enumerable:!r,value:i,writable:o===null&&h?h.writable:!o});else if(c||!r&&!o&&!s)e[t]=i;else throw new L7t("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var fde=un((gtr,tet)=>{"use strict";var lOe=ude(),eet=function(){return!!lOe};eet.hasArrayLengthDefineBug=function(){if(!lOe)return null;try{return lOe([],"length",{value:1}).length!==1}catch{return!0}};tet.exports=eet});var PD=un((_tr,oet)=>{"use strict";var B7t=rde(),z7t=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",V7t=Object.prototype.toString,U7t=Array.prototype.concat,iet=pde(),j7t=function(n){return typeof n=="function"&&V7t.call(n)==="[object Function]"},net=fde()(),H7t=function(n,e,t,i){if(e in n){if(i===!0){if(n[e]===t)return}else if(!j7t(i)||!i())return}net?iet(n,e,t,!0):iet(n,e,t)},ret=function(n,e){var t=arguments.length>2?arguments[2]:{},i=B7t(e);z7t&&(i=U7t.call(i,Object.getOwnPropertySymbols(e)));for(var r=0;r{"use strict";var G7t=Z0(),set=pde(),Y7t=fde()(),aet=hde(),cet=gS(),q7t=G7t("%Math.floor%");uet.exports=function(e,t){if(typeof e!="function")throw new cet("`fn` is not a function");if(typeof t!="number"||t<0||t>4294967295||q7t(t)!==t)throw new cet("`length` must be a positive 32-bit integer");var i=arguments.length>2&&!!arguments[2],r=!0,o=!0;if("length"in e&&aet){var s=aet(e,"length");s&&!s.configurable&&(r=!1),s&&!s.writable&&(o=!1)}return(r||o||!i)&&(Y7t?set(e,"length",t,!0,!0):set(e,"length",t)),e}});var EN=un((ytr,mde)=>{"use strict";var cOe=sde(),gde=Z0(),$7t=det(),K7t=gS(),fet=gde("%Function.prototype.apply%"),met=gde("%Function.prototype.call%"),get=gde("%Reflect.apply%",!0)||cOe.call(met,fet),het=ude(),W7t=gde("%Math.max%");mde.exports=function(e){if(typeof e!="function")throw new K7t("a function is required");var t=get(cOe,met,arguments);return $7t(t,1+W7t(0,e.length-(arguments.length-1)),!0)};var pet=function(){return get(cOe,fet,arguments)};het?het(mde.exports,"apply",{value:pet}):mde.exports.apply=pet});var Tg=un((btr,yet)=>{"use strict";var _et=Z0(),vet=EN(),Z7t=vet(_et("String.prototype.indexOf"));yet.exports=function(e,t){var i=_et(e,!!t);return typeof i=="function"&&Z7t(e,".prototype.")>-1?vet(i):i}});var uOe=un((xtr,Eet)=>{"use strict";var Q7t=rde(),wet=KY()(),Cet=Tg(),bet=Object,X7t=Cet("Array.prototype.push"),xet=Cet("Object.prototype.propertyIsEnumerable"),J7t=wet?Object.getOwnPropertySymbols:null;Eet.exports=function(e,t){if(e==null)throw new TypeError("target must be an object");var i=bet(e);if(arguments.length===1)return i;for(var r=1;r{"use strict";var dOe=uOe(),eYt=function(){if(!Object.assign)return!1;for(var n="abcdefghijklmnopqrst",e=n.split(""),t={},i=0;i{"use strict";var iYt=PD(),nYt=hOe();Tet.exports=function(){var e=nYt();return iYt(Object,{assign:e},{assign:function(){return Object.assign!==e}}),e}});var Oet=un((Str,Met)=>{"use strict";var rYt=PD(),oYt=EN(),sYt=uOe(),Det=hOe(),aYt=Aet(),lYt=oYt.apply(Det()),ket=function(e,t){return lYt(Object,arguments)};rYt(ket,{getPolyfill:Det,implementation:sYt,shim:aYt});Met.exports=ket});var Net=un((Etr,Ret)=>{"use strict";var QY=function(){return typeof(function(){}).name=="string"},ZY=Object.getOwnPropertyDescriptor;if(ZY)try{ZY([],"length")}catch{ZY=null}QY.functionsHaveConfigurableNames=function(){if(!QY()||!ZY)return!1;var e=ZY(function(){},"name");return!!e&&!!e.configurable};var cYt=Function.prototype.bind;QY.boundFunctionsHaveNames=function(){return QY()&&typeof cYt=="function"&&(function(){}).bind().name!==""};Ret.exports=QY});var Let=un((Itr,Fet)=>{"use strict";var Pet=pde(),uYt=fde()(),dYt=Net().functionsHaveConfigurableNames(),hYt=gS();Fet.exports=function(e,t){if(typeof e!="function")throw new hYt("`fn` is not a function");var i=arguments.length>2&&!!arguments[2];return(!i||dYt)&&(uYt?Pet(e,"name",t,!0,!0):Pet(e,"name",t)),e}});var pOe=un((Ttr,Bet)=>{"use strict";var pYt=Let(),fYt=gS(),mYt=Object;Bet.exports=pYt(function(){if(this==null||this!==mYt(this))throw new fYt("RegExp.prototype.flags getter called on non-object");var e="";return this.hasIndices&&(e+="d"),this.global&&(e+="g"),this.ignoreCase&&(e+="i"),this.multiline&&(e+="m"),this.dotAll&&(e+="s"),this.unicode&&(e+="u"),this.unicodeSets&&(e+="v"),this.sticky&&(e+="y"),e},"get flags",!0)});var fOe=un((Atr,zet)=>{"use strict";var gYt=pOe(),_Yt=PD().supportsDescriptors,vYt=Object.getOwnPropertyDescriptor;zet.exports=function(){if(_Yt&&/a/mig.flags==="gim"){var e=vYt(RegExp.prototype,"flags");if(e&&typeof e.get=="function"&&typeof RegExp.prototype.dotAll=="boolean"&&typeof RegExp.prototype.hasIndices=="boolean"){var t="",i={};if(Object.defineProperty(i,"hasIndices",{get:function(){t+="d"}}),Object.defineProperty(i,"sticky",{get:function(){t+="y"}}),t==="dy")return e.get}}return gYt}});var jet=un((Dtr,Uet)=>{"use strict";var yYt=PD().supportsDescriptors,bYt=fOe(),xYt=Object.getOwnPropertyDescriptor,wYt=Object.defineProperty,CYt=TypeError,Vet=Object.getPrototypeOf,SYt=/a/;Uet.exports=function(){if(!yYt||!Vet)throw new CYt("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var e=bYt(),t=Vet(SYt),i=xYt(t,"flags");return(!i||i.get!==e)&&wYt(t,"flags",{configurable:!0,enumerable:!1,get:e}),e}});var qet=un((ktr,Yet)=>{"use strict";var EYt=PD(),IYt=EN(),TYt=pOe(),Het=fOe(),AYt=jet(),Get=IYt(Het());EYt(Get,{getPolyfill:Het,implementation:TYt,shim:AYt});Yet.exports=Get});var FD=un((Mtr,$et)=>{"use strict";var DYt=KY();$et.exports=function(){return DYt()&&!!Symbol.toStringTag}});var gOe=un((Otr,Wet)=>{"use strict";var kYt=FD()(),MYt=Tg(),mOe=MYt("Object.prototype.toString"),_de=function(e){return kYt&&e&&typeof e=="object"&&Symbol.toStringTag in e?!1:mOe(e)==="[object Arguments]"},Ket=function(e){return _de(e)?!0:e!==null&&typeof e=="object"&&typeof e.length=="number"&&e.length>=0&&mOe(e)!=="[object Array]"&&mOe(e.callee)==="[object Function]"},OYt=function(){return _de(arguments)}();_de.isLegacyArguments=Ket;Wet.exports=OYt?_de:Ket});var Zet=un(()=>{"use strict"});var gtt=un((Ptr,mtt)=>{"use strict";var IOe=typeof Map=="function"&&Map.prototype,_Oe=Object.getOwnPropertyDescriptor&&IOe?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,yde=IOe&&_Oe&&typeof _Oe.get=="function"?_Oe.get:null,Qet=IOe&&Map.prototype.forEach,TOe=typeof Set=="function"&&Set.prototype,vOe=Object.getOwnPropertyDescriptor&&TOe?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,bde=TOe&&vOe&&typeof vOe.get=="function"?vOe.get:null,Xet=TOe&&Set.prototype.forEach,RYt=typeof WeakMap=="function"&&WeakMap.prototype,JY=RYt?WeakMap.prototype.has:null,NYt=typeof WeakSet=="function"&&WeakSet.prototype,eq=NYt?WeakSet.prototype.has:null,PYt=typeof WeakRef=="function"&&WeakRef.prototype,Jet=PYt?WeakRef.prototype.deref:null,FYt=Boolean.prototype.valueOf,LYt=Object.prototype.toString,BYt=Function.prototype.toString,zYt=String.prototype.match,AOe=String.prototype.slice,BD=String.prototype.replace,VYt=String.prototype.toUpperCase,ett=String.prototype.toLowerCase,ctt=RegExp.prototype.test,ttt=Array.prototype.concat,jx=Array.prototype.join,UYt=Array.prototype.slice,itt=Math.floor,xOe=typeof BigInt=="function"?BigInt.prototype.valueOf:null,yOe=Object.getOwnPropertySymbols,wOe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,z4=typeof Symbol=="function"&&typeof Symbol.iterator=="object",gp=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===z4||!0)?Symbol.toStringTag:null,utt=Object.prototype.propertyIsEnumerable,ntt=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(n){return n.__proto__}:null);function rtt(n,e){if(n===1/0||n===-1/0||n!==n||n&&n>-1e3&&n<1e3||ctt.call(/e/,e))return e;var t=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof n=="number"){var i=n<0?-itt(-n):itt(n);if(i!==n){var r=String(i),o=AOe.call(e,r.length+1);return BD.call(r,t,"$&_")+"."+BD.call(BD.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return BD.call(e,t,"$&_")}var COe=Zet(),ott=COe.custom,stt=htt(ott)?ott:null;mtt.exports=function n(e,t,i,r){var o=t||{};if(LD(o,"quoteStyle")&&o.quoteStyle!=="single"&&o.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(LD(o,"maxStringLength")&&(typeof o.maxStringLength=="number"?o.maxStringLength<0&&o.maxStringLength!==1/0:o.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=LD(o,"customInspect")?o.customInspect:!0;if(typeof s!="boolean"&&s!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(LD(o,"indent")&&o.indent!==null&&o.indent!==" "&&!(parseInt(o.indent,10)===o.indent&&o.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(LD(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var c=o.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return ftt(e,o);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var h=String(e);return c?rtt(e,h):h}if(typeof e=="bigint"){var g=String(e)+"n";return c?rtt(e,g):g}var x=typeof o.depth>"u"?5:o.depth;if(typeof i>"u"&&(i=0),i>=x&&x>0&&typeof e=="object")return SOe(e)?"[Array]":"[Object]";var C=oqt(o,i);if(typeof r>"u")r=[];else if(ptt(r,e)>=0)return"[Circular]";function A(Re,Ue,Ee){if(Ue&&(r=UYt.call(r),r.push(Ue)),Ee){var We={depth:o.depth};return LD(o,"quoteStyle")&&(We.quoteStyle=o.quoteStyle),n(Re,We,i+1,r)}return n(Re,o,i+1,r)}if(typeof e=="function"&&!att(e)){var k=ZYt(e),O=vde(e,A);return"[Function"+(k?": "+k:" (anonymous)")+"]"+(O.length>0?" { "+jx.call(O,", ")+" }":"")}if(htt(e)){var F=z4?BD.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):wOe.call(e);return typeof e=="object"&&!z4?XY(F):F}if(iqt(e)){for(var L="<"+ett.call(String(e.nodeName)),z=e.attributes||[],j=0;j",L}if(SOe(e)){if(e.length===0)return"[]";var K=vde(e,A);return C&&!rqt(K)?"["+EOe(K,C)+"]":"[ "+jx.call(K,", ")+" ]"}if(GYt(e)){var ee=vde(e,A);return!("cause"in Error.prototype)&&"cause"in e&&!utt.call(e,"cause")?"{ ["+String(e)+"] "+jx.call(ttt.call("[cause]: "+A(e.cause),ee),", ")+" }":ee.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+jx.call(ee,", ")+" }"}if(typeof e=="object"&&s){if(stt&&typeof e[stt]=="function"&&COe)return COe(e,{depth:x-i});if(s!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(QYt(e)){var ne=[];return Qet&&Qet.call(e,function(Re,Ue){ne.push(A(Ue,e,!0)+" => "+A(Re,e))}),ltt("Map",yde.call(e),ne,C)}if(eqt(e)){var X=[];return Xet&&Xet.call(e,function(Re){X.push(A(Re,e))}),ltt("Set",bde.call(e),X,C)}if(XYt(e))return bOe("WeakMap");if(tqt(e))return bOe("WeakSet");if(JYt(e))return bOe("WeakRef");if(qYt(e))return XY(A(Number(e)));if(KYt(e))return XY(A(xOe.call(e)));if($Yt(e))return XY(FYt.call(e));if(YYt(e))return XY(A(String(e)));if(typeof window<"u"&&e===window)return"{ [object Window] }";if(typeof globalThis<"u"&&e===globalThis||typeof global<"u"&&e===global)return"{ [object globalThis] }";if(!HYt(e)&&!att(e)){var q=vde(e,A),fe=ntt?ntt(e)===Object.prototype:e instanceof Object||e.constructor===Object,Se=e instanceof Object?"":"null prototype",pe=!fe&&gp&&Object(e)===e&&gp in e?AOe.call(zD(e),8,-1):Se?"Object":"",Me=fe||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",ie=Me+(pe||Se?"["+jx.call(ttt.call([],pe||[],Se||[]),": ")+"] ":"");return q.length===0?ie+"{}":C?ie+"{"+EOe(q,C)+"}":ie+"{ "+jx.call(q,", ")+" }"}return String(e)};function dtt(n,e,t){var i=(t.quoteStyle||e)==="double"?'"':"'";return i+n+i}function jYt(n){return BD.call(String(n),/"/g,""")}function SOe(n){return zD(n)==="[object Array]"&&(!gp||!(typeof n=="object"&&gp in n))}function HYt(n){return zD(n)==="[object Date]"&&(!gp||!(typeof n=="object"&&gp in n))}function att(n){return zD(n)==="[object RegExp]"&&(!gp||!(typeof n=="object"&&gp in n))}function GYt(n){return zD(n)==="[object Error]"&&(!gp||!(typeof n=="object"&&gp in n))}function YYt(n){return zD(n)==="[object String]"&&(!gp||!(typeof n=="object"&&gp in n))}function qYt(n){return zD(n)==="[object Number]"&&(!gp||!(typeof n=="object"&&gp in n))}function $Yt(n){return zD(n)==="[object Boolean]"&&(!gp||!(typeof n=="object"&&gp in n))}function htt(n){if(z4)return n&&typeof n=="object"&&n instanceof Symbol;if(typeof n=="symbol")return!0;if(!n||typeof n!="object"||!wOe)return!1;try{return wOe.call(n),!0}catch{}return!1}function KYt(n){if(!n||typeof n!="object"||!xOe)return!1;try{return xOe.call(n),!0}catch{}return!1}var WYt=Object.prototype.hasOwnProperty||function(n){return n in this};function LD(n,e){return WYt.call(n,e)}function zD(n){return LYt.call(n)}function ZYt(n){if(n.name)return n.name;var e=zYt.call(BYt.call(n),/^function\s*([\w$]+)/);return e?e[1]:null}function ptt(n,e){if(n.indexOf)return n.indexOf(e);for(var t=0,i=n.length;te.maxStringLength){var t=n.length-e.maxStringLength,i="... "+t+" more character"+(t>1?"s":"");return ftt(AOe.call(n,0,e.maxStringLength),e)+i}var r=BD.call(BD.call(n,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,nqt);return dtt(r,"single",e)}function nqt(n){var e=n.charCodeAt(0),t={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return t?"\\"+t:"\\x"+(e<16?"0":"")+VYt.call(e.toString(16))}function XY(n){return"Object("+n+")"}function bOe(n){return n+" { ? }"}function ltt(n,e,t,i){var r=i?EOe(t,i):jx.call(t,", ");return n+" ("+e+") {"+r+"}"}function rqt(n){for(var e=0;e=0)return!1;return!0}function oqt(n,e){var t;if(n.indent===" ")t=" ";else if(typeof n.indent=="number"&&n.indent>0)t=jx.call(Array(n.indent+1)," ");else return null;return{base:t,prev:jx.call(Array(e+1),t)}}function EOe(n,e){if(n.length===0)return"";var t=` `+e.prev+e.base;return t+jx.call(n,","+t)+` `+e.prev}function vde(n,e){var t=SOe(n),i=[];if(t){i.length=n.length;for(var r=0;r{"use strict";var _tt=Z0(),V4=Tg(),sqt=gtt(),aqt=gS(),xde=_tt("%WeakMap%",!0),wde=_tt("%Map%",!0),lqt=V4("WeakMap.prototype.get",!0),cqt=V4("WeakMap.prototype.set",!0),uqt=V4("WeakMap.prototype.has",!0),dqt=V4("Map.prototype.get",!0),hqt=V4("Map.prototype.set",!0),pqt=V4("Map.prototype.has",!0),DOe=function(n,e){for(var t=n,i;(i=t.next)!==null;t=i)if(i.key===e)return t.next=i.next,i.next=n.next,n.next=i,i},fqt=function(n,e){var t=DOe(n,e);return t&&t.value},mqt=function(n,e,t){var i=DOe(n,e);i?i.value=t:n.next={key:e,next:n.next,value:t}},gqt=function(n,e){return!!DOe(n,e)};vtt.exports=function(){var e,t,i,r={assert:function(o){if(!r.has(o))throw new aqt("Side channel does not contain "+sqt(o))},get:function(o){if(xde&&o&&(typeof o=="object"||typeof o=="function")){if(e)return lqt(e,o)}else if(wde){if(t)return dqt(t,o)}else if(i)return fqt(i,o)},has:function(o){if(xde&&o&&(typeof o=="object"||typeof o=="function")){if(e)return uqt(e,o)}else if(wde){if(t)return pqt(t,o)}else if(i)return gqt(i,o);return!1},set:function(o,s){xde&&o&&(typeof o=="object"||typeof o=="function")?(e||(e=new xde),cqt(e,o,s)):wde?(t||(t=new wde),hqt(t,o,s)):(i||(i={key:{},next:null}),mqt(i,o,s))}};return r}});var btt=un((Ltr,ytt)=>{"use strict";var _qt=oOe(),tq=kOe()(),_S=gS(),MOe={assert:function(n,e){if(!n||typeof n!="object"&&typeof n!="function")throw new _S("`O` is not an object");if(typeof e!="string")throw new _S("`slot` must be a string");if(tq.assert(n),!MOe.has(n,e))throw new _S("`"+e+"` is not present on `O`")},get:function(n,e){if(!n||typeof n!="object"&&typeof n!="function")throw new _S("`O` is not an object");if(typeof e!="string")throw new _S("`slot` must be a string");var t=tq.get(n);return t&&t["$"+e]},has:function(n,e){if(!n||typeof n!="object"&&typeof n!="function")throw new _S("`O` is not an object");if(typeof e!="string")throw new _S("`slot` must be a string");var t=tq.get(n);return!!t&&_qt(t,"$"+e)},set:function(n,e,t){if(!n||typeof n!="object"&&typeof n!="function")throw new _S("`O` is not an object");if(typeof e!="string")throw new _S("`slot` must be a string");var i=tq.get(n);i||(i={},tq.set(n,i)),i["$"+e]=t}};Object.freeze&&Object.freeze(MOe);ytt.exports=MOe});var Ctt=un((Btr,wtt)=>{"use strict";var iq=btt(),vqt=SyntaxError,xtt=typeof StopIteration=="object"?StopIteration:null;wtt.exports=function(e){if(!xtt)throw new vqt("this environment lacks StopIteration");iq.set(e,"[[Done]]",!1);var t={next:function(){var r=iq.get(this,"[[Iterator]]"),o=iq.get(r,"[[Done]]");try{return{done:o,value:o?void 0:r.next()}}catch(s){if(iq.set(r,"[[Done]]",!0),s!==xtt)throw s;return{done:!0,value:void 0}}}};return iq.set(t,"[[Iterator]]",e),t}});var OOe=un((ztr,Stt)=>{"use strict";var yqt={}.toString;Stt.exports=Array.isArray||function(n){return yqt.call(n)=="[object Array]"}});var ROe=un((Vtr,Ett)=>{"use strict";var bqt=String.prototype.valueOf,xqt=function(e){try{return bqt.call(e),!0}catch{return!1}},wqt=Object.prototype.toString,Cqt="[object String]",Sqt=FD()();Ett.exports=function(e){return typeof e=="string"?!0:typeof e!="object"?!1:Sqt?xqt(e):wqt.call(e)===Cqt}});var POe=un((Utr,Att)=>{"use strict";var NOe=typeof Map=="function"&&Map.prototype?Map:null,Eqt=typeof Set=="function"&&Set.prototype?Set:null,Cde;NOe||(Cde=function(e){return!1});var Ttt=NOe?Map.prototype.has:null,Itt=Eqt?Set.prototype.has:null;!Cde&&!Ttt&&(Cde=function(e){return!1});Att.exports=Cde||function(e){if(!e||typeof e!="object")return!1;try{if(Ttt.call(e),Itt)try{Itt.call(e)}catch{return!0}return e instanceof NOe}catch{}return!1}});var LOe=un((jtr,Mtt)=>{"use strict";var Iqt=typeof Map=="function"&&Map.prototype?Map:null,FOe=typeof Set=="function"&&Set.prototype?Set:null,Sde;FOe||(Sde=function(e){return!1});var Dtt=Iqt?Map.prototype.has:null,ktt=FOe?Set.prototype.has:null;!Sde&&!ktt&&(Sde=function(e){return!1});Mtt.exports=Sde||function(e){if(!e||typeof e!="object")return!1;try{if(ktt.call(e),Dtt)try{Dtt.call(e)}catch{return!0}return e instanceof FOe}catch{}return!1}});var Htt=un((Htr,Tde)=>{"use strict";var Ott=gOe(),Rtt=Ctt();ode()()||KY()()?(Ede=Symbol.iterator,Tde.exports=function(e){if(e!=null&&typeof e[Ede]<"u")return e[Ede]();if(Ott(e))return Array.prototype[Ede].call(e)}):(Ntt=OOe(),Ptt=ROe(),BOe=Z0(),Ftt=BOe("%Map%",!0),Ltt=BOe("%Set%",!0),rv=Tg(),zOe=rv("Array.prototype.push"),VOe=rv("String.prototype.charCodeAt"),Btt=rv("String.prototype.slice"),ztt=function(e,t){var i=e.length;if(t+1>=i)return t+1;var r=VOe(e,t);if(r<55296||r>56319)return t+1;var o=VOe(e,t+1);return o<56320||o>57343?t+1:t+2},Ide=function(e){var t=0;return{next:function(){var r=t>=e.length,o;return r||(o=e[t],t+=1),{done:r,value:o}}}},UOe=function(e,t){if(Ntt(e)||Ott(e))return Ide(e);if(Ptt(e)){var i=0;return{next:function(){var o=ztt(e,i),s=Btt(e,i,o);return i=o,{done:o>e.length,value:s}}}}if(t&&typeof e["_es6-shim iterator_"]<"u")return e["_es6-shim iterator_"]()},!Ftt&&!Ltt?Tde.exports=function(e){if(e!=null)return UOe(e,!0)}:(Vtt=POe(),Utt=LOe(),jOe=rv("Map.prototype.forEach",!0),HOe=rv("Set.prototype.forEach",!0),(typeof process>"u"||!process.versions||!process.versions.node)&&(GOe=rv("Map.prototype.iterator",!0),YOe=rv("Set.prototype.iterator",!0)),qOe=rv("Map.prototype.@@iterator",!0)||rv("Map.prototype._es6-shim iterator_",!0),$Oe=rv("Set.prototype.@@iterator",!0)||rv("Set.prototype._es6-shim iterator_",!0),jtt=function(e){if(Vtt(e)){if(GOe)return Rtt(GOe(e));if(qOe)return qOe(e);if(jOe){var t=[];return jOe(e,function(r,o){zOe(t,[o,r])}),Ide(t)}}if(Utt(e)){if(YOe)return Rtt(YOe(e));if($Oe)return $Oe(e);if(HOe){var i=[];return HOe(e,function(r){zOe(i,r)}),Ide(i)}}},Tde.exports=function(e){return jtt(e)||UOe(e)}));var Ede,Ntt,Ptt,BOe,Ftt,Ltt,rv,zOe,VOe,Btt,ztt,Ide,UOe,Vtt,Utt,jOe,HOe,GOe,YOe,qOe,$Oe,jtt});var KOe=un((Gtr,Ytt)=>{"use strict";var Gtt=function(n){return n!==n};Ytt.exports=function(e,t){return e===0&&t===0?1/e===1/t:!!(e===t||Gtt(e)&&Gtt(t))}});var WOe=un((Ytr,qtt)=>{"use strict";var Tqt=KOe();qtt.exports=function(){return typeof Object.is=="function"?Object.is:Tqt}});var Ktt=un((qtr,$tt)=>{"use strict";var Aqt=WOe(),Dqt=PD();$tt.exports=function(){var e=Aqt();return Dqt(Object,{is:e},{is:function(){return Object.is!==e}}),e}});var Xtt=un(($tr,Qtt)=>{"use strict";var kqt=PD(),Mqt=EN(),Oqt=KOe(),Wtt=WOe(),Rqt=Ktt(),Ztt=Mqt(Wtt(),Object);kqt(Ztt,{getPolyfill:Wtt,implementation:Oqt,shim:Rqt});Qtt.exports=Ztt});var QOe=un((Ktr,iit)=>{"use strict";var Nqt=EN(),tit=Tg(),Pqt=Z0(),ZOe=Pqt("%ArrayBuffer%",!0),Ade=tit("ArrayBuffer.prototype.byteLength",!0),Fqt=tit("Object.prototype.toString"),Jtt=!!ZOe&&!Ade&&new ZOe(0).slice,eit=!!Jtt&&Nqt(Jtt);iit.exports=Ade||eit?function(e){if(!e||typeof e!="object")return!1;try{return Ade?Ade(e):eit(e,0),!0}catch{return!1}}:ZOe?function(e){return Fqt(e)==="[object ArrayBuffer]"}:function(e){return!1}});var rit=un((Wtr,nit)=>{"use strict";var Lqt=Date.prototype.getDay,Bqt=function(e){try{return Lqt.call(e),!0}catch{return!1}},zqt=Object.prototype.toString,Vqt="[object Date]",Uqt=FD()();nit.exports=function(e){return typeof e!="object"||e===null?!1:Uqt?Bqt(e):zqt.call(e)===Vqt}});var cit=un((Ztr,lit)=>{"use strict";var XOe=Tg(),oit=FD()(),sit,ait,JOe,eRe;oit&&(sit=XOe("Object.prototype.hasOwnProperty"),ait=XOe("RegExp.prototype.exec"),JOe={},Dde=function(){throw JOe},eRe={toString:Dde,valueOf:Dde},typeof Symbol.toPrimitive=="symbol"&&(eRe[Symbol.toPrimitive]=Dde));var Dde,jqt=XOe("Object.prototype.toString"),Hqt=Object.getOwnPropertyDescriptor,Gqt="[object RegExp]";lit.exports=oit?function(e){if(!e||typeof e!="object")return!1;var t=Hqt(e,"lastIndex"),i=t&&sit(t,"value");if(!i)return!1;try{ait(e,eRe)}catch(r){return r===JOe}}:function(e){return!e||typeof e!="object"&&typeof e!="function"?!1:jqt(e)===Gqt}});var hit=un((Qtr,dit)=>{"use strict";var Yqt=Tg(),uit=Yqt("SharedArrayBuffer.prototype.byteLength",!0);dit.exports=uit?function(e){if(!e||typeof e!="object")return!1;try{return uit(e),!0}catch{return!1}}:function(e){return!1}});var fit=un((Xtr,pit)=>{"use strict";var qqt=Number.prototype.toString,$qt=function(e){try{return qqt.call(e),!0}catch{return!1}},Kqt=Object.prototype.toString,Wqt="[object Number]",Zqt=FD()();pit.exports=function(e){return typeof e=="number"?!0:typeof e!="object"?!1:Zqt?$qt(e):Kqt.call(e)===Wqt}});var _it=un((Jtr,git)=>{"use strict";var mit=Tg(),Qqt=mit("Boolean.prototype.toString"),Xqt=mit("Object.prototype.toString"),Jqt=function(e){try{return Qqt(e),!0}catch{return!1}},e$t="[object Boolean]",t$t=FD()();git.exports=function(e){return typeof e=="boolean"?!0:e===null||typeof e!="object"?!1:t$t&&Symbol.toStringTag in e?Jqt(e):Xqt(e)===e$t}});var xit=un((eir,tRe)=>{"use strict";var i$t=Object.prototype.toString,n$t=ode()();n$t?(vit=Symbol.prototype.toString,yit=/^Symbol\(.*\)$/,bit=function(e){return typeof e.valueOf()!="symbol"?!1:yit.test(vit.call(e))},tRe.exports=function(e){if(typeof e=="symbol")return!0;if(i$t.call(e)!=="[object Symbol]")return!1;try{return bit(e)}catch{return!1}}):tRe.exports=function(e){return!1};var vit,yit,bit});var Sit=un((tir,Cit)=>{"use strict";var wit=typeof BigInt<"u"&&BigInt;Cit.exports=function(){return typeof wit=="function"&&typeof BigInt=="function"&&typeof wit(42)=="bigint"&&typeof BigInt(42)=="bigint"}});var Tit=un((iir,iRe)=>{"use strict";var r$t=Sit()();r$t?(Eit=BigInt.prototype.valueOf,Iit=function(e){try{return Eit.call(e),!0}catch{}return!1},iRe.exports=function(e){return e===null||typeof e>"u"||typeof e=="boolean"||typeof e=="string"||typeof e=="number"||typeof e=="symbol"||typeof e=="function"?!1:typeof e=="bigint"?!0:Iit(e)}):iRe.exports=function(e){return!1};var Eit,Iit});var Dit=un((nir,Ait)=>{"use strict";var o$t=ROe(),s$t=fit(),a$t=_it(),l$t=xit(),c$t=Tit();Ait.exports=function(e){if(e==null||typeof e!="object"&&typeof e!="function")return null;if(o$t(e))return"String";if(s$t(e))return"Number";if(a$t(e))return"Boolean";if(l$t(e))return"Symbol";if(c$t(e))return"BigInt"}});var Oit=un((rir,Mit)=>{"use strict";var kde=typeof WeakMap=="function"&&WeakMap.prototype?WeakMap:null,kit=typeof WeakSet=="function"&&WeakSet.prototype?WeakSet:null,Mde;kde||(Mde=function(e){return!1});var rRe=kde?kde.prototype.has:null,nRe=kit?kit.prototype.has:null;!Mde&&!rRe&&(Mde=function(e){return!1});Mit.exports=Mde||function(e){if(!e||typeof e!="object")return!1;try{if(rRe.call(e,rRe),nRe)try{nRe.call(e,nRe)}catch{return!0}return e instanceof kde}catch{}return!1}});var Nit=un((oir,sRe)=>{"use strict";var u$t=Z0(),Rit=Tg(),d$t=u$t("%WeakSet%",!0),oRe=Rit("WeakSet.prototype.has",!0);oRe?(Ode=Rit("WeakMap.prototype.has",!0),sRe.exports=function(e){if(!e||typeof e!="object")return!1;try{if(oRe(e,oRe),Ode)try{Ode(e,Ode)}catch{return!0}return e instanceof d$t}catch{}return!1}):sRe.exports=function(e){return!1};var Ode});var Fit=un((sir,Pit)=>{"use strict";var h$t=POe(),p$t=LOe(),f$t=Oit(),m$t=Nit();Pit.exports=function(e){if(e&&typeof e=="object"){if(h$t(e))return"Map";if(p$t(e))return"Set";if(f$t(e))return"WeakMap";if(m$t(e))return"WeakSet"}return!1}});var Vit=un((air,zit)=>{"use strict";var Bit=Function.prototype.toString,U4=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,lRe,Rde;if(typeof U4=="function"&&typeof Object.defineProperty=="function")try{lRe=Object.defineProperty({},"length",{get:function(){throw Rde}}),Rde={},U4(function(){throw 42},null,lRe)}catch(n){n!==Rde&&(U4=null)}else U4=null;var g$t=/^\s*class\b/,cRe=function(e){try{var t=Bit.call(e);return g$t.test(t)}catch{return!1}},aRe=function(e){try{return cRe(e)?!1:(Bit.call(e),!0)}catch{return!1}},Nde=Object.prototype.toString,_$t="[object Object]",v$t="[object Function]",y$t="[object GeneratorFunction]",b$t="[object HTMLAllCollection]",x$t="[object HTML document.all class]",w$t="[object HTMLCollection]",C$t=typeof Symbol=="function"&&!!Symbol.toStringTag,S$t=!(0 in[,]),uRe=function(){return!1};typeof document=="object"&&(Lit=document.all,Nde.call(Lit)===Nde.call(document.all)&&(uRe=function(e){if((S$t||!e)&&(typeof e>"u"||typeof e=="object"))try{var t=Nde.call(e);return(t===b$t||t===x$t||t===w$t||t===_$t)&&e("")==null}catch{}return!1}));var Lit;zit.exports=U4?function(e){if(uRe(e))return!0;if(!e||typeof e!="function"&&typeof e!="object")return!1;try{U4(e,null,lRe)}catch(t){if(t!==Rde)return!1}return!cRe(e)&&aRe(e)}:function(e){if(uRe(e))return!0;if(!e||typeof e!="function"&&typeof e!="object")return!1;if(C$t)return aRe(e);if(cRe(e))return!1;var t=Nde.call(e);return t!==v$t&&t!==y$t&&!/^\[object HTML/.test(t)?!1:aRe(e)}});var Hit=un((lir,jit)=>{"use strict";var E$t=Vit(),I$t=Object.prototype.toString,Uit=Object.prototype.hasOwnProperty,T$t=function(e,t,i){for(var r=0,o=e.length;r=3&&(r=i),I$t.call(e)==="[object Array]"?T$t(e,t,r):typeof e=="string"?A$t(e,t,r):D$t(e,t,r)};jit.exports=k$t});var Yit=un((cir,Git)=>{"use strict";Git.exports=["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]});var $it=un((uir,qit)=>{"use strict";var dRe=Yit(),M$t=typeof globalThis>"u"?global:globalThis;qit.exports=function(){for(var e=[],t=0;t{"use strict";var Fde=Hit(),O$t=$it(),Kit=EN(),fRe=Tg(),Pde=hde(),R$t=fRe("Object.prototype.toString"),Zit=FD()(),Wit=typeof globalThis>"u"?global:globalThis,pRe=O$t(),mRe=fRe("String.prototype.slice"),hRe=Object.getPrototypeOf,N$t=fRe("Array.prototype.indexOf",!0)||function(e,t){for(var i=0;i-1?t:t!=="Object"?!1:F$t(e)}return Pde?P$t(e):null}});var tnt=un((hir,ent)=>{"use strict";var L$t=Tg(),Jit=L$t("ArrayBuffer.prototype.byteLength",!0),B$t=QOe();ent.exports=function(e){return B$t(e)?Jit?Jit(e):e.byteLength:NaN}});var Int=un((pir,Ent)=>{"use strict";var wnt=Oet(),Hx=Tg(),int=qet(),z$t=Z0(),j4=Htt(),V$t=kOe(),nnt=Xtt(),rnt=gOe(),ont=OOe(),snt=QOe(),ant=rit(),lnt=cit(),cnt=hit(),unt=rde(),dnt=Dit(),hnt=Fit(),pnt=Xit(),fnt=tnt(),mnt=Hx("SharedArrayBuffer.prototype.byteLength",!0),gnt=Hx("Date.prototype.getTime"),gRe=Object.getPrototypeOf,_nt=Hx("Object.prototype.toString"),zde=z$t("%Set%",!0),_Re=Hx("Map.prototype.has",!0),Vde=Hx("Map.prototype.get",!0),vnt=Hx("Map.prototype.size",!0),Ude=Hx("Set.prototype.add",!0),Cnt=Hx("Set.prototype.delete",!0),jde=Hx("Set.prototype.has",!0),Bde=Hx("Set.prototype.size",!0);function ynt(n,e,t,i){for(var r=j4(n),o;(o=r.next())&&!o.done;)if(Q0(e,o.value,t,i))return Cnt(n,o.value),!0;return!1}function Snt(n){if(typeof n>"u")return null;if(typeof n!="object")return typeof n=="symbol"?!1:typeof n=="string"||typeof n=="number"?+n==+n:!0}function U$t(n,e,t,i,r,o){var s=Snt(t);if(s!=null)return s;var c=Vde(e,s),h=wnt({},r,{strict:!1});return typeof c>"u"&&!_Re(e,s)||!Q0(i,c,h,o)?!1:!_Re(n,s)&&Q0(i,c,h,o)}function j$t(n,e,t){var i=Snt(t);return i??(jde(e,i)&&!jde(n,i))}function bnt(n,e,t,i,r,o){for(var s=j4(n),c,h;(c=s.next())&&!c.done;)if(h=c.value,Q0(t,h,r,o)&&Q0(i,Vde(e,h),r,o))return Cnt(n,h),!0;return!1}function Q0(n,e,t,i){var r=t||{};if(r.strict?nnt(n,e):n===e)return!0;var o=dnt(n),s=dnt(e);if(o!==s)return!1;if(!n||!e||typeof n!="object"&&typeof e!="object")return r.strict?nnt(n,e):n==e;var c=i.has(n),h=i.has(e),g;if(c&&h){if(i.get(n)===i.get(e))return!0}else g={};return c||i.set(n,g),h||i.set(e,g),Y$t(n,e,r,i)}function xnt(n){return!n||typeof n!="object"||typeof n.length!="number"||typeof n.copy!="function"||typeof n.slice!="function"||n.length>0&&typeof n[0]!="number"?!1:!!(n.constructor&&n.constructor.isBuffer&&n.constructor.isBuffer(n))}function H$t(n,e,t,i){if(Bde(n)!==Bde(e))return!1;for(var r=j4(n),o=j4(e),s,c,h;(s=r.next())&&!s.done;)if(s.value&&typeof s.value=="object")h||(h=new zde),Ude(h,s.value);else if(!jde(e,s.value)){if(t.strict||!j$t(n,e,s.value))return!1;h||(h=new zde),Ude(h,s.value)}if(h){for(;(c=o.next())&&!c.done;)if(c.value&&typeof c.value=="object"){if(!ynt(h,c.value,t.strict,i))return!1}else if(!t.strict&&!jde(n,c.value)&&!ynt(h,c.value,t.strict,i))return!1;return Bde(h)===0}return!0}function G$t(n,e,t,i){if(vnt(n)!==vnt(e))return!1;for(var r=j4(n),o=j4(e),s,c,h,g,x,C;(s=r.next())&&!s.done;)if(g=s.value[0],x=s.value[1],g&&typeof g=="object")h||(h=new zde),Ude(h,g);else if(C=Vde(e,g),typeof C>"u"&&!_Re(e,g)||!Q0(x,C,t,i)){if(t.strict||!U$t(n,e,g,x,t,i))return!1;h||(h=new zde),Ude(h,g)}if(h){for(;(c=o.next())&&!c.done;)if(g=c.value[0],C=c.value[1],g&&typeof g=="object"){if(!bnt(h,n,g,C,t,i))return!1}else if(!t.strict&&(!n.has(g)||!Q0(Vde(n,g),C,t,i))&&!bnt(h,n,g,C,wnt({},t,{strict:!1}),i))return!1;return Bde(h)===0}return!0}function Y$t(n,e,t,i){var r,o;if(typeof n!=typeof e||n==null||e==null||_nt(n)!==_nt(e)||rnt(n)!==rnt(e))return!1;var s=ont(n),c=ont(e);if(s!==c)return!1;var h=n instanceof Error,g=e instanceof Error;if(h!==g||(h||g)&&(n.name!==e.name||n.message!==e.message))return!1;var x=lnt(n),C=lnt(e);if(x!==C||(x||C)&&(n.source!==e.source||int(n)!==int(e)))return!1;var A=ant(n),k=ant(e);if(A!==k||(A||k)&&gnt(n)!==gnt(e)||t.strict&&gRe&&gRe(n)!==gRe(e))return!1;var O=pnt(n),F=pnt(e);if(O!==F)return!1;if(O||F){if(n.length!==e.length)return!1;for(r=0;r=0;r--)if(X[r]!=q[r])return!1;for(r=X.length-1;r>=0;r--)if(o=X[r],!Q0(n[o],e[o],t,i))return!1;var fe=hnt(n),Se=hnt(e);return fe!==Se?!1:fe==="Set"||Se==="Set"?H$t(n,e,t,i):fe==="Map"?G$t(n,e,t,i):!0}Ent.exports=function(e,t,i){return Q0(e,t,i,V$t())}});var jnt=un(Pa=>{"use strict";Object.defineProperty(Pa,"__esModule",{value:!0});function q$t(n){return n&&n.__esModule?n:{default:n}}var $$t=Object.defineProperty,gl=(n,e)=>$$t(n,"name",{value:e,configurable:!0}),K$t=Int(),W$t=q$t(K$t),Tnt=class{constructor(e){this.direction=!1,this.compareProperties=!0;var t,i,r;this.precision=10**-((t=e?.precision)!=null?t:17),this.direction=(i=e?.direction)!=null?i:!1,this.compareProperties=(r=e?.compareProperties)!=null?r:!0}compare(e,t){if(e.type!==t.type||!nq(e,t))return!1;switch(e.type){case"Point":return this.compareCoord(e.coordinates,t.coordinates);case"LineString":return this.compareLine(e.coordinates,t.coordinates);case"Polygon":return this.comparePolygon(e,t);case"GeometryCollection":return this.compareGeometryCollection(e,t);case"Feature":return this.compareFeature(e,t);case"FeatureCollection":return this.compareFeatureCollection(e,t);default:if(e.type.startsWith("Multi")){let i=vRe(e),r=vRe(t);return i.every(o=>r.some(s=>this.compare(o,s)))}}return!1}compareCoord(e,t){return e.length===t.length&&e.every((i,r)=>Math.abs(i-t[r])=0&&(i=[].concat(e.slice(r,e.length),e.slice(1,r+1))),i}comparePath(e,t){return e.every((i,r)=>this.compareCoord(i,t[r]))}comparePolygon(e,t){if(this.compareLine(e.coordinates[0],t.coordinates[0],1,!0)){let i=e.coordinates.slice(1,e.coordinates.length),r=t.coordinates.slice(1,t.coordinates.length);return i.every(o=>r.some(s=>this.compareLine(o,s,1,!0)))}return!1}compareGeometryCollection(e,t){return nq(e.geometries,t.geometries)&&this.compareBBox(e,t)&&e.geometries.every((i,r)=>this.compare(i,t.geometries[r]))}compareFeature(e,t){return e.id===t.id&&(this.compareProperties?W$t.default.call(void 0,e.properties,t.properties):!0)&&this.compareBBox(e,t)&&this.compare(e.geometry,t.geometry)}compareFeatureCollection(e,t){return nq(e.features,t.features)&&this.compareBBox(e,t)&&e.features.every((i,r)=>this.compare(i,t.features[r]))}compareBBox(e,t){return!e.bbox&&!t.bbox||(e.bbox&&t.bbox?this.compareCoord(e.bbox,t.bbox):!1)}};gl(Tnt,"GeojsonEquality");var Z$t=Tnt;function nq(n,e){return n.coordinates?n.coordinates.length===e.coordinates.length:n.length===e.length}gl(nq,"sameLength");function vRe(n){return n.coordinates.map(e=>({type:n.type.replace("Multi",""),coordinates:e}))}gl(vRe,"explode");var fm=63710088e-1,bRe={centimeters:fm*100,centimetres:fm*100,degrees:360/(2*Math.PI),feet:fm*3.28084,inches:fm*39.37,kilometers:fm/1e3,kilometres:fm/1e3,meters:fm,metres:fm,miles:fm/1609.344,millimeters:fm*1e3,millimetres:fm*1e3,nauticalmiles:fm/1852,radians:1,yards:fm*1.0936},yRe={acres:247105e-9,centimeters:1e4,centimetres:1e4,feet:10.763910417,hectares:1e-4,inches:1550.003100006,kilometers:1e-6,kilometres:1e-6,meters:1,metres:1,miles:386e-9,nauticalmiles:29155334959812285e-23,millimeters:1e6,millimetres:1e6,yards:1.195990046};function vS(n,e,t={}){let i={type:"Feature"};return(t.id===0||t.id)&&(i.id=t.id),t.bbox&&(i.bbox=t.bbox),i.properties=e||{},i.geometry=n,i}gl(vS,"feature");function Ant(n,e,t={}){switch(n){case"Point":return Hde(e).geometry;case"LineString":return Yde(e).geometry;case"Polygon":return Gde(e).geometry;case"MultiPoint":return wRe(e).geometry;case"MultiLineString":return xRe(e).geometry;case"MultiPolygon":return CRe(e).geometry;default:throw new Error(n+" is invalid")}}gl(Ant,"geometry");function Hde(n,e,t={}){if(!n)throw new Error("coordinates is required");if(!Array.isArray(n))throw new Error("coordinates must be an Array");if(n.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!rq(n[0])||!rq(n[1]))throw new Error("coordinates must contain numbers");return vS({type:"Point",coordinates:n},e,t)}gl(Hde,"point");function Dnt(n,e,t={}){return oq(n.map(i=>Hde(i,e)),t)}gl(Dnt,"points");function Gde(n,e,t={}){for(let r of n){if(r.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");if(r[r.length-1].length!==r[0].length)throw new Error("First and last Position are not equivalent.");for(let o=0;oGde(i,e)),t)}gl(knt,"polygons");function Yde(n,e,t={}){if(n.length<2)throw new Error("coordinates must be an array of two or more positions");return vS({type:"LineString",coordinates:n},e,t)}gl(Yde,"lineString");function Mnt(n,e,t={}){return oq(n.map(i=>Yde(i,e)),t)}gl(Mnt,"lineStrings");function oq(n,e={}){let t={type:"FeatureCollection"};return e.id&&(t.id=e.id),e.bbox&&(t.bbox=e.bbox),t.features=n,t}gl(oq,"featureCollection");function xRe(n,e,t={}){return vS({type:"MultiLineString",coordinates:n},e,t)}gl(xRe,"multiLineString");function wRe(n,e,t={}){return vS({type:"MultiPoint",coordinates:n},e,t)}gl(wRe,"multiPoint");function CRe(n,e,t={}){return vS({type:"MultiPolygon",coordinates:n},e,t)}gl(CRe,"multiPolygon");function Ont(n,e,t={}){return vS({type:"GeometryCollection",geometries:n},e,t)}gl(Ont,"geometryCollection");function Rnt(n,e=0){if(e&&!(e>=0))throw new Error("precision must be a positive number");let t=Math.pow(10,e||0);return Math.round(n*t)/t}gl(Rnt,"round");function SRe(n,e="kilometers"){let t=bRe[e];if(!t)throw new Error(e+" units is invalid");return n*t}gl(SRe,"radiansToLength");function qde(n,e="kilometers"){let t=bRe[e];if(!t)throw new Error(e+" units is invalid");return n/t}gl(qde,"lengthToRadians");function Nnt(n,e){return ERe(qde(n,e))}gl(Nnt,"lengthToDegrees");function Pnt(n){let e=n%360;return e<0&&(e+=360),e}gl(Pnt,"bearingToAzimuth");function ERe(n){return n%(2*Math.PI)*180/Math.PI}gl(ERe,"radiansToDegrees");function Fnt(n){return n%360*Math.PI/180}gl(Fnt,"degreesToRadians");function Lnt(n,e="kilometers",t="kilometers"){if(!(n>=0))throw new Error("length must be a positive number");return SRe(qde(n,e),t)}gl(Lnt,"convertLength");function Bnt(n,e="meters",t="kilometers"){if(!(n>=0))throw new Error("area must be a positive number");let i=yRe[e];if(!i)throw new Error("invalid original units");let r=yRe[t];if(!r)throw new Error("invalid final units");return n/i*r}gl(Bnt,"convertArea");function rq(n){return!isNaN(n)&&n!==null&&!Array.isArray(n)}gl(rq,"isNumber");function znt(n){return n!==null&&typeof n=="object"&&!Array.isArray(n)}gl(znt,"isObject");function Vnt(n){if(!n)throw new Error("bbox is required");if(!Array.isArray(n))throw new Error("bbox must be an Array");if(n.length!==4&&n.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");n.forEach(e=>{if(!rq(e))throw new Error("bbox must only contain numbers")})}gl(Vnt,"validateBBox");function Unt(n){if(!n)throw new Error("id is required");if(["string","number"].indexOf(typeof n)===-1)throw new Error("id must be a number or a string")}gl(Unt,"validateId");Pa.GeojsonEquality=Z$t;Pa.areaFactors=yRe;Pa.bearingToAzimuth=Pnt;Pa.convertArea=Bnt;Pa.convertLength=Lnt;Pa.degreesToRadians=Fnt;Pa.earthRadius=fm;Pa.factors=bRe;Pa.feature=vS;Pa.featureCollection=oq;Pa.geometry=Ant;Pa.geometryCollection=Ont;Pa.isNumber=rq;Pa.isObject=znt;Pa.lengthToDegrees=Nnt;Pa.lengthToRadians=qde;Pa.lineString=Yde;Pa.lineStrings=Mnt;Pa.multiLineString=xRe;Pa.multiPoint=wRe;Pa.multiPolygon=CRe;Pa.point=Hde;Pa.points=Dnt;Pa.polygon=Gde;Pa.polygons=knt;Pa.radiansToDegrees=ERe;Pa.radiansToLength=SRe;Pa.round=Rnt;Pa.validateBBox=Vnt;Pa.validateId=Unt});var Jnt=un(Td=>{"use strict";Object.defineProperty(Td,"__esModule",{value:!0});var Q$t=Object.defineProperty,kh=(n,e)=>Q$t(n,"name",{value:e,configurable:!0}),_p=jnt();function H4(n,e,t){if(n!==null)for(var i,r,o,s,c,h,g,x=0,C=0,A,k=n.type,O=k==="FeatureCollection",F=k==="Feature",L=O?n.features.length:1,z=0;zh||O>g||F>x){c=C,h=i,g=O,x=F,o=0;return}var L=_p.lineString.call(void 0,[c,C],t.properties);if(e(L,i,r,F,o)===!1)return!1;o++,c=C})===!1)return!1}}})}kh(ARe,"segmentEach");function Wnt(n,e,t){var i=t,r=!1;return ARe(n,function(o,s,c,h,g){r===!1&&t===void 0?i=o:i=e(i,o,s,c,h,g),r=!0}),i}kh(Wnt,"segmentReduce");function DRe(n,e){if(!n)throw new Error("geojson is required");sq(n,function(t,i,r){if(t.geometry!==null){var o=t.geometry.type,s=t.geometry.coordinates;switch(o){case"LineString":if(e(t,i,r,0,0)===!1)return!1;break;case"Polygon":for(var c=0;c{"use strict";Object.defineProperty(Kde,"__esModule",{value:!0});var X$t=Object.defineProperty,J$t=(n,e)=>X$t(n,"name",{value:e,configurable:!0}),eKt=Jnt();function kRe(n,e={}){if(n.bbox!=null&&e.recompute!==!0)return n.bbox;let t=[1/0,1/0,-1/0,-1/0];return eKt.coordEach.call(void 0,n,i=>{t[0]>i[0]&&(t[0]=i[0]),t[1]>i[1]&&(t[1]=i[1]),t[2]{"use strict";var Gx=jMe(),irt=XMe(),nrt=aJe(),G4=ert().default,iKt=nrt.featureEach,vir=nrt.coordEach,yir=irt.polygon,trt=irt.featureCollection;function rrt(n){var e=new Gx(n);return e.insert=function(t){if(t.type!=="Feature")throw new Error("invalid feature");return t.bbox=t.bbox?t.bbox:G4(t),Gx.prototype.insert.call(this,t)},e.load=function(t){var i=[];return Array.isArray(t)?t.forEach(function(r){if(r.type!=="Feature")throw new Error("invalid features");r.bbox=r.bbox?r.bbox:G4(r),i.push(r)}):iKt(t,function(r){if(r.type!=="Feature")throw new Error("invalid features");r.bbox=r.bbox?r.bbox:G4(r),i.push(r)}),Gx.prototype.load.call(this,i)},e.remove=function(t,i){if(t.type!=="Feature")throw new Error("invalid feature");return t.bbox=t.bbox?t.bbox:G4(t),Gx.prototype.remove.call(this,t,i)},e.clear=function(){return Gx.prototype.clear.call(this)},e.search=function(t){var i=Gx.prototype.search.call(this,this.toBBox(t));return trt(i)},e.collides=function(t){return Gx.prototype.collides.call(this,this.toBBox(t))},e.all=function(){var t=Gx.prototype.all.call(this);return trt(t)},e.toJSON=function(){return Gx.prototype.toJSON.call(this)},e.fromJSON=function(t){return Gx.prototype.fromJSON.call(this,t)},e.toBBox=function(t){var i;if(t.bbox)i=t.bbox;else if(Array.isArray(t)&&t.length===4)i=t;else if(Array.isArray(t)&&t.length===6)i=[t[0],t[1],t[3],t[4]];else if(t.type==="Feature")i=G4(t);else if(t.type==="FeatureCollection")i=G4(t);else throw new Error("invalid geojson");return{minX:i[0],minY:i[1],maxX:i[2],maxY:i[3]}},e}MRe.exports=rrt;MRe.exports.default=rrt});var crt=un((hrr,lrt)=>{"use strict";function lKt(n,e){var t=n.getCenter(),i=n.getZoom(),r=n.getBearing(),o=n.getPitch();e.forEach(function(s){s.jumpTo({center:t,zoom:i,bearing:r,pitch:o})})}function cKt(){var n,e=arguments.length;if(e===1)n=arguments[0];else{n=[];for(var t=0;t{"use strict";var Y4=typeof Reflect=="object"?Reflect:null,urt=Y4&&typeof Y4.apply=="function"?Y4.apply:function(e,t,i){return Function.prototype.apply.call(e,t,i)},Wde;Y4&&typeof Y4.ownKeys=="function"?Wde=Y4.ownKeys:Object.getOwnPropertySymbols?Wde=function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Wde=function(e){return Object.getOwnPropertyNames(e)};function uKt(n){console&&console.warn&&console.warn(n)}var hrt=Number.isNaN||function(e){return e!==e};function Dl(){Dl.init.call(this)}ORe.exports=Dl;ORe.exports.once=fKt;Dl.EventEmitter=Dl;Dl.prototype._events=void 0;Dl.prototype._eventsCount=0;Dl.prototype._maxListeners=void 0;var drt=10;function Zde(n){if(typeof n!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof n)}Object.defineProperty(Dl,"defaultMaxListeners",{enumerable:!0,get:function(){return drt},set:function(n){if(typeof n!="number"||n<0||hrt(n))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+n+".");drt=n}});Dl.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};Dl.prototype.setMaxListeners=function(e){if(typeof e!="number"||e<0||hrt(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this};function prt(n){return n._maxListeners===void 0?Dl.defaultMaxListeners:n._maxListeners}Dl.prototype.getMaxListeners=function(){return prt(this)};Dl.prototype.emit=function(e){for(var t=[],i=1;i0&&(s=t[0]),s instanceof Error)throw s;var c=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw c.context=s,c}var h=o[e];if(h===void 0)return!1;if(typeof h=="function")urt(h,this,t);else for(var g=h.length,x=vrt(h,g),i=0;i0&&s.length>r&&!s.warned){s.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=n,c.type=e,c.count=s.length,uKt(c)}return n}Dl.prototype.addListener=function(e,t){return frt(this,e,t,!1)};Dl.prototype.on=Dl.prototype.addListener;Dl.prototype.prependListener=function(e,t){return frt(this,e,t,!0)};function dKt(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function mrt(n,e,t){var i={fired:!1,wrapFn:void 0,target:n,type:e,listener:t},r=dKt.bind(i);return r.listener=t,i.wrapFn=r,r}Dl.prototype.once=function(e,t){return Zde(t),this.on(e,mrt(this,e,t)),this};Dl.prototype.prependOnceListener=function(e,t){return Zde(t),this.prependListener(e,mrt(this,e,t)),this};Dl.prototype.removeListener=function(e,t){var i,r,o,s,c;if(Zde(t),r=this._events,r===void 0)return this;if(i=r[e],i===void 0)return this;if(i===t||i.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,i.listener||t));else if(typeof i!="function"){for(o=-1,s=i.length-1;s>=0;s--)if(i[s]===t||i[s].listener===t){c=i[s].listener,o=s;break}if(o<0)return this;o===0?i.shift():hKt(i,o),i.length===1&&(r[e]=i[0]),r.removeListener!==void 0&&this.emit("removeListener",e,c||t)}return this};Dl.prototype.off=Dl.prototype.removeListener;Dl.prototype.removeAllListeners=function(e){var t,i,r;if(i=this._events,i===void 0)return this;if(i.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):i[e]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete i[e]),this;if(arguments.length===0){var o=Object.keys(i),s;for(r=0;r=0;r--)this.removeListener(e,t[r]);return this};function grt(n,e,t){var i=n._events;if(i===void 0)return[];var r=i[e];return r===void 0?[]:typeof r=="function"?t?[r.listener||r]:[r]:t?pKt(r):vrt(r,r.length)}Dl.prototype.listeners=function(e){return grt(this,e,!0)};Dl.prototype.rawListeners=function(e){return grt(this,e,!1)};Dl.listenerCount=function(n,e){return typeof n.listenerCount=="function"?n.listenerCount(e):_rt.call(n,e)};Dl.prototype.listenerCount=_rt;function _rt(n){var e=this._events;if(e!==void 0){var t=e[n];if(typeof t=="function")return 1;if(t!==void 0)return t.length}return 0}Dl.prototype.eventNames=function(){return this._eventsCount>0?Wde(this._events):[]};function vrt(n,e){for(var t=new Array(e),i=0;i{"use strict";var gKt=crt(),_Kt=brt().EventEmitter;function RRe(n,e,t,i){if(this.options=i||{},this._mapA=n,this._mapB=e,this._horizontal=this.options.orientation==="horizontal",this._onDown=this._onDown.bind(this),this._onMove=this._onMove.bind(this),this._onMouseUp=this._onMouseUp.bind(this),this._onTouchEnd=this._onTouchEnd.bind(this),this._ev=new _Kt,this._swiper=document.createElement("div"),this._swiper.className=this._horizontal?"compare-swiper-horizontal":"compare-swiper-vertical",this._controlContainer=document.createElement("div"),this._controlContainer.className=this._horizontal?"mapboxgl-compare mapboxgl-compare-horizontal":"mapboxgl-compare",this._controlContainer.className=this._controlContainer.className,this._controlContainer.appendChild(this._swiper),typeof t=="string"&&document.body.querySelectorAll){var r=document.body.querySelectorAll(t)[0];if(!r)throw new Error("Cannot find element with specified container selector.");r.appendChild(this._controlContainer)}else if(t instanceof Element&&t.appendChild)t.appendChild(this._controlContainer);else throw new Error("Invalid container specified. Must be CSS selector or HTML element.");this._bounds=e.getContainer().getBoundingClientRect();var o=(this._horizontal?this._bounds.height:this._bounds.width)/2;this._setPosition(o),this._clearSync=gKt(n,e),this._onResize=(function(){this._bounds=e.getContainer().getBoundingClientRect(),this.currentPosition&&this._setPosition(this.currentPosition)}).bind(this),e.on("resize",this._onResize),this.options&&this.options.mousemove&&(n.getContainer().addEventListener("mousemove",this._onMove),e.getContainer().addEventListener("mousemove",this._onMove)),this._swiper.addEventListener("mousedown",this._onDown),this._swiper.addEventListener("touchstart",this._onDown)}RRe.prototype={_setPointerEvents:function(n){this._controlContainer.style.pointerEvents=n,this._swiper.style.pointerEvents=n},_onDown:function(n){n.touches?(document.addEventListener("touchmove",this._onMove),document.addEventListener("touchend",this._onTouchEnd)):(document.addEventListener("mousemove",this._onMove),document.addEventListener("mouseup",this._onMouseUp))},_setPosition:function(n){n=Math.min(n,this._horizontal?this._bounds.height:this._bounds.width);var e=this._horizontal?"translate(0, "+n+"px)":"translate("+n+"px, 0)";this._controlContainer.style.transform=e,this._controlContainer.style.WebkitTransform=e;var t=this._horizontal?"rect(0, 999em, "+n+"px, 0)":"rect(0, "+n+"px, "+this._bounds.height+"px, 0)",i=this._horizontal?"rect("+n+"px, 999em, "+this._bounds.height+"px,0)":"rect(0, 999em, "+this._bounds.height+"px,"+n+"px)";this._mapA.getContainer().style.clip=t,this._mapB.getContainer().style.clip=i,this.currentPosition=n},_onMove:function(n){this.options&&this.options.mousemove&&this._setPointerEvents(n.touches?"auto":"none"),this._horizontal?this._setPosition(this._getY(n)):this._setPosition(this._getX(n))},_onMouseUp:function(){document.removeEventListener("mousemove",this._onMove),document.removeEventListener("mouseup",this._onMouseUp),this.fire("slideend",{currentPosition:this.currentPosition})},_onTouchEnd:function(){document.removeEventListener("touchmove",this._onMove),document.removeEventListener("touchend",this._onTouchEnd),this.fire("slideend",{currentPosition:this.currentPosition})},_getX:function(n){n=n.touches?n.touches[0]:n;var e=n.clientX-this._bounds.left;return e<0&&(e=0),e>this._bounds.width&&(e=this._bounds.width),e},_getY:function(n){n=n.touches?n.touches[0]:n;var e=n.clientY-this._bounds.top;return e<0&&(e=0),e>this._bounds.height&&(e=this._bounds.height),e},setSlider:function(n){this._setPosition(n)},on:function(n,e){return this._ev.on(n,e),this},fire:function(n,e){return this._ev.emit(n,e),this},off:function(n,e){return this._ev.removeListener(n,e),this},remove:function(){this._clearSync(),this._mapB.off("resize",this._onResize);var n=this._mapA.getContainer();n&&(n.style.clip=null,n.removeEventListener("mousemove",this._onMove));var e=this._mapB.getContainer();e&&(e.style.clip=null,e.removeEventListener("mousemove",this._onMove)),this._swiper.removeEventListener("mousedown",this._onDown),this._swiper.removeEventListener("touchstart",this._onDown),this._controlContainer.remove()}};window.mapboxgl?mapboxgl.Compare=RRe:typeof NRe<"u"&&(NRe.exports=RRe)});var Mrt=un((krt,BRe)=>{"use strict";(function(n){typeof krt=="object"&&typeof BRe<"u"?BRe.exports=n():typeof define=="function"&&define.amd?define([],n):(typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this).JSZip=n()})(function(){return function n(e,t,i){function r(c,h){if(!t[c]){if(!e[c]){var g=typeof BM=="function"&&BM;if(!h&&g)return g(c,!0);if(o)return o(c,!0);var x=new Error("Cannot find module '"+c+"'");throw x.code="MODULE_NOT_FOUND",x}var C=t[c]={exports:{}};e[c][0].call(C.exports,function(A){var k=e[c][1][A];return r(k||A)},C,C.exports,n,e,t,i)}return t[c].exports}for(var o=typeof BM=="function"&&BM,s=0;s>2,C=(3&c)<<4|h>>4,A=1>6:64,k=2>4,h=(15&x)<<4|(C=o.indexOf(s.charAt(k++)))>>2,g=(3&C)<<6|(A=o.indexOf(s.charAt(k++))),L[O++]=c,C!==64&&(L[O++]=h),A!==64&&(L[O++]=g);return L}},{"./support":30,"./utils":32}],2:[function(n,e,t){"use strict";var i=n("./external"),r=n("./stream/DataWorker"),o=n("./stream/Crc32Probe"),s=n("./stream/DataLengthProbe");function c(h,g,x,C,A){this.compressedSize=h,this.uncompressedSize=g,this.crc32=x,this.compression=C,this.compressedContent=A}c.prototype={getContentWorker:function(){var h=new r(i.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new s("data_length")),g=this;return h.on("end",function(){if(this.streamInfo.data_length!==g.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),h},getCompressedWorker:function(){return new r(i.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},c.createWorkerFrom=function(h,g,x){return h.pipe(new o).pipe(new s("uncompressedSize")).pipe(g.compressWorker(x)).pipe(new s("compressedSize")).withStreamInfo("compression",g)},e.exports=c},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(n,e,t){"use strict";var i=n("./stream/GenericWorker");t.STORE={magic:"\0\0",compressWorker:function(){return new i("STORE compression")},uncompressWorker:function(){return new i("STORE decompression")}},t.DEFLATE=n("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(n,e,t){"use strict";var i=n("./utils"),r=function(){for(var o,s=[],c=0;c<256;c++){o=c;for(var h=0;h<8;h++)o=1&o?3988292384^o>>>1:o>>>1;s[c]=o}return s}();e.exports=function(o,s){return o!==void 0&&o.length?i.getTypeOf(o)!=="string"?function(c,h,g,x){var C=r,A=x+g;c^=-1;for(var k=x;k>>8^C[255&(c^h[k])];return-1^c}(0|s,o,o.length,0):function(c,h,g,x){var C=r,A=x+g;c^=-1;for(var k=x;k>>8^C[255&(c^h.charCodeAt(k))];return-1^c}(0|s,o,o.length,0):0}},{"./utils":32}],5:[function(n,e,t){"use strict";t.base64=!1,t.binary=!1,t.dir=!1,t.createFolders=!0,t.date=null,t.compression=null,t.compressionOptions=null,t.comment=null,t.unixPermissions=null,t.dosPermissions=null},{}],6:[function(n,e,t){"use strict";var i=null;i=typeof Promise<"u"?Promise:n("lie"),e.exports={Promise:i}},{lie:37}],7:[function(n,e,t){"use strict";var i=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",r=n("pako"),o=n("./utils"),s=n("./stream/GenericWorker"),c=i?"uint8array":"array";function h(g,x){s.call(this,"FlateWorker/"+g),this._pako=null,this._pakoAction=g,this._pakoOptions=x,this.meta={}}t.magic="\b\0",o.inherits(h,s),h.prototype.processChunk=function(g){this.meta=g.meta,this._pako===null&&this._createPako(),this._pako.push(o.transformTo(c,g.data),!1)},h.prototype.flush=function(){s.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},h.prototype.cleanUp=function(){s.prototype.cleanUp.call(this),this._pako=null},h.prototype._createPako=function(){this._pako=new r[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var g=this;this._pako.onData=function(x){g.push({data:x,meta:g.meta})}},t.compressWorker=function(g){return new h("Deflate",g)},t.uncompressWorker=function(){return new h("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(n,e,t){"use strict";function i(C,A){var k,O="";for(k=0;k>>=8;return O}function r(C,A,k,O,F,L){var z,j,K=C.file,ee=C.compression,ne=L!==c.utf8encode,X=o.transformTo("string",L(K.name)),q=o.transformTo("string",c.utf8encode(K.name)),fe=K.comment,Se=o.transformTo("string",L(fe)),pe=o.transformTo("string",c.utf8encode(fe)),Me=q.length!==K.name.length,ie=pe.length!==fe.length,Re="",Ue="",Ee="",We=K.dir,Ie=K.date,Be={crc32:0,compressedSize:0,uncompressedSize:0};A&&!k||(Be.crc32=C.crc32,Be.compressedSize=C.compressedSize,Be.uncompressedSize=C.uncompressedSize);var Ve=0;A&&(Ve|=8),ne||!Me&&!ie||(Ve|=2048);var $e=0,Fe=0;We&&($e|=16),F==="UNIX"?(Fe=798,$e|=function(ze,et){var Pt=ze;return ze||(Pt=et?16893:33204),(65535&Pt)<<16}(K.unixPermissions,We)):(Fe=20,$e|=function(ze){return 63&(ze||0)}(K.dosPermissions)),z=Ie.getUTCHours(),z<<=6,z|=Ie.getUTCMinutes(),z<<=5,z|=Ie.getUTCSeconds()/2,j=Ie.getUTCFullYear()-1980,j<<=4,j|=Ie.getUTCMonth()+1,j<<=5,j|=Ie.getUTCDate(),Me&&(Ue=i(1,1)+i(h(X),4)+q,Re+="up"+i(Ue.length,2)+Ue),ie&&(Ee=i(1,1)+i(h(Se),4)+pe,Re+="uc"+i(Ee.length,2)+Ee);var Xe="";return Xe+=` \0`,Xe+=i(Ve,2),Xe+=ee.magic,Xe+=i(z,2),Xe+=i(j,2),Xe+=i(Be.crc32,4),Xe+=i(Be.compressedSize,4),Xe+=i(Be.uncompressedSize,4),Xe+=i(X.length,2),Xe+=i(Re.length,2),{fileRecord:g.LOCAL_FILE_HEADER+Xe+X+Re,dirRecord:g.CENTRAL_FILE_HEADER+i(Fe,2)+Xe+i(Se.length,2)+"\0\0\0\0"+i($e,4)+i(O,4)+X+Re+Se}}var o=n("../utils"),s=n("../stream/GenericWorker"),c=n("../utf8"),h=n("../crc32"),g=n("../signature");function x(C,A,k,O){s.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=A,this.zipPlatform=k,this.encodeFileName=O,this.streamFiles=C,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}o.inherits(x,s),x.prototype.push=function(C){var A=C.meta.percent||0,k=this.entriesCount,O=this._sources.length;this.accumulate?this.contentBuffer.push(C):(this.bytesWritten+=C.data.length,s.prototype.push.call(this,{data:C.data,meta:{currentFile:this.currentFile,percent:k?(A+100*(k-O-1))/k:100}}))},x.prototype.openedSource=function(C){this.currentSourceOffset=this.bytesWritten,this.currentFile=C.file.name;var A=this.streamFiles&&!C.file.dir;if(A){var k=r(C,A,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:k.fileRecord,meta:{percent:0}})}else this.accumulate=!0},x.prototype.closedSource=function(C){this.accumulate=!1;var A=this.streamFiles&&!C.file.dir,k=r(C,A,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(k.dirRecord),A)this.push({data:function(O){return g.DATA_DESCRIPTOR+i(O.crc32,4)+i(O.compressedSize,4)+i(O.uncompressedSize,4)}(C),meta:{percent:100}});else for(this.push({data:k.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},x.prototype.flush=function(){for(var C=this.bytesWritten,A=0;A=this.index;s--)c=(c<<8)+this.byteAt(s);return this.index+=o,c},readString:function(o){return i.transformTo("string",this.readData(o))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var o=this.readInt(4);return new Date(Date.UTC(1980+(o>>25&127),(o>>21&15)-1,o>>16&31,o>>11&31,o>>5&63,(31&o)<<1))}},e.exports=r},{"../utils":32}],19:[function(n,e,t){"use strict";var i=n("./Uint8ArrayReader");function r(o){i.call(this,o)}n("../utils").inherits(r,i),r.prototype.readData=function(o){this.checkOffset(o);var s=this.data.slice(this.zero+this.index,this.zero+this.index+o);return this.index+=o,s},e.exports=r},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(n,e,t){"use strict";var i=n("./DataReader");function r(o){i.call(this,o)}n("../utils").inherits(r,i),r.prototype.byteAt=function(o){return this.data.charCodeAt(this.zero+o)},r.prototype.lastIndexOfSignature=function(o){return this.data.lastIndexOf(o)-this.zero},r.prototype.readAndCheckSignature=function(o){return o===this.readData(4)},r.prototype.readData=function(o){this.checkOffset(o);var s=this.data.slice(this.zero+this.index,this.zero+this.index+o);return this.index+=o,s},e.exports=r},{"../utils":32,"./DataReader":18}],21:[function(n,e,t){"use strict";var i=n("./ArrayReader");function r(o){i.call(this,o)}n("../utils").inherits(r,i),r.prototype.readData=function(o){if(this.checkOffset(o),o===0)return new Uint8Array(0);var s=this.data.subarray(this.zero+this.index,this.zero+this.index+o);return this.index+=o,s},e.exports=r},{"../utils":32,"./ArrayReader":17}],22:[function(n,e,t){"use strict";var i=n("../utils"),r=n("../support"),o=n("./ArrayReader"),s=n("./StringReader"),c=n("./NodeBufferReader"),h=n("./Uint8ArrayReader");e.exports=function(g){var x=i.getTypeOf(g);return i.checkSupport(x),x!=="string"||r.uint8array?x==="nodebuffer"?new c(g):r.uint8array?new h(i.transformTo("uint8array",g)):new o(i.transformTo("array",g)):new s(g)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(n,e,t){"use strict";t.LOCAL_FILE_HEADER="PK",t.CENTRAL_FILE_HEADER="PK",t.CENTRAL_DIRECTORY_END="PK",t.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",t.ZIP64_CENTRAL_DIRECTORY_END="PK",t.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(n,e,t){"use strict";var i=n("./GenericWorker"),r=n("../utils");function o(s){i.call(this,"ConvertWorker to "+s),this.destType=s}r.inherits(o,i),o.prototype.processChunk=function(s){this.push({data:r.transformTo(this.destType,s.data),meta:s.meta})},e.exports=o},{"../utils":32,"./GenericWorker":28}],25:[function(n,e,t){"use strict";var i=n("./GenericWorker"),r=n("../crc32");function o(){i.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}n("../utils").inherits(o,i),o.prototype.processChunk=function(s){this.streamInfo.crc32=r(s.data,this.streamInfo.crc32||0),this.push(s)},e.exports=o},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(n,e,t){"use strict";var i=n("../utils"),r=n("./GenericWorker");function o(s){r.call(this,"DataLengthProbe for "+s),this.propName=s,this.withStreamInfo(s,0)}i.inherits(o,r),o.prototype.processChunk=function(s){if(s){var c=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=c+s.data.length}r.prototype.processChunk.call(this,s)},e.exports=o},{"../utils":32,"./GenericWorker":28}],27:[function(n,e,t){"use strict";var i=n("../utils"),r=n("./GenericWorker");function o(s){r.call(this,"DataWorker");var c=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,s.then(function(h){c.dataIsReady=!0,c.data=h,c.max=h&&h.length||0,c.type=i.getTypeOf(h),c.isPaused||c._tickAndRepeat()},function(h){c.error(h)})}i.inherits(o,r),o.prototype.cleanUp=function(){r.prototype.cleanUp.call(this),this.data=null},o.prototype.resume=function(){return!!r.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,i.delay(this._tickAndRepeat,[],this)),!0)},o.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(i.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},o.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var s=null,c=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":s=this.data.substring(this.index,c);break;case"uint8array":s=this.data.subarray(this.index,c);break;case"array":case"nodebuffer":s=this.data.slice(this.index,c)}return this.index=c,this.push({data:s,meta:{percent:this.max?this.index/this.max*100:0}})},e.exports=o},{"../utils":32,"./GenericWorker":28}],28:[function(n,e,t){"use strict";function i(r){this.name=r||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}i.prototype={push:function(r){this.emit("data",r)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(r){this.emit("error",r)}return!0},error:function(r){return!this.isFinished&&(this.isPaused?this.generatedError=r:(this.isFinished=!0,this.emit("error",r),this.previous&&this.previous.error(r),this.cleanUp()),!0)},on:function(r,o){return this._listeners[r].push(o),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(r,o){if(this._listeners[r])for(var s=0;s "+r:r}},e.exports=i},{}],29:[function(n,e,t){"use strict";var i=n("../utils"),r=n("./ConvertWorker"),o=n("./GenericWorker"),s=n("../base64"),c=n("../support"),h=n("../external"),g=null;if(c.nodestream)try{g=n("../nodejs/NodejsStreamOutputAdapter")}catch{}function x(A,k){return new h.Promise(function(O,F){var L=[],z=A._internalType,j=A._outputType,K=A._mimeType;A.on("data",function(ee,ne){L.push(ee),k&&k(ne)}).on("error",function(ee){L=[],F(ee)}).on("end",function(){try{var ee=function(ne,X,q){switch(ne){case"blob":return i.newBlob(i.transformTo("arraybuffer",X),q);case"base64":return s.encode(X);default:return i.transformTo(ne,X)}}(j,function(ne,X){var q,fe=0,Se=null,pe=0;for(q=0;q"u")t.blob=!1;else{var i=new ArrayBuffer(0);try{t.blob=new Blob([i],{type:"application/zip"}).size===0}catch{try{var r=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);r.append(i),t.blob=r.getBlob("application/zip").size===0}catch{t.blob=!1}}}try{t.nodestream=!!n("readable-stream").Readable}catch{t.nodestream=!1}},{"readable-stream":16}],31:[function(n,e,t){"use strict";for(var i=n("./utils"),r=n("./support"),o=n("./nodejsUtils"),s=n("./stream/GenericWorker"),c=new Array(256),h=0;h<256;h++)c[h]=252<=h?6:248<=h?5:240<=h?4:224<=h?3:192<=h?2:1;c[254]=c[254]=1;function g(){s.call(this,"utf-8 decode"),this.leftOver=null}function x(){s.call(this,"utf-8 encode")}t.utf8encode=function(C){return r.nodebuffer?o.newBufferFrom(C,"utf-8"):function(A){var k,O,F,L,z,j=A.length,K=0;for(L=0;L>>6:(O<65536?k[z++]=224|O>>>12:(k[z++]=240|O>>>18,k[z++]=128|O>>>12&63),k[z++]=128|O>>>6&63),k[z++]=128|63&O);return k}(C)},t.utf8decode=function(C){return r.nodebuffer?i.transformTo("nodebuffer",C).toString("utf-8"):function(A){var k,O,F,L,z=A.length,j=new Array(2*z);for(k=O=0;k>10&1023,j[O++]=56320|1023&F)}return j.length!==O&&(j.subarray?j=j.subarray(0,O):j.length=O),i.applyFromCharCode(j)}(C=i.transformTo(r.uint8array?"uint8array":"array",C))},i.inherits(g,s),g.prototype.processChunk=function(C){var A=i.transformTo(r.uint8array?"uint8array":"array",C.data);if(this.leftOver&&this.leftOver.length){if(r.uint8array){var k=A;(A=new Uint8Array(k.length+this.leftOver.length)).set(this.leftOver,0),A.set(k,this.leftOver.length)}else A=this.leftOver.concat(A);this.leftOver=null}var O=function(L,z){var j;for((z=z||L.length)>L.length&&(z=L.length),j=z-1;0<=j&&(192&L[j])==128;)j--;return j<0||j===0?z:j+c[L[j]]>z?j:z}(A),F=A;O!==A.length&&(r.uint8array?(F=A.subarray(0,O),this.leftOver=A.subarray(O,A.length)):(F=A.slice(0,O),this.leftOver=A.slice(O,A.length))),this.push({data:t.utf8decode(F),meta:C.meta})},g.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:t.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},t.Utf8DecodeWorker=g,i.inherits(x,s),x.prototype.processChunk=function(C){this.push({data:t.utf8encode(C.data),meta:C.meta})},t.Utf8EncodeWorker=x},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(n,e,t){"use strict";var i=n("./support"),r=n("./base64"),o=n("./nodejsUtils"),s=n("./external");function c(k){return k}function h(k,O){for(var F=0;F>8;this.dir=!!(16&this.externalFileAttributes),C==0&&(this.dosPermissions=63&this.externalFileAttributes),C==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var C=i(this.extraFields[1].value);this.uncompressedSize===r.MAX_VALUE_32BITS&&(this.uncompressedSize=C.readInt(8)),this.compressedSize===r.MAX_VALUE_32BITS&&(this.compressedSize=C.readInt(8)),this.localHeaderOffset===r.MAX_VALUE_32BITS&&(this.localHeaderOffset=C.readInt(8)),this.diskNumberStart===r.MAX_VALUE_32BITS&&(this.diskNumberStart=C.readInt(4))}},readExtraFields:function(C){var A,k,O,F=C.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});C.index+4>>6:(C<65536?x[O++]=224|C>>>12:(x[O++]=240|C>>>18,x[O++]=128|C>>>12&63),x[O++]=128|C>>>6&63),x[O++]=128|63&C);return x},t.buf2binstring=function(g){return h(g,g.length)},t.binstring2buf=function(g){for(var x=new i.Buf8(g.length),C=0,A=x.length;C>10&1023,L[A++]=56320|1023&k)}return h(L,A)},t.utf8border=function(g,x){var C;for((x=x||g.length)>g.length&&(x=g.length),C=x-1;0<=C&&(192&g[C])==128;)C--;return C<0||C===0?x:C+s[g[C]]>x?C:x}},{"./common":41}],43:[function(n,e,t){"use strict";e.exports=function(i,r,o,s){for(var c=65535&i|0,h=i>>>16&65535|0,g=0;o!==0;){for(o-=g=2e3>>1:r>>>1;o[s]=r}return o}();e.exports=function(r,o,s,c){var h=i,g=c+s;r^=-1;for(var x=c;x>>8^h[255&(r^o[x])];return-1^r}},{}],46:[function(n,e,t){"use strict";var i,r=n("../utils/common"),o=n("./trees"),s=n("./adler32"),c=n("./crc32"),h=n("./messages"),g=0,x=4,C=0,A=-2,k=-1,O=4,F=2,L=8,z=9,j=286,K=30,ee=19,ne=2*j+1,X=15,q=3,fe=258,Se=fe+q+1,pe=42,Me=113,ie=1,Re=2,Ue=3,Ee=4;function We(ve,Qt){return ve.msg=h[Qt],Qt}function Ie(ve){return(ve<<1)-(4ve.avail_out&&(Rt=ve.avail_out),Rt!==0&&(r.arraySet(ve.output,Qt.pending_buf,Qt.pending_out,Rt,ve.next_out),ve.next_out+=Rt,Qt.pending_out+=Rt,ve.total_out+=Rt,ve.avail_out-=Rt,Qt.pending-=Rt,Qt.pending===0&&(Qt.pending_out=0))}function $e(ve,Qt){o._tr_flush_block(ve,0<=ve.block_start?ve.block_start:-1,ve.strstart-ve.block_start,Qt),ve.block_start=ve.strstart,Ve(ve.strm)}function Fe(ve,Qt){ve.pending_buf[ve.pending++]=Qt}function Xe(ve,Qt){ve.pending_buf[ve.pending++]=Qt>>>8&255,ve.pending_buf[ve.pending++]=255&Qt}function ze(ve,Qt){var Rt,nt,xe=ve.max_chain_length,Qe=ve.strstart,Xt=ve.prev_length,Ut=ve.nice_match,qe=ve.strstart>ve.w_size-Se?ve.strstart-(ve.w_size-Se):0,ge=ve.window,de=ve.w_mask,we=ve.prev,Je=ve.strstart+fe,rt=ge[Qe+Xt-1],vt=ge[Qe+Xt];ve.prev_length>=ve.good_match&&(xe>>=2),Ut>ve.lookahead&&(Ut=ve.lookahead);do if(ge[(Rt=Qt)+Xt]===vt&&ge[Rt+Xt-1]===rt&&ge[Rt]===ge[Qe]&&ge[++Rt]===ge[Qe+1]){Qe+=2,Rt++;do;while(ge[++Qe]===ge[++Rt]&&ge[++Qe]===ge[++Rt]&&ge[++Qe]===ge[++Rt]&&ge[++Qe]===ge[++Rt]&&ge[++Qe]===ge[++Rt]&&ge[++Qe]===ge[++Rt]&&ge[++Qe]===ge[++Rt]&&ge[++Qe]===ge[++Rt]&&Qeqe&&--xe!=0);return Xt<=ve.lookahead?Xt:ve.lookahead}function et(ve){var Qt,Rt,nt,xe,Qe,Xt,Ut,qe,ge,de,we=ve.w_size;do{if(xe=ve.window_size-ve.lookahead-ve.strstart,ve.strstart>=we+(we-Se)){for(r.arraySet(ve.window,ve.window,we,we,0),ve.match_start-=we,ve.strstart-=we,ve.block_start-=we,Qt=Rt=ve.hash_size;nt=ve.head[--Qt],ve.head[Qt]=we<=nt?nt-we:0,--Rt;);for(Qt=Rt=we;nt=ve.prev[--Qt],ve.prev[Qt]=we<=nt?nt-we:0,--Rt;);xe+=we}if(ve.strm.avail_in===0)break;if(Xt=ve.strm,Ut=ve.window,qe=ve.strstart+ve.lookahead,ge=xe,de=void 0,de=Xt.avail_in,ge=q)for(Qe=ve.strstart-ve.insert,ve.ins_h=ve.window[Qe],ve.ins_h=(ve.ins_h<=q&&(ve.ins_h=(ve.ins_h<=q)if(nt=o._tr_tally(ve,ve.strstart-ve.match_start,ve.match_length-q),ve.lookahead-=ve.match_length,ve.match_length<=ve.max_lazy_match&&ve.lookahead>=q){for(ve.match_length--;ve.strstart++,ve.ins_h=(ve.ins_h<=q&&(ve.ins_h=(ve.ins_h<=q&&ve.match_length<=ve.prev_length){for(xe=ve.strstart+ve.lookahead-q,nt=o._tr_tally(ve,ve.strstart-1-ve.prev_match,ve.prev_length-q),ve.lookahead-=ve.prev_length-1,ve.prev_length-=2;++ve.strstart<=xe&&(ve.ins_h=(ve.ins_h<ve.pending_buf_size-5&&(Rt=ve.pending_buf_size-5);;){if(ve.lookahead<=1){if(et(ve),ve.lookahead===0&&Qt===g)return ie;if(ve.lookahead===0)break}ve.strstart+=ve.lookahead,ve.lookahead=0;var nt=ve.block_start+Rt;if((ve.strstart===0||ve.strstart>=nt)&&(ve.lookahead=ve.strstart-nt,ve.strstart=nt,$e(ve,!1),ve.strm.avail_out===0)||ve.strstart-ve.block_start>=ve.w_size-Se&&($e(ve,!1),ve.strm.avail_out===0))return ie}return ve.insert=0,Qt===x?($e(ve,!0),ve.strm.avail_out===0?Ue:Ee):(ve.strstart>ve.block_start&&($e(ve,!1),ve.strm.avail_out),ie)}),new Gt(4,4,8,4,Pt),new Gt(4,5,16,8,Pt),new Gt(4,6,32,32,Pt),new Gt(4,4,16,16,Ii),new Gt(8,16,32,32,Ii),new Gt(8,16,128,128,Ii),new Gt(8,32,128,256,Ii),new Gt(32,128,258,1024,Ii),new Gt(32,258,258,4096,Ii)],t.deflateInit=function(ve,Qt){return ir(ve,Qt,L,15,8,0)},t.deflateInit2=ir,t.deflateReset=en,t.deflateResetKeep=an,t.deflateSetHeader=function(ve,Qt){return ve&&ve.state?ve.state.wrap!==2?A:(ve.state.gzhead=Qt,C):A},t.deflate=function(ve,Qt){var Rt,nt,xe,Qe;if(!ve||!ve.state||5>8&255),Fe(nt,nt.gzhead.time>>16&255),Fe(nt,nt.gzhead.time>>24&255),Fe(nt,nt.level===9?2:2<=nt.strategy||nt.level<2?4:0),Fe(nt,255&nt.gzhead.os),nt.gzhead.extra&&nt.gzhead.extra.length&&(Fe(nt,255&nt.gzhead.extra.length),Fe(nt,nt.gzhead.extra.length>>8&255)),nt.gzhead.hcrc&&(ve.adler=c(ve.adler,nt.pending_buf,nt.pending,0)),nt.gzindex=0,nt.status=69):(Fe(nt,0),Fe(nt,0),Fe(nt,0),Fe(nt,0),Fe(nt,0),Fe(nt,nt.level===9?2:2<=nt.strategy||nt.level<2?4:0),Fe(nt,3),nt.status=Me);else{var Xt=L+(nt.w_bits-8<<4)<<8;Xt|=(2<=nt.strategy||nt.level<2?0:nt.level<6?1:nt.level===6?2:3)<<6,nt.strstart!==0&&(Xt|=32),Xt+=31-Xt%31,nt.status=Me,Xe(nt,Xt),nt.strstart!==0&&(Xe(nt,ve.adler>>>16),Xe(nt,65535&ve.adler)),ve.adler=1}if(nt.status===69)if(nt.gzhead.extra){for(xe=nt.pending;nt.gzindex<(65535&nt.gzhead.extra.length)&&(nt.pending!==nt.pending_buf_size||(nt.gzhead.hcrc&&nt.pending>xe&&(ve.adler=c(ve.adler,nt.pending_buf,nt.pending-xe,xe)),Ve(ve),xe=nt.pending,nt.pending!==nt.pending_buf_size));)Fe(nt,255&nt.gzhead.extra[nt.gzindex]),nt.gzindex++;nt.gzhead.hcrc&&nt.pending>xe&&(ve.adler=c(ve.adler,nt.pending_buf,nt.pending-xe,xe)),nt.gzindex===nt.gzhead.extra.length&&(nt.gzindex=0,nt.status=73)}else nt.status=73;if(nt.status===73)if(nt.gzhead.name){xe=nt.pending;do{if(nt.pending===nt.pending_buf_size&&(nt.gzhead.hcrc&&nt.pending>xe&&(ve.adler=c(ve.adler,nt.pending_buf,nt.pending-xe,xe)),Ve(ve),xe=nt.pending,nt.pending===nt.pending_buf_size)){Qe=1;break}Qe=nt.gzindexxe&&(ve.adler=c(ve.adler,nt.pending_buf,nt.pending-xe,xe)),Qe===0&&(nt.gzindex=0,nt.status=91)}else nt.status=91;if(nt.status===91)if(nt.gzhead.comment){xe=nt.pending;do{if(nt.pending===nt.pending_buf_size&&(nt.gzhead.hcrc&&nt.pending>xe&&(ve.adler=c(ve.adler,nt.pending_buf,nt.pending-xe,xe)),Ve(ve),xe=nt.pending,nt.pending===nt.pending_buf_size)){Qe=1;break}Qe=nt.gzindexxe&&(ve.adler=c(ve.adler,nt.pending_buf,nt.pending-xe,xe)),Qe===0&&(nt.status=103)}else nt.status=103;if(nt.status===103&&(nt.gzhead.hcrc?(nt.pending+2>nt.pending_buf_size&&Ve(ve),nt.pending+2<=nt.pending_buf_size&&(Fe(nt,255&ve.adler),Fe(nt,ve.adler>>8&255),ve.adler=0,nt.status=Me)):nt.status=Me),nt.pending!==0){if(Ve(ve),ve.avail_out===0)return nt.last_flush=-1,C}else if(ve.avail_in===0&&Ie(Qt)<=Ie(Rt)&&Qt!==x)return We(ve,-5);if(nt.status===666&&ve.avail_in!==0)return We(ve,-5);if(ve.avail_in!==0||nt.lookahead!==0||Qt!==g&&nt.status!==666){var Ut=nt.strategy===2?function(qe,ge){for(var de;;){if(qe.lookahead===0&&(et(qe),qe.lookahead===0)){if(ge===g)return ie;break}if(qe.match_length=0,de=o._tr_tally(qe,0,qe.window[qe.strstart]),qe.lookahead--,qe.strstart++,de&&($e(qe,!1),qe.strm.avail_out===0))return ie}return qe.insert=0,ge===x?($e(qe,!0),qe.strm.avail_out===0?Ue:Ee):qe.last_lit&&($e(qe,!1),qe.strm.avail_out===0)?ie:Re}(nt,Qt):nt.strategy===3?function(qe,ge){for(var de,we,Je,rt,vt=qe.window;;){if(qe.lookahead<=fe){if(et(qe),qe.lookahead<=fe&&ge===g)return ie;if(qe.lookahead===0)break}if(qe.match_length=0,qe.lookahead>=q&&0qe.lookahead&&(qe.match_length=qe.lookahead)}if(qe.match_length>=q?(de=o._tr_tally(qe,1,qe.match_length-q),qe.lookahead-=qe.match_length,qe.strstart+=qe.match_length,qe.match_length=0):(de=o._tr_tally(qe,0,qe.window[qe.strstart]),qe.lookahead--,qe.strstart++),de&&($e(qe,!1),qe.strm.avail_out===0))return ie}return qe.insert=0,ge===x?($e(qe,!0),qe.strm.avail_out===0?Ue:Ee):qe.last_lit&&($e(qe,!1),qe.strm.avail_out===0)?ie:Re}(nt,Qt):i[nt.level].func(nt,Qt);if(Ut!==Ue&&Ut!==Ee||(nt.status=666),Ut===ie||Ut===Ue)return ve.avail_out===0&&(nt.last_flush=-1),C;if(Ut===Re&&(Qt===1?o._tr_align(nt):Qt!==5&&(o._tr_stored_block(nt,0,0,!1),Qt===3&&(Be(nt.head),nt.lookahead===0&&(nt.strstart=0,nt.block_start=0,nt.insert=0))),Ve(ve),ve.avail_out===0))return nt.last_flush=-1,C}return Qt!==x?C:nt.wrap<=0?1:(nt.wrap===2?(Fe(nt,255&ve.adler),Fe(nt,ve.adler>>8&255),Fe(nt,ve.adler>>16&255),Fe(nt,ve.adler>>24&255),Fe(nt,255&ve.total_in),Fe(nt,ve.total_in>>8&255),Fe(nt,ve.total_in>>16&255),Fe(nt,ve.total_in>>24&255)):(Xe(nt,ve.adler>>>16),Xe(nt,65535&ve.adler)),Ve(ve),0=Rt.w_size&&(Qe===0&&(Be(Rt.head),Rt.strstart=0,Rt.block_start=0,Rt.insert=0),ge=new r.Buf8(Rt.w_size),r.arraySet(ge,Qt,de-Rt.w_size,Rt.w_size,0),Qt=ge,de=Rt.w_size),Xt=ve.avail_in,Ut=ve.next_in,qe=ve.input,ve.avail_in=de,ve.next_in=0,ve.input=Qt,et(Rt);Rt.lookahead>=q;){for(nt=Rt.strstart,xe=Rt.lookahead-(q-1);Rt.ins_h=(Rt.ins_h<>>=q=X>>>24,z-=q,(q=X>>>16&255)===0)Re[h++]=65535&X;else{if(!(16&q)){if(!(64&q)){X=j[(65535&X)+(L&(1<>>=q,z-=q),z<15&&(L+=ie[s++]<>>=q=X>>>24,z-=q,!(16&(q=X>>>16&255))){if(!(64&q)){X=K[(65535&X)+(L&(1<>>=q,z-=q,(q=h-g)>3,L&=(1<<(z-=fe<<3))-1,i.next_in=s,i.next_out=h,i.avail_in=s>>24&255)+(pe>>>8&65280)+((65280&pe)<<8)+((255&pe)<<24)}function L(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new i.Buf16(320),this.work=new i.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function z(pe){var Me;return pe&&pe.state?(Me=pe.state,pe.total_in=pe.total_out=Me.total=0,pe.msg="",Me.wrap&&(pe.adler=1&Me.wrap),Me.mode=A,Me.last=0,Me.havedict=0,Me.dmax=32768,Me.head=null,Me.hold=0,Me.bits=0,Me.lencode=Me.lendyn=new i.Buf32(k),Me.distcode=Me.distdyn=new i.Buf32(O),Me.sane=1,Me.back=-1,x):C}function j(pe){var Me;return pe&&pe.state?((Me=pe.state).wsize=0,Me.whave=0,Me.wnext=0,z(pe)):C}function K(pe,Me){var ie,Re;return pe&&pe.state?(Re=pe.state,Me<0?(ie=0,Me=-Me):(ie=1+(Me>>4),Me<48&&(Me&=15)),Me&&(Me<8||15=Ee.wsize?(i.arraySet(Ee.window,Me,ie-Ee.wsize,Ee.wsize,0),Ee.wnext=0,Ee.whave=Ee.wsize):(Re<(Ue=Ee.wsize-Ee.wnext)&&(Ue=Re),i.arraySet(Ee.window,Me,ie-Re,Ue,Ee.wnext),(Re-=Ue)?(i.arraySet(Ee.window,Me,ie-Re,Re,0),Ee.wnext=Re,Ee.whave=Ee.wsize):(Ee.wnext+=Ue,Ee.wnext===Ee.wsize&&(Ee.wnext=0),Ee.whave>>8&255,ie.check=o(ie.check,Qe,2,0),$e=Ve=0,ie.mode=2;break}if(ie.flags=0,ie.head&&(ie.head.done=!1),!(1&ie.wrap)||(((255&Ve)<<8)+(Ve>>8))%31){pe.msg="incorrect header check",ie.mode=30;break}if((15&Ve)!=8){pe.msg="unknown compression method",ie.mode=30;break}if($e-=4,ve=8+(15&(Ve>>>=4)),ie.wbits===0)ie.wbits=ve;else if(ve>ie.wbits){pe.msg="invalid window size",ie.mode=30;break}ie.dmax=1<>8&1),512&ie.flags&&(Qe[0]=255&Ve,Qe[1]=Ve>>>8&255,ie.check=o(ie.check,Qe,2,0)),$e=Ve=0,ie.mode=3;case 3:for(;$e<32;){if(Ie===0)break e;Ie--,Ve+=Re[Ee++]<<$e,$e+=8}ie.head&&(ie.head.time=Ve),512&ie.flags&&(Qe[0]=255&Ve,Qe[1]=Ve>>>8&255,Qe[2]=Ve>>>16&255,Qe[3]=Ve>>>24&255,ie.check=o(ie.check,Qe,4,0)),$e=Ve=0,ie.mode=4;case 4:for(;$e<16;){if(Ie===0)break e;Ie--,Ve+=Re[Ee++]<<$e,$e+=8}ie.head&&(ie.head.xflags=255&Ve,ie.head.os=Ve>>8),512&ie.flags&&(Qe[0]=255&Ve,Qe[1]=Ve>>>8&255,ie.check=o(ie.check,Qe,2,0)),$e=Ve=0,ie.mode=5;case 5:if(1024&ie.flags){for(;$e<16;){if(Ie===0)break e;Ie--,Ve+=Re[Ee++]<<$e,$e+=8}ie.length=Ve,ie.head&&(ie.head.extra_len=Ve),512&ie.flags&&(Qe[0]=255&Ve,Qe[1]=Ve>>>8&255,ie.check=o(ie.check,Qe,2,0)),$e=Ve=0}else ie.head&&(ie.head.extra=null);ie.mode=6;case 6:if(1024&ie.flags&&(Ie<(ze=ie.length)&&(ze=Ie),ze&&(ie.head&&(ve=ie.head.extra_len-ie.length,ie.head.extra||(ie.head.extra=new Array(ie.head.extra_len)),i.arraySet(ie.head.extra,Re,Ee,ze,ve)),512&ie.flags&&(ie.check=o(ie.check,Re,ze,Ee)),Ie-=ze,Ee+=ze,ie.length-=ze),ie.length))break e;ie.length=0,ie.mode=7;case 7:if(2048&ie.flags){if(Ie===0)break e;for(ze=0;ve=Re[Ee+ze++],ie.head&&ve&&ie.length<65536&&(ie.head.name+=String.fromCharCode(ve)),ve&&ze>9&1,ie.head.done=!0),pe.adler=ie.check=0,ie.mode=12;break;case 10:for(;$e<32;){if(Ie===0)break e;Ie--,Ve+=Re[Ee++]<<$e,$e+=8}pe.adler=ie.check=F(Ve),$e=Ve=0,ie.mode=11;case 11:if(ie.havedict===0)return pe.next_out=We,pe.avail_out=Be,pe.next_in=Ee,pe.avail_in=Ie,ie.hold=Ve,ie.bits=$e,2;pe.adler=ie.check=1,ie.mode=12;case 12:if(Me===5||Me===6)break e;case 13:if(ie.last){Ve>>>=7&$e,$e-=7&$e,ie.mode=27;break}for(;$e<3;){if(Ie===0)break e;Ie--,Ve+=Re[Ee++]<<$e,$e+=8}switch(ie.last=1&Ve,$e-=1,3&(Ve>>>=1)){case 0:ie.mode=14;break;case 1:if(fe(ie),ie.mode=20,Me!==6)break;Ve>>>=2,$e-=2;break e;case 2:ie.mode=17;break;case 3:pe.msg="invalid block type",ie.mode=30}Ve>>>=2,$e-=2;break;case 14:for(Ve>>>=7&$e,$e-=7&$e;$e<32;){if(Ie===0)break e;Ie--,Ve+=Re[Ee++]<<$e,$e+=8}if((65535&Ve)!=(Ve>>>16^65535)){pe.msg="invalid stored block lengths",ie.mode=30;break}if(ie.length=65535&Ve,$e=Ve=0,ie.mode=15,Me===6)break e;case 15:ie.mode=16;case 16:if(ze=ie.length){if(Ie>>=5,$e-=5,ie.ndist=1+(31&Ve),Ve>>>=5,$e-=5,ie.ncode=4+(15&Ve),Ve>>>=4,$e-=4,286>>=3,$e-=3}for(;ie.have<19;)ie.lens[Xt[ie.have++]]=0;if(ie.lencode=ie.lendyn,ie.lenbits=7,Rt={bits:ie.lenbits},Qt=c(0,ie.lens,0,19,ie.lencode,0,ie.work,Rt),ie.lenbits=Rt.bits,Qt){pe.msg="invalid code lengths set",ie.mode=30;break}ie.have=0,ie.mode=19;case 19:for(;ie.have>>16&255,ji=65535&xe,!((Ii=xe>>>24)<=$e);){if(Ie===0)break e;Ie--,Ve+=Re[Ee++]<<$e,$e+=8}if(ji<16)Ve>>>=Ii,$e-=Ii,ie.lens[ie.have++]=ji;else{if(ji===16){for(nt=Ii+2;$e>>=Ii,$e-=Ii,ie.have===0){pe.msg="invalid bit length repeat",ie.mode=30;break}ve=ie.lens[ie.have-1],ze=3+(3&Ve),Ve>>>=2,$e-=2}else if(ji===17){for(nt=Ii+3;$e>>=Ii)),Ve>>>=3,$e-=3}else{for(nt=Ii+7;$e>>=Ii)),Ve>>>=7,$e-=7}if(ie.have+ze>ie.nlen+ie.ndist){pe.msg="invalid bit length repeat",ie.mode=30;break}for(;ze--;)ie.lens[ie.have++]=ve}}if(ie.mode===30)break;if(ie.lens[256]===0){pe.msg="invalid code -- missing end-of-block",ie.mode=30;break}if(ie.lenbits=9,Rt={bits:ie.lenbits},Qt=c(h,ie.lens,0,ie.nlen,ie.lencode,0,ie.work,Rt),ie.lenbits=Rt.bits,Qt){pe.msg="invalid literal/lengths set",ie.mode=30;break}if(ie.distbits=6,ie.distcode=ie.distdyn,Rt={bits:ie.distbits},Qt=c(g,ie.lens,ie.nlen,ie.ndist,ie.distcode,0,ie.work,Rt),ie.distbits=Rt.bits,Qt){pe.msg="invalid distances set",ie.mode=30;break}if(ie.mode=20,Me===6)break e;case 20:ie.mode=21;case 21:if(6<=Ie&&258<=Be){pe.next_out=We,pe.avail_out=Be,pe.next_in=Ee,pe.avail_in=Ie,ie.hold=Ve,ie.bits=$e,s(pe,Xe),We=pe.next_out,Ue=pe.output,Be=pe.avail_out,Ee=pe.next_in,Re=pe.input,Ie=pe.avail_in,Ve=ie.hold,$e=ie.bits,ie.mode===12&&(ie.back=-1);break}for(ie.back=0;Gt=(xe=ie.lencode[Ve&(1<>>16&255,ji=65535&xe,!((Ii=xe>>>24)<=$e);){if(Ie===0)break e;Ie--,Ve+=Re[Ee++]<<$e,$e+=8}if(Gt&&!(240&Gt)){for(an=Ii,en=Gt,ir=ji;Gt=(xe=ie.lencode[ir+((Ve&(1<>an)])>>>16&255,ji=65535&xe,!(an+(Ii=xe>>>24)<=$e);){if(Ie===0)break e;Ie--,Ve+=Re[Ee++]<<$e,$e+=8}Ve>>>=an,$e-=an,ie.back+=an}if(Ve>>>=Ii,$e-=Ii,ie.back+=Ii,ie.length=ji,Gt===0){ie.mode=26;break}if(32&Gt){ie.back=-1,ie.mode=12;break}if(64&Gt){pe.msg="invalid literal/length code",ie.mode=30;break}ie.extra=15&Gt,ie.mode=22;case 22:if(ie.extra){for(nt=ie.extra;$e>>=ie.extra,$e-=ie.extra,ie.back+=ie.extra}ie.was=ie.length,ie.mode=23;case 23:for(;Gt=(xe=ie.distcode[Ve&(1<>>16&255,ji=65535&xe,!((Ii=xe>>>24)<=$e);){if(Ie===0)break e;Ie--,Ve+=Re[Ee++]<<$e,$e+=8}if(!(240&Gt)){for(an=Ii,en=Gt,ir=ji;Gt=(xe=ie.distcode[ir+((Ve&(1<>an)])>>>16&255,ji=65535&xe,!(an+(Ii=xe>>>24)<=$e);){if(Ie===0)break e;Ie--,Ve+=Re[Ee++]<<$e,$e+=8}Ve>>>=an,$e-=an,ie.back+=an}if(Ve>>>=Ii,$e-=Ii,ie.back+=Ii,64&Gt){pe.msg="invalid distance code",ie.mode=30;break}ie.offset=ji,ie.extra=15&Gt,ie.mode=24;case 24:if(ie.extra){for(nt=ie.extra;$e>>=ie.extra,$e-=ie.extra,ie.back+=ie.extra}if(ie.offset>ie.dmax){pe.msg="invalid distance too far back",ie.mode=30;break}ie.mode=25;case 25:if(Be===0)break e;if(ze=Xe-Be,ie.offset>ze){if((ze=ie.offset-ze)>ie.whave&&ie.sane){pe.msg="invalid distance too far back",ie.mode=30;break}et=ze>ie.wnext?(ze-=ie.wnext,ie.wsize-ze):ie.wnext-ze,ze>ie.length&&(ze=ie.length),Pt=ie.window}else Pt=Ue,et=We-ie.offset,ze=ie.length;for(Bene?(q=et[Pt+O[Me]],$e[Fe+O[Me]]):(q=96,0),L=1<>We)+(z-=L)]=X<<24|q<<16|fe|0,z!==0;);for(L=1<>=1;if(L!==0?(Ve&=L-1,Ve+=L):Ve=0,Me++,--Xe[pe]==0){if(pe===Re)break;pe=g[x+O[Me]]}if(Ue>>7)]}function Fe(xe,Qe){xe.pending_buf[xe.pending++]=255&Qe,xe.pending_buf[xe.pending++]=Qe>>>8&255}function Xe(xe,Qe,Xt){xe.bi_valid>F-Xt?(xe.bi_buf|=Qe<>F-xe.bi_valid,xe.bi_valid+=Xt-F):(xe.bi_buf|=Qe<>>=1,Xt<<=1,0<--Qe;);return Xt>>>1}function Pt(xe,Qe,Xt){var Ut,qe,ge=new Array(O+1),de=0;for(Ut=1;Ut<=O;Ut++)ge[Ut]=de=de+Xt[Ut-1]<<1;for(qe=0;qe<=Qe;qe++){var we=xe[2*qe+1];we!==0&&(xe[2*qe]=et(ge[we]++,we))}}function Ii(xe){var Qe;for(Qe=0;Qe>1;1<=Xt;Xt--)an(xe,ge,Xt);for(qe=Je;Xt=xe.heap[1],xe.heap[1]=xe.heap[xe.heap_len--],an(xe,ge,1),Ut=xe.heap[1],xe.heap[--xe.heap_max]=Xt,xe.heap[--xe.heap_max]=Ut,ge[2*qe]=ge[2*Xt]+ge[2*Ut],xe.depth[qe]=(xe.depth[Xt]>=xe.depth[Ut]?xe.depth[Xt]:xe.depth[Ut])+1,ge[2*Xt+1]=ge[2*Ut+1]=qe,xe.heap[1]=qe++,an(xe,ge,1),2<=xe.heap_len;);xe.heap[--xe.heap_max]=xe.heap[1],function(vt,ti){var Tt,di,li,bi,_i,yr,mr=ti.dyn_tree,Qr=ti.max_code,Lr=ti.stat_desc.static_tree,ao=ti.stat_desc.has_stree,Dt=ti.stat_desc.extra_bits,pi=ti.stat_desc.extra_base,In=ti.stat_desc.max_length,fn=0;for(bi=0;bi<=O;bi++)vt.bl_count[bi]=0;for(mr[2*vt.heap[vt.heap_max]+1]=0,Tt=vt.heap_max+1;Tt>=7;qe>>=1)if(1&rt&&we.dyn_ltree[2*Je]!==0)return r;if(we.dyn_ltree[18]!==0||we.dyn_ltree[20]!==0||we.dyn_ltree[26]!==0)return o;for(Je=32;Je>>3,(ge=xe.static_len+3+7>>>3)<=qe&&(qe=ge)):qe=ge=Xt+5,Xt+4<=qe&&Qe!==-1?nt(xe,Qe,Xt,Ut):xe.strategy===4||ge===qe?(Xe(xe,2+(Ut?1:0),3),en(xe,Se,pe)):(Xe(xe,4+(Ut?1:0),3),function(we,Je,rt,vt){var ti;for(Xe(we,Je-257,5),Xe(we,rt-1,5),Xe(we,vt-4,4),ti=0;ti>>8&255,xe.pending_buf[xe.d_buf+2*xe.last_lit+1]=255&Qe,xe.pending_buf[xe.l_buf+xe.last_lit]=255&Xt,xe.last_lit++,Qe===0?xe.dyn_ltree[2*Xt]++:(xe.matches++,Qe--,xe.dyn_ltree[2*(ie[Xt]+g+1)]++,xe.dyn_dtree[2*$e(Qe)]++),xe.last_lit===xe.lit_bufsize-1},t._tr_align=function(xe){Xe(xe,2,3),ze(xe,z,Se),function(Qe){Qe.bi_valid===16?(Fe(Qe,Qe.bi_buf),Qe.bi_buf=0,Qe.bi_valid=0):8<=Qe.bi_valid&&(Qe.pending_buf[Qe.pending++]=255&Qe.bi_buf,Qe.bi_buf>>=8,Qe.bi_valid-=8)}(xe)}},{"../utils/common":41}],53:[function(n,e,t){"use strict";e.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(n,e,t){(function(i){(function(r,o){"use strict";if(!r.setImmediate){var s,c,h,g,x=1,C={},A=!1,k=r.document,O=Object.getPrototypeOf&&Object.getPrototypeOf(r);O=O&&O.setTimeout?O:r,s={}.toString.call(r.process)==="[object process]"?function(j){process.nextTick(function(){L(j)})}:function(){if(r.postMessage&&!r.importScripts){var j=!0,K=r.onmessage;return r.onmessage=function(){j=!1},r.postMessage("","*"),r.onmessage=K,j}}()?(g="setImmediate$"+Math.random()+"$",r.addEventListener?r.addEventListener("message",z,!1):r.attachEvent("onmessage",z),function(j){r.postMessage(g+j,"*")}):r.MessageChannel?((h=new MessageChannel).port1.onmessage=function(j){L(j.data)},function(j){h.port2.postMessage(j)}):k&&"onreadystatechange"in k.createElement("script")?(c=k.documentElement,function(j){var K=k.createElement("script");K.onreadystatechange=function(){L(j),K.onreadystatechange=null,c.removeChild(K),K=null},c.appendChild(K)}):function(j){setTimeout(L,0,j)},O.setImmediate=function(j){typeof j!="function"&&(j=new Function(""+j));for(var K=new Array(arguments.length-1),ee=0;ee"u"?i===void 0?this:i:self)}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})});var Ort=un((zRe,VRe)=>{"use strict";(function(n,e){typeof define=="function"&&define.amd?define([],e):typeof VRe=="object"&&typeof zRe<"u"?VRe.exports=e():n.Papa=e()})(zRe,function n(){"use strict";var e=typeof self<"u"?self:typeof window<"u"?window:e!==void 0?e:{},t=!e.document&&!!e.postMessage,i=e.IS_PAPA_WORKER||!1,r={},o=0,s={parse:function(X,q){var fe=(q=q||{}).dynamicTyping||!1;if(ne(fe)&&(q.dynamicTypingFunction=fe,fe={}),q.dynamicTyping=fe,q.transform=!!ne(q.transform)&&q.transform,q.worker&&s.WORKERS_SUPPORTED){var Se=function(){if(!s.WORKERS_SUPPORTED)return!1;var Me=(Re=e.URL||e.webkitURL||null,Ue=n.toString(),s.BLOB_URL||(s.BLOB_URL=Re.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",Ue,")();"],{type:"text/javascript"})))),ie=new e.Worker(Me),Re,Ue;return ie.onmessage=L,ie.id=o++,r[ie.id]=ie}();return Se.userStep=q.step,Se.userChunk=q.chunk,Se.userComplete=q.complete,Se.userError=q.error,q.step=ne(q.step),q.chunk=ne(q.chunk),q.complete=ne(q.complete),q.error=ne(q.error),delete q.worker,void Se.postMessage({input:X,config:q,workerId:Se.id})}var pe=null;return s.NODE_STREAM_INPUT,typeof X=="string"?(X=function(Me){return Me.charCodeAt(0)===65279?Me.slice(1):Me}(X),pe=q.download?new g(q):new C(q)):X.readable===!0&&ne(X.read)&&ne(X.on)?pe=new A(q):(e.File&&X instanceof File||X instanceof Object)&&(pe=new x(q)),pe.stream(X)},unparse:function(X,q){var fe=!1,Se=!0,pe=",",Me=`\r `,ie='"',Re=ie+ie,Ue=!1,Ee=null,We=!1;(function(){if(typeof q=="object"){if(typeof q.delimiter!="string"||s.BAD_DELIMITERS.filter(function($e){return q.delimiter.indexOf($e)!==-1}).length||(pe=q.delimiter),(typeof q.quotes=="boolean"||typeof q.quotes=="function"||Array.isArray(q.quotes))&&(fe=q.quotes),typeof q.skipEmptyLines!="boolean"&&typeof q.skipEmptyLines!="string"||(Ue=q.skipEmptyLines),typeof q.newline=="string"&&(Me=q.newline),typeof q.quoteChar=="string"&&(ie=q.quoteChar),typeof q.header=="boolean"&&(Se=q.header),Array.isArray(q.columns)){if(q.columns.length===0)throw new Error("Option columns is empty");Ee=q.columns}q.escapeChar!==void 0&&(Re=q.escapeChar+ie),(typeof q.escapeFormulae=="boolean"||q.escapeFormulae instanceof RegExp)&&(We=q.escapeFormulae instanceof RegExp?q.escapeFormulae:/^[=+\-@\t\r].*$/)}})();var Ie=new RegExp(O(ie),"g");if(typeof X=="string"&&(X=JSON.parse(X)),Array.isArray(X)){if(!X.length||Array.isArray(X[0]))return Be(null,X,Ue);if(typeof X[0]=="object")return Be(Ee||Object.keys(X[0]),X,Ue)}else if(typeof X=="object")return typeof X.data=="string"&&(X.data=JSON.parse(X.data)),Array.isArray(X.data)&&(X.fields||(X.fields=X.meta&&X.meta.fields||Ee),X.fields||(X.fields=Array.isArray(X.data[0])?X.fields:typeof X.data[0]=="object"?Object.keys(X.data[0]):[]),Array.isArray(X.data[0])||typeof X.data[0]=="object"||(X.data=[X.data])),Be(X.fields||[],X.data||[],Ue);throw new Error("Unable to serialize unrecognized input");function Be($e,Fe,Xe){var ze="";typeof $e=="string"&&($e=JSON.parse($e)),typeof Fe=="string"&&(Fe=JSON.parse(Fe));var et=Array.isArray($e)&&0<$e.length,Pt=!Array.isArray(Fe[0]);if(et&&Se){for(var Ii=0;Ii<$e.length;Ii++)0=this._config.preview;if(i)e.postMessage({results:Me,workerId:s.WORKER_ID,finished:Re});else if(ne(this._config.chunk)&&!fe){if(this._config.chunk(Me,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);Me=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(Me.data),this._completeResults.errors=this._completeResults.errors.concat(Me.errors),this._completeResults.meta=Me.meta),this._completed||!Re||!ne(this._config.complete)||Me&&Me.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),Re||Me&&Me.meta.paused||this._nextChunk(),Me}this._halted=!0},this._sendError=function(q){ne(this._config.error)?this._config.error(q):i&&this._config.error&&e.postMessage({workerId:s.WORKER_ID,error:q,finished:!1})}}function g(X){var q;(X=X||{}).chunkSize||(X.chunkSize=s.RemoteChunkSize),h.call(this,X),this._nextChunk=t?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(fe){this._input=fe,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(q=new XMLHttpRequest,this._config.withCredentials&&(q.withCredentials=this._config.withCredentials),t||(q.onload=ee(this._chunkLoaded,this),q.onerror=ee(this._chunkError,this)),q.open(this._config.downloadRequestBody?"POST":"GET",this._input,!t),this._config.downloadRequestHeaders){var fe=this._config.downloadRequestHeaders;for(var Se in fe)q.setRequestHeader(Se,fe[Se])}if(this._config.chunkSize){var pe=this._start+this._config.chunkSize-1;q.setRequestHeader("Range","bytes="+this._start+"-"+pe)}try{q.send(this._config.downloadRequestBody)}catch(Me){this._chunkError(Me.message)}t&&q.status===0&&this._chunkError()}},this._chunkLoaded=function(){q.readyState===4&&(q.status<200||400<=q.status?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:q.responseText.length,this._finished=!this._config.chunkSize||this._start>=function(fe){var Se=fe.getResponseHeader("Content-Range");return Se===null?-1:parseInt(Se.substring(Se.lastIndexOf("/")+1))}(q),this.parseChunk(q.responseText)))},this._chunkError=function(fe){var Se=q.statusText||fe;this._sendError(new Error(Se))}}function x(X){var q,fe;(X=X||{}).chunkSize||(X.chunkSize=s.LocalChunkSize),h.call(this,X);var Se=typeof FileReader<"u";this.stream=function(pe){this._input=pe,fe=pe.slice||pe.webkitSlice||pe.mozSlice,Se?((q=new FileReader).onload=ee(this._chunkLoaded,this),q.onerror=ee(this._chunkError,this)):q=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount=this._input.size,this.parseChunk(pe.target.result)},this._chunkError=function(){this._sendError(q.error)}}function C(X){var q;h.call(this,X=X||{}),this.stream=function(fe){return q=fe,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var fe,Se=this._config.chunkSize;return Se?(fe=q.substring(0,Se),q=q.substring(Se)):(fe=q,q=""),this._finished=!q,this.parseChunk(fe)}}}function A(X){h.call(this,X=X||{});var q=[],fe=!0,Se=!1;this.pause=function(){h.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){h.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(pe){this._input=pe,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){Se&&q.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),q.length?this.parseChunk(q.shift()):fe=!0},this._streamData=ee(function(pe){try{q.push(typeof pe=="string"?pe:pe.toString(this._config.encoding)),fe&&(fe=!1,this._checkIsFinished(),this.parseChunk(q.shift()))}catch(Me){this._streamError(Me)}},this),this._streamError=ee(function(pe){this._streamCleanUp(),this._sendError(pe)},this),this._streamEnd=ee(function(){this._streamCleanUp(),Se=!0,this._streamData("")},this),this._streamCleanUp=ee(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function k(X){var q,fe,Se,pe=Math.pow(2,53),Me=-pe,ie=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,Re=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,Ue=this,Ee=0,We=0,Ie=!1,Be=!1,Ve=[],$e={data:[],errors:[],meta:{}};if(ne(X.step)){var Fe=X.step;X.step=function(Gt){if($e=Gt,et())ze();else{if(ze(),$e.data.length===0)return;Ee+=Gt.data.length,X.preview&&Ee>X.preview?fe.abort():($e.data=$e.data[0],Fe($e,Ue))}}}function Xe(Gt){return X.skipEmptyLines==="greedy"?Gt.join("").trim()==="":Gt.length===1&&Gt[0].length===0}function ze(){return $e&&Se&&(Ii("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+s.DefaultDelimiter+"'"),Se=!1),X.skipEmptyLines&&($e.data=$e.data.filter(function(Gt){return!Xe(Gt)})),et()&&function(){if(!$e)return;function Gt(an,en){ne(X.transformHeader)&&(an=X.transformHeader(an,en)),Ve.push(an)}if(Array.isArray($e.data[0])){for(var ji=0;et()&&ji<$e.data.length;ji++)$e.data[ji].forEach(Gt);$e.data.splice(0,1)}else $e.data.forEach(Gt)}(),function(){if(!$e||!X.header&&!X.dynamicTyping&&!X.transform)return $e;function Gt(an,en){var ir,ve=X.header?{}:[];for(ir=0;ir=Ve.length?"__parsed_extra":Ve[ir]),X.transform&&(Rt=X.transform(Rt,Qt)),Rt=Pt(Qt,Rt),Qt==="__parsed_extra"?(ve[Qt]=ve[Qt]||[],ve[Qt].push(Rt)):ve[Qt]=Rt}return X.header&&(ir>Ve.length?Ii("FieldMismatch","TooManyFields","Too many fields: expected "+Ve.length+" fields but parsed "+ir,We+en):ir=xe.length/2?`\r `:"\r"}(Gt,en)),Se=!1,X.delimiter)ne(X.delimiter)&&(X.delimiter=X.delimiter(Gt),$e.meta.delimiter=X.delimiter);else{var ir=function(Qt,Rt,nt,xe,Qe){var Xt,Ut,qe,ge;Qe=Qe||[","," ","|",";",s.RECORD_SEP,s.UNIT_SEP];for(var de=0;de=ie)return li(!0)}else for(we=Ee,Ee++;;){if((we=Ie.indexOf(q,we+1))===-1)return Ve||Ii.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:Pt.length,index:Ee}),Tt();if(we===$e-1)return Tt(Ie.substring(Ee,we).replace(de,q));if(q!==Ue||Ie[we+1]!==Ue){if(q===Ue||we===0||Ie[we-1]!==Ue){qe!==-1&&qe=ie)return li(!0);break}Ii.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:Pt.length,index:Ee}),we++}}else we++}return Tt();function vt(_i){Pt.push(_i),ji=Ee}function ti(_i){var yr=0;if(_i!==-1){var mr=Ie.substring(we+1,_i);mr&&mr.trim()===""&&(yr=mr.length)}return yr}function Tt(_i){return Ve||(_i===void 0&&(_i=Ie.substring(Ee)),Gt.push(_i),Ee=$e,vt(Gt),et&&bi()),li()}function di(_i){Ee=_i,vt(Gt),Gt=[],ge=Ie.indexOf(Se,Ee)}function li(_i){return{data:Pt,errors:Ii,meta:{delimiter:fe,linebreak:Se,aborted:We,truncated:!!_i,cursor:ji+(Be||0)}}}function bi(){Me(li()),Pt=[],Ii=[]}},this.abort=function(){We=!0},this.getCharIndex=function(){return Ee}}function L(X){var q=X.data,fe=r[q.workerId],Se=!1;if(q.error)fe.userError(q.error,q.file);else if(q.results&&q.results.data){var pe={abort:function(){Se=!0,z(q.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:j,resume:j};if(ne(fe.userStep)){for(var Me=0;Me{"use strict"});var alt=un((Bfe,slt)=>{"use strict";(function(n,e){typeof Bfe=="object"?slt.exports=Bfe=e():typeof define=="function"&&define.amd?define([],e):n.CryptoJS=e()})(Bfe,function(){var n=n||function(e,t){var i;if(typeof window<"u"&&window.crypto&&(i=window.crypto),typeof self<"u"&&self.crypto&&(i=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(i=globalThis.crypto),!i&&typeof window<"u"&&window.msCrypto&&(i=window.msCrypto),!i&&typeof global<"u"&&global.crypto&&(i=global.crypto),!i&&typeof BM=="function")try{i=olt()}catch{}var r=function(){if(i){if(typeof i.getRandomValues=="function")try{return i.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof i.randomBytes=="function")try{return i.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},o=Object.create||function(){function z(){}return function(j){var K;return z.prototype=j,K=new z,z.prototype=null,K}}(),s={},c=s.lib={},h=c.Base=function(){return{extend:function(z){var j=o(this);return z&&j.mixIn(z),(!j.hasOwnProperty("init")||this.init===j.init)&&(j.init=function(){j.$super.init.apply(this,arguments)}),j.init.prototype=j,j.$super=this,j},create:function(){var z=this.extend();return z.init.apply(z,arguments),z},init:function(){},mixIn:function(z){for(var j in z)z.hasOwnProperty(j)&&(this[j]=z[j]);z.hasOwnProperty("toString")&&(this.toString=z.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),g=c.WordArray=h.extend({init:function(z,j){z=this.words=z||[],j!=t?this.sigBytes=j:this.sigBytes=z.length*4},toString:function(z){return(z||C).stringify(this)},concat:function(z){var j=this.words,K=z.words,ee=this.sigBytes,ne=z.sigBytes;if(this.clamp(),ee%4)for(var X=0;X>>2]>>>24-X%4*8&255;j[ee+X>>>2]|=q<<24-(ee+X)%4*8}else for(var fe=0;fe>>2]=K[fe>>>2];return this.sigBytes+=ne,this},clamp:function(){var z=this.words,j=this.sigBytes;z[j>>>2]&=4294967295<<32-j%4*8,z.length=e.ceil(j/4)},clone:function(){var z=h.clone.call(this);return z.words=this.words.slice(0),z},random:function(z){for(var j=[],K=0;K>>2]>>>24-ne%4*8&255;ee.push((X>>>4).toString(16)),ee.push((X&15).toString(16))}return ee.join("")},parse:function(z){for(var j=z.length,K=[],ee=0;ee>>3]|=parseInt(z.substr(ee,2),16)<<24-ee%8*4;return new g.init(K,j/2)}},A=x.Latin1={stringify:function(z){for(var j=z.words,K=z.sigBytes,ee=[],ne=0;ne>>2]>>>24-ne%4*8&255;ee.push(String.fromCharCode(X))}return ee.join("")},parse:function(z){for(var j=z.length,K=[],ee=0;ee>>2]|=(z.charCodeAt(ee)&255)<<24-ee%4*8;return new g.init(K,j)}},k=x.Utf8={stringify:function(z){try{return decodeURIComponent(escape(A.stringify(z)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(z){return A.parse(unescape(encodeURIComponent(z)))}},O=c.BufferedBlockAlgorithm=h.extend({reset:function(){this._data=new g.init,this._nDataBytes=0},_append:function(z){typeof z=="string"&&(z=k.parse(z)),this._data.concat(z),this._nDataBytes+=z.sigBytes},_process:function(z){var j,K=this._data,ee=K.words,ne=K.sigBytes,X=this.blockSize,q=X*4,fe=ne/q;z?fe=e.ceil(fe):fe=e.max((fe|0)-this._minBufferSize,0);var Se=fe*X,pe=e.min(Se*4,ne);if(Se){for(var Me=0;Me{"use strict";(function(n,e){typeof zfe=="object"?llt.exports=zfe=e(alt()):typeof define=="function"&&define.amd?define(["./core"],e):e(n.CryptoJS)})(zfe,function(n){return function(e){var t=n,i=t.lib,r=i.WordArray,o=i.Hasher,s=t.algo,c=[],h=[];(function(){function C(F){for(var L=e.sqrt(F),z=2;z<=L;z++)if(!(F%z))return!1;return!0}function A(F){return(F-(F|0))*4294967296|0}for(var k=2,O=0;O<64;)C(k)&&(O<8&&(c[O]=A(e.pow(k,1/2))),h[O]=A(e.pow(k,1/3)),O++),k++})();var g=[],x=s.SHA256=o.extend({_doReset:function(){this._hash=new r.init(c.slice(0))},_doProcessBlock:function(C,A){for(var k=this._hash.words,O=k[0],F=k[1],L=k[2],z=k[3],j=k[4],K=k[5],ee=k[6],ne=k[7],X=0;X<64;X++){if(X<16)g[X]=C[A+X]|0;else{var q=g[X-15],fe=(q<<25|q>>>7)^(q<<14|q>>>18)^q>>>3,Se=g[X-2],pe=(Se<<15|Se>>>17)^(Se<<13|Se>>>19)^Se>>>10;g[X]=fe+g[X-7]+pe+g[X-16]}var Me=j&K^~j&ee,ie=O&F^O&L^F&L,Re=(O<<30|O>>>2)^(O<<19|O>>>13)^(O<<10|O>>>22),Ue=(j<<26|j>>>6)^(j<<21|j>>>11)^(j<<7|j>>>25),Ee=ne+Ue+Me+h[X]+g[X],We=Re+ie;ne=ee,ee=K,K=j,j=z+Ee|0,z=L,L=F,F=O,O=Ee+We|0}k[0]=k[0]+O|0,k[1]=k[1]+F|0,k[2]=k[2]+L|0,k[3]=k[3]+z|0,k[4]=k[4]+j|0,k[5]=k[5]+K|0,k[6]=k[6]+ee|0,k[7]=k[7]+ne|0},_doFinalize:function(){var C=this._data,A=C.words,k=this._nDataBytes*8,O=C.sigBytes*8;return A[O>>>5]|=128<<24-O%32,A[(O+64>>>9<<4)+14]=e.floor(k/4294967296),A[(O+64>>>9<<4)+15]=k,C.sigBytes=A.length*4,this._process(),this._hash},clone:function(){var C=o.clone.call(this);return C._hash=this._hash.clone(),C}});t.SHA256=o._createHelper(x),t.HmacSHA256=o._createHmacHelper(x)}(Math),n.SHA256})});var dBe={id:"austriaDataImportApp",hostKey:"AUSTRIA_DATA_IMPORT_APP_URL",domain:"BINDOC",apiEndpointKeys:["BD_PERMISSION_RESOURCE_URL","AYS_VIRTUAL_CLINIC_RESOURCE_URL","BD_FRONTEND_CONFIG_RESOURCE_URL"],variableKeys:["AUSTRIA_DATA_IMPORT_APP","AUTHENTICATION_AUTHORITY","AUTHENTICATION_PASSWORD_RESET_AUTHORITY","AUTHENTICATION_CLIENT_ID","BD_APPLICATION_INSIGHTS_KEY","BD_STAGING_BANNER"],helpKeys:[]};function hBe(n,e){return Object.is(n,e)}var Fd=null,Ej=!1,RX=1,mb=Symbol("SIGNAL");function Js(n){let e=Fd;return Fd=n,e}function oht(){return Ej}var Tj={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function Sye(n){if(Ej)throw new Error("");if(Fd===null)return;Fd.consumerOnSignalRead(n);let e=Fd.nextProducerIndex++;if(zX(Fd),en.nextProducerIndex;)n.producerNode.pop(),n.producerLastReadVersion.pop(),n.producerIndexOfThis.pop()}}function LX(n){zX(n);for(let e=0;e0}function zX(n){n.producerNode??=[],n.producerIndexOfThis??=[],n.producerLastReadVersion??=[]}function vBe(n){n.liveConsumerNode??=[],n.liveConsumerIndexOfThis??=[]}function yBe(n){return n.producerNode!==void 0}function bBe(n){let e=Object.create(aht);e.computation=n;let t=()=>{if(pBe(e),Sye(e),e.value===NX)throw e.error;return e.value};return t[mb]=e,t}var xye=Symbol("UNSET"),wye=Symbol("COMPUTING"),NX=Symbol("ERRORED"),aht=wt(Ce({},Tj),{value:xye,dirty:!0,error:null,equal:hBe,producerMustRecompute(n){return n.value===xye||n.value===wye},producerRecomputeValue(n){if(n.value===wye)throw new Error("Detected cycle in computations.");let e=n.value;n.value=wye;let t=PX(n),i;try{i=n.computation()}catch(r){i=NX,n.error=r}finally{FX(n,t)}if(e!==xye&&e!==NX&&i!==NX&&n.equal(e,i)){n.value=e;return}n.value=i,n.version++}});function lht(){throw new Error}var xBe=lht;function wBe(){xBe()}function CBe(n){xBe=n}var cht=null;function SBe(n){let e=Object.create(IBe);e.value=n;let t=()=>(Sye(e),e.value);return t[mb]=e,t}function Iye(n,e){mBe()||wBe(),n.equal(n.value,e)||(n.value=e,uht(n))}function EBe(n,e){mBe()||wBe(),Iye(n,e(n.value))}var IBe=wt(Ce({},Tj),{equal:hBe,value:void 0});function uht(n){n.version++,sht(),fBe(n),cht?.()}function TBe(n,e,t){let i=Object.create(dht);t&&(i.consumerAllowSignalWrites=!0),i.fn=n,i.schedule=e;let r=h=>{i.cleanupFn=h};function o(h){return h.fn===null&&h.schedule===null}function s(h){o(h)||(Eye(h),h.cleanupFn(),h.fn=null,h.schedule=null,h.cleanupFn=Cye)}let c=()=>{if(i.fn===null)return;if(oht())throw new Error("Schedulers cannot synchronously execute watches while scheduling.");if(i.dirty=!1,i.hasRun&&!LX(i))return;i.hasRun=!0;let h=PX(i);try{i.cleanupFn(),i.cleanupFn=Cye,i.fn(r)}finally{FX(i,h)}};return i.ref={notify:()=>gBe(i),run:c,cleanup:()=>i.cleanupFn(),destroy:()=>s(i),[mb]:i},i.ref}var Cye=()=>{},dht=wt(Ce({},Tj),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:n=>{n.schedule!==null&&n.schedule(n.ref)},hasRun:!1,cleanupFn:Cye});function Io(n){return typeof n=="function"}function qF(n){let t=n(i=>{Error.call(i),i.stack=new Error().stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var VX=qF(n=>function(t){n(this),this.message=t?`${t.length} errors occurred during unsubscription: ${t.map((i,r)=>`${r+1}) ${i.toString()}`).join(` `)}`:"",this.name="UnsubscriptionError",this.errors=t});function zM(n,e){if(n){let t=n.indexOf(e);0<=t&&n.splice(t,1)}}var Qo=class n{constructor(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let e;if(!this.closed){this.closed=!0;let{_parentage:t}=this;if(t)if(this._parentage=null,Array.isArray(t))for(let o of t)o.remove(this);else t.remove(this);let{initialTeardown:i}=this;if(Io(i))try{i()}catch(o){e=o instanceof VX?o.errors:[o]}let{_finalizers:r}=this;if(r){this._finalizers=null;for(let o of r)try{ABe(o)}catch(s){e=e??[],s instanceof VX?e=[...e,...s.errors]:e.push(s)}}if(e)throw new VX(e)}}add(e){var t;if(e&&e!==this)if(this.closed)ABe(e);else{if(e instanceof n){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(t=this._finalizers)!==null&&t!==void 0?t:[]).push(e)}}_hasParent(e){let{_parentage:t}=this;return t===e||Array.isArray(t)&&t.includes(e)}_addParent(e){let{_parentage:t}=this;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e}_removeParent(e){let{_parentage:t}=this;t===e?this._parentage=null:Array.isArray(t)&&zM(t,e)}remove(e){let{_finalizers:t}=this;t&&zM(t,e),e instanceof n&&e._removeParent(this)}};Qo.EMPTY=(()=>{let n=new Qo;return n.closed=!0,n})();var Tye=Qo.EMPTY;function UX(n){return n instanceof Qo||n&&"closed"in n&&Io(n.remove)&&Io(n.add)&&Io(n.unsubscribe)}function ABe(n){Io(n)?n():n.unsubscribe()}var $v={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var $F={setTimeout(n,e,...t){let{delegate:i}=$F;return i?.setTimeout?i.setTimeout(n,e,...t):setTimeout(n,e,...t)},clearTimeout(n){let{delegate:e}=$F;return(e?.clearTimeout||clearTimeout)(n)},delegate:void 0};function jX(n){$F.setTimeout(()=>{let{onUnhandledError:e}=$v;if(e)e(n);else throw n})}function VM(){}var DBe=Aye("C",void 0,void 0);function kBe(n){return Aye("E",void 0,n)}function MBe(n){return Aye("N",n,void 0)}function Aye(n,e,t){return{kind:n,value:e,error:t}}var UM=null;function KF(n){if($v.useDeprecatedSynchronousErrorHandling){let e=!UM;if(e&&(UM={errorThrown:!1,error:null}),n(),e){let{errorThrown:t,error:i}=UM;if(UM=null,t)throw i}}else n()}function OBe(n){$v.useDeprecatedSynchronousErrorHandling&&UM&&(UM.errorThrown=!0,UM.error=n)}var jM=class extends Qo{constructor(e){super(),this.isStopped=!1,e?(this.destination=e,UX(e)&&e.add(this)):this.destination=fht}static create(e,t,i){return new Kv(e,t,i)}next(e){this.isStopped?kye(MBe(e),this):this._next(e)}error(e){this.isStopped?kye(kBe(e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?kye(DBe,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(e){this.destination.next(e)}_error(e){try{this.destination.error(e)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},hht=Function.prototype.bind;function Dye(n,e){return hht.call(n,e)}var Mye=class{constructor(e){this.partialObserver=e}next(e){let{partialObserver:t}=this;if(t.next)try{t.next(e)}catch(i){HX(i)}}error(e){let{partialObserver:t}=this;if(t.error)try{t.error(e)}catch(i){HX(i)}else HX(e)}complete(){let{partialObserver:e}=this;if(e.complete)try{e.complete()}catch(t){HX(t)}}},Kv=class extends jM{constructor(e,t,i){super();let r;if(Io(e)||!e)r={next:e??void 0,error:t??void 0,complete:i??void 0};else{let o;this&&$v.useDeprecatedNextContext?(o=Object.create(e),o.unsubscribe=()=>this.unsubscribe(),r={next:e.next&&Dye(e.next,o),error:e.error&&Dye(e.error,o),complete:e.complete&&Dye(e.complete,o)}):r=e}this.destination=new Mye(r)}};function HX(n){$v.useDeprecatedSynchronousErrorHandling?OBe(n):jX(n)}function pht(n){throw n}function kye(n,e){let{onStoppedNotification:t}=$v;t&&$F.setTimeout(()=>t(n,e))}var fht={closed:!0,next:VM,error:pht,complete:VM};var WF=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Np(n){return n}function Oye(...n){return Rye(n)}function Rye(n){return n.length===0?Np:n.length===1?n[0]:function(t){return n.reduce((i,r)=>r(i),t)}}var fo=(()=>{class n{constructor(t){t&&(this._subscribe=t)}lift(t){let i=new n;return i.source=this,i.operator=t,i}subscribe(t,i,r){let o=ght(t)?t:new Kv(t,i,r);return KF(()=>{let{operator:s,source:c}=this;o.add(s?s.call(o,c):c?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(t){try{return this._subscribe(t)}catch(i){t.error(i)}}forEach(t,i){return i=RBe(i),new i((r,o)=>{let s=new Kv({next:c=>{try{t(c)}catch(h){o(h),s.unsubscribe()}},error:o,complete:r});this.subscribe(s)})}_subscribe(t){var i;return(i=this.source)===null||i===void 0?void 0:i.subscribe(t)}[WF](){return this}pipe(...t){return Rye(t)(this)}toPromise(t){return t=RBe(t),new t((i,r)=>{let o;this.subscribe(s=>o=s,s=>r(s),()=>i(o))})}}return n.create=e=>new n(e),n})();function RBe(n){var e;return(e=n??$v.Promise)!==null&&e!==void 0?e:Promise}function mht(n){return n&&Io(n.next)&&Io(n.error)&&Io(n.complete)}function ght(n){return n&&n instanceof jM||mht(n)&&UX(n)}function Nye(n){return Io(n?.lift)}function ns(n){return e=>{if(Nye(e))return e.lift(function(t){try{return n(t,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function Xo(n,e,t,i,r){return new Pye(n,e,t,i,r)}var Pye=class extends jM{constructor(e,t,i,r,o,s){super(e),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=t?function(c){try{t(c)}catch(h){e.error(h)}}:super._next,this._error=r?function(c){try{r(c)}catch(h){e.error(h)}finally{this.unsubscribe()}}:super._error,this._complete=i?function(){try{i()}catch(c){e.error(c)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:t}=this;super.unsubscribe(),!t&&((e=this.onFinalize)===null||e===void 0||e.call(this))}}};function ZF(){return ns((n,e)=>{let t=null;n._refCount++;let i=Xo(e,void 0,void 0,void 0,()=>{if(!n||n._refCount<=0||0<--n._refCount){t=null;return}let r=n._connection,o=t;t=null,r&&(!o||r===o)&&r.unsubscribe(),e.unsubscribe()});n.subscribe(i),i.closed||(t=n.connect())})}var HM=class extends fo{constructor(e,t){super(),this.source=e,this.subjectFactory=t,this._subject=null,this._refCount=0,this._connection=null,Nye(e)&&(this.lift=e.lift)}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){let e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:e}=this;this._subject=this._connection=null,e?.unsubscribe()}connect(){let e=this._connection;if(!e){e=this._connection=new Qo;let t=this.getSubject();e.add(this.source.subscribe(Xo(t,void 0,()=>{this._teardown(),t.complete()},i=>{this._teardown(),t.error(i)},()=>this._teardown()))),e.closed&&(this._connection=null,e=Qo.EMPTY)}return e}refCount(){return ZF()(this)}};var NBe=qF(n=>function(){n(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var mi=(()=>{class n extends fo{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(t){let i=new GX(this,this);return i.operator=t,i}_throwIfClosed(){if(this.closed)throw new NBe}next(t){KF(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let i of this.currentObservers)i.next(t)}})}error(t){KF(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=t;let{observers:i}=this;for(;i.length;)i.shift().error(t)}})}complete(){KF(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:t}=this;for(;t.length;)t.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var t;return((t=this.observers)===null||t===void 0?void 0:t.length)>0}_trySubscribe(t){return this._throwIfClosed(),super._trySubscribe(t)}_subscribe(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)}_innerSubscribe(t){let{hasError:i,isStopped:r,observers:o}=this;return i||r?Tye:(this.currentObservers=null,o.push(t),new Qo(()=>{this.currentObservers=null,zM(o,t)}))}_checkFinalizedStatuses(t){let{hasError:i,thrownError:r,isStopped:o}=this;i?t.error(r):o&&t.complete()}asObservable(){let t=new fo;return t.source=this,t}}return n.create=(e,t)=>new GX(e,t),n})(),GX=class extends mi{constructor(e,t){super(),this.destination=e,this.source=t}next(e){var t,i;(i=(t=this.destination)===null||t===void 0?void 0:t.next)===null||i===void 0||i.call(t,e)}error(e){var t,i;(i=(t=this.destination)===null||t===void 0?void 0:t.error)===null||i===void 0||i.call(t,e)}complete(){var e,t;(t=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||t===void 0||t.call(e)}_subscribe(e){var t,i;return(i=(t=this.source)===null||t===void 0?void 0:t.subscribe(e))!==null&&i!==void 0?i:Tye}};var ea=class extends mi{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){let t=super._subscribe(e);return!t.closed&&e.next(this._value),t}getValue(){let{hasError:e,thrownError:t,_value:i}=this;if(e)throw t;return this._throwIfClosed(),i}next(e){super.next(this._value=e)}};var Aj={now(){return(Aj.delegate||Date).now()},delegate:void 0};var Yo=class extends mi{constructor(e=1/0,t=1/0,i=Aj){super(),this._bufferSize=e,this._windowTime=t,this._timestampProvider=i,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=t===1/0,this._bufferSize=Math.max(1,e),this._windowTime=Math.max(1,t)}next(e){let{isStopped:t,_buffer:i,_infiniteTimeWindow:r,_timestampProvider:o,_windowTime:s}=this;t||(i.push(e),!r&&i.push(o.now()+s)),this._trimBuffer(),super.next(e)}_subscribe(e){this._throwIfClosed(),this._trimBuffer();let t=this._innerSubscribe(e),{_infiniteTimeWindow:i,_buffer:r}=this,o=r.slice();for(let s=0;sPBe(e)&&n()),e},clearImmediate(n){PBe(n)}};var{setImmediate:vht,clearImmediate:yht}=FBe,kj={setImmediate(...n){let{delegate:e}=kj;return(e?.setImmediate||vht)(...n)},clearImmediate(n){let{delegate:e}=kj;return(e?.clearImmediate||yht)(n)},delegate:void 0};var $X=class extends QF{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}requestAsyncId(e,t,i=0){return i!==null&&i>0?super.requestAsyncId(e,t,i):(e.actions.push(this),e._scheduled||(e._scheduled=kj.setImmediate(e.flush.bind(e,void 0))))}recycleAsyncId(e,t,i=0){var r;if(i!=null?i>0:this.delay>0)return super.recycleAsyncId(e,t,i);let{actions:o}=e;t!=null&&((r=o[o.length-1])===null||r===void 0?void 0:r.id)!==t&&(kj.clearImmediate(t),e._scheduled===t&&(e._scheduled=void 0))}};var XF=class n{constructor(e,t=n.now){this.schedulerActionCtor=e,this.now=t}schedule(e,t=0,i){return new this.schedulerActionCtor(this,e).schedule(i,t)}};XF.now=Aj.now;var JF=class extends XF{constructor(e,t=XF.now){super(e,t),this.actions=[],this._active=!1}flush(e){let{actions:t}=this;if(this._active){t.push(e);return}let i;this._active=!0;do if(i=e.execute(e.state,e.delay))break;while(e=t.shift());if(this._active=!1,i){for(;e=t.shift();)e.unsubscribe();throw i}}};var KX=class extends JF{flush(e){this._active=!0;let t=this._scheduled;this._scheduled=void 0;let{actions:i}=this,r;e=e||i.shift();do if(r=e.execute(e.state,e.delay))break;while((e=i[0])&&e.id===t&&i.shift());if(this._active=!1,r){for(;(e=i[0])&&e.id===t&&i.shift();)e.unsubscribe();throw r}}};var GM=new KX($X);var mw=new JF(QF),LBe=mw;var uu=new fo(n=>n.complete());function eL(n){return n&&Io(n.schedule)}function Bye(n){return n[n.length-1]}function WX(n){return Io(Bye(n))?n.pop():void 0}function gb(n){return eL(Bye(n))?n.pop():void 0}function BBe(n,e){return typeof Bye(n)=="number"?n.pop():e}function VBe(n,e,t,i){function r(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function c(x){try{g(i.next(x))}catch(C){s(C)}}function h(x){try{g(i.throw(x))}catch(C){s(C)}}function g(x){x.done?o(x.value):r(x.value).then(c,h)}g((i=i.apply(n,e||[])).next())})}function zBe(n){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&n[e],i=0;if(t)return t.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&i>=n.length&&(n=void 0),{value:n&&n[i++],done:!n}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function YM(n){return this instanceof YM?(this.v=n,this):new YM(n)}function UBe(n,e,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=t.apply(n,e||[]),r,o=[];return r=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),c("next"),c("throw"),c("return",s),r[Symbol.asyncIterator]=function(){return this},r;function s(k){return function(O){return Promise.resolve(O).then(k,C)}}function c(k,O){i[k]&&(r[k]=function(F){return new Promise(function(L,z){o.push([k,F,L,z])>1||h(k,F)})},O&&(r[k]=O(r[k])))}function h(k,O){try{g(i[k](O))}catch(F){A(o[0][3],F)}}function g(k){k.value instanceof YM?Promise.resolve(k.value.v).then(x,C):A(o[0][2],k)}function x(k){h("next",k)}function C(k){h("throw",k)}function A(k,O){k(O),o.shift(),o.length&&h(o[0][0],o[0][1])}}function jBe(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=n[Symbol.asyncIterator],t;return e?e.call(n):(n=typeof zBe=="function"?zBe(n):n[Symbol.iterator](),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(o){t[o]=n[o]&&function(s){return new Promise(function(c,h){s=n[o](s),r(c,h,s.done,s.value)})}}function r(o,s,c,h){Promise.resolve(h).then(function(g){o({value:g,done:c})},s)}}var tL=n=>n&&typeof n.length=="number"&&typeof n!="function";function ZX(n){return Io(n?.then)}function QX(n){return Io(n[WF])}function XX(n){return Symbol.asyncIterator&&Io(n?.[Symbol.asyncIterator])}function JX(n){return new TypeError(`You provided ${n!==null&&typeof n=="object"?"an invalid object":`'${n}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function bht(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var eJ=bht();function tJ(n){return Io(n?.[eJ])}function iJ(n){return UBe(this,arguments,function*(){let t=n.getReader();try{for(;;){let{value:i,done:r}=yield YM(t.read());if(r)return yield YM(void 0);yield yield YM(i)}}finally{t.releaseLock()}})}function nJ(n){return Io(n?.getReader)}function Ya(n){if(n instanceof fo)return n;if(n!=null){if(QX(n))return xht(n);if(tL(n))return wht(n);if(ZX(n))return Cht(n);if(XX(n))return HBe(n);if(tJ(n))return Sht(n);if(nJ(n))return Eht(n)}throw JX(n)}function xht(n){return new fo(e=>{let t=n[WF]();if(Io(t.subscribe))return t.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function wht(n){return new fo(e=>{for(let t=0;t{n.then(t=>{e.closed||(e.next(t),e.complete())},t=>e.error(t)).then(null,jX)})}function Sht(n){return new fo(e=>{for(let t of n)if(e.next(t),e.closed)return;e.complete()})}function HBe(n){return new fo(e=>{Iht(n,e).catch(t=>e.error(t))})}function Eht(n){return HBe(iJ(n))}function Iht(n,e){var t,i,r,o;return VBe(this,void 0,void 0,function*(){try{for(t=jBe(n);i=yield t.next(),!i.done;){let s=i.value;if(e.next(s),e.closed)return}}catch(s){r={error:s}}finally{try{i&&!i.done&&(o=t.return)&&(yield o.call(t))}finally{if(r)throw r.error}}e.complete()})}function kf(n,e,t,i=0,r=!1){let o=e.schedule(function(){t(),r?n.add(this.schedule(null,i)):this.unsubscribe()},i);if(n.add(o),!r)return o}function iL(n,e=0){return ns((t,i)=>{t.subscribe(Xo(i,r=>kf(i,n,()=>i.next(r),e),()=>kf(i,n,()=>i.complete(),e),r=>kf(i,n,()=>i.error(r),e)))})}function nL(n,e=0){return ns((t,i)=>{i.add(n.schedule(()=>t.subscribe(i),e))})}function GBe(n,e){return Ya(n).pipe(nL(e),iL(e))}function YBe(n,e){return Ya(n).pipe(nL(e),iL(e))}function qBe(n,e){return new fo(t=>{let i=0;return e.schedule(function(){i===n.length?t.complete():(t.next(n[i++]),t.closed||this.schedule())})})}function $Be(n,e){return new fo(t=>{let i;return kf(t,e,()=>{i=n[eJ](),kf(t,e,()=>{let r,o;try{({value:r,done:o}=i.next())}catch(s){t.error(s);return}o?t.complete():t.next(r)},0,!0)}),()=>Io(i?.return)&&i.return()})}function rJ(n,e){if(!n)throw new Error("Iterable cannot be null");return new fo(t=>{kf(t,e,()=>{let i=n[Symbol.asyncIterator]();kf(t,e,()=>{i.next().then(r=>{r.done?t.complete():t.next(r.value)})},0,!0)})})}function KBe(n,e){return rJ(iJ(n),e)}function WBe(n,e){if(n!=null){if(QX(n))return GBe(n,e);if(tL(n))return qBe(n,e);if(ZX(n))return YBe(n,e);if(XX(n))return rJ(n,e);if(tJ(n))return $Be(n,e);if(nJ(n))return KBe(n,e)}throw JX(n)}function wo(n,e){return e?WBe(n,e):Ya(n)}function kn(...n){let e=gb(n);return wo(n,e)}function Mf(n,e){let t=Io(n)?n:()=>n,i=r=>r.error(t());return new fo(e?r=>e.schedule(i,0,r):i)}function Mj(n){return!!n&&(n instanceof fo||Io(n.lift)&&Io(n.subscribe))}var Wv=qF(n=>function(){n(this),this.name="EmptyError",this.message="no elements in sequence"});function zye(n,e){let t=typeof e=="object";return new Promise((i,r)=>{let o=new Kv({next:s=>{i(s),o.unsubscribe()},error:r,complete:()=>{t?i(e.defaultValue):r(new Wv)}});n.subscribe(o)})}function ZBe(n){return n instanceof Date&&!isNaN(n)}function ri(n,e){return ns((t,i)=>{let r=0;t.subscribe(Xo(i,o=>{i.next(n.call(e,o,r++))}))})}var{isArray:Tht}=Array;function Aht(n,e){return Tht(e)?n(...e):n(e)}function SI(n){return ri(e=>Aht(n,e))}function oJ(n,e,t,i){if(t)if(eL(t))i=t;else return function(...r){return oJ(n,e,i).apply(this,r).pipe(SI(t))};return i?function(...r){return oJ(n,e).apply(this,r).pipe(nL(i),iL(i))}:function(...r){let o=new YX,s=!0;return new fo(c=>{let h=o.subscribe(c);if(s){s=!1;let g=!1,x=!1;e.apply(this,[...r,(...C)=>{if(n){let A=C.shift();if(A!=null){o.error(A);return}}o.next(1e[i]),keys:t}}}return{args:n,keys:null}}function Rht(n){return n&&typeof n=="object"&&kht(n)===Mht}function aJ(n,e){return n.reduce((t,i,r)=>(t[i]=e[r],t),{})}function Zv(...n){let e=gb(n),t=WX(n),{args:i,keys:r}=sJ(n);if(i.length===0)return wo([],e);let o=new fo(Nht(i,e,r?s=>aJ(r,s):Np));return t?o.pipe(SI(t)):o}function Nht(n,e,t=Np){return i=>{QBe(e,()=>{let{length:r}=n,o=new Array(r),s=r,c=r;for(let h=0;h{let g=wo(n[h],e),x=!1;g.subscribe(Xo(i,C=>{o[h]=C,x||(x=!0,c--),c||i.next(t(o.slice()))},()=>{--s||i.complete()}))},i)},i)}}function QBe(n,e,t){n?kf(t,n,e):e()}function XBe(n,e,t,i,r,o,s,c){let h=[],g=0,x=0,C=!1,A=()=>{C&&!h.length&&!g&&e.complete()},k=F=>g{o&&e.next(F),g++;let L=!1;Ya(t(F,x++)).subscribe(Xo(e,z=>{r?.(z),o?k(z):e.next(z)},()=>{L=!0},void 0,()=>{if(L)try{for(g--;h.length&&gO(z)):O(z)}A()}catch(z){e.error(z)}}))};return n.subscribe(Xo(e,k,()=>{C=!0,A()})),()=>{c?.()}}function xc(n,e,t=1/0){return Io(e)?xc((i,r)=>ri((o,s)=>e(i,o,r,s))(Ya(n(i,r))),t):(typeof e=="number"&&(t=e),ns((i,r)=>XBe(i,r,n,t)))}function _b(n=1/0){return xc(Np,n)}function JBe(){return _b(1)}function vb(...n){return JBe()(wo(n,gb(n)))}function d_(n){return new fo(e=>{Ya(n()).subscribe(e)})}function dh(...n){let e=WX(n),{args:t,keys:i}=sJ(n),r=new fo(o=>{let{length:s}=t;if(!s){o.complete();return}let c=new Array(s),h=s,g=s;for(let x=0;x{C||(C=!0,g--),c[x]=A},()=>h--,void 0,()=>{(!h||!C)&&(g||o.next(i?aJ(i,c):c),o.complete())}))}});return e?r.pipe(SI(e)):r}var Pht=["addListener","removeListener"],Fht=["addEventListener","removeEventListener"],Lht=["on","off"];function wc(n,e,t,i){if(Io(t)&&(i=t,t=void 0),i)return wc(n,e,t).pipe(SI(i));let[r,o]=Vht(n)?Fht.map(s=>c=>n[s](e,c,t)):Bht(n)?Pht.map(e3e(n,e)):zht(n)?Lht.map(e3e(n,e)):[];if(!r&&tL(n))return xc(s=>wc(s,e,t))(Ya(n));if(!r)throw new TypeError("Invalid event target");return new fo(s=>{let c=(...h)=>s.next(1o(c)})}function e3e(n,e){return t=>i=>n[t](e,i)}function Bht(n){return Io(n.addListener)&&Io(n.removeListener)}function zht(n){return Io(n.on)&&Io(n.off)}function Vht(n){return Io(n.addEventListener)&&Io(n.removeEventListener)}function zm(n=0,e,t=LBe){let i=-1;return e!=null&&(eL(e)?t=e:i=e),new fo(r=>{let o=ZBe(n)?+n-t.now():n;o<0&&(o=0);let s=0;return t.schedule(function(){r.closed||(r.next(s++),0<=i?this.schedule(void 0,i):r.complete())},o)})}function lJ(n=0,e=mw){return n<0&&(n=0),zm(n,n,e)}function Da(...n){let e=gb(n),t=BBe(n,1/0),i=n;return i.length?i.length===1?Ya(i[0]):_b(t)(wo(i,e)):uu}function Wn(n,e){return ns((t,i)=>{let r=0;t.subscribe(Xo(i,o=>n.call(e,o,r++)&&i.next(o)))})}function t3e(n){return ns((e,t)=>{let i=!1,r=null,o=null,s=!1,c=()=>{if(o?.unsubscribe(),o=null,i){i=!1;let g=r;r=null,t.next(g)}s&&t.complete()},h=()=>{o=null,s&&t.complete()};e.subscribe(Xo(t,g=>{i=!0,r=g,o||Ya(n(g)).subscribe(o=Xo(t,c,h))},()=>{s=!0,(!i||!o||o.closed)&&t.complete()}))})}function cJ(n,e=mw){return t3e(()=>zm(n,e))}function Ld(n){return ns((e,t)=>{let i=null,r=!1,o;i=e.subscribe(Xo(t,void 0,void 0,s=>{o=Ya(n(s,Ld(n)(e))),i?(i.unsubscribe(),i=null,o.subscribe(t)):r=!0})),r&&(i.unsubscribe(),i=null,o.subscribe(t))})}function i3e(n,e,t,i,r){return(o,s)=>{let c=t,h=e,g=0;o.subscribe(Xo(s,x=>{let C=g++;h=c?n(h,x,C):(c=!0,x),i&&s.next(h)},r&&(()=>{c&&s.next(h),s.complete()})))}}function h_(n,e){return Io(e)?xc(n,e,1):xc(n,1)}function Qv(n,e=mw){return ns((t,i)=>{let r=null,o=null,s=null,c=()=>{if(r){r.unsubscribe(),r=null;let g=o;o=null,i.next(g)}};function h(){let g=s+n,x=e.now();if(x{o=g,s=e.now(),r||(r=e.schedule(h,n),i.add(r))},()=>{c(),i.complete()},void 0,()=>{o=r=null}))})}function Vm(n){return ns((e,t)=>{let i=!1;e.subscribe(Xo(t,r=>{i=!0,t.next(r)},()=>{i||t.next(n),t.complete()}))})}function kr(n){return n<=0?()=>uu:ns((e,t)=>{let i=0;e.subscribe(Xo(t,r=>{++i<=n&&(t.next(r),n<=i&&t.complete())}))})}function n3e(){return ns((n,e)=>{n.subscribe(Xo(e,VM))})}function EI(n){return ri(()=>n)}function Uye(n,e){return e?t=>vb(e.pipe(kr(1),n3e()),t.pipe(Uye(n))):xc((t,i)=>Ya(n(t,i)).pipe(kr(1),EI(t)))}function rL(n,e=mw){let t=zm(n,e);return Uye(()=>t)}function hh(n,e=Np){return n=n??Uht,ns((t,i)=>{let r,o=!0;t.subscribe(Xo(i,s=>{let c=e(s);(o||!n(r,c))&&(o=!1,r=c,i.next(s))}))})}function Uht(n,e){return n===e}function uJ(n=jht){return ns((e,t)=>{let i=!1;e.subscribe(Xo(t,r=>{i=!0,t.next(r)},()=>i?t.complete():t.error(n())))})}function jht(){return new Wv}function yb(n){return ns((e,t)=>{try{e.subscribe(t)}finally{t.add(n)}})}function Um(n,e){let t=arguments.length>=2;return i=>i.pipe(n?Wn((r,o)=>n(r,o,i)):Np,kr(1),t?Vm(e):uJ(()=>new Wv))}function oL(n){return n<=0?()=>uu:ns((e,t)=>{let i=[];e.subscribe(Xo(t,r=>{i.push(r),n{for(let r of i)t.next(r);t.complete()},void 0,()=>{i=null}))})}function jye(n,e){let t=arguments.length>=2;return i=>i.pipe(n?Wn((r,o)=>n(r,o,i)):Np,oL(1),t?Vm(e):uJ(()=>new Wv))}function Hye(n,e){return ns(i3e(n,e,arguments.length>=2,!0))}function Oj(n={}){let{connector:e=()=>new mi,resetOnError:t=!0,resetOnComplete:i=!0,resetOnRefCountZero:r=!0}=n;return o=>{let s,c,h,g=0,x=!1,C=!1,A=()=>{c?.unsubscribe(),c=void 0},k=()=>{A(),s=h=void 0,x=C=!1},O=()=>{let F=s;k(),F?.unsubscribe()};return ns((F,L)=>{g++,!C&&!x&&A();let z=h=h??e();L.add(()=>{g--,g===0&&!C&&!x&&(c=Gye(O,r))}),z.subscribe(L),!s&&g>0&&(s=new Kv({next:j=>z.next(j),error:j=>{C=!0,A(),c=Gye(k,t,j),z.error(j)},complete:()=>{x=!0,A(),c=Gye(k,i),z.complete()}}),Ya(F).subscribe(s))})(o)}}function Gye(n,e,...t){if(e===!0){n();return}if(e===!1)return;let i=new Kv({next:()=>{i.unsubscribe(),n()}});return Ya(e(...t)).subscribe(i)}function dl(n,e,t){let i,r=!1;return n&&typeof n=="object"?{bufferSize:i=1/0,windowTime:e=1/0,refCount:r=!1,scheduler:t}=n:i=n??1/0,Oj({connector:()=>new Yo(i,e,t),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:r})}function Rj(n){return Wn((e,t)=>n<=t)}function aa(...n){let e=gb(n);return ns((t,i)=>{(e?vb(n,t,e):vb(n,t)).subscribe(i)})}function lr(n,e){return ns((t,i)=>{let r=null,o=0,s=!1,c=()=>s&&!r&&i.complete();t.subscribe(Xo(i,h=>{r?.unsubscribe();let g=0,x=o++;Ya(n(h,x)).subscribe(r=Xo(i,C=>i.next(e?e(h,C,x,g++):C),()=>{r=null,c()}))},()=>{s=!0,c()}))})}function hr(n){return ns((e,t)=>{Ya(n).subscribe(Xo(t,()=>t.complete(),VM)),!t.closed&&e.subscribe(t)})}function Nj(n,e=!1){return ns((t,i)=>{let r=0;t.subscribe(Xo(i,o=>{let s=n(o,r++);(s||e)&&i.next(o),!s&&i.complete()}))})}function vs(n,e,t){let i=Io(n)||e||t?{next:n,error:e,complete:t}:n;return i?ns((r,o)=>{var s;(s=i.subscribe)===null||s===void 0||s.call(i);let c=!0;r.subscribe(Xo(o,h=>{var g;(g=i.next)===null||g===void 0||g.call(i,h),o.next(h)},()=>{var h;c=!1,(h=i.complete)===null||h===void 0||h.call(i),o.complete()},h=>{var g;c=!1,(g=i.error)===null||g===void 0||g.call(i,h),o.error(h)},()=>{var h,g;c&&((h=i.unsubscribe)===null||h===void 0||h.call(i)),(g=i.finalize)===null||g===void 0||g.call(i)}))}):Np}var Z3e="https://g.co/ng/security#xss",Fn=class extends Error{constructor(e,t){super(ZJ(e,t)),this.code=e}};function ZJ(n,e){return`${`NG0${Math.abs(n)}`}${e?": "+e:""}`}function Yj(n){return{toString:n}.toString()}var dJ="__parameters__";function Hht(n){return function(...t){if(n){let i=n(...t);for(let r in i)this[r]=i[r]}}}function _xe(n,e,t){return Yj(()=>{let i=Hht(e);function r(...o){if(this instanceof r)return i.apply(this,o),this;let s=new r(...o);return c.annotation=s,c;function c(h,g,x){let C=h.hasOwnProperty(dJ)?h[dJ]:Object.defineProperty(h,dJ,{value:[]})[dJ];for(;C.length<=x;)C.push(null);return(C[x]=C[x]||[]).push(s),h}}return t&&(r.prototype=Object.create(t.prototype)),r.prototype.ngMetadataName=n,r.annotationCls=r,r})}var Bd=globalThis;function Pl(n){for(let e in n)if(n[e]===Pl)return e;throw Error("Could not find renamed property on target object.")}function Ght(n,e){for(let t in e)e.hasOwnProperty(t)&&!n.hasOwnProperty(t)&&(n[t]=e[t])}function Pp(n){if(typeof n=="string")return n;if(Array.isArray(n))return"["+n.map(Pp).join(", ")+"]";if(n==null)return""+n;if(n.overriddenName)return`${n.overriddenName}`;if(n.name)return`${n.name}`;let e=n.toString();if(e==null)return""+e;let t=e.indexOf(` `);return t===-1?e:e.substring(0,t)}function abe(n,e){return n==null||n===""?e===null?"":e:e==null||e===""?n:n+" "+e}var Yht=Pl({__forward_ref__:Pl});function ka(n){return n.__forward_ref__=ka,n.toString=function(){return Pp(this())},n}function ph(n){return Q3e(n)?n():n}function Q3e(n){return typeof n=="function"&&n.hasOwnProperty(Yht)&&n.__forward_ref__===ka}function It(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}function Mi(n){return{providers:n.providers||[],imports:n.imports||[]}}function QJ(n){return r3e(n,J3e)||r3e(n,eze)}function X3e(n){return QJ(n)!==null}function r3e(n,e){return n.hasOwnProperty(e)?n[e]:null}function qht(n){let e=n&&(n[J3e]||n[eze]);return e||null}function o3e(n){return n&&(n.hasOwnProperty(s3e)||n.hasOwnProperty($ht))?n[s3e]:null}var J3e=Pl({\u0275prov:Pl}),s3e=Pl({\u0275inj:Pl}),eze=Pl({ngInjectableDef:Pl}),$ht=Pl({ngInjectorDef:Pl}),fi=class{constructor(e,t){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof t=="number"?this.__NG_ELEMENT_ID__=t:t!==void 0&&(this.\u0275prov=It({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function tze(n){return n&&!!n.\u0275providers}var Kht=Pl({\u0275cmp:Pl}),Wht=Pl({\u0275dir:Pl}),Zht=Pl({\u0275pipe:Pl}),Qht=Pl({\u0275mod:Pl}),SJ=Pl({\u0275fac:Pl}),Pj=Pl({__NG_ELEMENT_ID__:Pl}),a3e=Pl({__NG_ENV_ID__:Pl});function dL(n){return typeof n=="string"?n:n==null?"":String(n)}function Xht(n){return typeof n=="function"?n.name||n.toString():typeof n=="object"&&n!=null&&typeof n.type=="function"?n.type.name||n.type.toString():dL(n)}function Jht(n,e){let t=e?`. Dependency path: ${e.join(" > ")} > ${n}`:"";throw new Fn(-200,n)}function vxe(n,e){throw new Fn(-201,!1)}var Hs=function(n){return n[n.Default=0]="Default",n[n.Host=1]="Host",n[n.Self=2]="Self",n[n.SkipSelf=4]="SkipSelf",n[n.Optional=8]="Optional",n}(Hs||{}),lbe;function ize(){return lbe}function Of(n){let e=lbe;return lbe=n,e}function nze(n,e,t){let i=QJ(n);if(i&&i.providedIn=="root")return i.value===void 0?i.value=i.factory():i.value;if(t&Hs.Optional)return null;if(e!==void 0)return e;vxe(n,"Injector")}var ept={},Fj=ept,cbe="__NG_DI_FLAG__",EJ="ngTempTokenPath",tpt="ngTokenPath",ipt=/\n/gm,npt="\u0275",l3e="__source",cL;function rpt(){return cL}function II(n){let e=cL;return cL=n,e}function opt(n,e=Hs.Default){if(cL===void 0)throw new Fn(-203,!1);return cL===null?nze(n,void 0,e):cL.get(n,e&Hs.Optional?null:void 0,e)}function Ke(n,e=Hs.Default){return(ize()||opt)(ph(n),e)}function ai(n,e=Hs.Default){return Ke(n,XJ(e))}function XJ(n){return typeof n>"u"||typeof n=="number"?n:0|(n.optional&&8)|(n.host&&1)|(n.self&&2)|(n.skipSelf&&4)}function ube(n){let e=[];for(let t=0;t ");else if(typeof e=="object"){let o=[];for(let s in e)if(e.hasOwnProperty(s)){let c=e[s];o.push(s+":"+(typeof c=="string"?JSON.stringify(c):Pp(c)))}r=`{${o.join(", ")}}`}return`${t}${i?"("+i+")":""}[${r}]: ${n.replace(ipt,` `)}`}var rze=yxe(_xe("Inject",n=>({token:n})),-1),xw=yxe(_xe("Optional"),8);var RI=yxe(_xe("SkipSelf"),4);function WM(n,e){let t=n.hasOwnProperty(SJ);return t?n[SJ]:null}function cpt(n,e,t){if(n.length!==e.length)return!1;for(let i=0;iArray.isArray(t)?bxe(t,e):e(t))}function oze(n,e,t){e>=n.length?n.push(t):n.splice(e,0,t)}function IJ(n,e){return e>=n.length-1?n.pop():n.splice(e,1)[0]}function dpt(n,e){let t=[];for(let i=0;ie;){let o=r-2;n[r]=n[o],r--}n[e]=t,n[e+1]=i}}function qj(n,e,t){let i=$j(n,e);return i>=0?n[i|1]=t:(i=~i,hpt(n,i,e,t)),i}function Yye(n,e){let t=$j(n,e);if(t>=0)return n[t|1]}function $j(n,e){return ppt(n,e,1)}function ppt(n,e,t){let i=0,r=n.length>>t;for(;r!==i;){let o=i+(r-i>>1),s=n[o<e?r=o:i=o+1}return~(r<e){s=o-1;break}}}for(;o-1){let o;for(;++ro?C="":C=r[x+1].toLowerCase(),i&2&&g!==C){if(Xv(i))return!1;s=!0}}}}return Xv(i)||s}function Xv(n){return(n&1)===0}function ypt(n,e,t,i){if(e===null)return-1;let r=0;if(i||!t){let o=!1;for(;r-1)for(t++;t0?'="'+c+'"':"")+"]"}else i&8?r+="."+s:i&4&&(r+=" "+s);else r!==""&&!Xv(s)&&(e+=u3e(o,r),r=""),i=s,o=o||!Xv(i);t++}return r!==""&&(e+=u3e(o,r)),e}function Ept(n){return n.map(Spt).join(",")}function Ipt(n){let e=[],t=[],i=1,r=2;for(;i{let e=mze(n),t=wt(Ce({},e),{decls:n.decls,vars:n.vars,template:n.template,consts:n.consts||null,ngContentSelectors:n.ngContentSelectors,onPush:n.changeDetection===lze.OnPush,directiveDefs:null,pipeDefs:null,dependencies:e.standalone&&n.dependencies||null,getStandaloneInjector:null,signals:n.signals??!1,data:n.data||{},encapsulation:n.encapsulation||wb.Emulated,styles:n.styles||Rf,_:null,schemas:n.schemas||null,tView:null,id:""});gze(t);let i=n.dependencies;return t.directiveDefs=h3e(i,!1),t.pipeDefs=h3e(i,!0),t.id=Dpt(t),t})}function Tpt(n){return DI(n)||wxe(n)}function Apt(n){return n!==null}function Oi(n){return Yj(()=>({type:n.type,bootstrap:n.bootstrap||Rf,declarations:n.declarations||Rf,imports:n.imports||Rf,exports:n.exports||Rf,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null}))}function d3e(n,e){if(n==null)return _w;let t={};for(let i in n)if(n.hasOwnProperty(i)){let r=n[i],o,s,c=pL.None;Array.isArray(r)?(c=r[0],o=r[1],s=r[2]??o):(o=r,s=r),e?(t[o]=c!==pL.None?[i,c]:i,e[o]=s):t[o]=i}return t}function Ki(n){return Yj(()=>{let e=mze(n);return gze(e),e})}function Kj(n){return{type:n.type,name:n.name,factory:null,pure:n.pure!==!1,standalone:n.standalone===!0,onDestroy:n.type.prototype.ngOnDestroy||null}}function DI(n){return n[Kht]||null}function wxe(n){return n[Wht]||null}function hze(n){return n[Zht]||null}function pze(n){let e=DI(n)||wxe(n)||hze(n);return e!==null?e.standalone:!1}function fze(n,e){let t=n[Qht]||null;if(!t&&e===!0)throw new Error(`Type ${Pp(n)} does not have '\u0275mod' property.`);return t}function mze(n){let e={};return{type:n.type,providersResolver:null,factory:null,hostBindings:n.hostBindings||null,hostVars:n.hostVars||0,hostAttrs:n.hostAttrs||null,contentQueries:n.contentQueries||null,declaredInputs:e,inputTransforms:null,inputConfig:n.inputs||_w,exportAs:n.exportAs||null,standalone:n.standalone===!0,signals:n.signals===!0,selectors:n.selectors||Rf,viewQuery:n.viewQuery||null,features:n.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:d3e(n.inputs,e),outputs:d3e(n.outputs),debugInfo:null}}function gze(n){n.features?.forEach(e=>e(n))}function h3e(n,e){if(!n)return null;let t=e?hze:Tpt;return()=>(typeof n=="function"?n():n).map(i=>t(i)).filter(Apt)}function Dpt(n){let e=0,t=[n.selectors,n.ngContentSelectors,n.hostVars,n.hostAttrs,n.consts,n.vars,n.decls,n.encapsulation,n.standalone,n.signals,n.exportAs,JSON.stringify(n.inputs),JSON.stringify(n.outputs),Object.getOwnPropertyNames(n.type.prototype),!!n.contentQueries,!!n.viewQuery].join("|");for(let r of t)e=Math.imul(31,e)+r.charCodeAt(0)<<0;return e+=2147483648,"c"+e}function rO(n){return{\u0275providers:n}}function Cxe(...n){return{\u0275providers:_ze(!0,n),\u0275fromNgModule:!0}}function _ze(n,...e){let t=[],i=new Set,r,o=s=>{t.push(s)};return bxe(e,s=>{let c=s;hbe(c,o,[],i)&&(r||=[],r.push(c))}),r!==void 0&&vze(r,o),t}function vze(n,e){for(let t=0;t{e(o,i)})}}function hbe(n,e,t,i){if(n=ph(n),!n)return!1;let r=null,o=o3e(n),s=!o&&DI(n);if(!o&&!s){let h=n.ngModule;if(o=o3e(h),o)r=h;else return!1}else{if(s&&!s.standalone)return!1;r=n}let c=i.has(r);if(s){if(c)return!1;if(i.add(r),s.dependencies){let h=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let g of h)hbe(g,e,t,i)}}else if(o){if(o.imports!=null&&!c){i.add(r);let g;try{bxe(o.imports,x=>{hbe(x,e,t,i)&&(g||=[],g.push(x))})}finally{}g!==void 0&&vze(g,e)}if(!c){let g=WM(r)||(()=>new r);e({provide:r,useFactory:g,deps:Rf},r),e({provide:aze,useValue:r,multi:!0},r),e({provide:hL,useValue:()=>Ke(r),multi:!0},r)}let h=o.providers;if(h!=null&&!c){let g=n;Sxe(h,x=>{e(x,g)})}}else return!1;return r!==n&&n.providers!==void 0}function Sxe(n,e){for(let t of n)tze(t)&&(t=t.\u0275providers),Array.isArray(t)?Sxe(t,e):e(t)}var kpt=Pl({provide:String,useValue:Pl});function yze(n){return n!==null&&typeof n=="object"&&kpt in n}function Mpt(n){return!!(n&&n.useExisting)}function Opt(n){return!!(n&&n.useFactory)}function fL(n){return typeof n=="function"}function Rpt(n){return!!n.useClass}var JJ=new fi(""),_J={},Npt={},qye;function Exe(){return qye===void 0&&(qye=new TJ),qye}var zd=class{},Bj=class extends zd{get destroyed(){return this._destroyed}constructor(e,t,i,r){super(),this.parent=t,this.source=i,this.scopes=r,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,fbe(e,s=>this.processProvider(s)),this.records.set(sze,sL(void 0,this)),r.has("environment")&&this.records.set(zd,sL(void 0,this));let o=this.records.get(JJ);o!=null&&typeof o.value=="string"&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(aze,Rf,Hs.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let e=Js(null);try{for(let i of this._ngOnDestroyHooks)i.ngOnDestroy();let t=this._onDestroyHooks;this._onDestroyHooks=[];for(let i of t)i()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),Js(e)}}onDestroy(e){return this.assertNotDestroyed(),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){this.assertNotDestroyed();let t=II(this),i=Of(void 0),r;try{return e()}finally{II(t),Of(i)}}get(e,t=Fj,i=Hs.Default){if(this.assertNotDestroyed(),e.hasOwnProperty(a3e))return e[a3e](this);i=XJ(i);let r,o=II(this),s=Of(void 0);try{if(!(i&Hs.SkipSelf)){let h=this.records.get(e);if(h===void 0){let g=zpt(e)&&QJ(e);g&&this.injectableDefInScope(g)?h=sL(pbe(e),_J):h=null,this.records.set(e,h)}if(h!=null)return this.hydrate(e,h)}let c=i&Hs.Self?Exe():this.parent;return t=i&Hs.Optional&&t===Fj?null:t,c.get(e,t)}catch(c){if(c.name==="NullInjectorError"){if((c[EJ]=c[EJ]||[]).unshift(Pp(e)),o)throw c;return apt(c,e,"R3InjectorError",this.source)}else throw c}finally{Of(s),II(o)}}resolveInjectorInitializers(){let e=Js(null),t=II(this),i=Of(void 0),r;try{let o=this.get(hL,Rf,Hs.Self);for(let s of o)s()}finally{II(t),Of(i),Js(e)}}toString(){let e=[],t=this.records;for(let i of t.keys())e.push(Pp(i));return`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Fn(205,!1)}processProvider(e){e=ph(e);let t=fL(e)?e:ph(e&&e.provide),i=Fpt(e);if(!fL(e)&&e.multi===!0){let r=this.records.get(t);r||(r=sL(void 0,_J,!0),r.factory=()=>ube(r.multi),this.records.set(t,r)),t=e,r.multi.push(e)}this.records.set(t,i)}hydrate(e,t){let i=Js(null);try{return t.value===_J&&(t.value=Npt,t.value=t.factory()),typeof t.value=="object"&&t.value&&Bpt(t.value)&&this._ngOnDestroyHooks.add(t.value),t.value}finally{Js(i)}}injectableDefInScope(e){if(!e.providedIn)return!1;let t=ph(e.providedIn);return typeof t=="string"?t==="any"||this.scopes.has(t):this.injectorDefTypes.has(t)}removeOnDestroy(e){let t=this._onDestroyHooks.indexOf(e);t!==-1&&this._onDestroyHooks.splice(t,1)}};function pbe(n){let e=QJ(n),t=e!==null?e.factory:WM(n);if(t!==null)return t;if(n instanceof fi)throw new Fn(204,!1);if(n instanceof Function)return Ppt(n);throw new Fn(204,!1)}function Ppt(n){if(n.length>0)throw new Fn(204,!1);let t=qht(n);return t!==null?()=>t.factory(n):()=>new n}function Fpt(n){if(yze(n))return sL(void 0,n.useValue);{let e=bze(n);return sL(e,_J)}}function bze(n,e,t){let i;if(fL(n)){let r=ph(n);return WM(r)||pbe(r)}else if(yze(n))i=()=>ph(n.useValue);else if(Opt(n))i=()=>n.useFactory(...ube(n.deps||[]));else if(Mpt(n))i=()=>Ke(ph(n.useExisting));else{let r=ph(n&&(n.useClass||n.provide));if(Lpt(n))i=()=>new r(...ube(n.deps));else return WM(r)||pbe(r)}return i}function sL(n,e,t=!1){return{factory:n,value:e,multi:t?[]:void 0}}function Lpt(n){return!!n.deps}function Bpt(n){return n!==null&&typeof n=="object"&&typeof n.ngOnDestroy=="function"}function zpt(n){return typeof n=="function"||typeof n=="object"&&n instanceof fi}function fbe(n,e){for(let t of n)Array.isArray(t)?fbe(t,e):t&&tze(t)?fbe(t.\u0275providers,e):e(t)}function Nf(n,e){n instanceof Bj&&n.assertNotDestroyed();let t,i=II(n),r=Of(void 0);try{return e()}finally{II(i),Of(r)}}function xze(){return ize()!==void 0||rpt()!=null}function Ixe(n){if(!xze())throw new Fn(-203,!1)}function Vpt(n){return typeof n=="function"}var Tb=0,ys=1,Jo=2,Yh=3,Jv=4,Pf=5,mL=6,AJ=7,Hh=8,gL=9,Cb=10,Cc=11,zj=12,p3e=13,EL=14,jm=15,ZM=16,aL=17,vw=18,eee=19,wze=20,TI=21,vJ=22,QM=23,Vd=25,Txe=1;var XM=7,DJ=8,_L=9,Gh=10,kJ=function(n){return n[n.None=0]="None",n[n.HasTransplantedViews=2]="HasTransplantedViews",n}(kJ||{});function AI(n){return Array.isArray(n)&&typeof n[Txe]=="object"}function ww(n){return Array.isArray(n)&&n[Txe]===!0}function Axe(n){return(n.flags&4)!==0}function tee(n){return n.componentOffset>-1}function iee(n){return(n.flags&1)===1}function yw(n){return!!n.template}function mbe(n){return(n[Jo]&512)!==0}var gbe=class{constructor(e,t,i){this.previousValue=e,this.currentValue=t,this.firstChange=i}isFirstChange(){return this.firstChange}};function Cze(n,e,t,i){e!==null?e.applyValueToInputSignal(e,i):n[t]=i}function eo(){return Sze}function Sze(n){return n.type.prototype.ngOnChanges&&(n.setInput=jpt),Upt}eo.ngInherit=!0;function Upt(){let n=Ize(this),e=n?.current;if(e){let t=n.previous;if(t===_w)n.previous=e;else for(let i in e)t[i]=e[i];n.current=null,this.ngOnChanges(e)}}function jpt(n,e,t,i,r){let o=this.declaredInputs[i],s=Ize(n)||Hpt(n,{previous:_w,current:null}),c=s.current||(s.current={}),h=s.previous,g=h[o];c[o]=new gbe(g&&g.currentValue,t,h===_w),Cze(n,e,r,t)}var Eze="__ngSimpleChanges__";function Ize(n){return n[Eze]||null}function Hpt(n,e){return n[Eze]=e}var f3e=null;var bb=function(n,e,t){f3e?.(n,e,t)},Tze="svg",Gpt="math";function Sb(n){for(;Array.isArray(n);)n=n[Tb];return n}function Ypt(n){for(;Array.isArray(n);){if(typeof n[Txe]=="object")return n;n=n[Tb]}return null}function Aze(n,e){return Sb(e[n])}function p_(n,e){return Sb(e[n.index])}function Dxe(n,e){return n.data[e]}function kxe(n,e){return n[e]}function NI(n,e){let t=e[n];return AI(t)?t:t[Tb]}function qpt(n){return(n[Jo]&4)===4}function Mxe(n){return(n[Jo]&128)===128}function $pt(n){return ww(n[Yh])}function kI(n,e){return e==null?null:n[e]}function Dze(n){n[aL]=0}function Kpt(n){n[Jo]&1024||(n[Jo]|=1024,Mxe(n)&&nee(n))}function Wpt(n,e){for(;n>0;)e=e[EL],n--;return e}function Vj(n){return!!(n[Jo]&9216||n[QM]?.dirty)}function _be(n){n[Cb].changeDetectionScheduler?.notify(7),n[Jo]&64&&(n[Jo]|=1024),Vj(n)&&nee(n)}function nee(n){n[Cb].changeDetectionScheduler?.notify(0);let e=Uj(n);for(;e!==null&&!(e[Jo]&8192||(e[Jo]|=8192,!Mxe(e)));)e=Uj(e)}function kze(n,e){if((n[Jo]&256)===256)throw new Fn(911,!1);n[TI]===null&&(n[TI]=[]),n[TI].push(e)}function Zpt(n,e){if(n[TI]===null)return;let t=n[TI].indexOf(e);t!==-1&&n[TI].splice(t,1)}function Uj(n){let e=n[Yh];return ww(e)?e[Yh]:e}var As={lFrame:zze(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var Mze=!1;function Qpt(){return As.lFrame.elementDepthCount}function Xpt(){As.lFrame.elementDepthCount++}function Jpt(){As.lFrame.elementDepthCount--}function Oze(){return As.bindingsEnabled}function Rze(){return As.skipHydrationRootTNode!==null}function eft(n){return As.skipHydrationRootTNode===n}function tft(){As.skipHydrationRootTNode=null}function mo(){return As.lFrame.lView}function cc(){return As.lFrame.tView}function ht(n){return As.lFrame.contextLView=n,n[Hh]}function pt(n){return As.lFrame.contextLView=null,n}function Ud(){let n=Nze();for(;n!==null&&n.type===64;)n=n.parent;return n}function Nze(){return As.lFrame.currentTNode}function ift(){let n=As.lFrame,e=n.currentTNode;return n.isParent?e:e.parent}function oO(n,e){let t=As.lFrame;t.currentTNode=n,t.isParent=e}function Oxe(){return As.lFrame.isParent}function Rxe(){As.lFrame.isParent=!1}function nft(){return As.lFrame.contextLView}function Pze(){return Mze}function m3e(n){Mze=n}function t0(){let n=As.lFrame,e=n.bindingRootIndex;return e===-1&&(e=n.bindingRootIndex=n.tView.bindingStartIndex),e}function rft(){return As.lFrame.bindingIndex}function oft(n){return As.lFrame.bindingIndex=n}function PI(){return As.lFrame.bindingIndex++}function Nxe(n){let e=As.lFrame,t=e.bindingIndex;return e.bindingIndex=e.bindingIndex+n,t}function sft(){return As.lFrame.inI18n}function aft(n,e){let t=As.lFrame;t.bindingIndex=t.bindingRootIndex=n,vbe(e)}function lft(){return As.lFrame.currentDirectiveIndex}function vbe(n){As.lFrame.currentDirectiveIndex=n}function Pxe(n){let e=As.lFrame.currentDirectiveIndex;return e===-1?null:n[e]}function Fze(){return As.lFrame.currentQueryIndex}function Fxe(n){As.lFrame.currentQueryIndex=n}function cft(n){let e=n[ys];return e.type===2?e.declTNode:e.type===1?n[Pf]:null}function Lze(n,e,t){if(t&Hs.SkipSelf){let r=e,o=n;for(;r=r.parent,r===null&&!(t&Hs.Host);)if(r=cft(o),r===null||(o=o[EL],r.type&10))break;if(r===null)return!1;e=r,n=o}let i=As.lFrame=Bze();return i.currentTNode=e,i.lView=n,!0}function Lxe(n){let e=Bze(),t=n[ys];As.lFrame=e,e.currentTNode=t.firstChild,e.lView=n,e.tView=t,e.contextLView=n,e.bindingIndex=t.bindingStartIndex,e.inI18n=!1}function Bze(){let n=As.lFrame,e=n===null?null:n.child;return e===null?zze(n):e}function zze(n){let e={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:n,child:null,inI18n:!1};return n!==null&&(n.child=e),e}function Vze(){let n=As.lFrame;return As.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}var Uze=Vze;function Bxe(){let n=Vze();n.isParent=!0,n.tView=null,n.selectedIndex=-1,n.contextLView=null,n.elementDepthCount=0,n.currentDirectiveIndex=-1,n.currentNamespace=null,n.bindingRootIndex=-1,n.bindingIndex=-1,n.currentQueryIndex=0}function uft(n){return(As.lFrame.contextLView=Wpt(n,As.lFrame.contextLView))[Hh]}function Cw(){return As.lFrame.selectedIndex}function JM(n){As.lFrame.selectedIndex=n}function Wj(){let n=As.lFrame;return Dxe(n.tView,n.selectedIndex)}function Rr(){As.lFrame.currentNamespace=Tze}function sO(){dft()}function dft(){As.lFrame.currentNamespace=null}function hft(){return As.lFrame.currentNamespace}var jze=!0;function ree(){return jze}function oee(n){jze=n}function pft(n,e,t){let{ngOnChanges:i,ngOnInit:r,ngDoCheck:o}=e.type.prototype;if(i){let s=Sze(e);(t.preOrderHooks??=[]).push(n,s),(t.preOrderCheckHooks??=[]).push(n,s)}r&&(t.preOrderHooks??=[]).push(0-n,r),o&&((t.preOrderHooks??=[]).push(n,o),(t.preOrderCheckHooks??=[]).push(n,o))}function see(n,e){for(let t=e.directiveStart,i=e.directiveEnd;t=i)break}else e[h]<0&&(n[aL]+=65536),(c>14>16&&(n[Jo]&3)===e&&(n[Jo]+=16384,g3e(c,o)):g3e(c,o)}var uL=-1,eO=class{constructor(e,t,i){this.factory=e,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=i}};function mft(n){return n instanceof eO}function gft(n){return(n.flags&8)!==0}function _ft(n){return(n.flags&16)!==0}function Gze(n){return n!==uL}function MJ(n){return n&32767}function vft(n){return n>>16}function OJ(n,e){let t=vft(n),i=e;for(;t>0;)i=i[EL],t--;return i}var ybe=!0;function RJ(n){let e=ybe;return ybe=n,e}var yft=256,Yze=yft-1,qze=5,bft=0,xb={};function xft(n,e,t){let i;typeof t=="string"?i=t.charCodeAt(0)||0:t.hasOwnProperty(Pj)&&(i=t[Pj]),i==null&&(i=t[Pj]=bft++);let r=i&Yze,o=1<>qze)]|=o}function NJ(n,e){let t=$ze(n,e);if(t!==-1)return t;let i=e[ys];i.firstCreatePass&&(n.injectorIndex=e.length,Kye(i.data,n),Kye(e,null),Kye(i.blueprint,null));let r=zxe(n,e),o=n.injectorIndex;if(Gze(r)){let s=MJ(r),c=OJ(r,e),h=c[ys].data;for(let g=0;g<8;g++)e[o+g]=c[s+g]|h[s+g]}return e[o+8]=r,o}function Kye(n,e){n.push(0,0,0,0,0,0,0,0,e)}function $ze(n,e){return n.injectorIndex===-1||n.parent&&n.parent.injectorIndex===n.injectorIndex||e[n.injectorIndex+8]===null?-1:n.injectorIndex}function zxe(n,e){if(n.parent&&n.parent.injectorIndex!==-1)return n.parent.injectorIndex;let t=0,i=null,r=e;for(;r!==null;){if(i=Xze(r),i===null)return uL;if(t++,r=r[EL],i.injectorIndex!==-1)return i.injectorIndex|t<<16}return uL}function bbe(n,e,t){xft(n,e,t)}function wft(n,e){if(e==="class")return n.classes;if(e==="style")return n.styles;let t=n.attrs;if(t){let i=t.length,r=0;for(;r>20,C=i?c:c+x,A=r?c+x:g;for(let k=C;k=h&&O.type===t)return k}if(r){let k=s[h];if(k&&yw(k)&&k.type===t)return h}return null}function tO(n,e,t,i){let r=n[t],o=e.data;if(mft(r)){let s=r;s.resolving&&Jht(Xht(o[t]));let c=RJ(s.canSeeViewProviders);s.resolving=!0;let h,g=s.injectImpl?Of(s.injectImpl):null,x=Lze(n,i,Hs.Default);try{r=n[t]=s.factory(void 0,o,n,i),e.firstCreatePass&&t>=i.directiveStart&&pft(t,o[t],e)}finally{g!==null&&Of(g),RJ(c),s.resolving=!1,Uze()}}return r}function Sft(n){if(typeof n=="string")return n.charCodeAt(0)||0;let e=n.hasOwnProperty(Pj)?n[Pj]:void 0;return typeof e=="number"?e>=0?e&Yze:Eft:e}function _3e(n,e,t){let i=1<>qze)]&i)}function v3e(n,e){return!(n&Hs.Self)&&!(n&Hs.Host&&e)}var KM=class{constructor(e,t){this._tNode=e,this._lView=t}get(e,t,i){return Zze(this._tNode,this._lView,e,XJ(i),t)}};function Eft(){return new KM(Ud(),mo())}function Qn(n){return Yj(()=>{let e=n.prototype.constructor,t=e[SJ]||xbe(e),i=Object.prototype,r=Object.getPrototypeOf(n.prototype).constructor;for(;r&&r!==i;){let o=r[SJ]||xbe(r);if(o&&o!==t)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function xbe(n){return Q3e(n)?()=>{let e=xbe(ph(n));return e&&e()}:WM(n)}function Ift(n,e,t,i,r){let o=n,s=e;for(;o!==null&&s!==null&&s[Jo]&2048&&!(s[Jo]&512);){let c=Qze(o,s,t,i|Hs.Self,xb);if(c!==xb)return c;let h=o.parent;if(!h){let g=s[wze];if(g){let x=g.get(t,xb,i);if(x!==xb)return x}h=Xze(s),s=s[EL]}o=h}return r}function Xze(n){let e=n[ys],t=e.type;return t===2?e.declTNode:t===1?n[Pf]:null}function Hm(n){return wft(Ud(),n)}function y3e(n,e=null,t=null,i){let r=Jze(n,e,t,i);return r.resolveInjectorInitializers(),r}function Jze(n,e=null,t=null,i,r=new Set){let o=[t||Rf,Cxe(n)];return i=i||(typeof n=="object"?void 0:Pp(n)),new Bj(o,e||Exe(),i||null,r)}var $M=class $M{static create(e,t){if(Array.isArray(e))return y3e({name:""},t,e,"");{let i=e.name??"";return y3e({name:i},e.parent,e.providers,i)}}};$M.THROW_IF_NOT_FOUND=Fj,$M.NULL=new TJ,$M.\u0275prov=It({token:$M,providedIn:"any",factory:()=>Ke(sze)}),$M.__NG_ELEMENT_ID__=-1;var yo=$M;var Tft=new fi("");Tft.__NG_ELEMENT_ID__=n=>{let e=Ud();if(e===null)throw new Fn(204,!1);if(e.type&2)return e.value;if(n&Hs.Optional)return null;throw new Fn(204,!1)};var Aft="ngOriginalError";function Wye(n){return n[Aft]}var sd=class{constructor(){this._console=console}handleError(e){let t=this._findOriginalError(e);this._console.error("ERROR",e),t&&this._console.error("ORIGINAL ERROR",t)}_findOriginalError(e){let t=e&&Wye(e);for(;t&&Wye(t);)t=Wye(t);return t||null}},eVe=new fi("",{providedIn:"root",factory:()=>ai(sd).handleError.bind(void 0)}),Zj=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=Dft,e.__NG_ENV_ID__=i=>i;let n=e;return n})(),wbe=class extends Zj{constructor(e){super(),this._lView=e}onDestroy(e){return kze(this._lView,e),()=>Zpt(this._lView,e)}};function Dft(){return new wbe(mo())}function kft(){return IL(Ud(),mo())}function IL(n,e){return new Ai(p_(n,e))}var Ai=(()=>{let e=class e{constructor(i){this.nativeElement=i}};e.__NG_ELEMENT_ID__=kft;let n=e;return n})();function Mft(n){return n instanceof Ai?n.nativeElement:n}var Cbe=class extends mi{constructor(e=!1){super(),this.destroyRef=void 0,this.__isAsync=e,xze()&&(this.destroyRef=ai(Zj,{optional:!0})??void 0)}emit(e){let t=Js(null);try{super.next(e)}finally{Js(t)}}subscribe(e,t,i){let r=e,o=t||(()=>null),s=i;if(e&&typeof e=="object"){let h=e;r=h.next?.bind(h),o=h.error?.bind(h),s=h.complete?.bind(h)}this.__isAsync&&(o=Zye(o),r&&(r=Zye(r)),s&&(s=Zye(s)));let c=super.subscribe({next:r,error:o,complete:s});return e instanceof Qo&&e.add(c),c}};function Zye(n){return e=>{setTimeout(n,void 0,e)}}var Kt=Cbe;function Oft(){return this._results[Symbol.iterator]()}var fh=class n{get changes(){return this._changes??=new Kt}constructor(e=!1){this._emitDistinctChangesOnly=e,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;let t=n.prototype;t[Symbol.iterator]||(t[Symbol.iterator]=Oft)}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,t){return this._results.reduce(e,t)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,t){this.dirty=!1;let i=upt(e);(this._changesDetected=!cpt(this._results,i,t))&&(this._results=i,this.length=i.length,this.last=i[this.length-1],this.first=i[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}onDirty(e){this._onDirty=e}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}};function tVe(n){return(n.flags&128)===128}var iVe=new Map,Rft=0;function Nft(){return Rft++}function Pft(n){iVe.set(n[eee],n)}function Fft(n){iVe.delete(n[eee])}var b3e="__ngContext__";function MI(n,e){AI(e)?(n[b3e]=e[eee],Pft(e)):n[b3e]=e}function nVe(n){return oVe(n[zj])}function rVe(n){return oVe(n[Jv])}function oVe(n){for(;n!==null&&!ww(n);)n=n[Jv];return n}var Sbe;function sVe(n){Sbe=n}function Lft(){if(Sbe!==void 0)return Sbe;if(typeof document<"u")return document;throw new Fn(210,!1)}var TL=new fi("",{providedIn:"root",factory:()=>Bft}),Bft="ng",Vxe=new fi(""),va=new fi("",{providedIn:"platform",factory:()=>"unknown"});var da=new fi(""),Qj=new fi("",{providedIn:"root",factory:()=>Lft().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var zft="h",Vft="b";var Uft=()=>null;function Uxe(n,e,t=!1){return Uft(n,e,t)}var aVe=!1,jft=new fi("",{providedIn:"root",factory:()=>aVe});var hJ;function Hft(){if(hJ===void 0&&(hJ=null,Bd.trustedTypes))try{hJ=Bd.trustedTypes.createPolicy("angular",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch{}return hJ}function aee(n){return Hft()?.createHTML(n)||n}var pJ;function Gft(){if(pJ===void 0&&(pJ=null,Bd.trustedTypes))try{pJ=Bd.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch{}return pJ}function x3e(n){return Gft()?.createScriptURL(n)||n}var bw=class{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Z3e})`}},Ebe=class extends bw{getTypeName(){return"HTML"}},Ibe=class extends bw{getTypeName(){return"Style"}},Tbe=class extends bw{getTypeName(){return"Script"}},Abe=class extends bw{getTypeName(){return"URL"}},Dbe=class extends bw{getTypeName(){return"ResourceURL"}};function f_(n){return n instanceof bw?n.changingThisBreaksApplicationSecurity:n}function FI(n,e){let t=Yft(n);if(t!=null&&t!==e){if(t==="ResourceURL"&&e==="URL")return!0;throw new Error(`Required a safe ${e}, got a ${t} (see ${Z3e})`)}return t===e}function Yft(n){return n instanceof bw&&n.getTypeName()||null}function lVe(n){return new Ebe(n)}function cVe(n){return new Ibe(n)}function uVe(n){return new Tbe(n)}function dVe(n){return new Abe(n)}function hVe(n){return new Dbe(n)}function qft(n){let e=new Mbe(n);return $ft()?new kbe(e):e}var kbe=class{constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e=""+e;try{let t=new window.DOMParser().parseFromString(aee(e),"text/html").body;return t===null?this.inertDocumentHelper.getInertBodyElement(e):(t.removeChild(t.firstChild),t)}catch{return null}}},Mbe=class{constructor(e){this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(e){let t=this.inertDocument.createElement("template");return t.innerHTML=aee(e),t}};function $ft(){try{return!!new window.DOMParser().parseFromString(aee(""),"text/html")}catch{return!1}}var Kft=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function lee(n){return n=String(n),n.match(Kft)?n:"unsafe:"+n}function Sw(n){let e={};for(let t of n.split(","))e[t]=!0;return e}function Xj(...n){let e={};for(let t of n)for(let i in t)t.hasOwnProperty(i)&&(e[i]=!0);return e}var pVe=Sw("area,br,col,hr,img,wbr"),fVe=Sw("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),mVe=Sw("rp,rt"),Wft=Xj(mVe,fVe),Zft=Xj(fVe,Sw("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")),Qft=Xj(mVe,Sw("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")),w3e=Xj(pVe,Zft,Qft,Wft),gVe=Sw("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Xft=Sw("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,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Jft=Sw("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"),emt=Xj(gVe,Xft,Jft),tmt=Sw("script,style,template"),Obe=class{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(e){let t=e.firstChild,i=!0,r=[];for(;t;){if(t.nodeType===Node.ELEMENT_NODE?i=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,i&&t.firstChild){r.push(t),t=rmt(t);continue}for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);let o=nmt(t);if(o){t=o;break}t=r.pop()}}return this.buf.join("")}startElement(e){let t=C3e(e).toLowerCase();if(!w3e.hasOwnProperty(t))return this.sanitizedSomething=!0,!tmt.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);let i=e.attributes;for(let r=0;r"),!0}endElement(e){let t=C3e(e).toLowerCase();w3e.hasOwnProperty(t)&&!pVe.hasOwnProperty(t)&&(this.buf.push(""))}chars(e){this.buf.push(S3e(e))}};function imt(n,e){return(n.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function nmt(n){let e=n.nextSibling;if(e&&n!==e.previousSibling)throw _Ve(e);return e}function rmt(n){let e=n.firstChild;if(e&&imt(n,e))throw _Ve(e);return e}function C3e(n){let e=n.nodeName;return typeof e=="string"?e:"FORM"}function _Ve(n){return new Error(`Failed to sanitize html because the element is clobbered: ${n.outerHTML}`)}var omt=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,smt=/([^\#-~ |!])/g;function S3e(n){return n.replace(/&/g,"&").replace(omt,function(e){let t=e.charCodeAt(0),i=e.charCodeAt(1);return"&#"+((t-55296)*1024+(i-56320)+65536)+";"}).replace(smt,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}var fJ;function vVe(n,e){let t=null;try{fJ=fJ||qft(n);let i=e?String(e):"";t=fJ.getInertBodyElement(i);let r=5,o=i;do{if(r===0)throw new Error("Failed to sanitize html because the input is unstable");r--,i=o,o=t.innerHTML,t=fJ.getInertBodyElement(i)}while(i!==o);let c=new Obe().sanitizeChildren(E3e(t)||t);return aee(c)}finally{if(t){let i=E3e(t)||t;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function E3e(n){return"content"in n&&amt(n)?n.content:null}function amt(n){return n.nodeType===Node.ELEMENT_NODE&&n.nodeName==="TEMPLATE"}var mh=function(n){return n[n.NONE=0]="NONE",n[n.HTML=1]="HTML",n[n.STYLE=2]="STYLE",n[n.SCRIPT=3]="SCRIPT",n[n.URL=4]="URL",n[n.RESOURCE_URL=5]="RESOURCE_URL",n}(mh||{});function Ff(n){let e=bVe();return e?e.sanitize(mh.URL,n)||"":FI(n,"URL")?f_(n):lee(dL(n))}function lmt(n){let e=bVe();if(e)return x3e(e.sanitize(mh.RESOURCE_URL,n)||"");if(FI(n,"ResourceURL"))return x3e(f_(n));throw new Fn(904,!1)}function cmt(n,e){return e==="src"&&(n==="embed"||n==="frame"||n==="iframe"||n==="media"||n==="script")||e==="href"&&(n==="base"||n==="link")?lmt:Ff}function yVe(n,e,t){return cmt(e,t)(n)}function bVe(){let n=mo();return n&&n[Cb].sanitizer}var umt=/^>|^->||--!>|)/g,hmt="\u200B$1\u200B";function pmt(n){return n.replace(umt,e=>e.replace(dmt,hmt))}function xVe(n){return n.ownerDocument}function wVe(n){return n instanceof Function?n():n}function CVe(n){return(n??ai(yo)).get(va)==="browser"}var Eb=function(n){return n[n.Important=1]="Important",n[n.DashCase=2]="DashCase",n}(Eb||{}),fmt;function jxe(n,e){return fmt(n,e)}function lL(n,e,t,i,r){if(i!=null){let o,s=!1;ww(i)?o=i:AI(i)&&(s=!0,i=i[Tb]);let c=Sb(i);n===0&&t!==null?r==null?AVe(e,t,c):PJ(e,t,c,r||null,!0):n===1&&t!==null?PJ(e,t,c,r||null,!0):n===2?Dmt(e,c,s):n===3&&e.destroyNode(c),o!=null&&Mmt(e,n,o,t,r)}}function mmt(n,e){return n.createText(e)}function gmt(n,e,t){n.setValue(e,t)}function _mt(n,e){return n.createComment(pmt(e))}function SVe(n,e,t){return n.createElement(e,t)}function vmt(n,e){EVe(n,e),e[Tb]=null,e[Pf]=null}function ymt(n,e,t,i,r,o){i[Tb]=r,i[Pf]=e,dee(n,i,t,1,r,o)}function EVe(n,e){e[Cb].changeDetectionScheduler?.notify(8),dee(n,e,e[Cc],2,null,null)}function bmt(n){let e=n[zj];if(!e)return Qye(n[ys],n);for(;e;){let t=null;if(AI(e))t=e[zj];else{let i=e[Gh];i&&(t=i)}if(!t){for(;e&&!e[Jv]&&e!==n;)AI(e)&&Qye(e[ys],e),e=e[Yh];e===null&&(e=n),AI(e)&&Qye(e[ys],e),t=e&&e[Jv]}e=t}}function xmt(n,e,t,i){let r=Gh+i,o=t.length;i>0&&(t[r-1][Jv]=e),i0&&(n[t-1][Jv]=i[Jv]);let o=IJ(n,Gh+e);vmt(i[ys],i);let s=o[vw];s!==null&&s.detachView(o[ys]),i[Yh]=null,i[Jv]=null,i[Jo]&=-129}return i}function cee(n,e){if(!(e[Jo]&256)){let t=e[Cc];t.destroyNode&&dee(n,e,t,3,null,null),bmt(e)}}function Qye(n,e){if(e[Jo]&256)return;let t=Js(null);try{e[Jo]&=-129,e[Jo]|=256,e[QM]&&Eye(e[QM]),Cmt(n,e),wmt(n,e),e[ys].type===1&&e[Cc].destroy();let i=e[ZM];if(i!==null&&ww(e[Yh])){i!==e[Yh]&&Hxe(i,e);let r=e[vw];r!==null&&r.detachView(n)}Fft(e)}finally{Js(t)}}function wmt(n,e){let t=n.cleanup,i=e[AJ];if(t!==null)for(let o=0;o=0?i[s]():i[-s].unsubscribe(),o+=2}else{let s=i[t[o+1]];t[o].call(s)}i!==null&&(e[AJ]=null);let r=e[TI];if(r!==null){e[TI]=null;for(let o=0;o-1){let{encapsulation:o}=n.data[i.directiveStart+r];if(o===wb.None||o===wb.Emulated)return null}return p_(i,t)}}function PJ(n,e,t,i,r){n.insertBefore(e,t,i,r)}function AVe(n,e,t){n.appendChild(e,t)}function I3e(n,e,t,i,r){i!==null?PJ(n,e,t,i,r):AVe(n,e,t)}function Emt(n,e,t,i){n.removeChild(e,t,i)}function Gxe(n,e){return n.parentNode(e)}function Imt(n,e){return n.nextSibling(e)}function DVe(n,e,t){return Amt(n,e,t)}function Tmt(n,e,t){return n.type&40?p_(n,t):null}var Amt=Tmt,T3e;function uee(n,e,t,i){let r=TVe(n,i,e),o=e[Cc],s=i.parent||e[Pf],c=DVe(s,i,e);if(r!=null)if(Array.isArray(t))for(let h=0;hVd&&NVe(n,e,Vd,!1),bb(s?2:0,r),t(i,r)}finally{JM(o),bb(s?3:1,r)}}function qxe(n,e,t){if(Axe(e)){let i=Js(null);try{let r=e.directiveStart,o=e.directiveEnd;for(let s=r;snull;function Vmt(n,e,t,i){let r=HVe(e);r.push(t),n.firstCreatePass&&GVe(n).push(i,r.length-1)}function Umt(n,e,t,i,r,o){let s=e?e.injectorIndex:-1,c=0;return Rze()&&(c|=128),{type:t,index:i,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:c,providerIndexes:0,value:r,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function A3e(n,e,t,i,r){for(let o in e){if(!e.hasOwnProperty(o))continue;let s=e[o];if(s===void 0)continue;i??={};let c,h=pL.None;Array.isArray(s)?(c=s[0],h=s[1]):c=s;let g=o;if(r!==null){if(!r.hasOwnProperty(o))continue;g=r[o]}n===0?D3e(i,t,g,c,h):D3e(i,t,g,c)}return i}function D3e(n,e,t,i,r){let o;n.hasOwnProperty(t)?(o=n[t]).push(e,i):o=n[t]=[e,i],r!==void 0&&o.push(r)}function jmt(n,e,t){let i=e.directiveStart,r=e.directiveEnd,o=n.data,s=e.attrs,c=[],h=null,g=null;for(let x=i;x0;){let t=n[--e];if(typeof t=="number"&&t<0)return t}return 0}function $mt(n,e,t,i){let r=t.directiveStart,o=t.directiveEnd;tee(t)&&egt(e,t,n.data[r+t.componentOffset]),n.firstCreatePass||NJ(t,e),MI(i,e);let s=t.initialInputs;for(let c=r;c{nee(n.lView)},consumerOnSignalRead(){this.lView[QM]=this}}),pgt=100;function QVe(n,e=!0,t=0){let i=n[Cb],r=i.rendererFactory,o=!1;o||r.begin?.();try{fgt(n,t)}catch(s){throw e&&qVe(n,s),s}finally{o||(r.end?.(),i.inlineEffectRunner?.flush())}}function fgt(n,e){let t=Pze();try{m3e(!0),Fbe(n,e);let i=0;for(;Vj(n);){if(i===pgt)throw new Fn(103,!1);i++,Fbe(n,1)}}finally{m3e(t)}}function mgt(n,e,t,i){let r=e[Jo];if((r&256)===256)return;let o=!1,s=!1;!o&&e[Cb].inlineEffectRunner?.flush(),Lxe(e);let c=null,h=null;!o&&ggt(n)&&(h=cgt(e),c=PX(h));try{Dze(e),oft(n.bindingStartIndex),t!==null&&LVe(n,e,t,2,i);let g=(r&3)===3;if(!o)if(g){let A=n.preOrderCheckHooks;A!==null&&yJ(e,A,null)}else{let A=n.preOrderHooks;A!==null&&bJ(e,A,0,null),$ye(e,0)}if(s||_gt(e),XVe(e,0),n.contentQueries!==null&&jVe(n,e),!o)if(g){let A=n.contentCheckHooks;A!==null&&yJ(e,A)}else{let A=n.contentHooks;A!==null&&bJ(e,A,1),$ye(e,1)}Nmt(n,e);let x=n.components;x!==null&&e4e(e,x,0);let C=n.viewQuery;if(C!==null&&Pbe(2,C,i),!o)if(g){let A=n.viewCheckHooks;A!==null&&yJ(e,A)}else{let A=n.viewHooks;A!==null&&bJ(e,A,2),$ye(e,2)}if(n.firstUpdatePass===!0&&(n.firstUpdatePass=!1),e[vJ]){for(let A of e[vJ])A();e[vJ]=null}o||(e[Jo]&=-73)}catch(g){throw o||nee(e),g}finally{h!==null&&(FX(h,c),dgt(h)),Bxe()}}function ggt(n){return n.type!==2}function XVe(n,e){for(let t=nVe(n);t!==null;t=rVe(t))for(let i=Gh;i-1&&(jj(e,i),IJ(t,i))}this._attachedToViewContainer=!1}cee(this._lView[ys],this._lView)}onDestroy(e){kze(this._lView,e)}markForCheck(){Jxe(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[Jo]&=-129}reattach(){_be(this._lView),this._lView[Jo]|=128}detectChanges(){this._lView[Jo]|=1024,QVe(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new Fn(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let e=mbe(this._lView),t=this._lView[ZM];t!==null&&!e&&Hxe(t,this._lView),EVe(this._lView[ys],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new Fn(902,!1);this._appRef=e;let t=mbe(this._lView),i=this._lView[ZM];i!==null&&!t&&IVe(i,this._lView),_be(this._lView)}},qa=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=xgt;let n=e;return n})(),ygt=qa,bgt=class extends ygt{constructor(e,t,i){super(),this._declarationLView=e,this._declarationTContainer=t,this.elementRef=i}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,t){return this.createEmbeddedViewImpl(e,t)}createEmbeddedViewImpl(e,t,i){let r=eH(this._declarationLView,this._declarationTContainer,e,{embeddedViewInjector:t,dehydratedView:i});return new iO(r)}};function xgt(){return mee(Ud(),mo())}function mee(n,e){return n.type&4?new bgt(e,n,IL(n,e)):null}var $hi=new RegExp(`^(\\d+)*(${Vft}|${zft})*(.*)`);var wgt=()=>null;function yL(n,e){return wgt(n,e)}var bL=class{},e1e=new fi("",{providedIn:"root",factory:()=>!1});var t4e=new fi(""),Lbe=class{},LJ=class{};function Cgt(n){let e=Error(`No component factory found for ${Pp(n)}.`);return e[Sgt]=n,e}var Sgt="ngComponent";var Bbe=class{resolveComponentFactory(e){throw Cgt(e)}},d1e=class d1e{};d1e.NULL=new Bbe;var e0=d1e,Ib=class{},Fl=(()=>{let e=class e{constructor(){this.destroyNode=null}};e.__NG_ELEMENT_ID__=()=>Egt();let n=e;return n})();function Egt(){let n=mo(),e=Ud(),t=NI(e.index,n);return(AI(t)?t:n)[Cc]}var Igt=(()=>{let e=class e{};e.\u0275prov=It({token:e,providedIn:"root",factory:()=>null});let n=e;return n})(),Xye={};var k3e=new Set;function m_(n){k3e.has(n)||(k3e.add(n),performance?.mark?.("mark_feature_usage",{detail:{feature:n}}))}function i4e(n){let e=!0;return setTimeout(()=>{e&&(e=!1,n())}),typeof Bd.requestAnimationFrame=="function"&&Bd.requestAnimationFrame(()=>{e&&(e=!1,n())}),()=>{e=!1}}function M3e(n){let e=!0;return queueMicrotask(()=>{e&&n()}),()=>{e=!1}}function O3e(...n){}var Zi=class n{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:t=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Kt(!1),this.onMicrotaskEmpty=new Kt(!1),this.onStable=new Kt(!1),this.onError=new Kt(!1),typeof Zone>"u")throw new Fn(908,!1);Zone.assertZonePatched();let r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!i&&t,r.shouldCoalesceRunChangeDetection=i,r.callbackScheduled=!1,Dgt(r)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get("isAngularZone")===!0}static assertInAngularZone(){if(!n.isInAngularZone())throw new Fn(909,!1)}static assertNotInAngularZone(){if(n.isInAngularZone())throw new Fn(909,!1)}run(e,t,i){return this._inner.run(e,t,i)}runTask(e,t,i,r){let o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+r,e,Tgt,O3e,O3e);try{return o.runTask(s,t,i)}finally{o.cancelTask(s)}}runGuarded(e,t,i){return this._inner.runGuarded(e,t,i)}runOutsideAngular(e){return this._outer.run(e)}},Tgt={};function t1e(n){if(n._nesting==0&&!n.hasPendingMicrotasks&&!n.isStable)try{n._nesting++,n.onMicrotaskEmpty.emit(null)}finally{if(n._nesting--,!n.hasPendingMicrotasks)try{n.runOutsideAngular(()=>n.onStable.emit(null))}finally{n.isStable=!0}}}function Agt(n){n.isCheckStableRunning||n.callbackScheduled||(n.callbackScheduled=!0,Zone.root.run(()=>{i4e(()=>{n.callbackScheduled=!1,zbe(n),n.isCheckStableRunning=!0,t1e(n),n.isCheckStableRunning=!1})}),zbe(n))}function Dgt(n){let e=()=>{Agt(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(t,i,r,o,s,c)=>{if(kgt(c))return t.invokeTask(r,o,s,c);try{return R3e(n),t.invokeTask(r,o,s,c)}finally{(n.shouldCoalesceEventChangeDetection&&o.type==="eventTask"||n.shouldCoalesceRunChangeDetection)&&e(),N3e(n)}},onInvoke:(t,i,r,o,s,c,h)=>{try{return R3e(n),t.invoke(r,o,s,c,h)}finally{n.shouldCoalesceRunChangeDetection&&!n.callbackScheduled&&!Mgt(c)&&e(),N3e(n)}},onHasTask:(t,i,r,o)=>{t.hasTask(r,o),i===r&&(o.change=="microTask"?(n._hasPendingMicrotasks=o.microTask,zbe(n),t1e(n)):o.change=="macroTask"&&(n.hasPendingMacrotasks=o.macroTask))},onHandleError:(t,i,r,o)=>(t.handleError(r,o),n.runOutsideAngular(()=>n.onError.emit(o)),!1)})}function zbe(n){n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&n.callbackScheduled===!0?n.hasPendingMicrotasks=!0:n.hasPendingMicrotasks=!1}function R3e(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function N3e(n){n._nesting--,t1e(n)}var Vbe=class{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Kt,this.onMicrotaskEmpty=new Kt,this.onStable=new Kt,this.onError=new Kt}run(e,t,i){return e.apply(t,i)}runGuarded(e,t,i){return e.apply(t,i)}runOutsideAngular(e){return e()}runTask(e,t,i,r){return e.apply(t,i)}};function kgt(n){return n4e(n,"__ignore_ng_zone__")}function Mgt(n){return n4e(n,"__scheduler_tick__")}function n4e(n,e){return!Array.isArray(n)||n.length!==1?!1:n[0]?.data?.[e]===!0}var gw=function(n){return n[n.EarlyRead=0]="EarlyRead",n[n.Write=1]="Write",n[n.MixedReadWrite=2]="MixedReadWrite",n[n.Read=3]="Read",n}(gw||{}),r4e={destroy(){}};function iH(n,e){!e&&Ixe(iH);let t=e?.injector??ai(yo);if(!CVe(t))return r4e;m_("NgAfterRender");let i=t.get(gee),r=i.handler??=new zJ,o=e?.phase??gw.MixedReadWrite,s=()=>{r.unregister(h),c()},c=t.get(Zj).onDestroy(s),h=Nf(t,()=>new BJ(o,n));return r.register(h),{destroy:s}}function ad(n,e){!e&&Ixe(ad);let t=e?.injector??ai(yo);if(!CVe(t))return r4e;m_("NgAfterNextRender");let i=t.get(gee),r=i.handler??=new zJ,o=e?.phase??gw.MixedReadWrite,s=()=>{r.unregister(h),c()},c=t.get(Zj).onDestroy(s),h=Nf(t,()=>new BJ(o,()=>{s(),n()}));return r.register(h),{destroy:s}}var BJ=class{constructor(e,t){this.phase=e,this.callbackFn=t,this.zone=ai(Zi),this.errorHandler=ai(sd,{optional:!0}),ai(bL,{optional:!0})?.notify(6)}invoke(){try{this.zone.runOutsideAngular(this.callbackFn)}catch(e){this.errorHandler?.handleError(e)}}},zJ=class{constructor(){this.executingCallbacks=!1,this.buckets={[gw.EarlyRead]:new Set,[gw.Write]:new Set,[gw.MixedReadWrite]:new Set,[gw.Read]:new Set},this.deferredCallbacks=new Set}register(e){(this.executingCallbacks?this.deferredCallbacks:this.buckets[e.phase]).add(e)}unregister(e){this.buckets[e.phase].delete(e),this.deferredCallbacks.delete(e)}execute(){this.executingCallbacks=!0;for(let e of Object.values(this.buckets))for(let t of e)t.invoke();this.executingCallbacks=!1;for(let e of this.deferredCallbacks)this.buckets[e.phase].add(e);this.deferredCallbacks.clear()}destroy(){for(let e of Object.values(this.buckets))e.clear();this.deferredCallbacks.clear()}},gee=(()=>{let e=class e{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){let i=[...this.internalCallbacks];this.internalCallbacks.length=0;for(let r of i)r()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}};e.\u0275prov=It({token:e,providedIn:"root",factory:()=>new e});let n=e;return n})();function VJ(n,e,t){let i=t?n.styles:null,r=t?n.classes:null,o=0;if(e!==null)for(let s=0;s0&&OVe(n,t,o.join(" "))}}function Bgt(n,e,t){let i=n.projection=[];for(let r=0;r{let e=class e{};e.__NG_ELEMENT_ID__=Vgt;let n=e;return n})();function Vgt(){let n=Ud();return s4e(n,mo())}var Ugt=Sc,o4e=class extends Ugt{constructor(e,t,i){super(),this._lContainer=e,this._hostTNode=t,this._hostLView=i}get element(){return IL(this._hostTNode,this._hostLView)}get injector(){return new KM(this._hostTNode,this._hostLView)}get parentInjector(){let e=zxe(this._hostTNode,this._hostLView);if(Gze(e)){let t=OJ(e,this._hostLView),i=MJ(e),r=t[ys].data[i+8];return new KM(r,t)}else return new KM(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){let t=F3e(this._lContainer);return t!==null&&t[e]||null}get length(){return this._lContainer.length-Gh}createEmbeddedView(e,t,i){let r,o;typeof i=="number"?r=i:i!=null&&(r=i.index,o=i.injector);let s=yL(this._lContainer,e.ssrId),c=e.createEmbeddedViewImpl(t||{},o,s);return this.insertImpl(c,r,vL(this._hostTNode,s)),c}createComponent(e,t,i,r,o){let s=e&&!Vpt(e),c;if(s)c=t;else{let O=t||{};c=O.index,i=O.injector,r=O.projectableNodes,o=O.environmentInjector||O.ngModuleRef}let h=s?e:new xL(DI(e)),g=i||this.parentInjector;if(!o&&h.ngModule==null){let F=(s?g:this.parentInjector).get(zd,null);F&&(o=F)}let x=DI(h.componentType??{}),C=yL(this._lContainer,x?.id??null),A=C?.firstChild??null,k=h.create(g,r,A,o);return this.insertImpl(k.hostView,c,vL(this._hostTNode,C)),k}insert(e,t){return this.insertImpl(e,t,!0)}insertImpl(e,t,i){let r=e._lView;if($pt(r)){let c=this.indexOf(e);if(c!==-1)this.detach(c);else{let h=r[Yh],g=new o4e(h,h[Pf],h[Yh]);g.detach(g.indexOf(e))}}let o=this._adjustIndex(t),s=this._lContainer;return tH(s,r,o,i),e.attachToViewContainerRef(),oze(Jye(s),o,e),e}move(e,t){return this.insert(e,t)}indexOf(e){let t=F3e(this._lContainer);return t!==null?t.indexOf(e):-1}remove(e){let t=this._adjustIndex(e,-1),i=jj(this._lContainer,t);i&&(IJ(Jye(this._lContainer),t),cee(i[ys],i))}detach(e){let t=this._adjustIndex(e,-1),i=jj(this._lContainer,t);return i&&IJ(Jye(this._lContainer),t)!=null?new iO(i):null}_adjustIndex(e,t=0){return e??this.length+t}};function F3e(n){return n[DJ]}function Jye(n){return n[DJ]||(n[DJ]=[])}function s4e(n,e){let t,i=e[n.index];return ww(i)?t=i:(t=UVe(i,e,null,n),e[n.index]=t,fee(e,t)),Hgt(t,e,n,i),new o4e(t,n,e)}function jgt(n,e){let t=n[Cc],i=t.createComment(""),r=p_(e,n),o=Gxe(t,r);return PJ(t,o,i,Imt(t,r),!1),i}var Hgt=qgt,Ggt=()=>!1;function Ygt(n,e,t){return Ggt(n,e,t)}function qgt(n,e,t,i){if(n[XM])return;let r;t.type&8?r=Sb(i):r=jgt(e,t),n[XM]=r}var Hbe=class n{constructor(e){this.queryList=e,this.matches=null}clone(){return new n(this.queryList)}setDirty(){this.queryList.setDirty()}},Gbe=class n{constructor(e=[]){this.queries=e}createEmbeddedView(e){let t=e.queries;if(t!==null){let i=e.contentQueries!==null?e.contentQueries[0]:t.length,r=[];for(let o=0;o0)i.push(s[c/2]);else{let g=o[c+1],x=e[-h];for(let C=Gh;Ce.trim())}function c4e(n,e,t){n.queries===null&&(n.queries=new Ybe),n.queries.track(new qbe(e,t))}function t_t(n,e){let t=n.contentQueries||(n.contentQueries=[]),i=t.length?t[t.length-1]:-1;e!==i&&t.push(n.queries.length-1,e)}function i1e(n,e){return n.queries.getByIndex(e)}function i_t(n,e){let t=n[ys],i=i1e(t,e);return i.crossesNgTemplate?$be(t,n,e,[]):a4e(t,n,i,e)}function _ee(n){return typeof n=="function"&&n[mb]!==void 0}function Ab(n,e){m_("NgSignals");let t=SBe(n),i=t[mb];return e?.equal&&(i.equal=e.equal),t.set=r=>Iye(i,r),t.update=r=>EBe(i,r),t.asReadonly=n_t.bind(t),t}function n_t(){let n=this[mb];if(n.readonlyFn===void 0){let e=()=>this();e[mb]=n,n.readonlyFn=e}return n.readonlyFn}function u4e(n){return _ee(n)&&typeof n.set=="function"}function r_t(n){return Object.getPrototypeOf(n.prototype).constructor}function Li(n){let e=r_t(n.type),t=!0,i=[n];for(;e;){let r;if(yw(n))r=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Fn(903,!1);r=e.\u0275dir}if(r){if(t){i.push(r);let s=n;s.inputs=mJ(n.inputs),s.inputTransforms=mJ(n.inputTransforms),s.declaredInputs=mJ(n.declaredInputs),s.outputs=mJ(n.outputs);let c=r.hostBindings;c&&c_t(n,c);let h=r.viewQuery,g=r.contentQueries;if(h&&a_t(n,h),g&&l_t(n,g),o_t(n,r),Ght(n.outputs,r.outputs),yw(r)&&r.data.animation){let x=n.data;x.animation=(x.animation||[]).concat(r.data.animation)}}let o=r.features;if(o)for(let s=0;s=0;i--){let r=n[i];r.hostVars=e+=r.hostVars,r.hostAttrs=Lj(r.hostAttrs,t=Lj(t,r.hostAttrs))}}function mJ(n){return n===_w?{}:n===Rf?[]:n}function a_t(n,e){let t=n.viewQuery;t?n.viewQuery=(i,r)=>{e(i,r),t(i,r)}:n.viewQuery=e}function l_t(n,e){let t=n.contentQueries;t?n.contentQueries=(i,r,o)=>{e(i,r,o),t(i,r,o)}:n.contentQueries=e}function c_t(n,e){let t=n.hostBindings;t?n.hostBindings=(i,r)=>{e(i,r),t(i,r)}:n.hostBindings=e}function d4e(n){let e=t=>{let i=(Array.isArray(n)?n:n()).map(r=>typeof r=="function"?{directive:ph(r),inputs:_w,outputs:_w}:{directive:ph(r.directive),inputs:L3e(r.inputs),outputs:L3e(r.outputs)});t.hostDirectives===null?(t.findHostDirectiveDefs=h4e,t.hostDirectives=i):t.hostDirectives.unshift(...i)};return e.ngInherit=!0,e}function h4e(n,e,t){if(n.hostDirectives!==null)for(let i of n.hostDirectives){let r=wxe(i.directive);u_t(r.declaredInputs,i.inputs),h4e(r,e,t),t.set(r,i),e.push(r)}}function L3e(n){if(n===void 0||n.length===0)return _w;let e={};for(let t=0;tt()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}},Wbe=class extends Hj{constructor(e){super(),this.moduleType=e}create(e){return new Kbe(this.moduleType,e,[])}};var HJ=class extends OI{constructor(e){super(),this.componentFactoryResolver=new UJ(this),this.instance=null;let t=new Bj([...e.providers,{provide:OI,useValue:this},{provide:e0,useValue:this.componentFactoryResolver}],e.parent||Exe(),e.debugName,new Set(["environment"]));this.injector=t,e.runEnvironmentInitializers&&t.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}};function vee(n,e,t=null){return new HJ({providers:n,parent:e,debugName:t,runEnvironmentInitializers:!0}).injector}var Ew=(()=>{let e=class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new ea(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let i=this.taskId++;return this.pendingTasks.add(i),i}remove(i){this.pendingTasks.delete(i),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=It({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function p4e(n){return n1e(n)?Array.isArray(n)||!(n instanceof Map)&&Symbol.iterator in n:!1}function d_t(n,e){if(Array.isArray(n))for(let t=0;t>17&32767}function __t(n){return(n&2)==2}function v_t(n,e){return n&131071|e<<17}function Zbe(n){return n|2}function CL(n){return(n&131068)>>2}function ebe(n,e){return n&-131069|e<<2}function y_t(n){return(n&1)===1}function Qbe(n){return n|1}function b_t(n,e,t,i,r,o){let s=o?e.classBindings:e.styleBindings,c=nO(s),h=CL(s);n[i]=t;let g=!1,x;if(Array.isArray(t)){let C=t;x=C[1],(x===null||$j(C,x)>0)&&(g=!0)}else x=t;if(r)if(h!==0){let A=nO(n[c+1]);n[i+1]=gJ(A,c),A!==0&&(n[A+1]=ebe(n[A+1],i)),n[c+1]=v_t(n[c+1],i)}else n[i+1]=gJ(c,0),c!==0&&(n[c+1]=ebe(n[c+1],i)),c=i;else n[i+1]=gJ(h,0),c===0?c=i:n[h+1]=ebe(n[h+1],i),h=i;g&&(n[i+1]=Zbe(n[i+1])),B3e(n,x,i,!0),B3e(n,x,i,!1),x_t(e,x,n,i,o),s=gJ(c,h),o?e.classBindings=s:e.styleBindings=s}function x_t(n,e,t,i,r){let o=r?n.residualClasses:n.residualStyles;o!=null&&typeof e=="string"&&$j(o,e)>=0&&(t[i+1]=Qbe(t[i+1]))}function B3e(n,e,t,i){let r=n[t+1],o=e===null,s=i?nO(r):CL(r),c=!1;for(;s!==0&&(c===!1||o);){let h=n[s],g=n[s+1];w_t(h,e)&&(c=!0,n[s+1]=i?Qbe(g):Zbe(g)),s=i?nO(g):CL(g)}c&&(n[t+1]=i?Zbe(r):Qbe(r))}function w_t(n,e){return n===null||e==null||(Array.isArray(n)?n[1]:n)===e?!0:Array.isArray(n)&&typeof e=="string"?$j(n,e)>=0:!1}var od={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function g4e(n){return n.substring(od.key,od.keyEnd)}function C_t(n){return n.substring(od.value,od.valueEnd)}function S_t(n){return y4e(n),_4e(n,SL(n,0,od.textEnd))}function _4e(n,e){let t=od.textEnd;return t===e?-1:(e=od.keyEnd=I_t(n,od.key=e,t),SL(n,e,t))}function E_t(n){return y4e(n),v4e(n,SL(n,0,od.textEnd))}function v4e(n,e){let t=od.textEnd,i=od.key=SL(n,e,t);return t===i?-1:(i=od.keyEnd=T_t(n,i,t),i=z3e(n,i,t,58),i=od.value=SL(n,i,t),i=od.valueEnd=A_t(n,i,t),z3e(n,i,t,59))}function y4e(n){od.key=0,od.keyEnd=0,od.value=0,od.valueEnd=0,od.textEnd=n.length}function SL(n,e,t){for(;e32;)e++;return e}function T_t(n,e,t){let i;for(;e=65&&(i&-33)<=90||i>=48&&i<=57);)e++;return e}function z3e(n,e,t,i){return e=SL(n,e,t),e32&&(c=s),o=r,r=i,i=h&-33}return c}function V3e(n,e,t,i){let r=-1,o=t;for(;o=0;t=v4e(e,t))S4e(n,g4e(e),C_t(e))}function vn(n){r1e(P_t,b4e,n,!0)}function b4e(n,e){for(let t=S_t(e);t>=0;t=_4e(e,t))qj(n,g4e(e),!0)}function x4e(n,e,t,i){let r=mo(),o=cc(),s=Nxe(2);if(o.firstUpdatePass&&C4e(o,n,s,i),e!==Gm&&qh(r,s,e)){let c=o.data[Cw()];E4e(o,c,r,r[Cc],n,r[s+1]=L_t(e,t),i,s)}}function r1e(n,e,t,i){let r=cc(),o=Nxe(2);r.firstUpdatePass&&C4e(r,null,o,i);let s=mo();if(t!==Gm&&qh(s,o,t)){let c=r.data[Cw()];if(I4e(c,i)&&!w4e(r,o)){let h=i?c.classesWithoutHost:c.stylesWithoutHost;h!==null&&(t=abe(h,t||"")),Xbe(r,c,s,t,i)}else F_t(r,c,s,s[Cc],s[o+1],s[o+1]=N_t(n,e,t),i,o)}}function w4e(n,e){return e>=n.expandoStartIndex}function C4e(n,e,t,i){let r=n.data;if(r[t+1]===null){let o=r[Cw()],s=w4e(n,t);I4e(o,i)&&e===null&&!s&&(e=!1),e=k_t(r,o,e,i),b_t(r,o,e,t,s,i)}}function k_t(n,e,t,i){let r=Pxe(n),o=i?e.residualClasses:e.residualStyles;if(r===null)(i?e.classBindings:e.styleBindings)===0&&(t=tbe(null,n,e,t,i),t=Gj(t,e.attrs,i),o=null);else{let s=e.directiveStylingLast;if(s===-1||n[s]!==r)if(t=tbe(r,n,e,t,i),o===null){let h=M_t(n,e,i);h!==void 0&&Array.isArray(h)&&(h=tbe(null,n,e,h[1],i),h=Gj(h,e.attrs,i),O_t(n,e,i,h))}else o=R_t(n,e,i)}return o!==void 0&&(i?e.residualClasses=o:e.residualStyles=o),t}function M_t(n,e,t){let i=t?e.classBindings:e.styleBindings;if(CL(i)!==0)return n[nO(i)]}function O_t(n,e,t,i){let r=t?e.classBindings:e.styleBindings;n[nO(r)]=i}function R_t(n,e,t){let i,r=e.directiveEnd;for(let o=1+e.directiveStylingLast;o0;){let h=n[r],g=Array.isArray(h),x=g?h[1]:h,C=x===null,A=t[r+1];A===Gm&&(A=C?Rf:void 0);let k=C?Yye(A,i):x===i?A:void 0;if(g&&!YJ(k)&&(k=Yye(h,i)),YJ(k)&&(c=k,s))return c;let O=n[r+1];r=s?nO(O):CL(O)}if(e!==null){let h=o?e.residualClasses:e.residualStyles;h!=null&&(c=Yye(h,i))}return c}function YJ(n){return n!==void 0}function L_t(n,e){return n==null||n===""||(typeof e=="string"?n=n+e:typeof n=="object"&&(n=Pp(f_(n)))),n}function I4e(n,e){return(n.flags&(e?8:16))!==0}function wee(n,e,t){let i=mo(),r=m4e(i,n,e,t);r1e(qj,b4e,r,!0)}var Jbe=class{destroy(e){}updateValue(e,t){}swap(e,t){let i=Math.min(e,t),r=Math.max(e,t),o=this.detach(r);if(r-i>1){let s=this.detach(i);this.attach(i,o),this.attach(r,s)}else this.attach(i,o)}move(e,t){this.attach(t,this.detach(e))}};function ibe(n,e,t,i,r){return n===t&&Object.is(e,i)?1:Object.is(r(n,e),r(t,i))?-1:0}function B_t(n,e,t){let i,r,o=0,s=n.length-1,c=void 0;if(Array.isArray(e)){let h=e.length-1;for(;o<=s&&o<=h;){let g=n.at(o),x=e[o],C=ibe(o,g,o,x,t);if(C!==0){C<0&&n.updateValue(o,x),o++;continue}let A=n.at(s),k=e[h],O=ibe(s,A,h,k,t);if(O!==0){O<0&&n.updateValue(s,k),s--,h--;continue}let F=t(o,g),L=t(s,A),z=t(o,x);if(Object.is(z,L)){let j=t(h,k);Object.is(j,F)?(n.swap(o,s),n.updateValue(s,k),h--,s--):n.move(s,o),n.updateValue(o,x),o++;continue}if(i??=new qJ,r??=H3e(n,o,s,t),exe(n,i,o,z))n.updateValue(o,x),o++,s++;else if(r.has(z))i.set(F,n.detach(o)),s--;else{let j=n.create(o,e[o]);n.attach(o,j),o++,s++}}for(;o<=h;)j3e(n,i,t,o,e[o]),o++}else if(e!=null){let h=e[Symbol.iterator](),g=h.next();for(;!g.done&&o<=s;){let x=n.at(o),C=g.value,A=ibe(o,x,o,C,t);if(A!==0)A<0&&n.updateValue(o,C),o++,g=h.next();else{i??=new qJ,r??=H3e(n,o,s,t);let k=t(o,C);if(exe(n,i,o,k))n.updateValue(o,C),o++,s++,g=h.next();else if(!r.has(k))n.attach(o,n.create(o,C)),o++,s++,g=h.next();else{let O=t(o,x);i.set(O,n.detach(o)),s--}}}for(;!g.done;)j3e(n,i,t,n.length,g.value),g=h.next()}for(;o<=s;)n.destroy(n.detach(s--));i?.forEach(h=>{n.destroy(h)})}function exe(n,e,t,i){return e!==void 0&&e.has(i)?(n.attach(t,e.get(i)),e.delete(i),!0):!1}function j3e(n,e,t,i,r){if(exe(n,e,i,t(i,r)))n.updateValue(i,r);else{let o=n.create(i,r);n.attach(i,o)}}function H3e(n,e,t,i){let r=new Set;for(let o=e;o<=t;o++)r.add(i(o,n.at(o)));return r}var qJ=class{constructor(){this.kvMap=new Map,this._vMap=void 0}has(e){return this.kvMap.has(e)}delete(e){if(!this.has(e))return!1;let t=this.kvMap.get(e);return this._vMap!==void 0&&this._vMap.has(t)?(this.kvMap.set(e,this._vMap.get(t)),this._vMap.delete(t)):this.kvMap.delete(e),!0}get(e){return this.kvMap.get(e)}set(e,t){if(this.kvMap.has(e)){let i=this.kvMap.get(e);this._vMap===void 0&&(this._vMap=new Map);let r=this._vMap;for(;r.has(i);)i=r.get(i);r.set(i,t)}else this.kvMap.set(e,t)}forEach(e){for(let[t,i]of this.kvMap)if(e(i,t),this._vMap!==void 0){let r=this._vMap;for(;r.has(i);)i=r.get(i),e(i,t)}}};function Hi(n,e){m_("NgControlFlow");let t=mo(),i=PI(),r=t[i]!==Gm?t[i]:-1,o=r!==-1?$J(t,Vd+r):void 0,s=0;if(qh(t,i,n)){let c=Js(null);try{if(o!==void 0&&WVe(o,s),n!==-1){let h=Vd+n,g=$J(t,h),x=rxe(t[ys],h),C=yL(g,x.tView.ssrId),A=eH(t,x,e,{dehydratedView:C});tH(g,A,s,vL(x,C))}}finally{Js(c)}}else if(o!==void 0){let c=KVe(o,s);c!==void 0&&(c[Hh]=e)}}var txe=class{constructor(e,t,i){this.lContainer=e,this.$implicit=t,this.$index=i}get $count(){return this.lContainer.length-Gh}};function Nu(n,e){return e}var ixe=class{constructor(e,t,i){this.hasEmptyBlock=e,this.trackByFn=t,this.liveCollection=i}};function Ec(n,e,t,i,r,o,s,c,h,g,x,C,A){m_("NgControlFlow");let k=mo(),O=cc(),F=h!==void 0,L=mo(),z=c?s.bind(L[jm][Hh]):s,j=new ixe(F,z);L[Vd+n]=j,GJ(k,O,n+1,e,t,i,r,kI(O.consts,o)),F&&GJ(k,O,n+2,h,g,x,C,kI(O.consts,A))}var nxe=class extends Jbe{constructor(e,t,i){super(),this.lContainer=e,this.hostLView=t,this.templateTNode=i,this.operationsCounter=void 0,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-Gh}at(e){return this.getLView(e)[Hh].$implicit}attach(e,t){let i=t[mL];this.needsIndexUpdate||=e!==this.length,tH(this.lContainer,t,e,vL(this.templateTNode,i))}detach(e){return this.needsIndexUpdate||=e!==this.length-1,z_t(this.lContainer,e)}create(e,t){let i=yL(this.lContainer,this.templateTNode.tView.ssrId),r=eH(this.hostLView,this.templateTNode,new txe(this.lContainer,t,e),{dehydratedView:i});return this.operationsCounter?.recordCreate(),r}destroy(e){cee(e[ys],e),this.operationsCounter?.recordDestroy()}updateValue(e,t){this.getLView(e)[Hh].$implicit=t}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let e=0;e(oee(!0),SVe(i,r,hft()));function H_t(n,e,t,i,r){let o=e.consts,s=kI(o,i),c=AL(e,n,8,"ng-container",s);s!==null&&VJ(c,s,!0);let h=kI(o,r);return Zxe(e,t,c,h),e.queries!==null&&e.queries.elementStart(e,c),c}function er(n,e,t){let i=mo(),r=cc(),o=n+Vd,s=r.firstCreatePass?H_t(o,r,i,e,t):r.data[o];oO(s,!0);let c=G_t(r,i,s,n);return i[o]=c,ree()&&uee(r,i,c,s),MI(c,i),iee(s)&&($xe(r,i,s),qxe(r,s,i)),t!=null&&Kxe(i,s),er}function tr(){let n=Ud(),e=cc();return Oxe()?Rxe():(n=n.parent,oO(n,!1)),e.firstCreatePass&&(see(e,n),Axe(n)&&e.queries.elementEnd(n)),tr}function Pn(n,e,t){return er(n,e,t),tr(),Pn}var G_t=(n,e,t,i)=>(oee(!0),_mt(e[Cc],""));function Fi(){return mo()}function Pu(n,e,t){let i=mo(),r=PI();if(qh(i,r,e)){let o=cc(),s=Wj();pee(o,s,i,n,e,i[Cc],t,!0)}return Pu}function aO(n,e,t){let i=mo(),r=PI();if(qh(i,r,e)){let o=cc(),s=Wj(),c=Pxe(o.data),h=YVe(c,s,i);pee(o,s,i,n,e,h,t,!0)}return aO}var qM=void 0;function Y_t(n){let e=n,t=Math.floor(Math.abs(n)),i=n.toString().replace(/^[^.]*\.?/,"").length;return t===1&&i===0?1:5}var q_t=["en",[["a","p"],["AM","PM"],qM],[["AM","PM"],qM,qM],[["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"]],qM,[["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"]],qM,[["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}",qM,"{1} 'at' {0}",qM],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",Y_t],nbe={};function Lf(n){let e=$_t(n),t=G3e(e);if(t)return t;let i=e.split("-")[0];if(t=G3e(i),t)return t;if(i==="en")return q_t;throw new Fn(701,!1)}function T4e(n){return Lf(n)[Nc.PluralCase]}function G3e(n){return n in nbe||(nbe[n]=Bd.ng&&Bd.ng.common&&Bd.ng.common.locales&&Bd.ng.common.locales[n]),nbe[n]}var Nc=function(n){return n[n.LocaleId=0]="LocaleId",n[n.DayPeriodsFormat=1]="DayPeriodsFormat",n[n.DayPeriodsStandalone=2]="DayPeriodsStandalone",n[n.DaysFormat=3]="DaysFormat",n[n.DaysStandalone=4]="DaysStandalone",n[n.MonthsFormat=5]="MonthsFormat",n[n.MonthsStandalone=6]="MonthsStandalone",n[n.Eras=7]="Eras",n[n.FirstDayOfWeek=8]="FirstDayOfWeek",n[n.WeekendRange=9]="WeekendRange",n[n.DateFormat=10]="DateFormat",n[n.TimeFormat=11]="TimeFormat",n[n.DateTimeFormat=12]="DateTimeFormat",n[n.NumberSymbols=13]="NumberSymbols",n[n.NumberFormats=14]="NumberFormats",n[n.CurrencyCode=15]="CurrencyCode",n[n.CurrencySymbol=16]="CurrencySymbol",n[n.CurrencyName=17]="CurrencyName",n[n.Currencies=18]="Currencies",n[n.Directionality=19]="Directionality",n[n.PluralCase=20]="PluralCase",n[n.ExtraData=21]="ExtraData",n}(Nc||{});function $_t(n){return n.toLowerCase().replace(/_/g,"-")}var KJ="en-US";var K_t=KJ;function W_t(n){typeof n=="string"&&(K_t=n.toLowerCase().replace(/_/g,"-"))}var Z_t=(n,e,t)=>{};function At(n,e,t,i){let r=mo(),o=cc(),s=Ud();return o1e(o,r,r[Cc],s,n,e,i),At}function lO(n,e){let t=Ud(),i=mo(),r=cc(),o=Pxe(r.data),s=YVe(o,t,i);return o1e(r,i,s,t,n,e),lO}function Q_t(n,e,t,i){let r=n.cleanup;if(r!=null)for(let o=0;oh?c[h]:null}typeof s=="string"&&(o+=2)}return null}function o1e(n,e,t,i,r,o,s){let c=iee(i),g=n.firstCreatePass&&GVe(n),x=e[Hh],C=HVe(e),A=!0;if(i.type&3||s){let F=p_(i,e),L=s?s(F):F,z=C.length,j=s?ee=>s(Sb(ee[i.index])):i.index,K=null;if(!s&&c&&(K=Q_t(n,e,r,i.index)),K!==null){let ee=K.__ngLastListenerFn__||K;ee.__ngNextListenerFn__=o,K.__ngLastListenerFn__=o,A=!1}else{o=q3e(i,e,x,o),Z_t(F,r,o);let ee=t.listen(L,r,o);C.push(o,ee),g&&g.push(r,j,z,z+1)}}else o=q3e(i,e,x,o);let k=i.outputs,O;if(A&&k!==null&&(O=k[r])){let F=O.length;if(F)for(let L=0;L-1?NI(n.index,e):e;Jxe(s,5);let c=Y3e(e,t,i,o),h=r.__ngNextListenerFn__;for(;h;)c=Y3e(e,t,h,o)&&c,h=h.__ngNextListenerFn__;return c}}function le(n=1){return uft(n)}function X_t(n,e){let t=null,i=bpt(n);for(let r=0;r=n.data.length&&(n.data[t]=null,n.blueprint[t]=null),e[t]=i}function _r(n){let e=nft();return kxe(e,Vd+n)}function yt(n,e=""){let t=mo(),i=cc(),r=n+Vd,o=i.firstCreatePass?AL(i,r,1,e,null):i.data[r],s=tvt(i,t,o,e,n);t[r]=s,ree()&&uee(i,t,s,o),oO(o,!1)}var tvt=(n,e,t,i,r)=>(oee(!0),mmt(e[Cc],i));function jn(n){return ps("",n,""),jn}function ps(n,e,t){let i=mo(),r=m4e(i,n,e,t);return r!==Gm&&$Ve(i,Cw(),r),ps}function nH(n,e,t,i,r){let o=mo(),s=g_t(o,n,e,t,i,r);return s!==Gm&&$Ve(o,Cw(),s),nH}function Tw(n,e,t){u4e(e)&&(e=e());let i=mo(),r=PI();if(qh(i,r,e)){let o=cc(),s=Wj();pee(o,s,i,n,e,i[Cc],t,!1)}return Tw}function LI(n,e){let t=u4e(n);return t&&n.set(e),t}function Aw(n,e){let t=mo(),i=cc(),r=Ud();return o1e(i,t,t[Cc],r,n,e),Aw}function ivt(n,e,t){let i=cc();if(i.firstCreatePass){let r=yw(n);oxe(t,i.data,i.blueprint,r,!0),oxe(e,i.data,i.blueprint,r,!1)}}function oxe(n,e,t,i,r){if(n=ph(n),Array.isArray(n))for(let o=0;o>20;if(fL(n)||!n.multi){let k=new eO(g,r,oe),O=obe(h,e,r?x:x+A,C);O===-1?(bbe(NJ(c,s),o,h),rbe(o,n,e.length),e.push(h),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),t.push(k),s.push(k)):(t[O]=k,s[O]=k)}else{let k=obe(h,e,x+A,C),O=obe(h,e,x,x+A),F=k>=0&&t[k],L=O>=0&&t[O];if(r&&!L||!r&&!F){bbe(NJ(c,s),o,h);let z=ovt(r?rvt:nvt,t.length,r,i,g);!r&&L&&(t[O].providerFactory=z),rbe(o,n,e.length,0),e.push(h),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),t.push(z),s.push(z)}else{let z=A4e(t[r?O:k],g,!r&&i);rbe(o,n,k>-1?k:O,z)}!r&&i&&L&&t[O].componentProviders++}}}function rbe(n,e,t,i){let r=fL(e),o=Rpt(e);if(r||o){let h=(o?ph(e.useClass):e).prototype.ngOnDestroy;if(h){let g=n.destroyHooks||(n.destroyHooks=[]);if(!r&&e.multi){let x=g.indexOf(t);x===-1?g.push(t,[i,h]):g[x+1].push(i,h)}else g.push(t,h)}}}function A4e(n,e,t){return t&&n.componentProviders++,n.multi.push(e)-1}function obe(n,e,t,i){for(let r=t;r{t.providersResolver=(i,r)=>ivt(i,r?r(n):n,e)}}var svt=(()=>{let e=class e{constructor(i){this._injector=i,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(i){if(!i.standalone)return null;if(!this.cachedInjectors.has(i)){let r=_ze(!1,i.type),o=r.length>0?vee([r],this._injector,`Standalone[${i.type.name}]`):null;this.cachedInjectors.set(i,o)}return this.cachedInjectors.get(i)}ngOnDestroy(){try{for(let i of this.cachedInjectors.values())i!==null&&i.destroy()}finally{this.cachedInjectors.clear()}}};e.\u0275prov=It({token:e,providedIn:"environment",factory:()=>new e(Ke(zd))});let n=e;return n})();function Ot(n){m_("NgStandalone"),n.getStandaloneInjector=e=>e.get(svt).getOrCreateStandaloneInjector(n)}function Ll(n,e,t){let i=t0()+n,r=mo();return r[i]===Gm?Iw(r,i,t?e.call(t):e()):yee(r,i)}function Tr(n,e,t,i){return k4e(mo(),t0(),n,e,t,i)}function ha(n,e,t,i,r){return M4e(mo(),t0(),n,e,t,i,r)}function gh(n,e,t,i,r,o){return avt(mo(),t0(),n,e,t,i,r,o)}function s1e(n,e,t,i,r,o,s){return lvt(mo(),t0(),n,e,t,i,r,o,s)}function DL(n,e,t,i,r,o,s,c){let h=t0()+n,g=mo(),x=bee(g,h,t,i,r,o);return qh(g,h+4,s)||x?Iw(g,h+5,c?e.call(c,t,i,r,o,s):e(t,i,r,o,s)):yee(g,h+5)}function cO(n,e,t,i,r,o,s,c,h){let g=t0()+n,x=mo(),C=bee(x,g,t,i,r,o);return wL(x,g+4,s,c)||C?Iw(x,g+6,h?e.call(h,t,i,r,o,s,c):e(t,i,r,o,s,c)):yee(x,g+6)}function D4e(n,e,t,i,r,o,s,c,h,g){let x=t0()+n,C=mo(),A=bee(C,x,t,i,r,o);return f4e(C,x+4,s,c,h)||A?Iw(C,x+7,g?e.call(g,t,i,r,o,s,c,h):e(t,i,r,o,s,c,h)):yee(C,x+7)}function a1e(n,e,t,i){return cvt(mo(),t0(),n,e,t,i)}function rH(n,e){let t=n[e];return t===Gm?void 0:t}function k4e(n,e,t,i,r,o){let s=e+t;return qh(n,s,r)?Iw(n,s+1,o?i.call(o,r):i(r)):rH(n,s+1)}function M4e(n,e,t,i,r,o,s){let c=e+t;return wL(n,c,r,o)?Iw(n,c+2,s?i.call(s,r,o):i(r,o)):rH(n,c+2)}function avt(n,e,t,i,r,o,s,c){let h=e+t;return f4e(n,h,r,o,s)?Iw(n,h+3,c?i.call(c,r,o,s):i(r,o,s)):rH(n,h+3)}function lvt(n,e,t,i,r,o,s,c,h){let g=e+t;return bee(n,g,r,o,s,c)?Iw(n,g+4,h?i.call(h,r,o,s,c):i(r,o,s,c)):rH(n,g+4)}function cvt(n,e,t,i,r,o){let s=e+t,c=!1;for(let h=0;h=0;t--){let i=e[t];if(n===i.name)return i}}function O4e(n,e,t){let i=n+Vd,r=mo(),o=kxe(r,i);return R4e(r,i)?k4e(r,t0(),e,o.transform,t,o):o.transform(t)}function i0(n,e,t,i){let r=n+Vd,o=mo(),s=kxe(o,r);return R4e(o,r)?M4e(o,t0(),e,s.transform,t,i,s):s.transform(t,i)}function R4e(n,e){return n[ys].data[e].pure}function ws(n,e){return mee(n,e)}var Cee=(()=>{let e=class e{log(i){console.log(i)}warn(i){console.warn(i)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=It({token:e,factory:e.\u0275fac,providedIn:"platform"});let n=e;return n})();var l1e=new fi(""),oH=new fi(""),See=(()=>{let e=class e{constructor(i,r,o){this._ngZone=i,this.registry=r,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,c1e||(dvt(o),o.addToWindow(r)),this._watchAngularEvents(),i.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Zi.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}isStable(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;this._callbacks.length!==0;){let i=this._callbacks.pop();clearTimeout(i.timeoutId),i.doneCb()}});else{let i=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>r.updateCb&&r.updateCb(i)?(clearTimeout(r.timeoutId),!1):!0)}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(i=>({source:i.source,creationLocation:i.creationLocation,data:i.data})):[]}addCallback(i,r,o){let s=-1;r&&r>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(c=>c.timeoutId!==s),i()},r)),this._callbacks.push({doneCb:i,timeoutId:s,updateCb:o})}whenStable(i,r,o){if(o&&!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(i,r,o),this._runCallbacksIfReady()}registerApplication(i){this.registry.registerApplication(i,this)}unregisterApplication(i){this.registry.unregisterApplication(i)}findProviders(i,r,o){return[]}};e.\u0275fac=function(r){return new(r||e)(Ke(Zi),Ke(Eee),Ke(oH))},e.\u0275prov=It({token:e,factory:e.\u0275fac});let n=e;return n})(),Eee=(()=>{let e=class e{constructor(){this._applications=new Map}registerApplication(i,r){this._applications.set(i,r)}unregisterApplication(i){this._applications.delete(i)}unregisterAllApplications(){this._applications.clear()}getTestability(i){return this._applications.get(i)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(i,r=!0){return c1e?.findTestabilityInTree(this,i,r)??null}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=It({token:e,factory:e.\u0275fac,providedIn:"platform"});let n=e;return n})();function dvt(n){c1e=n}var c1e;function BI(n){return!!n&&typeof n.then=="function"}function u1e(n){return!!n&&typeof n.subscribe=="function"}var uO=new fi(""),N4e=(()=>{let e=class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,r)=>{this.resolve=i,this.reject=r}),this.appInits=ai(uO,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let i=[];for(let o of this.appInits){let s=o();if(BI(s))i.push(s);else if(u1e(s)){let c=new Promise((h,g)=>{s.subscribe({complete:h,error:g})});i.push(c)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(i).then(()=>{r()}).catch(o=>{this.reject(o)}),i.length===0&&r(),this.initialized=!0}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=It({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),dO=new fi("");function hvt(){CBe(()=>{throw new Fn(600,!1)})}function pvt(n){return n.isBoundToModule}var fvt=10;function mvt(n,e,t){try{let i=t();return BI(i)?i.catch(r=>{throw e.runOutsideAngular(()=>n.handleError(r)),r}):i}catch(i){throw e.runOutsideAngular(()=>n.handleError(i)),i}}var n0=(()=>{let e=class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=ai(eVe),this.afterRenderEffectManager=ai(gee),this.zonelessEnabled=ai(e1e),this.externalTestViews=new Set,this.beforeRender=new mi,this.afterTick=new mi,this.componentTypes=[],this.components=[],this.isStable=ai(Ew).hasPendingTasks.pipe(ri(i=>!i)),this._injector=ai(zd)}get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(i,r){let o=i instanceof LJ;if(!this._injector.get(N4e).done){let k=!o&&pze(i),O=!1;throw new Fn(405,O)}let c;o?c=i:c=this._injector.get(e0).resolveComponentFactory(i),this.componentTypes.push(c.componentType);let h=pvt(c)?void 0:this._injector.get(OI),g=r||c.selector,x=c.create(yo.NULL,[],g,h),C=x.location.nativeElement,A=x.injector.get(l1e,null);return A?.registerApplication(C),x.onDestroy(()=>{this.detachView(x.hostView),sbe(this.components,x),A?.unregisterApplication(C)}),this._loadComponent(x),x}tick(){this._tick(!0)}_tick(i){if(this._runningTick)throw new Fn(101,!1);let r=Js(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(i)}catch(o){this.internalErrorHandler(o)}finally{this._runningTick=!1,Js(r),this.afterTick.next()}}detectChangesInAttachedViews(i){let r=null;this._injector.destroyed||(r=this._injector.get(Ib,null,{optional:!0}));let o=0,s=this.afterRenderEffectManager;for(;oVj(h))&&(s.execute(),!this.allViews.some(({_lView:h})=>Vj(h))))break}}attachView(i){let r=i;this._views.push(r),r.attachToAppRef(this)}detachView(i){let r=i;sbe(this._views,r),r.detachFromAppRef()}_loadComponent(i){this.attachView(i.hostView),this.tick(),this.components.push(i);let r=this._injector.get(dO,[]);[...this._bootstrapListeners,...r].forEach(o=>o(i))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(i=>i()),this._views.slice().forEach(i=>i.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(i){return this._destroyListeners.push(i),()=>sbe(this._destroyListeners,i)}destroy(){if(this._destroyed)throw new Fn(406,!1);let i=this._injector;i.destroy&&!i.destroyed&&i.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=It({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function sbe(n,e){let t=n.indexOf(e);t>-1&&n.splice(t,1)}function gvt(n,e,t,i){if(!t&&!Vj(n))return;QVe(n,e,t&&!i?0:1)}var axe=class{constructor(e,t){this.ngModuleFactory=e,this.componentFactories=t}},Iee=(()=>{let e=class e{compileModuleSync(i){return new Wbe(i)}compileModuleAsync(i){return Promise.resolve(this.compileModuleSync(i))}compileModuleAndAllComponentsSync(i){let r=this.compileModuleSync(i),o=fze(i),s=wVe(o.declarations).reduce((c,h)=>{let g=DI(h);return g&&c.push(new xL(g)),c},[]);return new axe(r,s)}compileModuleAndAllComponentsAsync(i){return Promise.resolve(this.compileModuleAndAllComponentsSync(i))}clearCache(){}clearCacheFor(i){}getModuleId(i){}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=It({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var _vt=(()=>{let e=class e{constructor(){this.zone=ai(Zi),this.changeDetectionScheduler=ai(bL),this.applicationRef=ai(n0)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=It({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),vvt=new fi("",{factory:()=>!1});function P4e({ngZoneFactory:n,ignoreChangesOutsideZone:e}){return n??=()=>new Zi(L4e()),[{provide:Zi,useFactory:n},{provide:hL,multi:!0,useFactory:()=>{let t=ai(_vt,{optional:!0});return()=>t.initialize()}},{provide:hL,multi:!0,useFactory:()=>{let t=ai(bvt);return()=>{t.initialize()}}},{provide:eVe,useFactory:yvt},e===!0?{provide:t4e,useValue:!0}:[]]}function yvt(){let n=ai(Zi),e=ai(sd);return t=>n.runOutsideAngular(()=>e.handleError(t))}function F4e(n){let e=n?.ignoreChangesOutsideZone,t=P4e({ngZoneFactory:()=>{let i=L4e(n);return i.shouldCoalesceEventChangeDetection&&m_("NgZone_CoalesceEvent"),new Zi(i)},ignoreChangesOutsideZone:e});return rO([{provide:vvt,useValue:!0},{provide:e1e,useValue:!1},t])}function L4e(n){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:n?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:n?.runCoalescing??!1}}var bvt=(()=>{let e=class e{constructor(){this.subscription=new Qo,this.initialized=!1,this.zone=ai(Zi),this.pendingTasks=ai(Ew)}initialize(){if(this.initialized)return;this.initialized=!0;let i=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(i=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{Zi.assertNotInAngularZone(),queueMicrotask(()=>{i!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(i),i=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{Zi.assertInAngularZone(),i??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=It({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var xvt=(()=>{let e=class e{constructor(){this.appRef=ai(n0),this.taskService=ai(Ew),this.ngZone=ai(Zi),this.zonelessEnabled=ai(e1e),this.disableScheduling=ai(t4e,{optional:!0})??!1,this.zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run,this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}],this.subscriptions=new Qo,this.cancelScheduledCallback=null,this.shouldRefreshViews=!1,this.useMicrotaskScheduler=!1,this.runningTick=!1,this.pendingRenderTaskId=null,this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof Vbe||!this.zoneIsDefined)}notify(i){if(!this.zonelessEnabled&&i===5)return;switch(i){case 3:case 2:case 0:case 4:case 5:case 1:{this.shouldRefreshViews=!0;break}case 8:case 7:case 6:case 9:default:}if(!this.shouldScheduleTick())return;let r=this.useMicrotaskScheduler?M3e:i4e;this.pendingRenderTaskId=this.taskService.add(),this.zoneIsDefined?Zone.root.run(()=>{this.cancelScheduledCallback=r(()=>{this.tick(this.shouldRefreshViews)})}):this.cancelScheduledCallback=r(()=>{this.tick(this.shouldRefreshViews)})}shouldScheduleTick(){return!(this.disableScheduling||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zi.isInAngularZone())}tick(i){if(this.runningTick||this.appRef.destroyed)return;let r=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick(i)},void 0,this.schedulerTickApplyArgs)}catch(o){throw this.taskService.remove(r),o}finally{this.cleanup()}this.useMicrotaskScheduler=!0,M3e(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(r)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.shouldRefreshViews=!1,this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let i=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(i)}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=It({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function wvt(){return typeof $localize<"u"&&$localize.locale||KJ}var zI=new fi("",{providedIn:"root",factory:()=>ai(zI,Hs.Optional|Hs.SkipSelf)||wvt()});var B4e=new fi("");var CJ=null;function Cvt(n=[],e){return yo.create({name:e,providers:[{provide:JJ,useValue:"platform"},{provide:B4e,useValue:new Set([()=>CJ=null])},...n]})}function Svt(n=[]){if(CJ)return CJ;let e=Cvt(n);return CJ=e,hvt(),Evt(e),e}function Evt(n){n.get(Vxe,null)?.forEach(t=>t())}var ur=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=Ivt;let n=e;return n})();function Ivt(n){return Tvt(Ud(),mo(),(n&16)===16)}function Tvt(n,e,t){if(tee(n)&&!t){let i=NI(n.index,e);return new iO(i,i)}else if(n.type&47){let i=e[jm];return new iO(i,e)}return null}var lxe=class{constructor(){}supports(e){return p4e(e)}create(e){return new cxe(e)}},Avt=(n,e)=>e,cxe=class{constructor(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||Avt}forEachItem(e){let t;for(t=this._itHead;t!==null;t=t._next)e(t)}forEachOperation(e){let t=this._itHead,i=this._removalsHead,r=0,o=null;for(;t||i;){let s=!i||t&&t.currentIndex<$3e(i,r,o)?t:i,c=$3e(s,r,o),h=s.currentIndex;if(s===i)r--,i=i._nextRemoved;else if(t=t._next,s.previousIndex==null)r++;else{o||(o=[]);let g=c-r,x=h-r;if(g!=x){for(let A=0;A{s=this._trackByFn(r,c),t===null||!Object.is(t.trackById,s)?(t=this._mismatch(t,c,s,r),i=!0):(i&&(t=this._verifyReinsertion(t,c,s,r)),Object.is(t.item,c)||this._addIdentityChange(t,c)),t=t._next,r++}),this.length=r;return this._truncate(t),this.collection=e,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;e!==null;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;e!==null;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;e!==null;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,t,i,r){let o;return e===null?o=this._itTail:(o=e._prev,this._remove(e)),e=this._unlinkedRecords===null?null:this._unlinkedRecords.get(i,null),e!==null?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,o,r)):(e=this._linkedRecords===null?null:this._linkedRecords.get(i,r),e!==null?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,o,r)):e=this._addAfter(new uxe(t,i),o,r)),e}_verifyReinsertion(e,t,i,r){let o=this._unlinkedRecords===null?null:this._unlinkedRecords.get(i,null);return o!==null?e=this._reinsertAfter(o,e._prev,r):e.currentIndex!=r&&(e.currentIndex=r,this._addToMoves(e,r)),e}_truncate(e){for(;e!==null;){let t=e._next;this._addToRemovals(this._unlink(e)),e=t}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,t,i){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(e);let r=e._prevRemoved,o=e._nextRemoved;return r===null?this._removalsHead=o:r._nextRemoved=o,o===null?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(e,t,i),this._addToMoves(e,i),e}_moveAfter(e,t,i){return this._unlink(e),this._insertAfter(e,t,i),this._addToMoves(e,i),e}_addAfter(e,t,i){return this._insertAfter(e,t,i),this._additionsTail===null?this._additionsTail=this._additionsHead=e:this._additionsTail=this._additionsTail._nextAdded=e,e}_insertAfter(e,t,i){let r=t===null?this._itHead:t._next;return e._next=r,e._prev=t,r===null?this._itTail=e:r._prev=e,t===null?this._itHead=e:t._next=e,this._linkedRecords===null&&(this._linkedRecords=new WJ),this._linkedRecords.put(e),e.currentIndex=i,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){this._linkedRecords!==null&&this._linkedRecords.remove(e);let t=e._prev,i=e._next;return t===null?this._itHead=i:t._next=i,i===null?this._itTail=t:i._prev=t,e}_addToMoves(e,t){return e.previousIndex===t||(this._movesTail===null?this._movesTail=this._movesHead=e:this._movesTail=this._movesTail._nextMoved=e),e}_addToRemovals(e){return this._unlinkedRecords===null&&(this._unlinkedRecords=new WJ),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,t){return e.item=t,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=e:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=e,e}},uxe=class{constructor(e,t){this.item=e,this.trackById=t,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}},dxe=class{constructor(){this._head=null,this._tail=null}add(e){this._head===null?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,t){let i;for(i=this._head;i!==null;i=i._nextDup)if((t===null||t<=i.currentIndex)&&Object.is(i.trackById,e))return i;return null}remove(e){let t=e._prevDup,i=e._nextDup;return t===null?this._head=i:t._nextDup=i,i===null?this._tail=t:i._prevDup=t,this._head===null}},WJ=class{constructor(){this.map=new Map}put(e){let t=e.trackById,i=this.map.get(t);i||(i=new dxe,this.map.set(t,i)),i.add(e)}get(e,t){let i=e,r=this.map.get(i);return r?r.get(e,t):null}remove(e){let t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function $3e(n,e,t){let i=n.previousIndex;if(i===null)return i;let r=0;return t&&i{if(t&&t.key===r)this._maybeAddToChanges(t,i),this._appendAfter=t,t=t._next;else{let o=this._getOrCreateRecordForKey(r,i);t=this._insertBeforeOrAppend(t,o)}}),t){t._prev&&(t._prev._next=null),this._removalsHead=t;for(let i=t;i!==null;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,t){if(e){let i=e._prev;return t._next=e,t._prev=i,e._prev=t,i&&(i._next=t),e===this._mapHead&&(this._mapHead=t),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}_getOrCreateRecordForKey(e,t){if(this._records.has(e)){let r=this._records.get(e);this._maybeAddToChanges(r,t);let o=r._prev,s=r._next;return o&&(o._next=s),s&&(s._prev=o),r._next=null,r._prev=null,r}let i=new fxe(e);return this._records.set(e,i),i.currentValue=t,this._addToAdditions(i),i}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;e!==null;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;e!==null;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;e!=null;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,t){Object.is(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))}_addToAdditions(e){this._additionsHead===null?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){this._changesHead===null?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach(i=>t(e[i],i))}},fxe=class{constructor(e){this.key=e,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}};function K3e(){return new sH([new lxe])}var sH=(()=>{let e=class e{constructor(i){this.factories=i}static create(i,r){if(r!=null){let o=r.factories.slice();i=i.concat(o)}return new e(i)}static extend(i){return{provide:e,useFactory:r=>e.create(i,r||K3e()),deps:[[e,new RI,new xw]]}}find(i){let r=this.factories.find(o=>o.supports(i));if(r!=null)return r;throw new Fn(901,!1)}};e.\u0275prov=It({token:e,providedIn:"root",factory:K3e});let n=e;return n})();function W3e(){return new Tee([new hxe])}var Tee=(()=>{let e=class e{constructor(i){this.factories=i}static create(i,r){if(r){let o=r.factories.slice();i=i.concat(o)}return new e(i)}static extend(i){return{provide:e,useFactory:r=>e.create(i,r||W3e()),deps:[[e,new RI,new xw]]}}find(i){let r=this.factories.find(o=>o.supports(i));if(r)return r;throw new Fn(901,!1)}};e.\u0275prov=It({token:e,providedIn:"root",factory:W3e});let n=e;return n})();var z4e=(()=>{let e=class e{constructor(i){}};e.\u0275fac=function(r){return new(r||e)(Ke(n0))},e.\u0275mod=Oi({type:e}),e.\u0275inj=Mi({});let n=e;return n})();function V4e(n){try{let{rootComponent:e,appProviders:t,platformProviders:i}=n,r=Svt(i),o=[P4e({}),{provide:bL,useExisting:xvt},...t||[]],c=new HJ({providers:o,parent:r,debugName:"",runEnvironmentInitializers:!1}).injector,h=c.get(Zi);return h.run(()=>{c.resolveInjectorInitializers();let g=c.get(sd,null),x;h.runOutsideAngular(()=>{x=h.onError.subscribe({next:k=>{g.handleError(k)}})});let C=()=>c.destroy(),A=r.get(B4e);return A.add(C),c.onDestroy(()=>{x.unsubscribe(),A.delete(C)}),mvt(g,h,()=>{let k=c.get(N4e);return k.runInitializers(),k.donePromise.then(()=>{let O=c.get(zI,KJ);W_t(O||KJ);let F=c.get(n0);return e!==void 0&&F.bootstrap(e),F})})})}catch(e){return Promise.reject(e)}}function Ht(n){return typeof n=="boolean"?n:n!=null&&n!=="false"}function xr(n,e=NaN){return!isNaN(parseFloat(n))&&!isNaN(Number(n))?Number(n):e}function aH(n,e){m_("NgSignals");let t=bBe(n);return e?.equal&&(t[mb].equal=e.equal),t}function lH(n){let e=Js(null);try{return n()}finally{Js(e)}}var Dvt=new fi("",{providedIn:"root",factory:()=>ai(kvt)}),kvt=(()=>{let e=class e{};e.\u0275prov=It({token:e,providedIn:"root",factory:()=>new mxe});let n=e;return n})(),mxe=class{constructor(){this.queuedEffectCount=0,this.queues=new Map,this.pendingTasks=ai(Ew),this.taskId=null}scheduleEffect(e){if(this.enqueue(e),this.taskId===null){let t=this.taskId=this.pendingTasks.add();queueMicrotask(()=>{this.flush(),this.pendingTasks.remove(t),this.taskId=null})}}enqueue(e){let t=e.creationZone;this.queues.has(t)||this.queues.set(t,new Set);let i=this.queues.get(t);i.has(e)||(this.queuedEffectCount++,i.add(e))}flush(){for(;this.queuedEffectCount>0;)for(let[e,t]of this.queues)e===null?this.flushQueue(t):e.run(()=>this.flushQueue(t))}flushQueue(e){for(let t of e)e.delete(t),this.queuedEffectCount--,t.run()}},gxe=class{constructor(e,t,i,r,o,s){this.scheduler=e,this.effectFn=t,this.creationZone=i,this.injector=o,this.watcher=TBe(c=>this.runEffect(c),()=>this.schedule(),s),this.unregisterOnDestroy=r?.onDestroy(()=>this.destroy())}runEffect(e){try{this.effectFn(e)}catch(t){this.injector.get(sd,null,{optional:!0})?.handleError(t)}}run(){this.watcher.run()}schedule(){this.scheduler.scheduleEffect(this)}destroy(){this.watcher.destroy(),this.unregisterOnDestroy?.()}};function cH(n,e){m_("NgSignals"),!e?.injector&&Ixe(cH);let t=e?.injector??ai(yo),i=e?.manualCleanup!==!0?t.get(Zj):null,r=new gxe(t.get(Dvt),n,typeof Zone>"u"?null:Zone.current,i,t,e?.allowSignalWrites??!1),o=t.get(ur,null,{optional:!0});return!o||!(o._lView[Jo]&8)?r.watcher.notify():(o._lView[vJ]??=[]).push(r.watcher.notify),r}function U4e(n){let e=DI(n);if(!e)return null;let t=new xL(e);return{get selector(){return t.selector},get type(){return t.componentType},get inputs(){return t.inputs},get outputs(){return t.outputs},get ngContentSelectors(){return t.ngContentSelectors},get isStandalone(){return e.standalone},get isSignal(){return e.signals}}}var pte={};u_(pte,{blockAPICallsBeforeInitialize:()=>dte,blockAcquireTokenInPopups:()=>E5e,blockNonBrowserEnvironment:()=>I5e,blockRedirectInIframe:()=>S5e,blockReloadInHiddenIframes:()=>C5e,clearHash:()=>Cwe,createGuid:()=>w0t,getCurrentUri:()=>zf,getHomepage:()=>Ewe,invoke:()=>zp,invokeAsync:()=>wn,isInIframe:()=>JH,isInPopup:()=>w5e,preconnect:()=>t8,preflightCheck:()=>e8,redirectPreflightCheck:()=>hte,replaceHash:()=>Swe});var qI={};u_(qI,{checkMaxAge:()=>kH,extractTokenClaims:()=>Rw,getJWSPayload:()=>Y4e});var yi={LIBRARY_NAME:"MSAL.JS",SKU:"msal.js.common",CACHE_PREFIX:"msal",DEFAULT_AUTHORITY:"https://login.microsoftonline.com/common/",DEFAULT_AUTHORITY_HOST:"login.microsoftonline.com",DEFAULT_COMMON_TENANT:"common",ADFS:"adfs",DSTS:"dstsv2",AAD_INSTANCE_DISCOVERY_ENDPT:"https://login.microsoftonline.com/common/discovery/instance?api-version=1.1&authorization_endpoint=",CIAM_AUTH_URL:".ciamlogin.com",AAD_TENANT_DOMAIN_SUFFIX:".onmicrosoft.com",RESOURCE_DELIM:"|",NO_ACCOUNT:"NO_ACCOUNT",CLAIMS:"claims",CONSUMER_UTID:"9188040d-6c67-4c5b-b112-36a304b66dad",OPENID_SCOPE:"openid",PROFILE_SCOPE:"profile",OFFLINE_ACCESS_SCOPE:"offline_access",EMAIL_SCOPE:"email",CODE_RESPONSE_TYPE:"code",CODE_GRANT_TYPE:"authorization_code",RT_GRANT_TYPE:"refresh_token",FRAGMENT_RESPONSE_MODE:"fragment",S256_CODE_CHALLENGE_METHOD:"S256",URL_FORM_CONTENT_TYPE:"application/x-www-form-urlencoded;charset=utf-8",AUTHORIZATION_PENDING:"authorization_pending",NOT_DEFINED:"not_defined",EMPTY_STRING:"",NOT_APPLICABLE:"N/A",NOT_AVAILABLE:"Not Available",FORWARD_SLASH:"/",IMDS_ENDPOINT:"http://169.254.169.254/metadata/instance/compute/location",IMDS_VERSION:"2020-06-01",IMDS_TIMEOUT:2e3,AZURE_REGION_AUTO_DISCOVER_FLAG:"TryAutoDetect",REGIONAL_AUTH_PUBLIC_CLOUD_SUFFIX:"login.microsoft.com",KNOWN_PUBLIC_CLOUDS:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"],TOKEN_RESPONSE_TYPE:"token",ID_TOKEN_RESPONSE_TYPE:"id_token",SHR_NONCE_VALIDITY:240,INVALID_INSTANCE:"invalid_instance"},kL={SUCCESS:200,SUCCESS_RANGE_START:200,SUCCESS_RANGE_END:299,REDIRECT:302,CLIENT_ERROR:400,CLIENT_ERROR_RANGE_START:400,BAD_REQUEST:400,UNAUTHORIZED:401,NOT_FOUND:404,REQUEST_TIMEOUT:408,TOO_MANY_REQUESTS:429,CLIENT_ERROR_RANGE_END:499,SERVER_ERROR:500,SERVER_ERROR_RANGE_START:500,SERVICE_UNAVAILABLE:503,GATEWAY_TIMEOUT:504,SERVER_ERROR_RANGE_END:599,MULTI_SIDED_ERROR:600},qm=[yi.OPENID_SCOPE,yi.PROFILE_SCOPE,yi.OFFLINE_ACCESS_SCOPE],h1e=[...qm,yi.EMAIL_SCOPE],$h={CONTENT_TYPE:"Content-Type",RETRY_AFTER:"Retry-After",CCS_HEADER:"X-AnchorMailbox",WWWAuthenticate:"WWW-Authenticate",AuthenticationInfo:"Authentication-Info",X_MS_REQUEST_ID:"x-ms-request-id",X_MS_HTTP_VERSION:"x-ms-httpver"},du={ID_TOKEN:"idtoken",CLIENT_INFO:"client.info",ADAL_ID_TOKEN:"adal.idtoken",ERROR:"error",ERROR_DESC:"error.description",ACTIVE_ACCOUNT:"active-account",ACTIVE_ACCOUNT_FILTERS:"active-account-filters"},r0={COMMON:"common",ORGANIZATIONS:"organizations",CONSUMERS:"consumers"},ML={ACCESS_TOKEN:"access_token",XMS_CC:"xms_cc"},uc={LOGIN:"login",SELECT_ACCOUNT:"select_account",CONSENT:"consent",NONE:"none",CREATE:"create",NO_SESSION:"no_session"},Aee={PLAIN:"plain",S256:"S256"},o0={QUERY:"query",FRAGMENT:"fragment"},p1e=wt(Ce({},o0),{FORM_POST:"form_post"}),uH={IMPLICIT_GRANT:"implicit",AUTHORIZATION_CODE_GRANT:"authorization_code",CLIENT_CREDENTIALS_GRANT:"client_credentials",RESOURCE_OWNER_PASSWORD_GRANT:"password",REFRESH_TOKEN_GRANT:"refresh_token",DEVICE_CODE_GRANT:"device_code",JWT_BEARER:"urn:ietf:params:oauth:grant-type:jwt-bearer"},OL={MSSTS_ACCOUNT_TYPE:"MSSTS",ADFS_ACCOUNT_TYPE:"ADFS",MSAV1_ACCOUNT_TYPE:"MSA",GENERIC_ACCOUNT_TYPE:"Generic"},Wc={CACHE_KEY_SEPARATOR:"-",CLIENT_INFO_SEPARATOR:"."},bo={ID_TOKEN:"IdToken",ACCESS_TOKEN:"AccessToken",ACCESS_TOKEN_WITH_AUTH_SCHEME:"AccessToken_With_AuthScheme",REFRESH_TOKEN:"RefreshToken"};var dH="appmetadata",j4e="client_info",VI="1",RL={CACHE_KEY:"authority-metadata",REFRESH_TIME_SECONDS:3600*24},Fp={CONFIG:"config",CACHE:"cache",NETWORK:"network",HARDCODED_VALUES:"hardcoded_values"},cd={SCHEMA_VERSION:5,MAX_CUR_HEADER_BYTES:80,MAX_LAST_HEADER_BYTES:330,MAX_CACHED_ERRORS:50,CACHE_KEY:"server-telemetry",CATEGORY_SEPARATOR:"|",VALUE_SEPARATOR:",",OVERFLOW_TRUE:"1",OVERFLOW_FALSE:"0",UNKNOWN_ERROR:"unknown_error"},Gs={BEARER:"Bearer",POP:"pop",SSH:"ssh-cert"},Dw={DEFAULT_THROTTLE_TIME_SECONDS:60,DEFAULT_MAX_THROTTLE_TIME_SECONDS:3600,THROTTLING_PREFIX:"throttling",X_MS_LIB_CAPABILITY_VALUE:"retry-after, h429"},Dee={INVALID_GRANT_ERROR:"invalid_grant",CLIENT_MISMATCH_ERROR:"client_mismatch"},kee={username:"username",password:"password"},hH={httpSuccess:200,httpBadRequest:400},hO={FAILED_AUTO_DETECTION:"1",INTERNAL_CACHE:"2",ENVIRONMENT_VARIABLE:"3",IMDS:"4"},Mee={CONFIGURED_MATCHES_DETECTED:"1",CONFIGURED_NO_AUTO_DETECTION:"2",CONFIGURED_NOT_DETECTED:"3",AUTO_DETECTION_REQUESTED_SUCCESSFUL:"4",AUTO_DETECTION_REQUESTED_FAILED:"5"},s0={NOT_APPLICABLE:"0",FORCE_REFRESH_OR_CLAIMS:"1",NO_CACHED_ACCESS_TOKEN:"2",CACHED_ACCESS_TOKEN_EXPIRED:"3",PROACTIVELY_REFRESHED:"4"},Oee={Jwt:"JWT",Jwk:"JWK",Pop:"pop"};var f1e=300;var pO={};u_(pO,{postRequestFailed:()=>fH,unexpectedError:()=>pH});var pH="unexpected_error",fH="post_request_failed";var Ree={[pH]:"Unexpected error in authentication.",[fH]:"Post request failed from the network, could be a 4xx/5xx or a network unavailability. Please check the exact error code for details."},H4e={unexpectedError:{code:pH,desc:Ree[pH]},postRequestFailed:{code:fH,desc:Ree[fH]}},Os=class n extends Error{constructor(e,t,i){let r=t?`${e}: ${t}`:e;super(r),Object.setPrototypeOf(this,n.prototype),this.errorCode=e||yi.EMPTY_STRING,this.errorMessage=t||yi.EMPTY_STRING,this.subError=i||yi.EMPTY_STRING,this.name="AuthError"}setCorrelationId(e){this.correlationId=e}};function mH(n,e){return new Os(n,e?`${Ree[n]} ${e}`:Ree[n])}var ud={};u_(ud,{authTimeNotFound:()=>kw,authorizationCodeMissingFromServerResponse:()=>AO,bindingKeyNotRemoved:()=>DO,cannotAppendScopeSet:()=>EO,cannotRemoveEmptyScope:()=>SO,clientInfoDecodingError:()=>UI,clientInfoEmptyError:()=>fO,deviceCodeExpired:()=>yH,deviceCodePollingCancelled:()=>vH,deviceCodeUnknownError:()=>bH,emptyInputScopeSet:()=>GI,endSessionEndpointNotSupported:()=>kO,endpointResolutionError:()=>Lp,hashNotDeserialized:()=>vO,invalidAssertion:()=>CH,invalidCacheEnvironment:()=>Ow,invalidCacheRecord:()=>IO,invalidClientCredential:()=>SH,invalidState:()=>a0,keyIdMissing:()=>MO,maxAgeTranspired:()=>xO,methodNotImplemented:()=>rs,missingTenantIdError:()=>AH,multipleMatchingAccounts:()=>_H,multipleMatchingAppMetadata:()=>wO,multipleMatchingTokens:()=>gH,nestedAppAuthBridgeDisabled:()=>DH,networkError:()=>gO,noAccountFound:()=>xH,noAccountInSilentRequest:()=>Mw,noCryptoObject:()=>YI,noNetworkConnectivity:()=>IH,nonceMismatch:()=>bO,nullOrEmptyToken:()=>mO,openIdConfigError:()=>_O,requestCannotBeMade:()=>CO,stateMismatch:()=>yO,stateNotFound:()=>HI,tokenClaimsCnfRequiredForSignedJwt:()=>TO,tokenParsingError:()=>jI,tokenRefreshRequired:()=>Db,unexpectedCredentialType:()=>wH,userCanceled:()=>TH,userTimeoutReached:()=>EH});var UI="client_info_decoding_error",fO="client_info_empty_error",jI="token_parsing_error",mO="null_or_empty_token",Lp="endpoints_resolution_error",gO="network_error",_O="openid_config_error",vO="hash_not_deserialized",a0="invalid_state",yO="state_mismatch",HI="state_not_found",bO="nonce_mismatch",kw="auth_time_not_found",xO="max_age_transpired",gH="multiple_matching_tokens",_H="multiple_matching_accounts",wO="multiple_matching_appMetadata",CO="request_cannot_be_made",SO="cannot_remove_empty_scope",EO="cannot_append_scopeset",GI="empty_input_scopeset",vH="device_code_polling_cancelled",yH="device_code_expired",bH="device_code_unknown_error",Mw="no_account_in_silent_request",IO="invalid_cache_record",Ow="invalid_cache_environment",xH="no_account_found",YI="no_crypto_object",wH="unexpected_credential_type",CH="invalid_assertion",SH="invalid_client_credential",Db="token_refresh_required",EH="user_timeout_reached",TO="token_claims_cnf_required_for_signedjwt",AO="authorization_code_missing_from_server_response",DO="binding_key_not_removed",kO="end_session_endpoint_not_supported",MO="key_id_missing",IH="no_network_connectivity",TH="user_canceled",AH="missing_tenant_id_error",rs="method_not_implemented",DH="nested_app_auth_bridge_disabled";var fs={[UI]:"The client info could not be parsed/decoded correctly",[fO]:"The client info was empty",[jI]:"Token cannot be parsed",[mO]:"The token is null or empty",[Lp]:"Endpoints cannot be resolved",[gO]:"Network request failed",[_O]:"Could not retrieve endpoints. Check your authority and verify the .well-known/openid-configuration endpoint returns the required endpoints.",[vO]:"The hash parameters could not be deserialized",[a0]:"State was not the expected format",[yO]:"State mismatch error",[HI]:"State not found",[bO]:"Nonce mismatch error",[kw]:"Max Age was requested and the ID token is missing the auth_time variable. auth_time is an optional claim and is not enabled by default - it must be enabled. See https://aka.ms/msaljs/optional-claims for more information.",[xO]:"Max Age is set to 0, or too much time has elapsed since the last end-user authentication.",[gH]:"The cache contains multiple tokens satisfying the requirements. Call AcquireToken again providing more requirements such as authority or account.",[_H]:"The cache contains multiple accounts satisfying the given parameters. Please pass more info to obtain the correct account",[wO]:"The cache contains multiple appMetadata satisfying the given parameters. Please pass more info to obtain the correct appMetadata",[CO]:"Token request cannot be made without authorization code or refresh token.",[SO]:"Cannot remove null or empty scope from ScopeSet",[EO]:"Cannot append ScopeSet",[GI]:"Empty input ScopeSet cannot be processed",[vH]:"Caller has cancelled token endpoint polling during device code flow by setting DeviceCodeRequest.cancel = true.",[yH]:"Device code is expired.",[bH]:"Device code stopped polling for unknown reasons.",[Mw]:"Please pass an account object, silent flow is not supported without account information",[IO]:"Cache record object was null or undefined.",[Ow]:"Invalid environment when attempting to create cache entry",[xH]:"No account found in cache for given key.",[YI]:"No crypto object detected.",[wH]:"Unexpected credential type.",[CH]:"Client assertion must meet requirements described in https://tools.ietf.org/html/rfc7515",[SH]:"Client credential (secret, certificate, or assertion) must not be empty when creating a confidential client. An application should at most have one credential",[Db]:"Cannot return token from cache because it must be refreshed. This may be due to one of the following reasons: forceRefresh parameter is set to true, claims have been requested, there is no cached access token or it is expired.",[EH]:"User defined timeout for device code polling reached",[TO]:"Cannot generate a POP jwt if the token_claims are not populated",[AO]:"Server response does not contain an authorization code to proceed",[DO]:"Could not remove the credential's binding key from storage.",[kO]:"The provided authority does not support logout",[MO]:"A keyId value is missing from the requested bound token's cache record and is required to match the token to it's stored binding key.",[IH]:"No network connectivity. Check your internet connection.",[TH]:"User cancelled the flow.",[AH]:"A tenant id - not common, organizations, or consumers - must be specified when using the client_credentials flow.",[rs]:"This method has not been implemented",[DH]:"The nested app auth bridge is disabled"},G4e={clientInfoDecodingError:{code:UI,desc:fs[UI]},clientInfoEmptyError:{code:fO,desc:fs[fO]},tokenParsingError:{code:jI,desc:fs[jI]},nullOrEmptyToken:{code:mO,desc:fs[mO]},endpointResolutionError:{code:Lp,desc:fs[Lp]},networkError:{code:gO,desc:fs[gO]},unableToGetOpenidConfigError:{code:_O,desc:fs[_O]},hashNotDeserialized:{code:vO,desc:fs[vO]},invalidStateError:{code:a0,desc:fs[a0]},stateMismatchError:{code:yO,desc:fs[yO]},stateNotFoundError:{code:HI,desc:fs[HI]},nonceMismatchError:{code:bO,desc:fs[bO]},authTimeNotFoundError:{code:kw,desc:fs[kw]},maxAgeTranspired:{code:xO,desc:fs[xO]},multipleMatchingTokens:{code:gH,desc:fs[gH]},multipleMatchingAccounts:{code:_H,desc:fs[_H]},multipleMatchingAppMetadata:{code:wO,desc:fs[wO]},tokenRequestCannotBeMade:{code:CO,desc:fs[CO]},removeEmptyScopeError:{code:SO,desc:fs[SO]},appendScopeSetError:{code:EO,desc:fs[EO]},emptyInputScopeSetError:{code:GI,desc:fs[GI]},DeviceCodePollingCancelled:{code:vH,desc:fs[vH]},DeviceCodeExpired:{code:yH,desc:fs[yH]},DeviceCodeUnknownError:{code:bH,desc:fs[bH]},NoAccountInSilentRequest:{code:Mw,desc:fs[Mw]},invalidCacheRecord:{code:IO,desc:fs[IO]},invalidCacheEnvironment:{code:Ow,desc:fs[Ow]},noAccountFound:{code:xH,desc:fs[xH]},noCryptoObj:{code:YI,desc:fs[YI]},unexpectedCredentialType:{code:wH,desc:fs[wH]},invalidAssertion:{code:CH,desc:fs[CH]},invalidClientCredential:{code:SH,desc:fs[SH]},tokenRefreshRequired:{code:Db,desc:fs[Db]},userTimeoutReached:{code:EH,desc:fs[EH]},tokenClaimsRequired:{code:TO,desc:fs[TO]},noAuthorizationCodeFromServer:{code:AO,desc:fs[AO]},bindingKeyNotRemovedError:{code:DO,desc:fs[DO]},logoutNotSupported:{code:kO,desc:fs[kO]},keyIdMissing:{code:MO,desc:fs[MO]},noNetworkConnectivity:{code:IH,desc:fs[IH]},userCanceledError:{code:TH,desc:fs[TH]},missingTenantIdError:{code:AH,desc:fs[AH]},nestedAppAuthBridgeDisabled:{code:DH,desc:fs[DH]}},OO=class n extends Os{constructor(e,t){super(e,t?`${fs[e]}: ${t}`:fs[e]),this.name="ClientAuthError",Object.setPrototypeOf(this,n.prototype)}};function Xi(n,e){return new OO(n,e)}function Rw(n,e){let t=Y4e(n);try{let i=e(t);return JSON.parse(i)}catch{throw Xi(jI)}}function Y4e(n){if(!n)throw Xi(mO);let t=/^([^\.\s]*)\.([^\.\s]+)\.([^\.\s]*)$/.exec(n);if(!t||t.length<4)throw Xi(jI);return t[2]}function kH(n,e){if(e===0||Date.now()-3e5>n+e)throw Xi(xO)}var Bee={};u_(Bee,{createDiscoveredInstance:()=>E1e});var Bp={Default:0,Adfs:1,Dsts:2,Ciam:3};function q4e(n){return n.hasOwnProperty("authorization_endpoint")&&n.hasOwnProperty("token_endpoint")&&n.hasOwnProperty("issuer")&&n.hasOwnProperty("jwks_uri")}var l0={};u_(l0,{authorityMismatch:()=>LH,authorityUriInsecure:()=>NO,cannotAllowNativeBroker:()=>FH,cannotSetOIDCOptions:()=>PH,claimsRequestParsingError:()=>MH,emptyInputScopesError:()=>FO,invalidAuthenticationHeader:()=>NH,invalidAuthorityMetadata:()=>UO,invalidClaims:()=>Nw,invalidCloudDiscoveryMetadata:()=>$I,invalidCodeChallengeMethod:()=>VO,invalidPromptValue:()=>LO,logoutRequestEmpty:()=>zO,missingNonceAuthenticationHeader:()=>RH,missingSshJwk:()=>Fw,missingSshKid:()=>OH,pkceParamsMissing:()=>Pw,redirectUriEmpty:()=>RO,tokenRequestEmpty:()=>BO,untrustedAuthority:()=>jO,urlEmptyError:()=>PO,urlParseError:()=>kb});var RO="redirect_uri_empty",MH="claims_request_parsing_error",NO="authority_uri_insecure",kb="url_parse_error",PO="empty_url_error",FO="empty_input_scopes_error",LO="invalid_prompt_value",Nw="invalid_claims",BO="token_request_empty",zO="logout_request_empty",VO="invalid_code_challenge_method",Pw="pkce_params_missing",$I="invalid_cloud_discovery_metadata",UO="invalid_authority_metadata",jO="untrusted_authority",Fw="missing_ssh_jwk",OH="missing_ssh_kid",RH="missing_nonce_authentication_header",NH="invalid_authentication_header",PH="cannot_set_OIDCOptions",FH="cannot_allow_native_broker",LH="authority_mismatch";var Pc={[RO]:"A redirect URI is required for all calls, and none has been set.",[MH]:"Could not parse the given claims request object.",[NO]:"Authority URIs must use https. Please see here for valid authority configuration options: https://docs.microsoft.com/en-us/azure/active-directory/develop/msal-js-initializing-client-applications#configuration-options",[kb]:"URL could not be parsed into appropriate segments.",[PO]:"URL was empty or null.",[FO]:"Scopes cannot be passed as null, undefined or empty array because they are required to obtain an access token.",[LO]:"Please see here for valid configuration options: https://azuread.github.io/microsoft-authentication-library-for-js/ref/modules/_azure_msal_common.html#commonauthorizationurlrequest",[Nw]:"Given claims parameter must be a stringified JSON object.",[BO]:"Token request was empty and not found in cache.",[zO]:"The logout request was null or undefined.",[VO]:'code_challenge_method passed is invalid. Valid values are "plain" and "S256".',[Pw]:"Both params: code_challenge and code_challenge_method are to be passed if to be sent in the request",[$I]:"Invalid cloudDiscoveryMetadata provided. Must be a stringified JSON object containing tenant_discovery_endpoint and metadata fields",[UO]:"Invalid authorityMetadata provided. Must by a stringified JSON object containing authorization_endpoint, token_endpoint, issuer fields.",[jO]:"The provided authority is not a trusted authority. Please include this authority in the knownAuthorities config parameter.",[Fw]:"Missing sshJwk in SSH certificate request. A stringified JSON Web Key is required when using the SSH authentication scheme.",[OH]:"Missing sshKid in SSH certificate request. A string that uniquely identifies the public SSH key is required when using the SSH authentication scheme.",[RH]:"Unable to find an authentication header containing server nonce. Either the Authentication-Info or WWW-Authenticate headers must be present in order to obtain a server nonce.",[NH]:"Invalid authentication header provided",[PH]:"Cannot set OIDCOptions parameter. Please change the protocol mode to OIDC or use a non-Microsoft authority.",[FH]:"Cannot set allowNativeBroker parameter to true when not in AAD protocol mode.",[LH]:"Authority mismatch error. Authority provided in login request or PublicClientApplication config does not match the environment of the provided account. Please use a matching account or make an interactive request to login to this authority."},$4e={redirectUriNotSet:{code:RO,desc:Pc[RO]},claimsRequestParsingError:{code:MH,desc:Pc[MH]},authorityUriInsecure:{code:NO,desc:Pc[NO]},urlParseError:{code:kb,desc:Pc[kb]},urlEmptyError:{code:PO,desc:Pc[PO]},emptyScopesError:{code:FO,desc:Pc[FO]},invalidPrompt:{code:LO,desc:Pc[LO]},invalidClaimsRequest:{code:Nw,desc:Pc[Nw]},tokenRequestEmptyError:{code:BO,desc:Pc[BO]},logoutRequestEmptyError:{code:zO,desc:Pc[zO]},invalidCodeChallengeMethod:{code:VO,desc:Pc[VO]},invalidCodeChallengeParams:{code:Pw,desc:Pc[Pw]},invalidCloudDiscoveryMetadata:{code:$I,desc:Pc[$I]},invalidAuthorityMetadata:{code:UO,desc:Pc[UO]},untrustedAuthority:{code:jO,desc:Pc[jO]},missingSshJwk:{code:Fw,desc:Pc[Fw]},missingSshKid:{code:OH,desc:Pc[OH]},missingNonceAuthenticationHeader:{code:RH,desc:Pc[RH]},invalidAuthenticationHeader:{code:NH,desc:Pc[NH]},cannotSetOIDCOptions:{code:PH,desc:Pc[PH]},cannotAllowNativeBroker:{code:FH,desc:Pc[FH]},authorityMismatch:{code:LH,desc:Pc[LH]}},BH=class n extends Os{constructor(e){super(e,Pc[e]),this.name="ClientConfigurationError",Object.setPrototypeOf(this,n.prototype)}};function Zs(n){return new BH(n)}var Tc=class{static isEmptyObj(e){if(e)try{let t=JSON.parse(e);return Object.keys(t).length===0}catch{}return!0}static startsWith(e,t){return e.indexOf(t)===0}static endsWith(e,t){return e.length>=t.length&&e.lastIndexOf(t)===e.length-t.length}static queryStringToObject(e){let t={},i=e.split("&"),r=o=>decodeURIComponent(o.replace(/\+/g," "));return i.forEach(o=>{if(o.trim()){let[s,c]=o.split(/=(.+)/g,2);s&&c&&(t[r(s)]=r(c))}}),t}static trimArrayEntries(e){return e.map(t=>t.trim())}static removeEmptyStringsFromArray(e){return e.filter(t=>!!t)}static jsonParseHelper(e){try{return JSON.parse(e)}catch{return null}}static matchPattern(e,t){return new RegExp(e.replace(/\\/g,"\\\\").replace(/\*/g,"[^ ]*").replace(/\?/g,"\\?")).test(t)}};var KI={};u_(KI,{getDeserializedResponse:()=>m1e,stripLeadingHashOrQuery:()=>K4e});function K4e(n){return n.startsWith("#/")?n.substring(2):n.startsWith("#")||n.startsWith("?")?n.substring(1):n}function m1e(n){if(!n||n.indexOf("=")<0)return null;try{let e=K4e(n),t=Object.fromEntries(new URLSearchParams(e));if(t.code||t.error||t.error_description||t.state)return t}catch{throw Xi(vO)}return null}var bs=class n{get urlString(){return this._urlString}constructor(e){if(this._urlString=e,!this._urlString)throw Zs(PO);e.includes("#")||(this._urlString=n.canonicalizeUri(e))}static canonicalizeUri(e){if(e){let t=e.toLowerCase();return Tc.endsWith(t,"?")?t=t.slice(0,-1):Tc.endsWith(t,"?/")&&(t=t.slice(0,-2)),Tc.endsWith(t,"/")||(t+="/"),t}return e}validateAsUri(){let e;try{e=this.getUrlComponents()}catch{throw Zs(kb)}if(!e.HostNameAndPort||!e.PathSegments)throw Zs(kb);if(!e.Protocol||e.Protocol.toLowerCase()!=="https:")throw Zs(NO)}static appendQueryString(e,t){return t?e.indexOf("?")<0?`${e}?${t}`:`${e}&${t}`:e}static removeHashFromUrl(e){return n.canonicalizeUri(e.split("#")[0])}replaceTenantPath(e){let t=this.getUrlComponents(),i=t.PathSegments;return e&&i.length!==0&&(i[0]===r0.COMMON||i[0]===r0.ORGANIZATIONS)&&(i[0]=e),n.constructAuthorityUriFromObject(t)}getUrlComponents(){let e=RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?"),t=this.urlString.match(e);if(!t)throw Zs(kb);let i={Protocol:t[1],HostNameAndPort:t[4],AbsolutePath:t[5],QueryString:t[7]},r=i.AbsolutePath.split("/");return r=r.filter(o=>o&&o.length>0),i.PathSegments=r,i.QueryString&&i.QueryString.endsWith("/")&&(i.QueryString=i.QueryString.substring(0,i.QueryString.length-1)),i}static getDomainFromUrl(e){let t=RegExp("^([^:/?#]+://)?([^/?#]*)"),i=e.match(t);if(!i)throw Zs(kb);return i[2]}static getAbsoluteUrl(e,t){if(e[0]===yi.FORWARD_SLASH){let r=new n(t).getUrlComponents();return r.Protocol+"//"+r.HostNameAndPort+e}return e}static constructAuthorityUriFromObject(e){return new n(e.Protocol+"//"+e.HostNameAndPort+"/"+e.PathSegments.join("/"))}static hashContainsKnownProperties(e){return!!m1e(e)}};var Z4e={endpointMetadata:{"login.microsoftonline.com":{token_endpoint:"https://login.microsoftonline.com/{tenantid}/oauth2/v2.0/token",jwks_uri:"https://login.microsoftonline.com/{tenantid}/discovery/v2.0/keys",issuer:"https://login.microsoftonline.com/{tenantid}/v2.0",authorization_endpoint:"https://login.microsoftonline.com/{tenantid}/oauth2/v2.0/authorize",end_session_endpoint:"https://login.microsoftonline.com/{tenantid}/oauth2/v2.0/logout"},"login.chinacloudapi.cn":{token_endpoint:"https://login.chinacloudapi.cn/{tenantid}/oauth2/v2.0/token",jwks_uri:"https://login.chinacloudapi.cn/{tenantid}/discovery/v2.0/keys",issuer:"https://login.partner.microsoftonline.cn/{tenantid}/v2.0",authorization_endpoint:"https://login.chinacloudapi.cn/{tenantid}/oauth2/v2.0/authorize",end_session_endpoint:"https://login.chinacloudapi.cn/{tenantid}/oauth2/v2.0/logout"},"login.microsoftonline.us":{token_endpoint:"https://login.microsoftonline.us/{tenantid}/oauth2/v2.0/token",jwks_uri:"https://login.microsoftonline.us/{tenantid}/discovery/v2.0/keys",issuer:"https://login.microsoftonline.us/{tenantid}/v2.0",authorization_endpoint:"https://login.microsoftonline.us/{tenantid}/oauth2/v2.0/authorize",end_session_endpoint:"https://login.microsoftonline.us/{tenantid}/oauth2/v2.0/logout"}},instanceDiscoveryMetadata:{tenant_discovery_endpoint:"https://{canonicalAuthority}/v2.0/.well-known/openid-configuration",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]}},g1e=Z4e.endpointMetadata,_1e=Z4e.instanceDiscoveryMetadata,v1e=new Set;_1e.metadata.forEach(n=>{n.aliases.forEach(e=>{v1e.add(e)})});function Q4e(n,e){let t,i=n.canonicalAuthority;if(i){let r=new bs(i).getUrlComponents().HostNameAndPort;t=W4e(r,n.cloudDiscoveryMetadata?.metadata,Fp.CONFIG,e)||W4e(r,_1e.metadata,Fp.HARDCODED_VALUES,e)||n.knownAuthorities}return t||[]}function W4e(n,e,t,i){if(i?.trace(`getAliasesFromMetadata called with source: ${t}`),n&&e){let r=zH(e,n);if(r)return i?.trace(`getAliasesFromMetadata: found cloud discovery metadata in ${t}, returning aliases`),r.aliases;i?.trace(`getAliasesFromMetadata: did not find cloud discovery metadata in ${t}`)}return null}function X4e(n){return zH(_1e.metadata,n)}function zH(n,e){for(let t=0;t(...o)=>{t.trace(`Executing function ${e}`);let s=i?.startMeasurement(e,r);if(r){let c=e+"CallCount";i?.incrementFields({[c]:1},r)}try{let c=n(...o);return s?.end({success:!0}),t.trace(`Returning result from ${e}`),c}catch(c){t.trace(`Error occurred in ${e}`);try{t.trace(JSON.stringify(c))}catch{t.trace("Unable to print error message.")}throw s?.end({success:!1},c),c}},wn=(n,e,t,i,r)=>(...o)=>{t.trace(`Executing function ${e}`);let s=i?.startMeasurement(e,r);if(r){let c=e+"CallCount";i?.incrementFields({[c]:1},r)}return i?.setPreQueueTime(e,r),n(...o).then(c=>(t.trace(`Returning result from ${e}`),s?.end({success:!0}),c)).catch(c=>{t.trace(`Error occurred in ${e}`);try{t.trace(JSON.stringify(c))}catch{t.trace("Unable to print error message.")}throw s?.end({success:!1},c),c})};var t5e=(()=>{class n{constructor(t,i,r,o){this.networkInterface=t,this.logger=i,this.performanceClient=r,this.correlationId=o}detectRegion(t,i){return ct(this,null,function*(){this.performanceClient?.addQueueMeasurement(mt.RegionDiscoveryDetectRegion,this.correlationId);let r=t;if(r)i.region_source=hO.ENVIRONMENT_VARIABLE;else{let o=n.IMDS_OPTIONS;try{let s=yield wn(this.getRegionFromIMDS.bind(this),mt.RegionDiscoveryGetRegionFromIMDS,this.logger,this.performanceClient,this.correlationId)(yi.IMDS_VERSION,o);if(s.status===hH.httpSuccess&&(r=s.body,i.region_source=hO.IMDS),s.status===hH.httpBadRequest){let c=yield wn(this.getCurrentVersion.bind(this),mt.RegionDiscoveryGetCurrentVersion,this.logger,this.performanceClient,this.correlationId)(o);if(!c)return i.region_source=hO.FAILED_AUTO_DETECTION,null;let h=yield wn(this.getRegionFromIMDS.bind(this),mt.RegionDiscoveryGetRegionFromIMDS,this.logger,this.performanceClient,this.correlationId)(c,o);h.status===hH.httpSuccess&&(r=h.body,i.region_source=hO.IMDS)}}catch{return i.region_source=hO.FAILED_AUTO_DETECTION,null}}return r||(i.region_source=hO.FAILED_AUTO_DETECTION),r||null})}getRegionFromIMDS(t,i){return ct(this,null,function*(){return this.performanceClient?.addQueueMeasurement(mt.RegionDiscoveryGetRegionFromIMDS,this.correlationId),this.networkInterface.sendGetRequestAsync(`${yi.IMDS_ENDPOINT}?api-version=${t}&format=text`,i,yi.IMDS_TIMEOUT)})}getCurrentVersion(t){return ct(this,null,function*(){this.performanceClient?.addQueueMeasurement(mt.RegionDiscoveryGetCurrentVersion,this.correlationId);try{let i=yield this.networkInterface.sendGetRequestAsync(`${yi.IMDS_ENDPOINT}?format=json`,t);return i.status===hH.httpBadRequest&&i.body&&i.body["newest-versions"]&&i.body["newest-versions"].length>0?i.body["newest-versions"][0]:null}catch{return null}})}}return n.IMDS_OPTIONS={headers:{Metadata:"true"}},n})();var Bl={};u_(Bl,{createAccessTokenEntity:()=>w1e,createIdTokenEntity:()=>x1e,createRefreshTokenEntity:()=>C1e,generateAppMetadataKey:()=>jvt,generateAuthorityMetadataExpiresAt:()=>Pee,generateCredentialKey:()=>UH,isAccessTokenEntity:()=>Ovt,isAppMetadataEntity:()=>Hvt,isAuthorityMetadataEntity:()=>Gvt,isAuthorityMetadataExpired:()=>Fee,isCredentialEntity:()=>Nee,isIdTokenEntity:()=>Rvt,isRefreshTokenEntity:()=>Nvt,isServerTelemetryEntity:()=>Vvt,isThrottlingEntity:()=>Uvt,updateAuthorityEndpointMetadata:()=>PL,updateCloudDiscoveryMetadata:()=>jH});var VH={};u_(VH,{delay:()=>Mvt,isTokenExpired:()=>NL,nowSeconds:()=>$m,wasClockTurnedBack:()=>b1e});function $m(){return Math.round(new Date().getTime()/1e3)}function NL(n,e){let t=Number(n)||0;return $m()+e>t}function b1e(n){return Number(n)>$m()}function Mvt(n,e){return new Promise(t=>setTimeout(()=>t(e),n))}function UH(n){return[Pvt(n),Fvt(n),Lvt(n),Bvt(n),zvt(n)].join(Wc.CACHE_KEY_SEPARATOR).toLowerCase()}function x1e(n,e,t,i,r){return{credentialType:bo.ID_TOKEN,homeAccountId:n,environment:e,clientId:i,secret:t,realm:r}}function w1e(n,e,t,i,r,o,s,c,h,g,x,C,A,k,O){let F={homeAccountId:n,credentialType:bo.ACCESS_TOKEN,secret:t,cachedAt:$m().toString(),expiresOn:s.toString(),extendedExpiresOn:c.toString(),environment:e,clientId:i,realm:r,target:o,tokenType:x||Gs.BEARER};if(C&&(F.userAssertionHash=C),g&&(F.refreshOn=g.toString()),k&&(F.requestedClaims=k,F.requestedClaimsHash=O),F.tokenType?.toLowerCase()!==Gs.BEARER.toLowerCase())switch(F.credentialType=bo.ACCESS_TOKEN_WITH_AUTH_SCHEME,F.tokenType){case Gs.POP:let L=Rw(t,h);if(!L?.cnf?.kid)throw Xi(TO);F.keyId=L.cnf.kid;break;case Gs.SSH:F.keyId=A}return F}function C1e(n,e,t,i,r,o,s){let c={credentialType:bo.REFRESH_TOKEN,homeAccountId:n,environment:e,clientId:i,secret:t};return o&&(c.userAssertionHash=o),r&&(c.familyId=r),s&&(c.expiresOn=s.toString()),c}function Nee(n){return n.hasOwnProperty("homeAccountId")&&n.hasOwnProperty("environment")&&n.hasOwnProperty("credentialType")&&n.hasOwnProperty("clientId")&&n.hasOwnProperty("secret")}function Ovt(n){return n?Nee(n)&&n.hasOwnProperty("realm")&&n.hasOwnProperty("target")&&(n.credentialType===bo.ACCESS_TOKEN||n.credentialType===bo.ACCESS_TOKEN_WITH_AUTH_SCHEME):!1}function Rvt(n){return n?Nee(n)&&n.hasOwnProperty("realm")&&n.credentialType===bo.ID_TOKEN:!1}function Nvt(n){return n?Nee(n)&&n.credentialType===bo.REFRESH_TOKEN:!1}function Pvt(n){return[n.homeAccountId,n.environment].join(Wc.CACHE_KEY_SEPARATOR).toLowerCase()}function Fvt(n){let e=n.credentialType===bo.REFRESH_TOKEN&&n.familyId||n.clientId;return[n.credentialType,e,n.realm||""].join(Wc.CACHE_KEY_SEPARATOR).toLowerCase()}function Lvt(n){return(n.target||"").toLowerCase()}function Bvt(n){return(n.requestedClaimsHash||"").toLowerCase()}function zvt(n){return n.tokenType&&n.tokenType.toLowerCase()!==Gs.BEARER.toLowerCase()?n.tokenType.toLowerCase():""}function Vvt(n,e){let t=n.indexOf(cd.CACHE_KEY)===0,i=!0;return e&&(i=e.hasOwnProperty("failedRequests")&&e.hasOwnProperty("errors")&&e.hasOwnProperty("cacheHits")),t&&i}function Uvt(n,e){let t=!1;n&&(t=n.indexOf(Dw.THROTTLING_PREFIX)===0);let i=!0;return e&&(i=e.hasOwnProperty("throttleTime")),t&&i}function jvt({environment:n,clientId:e}){return[dH,n,e].join(Wc.CACHE_KEY_SEPARATOR).toLowerCase()}function Hvt(n,e){return e?n.indexOf(dH)===0&&e.hasOwnProperty("clientId")&&e.hasOwnProperty("environment"):!1}function Gvt(n,e){return e?n.indexOf(RL.CACHE_KEY)===0&&e.hasOwnProperty("aliases")&&e.hasOwnProperty("preferred_cache")&&e.hasOwnProperty("preferred_network")&&e.hasOwnProperty("canonical_authority")&&e.hasOwnProperty("authorization_endpoint")&&e.hasOwnProperty("token_endpoint")&&e.hasOwnProperty("issuer")&&e.hasOwnProperty("aliasesFromNetwork")&&e.hasOwnProperty("endpointsFromNetwork")&&e.hasOwnProperty("expiresAt")&&e.hasOwnProperty("jwks_uri"):!1}function Pee(){return $m()+RL.REFRESH_TIME_SECONDS}function PL(n,e,t){n.authorization_endpoint=e.authorization_endpoint,n.token_endpoint=e.token_endpoint,n.end_session_endpoint=e.end_session_endpoint,n.issuer=e.issuer,n.endpointsFromNetwork=t,n.jwks_uri=e.jwks_uri}function jH(n,e,t){n.aliases=e.aliases,n.preferred_cache=e.preferred_cache,n.preferred_network=e.preferred_network,n.aliasesFromNetwork=t}function Fee(n){return n.expiresAt<=$m()}var g_=class n{constructor(e,t,i,r,o,s,c,h){this.canonicalAuthority=e,this._canonicalAuthority.validateAsUri(),this.networkInterface=t,this.cacheManager=i,this.authorityOptions=r,this.regionDiscoveryMetadata={region_used:void 0,region_source:void 0,region_outcome:void 0},this.logger=o,this.performanceClient=c,this.correlationId=s,this.managedIdentity=h||!1,this.regionDiscovery=new t5e(t,this.logger,this.performanceClient,this.correlationId)}getAuthorityType(e){if(e.HostNameAndPort.endsWith(yi.CIAM_AUTH_URL))return Bp.Ciam;let t=e.PathSegments;if(t.length)switch(t[0].toLowerCase()){case yi.ADFS:return Bp.Adfs;case yi.DSTS:return Bp.Dsts}return Bp.Default}get authorityType(){return this.getAuthorityType(this.canonicalAuthorityUrlComponents)}get protocolMode(){return this.authorityOptions.protocolMode}get options(){return this.authorityOptions}get canonicalAuthority(){return this._canonicalAuthority.urlString}set canonicalAuthority(e){this._canonicalAuthority=new bs(e),this._canonicalAuthority.validateAsUri(),this._canonicalAuthorityUrlComponents=null}get canonicalAuthorityUrlComponents(){return this._canonicalAuthorityUrlComponents||(this._canonicalAuthorityUrlComponents=this._canonicalAuthority.getUrlComponents()),this._canonicalAuthorityUrlComponents}get hostnameAndPort(){return this.canonicalAuthorityUrlComponents.HostNameAndPort.toLowerCase()}get tenant(){return this.canonicalAuthorityUrlComponents.PathSegments[0]}get authorizationEndpoint(){if(this.discoveryComplete())return this.replacePath(this.metadata.authorization_endpoint);throw Xi(Lp)}get tokenEndpoint(){if(this.discoveryComplete())return this.replacePath(this.metadata.token_endpoint);throw Xi(Lp)}get deviceCodeEndpoint(){if(this.discoveryComplete())return this.replacePath(this.metadata.token_endpoint.replace("/token","/devicecode"));throw Xi(Lp)}get endSessionEndpoint(){if(this.discoveryComplete()){if(!this.metadata.end_session_endpoint)throw Xi(kO);return this.replacePath(this.metadata.end_session_endpoint)}else throw Xi(Lp)}get selfSignedJwtAudience(){if(this.discoveryComplete())return this.replacePath(this.metadata.issuer);throw Xi(Lp)}get jwksUri(){if(this.discoveryComplete())return this.replacePath(this.metadata.jwks_uri);throw Xi(Lp)}canReplaceTenant(e){return e.PathSegments.length===1&&!n.reservedTenantDomains.has(e.PathSegments[0])&&this.getAuthorityType(e)===Bp.Default&&this.protocolMode===_h.AAD}replaceTenant(e){return e.replace(/{tenant}|{tenantid}/g,this.tenant)}replacePath(e){let t=e,r=new bs(this.metadata.canonical_authority).getUrlComponents(),o=r.PathSegments;return this.canonicalAuthorityUrlComponents.PathSegments.forEach((c,h)=>{let g=o[h];if(h===0&&this.canReplaceTenant(r)){let x=new bs(this.metadata.authorization_endpoint).getUrlComponents().PathSegments[0];g!==x&&(this.logger.verbose(`Replacing tenant domain name ${g} with id ${x}`),g=x)}c!==g&&(t=t.replace(`/${g}/`,`/${c}/`))}),this.replaceTenant(t)}get defaultOpenIdConfigurationEndpoint(){let e=this.hostnameAndPort;return this.canonicalAuthority.endsWith("v2.0/")||this.authorityType===Bp.Adfs||this.protocolMode!==_h.AAD&&!this.isAliasOfKnownMicrosoftAuthority(e)?`${this.canonicalAuthority}.well-known/openid-configuration`:`${this.canonicalAuthority}v2.0/.well-known/openid-configuration`}discoveryComplete(){return!!this.metadata}resolveEndpointsAsync(){return ct(this,null,function*(){this.performanceClient?.addQueueMeasurement(mt.AuthorityResolveEndpointsAsync,this.correlationId);let e=this.getCurrentMetadataEntity(),t=yield wn(this.updateCloudDiscoveryMetadata.bind(this),mt.AuthorityUpdateCloudDiscoveryMetadata,this.logger,this.performanceClient,this.correlationId)(e);this.canonicalAuthority=this.canonicalAuthority.replace(this.hostnameAndPort,e.preferred_network);let i=yield wn(this.updateEndpointMetadata.bind(this),mt.AuthorityUpdateEndpointMetadata,this.logger,this.performanceClient,this.correlationId)(e);this.updateCachedMetadata(e,t,{source:i}),this.performanceClient?.addFields({cloudDiscoverySource:t,authorityEndpointSource:i},this.correlationId)})}getCurrentMetadataEntity(){let e=this.cacheManager.getAuthorityMetadataByAlias(this.hostnameAndPort);return e||(e={aliases:[],preferred_cache:this.hostnameAndPort,preferred_network:this.hostnameAndPort,canonical_authority:this.canonicalAuthority,authorization_endpoint:"",token_endpoint:"",end_session_endpoint:"",issuer:"",aliasesFromNetwork:!1,endpointsFromNetwork:!1,expiresAt:Pee(),jwks_uri:""}),e}updateCachedMetadata(e,t,i){t!==Fp.CACHE&&i?.source!==Fp.CACHE&&(e.expiresAt=Pee(),e.canonical_authority=this.canonicalAuthority);let r=this.cacheManager.generateAuthorityMetadataCacheKey(e.preferred_cache);this.cacheManager.setAuthorityMetadata(r,e),this.metadata=e}updateEndpointMetadata(e){return ct(this,null,function*(){this.performanceClient?.addQueueMeasurement(mt.AuthorityUpdateEndpointMetadata,this.correlationId);let t=this.updateEndpointMetadataFromLocalSources(e);if(t){if(t.source===Fp.HARDCODED_VALUES&&this.authorityOptions.azureRegionConfiguration?.azureRegion&&t.metadata){let r=yield wn(this.updateMetadataWithRegionalInformation.bind(this),mt.AuthorityUpdateMetadataWithRegionalInformation,this.logger,this.performanceClient,this.correlationId)(t.metadata);PL(e,r,!1),e.canonical_authority=this.canonicalAuthority}return t.source}let i=yield wn(this.getEndpointMetadataFromNetwork.bind(this),mt.AuthorityGetEndpointMetadataFromNetwork,this.logger,this.performanceClient,this.correlationId)();if(i)return this.authorityOptions.azureRegionConfiguration?.azureRegion&&(i=yield wn(this.updateMetadataWithRegionalInformation.bind(this),mt.AuthorityUpdateMetadataWithRegionalInformation,this.logger,this.performanceClient,this.correlationId)(i)),PL(e,i,!0),Fp.NETWORK;throw Xi(_O,this.defaultOpenIdConfigurationEndpoint)})}updateEndpointMetadataFromLocalSources(e){this.logger.verbose("Attempting to get endpoint metadata from authority configuration");let t=this.getEndpointMetadataFromConfig();if(t)return this.logger.verbose("Found endpoint metadata in authority configuration"),PL(e,t,!1),{source:Fp.CONFIG};if(this.logger.verbose("Did not find endpoint metadata in the config... Attempting to get endpoint metadata from the hardcoded values."),this.authorityOptions.skipAuthorityMetadataCache)this.logger.verbose("Skipping hardcoded metadata cache since skipAuthorityMetadataCache is set to true. Attempting to get endpoint metadata from the network metadata cache.");else{let r=this.getEndpointMetadataFromHardcodedValues();if(r)return PL(e,r,!1),{source:Fp.HARDCODED_VALUES,metadata:r};this.logger.verbose("Did not find endpoint metadata in hardcoded values... Attempting to get endpoint metadata from the network metadata cache.")}let i=Fee(e);return this.isAuthoritySameType(e)&&e.endpointsFromNetwork&&!i?(this.logger.verbose("Found endpoint metadata in the cache."),{source:Fp.CACHE}):(i&&this.logger.verbose("The metadata entity is expired."),null)}isAuthoritySameType(e){return new bs(e.canonical_authority).getUrlComponents().PathSegments.length===this.canonicalAuthorityUrlComponents.PathSegments.length}getEndpointMetadataFromConfig(){if(this.authorityOptions.authorityMetadata)try{return JSON.parse(this.authorityOptions.authorityMetadata)}catch{throw Zs(UO)}return null}getEndpointMetadataFromNetwork(){return ct(this,null,function*(){this.performanceClient?.addQueueMeasurement(mt.AuthorityGetEndpointMetadataFromNetwork,this.correlationId);let e={},t=this.defaultOpenIdConfigurationEndpoint;this.logger.verbose(`Authority.getEndpointMetadataFromNetwork: attempting to retrieve OAuth endpoints from ${t}`);try{let i=yield this.networkInterface.sendGetRequestAsync(t,e);return q4e(i.body)?i.body:(this.logger.verbose("Authority.getEndpointMetadataFromNetwork: could not parse response as OpenID configuration"),null)}catch(i){return this.logger.verbose(`Authority.getEndpointMetadataFromNetwork: ${i}`),null}})}getEndpointMetadataFromHardcodedValues(){return this.hostnameAndPort in g1e?g1e[this.hostnameAndPort]:null}updateMetadataWithRegionalInformation(e){return ct(this,null,function*(){this.performanceClient?.addQueueMeasurement(mt.AuthorityUpdateMetadataWithRegionalInformation,this.correlationId);let t=this.authorityOptions.azureRegionConfiguration?.azureRegion;if(t){if(t!==yi.AZURE_REGION_AUTO_DISCOVER_FLAG)return this.regionDiscoveryMetadata.region_outcome=Mee.CONFIGURED_NO_AUTO_DETECTION,this.regionDiscoveryMetadata.region_used=t,n.replaceWithRegionalInformation(e,t);let i=yield wn(this.regionDiscovery.detectRegion.bind(this.regionDiscovery),mt.RegionDiscoveryDetectRegion,this.logger,this.performanceClient,this.correlationId)(this.authorityOptions.azureRegionConfiguration?.environmentRegion,this.regionDiscoveryMetadata);if(i)return this.regionDiscoveryMetadata.region_outcome=Mee.AUTO_DETECTION_REQUESTED_SUCCESSFUL,this.regionDiscoveryMetadata.region_used=i,n.replaceWithRegionalInformation(e,i);this.regionDiscoveryMetadata.region_outcome=Mee.AUTO_DETECTION_REQUESTED_FAILED}return e})}updateCloudDiscoveryMetadata(e){return ct(this,null,function*(){this.performanceClient?.addQueueMeasurement(mt.AuthorityUpdateCloudDiscoveryMetadata,this.correlationId);let t=this.updateCloudDiscoveryMetadataFromLocalSources(e);if(t)return t;let i=yield wn(this.getCloudDiscoveryMetadataFromNetwork.bind(this),mt.AuthorityGetCloudDiscoveryMetadataFromNetwork,this.logger,this.performanceClient,this.correlationId)();if(i)return jH(e,i,!0),Fp.NETWORK;throw Zs(jO)})}updateCloudDiscoveryMetadataFromLocalSources(e){this.logger.verbose("Attempting to get cloud discovery metadata from authority configuration"),this.logger.verbosePii(`Known Authorities: ${this.authorityOptions.knownAuthorities||yi.NOT_APPLICABLE}`),this.logger.verbosePii(`Authority Metadata: ${this.authorityOptions.authorityMetadata||yi.NOT_APPLICABLE}`),this.logger.verbosePii(`Canonical Authority: ${e.canonical_authority||yi.NOT_APPLICABLE}`);let t=this.getCloudDiscoveryMetadataFromConfig();if(t)return this.logger.verbose("Found cloud discovery metadata in authority configuration"),jH(e,t,!1),Fp.CONFIG;if(this.logger.verbose("Did not find cloud discovery metadata in the config... Attempting to get cloud discovery metadata from the hardcoded values."),this.options.skipAuthorityMetadataCache)this.logger.verbose("Skipping hardcoded cloud discovery metadata cache since skipAuthorityMetadataCache is set to true. Attempting to get cloud discovery metadata from the network metadata cache.");else{let r=X4e(this.hostnameAndPort);if(r)return this.logger.verbose("Found cloud discovery metadata from hardcoded values."),jH(e,r,!1),Fp.HARDCODED_VALUES;this.logger.verbose("Did not find cloud discovery metadata in hardcoded values... Attempting to get cloud discovery metadata from the network metadata cache.")}let i=Fee(e);return this.isAuthoritySameType(e)&&e.aliasesFromNetwork&&!i?(this.logger.verbose("Found cloud discovery metadata in the cache."),Fp.CACHE):(i&&this.logger.verbose("The metadata entity is expired."),null)}getCloudDiscoveryMetadataFromConfig(){if(this.authorityType===Bp.Ciam)return this.logger.verbose("CIAM authorities do not support cloud discovery metadata, generate the aliases from authority host."),n.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort);if(this.authorityOptions.cloudDiscoveryMetadata){this.logger.verbose("The cloud discovery metadata has been provided as a network response, in the config.");try{this.logger.verbose("Attempting to parse the cloud discovery metadata.");let e=JSON.parse(this.authorityOptions.cloudDiscoveryMetadata),t=zH(e.metadata,this.hostnameAndPort);if(this.logger.verbose("Parsed the cloud discovery metadata."),t)return this.logger.verbose("There is returnable metadata attached to the parsed cloud discovery metadata."),t;this.logger.verbose("There is no metadata attached to the parsed cloud discovery metadata.")}catch{throw this.logger.verbose("Unable to parse the cloud discovery metadata. Throwing Invalid Cloud Discovery Metadata Error."),Zs($I)}}return this.isInKnownAuthorities()?(this.logger.verbose("The host is included in knownAuthorities. Creating new cloud discovery metadata from the host."),n.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort)):null}getCloudDiscoveryMetadataFromNetwork(){return ct(this,null,function*(){this.performanceClient?.addQueueMeasurement(mt.AuthorityGetCloudDiscoveryMetadataFromNetwork,this.correlationId);let e=`${yi.AAD_INSTANCE_DISCOVERY_ENDPT}${this.canonicalAuthority}oauth2/v2.0/authorize`,t={},i=null;try{let r=yield this.networkInterface.sendGetRequestAsync(e,t),o,s;if(J4e(r.body))o=r.body,s=o.metadata,this.logger.verbosePii(`tenant_discovery_endpoint is: ${o.tenant_discovery_endpoint}`);else if(e5e(r.body)){if(this.logger.warning(`A CloudInstanceDiscoveryErrorResponse was returned. The cloud instance discovery network request's status code is: ${r.status}`),o=r.body,o.error===yi.INVALID_INSTANCE)return this.logger.error("The CloudInstanceDiscoveryErrorResponse error is invalid_instance."),null;this.logger.warning(`The CloudInstanceDiscoveryErrorResponse error is ${o.error}`),this.logger.warning(`The CloudInstanceDiscoveryErrorResponse error description is ${o.error_description}`),this.logger.warning("Setting the value of the CloudInstanceDiscoveryMetadata (returned from the network) to []"),s=[]}else return this.logger.error("AAD did not return a CloudInstanceDiscoveryResponse or CloudInstanceDiscoveryErrorResponse"),null;this.logger.verbose("Attempting to find a match between the developer's authority and the CloudInstanceDiscoveryMetadata returned from the network request."),i=zH(s,this.hostnameAndPort)}catch(r){if(r instanceof Os)this.logger.error(`There was a network error while attempting to get the cloud discovery instance metadata. Error: ${r.errorCode} Error Description: ${r.errorMessage}`);else{let o=r;this.logger.error(`A non-MSALJS error was thrown while attempting to get the cloud instance discovery metadata. Error: ${o.name} Error Description: ${o.message}`)}return null}return i||(this.logger.warning("The developer's authority was not found within the CloudInstanceDiscoveryMetadata returned from the network request."),this.logger.verbose("Creating custom Authority for custom domain scenario."),i=n.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort)),i})}isInKnownAuthorities(){return this.authorityOptions.knownAuthorities.filter(t=>t&&bs.getDomainFromUrl(t).toLowerCase()===this.hostnameAndPort).length>0}static generateAuthority(e,t){let i;if(t&&t.azureCloudInstance!==WI.None){let r=t.tenant?t.tenant:yi.DEFAULT_COMMON_TENANT;i=`${t.azureCloudInstance}/${r}/`}return i||e}static createCloudDiscoveryMetadataFromHost(e){return{preferred_network:e,preferred_cache:e,aliases:[e]}}getPreferredCache(){if(this.managedIdentity)return yi.DEFAULT_AUTHORITY_HOST;if(this.discoveryComplete())return this.metadata.preferred_cache;throw Xi(Lp)}isAlias(e){return this.metadata.aliases.indexOf(e)>-1}isAliasOfKnownMicrosoftAuthority(e){return v1e.has(e)}static isPublicCloudAuthority(e){return yi.KNOWN_PUBLIC_CLOUDS.indexOf(e)>=0}static buildRegionalAuthorityString(e,t,i){let r=new bs(e);r.validateAsUri();let o=r.getUrlComponents(),s=`${t}.${o.HostNameAndPort}`;this.isPublicCloudAuthority(o.HostNameAndPort)&&(s=`${t}.${yi.REGIONAL_AUTH_PUBLIC_CLOUD_SUFFIX}`);let c=bs.constructAuthorityUriFromObject(wt(Ce({},r.getUrlComponents()),{HostNameAndPort:s})).urlString;return i?`${c}?${i}`:c}static replaceWithRegionalInformation(e,t){let i=Ce({},e);return i.authorization_endpoint=n.buildRegionalAuthorityString(i.authorization_endpoint,t),i.token_endpoint=n.buildRegionalAuthorityString(i.token_endpoint,t),i.end_session_endpoint&&(i.end_session_endpoint=n.buildRegionalAuthorityString(i.end_session_endpoint,t)),i}static transformCIAMAuthority(e){let t=e,r=new bs(e).getUrlComponents();if(r.PathSegments.length===0&&r.HostNameAndPort.endsWith(yi.CIAM_AUTH_URL)){let o=r.HostNameAndPort.split(".")[0];t=`${t}${o}${yi.AAD_TENANT_DOMAIN_SUFFIX}`}return t}};g_.reservedTenantDomains=new Set(["{tenant}","{tenantid}",r0.COMMON,r0.CONSUMERS,r0.ORGANIZATIONS]);function i5e(n){let i=new bs(n).getUrlComponents().PathSegments.slice(-1)[0]?.toLowerCase();switch(i){case r0.COMMON:case r0.ORGANIZATIONS:case r0.CONSUMERS:return;default:return i}}function Lee(n){return n.endsWith(yi.FORWARD_SLASH)?n:`${n}${yi.FORWARD_SLASH}`}function S1e(n){let e=n.cloudDiscoveryMetadata,t;if(e)try{t=JSON.parse(e)}catch{throw Zs($I)}return{canonicalAuthority:n.authority?Lee(n.authority):void 0,knownAuthorities:n.knownAuthorities,cloudDiscoveryMetadata:t}}function E1e(n,e,t,i,r,o,s){return ct(this,null,function*(){s?.addQueueMeasurement(mt.AuthorityFactoryCreateDiscoveredInstance,o);let c=g_.transformCIAMAuthority(Lee(n)),h=new g_(c,e,t,i,r,o,s);try{return yield wn(h.resolveEndpointsAsync.bind(h),mt.AuthorityResolveEndpointsAsync,r,s,o)(),h}catch{throw Xi(Lp)}})}function zee(n,e,t){return ct(this,null,function*(){return typeof n=="string"?n:n({clientId:e,tokenEndpoint:t})})}var FL={};u_(FL,{ACCESS_TOKEN:()=>$vt,CCS_HEADER:()=>t0t,CLAIMS:()=>D1e,CLIENT_ASSERTION:()=>J1e,CLIENT_ASSERTION_TYPE:()=>ewe,CLIENT_ID:()=>ZI,CLIENT_INFO:()=>Xvt,CLIENT_REQUEST_ID:()=>z1e,CLIENT_SECRET:()=>X1e,CODE:()=>P1e,CODE_CHALLENGE:()=>F1e,CODE_CHALLENGE_METHOD:()=>L1e,CODE_VERIFIER:()=>B1e,DEVICE_CODE:()=>Q1e,DOMAIN_HINT:()=>awe,ERROR:()=>Yvt,ERROR_DESCRIPTION:()=>qvt,EXPIRES_IN:()=>Wvt,FOCI:()=>e0t,GRANT_TYPE:()=>A1e,ID_TOKEN:()=>Kvt,ID_TOKEN_HINT:()=>Z1e,LOGIN_HINT:()=>swe,LOGOUT_HINT:()=>rwe,NATIVE_BROKER:()=>nwe,NONCE:()=>R1e,OBO_ASSERTION:()=>twe,ON_BEHALF_OF:()=>Jvt,POST_LOGOUT_URI:()=>W1e,PROMPT:()=>N1e,REDIRECT_URI:()=>I1e,REFRESH_TOKEN:()=>M1e,REFRESH_TOKEN_EXPIRES_IN:()=>Zvt,REQUESTED_TOKEN_USE:()=>iwe,REQ_CNF:()=>jee,RESPONSE_MODE:()=>T1e,RESPONSE_TYPE:()=>Vee,RETURN_SPA_CODE:()=>Hee,SCOPE:()=>k1e,SESSION_STATE:()=>Qvt,SID:()=>owe,STATE:()=>O1e,TOKEN_TYPE:()=>Uee,X_APP_NAME:()=>$1e,X_APP_VER:()=>K1e,X_CLIENT_CPU:()=>H1e,X_CLIENT_CURR_TELEM:()=>G1e,X_CLIENT_EXTRA_SKU:()=>i0t,X_CLIENT_LAST_TELEM:()=>Y1e,X_CLIENT_OS:()=>j1e,X_CLIENT_SKU:()=>V1e,X_CLIENT_VER:()=>U1e,X_MS_LIB_CAPABILITY:()=>q1e});var ZI="client_id",I1e="redirect_uri",Vee="response_type",T1e="response_mode",A1e="grant_type",D1e="claims",k1e="scope",Yvt="error",qvt="error_description",$vt="access_token",Kvt="id_token",M1e="refresh_token",Wvt="expires_in",Zvt="refresh_token_expires_in",O1e="state",R1e="nonce",N1e="prompt",Qvt="session_state",Xvt="client_info",P1e="code",F1e="code_challenge",L1e="code_challenge_method",B1e="code_verifier",z1e="client-request-id",V1e="x-client-SKU",U1e="x-client-VER",j1e="x-client-OS",H1e="x-client-CPU",G1e="x-client-current-telemetry",Y1e="x-client-last-telemetry",q1e="x-ms-lib-capability",$1e="x-app-name",K1e="x-app-ver",W1e="post_logout_redirect_uri",Z1e="id_token_hint",Q1e="device_code",X1e="client_secret",J1e="client_assertion",ewe="client_assertion_type",Uee="token_type",jee="req_cnf",twe="assertion",iwe="requested_token_use",Jvt="on_behalf_of",e0t="foci",t0t="X-AnchorMailbox",Hee="return_spa_code",nwe="nativebroker",rwe="logout_hint",owe="sid",swe="login_hint",awe="domain_hint",i0t="x-client-xtra-sku";var QI={createNewGuid:()=>{throw Xi(rs)},base64Decode:()=>{throw Xi(rs)},base64Encode:()=>{throw Xi(rs)},base64UrlEncode:()=>{throw Xi(rs)},encodeKid:()=>{throw Xi(rs)},getPublicKeyThumbprint(){return ct(this,null,function*(){throw Xi(rs)})},removeTokenBindingKey(){return ct(this,null,function*(){throw Xi(rs)})},clearKeystore(){return ct(this,null,function*(){throw Xi(rs)})},signJwt(){return ct(this,null,function*(){throw Xi(rs)})},hashString(){return ct(this,null,function*(){throw Xi(rs)})}};var xl=function(n){return n[n.Error=0]="Error",n[n.Warning=1]="Warning",n[n.Info=2]="Info",n[n.Verbose=3]="Verbose",n[n.Trace=4]="Trace",n}(xl||{}),__=class n{constructor(e,t,i){this.level=xl.Info;let r=()=>{},o=e||n.createDefaultLoggerOptions();this.localCallback=o.loggerCallback||r,this.piiLoggingEnabled=o.piiLoggingEnabled||!1,this.level=typeof o.logLevel=="number"?o.logLevel:xl.Info,this.correlationId=o.correlationId||yi.EMPTY_STRING,this.packageName=t||yi.EMPTY_STRING,this.packageVersion=i||yi.EMPTY_STRING}static createDefaultLoggerOptions(){return{loggerCallback:()=>{},piiLoggingEnabled:!1,logLevel:xl.Info}}clone(e,t,i){return new n({loggerCallback:this.localCallback,piiLoggingEnabled:this.piiLoggingEnabled,logLevel:this.level,correlationId:i||this.correlationId},e,t)}logMessage(e,t){if(t.logLevel>this.level||!this.piiLoggingEnabled&&t.containsPii)return;let o=`${`[${new Date().toUTCString()}] : [${t.correlationId||this.correlationId||""}]`} : ${this.packageName}@${this.packageVersion} : ${xl[t.logLevel]} - ${e}`;this.executeCallback(t.logLevel,o,t.containsPii||!1)}executeCallback(e,t,i){this.localCallback&&this.localCallback(e,t,i)}error(e,t){this.logMessage(e,{logLevel:xl.Error,containsPii:!1,correlationId:t||yi.EMPTY_STRING})}errorPii(e,t){this.logMessage(e,{logLevel:xl.Error,containsPii:!0,correlationId:t||yi.EMPTY_STRING})}warning(e,t){this.logMessage(e,{logLevel:xl.Warning,containsPii:!1,correlationId:t||yi.EMPTY_STRING})}warningPii(e,t){this.logMessage(e,{logLevel:xl.Warning,containsPii:!0,correlationId:t||yi.EMPTY_STRING})}info(e,t){this.logMessage(e,{logLevel:xl.Info,containsPii:!1,correlationId:t||yi.EMPTY_STRING})}infoPii(e,t){this.logMessage(e,{logLevel:xl.Info,containsPii:!0,correlationId:t||yi.EMPTY_STRING})}verbose(e,t){this.logMessage(e,{logLevel:xl.Verbose,containsPii:!1,correlationId:t||yi.EMPTY_STRING})}verbosePii(e,t){this.logMessage(e,{logLevel:xl.Verbose,containsPii:!0,correlationId:t||yi.EMPTY_STRING})}trace(e,t){this.logMessage(e,{logLevel:xl.Trace,containsPii:!1,correlationId:t||yi.EMPTY_STRING})}tracePii(e,t){this.logMessage(e,{logLevel:xl.Trace,containsPii:!0,correlationId:t||yi.EMPTY_STRING})}isPiiLoggingEnabled(){return this.piiLoggingEnabled||!1}};var Gee="@azure/msal-common",LL="14.14.0";var dc=class n{constructor(e){let t=e?Tc.trimArrayEntries([...e]):[],i=t?Tc.removeEmptyStringsFromArray(t):[];this.validateInputScopes(i),this.scopes=new Set,i.forEach(r=>this.scopes.add(r))}static fromString(e){let i=(e||yi.EMPTY_STRING).split(" ");return new n(i)}static createSearchScopes(e){let t=new n(e);return t.containsOnlyOIDCScopes()?t.removeScope(yi.OFFLINE_ACCESS_SCOPE):t.removeOIDCScopes(),t}validateInputScopes(e){if(!e||e.length<1)throw Zs(FO)}containsScope(e){let t=this.printScopesLowerCase().split(" "),i=new n(t);return e?i.scopes.has(e.toLowerCase()):!1}containsScopeSet(e){return!e||e.scopes.size<=0?!1:this.scopes.size>=e.scopes.size&&e.asArray().every(t=>this.containsScope(t))}containsOnlyOIDCScopes(){let e=0;return h1e.forEach(t=>{this.containsScope(t)&&(e+=1)}),this.scopes.size===e}appendScope(e){e&&this.scopes.add(e.trim())}appendScopes(e){try{e.forEach(t=>this.appendScope(t))}catch{throw Xi(EO)}}removeScope(e){if(!e)throw Xi(SO);this.scopes.delete(e.trim())}removeOIDCScopes(){h1e.forEach(e=>{this.scopes.delete(e)})}unionScopeSets(e){if(!e)throw Xi(GI);let t=new Set;return e.scopes.forEach(i=>t.add(i.toLowerCase())),this.scopes.forEach(i=>t.add(i.toLowerCase())),t}intersectingScopeSets(e){if(!e)throw Xi(GI);e.containsOnlyOIDCScopes()||e.removeOIDCScopes();let t=this.unionScopeSets(e),i=e.getScopeCount(),r=this.getScopeCount();return t.sizee.push(t)),e}printScopes(){return this.scopes?this.asArray().join(" "):yi.EMPTY_STRING}printScopesLowerCase(){return this.printScopes().toLowerCase()}};function BL(n,e){if(!n)throw Xi(fO);try{let t=e(n);return JSON.parse(t)}catch{throw Xi(UI)}}function Lw(n){if(!n)throw Xi(UI);let e=n.split(Wc.CLIENT_INFO_SEPARATOR,2);return{uid:e[0],utid:e.length<2?yi.EMPTY_STRING:e[1]}}function zL(n,e){return!!n&&!!e&&n===e.split(".")[1]}function VL(n,e,t,i){if(i){let{oid:r,sub:o,tid:s,name:c,tfp:h,acr:g}=i,x=s||h||g||"";return{tenantId:x,localAccountId:r||o||"",name:c,isHomeTenant:zL(x,n)}}else return{tenantId:t,localAccountId:e,isHomeTenant:zL(t,n)}}function HO(n,e,t,i){let r=n;if(e){let o=e,{isHomeTenant:c}=o,h=Bm(o,["isHomeTenant"]);r=Ce(Ce({},n),h)}if(t){let s=VL(n.homeAccountId,n.localAccountId,n.tenantId,t),{isHomeTenant:c}=s,h=Bm(s,["isHomeTenant"]);return r=wt(Ce(Ce({},r),h),{idTokenClaims:t,idToken:i}),r}return r}function Yee(n){return n&&(n.tid||n.tfp||n.acr)||null}var zl=class n{generateAccountId(){return[this.homeAccountId,this.environment].join(Wc.CACHE_KEY_SEPARATOR).toLowerCase()}generateAccountKey(){return n.generateAccountCacheKey({homeAccountId:this.homeAccountId,environment:this.environment,tenantId:this.realm,username:this.username,localAccountId:this.localAccountId})}getAccountInfo(){return{homeAccountId:this.homeAccountId,environment:this.environment,tenantId:this.realm,username:this.username,localAccountId:this.localAccountId,name:this.name,nativeAccountId:this.nativeAccountId,authorityType:this.authorityType,tenantProfiles:new Map((this.tenantProfiles||[]).map(e=>[e.tenantId,e]))}}isSingleTenant(){return!this.tenantProfiles}static generateAccountCacheKey(e){let t=e.homeAccountId.split(".")[1];return[e.homeAccountId,e.environment||"",t||e.tenantId||""].join(Wc.CACHE_KEY_SEPARATOR).toLowerCase()}static createAccount(e,t,i){let r=new n;t.authorityType===Bp.Adfs?r.authorityType=OL.ADFS_ACCOUNT_TYPE:t.protocolMode===_h.AAD?r.authorityType=OL.MSSTS_ACCOUNT_TYPE:r.authorityType=OL.GENERIC_ACCOUNT_TYPE;let o;e.clientInfo&&i&&(o=BL(e.clientInfo,i)),r.clientInfo=e.clientInfo,r.homeAccountId=e.homeAccountId,r.nativeAccountId=e.nativeAccountId;let s=e.environment||t&&t.getPreferredCache();if(!s)throw Xi(Ow);r.environment=s,r.realm=o?.utid||Yee(e.idTokenClaims)||"",r.localAccountId=o?.uid||e.idTokenClaims?.oid||e.idTokenClaims?.sub||"";let c=e.idTokenClaims?.preferred_username||e.idTokenClaims?.upn,h=e.idTokenClaims?.emails?e.idTokenClaims.emails[0]:null;if(r.username=c||h||"",r.name=e.idTokenClaims?.name||"",r.cloudGraphHostName=e.cloudGraphHostName,r.msGraphHost=e.msGraphHost,e.tenantProfiles)r.tenantProfiles=e.tenantProfiles;else{let g=VL(e.homeAccountId,r.localAccountId,r.realm,e.idTokenClaims);r.tenantProfiles=[g]}return r}static createFromAccountInfo(e,t,i){let r=new n;return r.authorityType=e.authorityType||OL.GENERIC_ACCOUNT_TYPE,r.homeAccountId=e.homeAccountId,r.localAccountId=e.localAccountId,r.nativeAccountId=e.nativeAccountId,r.realm=e.tenantId,r.environment=e.environment,r.username=e.username,r.name=e.name,r.cloudGraphHostName=t,r.msGraphHost=i,r.tenantProfiles=Array.from(e.tenantProfiles?.values()||[]),r}static generateHomeAccountId(e,t,i,r,o){if(!(t===Bp.Adfs||t===Bp.Dsts)){if(e)try{let s=BL(e,r.base64Decode);if(s.uid&&s.utid)return`${s.uid}.${s.utid}`}catch{}i.warning("No client info in response")}return o?.sub||""}static isAccountEntity(e){return e?e.hasOwnProperty("homeAccountId")&&e.hasOwnProperty("environment")&&e.hasOwnProperty("realm")&&e.hasOwnProperty("localAccountId")&&e.hasOwnProperty("username")&&e.hasOwnProperty("authorityType"):!1}static accountInfoIsEqual(e,t,i){if(!e||!t)return!1;let r=!0;if(i){let o=e.idTokenClaims||{},s=t.idTokenClaims||{};r=o.iat===s.iat&&o.nonce===s.nonce}return e.homeAccountId===t.homeAccountId&&e.localAccountId===t.localAccountId&&e.username===t.username&&e.tenantId===t.tenantId&&e.environment===t.environment&&e.nativeAccountId===t.nativeAccountId&&r}};var qee="cache_quota_exceeded",HH="cache_error_unknown";var lwe={[qee]:"Exceeded cache storage capacity.",[HH]:"Unexpected error occurred when using cache storage."},Bw=class n extends Error{constructor(e,t){let i=t||(lwe[e]?lwe[e]:lwe[HH]);super(`${e}: ${i}`),Object.setPrototypeOf(this,n.prototype),this.name="CacheError",this.errorCode=e,this.errorMessage=i}};var zw=class n{constructor(e,t,i,r){this.clientId=e,this.cryptoImpl=t,this.commonLogger=i.clone(Gee,LL),this.staticAuthorityOptions=r}getAllAccounts(e){return this.buildTenantProfiles(this.getAccountsFilteredBy(e||{}),e)}getAccountInfoFilteredBy(e){let t=this.getAllAccounts(e);return t.length>1?t.sort(r=>r.idTokenClaims?-1:1)[0]:t.length===1?t[0]:null}getBaseAccountInfo(e){let t=this.getAccountsFilteredBy(e);return t.length>0?t[0].getAccountInfo():null}buildTenantProfiles(e,t){return e.flatMap(i=>this.getTenantProfilesFromAccountEntity(i,t?.tenantId,t))}getTenantedAccountInfoByFilter(e,t,i,r){let o=null,s;if(r&&!this.tenantProfileMatchesFilter(i,r))return null;let c=this.getIdToken(e,t,i.tenantId);return c&&(s=Rw(c.secret,this.cryptoImpl.base64Decode),!this.idTokenClaimsMatchTenantProfileFilter(s,r))?null:(o=HO(e,i,s,c?.secret),o)}getTenantProfilesFromAccountEntity(e,t,i){let r=e.getAccountInfo(),o=r.tenantProfiles||new Map,s=this.getTokenKeys();if(t){let h=o.get(t);if(h)o=new Map([[t,h]]);else return[]}let c=[];return o.forEach(h=>{let g=this.getTenantedAccountInfoByFilter(r,s,h,i);g&&c.push(g)}),c}tenantProfileMatchesFilter(e,t){return!(t.localAccountId&&!this.matchLocalAccountIdFromTenantProfile(e,t.localAccountId)||t.name&&e.name!==t.name||t.isHomeTenant!==void 0&&e.isHomeTenant!==t.isHomeTenant)}idTokenClaimsMatchTenantProfileFilter(e,t){return!(t&&(t.localAccountId&&!this.matchLocalAccountIdFromTokenClaims(e,t.localAccountId)||t.loginHint&&!this.matchLoginHintFromTokenClaims(e,t.loginHint)||t.username&&!this.matchUsername(e.preferred_username,t.username)||t.name&&!this.matchName(e,t.name)||t.sid&&!this.matchSid(e,t.sid)))}saveCacheRecord(e,t,i){return ct(this,null,function*(){if(!e)throw Xi(IO);try{e.account&&this.setAccount(e.account),e.idToken&&t?.idToken!==!1&&this.setIdTokenCredential(e.idToken),e.accessToken&&t?.accessToken!==!1&&(yield this.saveAccessToken(e.accessToken)),e.refreshToken&&t?.refreshToken!==!1&&this.setRefreshTokenCredential(e.refreshToken),e.appMetadata&&this.setAppMetadata(e.appMetadata)}catch(r){throw this.commonLogger?.error("CacheManager.saveCacheRecord: failed"),r instanceof Error?(this.commonLogger?.errorPii(`CacheManager.saveCacheRecord: ${r.message}`,i),r.name==="QuotaExceededError"||r.name==="NS_ERROR_DOM_QUOTA_REACHED"||r.message.includes("exceeded the quota")?(this.commonLogger?.error("CacheManager.saveCacheRecord: exceeded storage quota",i),new Bw(qee)):new Bw(r.name,r.message)):(this.commonLogger?.errorPii(`CacheManager.saveCacheRecord: ${r}`,i),new Bw(HH))}})}saveAccessToken(e){return ct(this,null,function*(){let t={clientId:e.clientId,credentialType:e.credentialType,environment:e.environment,homeAccountId:e.homeAccountId,realm:e.realm,tokenType:e.tokenType,requestedClaimsHash:e.requestedClaimsHash},i=this.getTokenKeys(),r=dc.fromString(e.target),o=[];i.accessToken.forEach(s=>{if(!this.accessTokenKeyMatchesFilter(s,t,!1))return;let c=this.getAccessTokenCredential(s);c&&this.credentialMatchesFilter(c,t)&&dc.fromString(c.target).intersectingScopeSets(r)&&o.push(this.removeAccessToken(s))}),yield Promise.all(o),this.setAccessTokenCredential(e)})}getAccountsFilteredBy(e){let t=this.getAccountKeys(),i=[];return t.forEach(r=>{if(!this.isAccountKey(r,e.homeAccountId))return;let o=this.getAccount(r,this.commonLogger);if(!o||e.homeAccountId&&!this.matchHomeAccountId(o,e.homeAccountId)||e.username&&!this.matchUsername(o.username,e.username)||e.environment&&!this.matchEnvironment(o,e.environment)||e.realm&&!this.matchRealm(o,e.realm)||e.nativeAccountId&&!this.matchNativeAccountId(o,e.nativeAccountId)||e.authorityType&&!this.matchAuthorityType(o,e.authorityType))return;let s={localAccountId:e?.localAccountId,name:e?.name},c=o.tenantProfiles?.filter(h=>this.tenantProfileMatchesFilter(h,s));c&&c.length===0||i.push(o)}),i}isAccountKey(e,t,i){return!(e.split(Wc.CACHE_KEY_SEPARATOR).length<3||t&&!e.toLowerCase().includes(t.toLowerCase())||i&&!e.toLowerCase().includes(i.toLowerCase()))}isCredentialKey(e){if(e.split(Wc.CACHE_KEY_SEPARATOR).length<6)return!1;let t=e.toLowerCase();if(t.indexOf(bo.ID_TOKEN.toLowerCase())===-1&&t.indexOf(bo.ACCESS_TOKEN.toLowerCase())===-1&&t.indexOf(bo.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase())===-1&&t.indexOf(bo.REFRESH_TOKEN.toLowerCase())===-1)return!1;if(t.indexOf(bo.REFRESH_TOKEN.toLowerCase())>-1){let i=`${bo.REFRESH_TOKEN}${Wc.CACHE_KEY_SEPARATOR}${this.clientId}${Wc.CACHE_KEY_SEPARATOR}`,r=`${bo.REFRESH_TOKEN}${Wc.CACHE_KEY_SEPARATOR}${VI}${Wc.CACHE_KEY_SEPARATOR}`;if(t.indexOf(i.toLowerCase())===-1&&t.indexOf(r.toLowerCase())===-1)return!1}else if(t.indexOf(this.clientId.toLowerCase())===-1)return!1;return!0}credentialMatchesFilter(e,t){return!(t.clientId&&!this.matchClientId(e,t.clientId)||t.userAssertionHash&&!this.matchUserAssertionHash(e,t.userAssertionHash)||typeof t.homeAccountId=="string"&&!this.matchHomeAccountId(e,t.homeAccountId)||t.environment&&!this.matchEnvironment(e,t.environment)||t.realm&&!this.matchRealm(e,t.realm)||t.credentialType&&!this.matchCredentialType(e,t.credentialType)||t.familyId&&!this.matchFamilyId(e,t.familyId)||t.target&&!this.matchTarget(e,t.target)||(t.requestedClaimsHash||e.requestedClaimsHash)&&e.requestedClaimsHash!==t.requestedClaimsHash||e.credentialType===bo.ACCESS_TOKEN_WITH_AUTH_SCHEME&&(t.tokenType&&!this.matchTokenType(e,t.tokenType)||t.tokenType===Gs.SSH&&t.keyId&&!this.matchKeyId(e,t.keyId)))}getAppMetadataFilteredBy(e){let t=this.getKeys(),i={};return t.forEach(r=>{if(!this.isAppMetadata(r))return;let o=this.getAppMetadata(r);o&&(e.environment&&!this.matchEnvironment(o,e.environment)||e.clientId&&!this.matchClientId(o,e.clientId)||(i[r]=o))}),i}getAuthorityMetadataByAlias(e){let t=this.getAuthorityMetadataKeys(),i=null;return t.forEach(r=>{if(!this.isAuthorityMetadata(r)||r.indexOf(this.clientId)===-1)return;let o=this.getAuthorityMetadata(r);o&&o.aliases.indexOf(e)!==-1&&(i=o)}),i}removeAllAccounts(){return ct(this,null,function*(){let e=this.getAccountKeys(),t=[];e.forEach(i=>{t.push(this.removeAccount(i))}),yield Promise.all(t)})}removeAccount(e){return ct(this,null,function*(){let t=this.getAccount(e,this.commonLogger);t&&(yield this.removeAccountContext(t),this.removeItem(e))})}removeAccountContext(e){return ct(this,null,function*(){let t=this.getTokenKeys(),i=e.generateAccountId(),r=[];t.idToken.forEach(o=>{o.indexOf(i)===0&&this.removeIdToken(o)}),t.accessToken.forEach(o=>{o.indexOf(i)===0&&r.push(this.removeAccessToken(o))}),t.refreshToken.forEach(o=>{o.indexOf(i)===0&&this.removeRefreshToken(o)}),yield Promise.all(r)})}updateOutdatedCachedAccount(e,t,i){if(t&&t.isSingleTenant()){this.commonLogger?.verbose("updateOutdatedCachedAccount: Found a single-tenant (outdated) account entity in the cache, migrating to multi-tenant account entity");let r=this.getAccountKeys().filter(g=>g.startsWith(t.homeAccountId)),o=[];r.forEach(g=>{let x=this.getCachedAccountEntity(g);x&&o.push(x)});let s=o.find(g=>zL(g.realm,g.homeAccountId))||o[0];s.tenantProfiles=o.map(g=>({tenantId:g.realm,localAccountId:g.localAccountId,name:g.name,isHomeTenant:zL(g.realm,g.homeAccountId)}));let c=n.toObject(new zl,Ce({},s)),h=c.generateAccountKey();return r.forEach(g=>{g!==h&&this.removeOutdatedAccount(e)}),this.setAccount(c),i?.verbose("Updated an outdated account entity in the cache"),c}return t}removeAccessToken(e){return ct(this,null,function*(){let t=this.getAccessTokenCredential(e);if(t){if(t.credentialType.toLowerCase()===bo.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase()&&t.tokenType===Gs.POP){let r=t.keyId;if(r)try{yield this.cryptoImpl.removeTokenBindingKey(r)}catch{throw Xi(DO)}}return this.removeItem(e)}})}removeAppMetadata(){return this.getKeys().forEach(t=>{this.isAppMetadata(t)&&this.removeItem(t)}),!0}readAccountFromCache(e){let t=zl.generateAccountCacheKey(e);return this.getAccount(t,this.commonLogger)}getIdToken(e,t,i,r,o){this.commonLogger.trace("CacheManager - getIdToken called");let s={homeAccountId:e.homeAccountId,environment:e.environment,credentialType:bo.ID_TOKEN,clientId:this.clientId,realm:i},c=this.getIdTokensByFilter(s,t),h=c.size;if(h<1)return this.commonLogger.info("CacheManager:getIdToken - No token found"),null;if(h>1){let g=c;if(!i){let x=new Map;c.forEach((A,k)=>{A.realm===e.tenantId&&x.set(k,A)});let C=x.size;if(C<1)return this.commonLogger.info("CacheManager:getIdToken - Multiple ID tokens found for account but none match account entity tenant id, returning first result"),c.values().next().value;if(C===1)return this.commonLogger.info("CacheManager:getIdToken - Multiple ID tokens found for account, defaulting to home tenant profile"),x.values().next().value;g=x}return this.commonLogger.info("CacheManager:getIdToken - Multiple matching ID tokens found, clearing them"),g.forEach((x,C)=>{this.removeIdToken(C)}),r&&o&&r.addFields({multiMatchedID:c.size},o),null}return this.commonLogger.info("CacheManager:getIdToken - Returning ID token"),c.values().next().value}getIdTokensByFilter(e,t){let i=t&&t.idToken||this.getTokenKeys().idToken,r=new Map;return i.forEach(o=>{if(!this.idTokenKeyMatchesFilter(o,Ce({clientId:this.clientId},e)))return;let s=this.getIdTokenCredential(o);s&&this.credentialMatchesFilter(s,e)&&r.set(o,s)}),r}idTokenKeyMatchesFilter(e,t){let i=e.toLowerCase();return!(t.clientId&&i.indexOf(t.clientId.toLowerCase())===-1||t.homeAccountId&&i.indexOf(t.homeAccountId.toLowerCase())===-1)}removeIdToken(e){this.removeItem(e)}removeRefreshToken(e){this.removeItem(e)}getAccessToken(e,t,i,r,o,s){this.commonLogger.trace("CacheManager - getAccessToken called");let c=dc.createSearchScopes(t.scopes),h=t.authenticationScheme||Gs.BEARER,g=h&&h.toLowerCase()!==Gs.BEARER.toLowerCase()?bo.ACCESS_TOKEN_WITH_AUTH_SCHEME:bo.ACCESS_TOKEN,x={homeAccountId:e.homeAccountId,environment:e.environment,credentialType:g,clientId:this.clientId,realm:r||e.tenantId,target:c,tokenType:h,keyId:t.sshKid,requestedClaimsHash:t.requestedClaimsHash},C=i&&i.accessToken||this.getTokenKeys().accessToken,A=[];C.forEach(O=>{if(this.accessTokenKeyMatchesFilter(O,x,!0)){let F=this.getAccessTokenCredential(O);F&&this.credentialMatchesFilter(F,x)&&A.push(F)}});let k=A.length;return k<1?(this.commonLogger.info("CacheManager:getAccessToken - No token found"),null):k>1?(this.commonLogger.info("CacheManager:getAccessToken - Multiple access tokens found, clearing them"),A.forEach(O=>{this.removeAccessToken(UH(O))}),o&&s&&o.addFields({multiMatchedAT:A.length},s),null):(this.commonLogger.info("CacheManager:getAccessToken - Returning access token"),A[0])}accessTokenKeyMatchesFilter(e,t,i){let r=e.toLowerCase();if(t.clientId&&r.indexOf(t.clientId.toLowerCase())===-1||t.homeAccountId&&r.indexOf(t.homeAccountId.toLowerCase())===-1||t.realm&&r.indexOf(t.realm.toLowerCase())===-1||t.requestedClaimsHash&&r.indexOf(t.requestedClaimsHash.toLowerCase())===-1)return!1;if(t.target){let o=t.target.asArray();for(let s=0;s{if(!this.accessTokenKeyMatchesFilter(r,e,!0))return;let o=this.getAccessTokenCredential(r);o&&this.credentialMatchesFilter(o,e)&&i.push(o)}),i}getRefreshToken(e,t,i,r,o){this.commonLogger.trace("CacheManager - getRefreshToken called");let s=t?VI:void 0,c={homeAccountId:e.homeAccountId,environment:e.environment,credentialType:bo.REFRESH_TOKEN,clientId:this.clientId,familyId:s},h=i&&i.refreshToken||this.getTokenKeys().refreshToken,g=[];h.forEach(C=>{if(this.refreshTokenKeyMatchesFilter(C,c)){let A=this.getRefreshTokenCredential(C);A&&this.credentialMatchesFilter(A,c)&&g.push(A)}});let x=g.length;return x<1?(this.commonLogger.info("CacheManager:getRefreshToken - No refresh token found."),null):(x>1&&r&&o&&r.addFields({multiMatchedRT:x},o),this.commonLogger.info("CacheManager:getRefreshToken - returning refresh token"),g[0])}refreshTokenKeyMatchesFilter(e,t){let i=e.toLowerCase();return!(t.familyId&&i.indexOf(t.familyId.toLowerCase())===-1||!t.familyId&&t.clientId&&i.indexOf(t.clientId.toLowerCase())===-1||t.homeAccountId&&i.indexOf(t.homeAccountId.toLowerCase())===-1)}readAppMetadataFromCache(e){let t={environment:e,clientId:this.clientId},i=this.getAppMetadataFilteredBy(t),r=Object.keys(i).map(s=>i[s]),o=r.length;if(o<1)return null;if(o>1)throw Xi(wO);return r[0]}isAppMetadataFOCI(e){let t=this.readAppMetadataFromCache(e);return!!(t&&t.familyId===VI)}matchHomeAccountId(e,t){return typeof e.homeAccountId=="string"&&t===e.homeAccountId}matchLocalAccountIdFromTokenClaims(e,t){let i=e.oid||e.sub;return t===i}matchLocalAccountIdFromTenantProfile(e,t){return e.localAccountId===t}matchName(e,t){return t.toLowerCase()===e.name?.toLowerCase()}matchUsername(e,t){return!!(e&&typeof e=="string"&&t?.toLowerCase()===e.toLowerCase())}matchUserAssertionHash(e,t){return!!(e.userAssertionHash&&t===e.userAssertionHash)}matchEnvironment(e,t){if(this.staticAuthorityOptions){let r=Q4e(this.staticAuthorityOptions,this.commonLogger);if(r.includes(t)&&r.includes(e.environment))return!0}let i=this.getAuthorityMetadataByAlias(t);return!!(i&&i.aliases.indexOf(e.environment)>-1)}matchCredentialType(e,t){return e.credentialType&&t.toLowerCase()===e.credentialType.toLowerCase()}matchClientId(e,t){return!!(e.clientId&&t===e.clientId)}matchFamilyId(e,t){return!!(e.familyId&&t===e.familyId)}matchRealm(e,t){return e.realm?.toLowerCase()===t.toLowerCase()}matchNativeAccountId(e,t){return!!(e.nativeAccountId&&t===e.nativeAccountId)}matchLoginHintFromTokenClaims(e,t){return e.login_hint===t||e.preferred_username===t||e.upn===t}matchSid(e,t){return e.sid===t}matchAuthorityType(e,t){return!!(e.authorityType&&t.toLowerCase()===e.authorityType.toLowerCase())}matchTarget(e,t){return e.credentialType!==bo.ACCESS_TOKEN&&e.credentialType!==bo.ACCESS_TOKEN_WITH_AUTH_SCHEME||!e.target?!1:dc.fromString(e.target).containsScopeSet(t)}matchTokenType(e,t){return!!(e.tokenType&&e.tokenType===t)}matchKeyId(e,t){return!!(e.keyId&&e.keyId===t)}isAppMetadata(e){return e.indexOf(dH)!==-1}isAuthorityMetadata(e){return e.indexOf(RL.CACHE_KEY)!==-1}generateAuthorityMetadataCacheKey(e){return`${RL.CACHE_KEY}-${this.clientId}-${e}`}static toObject(e,t){for(let i in t)e[i]=t[i];return e}},GH=class extends zw{setAccount(){throw Xi(rs)}getAccount(){throw Xi(rs)}getCachedAccountEntity(){throw Xi(rs)}setIdTokenCredential(){throw Xi(rs)}getIdTokenCredential(){throw Xi(rs)}setAccessTokenCredential(){throw Xi(rs)}getAccessTokenCredential(){throw Xi(rs)}setRefreshTokenCredential(){throw Xi(rs)}getRefreshTokenCredential(){throw Xi(rs)}setAppMetadata(){throw Xi(rs)}getAppMetadata(){throw Xi(rs)}setServerTelemetry(){throw Xi(rs)}getServerTelemetry(){throw Xi(rs)}setAuthorityMetadata(){throw Xi(rs)}getAuthorityMetadata(){throw Xi(rs)}getAuthorityMetadataKeys(){throw Xi(rs)}setThrottlingCache(){throw Xi(rs)}getThrottlingCache(){throw Xi(rs)}removeItem(){throw Xi(rs)}getKeys(){throw Xi(rs)}getAccountKeys(){throw Xi(rs)}getTokenKeys(){throw Xi(rs)}clear(){return ct(this,null,function*(){throw Xi(rs)})}updateCredentialCacheKey(){throw Xi(rs)}removeOutdatedAccount(){throw Xi(rs)}};var $ee={tokenRenewalOffsetSeconds:f1e,preventCorsPreflight:!1},n0t={loggerCallback:()=>{},piiLoggingEnabled:!1,logLevel:xl.Info,correlationId:yi.EMPTY_STRING},r0t={claimsBasedCachingEnabled:!1},o0t={sendGetRequestAsync(){return ct(this,null,function*(){throw Xi(rs)})},sendPostRequestAsync(){return ct(this,null,function*(){throw Xi(rs)})}},s0t={sku:yi.SKU,version:LL,cpu:yi.EMPTY_STRING,os:yi.EMPTY_STRING},a0t={clientSecret:yi.EMPTY_STRING,clientAssertion:void 0},l0t={azureCloudInstance:WI.None,tenant:`${yi.DEFAULT_COMMON_TENANT}`},c0t={application:{appName:"",appVersion:""}};function n5e({authOptions:n,systemOptions:e,loggerOptions:t,cacheOptions:i,storageInterface:r,networkInterface:o,cryptoInterface:s,clientCredentials:c,libraryInfo:h,telemetry:g,serverTelemetryManager:x,persistencePlugin:C,serializableCache:A}){let k=Ce(Ce({},n0t),t);return{authOptions:u0t(n),systemOptions:Ce(Ce({},$ee),e),loggerOptions:k,cacheOptions:Ce(Ce({},r0t),i),storageInterface:r||new GH(n.clientId,QI,new __(k)),networkInterface:o||o0t,cryptoInterface:s||QI,clientCredentials:c||a0t,libraryInfo:Ce(Ce({},s0t),h),telemetry:Ce(Ce({},c0t),g),serverTelemetryManager:x||null,persistencePlugin:C||null,serializableCache:A||null}}function u0t(n){return Ce({clientCapabilities:[],azureCloudOptions:l0t,skipAuthorityMetadataCache:!1},n)}function YH(n){return n.authOptions.authority.options.protocolMode===_h.OIDC}var Vp=class n extends Os{constructor(e,t,i,r,o){super(e,t,i),this.name="ServerError",this.errorNo=r,this.status=o,Object.setPrototypeOf(this,n.prototype)}};var Mb=class n{static generateThrottlingStorageKey(e){return`${Dw.THROTTLING_PREFIX}.${JSON.stringify(e)}`}static preProcess(e,t){let i=n.generateThrottlingStorageKey(t),r=e.getThrottlingCache(i);if(r){if(r.throttleTime=500&&e.status<600}static checkResponseForRetryAfter(e){return e.headers?e.headers.hasOwnProperty($h.RETRY_AFTER)&&(e.status<200||e.status>=300):!1}static calculateThrottleTime(e){let t=e<=0?0:e,i=Date.now()/1e3;return Math.floor(Math.min(i+(t||Dw.DEFAULT_THROTTLE_TIME_SECONDS),i+Dw.DEFAULT_MAX_THROTTLE_TIME_SECONDS)*1e3)}static removeThrottle(e,t,i,r){let o={clientId:t,authority:i.authority,scopes:i.scopes,homeAccountIdentifier:r,claims:i.claims,authenticationScheme:i.authenticationScheme,resourceRequestMethod:i.resourceRequestMethod,resourceRequestUri:i.resourceRequestUri,shrClaims:i.shrClaims,sshKid:i.sshKid},s=this.generateThrottlingStorageKey(o);e.removeItem(s)}};var Kee=class{constructor(e,t){this.networkClient=e,this.cacheManager=t}sendPostRequest(e,t,i){return ct(this,null,function*(){Mb.preProcess(this.cacheManager,e);let r;try{r=yield this.networkClient.sendPostRequestAsync(t,i)}catch(o){throw o instanceof Os?o:Xi(gO)}return Mb.postProcess(this.cacheManager,e,r),r})}};var dd={HOME_ACCOUNT_ID:"home_account_id",UPN:"UPN"};var Ob=class{static validateRedirectUri(e){if(!e)throw Zs(RO)}static validatePrompt(e){let t=[];for(let i in uc)t.push(uc[i]);if(t.indexOf(e)<0)throw Zs(LO)}static validateClaims(e){try{JSON.parse(e)}catch{throw Zs(Nw)}}static validateCodeChallengeParams(e,t){if(!e||!t)throw Zs(Pw);this.validateCodeChallengeMethod(t)}static validateCodeChallengeMethod(e){if([Aee.PLAIN,Aee.S256].indexOf(e)<0)throw Zs(VO)}};var Rb=class{constructor(){this.parameters=new Map}addResponseTypeCode(){this.parameters.set(Vee,encodeURIComponent(yi.CODE_RESPONSE_TYPE))}addResponseTypeForTokenAndIdToken(){this.parameters.set(Vee,encodeURIComponent(`${yi.TOKEN_RESPONSE_TYPE} ${yi.ID_TOKEN_RESPONSE_TYPE}`))}addResponseMode(e){this.parameters.set(T1e,encodeURIComponent(e||p1e.QUERY))}addNativeBroker(){this.parameters.set(nwe,encodeURIComponent("1"))}addScopes(e,t=!0,i=qm){t&&!i.includes("openid")&&!e.includes("openid")&&i.push("openid");let r=t?[...e||[],...i]:e||[],o=new dc(r);this.parameters.set(k1e,encodeURIComponent(o.printScopes()))}addClientId(e){this.parameters.set(ZI,encodeURIComponent(e))}addRedirectUri(e){Ob.validateRedirectUri(e),this.parameters.set(I1e,encodeURIComponent(e))}addPostLogoutRedirectUri(e){Ob.validateRedirectUri(e),this.parameters.set(W1e,encodeURIComponent(e))}addIdTokenHint(e){this.parameters.set(Z1e,encodeURIComponent(e))}addDomainHint(e){this.parameters.set(awe,encodeURIComponent(e))}addLoginHint(e){this.parameters.set(swe,encodeURIComponent(e))}addCcsUpn(e){this.parameters.set($h.CCS_HEADER,encodeURIComponent(`UPN:${e}`))}addCcsOid(e){this.parameters.set($h.CCS_HEADER,encodeURIComponent(`Oid:${e.uid}@${e.utid}`))}addSid(e){this.parameters.set(owe,encodeURIComponent(e))}addClaims(e,t){let i=this.addClientCapabilitiesToClaims(e,t);Ob.validateClaims(i),this.parameters.set(D1e,encodeURIComponent(i))}addCorrelationId(e){this.parameters.set(z1e,encodeURIComponent(e))}addLibraryInfo(e){this.parameters.set(V1e,e.sku),this.parameters.set(U1e,e.version),e.os&&this.parameters.set(j1e,e.os),e.cpu&&this.parameters.set(H1e,e.cpu)}addApplicationTelemetry(e){e?.appName&&this.parameters.set($1e,e.appName),e?.appVersion&&this.parameters.set(K1e,e.appVersion)}addPrompt(e){Ob.validatePrompt(e),this.parameters.set(`${N1e}`,encodeURIComponent(e))}addState(e){e&&this.parameters.set(O1e,encodeURIComponent(e))}addNonce(e){this.parameters.set(R1e,encodeURIComponent(e))}addCodeChallengeParams(e,t){if(Ob.validateCodeChallengeParams(e,t),e&&t)this.parameters.set(F1e,encodeURIComponent(e)),this.parameters.set(L1e,encodeURIComponent(t));else throw Zs(Pw)}addAuthorizationCode(e){this.parameters.set(P1e,encodeURIComponent(e))}addDeviceCode(e){this.parameters.set(Q1e,encodeURIComponent(e))}addRefreshToken(e){this.parameters.set(M1e,encodeURIComponent(e))}addCodeVerifier(e){this.parameters.set(B1e,encodeURIComponent(e))}addClientSecret(e){this.parameters.set(X1e,encodeURIComponent(e))}addClientAssertion(e){e&&this.parameters.set(J1e,encodeURIComponent(e))}addClientAssertionType(e){e&&this.parameters.set(ewe,encodeURIComponent(e))}addOboAssertion(e){this.parameters.set(twe,encodeURIComponent(e))}addRequestTokenUse(e){this.parameters.set(iwe,encodeURIComponent(e))}addGrantType(e){this.parameters.set(A1e,encodeURIComponent(e))}addClientInfo(){this.parameters.set(j4e,"1")}addExtraQueryParameters(e){Object.entries(e).forEach(([t,i])=>{!this.parameters.has(t)&&i&&this.parameters.set(t,i)})}addClientCapabilitiesToClaims(e,t){let i;if(!e)i={};else try{i=JSON.parse(e)}catch{throw Zs(Nw)}return t&&t.length>0&&(i.hasOwnProperty(ML.ACCESS_TOKEN)||(i[ML.ACCESS_TOKEN]={}),i[ML.ACCESS_TOKEN][ML.XMS_CC]={values:t}),JSON.stringify(i)}addUsername(e){this.parameters.set(kee.username,encodeURIComponent(e))}addPassword(e){this.parameters.set(kee.password,encodeURIComponent(e))}addPopToken(e){e&&(this.parameters.set(Uee,Gs.POP),this.parameters.set(jee,encodeURIComponent(e)))}addSshJwk(e){e&&(this.parameters.set(Uee,Gs.SSH),this.parameters.set(jee,encodeURIComponent(e)))}addServerTelemetry(e){this.parameters.set(G1e,e.generateCurrentRequestHeaderValue()),this.parameters.set(Y1e,e.generateLastRequestHeaderValue())}addThrottling(){this.parameters.set(q1e,Dw.X_MS_LIB_CAPABILITY_VALUE)}addLogoutHint(e){this.parameters.set(rwe,encodeURIComponent(e))}createQueryString(){let e=new Array;return this.parameters.forEach((t,i)=>{e.push(`${i}=${t}`)}),e.join("&")}};var XI=class{constructor(e,t){this.config=n5e(e),this.logger=new __(this.config.loggerOptions,Gee,LL),this.cryptoUtils=this.config.cryptoInterface,this.cacheManager=this.config.storageInterface,this.networkClient=this.config.networkInterface,this.networkManager=new Kee(this.networkClient,this.cacheManager),this.serverTelemetryManager=this.config.serverTelemetryManager,this.authority=this.config.authOptions.authority,this.performanceClient=t}createTokenRequestHeaders(e){let t={};if(t[$h.CONTENT_TYPE]=yi.URL_FORM_CONTENT_TYPE,!this.config.systemOptions.preventCorsPreflight&&e)switch(e.type){case dd.HOME_ACCOUNT_ID:try{let i=Lw(e.credential);t[$h.CCS_HEADER]=`Oid:${i.uid}@${i.utid}`}catch(i){this.logger.verbose("Could not parse home account ID for CCS Header: "+i)}break;case dd.UPN:t[$h.CCS_HEADER]=`UPN: ${e.credential}`;break}return t}executePostToTokenEndpoint(e,t,i,r,o,s){return ct(this,null,function*(){s&&this.performanceClient?.addQueueMeasurement(s,o);let c=yield this.networkManager.sendPostRequest(r,e,{body:t,headers:i});return this.performanceClient?.addFields({refreshTokenSize:c.body.refresh_token?.length||0,httpVerToken:c.headers?.[$h.X_MS_HTTP_VERSION]||""},o),this.config.serverTelemetryManager&&c.status<500&&c.status!==429&&this.config.serverTelemetryManager.clearTelemetryCache(),c})}updateAuthority(e,t){return ct(this,null,function*(){this.performanceClient?.addQueueMeasurement(mt.UpdateTokenEndpointAuthority,t);let i=`https://${e}/${this.authority.tenant}/`,r=yield E1e(i,this.networkClient,this.cacheManager,this.authority.options,this.logger,t,this.performanceClient);this.authority=r})}createTokenQueryParameters(e){let t=new Rb;return e.tokenQueryParameters&&t.addExtraQueryParameters(e.tokenQueryParameters),t.createQueryString()}};var Vw={};u_(Vw,{badToken:()=>eT,consentRequired:()=>uwe,interactionRequired:()=>cwe,loginRequired:()=>dwe,nativeAccountUnavailable:()=>qH,noTokensFound:()=>JI,refreshTokenExpired:()=>$H});var JI="no_tokens_found",qH="native_account_unavailable",$H="refresh_token_expired",cwe="interaction_required",uwe="consent_required",dwe="login_required",eT="bad_token";var r5e=[cwe,uwe,dwe,eT],d0t=["message_only","additional_action","basic_action","user_password_expired","consent_required","bad_token"],Wee={[JI]:"No refresh token found in the cache. Please sign-in.",[qH]:"The requested account is not available in the native broker. It may have been deleted or logged out. Please sign-in again using an interactive API.",[$H]:"Refresh token has expired.",[eT]:"Identity provider returned bad_token due to an expired or invalid refresh token. Please invoke an interactive API to resolve."},o5e={noTokensFoundError:{code:JI,desc:Wee[JI]},native_account_unavailable:{code:qH,desc:Wee[qH]},bad_token:{code:eT,desc:Wee[eT]}},vh=class n extends Os{constructor(e,t,i,r,o,s,c,h){super(e,t,i),Object.setPrototypeOf(this,n.prototype),this.timestamp=r||yi.EMPTY_STRING,this.traceId=o||yi.EMPTY_STRING,this.correlationId=s||yi.EMPTY_STRING,this.claims=c||yi.EMPTY_STRING,this.name="InteractionRequiredAuthError",this.errorNo=h}};function hwe(n,e,t){let i=!!n&&r5e.indexOf(n)>-1,r=!!t&&d0t.indexOf(t)>-1,o=!!e&&r5e.some(s=>e.indexOf(s)>-1);return i||o||r}function UL(n){return new vh(n,Wee[n])}var hd=class n{static setRequestState(e,t,i){let r=n.generateLibraryState(e,i);return t?`${r}${yi.RESOURCE_DELIM}${t}`:r}static generateLibraryState(e,t){if(!e)throw Xi(YI);let i={id:e.createNewGuid()};t&&(i.meta=t);let r=JSON.stringify(i);return e.base64Encode(r)}static parseRequestState(e,t){if(!e)throw Xi(YI);if(!t)throw Xi(a0);try{let i=t.split(yi.RESOURCE_DELIM),r=i[0],o=i.length>1?i.slice(1).join(yi.RESOURCE_DELIM):yi.EMPTY_STRING,s=e.base64Decode(r),c=JSON.parse(s);return{userRequestState:o||yi.EMPTY_STRING,libraryState:c}}catch{throw Xi(a0)}}};var h0t={SW:"sw",UHW:"uhw"},Km=class{constructor(e,t){this.cryptoUtils=e,this.performanceClient=t}generateCnf(e,t){return ct(this,null,function*(){this.performanceClient?.addQueueMeasurement(mt.PopTokenGenerateCnf,e.correlationId);let i=yield wn(this.generateKid.bind(this),mt.PopTokenGenerateCnf,t,this.performanceClient,e.correlationId)(e),r=this.cryptoUtils.base64UrlEncode(JSON.stringify(i));return{kid:i.kid,reqCnfString:r}})}generateKid(e){return ct(this,null,function*(){return this.performanceClient?.addQueueMeasurement(mt.PopTokenGenerateKid,e.correlationId),{kid:yield this.cryptoUtils.getPublicKeyThumbprint(e),xms_ksl:h0t.SW}})}signPopToken(e,t,i){return ct(this,null,function*(){return this.signPayload(e,t,i)})}signPayload(e,t,i,r){return ct(this,null,function*(){let{resourceRequestMethod:o,resourceRequestUri:s,shrClaims:c,shrNonce:h,shrOptions:g}=i,C=(s?new bs(s):void 0)?.getUrlComponents();return this.cryptoUtils.signJwt(Ce({at:e,ts:$m(),m:o?.toUpperCase(),u:C?.HostNameAndPort,nonce:h||this.cryptoUtils.createNewGuid(),p:C?.AbsolutePath,q:C?.QueryString?[[],C.QueryString]:void 0,client_claims:c||void 0},r),t,g,i.correlationId)})}};var Zee=class{constructor(e,t){this.cache=e,this.hasChanged=t}get cacheHasChanged(){return this.hasChanged}get tokenCache(){return this.cache}};function p0t(n){let e="code=",t=n.error_uri?.lastIndexOf(e);return t&&t>=0?n.error_uri?.substring(t+e.length):void 0}var Nb=class n{constructor(e,t,i,r,o,s,c){this.clientId=e,this.cacheStorage=t,this.cryptoObj=i,this.logger=r,this.serializableCache=o,this.persistencePlugin=s,this.performanceClient=c}validateServerAuthorizationCodeResponse(e,t){if(!e.state||!t)throw e.state?Xi(HI,"Cached State"):Xi(HI,"Server State");let i,r;try{i=decodeURIComponent(e.state)}catch{throw Xi(a0,e.state)}try{r=decodeURIComponent(t)}catch{throw Xi(a0,e.state)}if(i!==r)throw Xi(yO);if(e.error||e.error_description||e.suberror){let o=p0t(e);throw hwe(e.error,e.error_description,e.suberror)?new vh(e.error||"",e.error_description,e.suberror,e.timestamp||"",e.trace_id||"",e.correlation_id||"",e.claims||"",o):new Vp(e.error||"",e.error_description,e.suberror,o)}}validateTokenResponse(e,t){if(e.error||e.error_description||e.suberror){let i=`Error(s): ${e.error_codes||yi.NOT_AVAILABLE} - Timestamp: ${e.timestamp||yi.NOT_AVAILABLE} - Description: ${e.error_description||yi.NOT_AVAILABLE} - Correlation ID: ${e.correlation_id||yi.NOT_AVAILABLE} - Trace ID: ${e.trace_id||yi.NOT_AVAILABLE}`,r=e.error_codes?.length?e.error_codes[0]:void 0,o=new Vp(e.error,i,e.suberror,r,e.status);if(t&&e.status&&e.status>=kL.SERVER_ERROR_RANGE_START&&e.status<=kL.SERVER_ERROR_RANGE_END){this.logger.warning(`executeTokenRequest:validateTokenResponse - AAD is currently unavailable and the access token is unable to be refreshed. ${o}`);return}else if(t&&e.status&&e.status>=kL.CLIENT_ERROR_RANGE_START&&e.status<=kL.CLIENT_ERROR_RANGE_END){this.logger.warning(`executeTokenRequest:validateTokenResponse - AAD is currently available but is unable to refresh the access token. ${o}`);return}throw hwe(e.error,e.error_description,e.suberror)?new vh(e.error,e.error_description,e.suberror,e.timestamp||yi.EMPTY_STRING,e.trace_id||yi.EMPTY_STRING,e.correlation_id||yi.EMPTY_STRING,e.claims||yi.EMPTY_STRING,r):o}}handleServerTokenResponse(e,t,i,r,o,s,c,h,g){return ct(this,null,function*(){this.performanceClient?.addQueueMeasurement(mt.HandleServerTokenResponse,e.correlation_id);let x;if(e.id_token){if(x=Rw(e.id_token||yi.EMPTY_STRING,this.cryptoObj.base64Decode),o&&o.nonce&&x.nonce!==o.nonce)throw Xi(bO);if(r.maxAge||r.maxAge===0){let O=x.auth_time;if(!O)throw Xi(kw);kH(O,r.maxAge)}}this.homeAccountIdentifier=zl.generateHomeAccountId(e.client_info||yi.EMPTY_STRING,t.authorityType,this.logger,this.cryptoObj,x);let C;o&&o.state&&(C=hd.parseRequestState(this.cryptoObj,o.state)),e.key_id=e.key_id||r.sshKid||void 0;let A=this.generateCacheRecord(e,t,i,r,x,s,o),k;try{if(this.persistencePlugin&&this.serializableCache&&(this.logger.verbose("Persistence enabled, calling beforeCacheAccess"),k=new Zee(this.serializableCache,!0),yield this.persistencePlugin.beforeCacheAccess(k)),c&&!h&&A.account){let O=A.account.generateAccountKey();if(!this.cacheStorage.getAccount(O,this.logger))return this.logger.warning("Account used to refresh tokens not in persistence, refreshed tokens will not be stored in the cache"),yield n.generateAuthenticationResult(this.cryptoObj,t,A,!1,r,x,C,void 0,g)}yield this.cacheStorage.saveCacheRecord(A,r.storeInCache,r.correlationId)}finally{this.persistencePlugin&&this.serializableCache&&k&&(this.logger.verbose("Persistence enabled, calling afterCacheAccess"),yield this.persistencePlugin.afterCacheAccess(k))}return n.generateAuthenticationResult(this.cryptoObj,t,A,!1,r,x,C,e,g)})}generateCacheRecord(e,t,i,r,o,s,c){let h=t.getPreferredCache();if(!h)throw Xi(Ow);let g=Yee(o),x,C;e.id_token&&o&&(x=x1e(this.homeAccountIdentifier,h,e.id_token,this.clientId,g||""),C=jL(this.cacheStorage,t,this.homeAccountIdentifier,this.cryptoObj.base64Decode,o,e.client_info,h,g,c,void 0,this.logger));let A=null;if(e.access_token){let F=e.scope?dc.fromString(e.scope):new dc(r.scopes||[]),L=(typeof e.expires_in=="string"?parseInt(e.expires_in,10):e.expires_in)||0,z=(typeof e.ext_expires_in=="string"?parseInt(e.ext_expires_in,10):e.ext_expires_in)||0,j=(typeof e.refresh_in=="string"?parseInt(e.refresh_in,10):e.refresh_in)||void 0,K=i+L,ee=K+z,ne=j&&j>0?i+j:void 0;A=w1e(this.homeAccountIdentifier,h,e.access_token,this.clientId,g||t.tenant||"",F.printScopes(),K,ee,this.cryptoObj.base64Decode,ne,e.token_type,s,e.key_id,r.claims,r.requestedClaimsHash)}let k=null;if(e.refresh_token){let F;if(e.refresh_token_expires_in){let L=typeof e.refresh_token_expires_in=="string"?parseInt(e.refresh_token_expires_in,10):e.refresh_token_expires_in;F=i+L}k=C1e(this.homeAccountIdentifier,h,e.refresh_token,this.clientId,e.foci,s,F)}let O=null;return e.foci&&(O={clientId:this.clientId,environment:h,familyId:e.foci}),{account:C,idToken:x,accessToken:A,refreshToken:k,appMetadata:O}}static generateAuthenticationResult(e,t,i,r,o,s,c,h,g){return ct(this,null,function*(){let x=yi.EMPTY_STRING,C=[],A=null,k,O,F=yi.EMPTY_STRING;if(i.accessToken){if(i.accessToken.tokenType===Gs.POP&&!o.popKid){let K=new Km(e),{secret:ee,keyId:ne}=i.accessToken;if(!ne)throw Xi(MO);x=yield K.signPopToken(ee,ne,o)}else x=i.accessToken.secret;C=dc.fromString(i.accessToken.target).asArray(),A=new Date(Number(i.accessToken.expiresOn)*1e3),k=new Date(Number(i.accessToken.extendedExpiresOn)*1e3),i.accessToken.refreshOn&&(O=new Date(Number(i.accessToken.refreshOn)*1e3))}i.appMetadata&&(F=i.appMetadata.familyId===VI?VI:"");let L=s?.oid||s?.sub||"",z=s?.tid||"";h?.spa_accountid&&i.account&&(i.account.nativeAccountId=h?.spa_accountid);let j=i.account?HO(i.account.getAccountInfo(),void 0,s,i.idToken?.secret):null;return{authority:t.canonicalAuthority,uniqueId:L,tenantId:z,scopes:C,account:j,idToken:i?.idToken?.secret||"",idTokenClaims:s||{},accessToken:x,fromCache:r,expiresOn:A,extExpiresOn:k,refreshOn:O,correlationId:o.correlationId,requestId:g||yi.EMPTY_STRING,familyId:F,tokenType:i.accessToken?.tokenType||yi.EMPTY_STRING,state:c?c.userRequestState:yi.EMPTY_STRING,cloudGraphHostName:i.account?.cloudGraphHostName||yi.EMPTY_STRING,msGraphHost:i.account?.msGraphHost||yi.EMPTY_STRING,code:h?.spa_code,fromNativeBroker:!1}})}};function jL(n,e,t,i,r,o,s,c,h,g,x){x?.verbose("setCachedAccount called");let A=n.getAccountKeys().find(z=>z.startsWith(t)),k=null;A&&(k=n.getAccount(A,x));let O=k||zl.createAccount({homeAccountId:t,idTokenClaims:r,clientInfo:o,environment:s,cloudGraphHostName:h?.cloud_graph_host_name,msGraphHost:h?.msgraph_host,nativeAccountId:g},e,i),F=O.tenantProfiles||[],L=c||O.realm;if(L&&!F.find(z=>z.tenantId===L)){let z=VL(t,O.localAccountId,L,r);F.push(z)}return O.tenantProfiles=F,O}var GO=class extends XI{constructor(e,t){super(e,t),this.includeRedirectUri=!0,this.oidcDefaultScopes=this.config.authOptions.authority.options.OIDCOptions?.defaultScopes}getAuthCodeUrl(e){return ct(this,null,function*(){this.performanceClient?.addQueueMeasurement(mt.GetAuthCodeUrl,e.correlationId);let t=yield wn(this.createAuthCodeUrlQueryString.bind(this),mt.AuthClientCreateQueryString,this.logger,this.performanceClient,e.correlationId)(e);return bs.appendQueryString(this.authority.authorizationEndpoint,t)})}acquireToken(e,t){return ct(this,null,function*(){if(this.performanceClient?.addQueueMeasurement(mt.AuthClientAcquireToken,e.correlationId),!e.code)throw Xi(CO);let i=$m(),r=yield wn(this.executeTokenRequest.bind(this),mt.AuthClientExecuteTokenRequest,this.logger,this.performanceClient,e.correlationId)(this.authority,e),o=r.headers?.[$h.X_MS_REQUEST_ID],s=new Nb(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.config.serializableCache,this.config.persistencePlugin,this.performanceClient);return s.validateTokenResponse(r.body),wn(s.handleServerTokenResponse.bind(s),mt.HandleServerTokenResponse,this.logger,this.performanceClient,e.correlationId)(r.body,this.authority,i,e,t,void 0,void 0,void 0,o)})}handleFragmentResponse(e,t){if(new Nb(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,null,null).validateServerAuthorizationCodeResponse(e,t),!e.code)throw Xi(AO);return e}getLogoutUri(e){if(!e)throw Zs(zO);let t=this.createLogoutUrlQueryString(e);return bs.appendQueryString(this.authority.endSessionEndpoint,t)}executeTokenRequest(e,t){return ct(this,null,function*(){this.performanceClient?.addQueueMeasurement(mt.AuthClientExecuteTokenRequest,t.correlationId);let i=this.createTokenQueryParameters(t),r=bs.appendQueryString(e.tokenEndpoint,i),o=yield wn(this.createTokenRequestBody.bind(this),mt.AuthClientCreateTokenRequestBody,this.logger,this.performanceClient,t.correlationId)(t),s;if(t.clientInfo)try{let g=BL(t.clientInfo,this.cryptoUtils.base64Decode);s={credential:`${g.uid}${Wc.CLIENT_INFO_SEPARATOR}${g.utid}`,type:dd.HOME_ACCOUNT_ID}}catch(g){this.logger.verbose("Could not parse client info for CCS Header: "+g)}let c=this.createTokenRequestHeaders(s||t.ccsCredential),h={clientId:t.tokenBodyParameters?.clientId||this.config.authOptions.clientId,authority:e.canonicalAuthority,scopes:t.scopes,claims:t.claims,authenticationScheme:t.authenticationScheme,resourceRequestMethod:t.resourceRequestMethod,resourceRequestUri:t.resourceRequestUri,shrClaims:t.shrClaims,sshKid:t.sshKid};return wn(this.executePostToTokenEndpoint.bind(this),mt.AuthorizationCodeClientExecutePostToTokenEndpoint,this.logger,this.performanceClient,t.correlationId)(r,o,c,h,t.correlationId,mt.AuthorizationCodeClientExecutePostToTokenEndpoint)})}createTokenRequestBody(e){return ct(this,null,function*(){this.performanceClient?.addQueueMeasurement(mt.AuthClientCreateTokenRequestBody,e.correlationId);let t=new Rb;if(t.addClientId(e.tokenBodyParameters?.[ZI]||this.config.authOptions.clientId),this.includeRedirectUri?t.addRedirectUri(e.redirectUri):Ob.validateRedirectUri(e.redirectUri),t.addScopes(e.scopes,!0,this.oidcDefaultScopes),t.addAuthorizationCode(e.code),t.addLibraryInfo(this.config.libraryInfo),t.addApplicationTelemetry(this.config.telemetry.application),t.addThrottling(),this.serverTelemetryManager&&!YH(this.config)&&t.addServerTelemetry(this.serverTelemetryManager),e.codeVerifier&&t.addCodeVerifier(e.codeVerifier),this.config.clientCredentials.clientSecret&&t.addClientSecret(this.config.clientCredentials.clientSecret),this.config.clientCredentials.clientAssertion){let o=this.config.clientCredentials.clientAssertion;t.addClientAssertion(yield zee(o.assertion,this.config.authOptions.clientId,e.resourceRequestUri)),t.addClientAssertionType(o.assertionType)}if(t.addGrantType(uH.AUTHORIZATION_CODE_GRANT),t.addClientInfo(),e.authenticationScheme===Gs.POP){let o=new Km(this.cryptoUtils,this.performanceClient),s;e.popKid?s=this.cryptoUtils.encodeKid(e.popKid):s=(yield wn(o.generateCnf.bind(o),mt.PopTokenGenerateCnf,this.logger,this.performanceClient,e.correlationId)(e,this.logger)).reqCnfString,t.addPopToken(s)}else if(e.authenticationScheme===Gs.SSH)if(e.sshJwk)t.addSshJwk(e.sshJwk);else throw Zs(Fw);let i=e.correlationId||this.config.cryptoInterface.createNewGuid();t.addCorrelationId(i),(!Tc.isEmptyObj(e.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&t.addClaims(e.claims,this.config.authOptions.clientCapabilities);let r;if(e.clientInfo)try{let o=BL(e.clientInfo,this.cryptoUtils.base64Decode);r={credential:`${o.uid}${Wc.CLIENT_INFO_SEPARATOR}${o.utid}`,type:dd.HOME_ACCOUNT_ID}}catch(o){this.logger.verbose("Could not parse client info for CCS Header: "+o)}else r=e.ccsCredential;if(this.config.systemOptions.preventCorsPreflight&&r)switch(r.type){case dd.HOME_ACCOUNT_ID:try{let o=Lw(r.credential);t.addCcsOid(o)}catch(o){this.logger.verbose("Could not parse home account ID for CCS Header: "+o)}break;case dd.UPN:t.addCcsUpn(r.credential);break}return e.tokenBodyParameters&&t.addExtraQueryParameters(e.tokenBodyParameters),e.enableSpaAuthorizationCode&&(!e.tokenBodyParameters||!e.tokenBodyParameters[Hee])&&t.addExtraQueryParameters({[Hee]:"1"}),t.createQueryString()})}createAuthCodeUrlQueryString(e){return ct(this,null,function*(){this.performanceClient?.addQueueMeasurement(mt.AuthClientCreateQueryString,e.correlationId);let t=new Rb;t.addClientId(e.extraQueryParameters?.[ZI]||this.config.authOptions.clientId);let i=[...e.scopes||[],...e.extraScopesToConsent||[]];t.addScopes(i,!0,this.oidcDefaultScopes),t.addRedirectUri(e.redirectUri);let r=e.correlationId||this.config.cryptoInterface.createNewGuid();if(t.addCorrelationId(r),t.addResponseMode(e.responseMode),t.addResponseTypeCode(),t.addLibraryInfo(this.config.libraryInfo),YH(this.config)||t.addApplicationTelemetry(this.config.telemetry.application),t.addClientInfo(),e.codeChallenge&&e.codeChallengeMethod&&t.addCodeChallengeParams(e.codeChallenge,e.codeChallengeMethod),e.prompt&&t.addPrompt(e.prompt),e.domainHint&&t.addDomainHint(e.domainHint),e.prompt!==uc.SELECT_ACCOUNT)if(e.sid&&e.prompt===uc.NONE)this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from request"),t.addSid(e.sid);else if(e.account){let o=this.extractAccountSid(e.account),s=this.extractLoginHint(e.account);if(s&&e.domainHint&&(this.logger.warning('AuthorizationCodeClient.createAuthCodeUrlQueryString: "domainHint" param is set, skipping opaque "login_hint" claim. Please consider not passing domainHint'),s=null),s){this.logger.verbose("createAuthCodeUrlQueryString: login_hint claim present on account"),t.addLoginHint(s);try{let c=Lw(e.account.homeAccountId);t.addCcsOid(c)}catch{this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}else if(o&&e.prompt===uc.NONE){this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from account"),t.addSid(o);try{let c=Lw(e.account.homeAccountId);t.addCcsOid(c)}catch{this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}else if(e.loginHint)this.logger.verbose("createAuthCodeUrlQueryString: Adding login_hint from request"),t.addLoginHint(e.loginHint),t.addCcsUpn(e.loginHint);else if(e.account.username){this.logger.verbose("createAuthCodeUrlQueryString: Adding login_hint from account"),t.addLoginHint(e.account.username);try{let c=Lw(e.account.homeAccountId);t.addCcsOid(c)}catch{this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}}else e.loginHint&&(this.logger.verbose("createAuthCodeUrlQueryString: No account, adding login_hint from request"),t.addLoginHint(e.loginHint),t.addCcsUpn(e.loginHint));else this.logger.verbose("createAuthCodeUrlQueryString: Prompt is select_account, ignoring account hints");if(e.nonce&&t.addNonce(e.nonce),e.state&&t.addState(e.state),(e.claims||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&t.addClaims(e.claims,this.config.authOptions.clientCapabilities),e.extraQueryParameters&&t.addExtraQueryParameters(e.extraQueryParameters),e.nativeBroker&&(t.addNativeBroker(),e.authenticationScheme===Gs.POP)){let o=new Km(this.cryptoUtils),s;e.popKid?s=this.cryptoUtils.encodeKid(e.popKid):s=(yield wn(o.generateCnf.bind(o),mt.PopTokenGenerateCnf,this.logger,this.performanceClient,e.correlationId)(e,this.logger)).reqCnfString,t.addPopToken(s)}return t.createQueryString()})}createLogoutUrlQueryString(e){let t=new Rb;return e.postLogoutRedirectUri&&t.addPostLogoutRedirectUri(e.postLogoutRedirectUri),e.correlationId&&t.addCorrelationId(e.correlationId),e.idTokenHint&&t.addIdTokenHint(e.idTokenHint),e.state&&t.addState(e.state),e.logoutHint&&t.addLogoutHint(e.logoutHint),e.extraQueryParameters&&t.addExtraQueryParameters(e.extraQueryParameters),t.createQueryString()}extractAccountSid(e){return e.idTokenClaims?.sid||null}extractLoginHint(e){return e.idTokenClaims?.login_hint||null}};var f0t=300,tT=class extends XI{constructor(e,t){super(e,t)}acquireToken(e){return ct(this,null,function*(){this.performanceClient?.addQueueMeasurement(mt.RefreshTokenClientAcquireToken,e.correlationId);let t=$m(),i=yield wn(this.executeTokenRequest.bind(this),mt.RefreshTokenClientExecuteTokenRequest,this.logger,this.performanceClient,e.correlationId)(e,this.authority),r=i.headers?.[$h.X_MS_REQUEST_ID],o=new Nb(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.config.serializableCache,this.config.persistencePlugin);return o.validateTokenResponse(i.body),wn(o.handleServerTokenResponse.bind(o),mt.HandleServerTokenResponse,this.logger,this.performanceClient,e.correlationId)(i.body,this.authority,t,e,void 0,void 0,!0,e.forceCache,r)})}acquireTokenByRefreshToken(e){return ct(this,null,function*(){if(!e)throw Zs(BO);if(this.performanceClient?.addQueueMeasurement(mt.RefreshTokenClientAcquireTokenByRefreshToken,e.correlationId),!e.account)throw Xi(Mw);if(this.cacheManager.isAppMetadataFOCI(e.account.environment))try{return yield wn(this.acquireTokenWithCachedRefreshToken.bind(this),mt.RefreshTokenClientAcquireTokenWithCachedRefreshToken,this.logger,this.performanceClient,e.correlationId)(e,!0)}catch(i){let r=i instanceof vh&&i.errorCode===JI,o=i instanceof Vp&&i.errorCode===Dee.INVALID_GRANT_ERROR&&i.subError===Dee.CLIENT_MISMATCH_ERROR;if(r||o)return wn(this.acquireTokenWithCachedRefreshToken.bind(this),mt.RefreshTokenClientAcquireTokenWithCachedRefreshToken,this.logger,this.performanceClient,e.correlationId)(e,!1);throw i}return wn(this.acquireTokenWithCachedRefreshToken.bind(this),mt.RefreshTokenClientAcquireTokenWithCachedRefreshToken,this.logger,this.performanceClient,e.correlationId)(e,!1)})}acquireTokenWithCachedRefreshToken(e,t){return ct(this,null,function*(){this.performanceClient?.addQueueMeasurement(mt.RefreshTokenClientAcquireTokenWithCachedRefreshToken,e.correlationId);let i=zp(this.cacheManager.getRefreshToken.bind(this.cacheManager),mt.CacheManagerGetRefreshToken,this.logger,this.performanceClient,e.correlationId)(e.account,t,void 0,this.performanceClient,e.correlationId);if(!i)throw UL(JI);if(i.expiresOn&&NL(i.expiresOn,e.refreshTokenExpirationOffsetSeconds||f0t))throw UL($H);let r=wt(Ce({},e),{refreshToken:i.secret,authenticationScheme:e.authenticationScheme||Gs.BEARER,ccsCredential:{credential:e.account.homeAccountId,type:dd.HOME_ACCOUNT_ID}});try{return yield wn(this.acquireToken.bind(this),mt.RefreshTokenClientAcquireToken,this.logger,this.performanceClient,e.correlationId)(r)}catch(o){if(o instanceof vh&&o.subError===eT){this.logger.verbose("acquireTokenWithRefreshToken: bad refresh token, removing from cache");let s=UH(i);this.cacheManager.removeRefreshToken(s)}throw o}})}executeTokenRequest(e,t){return ct(this,null,function*(){this.performanceClient?.addQueueMeasurement(mt.RefreshTokenClientExecuteTokenRequest,e.correlationId);let i=this.createTokenQueryParameters(e),r=bs.appendQueryString(t.tokenEndpoint,i),o=yield wn(this.createTokenRequestBody.bind(this),mt.RefreshTokenClientCreateTokenRequestBody,this.logger,this.performanceClient,e.correlationId)(e),s=this.createTokenRequestHeaders(e.ccsCredential),c={clientId:e.tokenBodyParameters?.clientId||this.config.authOptions.clientId,authority:t.canonicalAuthority,scopes:e.scopes,claims:e.claims,authenticationScheme:e.authenticationScheme,resourceRequestMethod:e.resourceRequestMethod,resourceRequestUri:e.resourceRequestUri,shrClaims:e.shrClaims,sshKid:e.sshKid};return wn(this.executePostToTokenEndpoint.bind(this),mt.RefreshTokenClientExecutePostToTokenEndpoint,this.logger,this.performanceClient,e.correlationId)(r,o,s,c,e.correlationId,mt.RefreshTokenClientExecutePostToTokenEndpoint)})}createTokenRequestBody(e){return ct(this,null,function*(){this.performanceClient?.addQueueMeasurement(mt.RefreshTokenClientCreateTokenRequestBody,e.correlationId);let t=e.correlationId,i=new Rb;if(i.addClientId(e.tokenBodyParameters?.[ZI]||this.config.authOptions.clientId),e.redirectUri&&i.addRedirectUri(e.redirectUri),i.addScopes(e.scopes,!0,this.config.authOptions.authority.options.OIDCOptions?.defaultScopes),i.addGrantType(uH.REFRESH_TOKEN_GRANT),i.addClientInfo(),i.addLibraryInfo(this.config.libraryInfo),i.addApplicationTelemetry(this.config.telemetry.application),i.addThrottling(),this.serverTelemetryManager&&!YH(this.config)&&i.addServerTelemetry(this.serverTelemetryManager),i.addCorrelationId(t),i.addRefreshToken(e.refreshToken),this.config.clientCredentials.clientSecret&&i.addClientSecret(this.config.clientCredentials.clientSecret),this.config.clientCredentials.clientAssertion){let r=this.config.clientCredentials.clientAssertion;i.addClientAssertion(yield zee(r.assertion,this.config.authOptions.clientId,e.resourceRequestUri)),i.addClientAssertionType(r.assertionType)}if(e.authenticationScheme===Gs.POP){let r=new Km(this.cryptoUtils,this.performanceClient),o;e.popKid?o=this.cryptoUtils.encodeKid(e.popKid):o=(yield wn(r.generateCnf.bind(r),mt.PopTokenGenerateCnf,this.logger,this.performanceClient,e.correlationId)(e,this.logger)).reqCnfString,i.addPopToken(o)}else if(e.authenticationScheme===Gs.SSH)if(e.sshJwk)i.addSshJwk(e.sshJwk);else throw Zs(Fw);if((!Tc.isEmptyObj(e.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&i.addClaims(e.claims,this.config.authOptions.clientCapabilities),this.config.systemOptions.preventCorsPreflight&&e.ccsCredential)switch(e.ccsCredential.type){case dd.HOME_ACCOUNT_ID:try{let r=Lw(e.ccsCredential.credential);i.addCcsOid(r)}catch(r){this.logger.verbose("Could not parse home account ID for CCS Header: "+r)}break;case dd.UPN:i.addCcsUpn(e.ccsCredential.credential);break}return e.tokenBodyParameters&&i.addExtraQueryParameters(e.tokenBodyParameters),i.createQueryString()})}};var KH=class extends XI{constructor(e,t){super(e,t)}acquireToken(e){return ct(this,null,function*(){try{let[t,i]=yield this.acquireCachedToken(wt(Ce({},e),{scopes:e.scopes?.length?e.scopes:[...qm]}));return i===s0.PROACTIVELY_REFRESHED&&(this.logger.info("SilentFlowClient:acquireCachedToken - Cached access token's refreshOn property has been exceeded'. It's not expired, but must be refreshed."),new tT(this.config,this.performanceClient).acquireTokenByRefreshToken(e).catch(()=>{})),t}catch(t){if(t instanceof OO&&t.errorCode===Db)return new tT(this.config,this.performanceClient).acquireTokenByRefreshToken(e);throw t}})}acquireCachedToken(e){return ct(this,null,function*(){this.performanceClient?.addQueueMeasurement(mt.SilentFlowClientAcquireCachedToken,e.correlationId);let t=s0.NOT_APPLICABLE;if(e.forceRefresh||!this.config.cacheOptions.claimsBasedCachingEnabled&&!Tc.isEmptyObj(e.claims))throw this.setCacheOutcome(s0.FORCE_REFRESH_OR_CLAIMS,e.correlationId),Xi(Db);if(!e.account)throw Xi(Mw);let i=e.account.tenantId||i5e(e.authority),r=this.cacheManager.getTokenKeys(),o=this.cacheManager.getAccessToken(e.account,e,r,i,this.performanceClient,e.correlationId);if(o){if(b1e(o.cachedAt)||NL(o.expiresOn,this.config.systemOptions.tokenRenewalOffsetSeconds))throw this.setCacheOutcome(s0.CACHED_ACCESS_TOKEN_EXPIRED,e.correlationId),Xi(Db);o.refreshOn&&NL(o.refreshOn,0)&&(t=s0.PROACTIVELY_REFRESHED)}else throw this.setCacheOutcome(s0.NO_CACHED_ACCESS_TOKEN,e.correlationId),Xi(Db);let s=e.authority||this.authority.getPreferredCache(),c={account:this.cacheManager.readAccountFromCache(e.account),accessToken:o,idToken:this.cacheManager.getIdToken(e.account,r,i,this.performanceClient,e.correlationId),refreshToken:null,appMetadata:this.cacheManager.readAppMetadataFromCache(s)};return this.setCacheOutcome(t,e.correlationId),this.config.serverTelemetryManager&&this.config.serverTelemetryManager.incrementCacheHits(),[yield wn(this.generateResultFromCacheRecord.bind(this),mt.SilentFlowClientGenerateResultFromCacheRecord,this.logger,this.performanceClient,e.correlationId)(c,e),t]})}setCacheOutcome(e,t){this.serverTelemetryManager?.setCacheOutcome(e),this.performanceClient?.addFields({cacheOutcome:e},t),e!==s0.NOT_APPLICABLE&&this.logger.info(`Token refresh is required due to cache outcome: ${e}`)}generateResultFromCacheRecord(e,t){return ct(this,null,function*(){this.performanceClient?.addQueueMeasurement(mt.SilentFlowClientGenerateResultFromCacheRecord,t.correlationId);let i;if(e.idToken&&(i=Rw(e.idToken.secret,this.config.cryptoInterface.base64Decode)),t.maxAge||t.maxAge===0){let r=i?.auth_time;if(!r)throw Xi(kw);kH(r,t.maxAge)}return Nb.generateAuthenticationResult(this.cryptoUtils,this.authority,e,!0,t,i)})}};var pwe={sendGetRequestAsync:()=>Promise.reject(Xi(rs)),sendPostRequestAsync:()=>Promise.reject(Xi(rs))};var Qee="missing_kid_error",Xee="missing_alg_error";var m0t={[Qee]:"The JOSE Header for the requested JWT, JWS or JWK object requires a keyId to be configured as the 'kid' header claim. No 'kid' value was provided.",[Xee]:"The JOSE Header for the requested JWT, JWS or JWK object requires an algorithm to be specified as the 'alg' header claim. No 'alg' value was provided."},fwe=class n extends Os{constructor(e,t){super(e,t),this.name="JoseHeaderError",Object.setPrototypeOf(this,n.prototype)}};function mwe(n){return new fwe(n,m0t[n])}var WH=class n{constructor(e){this.typ=e.typ,this.alg=e.alg,this.kid=e.kid}static getShrHeaderString(e){if(!e.kid)throw mwe(Qee);if(!e.alg)throw mwe(Xee);let t=new n({typ:e.typ||Oee.Pop,kid:e.kid,alg:e.alg});return JSON.stringify(t)}};var s5e=",",a5e="|";function g0t(n){let{skus:e,libraryName:t,libraryVersion:i,extensionName:r,extensionVersion:o}=n,s=new Map([[0,[t,i]],[2,[r,o]]]),c=[];if(e?.length){if(c=e.split(s5e),c.length<4)return e}else c=Array.from({length:4},()=>a5e);return s.forEach((h,g)=>{h.length===2&&h[0]?.length&&h[1]?.length&&_0t({skuArr:c,index:g,skuName:h[0],skuVersion:h[1]})}),c.join(s5e)}function _0t(n){let{skuArr:e,index:t,skuName:i,skuVersion:r}=n;t>=e.length||(e[t]=[i,r].join(a5e))}var YO=class n{constructor(e,t){this.cacheOutcome=s0.NOT_APPLICABLE,this.cacheManager=t,this.apiId=e.apiId,this.correlationId=e.correlationId,this.wrapperSKU=e.wrapperSKU||yi.EMPTY_STRING,this.wrapperVer=e.wrapperVer||yi.EMPTY_STRING,this.telemetryCacheKey=cd.CACHE_KEY+Wc.CACHE_KEY_SEPARATOR+e.clientId}generateCurrentRequestHeaderValue(){let e=`${this.apiId}${cd.VALUE_SEPARATOR}${this.cacheOutcome}`,t=[this.wrapperSKU,this.wrapperVer],i=this.getNativeBrokerErrorCode();i?.length&&t.push(`broker_error=${i}`);let r=t.join(cd.VALUE_SEPARATOR),o=this.getRegionDiscoveryFields(),s=[e,o].join(cd.VALUE_SEPARATOR);return[cd.SCHEMA_VERSION,s,r].join(cd.CATEGORY_SEPARATOR)}generateLastRequestHeaderValue(){let e=this.getLastRequests(),t=n.maxErrorsToSend(e),i=e.failedRequests.slice(0,2*t).join(cd.VALUE_SEPARATOR),r=e.errors.slice(0,t).join(cd.VALUE_SEPARATOR),o=e.errors.length,s=t=cd.MAX_CACHED_ERRORS&&(t.failedRequests.shift(),t.failedRequests.shift(),t.errors.shift()),t.failedRequests.push(this.apiId,this.correlationId),e instanceof Error&&e&&e.toString()?e instanceof Os?e.subError?t.errors.push(e.subError):e.errorCode?t.errors.push(e.errorCode):t.errors.push(e.toString()):t.errors.push(e.toString()):t.errors.push(cd.UNKNOWN_ERROR),this.cacheManager.setServerTelemetry(this.telemetryCacheKey,t)}incrementCacheHits(){let e=this.getLastRequests();return e.cacheHits+=1,this.cacheManager.setServerTelemetry(this.telemetryCacheKey,e),e.cacheHits}getLastRequests(){let e={failedRequests:[],errors:[],cacheHits:0};return this.cacheManager.getServerTelemetry(this.telemetryCacheKey)||e}clearTelemetryCache(){let e=this.getLastRequests(),t=n.maxErrorsToSend(e),i=e.errors.length;if(t===i)this.cacheManager.removeItem(this.telemetryCacheKey);else{let r={failedRequests:e.failedRequests.slice(t*2),errors:e.errors.slice(t),cacheHits:0};this.cacheManager.setServerTelemetry(this.telemetryCacheKey,r)}}static maxErrorsToSend(e){let t,i=0,r=0,o=e.errors.length;for(t=0;tnull,discard:()=>{},add:()=>{},increment:()=>{},event:{eventId:this.generateId(),status:y1e.InProgress,authority:"",libraryName:"",libraryVersion:"",clientId:"",name:e,startTimeMs:Date.now(),correlationId:t||""},measurement:new Jee}}startPerformanceMeasurement(){return new Jee}calculateQueuedTime(){return 0}addQueueMeasurement(){}setPreQueueTime(){}endMeasurement(){return null}discardMeasurements(){}removePerformanceCallback(){return!0}addPerformanceCallback(){return""}emitEvents(){}addFields(){}incrementFields(){}cacheEventByCorrelationId(){}};var qO="pkce_not_created",GL="crypto_nonexistent",Pb="empty_navigate_uri",YL="hash_empty_error",iT="no_state_in_hash",qL="hash_does_not_contain_known_properties",$L="unable_to_parse_state",KL="state_interaction_type_mismatch",WL="interaction_in_progress",ZL="popup_window_error",QL="empty_window_error",Bf="user_cancelled",ete="monitor_popup_timeout",XL="monitor_window_timeout",JL="redirect_in_iframe",eB="block_iframe_reload",tB="block_nested_popups",tte="iframe_closed_prematurely",Fb="silent_logout_unsupported",iB="no_account_error",ite="silent_prompt_value_error",nB="no_token_request_cache_error",rB="unable_to_parse_token_request_cache_error",nT="no_cached_authority_error",nte="auth_request_not_set_error",rte="invalid_cache_type",rT="non_browser_environment",Lb="database_not_open",Uw="no_network_connectivity",oB="post_request_failed",sB="get_request_failed",$O="failed_to_parse_response",aB="unable_to_load_token",oT="crypto_key_not_found",lB="auth_code_required",cB="auth_code_or_nativeAccountId_required",uB="spa_code_and_nativeAccountId_present",sT="database_unavailable",dB="unable_to_acquire_token_from_native_platform",hB="native_handshake_timeout",pB="native_extension_not_installed",v_="native_connection_not_established",fB="uninitialized_public_client_application",mB="native_prompt_not_supported",gB="invalid_base64_string",_B="invalid_pop_token_request";var jw="For more visit: aka.ms/msaljs/browser-errors",es={[qO]:"The PKCE code challenge and verifier could not be generated.",[GL]:"The crypto object or function is not available.",[Pb]:"Navigation URI is empty. Please check stack trace for more info.",[YL]:`Hash value cannot be processed because it is empty. Please verify that your redirectUri is not clearing the hash. ${jw}`,[iT]:"Hash does not contain state. Please verify that the request originated from msal.",[qL]:`Hash does not contain known properites. Please verify that your redirectUri is not changing the hash. ${jw}`,[$L]:"Unable to parse state. Please verify that the request originated from msal.",[KL]:"Hash contains state but the interaction type does not match the caller.",[WL]:`Interaction is currently in progress. Please ensure that this interaction has been completed before calling an interactive API. ${jw}`,[ZL]:"Error opening popup window. This can happen if you are using IE or if popups are blocked in the browser.",[QL]:"window.open returned null or undefined window object.",[Bf]:"User cancelled the flow.",[ete]:`Token acquisition in popup failed due to timeout. ${jw}`,[XL]:`Token acquisition in iframe failed due to timeout. ${jw}`,[JL]:"Redirects are not supported for iframed or brokered applications. Please ensure you are using MSAL.js in a top frame of the window if using the redirect APIs, or use the popup APIs.",[eB]:`Request was blocked inside an iframe because MSAL detected an authentication response. ${jw}`,[tB]:"Request was blocked inside a popup because MSAL detected it was running in a popup.",[tte]:"The iframe being monitored was closed prematurely.",[Fb]:"Silent logout not supported. Please call logoutRedirect or logoutPopup instead.",[iB]:"No account object provided to acquireTokenSilent and no active account has been set. Please call setActiveAccount or provide an account on the request.",[ite]:"The value given for the prompt value is not valid for silent requests - must be set to 'none' or 'no_session'.",[nB]:"No token request found in cache.",[rB]:"The cached token request could not be parsed.",[nT]:"No cached authority found.",[nte]:"Auth Request not set. Please ensure initiateAuthRequest was called from the InteractionHandler",[rte]:"Invalid cache type",[rT]:"Login and token requests are not supported in non-browser environments.",[Lb]:"Database is not open!",[Uw]:"No network connectivity. Check your internet connection.",[oB]:"Network request failed: If the browser threw a CORS error, check that the redirectUri is registered in the Azure App Portal as type 'SPA'",[sB]:"Network request failed. Please check the network trace to determine root cause.",[$O]:"Failed to parse network response. Check network trace.",[aB]:"Error loading token to cache.",[oT]:"Cryptographic Key or Keypair not found in browser storage.",[lB]:"An authorization code must be provided (as the `code` property on the request) to this flow.",[cB]:"An authorization code or nativeAccountId must be provided to this flow.",[uB]:"Request cannot contain both spa code and native account id.",[sT]:"IndexedDB, which is required for persistent cryptographic key storage, is unavailable. This may be caused by browser privacy features which block persistent storage in third-party contexts.",[dB]:`Unable to acquire token from native platform. ${jw}`,[hB]:"Timed out while attempting to establish connection to browser extension",[pB]:"Native extension is not installed. If you think this is a mistake call the initialize function.",[v_]:`Connection to native platform has not been established. Please install a compatible browser extension and run initialize(). ${jw}`,[fB]:`You must call and await the initialize function before attempting to call any other MSAL API. ${jw}`,[mB]:"The provided prompt is not supported by the native platform. This request should be routed to the web based flow.",[gB]:"Invalid base64 encoded string.",[_B]:"Invalid PoP token request. The request should not have both a popKid value and signPopToken set to true."},Uvi={pkceNotGenerated:{code:qO,desc:es[qO]},cryptoDoesNotExist:{code:GL,desc:es[GL]},emptyNavigateUriError:{code:Pb,desc:es[Pb]},hashEmptyError:{code:YL,desc:es[YL]},hashDoesNotContainStateError:{code:iT,desc:es[iT]},hashDoesNotContainKnownPropertiesError:{code:qL,desc:es[qL]},unableToParseStateError:{code:$L,desc:es[$L]},stateInteractionTypeMismatchError:{code:KL,desc:es[KL]},interactionInProgress:{code:WL,desc:es[WL]},popupWindowError:{code:ZL,desc:es[ZL]},emptyWindowError:{code:QL,desc:es[QL]},userCancelledError:{code:Bf,desc:es[Bf]},monitorPopupTimeoutError:{code:ete,desc:es[ete]},monitorIframeTimeoutError:{code:XL,desc:es[XL]},redirectInIframeError:{code:JL,desc:es[JL]},blockTokenRequestsInHiddenIframeError:{code:eB,desc:es[eB]},blockAcquireTokenInPopupsError:{code:tB,desc:es[tB]},iframeClosedPrematurelyError:{code:tte,desc:es[tte]},silentLogoutUnsupportedError:{code:Fb,desc:es[Fb]},noAccountError:{code:iB,desc:es[iB]},silentPromptValueError:{code:ite,desc:es[ite]},noTokenRequestCacheError:{code:nB,desc:es[nB]},unableToParseTokenRequestCacheError:{code:rB,desc:es[rB]},noCachedAuthorityError:{code:nT,desc:es[nT]},authRequestNotSet:{code:nte,desc:es[nte]},invalidCacheType:{code:rte,desc:es[rte]},notInBrowserEnvironment:{code:rT,desc:es[rT]},databaseNotOpen:{code:Lb,desc:es[Lb]},noNetworkConnectivity:{code:Uw,desc:es[Uw]},postRequestFailed:{code:oB,desc:es[oB]},getRequestFailed:{code:sB,desc:es[sB]},failedToParseNetworkResponse:{code:$O,desc:es[$O]},unableToLoadTokenError:{code:aB,desc:es[aB]},signingKeyNotFoundInStorage:{code:oT,desc:es[oT]},authCodeRequired:{code:lB,desc:es[lB]},authCodeOrNativeAccountRequired:{code:cB,desc:es[cB]},spaCodeAndNativeAccountPresent:{code:uB,desc:es[uB]},databaseUnavailable:{code:sT,desc:es[sT]},unableToAcquireTokenFromNativePlatform:{code:dB,desc:es[dB]},nativeHandshakeTimeout:{code:hB,desc:es[hB]},nativeExtensionNotInstalled:{code:pB,desc:es[pB]},nativeConnectionNotEstablished:{code:v_,desc:es[v_]},uninitializedPublicClientApplication:{code:fB,desc:es[fB]},nativePromptNotSupported:{code:mB,desc:es[mB]},invalidBase64StringError:{code:gB,desc:es[gB]},invalidPopTokenRequest:{code:_B,desc:es[_B]}},KO=class n extends Os{constructor(e){super(e,es[e]),Object.setPrototypeOf(this,n.prototype),this.name="BrowserAuthError"}};function nr(n){return new KO(n)}var pd={INTERACTION_IN_PROGRESS_VALUE:"interaction_in_progress",INVALID_GRANT_ERROR:"invalid_grant",POPUP_WIDTH:483,POPUP_HEIGHT:600,POPUP_NAME_PREFIX:"msal",DEFAULT_POLL_INTERVAL_MS:30,MSAL_SKU:"msal.js.browser"},aT={CHANNEL_ID:"53ee284d-920a-4b59-9d30-a60315b26836",PREFERRED_EXTENSION_ID:"ppnbnpeolgkicgegkbkbjmhlideopiji",MATS_TELEMETRY:"MATS"},Hw={HandshakeRequest:"Handshake",HandshakeResponse:"HandshakeResponse",GetToken:"GetToken",Response:"Response"},Ql={LocalStorage:"localStorage",SessionStorage:"sessionStorage",MemoryStorage:"memoryStorage"},gwe={GET:"GET",POST:"POST"},ya={AUTHORITY:"authority",ACQUIRE_TOKEN_ACCOUNT:"acquireToken.account",SESSION_STATE:"session.state",REQUEST_STATE:"request.state",NONCE_IDTOKEN:"nonce.id_token",ORIGIN_URI:"request.origin",RENEW_STATUS:"token.renew.status",URL_HASH:"urlHash",REQUEST_PARAMS:"request.params",SCOPES:"scopes",INTERACTION_STATUS_KEY:"interaction.status",CCS_CREDENTIAL:"ccs.credential",CORRELATION_ID:"request.correlationId",NATIVE_REQUEST:"request.native",REDIRECT_CONTEXT:"request.redirect.context"},Gw={ACCOUNT_KEYS:"msal.account.keys",TOKEN_KEYS:"msal.token.keys"},ZH={WRAPPER_SKU:"wrapper.sku",WRAPPER_VER:"wrapper.version"},Ma={acquireTokenRedirect:861,acquireTokenPopup:862,ssoSilent:863,acquireTokenSilent_authCode:864,handleRedirectPromise:865,acquireTokenByCode:866,acquireTokenSilent_silentFlow:61,logout:961,logoutPopup:962},pr=function(n){return n.Redirect="redirect",n.Popup="popup",n.Silent="silent",n.None="none",n}(pr||{}),Fc={Startup:"startup",Login:"login",Logout:"logout",AcquireToken:"acquireToken",SsoSilent:"ssoSilent",HandleRedirect:"handleRedirect",None:"none"},_we={scopes:qm},vwe="jwk",ywe={React:"@azure/msal-react",Angular:"@azure/msal-angular"},ote="msal.db",l5e=1,c5e=`${ote}.keys`,Up={Default:0,AccessToken:1,AccessTokenAndRefreshToken:2,RefreshToken:3,RefreshTokenAndNetwork:4,Skip:5},u5e=[Up.Default,Up.Skip,Up.RefreshTokenAndNetwork],d5e="msal.browser.log.level",h5e="msal.browser.log.pii";function QH(n){return encodeURIComponent(XH(n).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_"))}function WO(n){return p5e(n).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function XH(n){return p5e(new TextEncoder().encode(n))}function p5e(n){let e=Array.from(n,t=>String.fromCodePoint(t)).join("");return btoa(e)}var v0t="RSASSA-PKCS1-v1_5",g5e="SHA-256",y0t=2048,b0t=new Uint8Array([1,0,1]),f5e="0123456789abcdef",m5e=new Uint32Array(1),xwe={name:v0t,hash:g5e,modulusLength:y0t,publicExponent:b0t};function _5e(n){if("crypto"in window)n.verbose("BrowserCrypto: modern crypto interface available");else throw n.error("BrowserCrypto: crypto interface is unavailable"),nr(GL)}function wwe(n,e,t){return ct(this,null,function*(){e?.addQueueMeasurement(mt.Sha256Digest,t);let r=new TextEncoder().encode(n);return window.crypto.subtle.digest(g5e,r)})}function v5e(n){return window.crypto.getRandomValues(n)}function bwe(){return window.crypto.getRandomValues(m5e),m5e[0]}function jd(){let n=Date.now(),e=bwe()*1024+(bwe()&1023),t=new Uint8Array(16),i=Math.trunc(e/2**30),r=e&2**30-1,o=bwe();t[0]=n/2**40,t[1]=n/2**32,t[2]=n/2**24,t[3]=n/2**16,t[4]=n/2**8,t[5]=n,t[6]=112|i>>>8,t[7]=i,t[8]=128|r>>>24,t[9]=r>>>16,t[10]=r>>>8,t[11]=r,t[12]=o>>>24,t[13]=o>>>16,t[14]=o>>>8,t[15]=o;let s="";for(let c=0;c>>4),s+=f5e.charAt(t[c]&15),(c===3||c===5||c===7||c===9)&&(s+="-");return s}function y5e(n,e){return ct(this,null,function*(){return window.crypto.subtle.generateKey(xwe,n,e)})}function ste(n){return ct(this,null,function*(){return window.crypto.subtle.exportKey(vwe,n)})}function b5e(n,e,t){return ct(this,null,function*(){return window.crypto.subtle.importKey(vwe,n,xwe,e,t)})}function x5e(n,e){return ct(this,null,function*(){return window.crypto.subtle.sign(xwe,n,e)})}function ate(n){return ct(this,null,function*(){let e=yield wwe(n),t=new Uint8Array(e);return WO(t)})}var vB="storage_not_supported",lte="stubbed_public_client_application_called",yB="in_mem_redirect_unavailable";var cte={[vB]:"Given storage configuration option was not supported.",[lte]:"Stub instance of Public Client Application was called. If using msal-react, please ensure context is not used without a provider. For more visit: aka.ms/msaljs/browser-errors",[yB]:"Redirect cannot be supported. In-memory storage was selected and storeAuthStateInCookie=false, which would cause the library to be unable to handle the incoming hash. If you would like to use the redirect API, please use session/localStorage or set storeAuthStateInCookie=true."},x0t={storageNotSupportedError:{code:vB,desc:cte[vB]},stubPcaInstanceCalled:{code:lte,desc:cte[lte]},inMemRedirectUnavailable:{code:yB,desc:cte[yB]}},ZO=class n extends Os{constructor(e,t){super(e,t),this.name="BrowserConfigurationAuthError",Object.setPrototypeOf(this,n.prototype)}};function ute(n){return new ZO(n,cte[n])}function Cwe(n){n.location.hash="",typeof n.history.replaceState=="function"&&n.history.replaceState(null,"",`${n.location.origin}${n.location.pathname}${n.location.search}`)}function Swe(n){let e=n.split("#");e.shift(),window.location.hash=e.length>0?e.join("#"):""}function JH(){return window.parent!==window}function w5e(){return typeof window<"u"&&!!window.opener&&window.opener!==window&&typeof window.name=="string"&&window.name.indexOf(`${pd.POPUP_NAME_PREFIX}.`)===0}function zf(){return window.location.href.split("?")[0].split("#")[0]}function Ewe(){let e=new bs(window.location.href).getUrlComponents();return`${e.Protocol}//${e.HostNameAndPort}/`}function C5e(){if(bs.hashContainsKnownProperties(window.location.hash)&&JH())throw nr(eB)}function S5e(n){if(JH()&&!n)throw nr(JL)}function E5e(){if(w5e())throw nr(tB)}function I5e(){if(typeof window>"u")throw nr(rT)}function dte(n){if(!n)throw nr(fB)}function e8(n){I5e(),C5e(),E5e(),dte(n)}function hte(n,e){if(e8(n),S5e(e.system.allowRedirectInIframe),e.cache.cacheLocation===Ql.MemoryStorage&&!e.cache.storeAuthStateInCookie)throw ute(yB)}function t8(n){let e=document.createElement("link");e.rel="preconnect",e.href=new URL(n).origin,e.crossOrigin="anonymous",document.head.appendChild(e),window.setTimeout(()=>{try{document.head.removeChild(e)}catch{}},1e4)}function w0t(){return jd()}var i8=class n{navigateInternal(e,t){return n.defaultNavigateWindow(e,t)}navigateExternal(e,t){return n.defaultNavigateWindow(e,t)}static defaultNavigateWindow(e,t){return t.noHistory?window.location.replace(e):window.location.assign(e),new Promise(i=>{setTimeout(()=>{i(!0)},t.timeout)})}};var fte=class{sendGetRequestAsync(e,t){return ct(this,null,function*(){let i;try{i=yield fetch(e,{method:gwe.GET,headers:this.getFetchHeaders(t)})}catch{throw window.navigator.onLine?nr(sB):nr(Uw)}try{return{headers:this.getHeaderDict(i.headers),body:yield i.json(),status:i.status}}catch{throw nr($O)}})}sendPostRequestAsync(e,t){return ct(this,null,function*(){let i=t&&t.body||yi.EMPTY_STRING,r;try{r=yield fetch(e,{method:gwe.POST,headers:this.getFetchHeaders(t),body:i})}catch{throw window.navigator.onLine?nr(oB):nr(Uw)}try{return{headers:this.getHeaderDict(r.headers),body:yield r.json(),status:r.status}}catch{throw nr($O)}})}getFetchHeaders(e){let t=new Headers;if(!(e&&e.headers))return t;let i=e.headers;return Object.keys(i).forEach(r=>{t.append(r,i[r])}),t}getHeaderDict(e){let t={};return e.forEach((i,r)=>{t[r]=i}),t}};var C0t=6e4,mte=1e4,S0t=3e4,E0t=2e3;function T5e({auth:n,cache:e,system:t,telemetry:i},r){let o={clientId:yi.EMPTY_STRING,authority:`${yi.DEFAULT_AUTHORITY}`,knownAuthorities:[],cloudDiscoveryMetadata:yi.EMPTY_STRING,authorityMetadata:yi.EMPTY_STRING,redirectUri:yi.EMPTY_STRING,postLogoutRedirectUri:yi.EMPTY_STRING,navigateToLoginRequestUrl:!0,clientCapabilities:[],protocolMode:_h.AAD,OIDCOptions:{serverResponseType:o0.FRAGMENT,defaultScopes:[yi.OPENID_SCOPE,yi.PROFILE_SCOPE,yi.OFFLINE_ACCESS_SCOPE]},azureCloudOptions:{azureCloudInstance:WI.None,tenant:yi.EMPTY_STRING},skipAuthorityMetadataCache:!1,supportsNestedAppAuth:!1},s={cacheLocation:Ql.SessionStorage,temporaryCacheLocation:Ql.SessionStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!!(e&&e.cacheLocation===Ql.LocalStorage),claimsBasedCachingEnabled:!1},c={loggerCallback:()=>{},logLevel:xl.Info,piiLoggingEnabled:!1},h=wt(Ce({},$ee),{loggerOptions:c,networkClient:r?new fte:pwe,navigationClient:new i8,loadFrameTimeout:0,windowHashTimeout:t?.loadFrameTimeout||C0t,iframeHashTimeout:t?.loadFrameTimeout||mte,navigateFrameWait:0,redirectNavigationTimeout:S0t,asyncPopups:!1,allowRedirectInIframe:!1,allowNativeBroker:!1,nativeBrokerHandshakeTimeout:t?.nativeBrokerHandshakeTimeout||E0t,pollIntervalMilliseconds:pd.DEFAULT_POLL_INTERVAL_MS}),g=wt(Ce(Ce({},h),t),{loggerOptions:t?.loggerOptions||c}),x={application:{appName:yi.EMPTY_STRING,appVersion:yi.EMPTY_STRING},client:new HL};if(n?.protocolMode!==_h.OIDC&&n?.OIDCOptions&&new __(g.loggerOptions).warning(JSON.stringify(Zs(l0.cannotSetOIDCOptions))),n?.protocolMode&&n.protocolMode!==_h.AAD&&g?.allowNativeBroker)throw Zs(l0.cannotAllowNativeBroker);return{auth:wt(Ce(Ce({},o),n),{OIDCOptions:Ce(Ce({},o.OIDCOptions),n?.OIDCOptions)}),cache:Ce(Ce({},s),e),system:g,telemetry:Ce(Ce({},x),i)}}var A5e="@azure/msal-browser",lT="3.20.0";var gte=class n{static loggerCallback(e,t){switch(e){case xl.Error:console.error(t);return;case xl.Info:console.info(t);return;case xl.Verbose:console.debug(t);return;case xl.Warning:console.warn(t);return;default:console.log(t);return}}constructor(e){this.browserEnvironment=typeof window<"u",this.config=T5e(e,this.browserEnvironment);let t;try{t=window[Ql.SessionStorage]}catch{}let i=t?.getItem(d5e),r=t?.getItem(h5e)?.toLowerCase(),o=r==="true"?!0:r==="false"?!1:void 0,s=Ce({},this.config.system.loggerOptions),c=i&&Object.keys(xl).includes(i)?xl[i]:void 0;c&&(s.loggerCallback=n.loggerCallback,s.logLevel=c),o!==void 0&&(s.piiLoggingEnabled=o),this.logger=new __(s,A5e,lT),this.available=!1}getConfig(){return this.config}getLogger(){return this.logger}isAvailable(){return this.available}isBrowserEnvironment(){return this.browserEnvironment}};var _te=(()=>{class n extends gte{getModuleName(){return n.MODULE_NAME}getId(){return n.ID}initialize(){return ct(this,null,function*(){return this.available=typeof window<"u",this.available})}}return n.MODULE_NAME="",n.ID="StandardOperatingContext",n})();function Vf(n){return new TextDecoder().decode(I0t(n))}function I0t(n){let e=n.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw nr(gB)}let t=atob(e);return Uint8Array.from(t,i=>i.codePointAt(0)||0)}var vte=class{constructor(){this.dbName=ote,this.version=l5e,this.tableName=c5e,this.dbOpen=!1}open(){return ct(this,null,function*(){return new Promise((e,t)=>{let i=window.indexedDB.open(this.dbName,this.version);i.addEventListener("upgradeneeded",r=>{r.target.result.createObjectStore(this.tableName)}),i.addEventListener("success",r=>{let o=r;this.db=o.target.result,this.dbOpen=!0,e()}),i.addEventListener("error",()=>t(nr(sT)))})})}closeConnection(){let e=this.db;e&&this.dbOpen&&(e.close(),this.dbOpen=!1)}validateDbIsOpen(){return ct(this,null,function*(){if(!this.dbOpen)return this.open()})}getItem(e){return ct(this,null,function*(){return yield this.validateDbIsOpen(),new Promise((t,i)=>{if(!this.db)return i(nr(Lb));let s=this.db.transaction([this.tableName],"readonly").objectStore(this.tableName).get(e);s.addEventListener("success",c=>{let h=c;this.closeConnection(),t(h.target.result)}),s.addEventListener("error",c=>{this.closeConnection(),i(c)})})})}setItem(e,t){return ct(this,null,function*(){return yield this.validateDbIsOpen(),new Promise((i,r)=>{if(!this.db)return r(nr(Lb));let c=this.db.transaction([this.tableName],"readwrite").objectStore(this.tableName).put(t,e);c.addEventListener("success",()=>{this.closeConnection(),i()}),c.addEventListener("error",h=>{this.closeConnection(),r(h)})})})}removeItem(e){return ct(this,null,function*(){return yield this.validateDbIsOpen(),new Promise((t,i)=>{if(!this.db)return i(nr(Lb));let s=this.db.transaction([this.tableName],"readwrite").objectStore(this.tableName).delete(e);s.addEventListener("success",()=>{this.closeConnection(),t()}),s.addEventListener("error",c=>{this.closeConnection(),i(c)})})})}getKeys(){return ct(this,null,function*(){return yield this.validateDbIsOpen(),new Promise((e,t)=>{if(!this.db)return t(nr(Lb));let o=this.db.transaction([this.tableName],"readonly").objectStore(this.tableName).getAllKeys();o.addEventListener("success",s=>{let c=s;this.closeConnection(),e(c.target.result)}),o.addEventListener("error",s=>{this.closeConnection(),t(s)})})})}containsKey(e){return ct(this,null,function*(){return yield this.validateDbIsOpen(),new Promise((t,i)=>{if(!this.db)return i(nr(Lb));let s=this.db.transaction([this.tableName],"readonly").objectStore(this.tableName).count(e);s.addEventListener("success",c=>{let h=c;this.closeConnection(),t(h.target.result===1)}),s.addEventListener("error",c=>{this.closeConnection(),i(c)})})})}deleteDatabase(){return ct(this,null,function*(){return this.db&&this.dbOpen&&this.closeConnection(),new Promise((e,t)=>{let i=window.indexedDB.deleteDatabase(ote),r=setTimeout(()=>t(!1),200);i.addEventListener("success",()=>(clearTimeout(r),e(!0))),i.addEventListener("blocked",()=>(clearTimeout(r),e(!0))),i.addEventListener("error",()=>(clearTimeout(r),t(!1)))})})}};var QO=class{constructor(){this.cache=new Map}getItem(e){return this.cache.get(e)||null}setItem(e,t){this.cache.set(e,t)}removeItem(e){this.cache.delete(e)}getKeys(){let e=[];return this.cache.forEach((t,i)=>{e.push(i)}),e}containsKey(e){return this.cache.has(e)}clear(){this.cache.clear()}};var yte=class{constructor(e){this.inMemoryCache=new QO,this.indexedDBCache=new vte,this.logger=e}handleDatabaseAccessError(e){if(e instanceof KO&&e.errorCode===sT)this.logger.error("Could not access persistent storage. This may be caused by browser privacy features which block persistent storage in third-party contexts.");else throw e}getItem(e){return ct(this,null,function*(){let t=this.inMemoryCache.getItem(e);if(!t)try{return this.logger.verbose("Queried item not found in in-memory cache, now querying persistent storage."),yield this.indexedDBCache.getItem(e)}catch(i){this.handleDatabaseAccessError(i)}return t})}setItem(e,t){return ct(this,null,function*(){this.inMemoryCache.setItem(e,t);try{yield this.indexedDBCache.setItem(e,t)}catch(i){this.handleDatabaseAccessError(i)}})}removeItem(e){return ct(this,null,function*(){this.inMemoryCache.removeItem(e);try{yield this.indexedDBCache.removeItem(e)}catch(t){this.handleDatabaseAccessError(t)}})}getKeys(){return ct(this,null,function*(){let e=this.inMemoryCache.getKeys();if(e.length===0)try{return this.logger.verbose("In-memory cache is empty, now querying persistent storage."),yield this.indexedDBCache.getKeys()}catch(t){this.handleDatabaseAccessError(t)}return e})}containsKey(e){return ct(this,null,function*(){let t=this.inMemoryCache.containsKey(e);if(!t)try{return this.logger.verbose("Key not found in in-memory cache, now querying persistent storage."),yield this.indexedDBCache.containsKey(e)}catch(i){this.handleDatabaseAccessError(i)}return t})}clearInMemory(){this.logger.verbose("Deleting in-memory keystore"),this.inMemoryCache.clear(),this.logger.verbose("In-memory keystore deleted")}clearPersistent(){return ct(this,null,function*(){try{this.logger.verbose("Deleting persistent keystore");let e=yield this.indexedDBCache.deleteDatabase();return e&&this.logger.verbose("Persistent keystore deleted"),e}catch(e){return this.handleDatabaseAccessError(e),!1}})}};var k5e=(()=>{class n{constructor(t,i){this.logger=t,_5e(t),this.cache=new yte(this.logger),this.performanceClient=i}createNewGuid(){return jd()}base64Encode(t){return XH(t)}base64Decode(t){return Vf(t)}base64UrlEncode(t){return QH(t)}encodeKid(t){return this.base64UrlEncode(JSON.stringify({kid:t}))}getPublicKeyThumbprint(t){return ct(this,null,function*(){let i=this.performanceClient?.startMeasurement(mt.CryptoOptsGetPublicKeyThumbprint,t.correlationId),r=yield y5e(n.EXTRACTABLE,n.POP_KEY_USAGES),o=yield ste(r.publicKey),s={e:o.e,kty:o.kty,n:o.n},c=D5e(s),h=yield this.hashString(c),g=yield ste(r.privateKey),x=yield b5e(g,!1,["sign"]);return yield this.cache.setItem(h,{privateKey:x,publicKey:r.publicKey,requestMethod:t.resourceRequestMethod,requestUri:t.resourceRequestUri}),i&&i.end({success:!0}),h})}removeTokenBindingKey(t){return ct(this,null,function*(){return yield this.cache.removeItem(t),!(yield this.cache.containsKey(t))})}clearKeystore(){return ct(this,null,function*(){this.cache.clearInMemory();try{return yield this.cache.clearPersistent(),!0}catch(t){return t instanceof Error?this.logger.error(`Clearing keystore failed with error: ${t.message}`):this.logger.error("Clearing keystore failed with unknown error"),!1}})}signJwt(t,i,r,o){return ct(this,null,function*(){let s=this.performanceClient?.startMeasurement(mt.CryptoOptsSignJwt,o),c=yield this.cache.getItem(i);if(!c)throw nr(oT);let h=yield ste(c.publicKey),g=D5e(h),x=QH(JSON.stringify({kid:i})),C=WH.getShrHeaderString(wt(Ce({},r?.header),{alg:h.alg,kid:x})),A=QH(C);t.cnf={jwk:JSON.parse(g)};let k=QH(JSON.stringify(t)),O=`${A}.${k}`,L=new TextEncoder().encode(O),z=yield x5e(c.privateKey,L),j=WO(new Uint8Array(z)),K=`${O}.${j}`;return s&&s.end({success:!0}),K})}hashString(t){return ct(this,null,function*(){return ate(t)})}}return n.POP_KEY_USAGES=["sign","verify"],n.EXTRACTABLE=!0,n})();function D5e(n){return JSON.stringify(n,Object.keys(n).sort())}var n8=class{constructor(e){this.validateWindowStorage(e),this.windowStorage=window[e]}validateWindowStorage(e){if(e!==Ql.LocalStorage&&e!==Ql.SessionStorage||!window[e])throw ute(vB)}getItem(e){return this.windowStorage.getItem(e)}setItem(e,t){this.windowStorage.setItem(e,t)}removeItem(e){this.windowStorage.removeItem(e)}getKeys(){return Object.keys(this.windowStorage)}containsKey(e){return this.windowStorage.hasOwnProperty(e)}};function bte(n,e){if(!e)return null;try{return hd.parseRequestState(n,e).libraryState.meta}catch{throw Xi(ud.invalidState)}}var bB=class n extends zw{constructor(e,t,i,r,o,s){super(e,i,r,o),this.COOKIE_LIFE_MULTIPLIER=24*60*60*1e3,this.cacheConfig=t,this.logger=r,this.internalStorage=new QO,this.browserStorage=this.setupBrowserStorage(this.cacheConfig.cacheLocation),this.temporaryCacheStorage=this.setupTemporaryCacheStorage(this.cacheConfig.temporaryCacheLocation,this.cacheConfig.cacheLocation),t.cacheMigrationEnabled&&(this.migrateCacheEntries(),this.createKeyMaps()),this.performanceClient=s}setupBrowserStorage(e){switch(e){case Ql.LocalStorage:case Ql.SessionStorage:try{return new n8(e)}catch(t){this.logger.verbose(t);break}}return this.cacheConfig.cacheLocation=Ql.MemoryStorage,new QO}setupTemporaryCacheStorage(e,t){switch(t){case Ql.LocalStorage:case Ql.SessionStorage:try{return new n8(e||Ql.SessionStorage)}catch(i){return this.logger.verbose(i),this.internalStorage}case Ql.MemoryStorage:default:return this.internalStorage}}migrateCacheEntries(){let e=`${yi.CACHE_PREFIX}.${du.ID_TOKEN}`,t=`${yi.CACHE_PREFIX}.${du.CLIENT_INFO}`,i=`${yi.CACHE_PREFIX}.${du.ERROR}`,r=`${yi.CACHE_PREFIX}.${du.ERROR_DESC}`,o=this.browserStorage.getItem(e),s=this.browserStorage.getItem(t),c=this.browserStorage.getItem(i),h=this.browserStorage.getItem(r),g=[o,s,c,h];[du.ID_TOKEN,du.CLIENT_INFO,du.ERROR,du.ERROR_DESC].forEach((C,A)=>{let k=g[A];k&&this.setTemporaryCache(C,k,!0)})}createKeyMaps(){this.logger.trace("BrowserCacheManager - createKeyMaps called.");let e=this.getItem(Gw.ACCOUNT_KEYS),t=this.getItem(`${Gw.TOKEN_KEYS}.${this.clientId}`);if(e&&t){this.logger.verbose("BrowserCacheManager:createKeyMaps - account and token key maps already exist, skipping migration.");return}this.browserStorage.getKeys().forEach(r=>{if(this.isCredentialKey(r)){let o=this.getItem(r);if(o){let s=this.validateAndParseJson(o);if(s&&s.hasOwnProperty("credentialType"))switch(s.credentialType){case bo.ID_TOKEN:if(Bl.isIdTokenEntity(s)){this.logger.trace("BrowserCacheManager:createKeyMaps - idToken found, saving key to token key map"),this.logger.tracePii(`BrowserCacheManager:createKeyMaps - idToken with key: ${r} found, saving key to token key map`);let c=s,h=this.updateCredentialCacheKey(r,c);this.addTokenKey(h,bo.ID_TOKEN);return}else this.logger.trace("BrowserCacheManager:createKeyMaps - key found matching idToken schema with value containing idToken credentialType field but value failed IdTokenEntity validation, skipping."),this.logger.tracePii(`BrowserCacheManager:createKeyMaps - failed idToken validation on key: ${r}`);break;case bo.ACCESS_TOKEN:case bo.ACCESS_TOKEN_WITH_AUTH_SCHEME:if(Bl.isAccessTokenEntity(s)){this.logger.trace("BrowserCacheManager:createKeyMaps - accessToken found, saving key to token key map"),this.logger.tracePii(`BrowserCacheManager:createKeyMaps - accessToken with key: ${r} found, saving key to token key map`);let c=s,h=this.updateCredentialCacheKey(r,c);this.addTokenKey(h,bo.ACCESS_TOKEN);return}else this.logger.trace("BrowserCacheManager:createKeyMaps - key found matching accessToken schema with value containing accessToken credentialType field but value failed AccessTokenEntity validation, skipping."),this.logger.tracePii(`BrowserCacheManager:createKeyMaps - failed accessToken validation on key: ${r}`);break;case bo.REFRESH_TOKEN:if(Bl.isRefreshTokenEntity(s)){this.logger.trace("BrowserCacheManager:createKeyMaps - refreshToken found, saving key to token key map"),this.logger.tracePii(`BrowserCacheManager:createKeyMaps - refreshToken with key: ${r} found, saving key to token key map`);let c=s,h=this.updateCredentialCacheKey(r,c);this.addTokenKey(h,bo.REFRESH_TOKEN);return}else this.logger.trace("BrowserCacheManager:createKeyMaps - key found matching refreshToken schema with value containing refreshToken credentialType field but value failed RefreshTokenEntity validation, skipping."),this.logger.tracePii(`BrowserCacheManager:createKeyMaps - failed refreshToken validation on key: ${r}`);break}}}if(this.isAccountKey(r)){let o=this.getItem(r);if(o){let s=this.validateAndParseJson(o);s&&zl.isAccountEntity(s)&&(this.logger.trace("BrowserCacheManager:createKeyMaps - account found, saving key to account key map"),this.logger.tracePii(`BrowserCacheManager:createKeyMaps - account with key: ${r} found, saving key to account key map`),this.addAccountKeyToMap(r))}}})}validateAndParseJson(e){try{let t=JSON.parse(e);return t&&typeof t=="object"?t:null}catch{return null}}getItem(e){return this.browserStorage.getItem(e)}setItem(e,t){this.browserStorage.setItem(e,t)}getAccount(e,t){this.logger.trace("BrowserCacheManager.getAccount called");let i=this.getCachedAccountEntity(e);return this.updateOutdatedCachedAccount(e,i,t)}getCachedAccountEntity(e){let t=this.getItem(e);if(!t)return this.removeAccountKeyFromMap(e),null;let i=this.validateAndParseJson(t);return!i||!zl.isAccountEntity(i)?(this.removeAccountKeyFromMap(e),null):zw.toObject(new zl,i)}setAccount(e){this.logger.trace("BrowserCacheManager.setAccount called");let t=e.generateAccountKey();this.setItem(t,JSON.stringify(e)),this.addAccountKeyToMap(t)}getAccountKeys(){this.logger.trace("BrowserCacheManager.getAccountKeys called");let e=this.getItem(Gw.ACCOUNT_KEYS);return e?JSON.parse(e):(this.logger.verbose("BrowserCacheManager.getAccountKeys - No account keys found"),[])}addAccountKeyToMap(e){this.logger.trace("BrowserCacheManager.addAccountKeyToMap called"),this.logger.tracePii(`BrowserCacheManager.addAccountKeyToMap called with key: ${e}`);let t=this.getAccountKeys();t.indexOf(e)===-1?(t.push(e),this.setItem(Gw.ACCOUNT_KEYS,JSON.stringify(t)),this.logger.verbose("BrowserCacheManager.addAccountKeyToMap account key added")):this.logger.verbose("BrowserCacheManager.addAccountKeyToMap account key already exists in map")}removeAccountKeyFromMap(e){this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap called"),this.logger.tracePii(`BrowserCacheManager.removeAccountKeyFromMap called with key: ${e}`);let t=this.getAccountKeys(),i=t.indexOf(e);i>-1?(t.splice(i,1),this.setItem(Gw.ACCOUNT_KEYS,JSON.stringify(t)),this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap account key removed")):this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap key not found in existing map")}removeAccount(e){return ct(this,null,function*(){Sj(n.prototype,this,"removeAccount").call(this,e),this.removeAccountKeyFromMap(e)})}removeOutdatedAccount(e){this.removeItem(e),this.removeAccountKeyFromMap(e)}removeIdToken(e){super.removeIdToken(e),this.removeTokenKey(e,bo.ID_TOKEN)}removeAccessToken(e){return ct(this,null,function*(){Sj(n.prototype,this,"removeAccessToken").call(this,e),this.removeTokenKey(e,bo.ACCESS_TOKEN)})}removeRefreshToken(e){super.removeRefreshToken(e),this.removeTokenKey(e,bo.REFRESH_TOKEN)}getTokenKeys(){this.logger.trace("BrowserCacheManager.getTokenKeys called");let e=this.getItem(`${Gw.TOKEN_KEYS}.${this.clientId}`);if(e){let t=this.validateAndParseJson(e);if(t&&t.hasOwnProperty("idToken")&&t.hasOwnProperty("accessToken")&&t.hasOwnProperty("refreshToken"))return t;this.logger.error("BrowserCacheManager.getTokenKeys - Token keys found but in an unknown format. Returning empty key map.")}else this.logger.verbose("BrowserCacheManager.getTokenKeys - No token keys found");return{idToken:[],accessToken:[],refreshToken:[]}}addTokenKey(e,t){this.logger.trace("BrowserCacheManager addTokenKey called");let i=this.getTokenKeys();switch(t){case bo.ID_TOKEN:i.idToken.indexOf(e)===-1&&(this.logger.info("BrowserCacheManager: addTokenKey - idToken added to map"),i.idToken.push(e));break;case bo.ACCESS_TOKEN:i.accessToken.indexOf(e)===-1&&(this.logger.info("BrowserCacheManager: addTokenKey - accessToken added to map"),i.accessToken.push(e));break;case bo.REFRESH_TOKEN:i.refreshToken.indexOf(e)===-1&&(this.logger.info("BrowserCacheManager: addTokenKey - refreshToken added to map"),i.refreshToken.push(e));break;default:throw this.logger.error(`BrowserCacheManager:addTokenKey - CredentialType provided invalid. CredentialType: ${t}`),Xi(ud.unexpectedCredentialType)}this.setItem(`${Gw.TOKEN_KEYS}.${this.clientId}`,JSON.stringify(i))}removeTokenKey(e,t){this.logger.trace("BrowserCacheManager removeTokenKey called");let i=this.getTokenKeys();switch(t){case bo.ID_TOKEN:this.logger.infoPii(`BrowserCacheManager: removeTokenKey - attempting to remove idToken with key: ${e} from map`);let r=i.idToken.indexOf(e);r>-1?(this.logger.info("BrowserCacheManager: removeTokenKey - idToken removed from map"),i.idToken.splice(r,1)):this.logger.info("BrowserCacheManager: removeTokenKey - idToken does not exist in map. Either it was previously removed or it was never added.");break;case bo.ACCESS_TOKEN:this.logger.infoPii(`BrowserCacheManager: removeTokenKey - attempting to remove accessToken with key: ${e} from map`);let o=i.accessToken.indexOf(e);o>-1?(this.logger.info("BrowserCacheManager: removeTokenKey - accessToken removed from map"),i.accessToken.splice(o,1)):this.logger.info("BrowserCacheManager: removeTokenKey - accessToken does not exist in map. Either it was previously removed or it was never added.");break;case bo.REFRESH_TOKEN:this.logger.infoPii(`BrowserCacheManager: removeTokenKey - attempting to remove refreshToken with key: ${e} from map`);let s=i.refreshToken.indexOf(e);s>-1?(this.logger.info("BrowserCacheManager: removeTokenKey - refreshToken removed from map"),i.refreshToken.splice(s,1)):this.logger.info("BrowserCacheManager: removeTokenKey - refreshToken does not exist in map. Either it was previously removed or it was never added.");break;default:throw this.logger.error(`BrowserCacheManager:removeTokenKey - CredentialType provided invalid. CredentialType: ${t}`),Xi(ud.unexpectedCredentialType)}this.setItem(`${Gw.TOKEN_KEYS}.${this.clientId}`,JSON.stringify(i))}getIdTokenCredential(e){let t=this.getItem(e);if(!t)return this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"),this.removeTokenKey(e,bo.ID_TOKEN),null;let i=this.validateAndParseJson(t);return!i||!Bl.isIdTokenEntity(i)?(this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"),this.removeTokenKey(e,bo.ID_TOKEN),null):(this.logger.trace("BrowserCacheManager.getIdTokenCredential: cache hit"),i)}setIdTokenCredential(e){this.logger.trace("BrowserCacheManager.setIdTokenCredential called");let t=Bl.generateCredentialKey(e);this.setItem(t,JSON.stringify(e)),this.addTokenKey(t,bo.ID_TOKEN)}getAccessTokenCredential(e){let t=this.getItem(e);if(!t)return this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"),this.removeTokenKey(e,bo.ACCESS_TOKEN),null;let i=this.validateAndParseJson(t);return!i||!Bl.isAccessTokenEntity(i)?(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"),this.removeTokenKey(e,bo.ACCESS_TOKEN),null):(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: cache hit"),i)}setAccessTokenCredential(e){this.logger.trace("BrowserCacheManager.setAccessTokenCredential called");let t=Bl.generateCredentialKey(e);this.setItem(t,JSON.stringify(e)),this.addTokenKey(t,bo.ACCESS_TOKEN)}getRefreshTokenCredential(e){let t=this.getItem(e);if(!t)return this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"),this.removeTokenKey(e,bo.REFRESH_TOKEN),null;let i=this.validateAndParseJson(t);return!i||!Bl.isRefreshTokenEntity(i)?(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"),this.removeTokenKey(e,bo.REFRESH_TOKEN),null):(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: cache hit"),i)}setRefreshTokenCredential(e){this.logger.trace("BrowserCacheManager.setRefreshTokenCredential called");let t=Bl.generateCredentialKey(e);this.setItem(t,JSON.stringify(e)),this.addTokenKey(t,bo.REFRESH_TOKEN)}getAppMetadata(e){let t=this.getItem(e);if(!t)return this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit"),null;let i=this.validateAndParseJson(t);return!i||!Bl.isAppMetadataEntity(e,i)?(this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getAppMetadata: cache hit"),i)}setAppMetadata(e){this.logger.trace("BrowserCacheManager.setAppMetadata called");let t=Bl.generateAppMetadataKey(e);this.setItem(t,JSON.stringify(e))}getServerTelemetry(e){let t=this.getItem(e);if(!t)return this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit"),null;let i=this.validateAndParseJson(t);return!i||!Bl.isServerTelemetryEntity(e,i)?(this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getServerTelemetry: cache hit"),i)}setServerTelemetry(e,t){this.logger.trace("BrowserCacheManager.setServerTelemetry called"),this.setItem(e,JSON.stringify(t))}getAuthorityMetadata(e){let t=this.internalStorage.getItem(e);if(!t)return this.logger.trace("BrowserCacheManager.getAuthorityMetadata: called, no cache hit"),null;let i=this.validateAndParseJson(t);return i&&Bl.isAuthorityMetadataEntity(e,i)?(this.logger.trace("BrowserCacheManager.getAuthorityMetadata: cache hit"),i):null}getAuthorityMetadataKeys(){return this.internalStorage.getKeys().filter(t=>this.isAuthorityMetadata(t))}setWrapperMetadata(e,t){this.internalStorage.setItem(ZH.WRAPPER_SKU,e),this.internalStorage.setItem(ZH.WRAPPER_VER,t)}getWrapperMetadata(){let e=this.internalStorage.getItem(ZH.WRAPPER_SKU)||yi.EMPTY_STRING,t=this.internalStorage.getItem(ZH.WRAPPER_VER)||yi.EMPTY_STRING;return[e,t]}setAuthorityMetadata(e,t){this.logger.trace("BrowserCacheManager.setAuthorityMetadata called"),this.internalStorage.setItem(e,JSON.stringify(t))}getActiveAccount(){let e=this.generateCacheKey(du.ACTIVE_ACCOUNT_FILTERS),t=this.getItem(e);if(!t){this.logger.trace("BrowserCacheManager.getActiveAccount: No active account filters cache schema found, looking for legacy schema");let r=this.generateCacheKey(du.ACTIVE_ACCOUNT),o=this.getItem(r);if(!o)return this.logger.trace("BrowserCacheManager.getActiveAccount: No active account found"),null;let s=this.getAccountInfoFilteredBy({localAccountId:o});return s?(this.logger.trace("BrowserCacheManager.getActiveAccount: Legacy active account cache schema found"),this.logger.trace("BrowserCacheManager.getActiveAccount: Adding active account filters cache schema"),this.setActiveAccount(s),s):null}let i=this.validateAndParseJson(t);return i?(this.logger.trace("BrowserCacheManager.getActiveAccount: Active account filters schema found"),this.getAccountInfoFilteredBy({homeAccountId:i.homeAccountId,localAccountId:i.localAccountId,tenantId:i.tenantId})):(this.logger.trace("BrowserCacheManager.getActiveAccount: No active account found"),null)}setActiveAccount(e){let t=this.generateCacheKey(du.ACTIVE_ACCOUNT_FILTERS),i=this.generateCacheKey(du.ACTIVE_ACCOUNT);if(e){this.logger.verbose("setActiveAccount: Active account set");let r={homeAccountId:e.homeAccountId,localAccountId:e.localAccountId,tenantId:e.tenantId};this.browserStorage.setItem(t,JSON.stringify(r)),this.browserStorage.setItem(i,e.localAccountId)}else this.logger.verbose("setActiveAccount: No account passed, active account not set"),this.browserStorage.removeItem(t),this.browserStorage.removeItem(i)}getThrottlingCache(e){let t=this.getItem(e);if(!t)return this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit"),null;let i=this.validateAndParseJson(t);return!i||!Bl.isThrottlingEntity(e,i)?(this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getThrottlingCache: cache hit"),i)}setThrottlingCache(e,t){this.logger.trace("BrowserCacheManager.setThrottlingCache called"),this.setItem(e,JSON.stringify(t))}getTemporaryCache(e,t){let i=t?this.generateCacheKey(e):e;if(this.cacheConfig.storeAuthStateInCookie){let o=this.getItemCookie(i);if(o)return this.logger.trace("BrowserCacheManager.getTemporaryCache: storeAuthStateInCookies set to true, retrieving from cookies"),o}let r=this.temporaryCacheStorage.getItem(i);if(!r){if(this.cacheConfig.cacheLocation===Ql.LocalStorage){let o=this.browserStorage.getItem(i);if(o)return this.logger.trace("BrowserCacheManager.getTemporaryCache: Temporary cache item found in local storage"),o}return this.logger.trace("BrowserCacheManager.getTemporaryCache: No cache item found in local storage"),null}return this.logger.trace("BrowserCacheManager.getTemporaryCache: Temporary cache item returned"),r}setTemporaryCache(e,t,i){let r=i?this.generateCacheKey(e):e;this.temporaryCacheStorage.setItem(r,t),this.cacheConfig.storeAuthStateInCookie&&(this.logger.trace("BrowserCacheManager.setTemporaryCache: storeAuthStateInCookie set to true, setting item cookie"),this.setItemCookie(r,t))}removeItem(e){this.browserStorage.removeItem(e)}removeTemporaryItem(e){this.temporaryCacheStorage.removeItem(e),this.cacheConfig.storeAuthStateInCookie&&(this.logger.trace("BrowserCacheManager.removeItem: storeAuthStateInCookie is true, clearing item cookie"),this.clearItemCookie(e))}getKeys(){return this.browserStorage.getKeys()}clear(){return ct(this,null,function*(){yield this.removeAllAccounts(),this.removeAppMetadata(),this.temporaryCacheStorage.getKeys().forEach(e=>{(e.indexOf(yi.CACHE_PREFIX)!==-1||e.indexOf(this.clientId)!==-1)&&this.removeTemporaryItem(e)}),this.browserStorage.getKeys().forEach(e=>{(e.indexOf(yi.CACHE_PREFIX)!==-1||e.indexOf(this.clientId)!==-1)&&this.browserStorage.removeItem(e)}),this.internalStorage.clear()})}clearTokensAndKeysWithClaims(e,t){return ct(this,null,function*(){e.addQueueMeasurement(mt.ClearTokensAndKeysWithClaims,t);let i=this.getTokenKeys(),r=[];i.accessToken.forEach(o=>{let s=this.getAccessTokenCredential(o);s?.requestedClaimsHash&&o.includes(s.requestedClaimsHash.toLowerCase())&&r.push(this.removeAccessToken(o))}),yield Promise.all(r),r.length>0&&this.logger.warning(`${r.length} access tokens with claims in the cache keys have been removed from the cache.`)})}setItemCookie(e,t,i){let r=`${encodeURIComponent(e)}=${encodeURIComponent(t)};path=/;SameSite=Lax;`;if(i){let o=this.getCookieExpirationTime(i);r+=`expires=${o};`}this.cacheConfig.secureCookies&&(r+="Secure;"),document.cookie=r}getItemCookie(e){let t=`${encodeURIComponent(e)}=`,i=document.cookie.split(";");for(let r=0;r{for(;i.charAt(0)===" ";)i=i.substring(1);if(i.indexOf(e)===0){let r=i.split("=")[0];this.clearItemCookie(r)}})}clearItemCookie(e){this.setItemCookie(e,yi.EMPTY_STRING,-1)}getCookieExpirationTime(e){let t=new Date;return new Date(t.getTime()+e*this.COOKIE_LIFE_MULTIPLIER).toUTCString()}generateCacheKey(e){return this.validateAndParseJson(e)?JSON.stringify(e):Tc.startsWith(e,yi.CACHE_PREFIX)||Tc.startsWith(e,du.ADAL_ID_TOKEN)?e:`${yi.CACHE_PREFIX}.${this.clientId}.${e}`}generateAuthorityKey(e){let{libraryState:{id:t}}=hd.parseRequestState(this.cryptoImpl,e);return this.generateCacheKey(`${ya.AUTHORITY}.${t}`)}generateNonceKey(e){let{libraryState:{id:t}}=hd.parseRequestState(this.cryptoImpl,e);return this.generateCacheKey(`${ya.NONCE_IDTOKEN}.${t}`)}generateStateKey(e){let{libraryState:{id:t}}=hd.parseRequestState(this.cryptoImpl,e);return this.generateCacheKey(`${ya.REQUEST_STATE}.${t}`)}getCachedAuthority(e){let t=this.generateStateKey(e),i=this.getTemporaryCache(t);if(!i)return null;let r=this.generateAuthorityKey(i);return this.getTemporaryCache(r)}updateCacheEntries(e,t,i,r,o){this.logger.trace("BrowserCacheManager.updateCacheEntries called");let s=this.generateStateKey(e);this.setTemporaryCache(s,e,!1);let c=this.generateNonceKey(e);this.setTemporaryCache(c,t,!1);let h=this.generateAuthorityKey(e);if(this.setTemporaryCache(h,i,!1),o){let g={credential:o.homeAccountId,type:dd.HOME_ACCOUNT_ID};this.setTemporaryCache(ya.CCS_CREDENTIAL,JSON.stringify(g),!0)}else if(r){let g={credential:r,type:dd.UPN};this.setTemporaryCache(ya.CCS_CREDENTIAL,JSON.stringify(g),!0)}}resetRequestCache(e){this.logger.trace("BrowserCacheManager.resetRequestCache called"),e&&(this.temporaryCacheStorage.getKeys().forEach(t=>{t.indexOf(e)!==-1&&this.removeTemporaryItem(t)}),this.removeTemporaryItem(this.generateStateKey(e)),this.removeTemporaryItem(this.generateNonceKey(e)),this.removeTemporaryItem(this.generateAuthorityKey(e))),this.removeTemporaryItem(this.generateCacheKey(ya.REQUEST_PARAMS)),this.removeTemporaryItem(this.generateCacheKey(ya.ORIGIN_URI)),this.removeTemporaryItem(this.generateCacheKey(ya.URL_HASH)),this.removeTemporaryItem(this.generateCacheKey(ya.CORRELATION_ID)),this.removeTemporaryItem(this.generateCacheKey(ya.CCS_CREDENTIAL)),this.removeTemporaryItem(this.generateCacheKey(ya.NATIVE_REQUEST)),this.setInteractionInProgress(!1)}cleanRequestByState(e){if(this.logger.trace("BrowserCacheManager.cleanRequestByState called"),e){let t=this.generateStateKey(e),i=this.temporaryCacheStorage.getItem(t);this.logger.infoPii(`BrowserCacheManager.cleanRequestByState: Removing temporary cache items for state: ${i}`),this.resetRequestCache(i||yi.EMPTY_STRING)}this.clearMsalCookies()}cleanRequestByInteractionType(e){this.logger.trace("BrowserCacheManager.cleanRequestByInteractionType called"),this.temporaryCacheStorage.getKeys().forEach(t=>{if(t.indexOf(ya.REQUEST_STATE)===-1)return;let i=this.temporaryCacheStorage.getItem(t);if(!i)return;let r=bte(this.cryptoImpl,i);r&&r.interactionType===e&&(this.logger.infoPii(`BrowserCacheManager.cleanRequestByInteractionType: Removing temporary cache items for state: ${i}`),this.resetRequestCache(i))}),this.clearMsalCookies(),this.setInteractionInProgress(!1)}cacheCodeRequest(e){this.logger.trace("BrowserCacheManager.cacheCodeRequest called");let t=XH(JSON.stringify(e));this.setTemporaryCache(ya.REQUEST_PARAMS,t,!0)}getCachedRequest(e){this.logger.trace("BrowserCacheManager.getCachedRequest called");let t=this.getTemporaryCache(ya.REQUEST_PARAMS,!0);if(!t)throw nr(nB);let i;try{i=JSON.parse(Vf(t))}catch(r){throw this.logger.errorPii(`Attempted to parse: ${t}`),this.logger.error(`Parsing cached token request threw with error: ${r}`),nr(rB)}if(this.removeTemporaryItem(this.generateCacheKey(ya.REQUEST_PARAMS)),!i.authority){let r=this.generateAuthorityKey(e),o=this.getTemporaryCache(r);if(!o)throw nr(nT);i.authority=o}return i}getCachedNativeRequest(){this.logger.trace("BrowserCacheManager.getCachedNativeRequest called");let e=this.getTemporaryCache(ya.NATIVE_REQUEST,!0);if(!e)return this.logger.trace("BrowserCacheManager.getCachedNativeRequest: No cached native request found"),null;let t=this.validateAndParseJson(e);return t||(this.logger.error("BrowserCacheManager.getCachedNativeRequest: Unable to parse native request"),null)}isInteractionInProgress(e){let t=this.getInteractionInProgress();return e?t===this.clientId:!!t}getInteractionInProgress(){let e=`${yi.CACHE_PREFIX}.${ya.INTERACTION_STATUS_KEY}`;return this.getTemporaryCache(e,!1)}setInteractionInProgress(e){let t=`${yi.CACHE_PREFIX}.${ya.INTERACTION_STATUS_KEY}`;if(e){if(this.getInteractionInProgress())throw nr(WL);this.setTemporaryCache(t,this.clientId,!1)}else!e&&this.getInteractionInProgress()===this.clientId&&this.removeTemporaryItem(t)}getLegacyLoginHint(){let e=this.getTemporaryCache(du.ADAL_ID_TOKEN);e&&(this.browserStorage.removeItem(du.ADAL_ID_TOKEN),this.logger.verbose("Cached ADAL id token retrieved."));let t=this.getTemporaryCache(du.ID_TOKEN,!0);t&&(this.browserStorage.removeItem(this.generateCacheKey(du.ID_TOKEN)),this.logger.verbose("Cached MSAL.js v1 id token retrieved"));let i=t||e;if(i){let r=qI.extractTokenClaims(i,Vf);if(r.preferred_username)return this.logger.verbose("No SSO params used and ADAL/MSAL v1 token retrieved, setting ADAL/MSAL v1 preferred_username as loginHint"),r.preferred_username;if(r.upn)return this.logger.verbose("No SSO params used and ADAL/MSAL v1 token retrieved, setting ADAL/MSAL v1 upn as loginHint"),r.upn;this.logger.verbose("No SSO params used and ADAL/MSAL v1 token retrieved, however, no account hint claim found. Enable preferred_username or upn id token claim to get SSO.")}return null}updateCredentialCacheKey(e,t){let i=Bl.generateCredentialKey(t);if(e!==i){let r=this.getItem(e);if(r)return this.browserStorage.removeItem(e),this.setItem(i,r),this.logger.verbose(`Updated an outdated ${t.credentialType} cache key`),i;this.logger.error(`Attempted to update an outdated ${t.credentialType} cache key but no item matching the outdated key was found in storage`)}return e}hydrateCache(e,t){return ct(this,null,function*(){let i=Bl.createIdTokenEntity(e.account?.homeAccountId,e.account?.environment,e.idToken,this.clientId,e.tenantId),r;t.claims&&(r=yield this.cryptoImpl.hashString(t.claims));let o=Bl.createAccessTokenEntity(e.account?.homeAccountId,e.account.environment,e.accessToken,this.clientId,e.tenantId,e.scopes.join(" "),e.expiresOn?e.expiresOn.getTime()/1e3:0,e.extExpiresOn?e.extExpiresOn.getTime()/1e3:0,Vf,void 0,e.tokenType,void 0,t.sshKid,t.claims,r),s={idToken:i,accessToken:o};return this.saveCacheRecord(s)})}saveCacheRecord(e,t,i){return ct(this,null,function*(){try{yield Sj(n.prototype,this,"saveCacheRecord").call(this,e,t,i)}catch(r){if(r instanceof Bw&&this.performanceClient&&i)try{let o=this.getTokenKeys();this.performanceClient.addFields({cacheRtCount:o.refreshToken.length,cacheIdCount:o.idToken.length,cacheAtCount:o.accessToken.length},i)}catch{}throw r}})}},M5e=(n,e)=>{let t={cacheLocation:Ql.MemoryStorage,temporaryCacheLocation:Ql.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!1,claimsBasedCachingEnabled:!1};return new bB(n,t,QI,e)};function O5e(n,e,t,i){return n.verbose("getAllAccounts called"),t?e.getAllAccounts(i):[]}function R5e(n,e,t){if(e.trace("getAccount called"),Object.keys(n).length===0)return e.warning("getAccount: No accountFilter provided"),null;let i=t.getAccountInfoFilteredBy(n);return i?(e.verbose("getAccount: Account matching provided filter found, returning"),i):(e.verbose("getAccount: No matching account found, returning null"),null)}function N5e(n,e,t){if(e.trace("getAccountByUsername called"),!n)return e.warning("getAccountByUsername: No username provided"),null;let i=t.getAccountInfoFilteredBy({username:n});return i?(e.verbose("getAccountByUsername: Account matching username found, returning"),e.verbosePii(`getAccountByUsername: Returning signed-in accounts matching username: ${n}`),i):(e.verbose("getAccountByUsername: No matching account found, returning null"),null)}function P5e(n,e,t){if(e.trace("getAccountByHomeId called"),!n)return e.warning("getAccountByHomeId: No homeAccountId provided"),null;let i=t.getAccountInfoFilteredBy({homeAccountId:n});return i?(e.verbose("getAccountByHomeId: Account matching homeAccountId found, returning"),e.verbosePii(`getAccountByHomeId: Returning signed-in accounts matching homeAccountId: ${n}`),i):(e.verbose("getAccountByHomeId: No matching account found, returning null"),null)}function F5e(n,e,t){if(e.trace("getAccountByLocalId called"),!n)return e.warning("getAccountByLocalId: No localAccountId provided"),null;let i=t.getAccountInfoFilteredBy({localAccountId:n});return i?(e.verbose("getAccountByLocalId: Account matching localAccountId found, returning"),e.verbosePii(`getAccountByLocalId: Returning signed-in accounts matching localAccountId: ${n}`),i):(e.verbose("getAccountByLocalId: No matching account found, returning null"),null)}function L5e(n,e){e.setActiveAccount(n)}function B5e(n){return n.getActiveAccount()}var fr={INITIALIZE_START:"msal:initializeStart",INITIALIZE_END:"msal:initializeEnd",ACCOUNT_ADDED:"msal:accountAdded",ACCOUNT_REMOVED:"msal:accountRemoved",ACTIVE_ACCOUNT_CHANGED:"msal:activeAccountChanged",LOGIN_START:"msal:loginStart",LOGIN_SUCCESS:"msal:loginSuccess",LOGIN_FAILURE:"msal:loginFailure",ACQUIRE_TOKEN_START:"msal:acquireTokenStart",ACQUIRE_TOKEN_SUCCESS:"msal:acquireTokenSuccess",ACQUIRE_TOKEN_FAILURE:"msal:acquireTokenFailure",ACQUIRE_TOKEN_NETWORK_START:"msal:acquireTokenFromNetworkStart",SSO_SILENT_START:"msal:ssoSilentStart",SSO_SILENT_SUCCESS:"msal:ssoSilentSuccess",SSO_SILENT_FAILURE:"msal:ssoSilentFailure",ACQUIRE_TOKEN_BY_CODE_START:"msal:acquireTokenByCodeStart",ACQUIRE_TOKEN_BY_CODE_SUCCESS:"msal:acquireTokenByCodeSuccess",ACQUIRE_TOKEN_BY_CODE_FAILURE:"msal:acquireTokenByCodeFailure",HANDLE_REDIRECT_START:"msal:handleRedirectStart",HANDLE_REDIRECT_END:"msal:handleRedirectEnd",POPUP_OPENED:"msal:popupOpened",LOGOUT_START:"msal:logoutStart",LOGOUT_SUCCESS:"msal:logoutSuccess",LOGOUT_FAILURE:"msal:logoutFailure",LOGOUT_END:"msal:logoutEnd",RESTORE_FROM_BFCACHE:"msal:restoreFromBFCache"};var xte=class{constructor(e,t){this.eventCallbacks=new Map,this.logger=e,this.browserCrypto=t,this.listeningToStorageEvents=!1,this.handleAccountCacheChange=this.handleAccountCacheChange.bind(this)}addEventCallback(e){if(typeof window<"u"){let t=jd();return this.eventCallbacks.set(t,e),this.logger.verbose(`Event callback registered with id: ${t}`),t}return null}removeEventCallback(e){this.eventCallbacks.delete(e),this.logger.verbose(`Event callback ${e} removed.`)}enableAccountStorageEvents(){typeof window>"u"||(this.listeningToStorageEvents?this.logger.verbose("Account storage listener already registered."):(this.logger.verbose("Adding account storage listener."),this.listeningToStorageEvents=!0,window.addEventListener("storage",this.handleAccountCacheChange)))}disableAccountStorageEvents(){typeof window>"u"||(this.listeningToStorageEvents?(this.logger.verbose("Removing account storage listener."),window.removeEventListener("storage",this.handleAccountCacheChange),this.listeningToStorageEvents=!1):this.logger.verbose("No account storage listener registered."))}emitEvent(e,t,i,r){if(typeof window<"u"){let o={eventType:e,interactionType:t||null,payload:i||null,error:r||null,timestamp:Date.now()};this.logger.info(`Emitting event: ${e}`),this.eventCallbacks.forEach((s,c)=>{this.logger.verbose(`Emitting event to callback ${c}: ${e}`),s.apply(null,[o])})}}handleAccountCacheChange(e){try{e.key?.includes(du.ACTIVE_ACCOUNT_FILTERS)&&this.emitEvent(fr.ACTIVE_ACCOUNT_CHANGED);let t=e.newValue||e.oldValue;if(!t)return;let i=JSON.parse(t);if(typeof i!="object"||!zl.isAccountEntity(i))return;let o=zw.toObject(new zl,i).getAccountInfo();!e.oldValue&&e.newValue?(this.logger.info("Account was added to cache in a different window"),this.emitEvent(fr.ACCOUNT_ADDED,void 0,o)):!e.newValue&&e.oldValue&&(this.logger.info("Account was removed from cache in a different window"),this.emitEvent(fr.ACCOUNT_REMOVED,void 0,o))}catch{return}}};var xB=class{constructor(e,t,i,r,o,s,c,h,g){this.config=e,this.browserStorage=t,this.browserCrypto=i,this.networkClient=this.config.system.networkClient,this.eventHandler=o,this.navigationClient=s,this.nativeMessageHandler=h,this.correlationId=g||jd(),this.logger=r.clone(pd.MSAL_SKU,lT,this.correlationId),this.performanceClient=c}clearCacheOnLogout(e){return ct(this,null,function*(){if(e){zl.accountInfoIsEqual(e,this.browserStorage.getActiveAccount(),!1)&&(this.logger.verbose("Setting active account to null"),this.browserStorage.setActiveAccount(null));try{yield this.browserStorage.removeAccount(zl.generateAccountCacheKey(e)),this.logger.verbose("Cleared cache items belonging to the account provided in the logout request.")}catch{this.logger.error("Account provided in logout request was not found. Local cache unchanged.")}}else try{this.logger.verbose("No account provided in logout request, clearing all cache items.",this.correlationId),yield this.browserStorage.clear(),yield this.browserCrypto.clearKeystore()}catch{this.logger.error("Attempted to clear all MSAL cache items and failed. Local cache unchanged.")}})}getRedirectUri(e){this.logger.verbose("getRedirectUri called");let t=e||this.config.auth.redirectUri||zf();return bs.getAbsoluteUrl(t,zf())}initializeServerTelemetryManager(e,t){this.logger.verbose("initializeServerTelemetryManager called");let i={clientId:this.config.auth.clientId,correlationId:this.correlationId,apiId:e,forceRefresh:t||!1,wrapperSKU:this.browserStorage.getWrapperMetadata()[0],wrapperVer:this.browserStorage.getWrapperMetadata()[1]};return new YO(i,this.browserStorage)}getDiscoveredAuthority(e,t,i){return ct(this,null,function*(){this.performanceClient.addQueueMeasurement(mt.StandardInteractionClientGetDiscoveredAuthority,this.correlationId);let r={protocolMode:this.config.auth.protocolMode,OIDCOptions:this.config.auth.OIDCOptions,knownAuthorities:this.config.auth.knownAuthorities,cloudDiscoveryMetadata:this.config.auth.cloudDiscoveryMetadata,authorityMetadata:this.config.auth.authorityMetadata,skipAuthorityMetadataCache:this.config.auth.skipAuthorityMetadataCache},o=e||this.config.auth.authority,s=g_.generateAuthority(o,t||this.config.auth.azureCloudOptions),c=yield wn(Bee.createDiscoveredInstance,mt.AuthorityFactoryCreateDiscoveredInstance,this.logger,this.performanceClient,this.correlationId)(s,this.config.system.networkClient,this.browserStorage,r,this.logger,this.correlationId,this.performanceClient);if(i&&!c.isAlias(i.environment))throw Zs(l0.authorityMismatch);return c})}};var T0t=32;function z5e(n,e,t){return ct(this,null,function*(){n.addQueueMeasurement(mt.GeneratePkceCodes,t);let i=zp(A0t,mt.GenerateCodeVerifier,e,n,t)(n,e,t),r=yield wn(D0t,mt.GenerateCodeChallengeFromVerifier,e,n,t)(i,n,e,t);return{verifier:i,challenge:r}})}function A0t(n,e,t){try{let i=new Uint8Array(T0t);return zp(v5e,mt.GetRandomValues,e,n,t)(i),WO(i)}catch{throw nr(qO)}}function D0t(n,e,t,i){return ct(this,null,function*(){e.addQueueMeasurement(mt.GenerateCodeChallengeFromVerifier,i);try{let r=yield wn(wwe,mt.Sha256Digest,t,e,i)(n,e,i);return WO(new Uint8Array(r))}catch{throw nr(qO)}})}function r8(n,e,t,i){return ct(this,null,function*(){t.addQueueMeasurement(mt.InitializeBaseRequest,n.correlationId);let r=n.authority||e.auth.authority,o=[...n&&n.scopes||[]],s=wt(Ce({},n),{correlationId:n.correlationId,authority:r,scopes:o});if(!s.authenticationScheme)s.authenticationScheme=Gs.BEARER,i.verbose(`Authentication Scheme wasn't explicitly set in request, defaulting to "Bearer" request`);else{if(s.authenticationScheme===Gs.SSH){if(!n.sshJwk)throw Zs(l0.missingSshJwk);if(!n.sshKid)throw Zs(l0.missingSshKid)}i.verbose(`Authentication Scheme set to "${s.authenticationScheme}" as configured in Auth request`)}return e.cache.claimsBasedCachingEnabled&&n.claims&&!Tc.isEmptyObj(n.claims)&&(s.requestedClaimsHash=yield ate(n.claims)),s})}function V5e(n,e,t,i,r){return ct(this,null,function*(){i.addQueueMeasurement(mt.InitializeSilentRequest,n.correlationId);let o=yield wn(r8,mt.InitializeBaseRequest,r,i,n.correlationId)(n,t,i,r);return wt(Ce(Ce({},n),o),{account:e,forceRefresh:n.forceRefresh||!1})})}var Uf=class extends xB{initializeAuthorizationCodeRequest(e){return ct(this,null,function*(){this.performanceClient.addQueueMeasurement(mt.StandardInteractionClientInitializeAuthorizationCodeRequest,this.correlationId);let t=yield wn(z5e,mt.GeneratePkceCodes,this.logger,this.performanceClient,this.correlationId)(this.performanceClient,this.logger,this.correlationId),i=wt(Ce({},e),{redirectUri:e.redirectUri,code:yi.EMPTY_STRING,codeVerifier:t.verifier});return e.codeChallenge=t.challenge,e.codeChallengeMethod=yi.S256_CODE_CHALLENGE_METHOD,i})}initializeLogoutRequest(e){this.logger.verbose("initializeLogoutRequest called",e?.correlationId);let t=Ce({correlationId:this.correlationId||jd()},e);if(e)if(e.logoutHint)this.logger.verbose("logoutHint has already been set in logoutRequest");else if(e.account){let i=this.getLogoutHintFromIdTokenClaims(e.account);i&&(this.logger.verbose("Setting logoutHint to login_hint ID Token Claim value for the account provided"),t.logoutHint=i)}else this.logger.verbose("logoutHint was not set and account was not passed into logout request, logoutHint will not be set");else this.logger.verbose("logoutHint will not be set since no logout request was configured");return!e||e.postLogoutRedirectUri!==null?e&&e.postLogoutRedirectUri?(this.logger.verbose("Setting postLogoutRedirectUri to uri set on logout request",t.correlationId),t.postLogoutRedirectUri=bs.getAbsoluteUrl(e.postLogoutRedirectUri,zf())):this.config.auth.postLogoutRedirectUri===null?this.logger.verbose("postLogoutRedirectUri configured as null and no uri set on request, not passing post logout redirect",t.correlationId):this.config.auth.postLogoutRedirectUri?(this.logger.verbose("Setting postLogoutRedirectUri to configured uri",t.correlationId),t.postLogoutRedirectUri=bs.getAbsoluteUrl(this.config.auth.postLogoutRedirectUri,zf())):(this.logger.verbose("Setting postLogoutRedirectUri to current page",t.correlationId),t.postLogoutRedirectUri=bs.getAbsoluteUrl(zf(),zf())):this.logger.verbose("postLogoutRedirectUri passed as null, not setting post logout redirect uri",t.correlationId),t}getLogoutHintFromIdTokenClaims(e){let t=e.idTokenClaims;if(t){if(t.login_hint)return t.login_hint;this.logger.verbose("The ID Token Claims tied to the provided account do not contain a login_hint claim, logoutHint will not be added to logout request")}else this.logger.verbose("The provided account does not contain ID Token Claims, logoutHint will not be added to logout request");return null}createAuthCodeClient(e,t,i,r){return ct(this,null,function*(){this.performanceClient.addQueueMeasurement(mt.StandardInteractionClientCreateAuthCodeClient,this.correlationId);let o=yield wn(this.getClientConfiguration.bind(this),mt.StandardInteractionClientGetClientConfiguration,this.logger,this.performanceClient,this.correlationId)(e,t,i,r);return new GO(o,this.performanceClient)})}getClientConfiguration(e,t,i,r){return ct(this,null,function*(){this.performanceClient.addQueueMeasurement(mt.StandardInteractionClientGetClientConfiguration,this.correlationId);let o=yield wn(this.getDiscoveredAuthority.bind(this),mt.StandardInteractionClientGetDiscoveredAuthority,this.logger,this.performanceClient,this.correlationId)(t,i,r),s=this.config.system.loggerOptions;return{authOptions:{clientId:this.config.auth.clientId,authority:o,clientCapabilities:this.config.auth.clientCapabilities},systemOptions:{tokenRenewalOffsetSeconds:this.config.system.tokenRenewalOffsetSeconds,preventCorsPreflight:!0},loggerOptions:{loggerCallback:s.loggerCallback,piiLoggingEnabled:s.piiLoggingEnabled,logLevel:s.logLevel,correlationId:this.correlationId},cacheOptions:{claimsBasedCachingEnabled:this.config.cache.claimsBasedCachingEnabled},cryptoInterface:this.browserCrypto,networkInterface:this.networkClient,storageInterface:this.browserStorage,serverTelemetryManager:e,libraryInfo:{sku:pd.MSAL_SKU,version:lT,cpu:yi.EMPTY_STRING,os:yi.EMPTY_STRING},telemetry:this.config.telemetry}})}initializeAuthorizationRequest(e,t){return ct(this,null,function*(){this.performanceClient.addQueueMeasurement(mt.StandardInteractionClientInitializeAuthorizationRequest,this.correlationId);let i=this.getRedirectUri(e.redirectUri),r={interactionType:t},o=hd.setRequestState(this.browserCrypto,e&&e.state||yi.EMPTY_STRING,r),s=yield wn(r8,mt.InitializeBaseRequest,this.logger,this.performanceClient,this.correlationId)(wt(Ce({},e),{correlationId:this.correlationId}),this.config,this.performanceClient,this.logger),c=wt(Ce({},s),{redirectUri:i,state:o,nonce:e.nonce||jd(),responseMode:this.config.auth.OIDCOptions.serverResponseType}),h=e.account||this.browserStorage.getActiveAccount();if(h&&(this.logger.verbose("Setting validated request account",this.correlationId),this.logger.verbosePii(`Setting validated request account: ${h.homeAccountId}`,this.correlationId),c.account=h),!c.loginHint&&!h){let g=this.browserStorage.getLegacyLoginHint();g&&(c.loginHint=g)}return c})}};var U5e="ContentError",wte="user_switch";var j5e="USER_INTERACTION_REQUIRED",H5e="USER_CANCEL",G5e="NO_NETWORK",Y5e="PERSISTENT_ERROR",q5e="DISABLED",$5e="ACCOUNT_UNAVAILABLE";var k0t=-2147186943,M0t={[wte]:"User attempted to switch accounts in the native broker, which is not allowed. All new accounts must sign-in through the standard web flow first, please try again."},y_=class n extends Os{constructor(e,t,i){super(e,t),Object.setPrototypeOf(this,n.prototype),this.name="NativeAuthError",this.ext=i}};function cT(n){if(n.ext&&n.ext.status&&(n.ext.status===Y5e||n.ext.status===q5e)||n.ext&&n.ext.error&&n.ext.error===k0t)return!0;switch(n.errorCode){case U5e:return!0;default:return!1}}function o8(n,e,t){if(t&&t.status)switch(t.status){case $5e:return UL(Vw.nativeAccountUnavailable);case j5e:return new vh(n,e);case H5e:return nr(Bf);case G5e:return nr(Uw)}return new y_(n,M0t[n]||e,t)}var wB=class extends Uf{acquireToken(e){return ct(this,null,function*(){this.performanceClient.addQueueMeasurement(mt.SilentCacheClientAcquireToken,e.correlationId);let t=this.initializeServerTelemetryManager(Ma.acquireTokenSilent_silentFlow),i=yield wn(this.getClientConfiguration.bind(this),mt.StandardInteractionClientGetClientConfiguration,this.logger,this.performanceClient,this.correlationId)(t,e.authority,e.azureCloudOptions,e.account),r=new KH(i,this.performanceClient);this.logger.verbose("Silent auth client created");try{let s=(yield wn(r.acquireCachedToken.bind(r),mt.SilentFlowClientAcquireCachedToken,this.logger,this.performanceClient,e.correlationId)(e))[0];return this.performanceClient.addFields({fromCache:!0},e.correlationId),s}catch(o){throw o instanceof KO&&o.errorCode===oT&&this.logger.verbose("Signing keypair for bound access token not found. Refreshing bound access token and generating a new crypto keypair."),o}})}logout(e){this.logger.verbose("logoutRedirect called");let t=this.initializeLogoutRequest(e);return this.clearCacheOnLogout(t?.account)}};var Iwe={BROKER_CLIENT_ID:"brk_client_id",BROKER_REDIRECT_URI:"brk_redirect_uri"},b_=class extends xB{constructor(e,t,i,r,o,s,c,h,g,x,C,A){super(e,t,i,r,o,s,h,g,A),this.apiId=c,this.accountId=x,this.nativeMessageHandler=g,this.nativeStorageManager=C,this.silentCacheClient=new wB(e,this.nativeStorageManager,i,r,o,s,h,g,A),this.serverTelemetryManager=this.initializeServerTelemetryManager(this.apiId);let k=this.nativeMessageHandler.getExtensionId()===aT.PREFERRED_EXTENSION_ID?"chrome":this.nativeMessageHandler.getExtensionId()?.length?"unknown":void 0;this.skus=YO.makeExtraSkuString({libraryName:pd.MSAL_SKU,libraryVersion:lT,extensionName:k,extensionVersion:this.nativeMessageHandler.getExtensionVersion()})}addRequestSKUs(e){e.extraParameters=wt(Ce({},e.extraParameters),{[FL.X_CLIENT_EXTRA_SKU]:this.skus})}acquireToken(e){return ct(this,null,function*(){this.performanceClient.addQueueMeasurement(mt.NativeInteractionClientAcquireToken,e.correlationId),this.logger.trace("NativeInteractionClient - acquireToken called.");let t=this.performanceClient.startMeasurement(mt.NativeInteractionClientAcquireToken,e.correlationId),i=VH.nowSeconds();try{let r=yield this.initializeNativeRequest(e);try{let g=yield this.acquireTokensFromCache(this.accountId,r);return t.end({success:!0,isNativeBroker:!1,fromCache:!0}),g}catch{this.logger.info("MSAL internal Cache does not contain tokens, proceed to make a native call")}let o=Bm(r,[]),s={method:Hw.GetToken,request:o},c=yield this.nativeMessageHandler.sendMessage(s),h=this.validateNativeResponse(c);return yield this.handleNativeResponse(h,r,i).then(g=>(t.end({success:!0,isNativeBroker:!0,requestId:g.requestId}),this.serverTelemetryManager.clearNativeBrokerErrorCode(),g)).catch(g=>{throw t.end({success:!1,errorCode:g.errorCode,subErrorCode:g.subError,isNativeBroker:!0}),g})}catch(r){throw r instanceof y_&&this.serverTelemetryManager.setNativeBrokerErrorCode(r.errorCode),r}})}createSilentCacheRequest(e,t){return{authority:e.authority,correlationId:this.correlationId,scopes:dc.fromString(e.scope).asArray(),account:t,forceRefresh:!1}}acquireTokensFromCache(e,t){return ct(this,null,function*(){if(!e)throw this.logger.warning("NativeInteractionClient:acquireTokensFromCache - No nativeAccountId provided"),Xi(ud.noAccountFound);let i=this.browserStorage.getBaseAccountInfo({nativeAccountId:e});if(!i)throw Xi(ud.noAccountFound);try{let r=this.createSilentCacheRequest(t,i),o=yield this.silentCacheClient.acquireToken(r),s=wt(Ce({},i),{idTokenClaims:o?.idTokenClaims,idToken:o?.idToken});return wt(Ce({},o),{account:s})}catch(r){throw r}})}acquireTokenRedirect(e,t){return ct(this,null,function*(){this.logger.trace("NativeInteractionClient - acquireTokenRedirect called.");let i=Bm(e,[]);delete i.onRedirectNavigate;let r=yield this.initializeNativeRequest(i),o={method:Hw.GetToken,request:r};try{let h=yield this.nativeMessageHandler.sendMessage(o);this.validateNativeResponse(h)}catch(h){if(h instanceof y_&&(this.serverTelemetryManager.setNativeBrokerErrorCode(h.errorCode),cT(h)))throw h}this.browserStorage.setTemporaryCache(ya.NATIVE_REQUEST,JSON.stringify(r),!0);let s={apiId:Ma.acquireTokenRedirect,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},c=this.config.auth.navigateToLoginRequestUrl?window.location.href:this.getRedirectUri(e.redirectUri);t.end({success:!0}),yield this.navigationClient.navigateExternal(c,s)})}handleRedirectPromise(e,t){return ct(this,null,function*(){if(this.logger.trace("NativeInteractionClient - handleRedirectPromise called."),!this.browserStorage.isInteractionInProgress(!0))return this.logger.info("handleRedirectPromise called but there is no interaction in progress, returning null."),null;let i=this.browserStorage.getCachedNativeRequest();if(!i)return this.logger.verbose("NativeInteractionClient - handleRedirectPromise called but there is no cached request, returning null."),e&&t&&e?.addFields({errorCode:"no_cached_request"},t),null;let h=i,{prompt:r}=h,o=Bm(h,["prompt"]);r&&this.logger.verbose("NativeInteractionClient - handleRedirectPromise called and prompt was included in the original request, removing prompt from cached request to prevent second interaction with native broker window."),this.browserStorage.removeItem(this.browserStorage.generateCacheKey(ya.NATIVE_REQUEST));let s={method:Hw.GetToken,request:o},c=VH.nowSeconds();try{this.logger.verbose("NativeInteractionClient - handleRedirectPromise sending message to native broker.");let g=yield this.nativeMessageHandler.sendMessage(s);this.validateNativeResponse(g);let x=this.handleNativeResponse(g,o,c);this.browserStorage.setInteractionInProgress(!1);let C=yield x;return this.serverTelemetryManager.clearNativeBrokerErrorCode(),C}catch(g){throw this.browserStorage.setInteractionInProgress(!1),g}})}logout(){return this.logger.trace("NativeInteractionClient - logout called."),Promise.reject("Logout not implemented yet")}handleNativeResponse(e,t,i){return ct(this,null,function*(){this.logger.trace("NativeInteractionClient - handleNativeResponse called.");let r=qI.extractTokenClaims(e.id_token,Vf),o=this.createHomeAccountIdentifier(e,r),s=this.browserStorage.getAccountInfoFilteredBy({nativeAccountId:t.accountId})?.homeAccountId;if(o!==s&&e.account.id!==t.accountId)throw o8(wte);let c=yield this.getDiscoveredAuthority(t.authority),h=jL(this.browserStorage,c,o,Vf,r,e.client_info,void 0,r.tid,void 0,e.account.id,this.logger),g=yield this.generateAuthenticationResult(e,t,r,h,c.canonicalAuthority,i);return this.cacheAccount(h),this.cacheNativeTokens(e,t,o,r,e.access_token,g.tenantId,i),g})}createHomeAccountIdentifier(e,t){return zl.generateHomeAccountId(e.client_info||yi.EMPTY_STRING,Bp.Default,this.logger,this.browserCrypto,t)}generateScopes(e,t){return e.scope?dc.fromString(e.scope):dc.fromString(t.scope)}generatePopAccessToken(e,t){return ct(this,null,function*(){if(t.tokenType===Gs.POP&&t.signPopToken){if(e.shr)return this.logger.trace("handleNativeServerResponse: SHR is enabled in native layer"),e.shr;let i=new Km(this.browserCrypto),r={resourceRequestMethod:t.resourceRequestMethod,resourceRequestUri:t.resourceRequestUri,shrClaims:t.shrClaims,shrNonce:t.shrNonce};if(!t.keyId)throw Xi(ud.keyIdMissing);return i.signPopToken(e.access_token,t.keyId,r)}else return e.access_token})}generateAuthenticationResult(e,t,i,r,o,s){return ct(this,null,function*(){let c=this.addTelemetryFromNativeResponse(e),h=e.scope?dc.fromString(e.scope):dc.fromString(t.scope),g=e.account.properties||{},x=g.UID||i.oid||i.sub||yi.EMPTY_STRING,C=g.TenantId||i.tid||yi.EMPTY_STRING,A=HO(r.getAccountInfo(),void 0,i,e.id_token);A.nativeAccountId!==e.account.id&&(A.nativeAccountId=e.account.id);let k=yield this.generatePopAccessToken(e,t),O=t.tokenType===Gs.POP?Gs.POP:Gs.BEARER;return{authority:o,uniqueId:x,tenantId:C,scopes:h.asArray(),account:A,idToken:e.id_token,idTokenClaims:i,accessToken:k,fromCache:c?this.isResponseFromCache(c):!1,expiresOn:new Date(Number(s+e.expires_in)*1e3),tokenType:O,correlationId:this.correlationId,state:e.state,fromNativeBroker:!0}})}cacheAccount(e){this.browserStorage.setAccount(e),this.browserStorage.removeAccountContext(e).catch(t=>{this.logger.error(`Error occurred while removing account context from browser storage. ${t}`)})}cacheNativeTokens(e,t,i,r,o,s,c){let h=Bl.createIdTokenEntity(i,t.authority,e.id_token||"",t.clientId,r.tid||""),g=t.tokenType===Gs.POP?yi.SHR_NONCE_VALIDITY:(typeof e.expires_in=="string"?parseInt(e.expires_in,10):e.expires_in)||0,x=c+g,C=this.generateScopes(e,t),A=Bl.createAccessTokenEntity(i,t.authority,o,t.clientId,r.tid||s,C.printScopes(),x,0,Vf,void 0,t.tokenType,void 0,t.keyId),k={idToken:h,accessToken:A};this.nativeStorageManager.saveCacheRecord(k,t.storeInCache)}addTelemetryFromNativeResponse(e){let t=this.getMATSFromResponse(e);return t?(this.performanceClient.addFields({extensionId:this.nativeMessageHandler.getExtensionId(),extensionVersion:this.nativeMessageHandler.getExtensionVersion(),matsBrokerVersion:t.broker_version,matsAccountJoinOnStart:t.account_join_on_start,matsAccountJoinOnEnd:t.account_join_on_end,matsDeviceJoin:t.device_join,matsPromptBehavior:t.prompt_behavior,matsApiErrorCode:t.api_error_code,matsUiVisible:t.ui_visible,matsSilentCode:t.silent_code,matsSilentBiSubCode:t.silent_bi_sub_code,matsSilentMessage:t.silent_message,matsSilentStatus:t.silent_status,matsHttpStatus:t.http_status,matsHttpEventCount:t.http_event_count},this.correlationId),t):null}validateNativeResponse(e){if(e.hasOwnProperty("access_token")&&e.hasOwnProperty("id_token")&&e.hasOwnProperty("client_info")&&e.hasOwnProperty("account")&&e.hasOwnProperty("scope")&&e.hasOwnProperty("expires_in"))return e;throw mH(pO.unexpectedError,"Response missing expected properties.")}getMATSFromResponse(e){if(e.properties.MATS)try{return JSON.parse(e.properties.MATS)}catch{this.logger.error("NativeInteractionClient - Error parsing MATS telemetry, returning null instead")}return null}isResponseFromCache(e){return typeof e.is_cached>"u"?(this.logger.verbose("NativeInteractionClient - MATS telemetry does not contain field indicating if response was served from cache. Returning false."),!1):!!e.is_cached}initializeNativeRequest(e){return ct(this,null,function*(){this.logger.trace("NativeInteractionClient - initializeNativeRequest called");let t=e.authority||this.config.auth.authority;e.account&&(yield this.getDiscoveredAuthority(t,e.azureCloudOptions,e.account));let i=new bs(t);i.validateAsUri();let g=e,{scopes:r}=g,o=Bm(g,["scopes"]),s=new dc(r||[]);s.appendScopes(qm);let c=()=>{switch(this.apiId){case Ma.ssoSilent:case Ma.acquireTokenSilent_silentFlow:return this.logger.trace("initializeNativeRequest: silent request sets prompt to none"),uc.NONE}if(!e.prompt){this.logger.trace("initializeNativeRequest: prompt was not provided");return}switch(e.prompt){case uc.NONE:case uc.CONSENT:case uc.LOGIN:return this.logger.trace("initializeNativeRequest: prompt is compatible with native flow"),e.prompt;default:throw this.logger.trace(`initializeNativeRequest: prompt = ${e.prompt} is not compatible with native flow`),nr(mB)}},h=wt(Ce({},o),{accountId:this.accountId,clientId:this.config.auth.clientId,authority:i.urlString,scope:s.printScopes(),redirectUri:this.getRedirectUri(e.redirectUri),prompt:c(),correlationId:this.correlationId,tokenType:e.authenticationScheme,windowTitleSubstring:document.title,extraParameters:Ce(Ce({},e.extraQueryParameters),e.tokenQueryParameters),extendedExpiryToken:!1,keyId:e.popKid});if(h.signPopToken&&e.popKid)throw nr(_B);if(this.handleExtraBrokerParams(h),h.extraParameters=h.extraParameters||{},h.extraParameters.telemetry=aT.MATS_TELEMETRY,e.authenticationScheme===Gs.POP){let x={resourceRequestUri:e.resourceRequestUri,resourceRequestMethod:e.resourceRequestMethod,shrClaims:e.shrClaims,shrNonce:e.shrNonce},C=new Km(this.browserCrypto),A;if(h.keyId)A=this.browserCrypto.base64UrlEncode(JSON.stringify({kid:h.keyId})),h.signPopToken=!1;else{let k=yield wn(C.generateCnf.bind(C),mt.PopTokenGenerateCnf,this.logger,this.performanceClient,e.correlationId)(x,this.logger);A=k.reqCnfString,h.keyId=k.kid,h.signPopToken=!0}h.reqCnf=A}return this.addRequestSKUs(h),h})}handleExtraBrokerParams(e){if(e.extraParameters&&e.extraParameters.hasOwnProperty(Iwe.BROKER_CLIENT_ID)&&e.extraParameters.hasOwnProperty(Iwe.BROKER_REDIRECT_URI)&&e.extraParameters.hasOwnProperty(FL.CLIENT_ID)){let t=e.extraParameters[FL.CLIENT_ID],i=e.redirectUri,r=e.extraParameters[Iwe.BROKER_REDIRECT_URI];e.extraParameters={child_client_id:t,child_redirect_uri:i},e.redirectUri=r}}};var Wm=class n{constructor(e,t,i,r){this.logger=e,this.handshakeTimeoutMs=t,this.extensionId=r,this.resolvers=new Map,this.handshakeResolvers=new Map,this.messageChannel=new MessageChannel,this.windowListener=this.onWindowMessage.bind(this),this.performanceClient=i,this.handshakeEvent=i.startMeasurement(mt.NativeMessageHandlerHandshake)}sendMessage(e){return ct(this,null,function*(){this.logger.trace("NativeMessageHandler - sendMessage called.");let t={channel:aT.CHANNEL_ID,extensionId:this.extensionId,responseId:jd(),body:e};return this.logger.trace("NativeMessageHandler - Sending request to browser extension"),this.logger.tracePii(`NativeMessageHandler - Sending request to browser extension: ${JSON.stringify(t)}`),this.messageChannel.port1.postMessage(t),new Promise((i,r)=>{this.resolvers.set(t.responseId,{resolve:i,reject:r})})})}static createProvider(e,t,i){return ct(this,null,function*(){e.trace("NativeMessageHandler - createProvider called.");try{let r=new n(e,t,i,aT.PREFERRED_EXTENSION_ID);return yield r.sendHandshakeRequest(),r}catch{let o=new n(e,t,i);return yield o.sendHandshakeRequest(),o}})}sendHandshakeRequest(){return ct(this,null,function*(){this.logger.trace("NativeMessageHandler - sendHandshakeRequest called."),window.addEventListener("message",this.windowListener,!1);let e={channel:aT.CHANNEL_ID,extensionId:this.extensionId,responseId:jd(),body:{method:Hw.HandshakeRequest}};return this.handshakeEvent.add({extensionId:this.extensionId,extensionHandshakeTimeoutMs:this.handshakeTimeoutMs}),this.messageChannel.port1.onmessage=t=>{this.onChannelMessage(t)},window.postMessage(e,window.origin,[this.messageChannel.port2]),new Promise((t,i)=>{this.handshakeResolvers.set(e.responseId,{resolve:t,reject:i}),this.timeoutId=window.setTimeout(()=>{window.removeEventListener("message",this.windowListener,!1),this.messageChannel.port1.close(),this.messageChannel.port2.close(),this.handshakeEvent.end({extensionHandshakeTimedOut:!0,success:!1}),i(nr(hB)),this.handshakeResolvers.delete(e.responseId)},this.handshakeTimeoutMs)})})}onWindowMessage(e){if(this.logger.trace("NativeMessageHandler - onWindowMessage called"),e.source!==window)return;let t=e.data;if(!(!t.channel||t.channel!==aT.CHANNEL_ID)&&!(t.extensionId&&t.extensionId!==this.extensionId)&&t.body.method===Hw.HandshakeRequest){let i=this.handshakeResolvers.get(t.responseId);if(!i){this.logger.trace(`NativeMessageHandler.onWindowMessage - resolver can't be found for request ${t.responseId}`);return}this.logger.verbose(t.extensionId?`Extension with id: ${t.extensionId} not installed`:"No extension installed"),clearTimeout(this.timeoutId),this.messageChannel.port1.close(),this.messageChannel.port2.close(),window.removeEventListener("message",this.windowListener,!1),this.handshakeEvent.end({success:!1,extensionInstalled:!1}),i.reject(nr(pB))}}onChannelMessage(e){this.logger.trace("NativeMessageHandler - onChannelMessage called.");let t=e.data,i=this.resolvers.get(t.responseId),r=this.handshakeResolvers.get(t.responseId);try{let o=t.body.method;if(o===Hw.Response){if(!i)return;let s=t.body.response;if(this.logger.trace("NativeMessageHandler - Received response from browser extension"),this.logger.tracePii(`NativeMessageHandler - Received response from browser extension: ${JSON.stringify(s)}`),s.status!=="Success")i.reject(o8(s.code,s.description,s.ext));else if(s.result)s.result.code&&s.result.description?i.reject(o8(s.result.code,s.result.description,s.result.ext)):i.resolve(s.result);else throw mH(pO.unexpectedError,"Event does not contain result.");this.resolvers.delete(t.responseId)}else if(o===Hw.HandshakeResponse){if(!r){this.logger.trace(`NativeMessageHandler.onChannelMessage - resolver can't be found for request ${t.responseId}`);return}clearTimeout(this.timeoutId),window.removeEventListener("message",this.windowListener,!1),this.extensionId=t.extensionId,this.extensionVersion=t.body.version,this.logger.verbose(`NativeMessageHandler - Received HandshakeResponse from extension: ${this.extensionId}`),this.handshakeEvent.end({extensionInstalled:!0,success:!0}),r.resolve(),this.handshakeResolvers.delete(t.responseId)}}catch(o){this.logger.error("Error parsing response from WAM Extension"),this.logger.errorPii(`Error parsing response from WAM Extension: ${o}`),this.logger.errorPii(`Unable to parse ${e}`),i?i.reject(o):r&&r.reject(o)}}getExtensionId(){return this.extensionId}getExtensionVersion(){return this.extensionVersion}static isNativeAvailable(e,t,i,r){if(t.trace("isNativeAvailable called"),!e.system.allowNativeBroker)return t.trace("isNativeAvailable: allowNativeBroker is not enabled, returning false"),!1;if(!i)return t.trace("isNativeAvailable: WAM extension provider is not initialized, returning false"),!1;if(r)switch(r){case Gs.BEARER:case Gs.POP:return t.trace("isNativeAvailable: authenticationScheme is supported, returning true"),!0;default:return t.trace("isNativeAvailable: authenticationScheme is not supported, returning false"),!1}return!0}};var uT=class{constructor(e,t,i,r,o){this.authModule=e,this.browserStorage=t,this.authCodeRequest=i,this.logger=r,this.performanceClient=o}handleCodeResponse(e,t){return ct(this,null,function*(){this.performanceClient.addQueueMeasurement(mt.HandleCodeResponse,t.correlationId);let i;try{i=this.authModule.handleFragmentResponse(e,t.state)}catch(r){throw r instanceof Vp&&r.subError===Bf?nr(Bf):r}return wn(this.handleCodeResponseFromServer.bind(this),mt.HandleCodeResponseFromServer,this.logger,this.performanceClient,t.correlationId)(i,t)})}handleCodeResponseFromServer(e,t,i=!0){return ct(this,null,function*(){if(this.performanceClient.addQueueMeasurement(mt.HandleCodeResponseFromServer,t.correlationId),this.logger.trace("InteractionHandler.handleCodeResponseFromServer called"),this.authCodeRequest.code=e.code,e.cloud_instance_host_name&&(yield wn(this.authModule.updateAuthority.bind(this.authModule),mt.UpdateTokenEndpointAuthority,this.logger,this.performanceClient,t.correlationId)(e.cloud_instance_host_name,t.correlationId)),i&&(e.nonce=t.nonce||void 0),e.state=t.state,e.client_info)this.authCodeRequest.clientInfo=e.client_info;else{let o=this.createCcsCredentials(t);o&&(this.authCodeRequest.ccsCredential=o)}return yield wn(this.authModule.acquireToken.bind(this.authModule),mt.AuthClientAcquireToken,this.logger,this.performanceClient,t.correlationId)(this.authCodeRequest,e)})}createCcsCredentials(e){return e.account?{credential:e.account.homeAccountId,type:dd.HOME_ACCOUNT_ID}:e.loginHint?{credential:e.loginHint,type:dd.UPN}:null}};function Cte(n,e,t){let i=KI.getDeserializedResponse(n);if(!i)throw KI.stripLeadingHashOrQuery(n)?(t.error(`A ${e} is present in the iframe but it does not contain known properties. It's likely that the ${e} has been replaced by code running on the redirectUri page.`),t.errorPii(`The ${e} detected is: ${n}`),nr(qL)):(t.error(`The request has returned to the redirectUri but a ${e} is not present. It's likely that the ${e} has been removed or the page has been redirected by code running on the redirectUri page.`),nr(YL));return i}function K5e(n,e,t){if(!n.state)throw nr(iT);let i=bte(e,n.state);if(!i)throw nr($L);if(i.interactionType!==t)throw nr(KL)}var Ste=class extends Uf{constructor(e,t,i,r,o,s,c,h,g,x){super(e,t,i,r,o,s,c,g,x),this.unloadWindow=this.unloadWindow.bind(this),this.nativeStorage=h}acquireToken(e){try{let t=this.generatePopupName(e.scopes||qm,e.authority||this.config.auth.authority),i=e.popupWindowAttributes||{};if(this.config.system.asyncPopups)return this.logger.verbose("asyncPopups set to true, acquiring token"),this.acquireTokenPopupAsync(e,t,i);{this.logger.verbose("asyncPopup set to false, opening popup before acquiring token");let r=this.openSizedPopup("about:blank",t,i);return this.acquireTokenPopupAsync(e,t,i,r)}}catch(t){return Promise.reject(t)}}logout(e){try{this.logger.verbose("logoutPopup called");let t=this.initializeLogoutRequest(e),i=this.generateLogoutPopupName(t),r=e&&e.authority,o=e&&e.mainWindowRedirectUri,s=e?.popupWindowAttributes||{};if(this.config.system.asyncPopups)return this.logger.verbose("asyncPopups set to true"),this.logoutPopupAsync(t,i,s,r,void 0,o);{this.logger.verbose("asyncPopup set to false, opening popup");let c=this.openSizedPopup("about:blank",i,s);return this.logoutPopupAsync(t,i,s,r,c,o)}}catch(t){return Promise.reject(t)}}acquireTokenPopupAsync(e,t,i,r){return ct(this,null,function*(){this.logger.verbose("acquireTokenPopupAsync called");let o=this.initializeServerTelemetryManager(Ma.acquireTokenPopup),s=yield wn(this.initializeAuthorizationRequest.bind(this),mt.StandardInteractionClientInitializeAuthorizationRequest,this.logger,this.performanceClient,this.correlationId)(e,pr.Popup);t8(s.authority);try{let c=yield wn(this.initializeAuthorizationCodeRequest.bind(this),mt.StandardInteractionClientInitializeAuthorizationCodeRequest,this.logger,this.performanceClient,this.correlationId)(s),h=yield wn(this.createAuthCodeClient.bind(this),mt.StandardInteractionClientCreateAuthCodeClient,this.logger,this.performanceClient,this.correlationId)(o,s.authority,s.azureCloudOptions,s.account),g=Wm.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,e.authenticationScheme),x;g&&(x=this.performanceClient.startMeasurement(mt.FetchAccountIdWithNativeBroker,e.correlationId));let C=yield h.getAuthCodeUrl(wt(Ce({},s),{nativeBroker:g})),A=new uT(h,this.browserStorage,c,this.logger,this.performanceClient),k={popup:r,popupName:t,popupWindowAttributes:i},O=this.initiateAuthRequest(C,k);this.eventHandler.emitEvent(fr.POPUP_OPENED,pr.Popup,{popupWindow:O},null);let F=yield this.monitorPopupForHash(O),L=zp(Cte,mt.DeserializeResponse,this.logger,this.performanceClient,this.correlationId)(F,this.config.auth.OIDCOptions.serverResponseType,this.logger);if(Mb.removeThrottle(this.browserStorage,this.config.auth.clientId,c),L.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),x&&x.end({success:!0,isNativeBroker:!0}),!this.nativeMessageHandler)throw nr(v_);let j=new b_(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,Ma.acquireTokenPopup,this.performanceClient,this.nativeMessageHandler,L.accountId,this.nativeStorage,s.correlationId),{userRequestState:K}=hd.parseRequestState(this.browserCrypto,s.state);return yield j.acquireToken(wt(Ce({},s),{state:K,prompt:void 0}))}return yield A.handleCodeResponse(L,s)}catch(c){throw r&&r.close(),c instanceof Os&&(c.setCorrelationId(this.correlationId),o.cacheFailedRequest(c)),c}})}logoutPopupAsync(e,t,i,r,o,s){return ct(this,null,function*(){this.logger.verbose("logoutPopupAsync called"),this.eventHandler.emitEvent(fr.LOGOUT_START,pr.Popup,e);let c=this.initializeServerTelemetryManager(Ma.logoutPopup);try{yield this.clearCacheOnLogout(e.account);let h=yield wn(this.createAuthCodeClient.bind(this),mt.StandardInteractionClientCreateAuthCodeClient,this.logger,this.performanceClient,this.correlationId)(c,r,void 0,e.account||void 0);try{h.authority.endSessionEndpoint}catch{if(e.account?.homeAccountId&&e.postLogoutRedirectUri&&h.authority.protocolMode===_h.OIDC){if(this.browserStorage.removeAccount(e.account?.homeAccountId),this.eventHandler.emitEvent(fr.LOGOUT_SUCCESS,pr.Popup,e),s){let C={apiId:Ma.logoutPopup,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},A=bs.getAbsoluteUrl(s,zf());yield this.navigationClient.navigateInternal(A,C)}o&&o.close();return}}let g=h.getLogoutUri(e);this.eventHandler.emitEvent(fr.LOGOUT_SUCCESS,pr.Popup,e);let x=this.openPopup(g,{popupName:t,popupWindowAttributes:i,popup:o});if(this.eventHandler.emitEvent(fr.POPUP_OPENED,pr.Popup,{popupWindow:x},null),yield this.monitorPopupForHash(x).catch(()=>{}),s){let C={apiId:Ma.logoutPopup,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},A=bs.getAbsoluteUrl(s,zf());this.logger.verbose("Redirecting main window to url specified in the request"),this.logger.verbosePii(`Redirecting main window to: ${A}`),yield this.navigationClient.navigateInternal(A,C)}else this.logger.verbose("No main window navigation requested")}catch(h){throw o&&o.close(),h instanceof Os&&(h.setCorrelationId(this.correlationId),c.cacheFailedRequest(h)),this.browserStorage.setInteractionInProgress(!1),this.eventHandler.emitEvent(fr.LOGOUT_FAILURE,pr.Popup,null,h),this.eventHandler.emitEvent(fr.LOGOUT_END,pr.Popup),h}this.eventHandler.emitEvent(fr.LOGOUT_END,pr.Popup)})}initiateAuthRequest(e,t){if(e)return this.logger.infoPii(`Navigate to: ${e}`),this.openPopup(e,t);throw this.logger.error("Navigate url is empty"),nr(Pb)}monitorPopupForHash(e){return new Promise((t,i)=>{this.logger.verbose("PopupHandler.monitorPopupForHash - polling started");let r=setInterval(()=>{if(e.closed){this.logger.error("PopupHandler.monitorPopupForHash - window closed"),clearInterval(r),i(nr(Bf));return}let o="";try{o=e.location.href}catch{}if(!o||o==="about:blank")return;clearInterval(r);let s="",c=this.config.auth.OIDCOptions.serverResponseType;e&&(c===o0.QUERY?s=e.location.search:s=e.location.hash),this.logger.verbose("PopupHandler.monitorPopupForHash - popup window is on same origin as caller"),t(s)},this.config.system.pollIntervalMilliseconds)}).finally(()=>{this.cleanPopup(e)})}openPopup(e,t){try{let i;if(t.popup?(i=t.popup,this.logger.verbosePii(`Navigating popup window to: ${e}`),i.location.assign(e)):typeof t.popup>"u"&&(this.logger.verbosePii(`Opening popup window to: ${e}`),i=this.openSizedPopup(e,t.popupName,t.popupWindowAttributes)),!i)throw nr(QL);return i.focus&&i.focus(),this.currentWindow=i,window.addEventListener("beforeunload",this.unloadWindow),i}catch(i){throw this.logger.error("error opening popup "+i.message),this.browserStorage.setInteractionInProgress(!1),nr(ZL)}}openSizedPopup(e,t,i){let r=window.screenLeft?window.screenLeft:window.screenX,o=window.screenTop?window.screenTop:window.screenY,s=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,c=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,h=i.popupSize?.width,g=i.popupSize?.height,x=i.popupPosition?.top,C=i.popupPosition?.left;return(!h||h<0||h>s)&&(this.logger.verbose("Default popup window width used. Window width not configured or invalid."),h=pd.POPUP_WIDTH),(!g||g<0||g>c)&&(this.logger.verbose("Default popup window height used. Window height not configured or invalid."),g=pd.POPUP_HEIGHT),(!x||x<0||x>c)&&(this.logger.verbose("Default popup window top position used. Window top not configured or invalid."),x=Math.max(0,c/2-pd.POPUP_HEIGHT/2+o)),(!C||C<0||C>s)&&(this.logger.verbose("Default popup window left position used. Window left not configured or invalid."),C=Math.max(0,s/2-pd.POPUP_WIDTH/2+r)),window.open(e,t,`width=${h}, height=${g}, top=${x}, left=${C}, scrollbars=yes`)}unloadWindow(e){this.browserStorage.cleanRequestByInteractionType(pr.Popup),this.currentWindow&&this.currentWindow.close(),e.preventDefault()}cleanPopup(e){e&&e.close(),window.removeEventListener("beforeunload",this.unloadWindow),this.browserStorage.setInteractionInProgress(!1)}generatePopupName(e,t){return`${pd.POPUP_NAME_PREFIX}.${this.config.auth.clientId}.${e.join("-")}.${t}.${this.correlationId}`}generateLogoutPopupName(e){let t=e.account&&e.account.homeAccountId;return`${pd.POPUP_NAME_PREFIX}.${this.config.auth.clientId}.${t}.${this.correlationId}`}};var s8=class{constructor(e,t,i,r,o){this.authModule=e,this.browserStorage=t,this.authCodeRequest=i,this.logger=r,this.performanceClient=o}initiateAuthRequest(e,t){return ct(this,null,function*(){if(this.logger.verbose("RedirectHandler.initiateAuthRequest called"),e){t.redirectStartPage&&(this.logger.verbose("RedirectHandler.initiateAuthRequest: redirectStartPage set, caching start page"),this.browserStorage.setTemporaryCache(ya.ORIGIN_URI,t.redirectStartPage,!0)),this.browserStorage.setTemporaryCache(ya.CORRELATION_ID,this.authCodeRequest.correlationId,!0),this.browserStorage.cacheCodeRequest(this.authCodeRequest),this.logger.infoPii(`RedirectHandler.initiateAuthRequest: Navigate to: ${e}`);let i={apiId:Ma.acquireTokenRedirect,timeout:t.redirectTimeout,noHistory:!1};if(typeof t.onRedirectNavigate=="function")if(this.logger.verbose("RedirectHandler.initiateAuthRequest: Invoking onRedirectNavigate callback"),t.onRedirectNavigate(e)!==!1){this.logger.verbose("RedirectHandler.initiateAuthRequest: onRedirectNavigate did not return false, navigating"),yield t.navigationClient.navigateExternal(e,i);return}else{this.logger.verbose("RedirectHandler.initiateAuthRequest: onRedirectNavigate returned false, stopping navigation");return}else{this.logger.verbose("RedirectHandler.initiateAuthRequest: Navigating window to navigate url"),yield t.navigationClient.navigateExternal(e,i);return}}else throw this.logger.info("RedirectHandler.initiateAuthRequest: Navigate url is empty"),nr(Pb)})}handleCodeResponse(e,t){return ct(this,null,function*(){this.logger.verbose("RedirectHandler.handleCodeResponse called"),this.browserStorage.setInteractionInProgress(!1);let i=this.browserStorage.generateStateKey(t),r=this.browserStorage.getTemporaryCache(i);if(!r)throw Xi(ud.stateNotFound,"Cached State");let o;try{o=this.authModule.handleFragmentResponse(e,r)}catch(g){throw g instanceof Vp&&g.subError===Bf?nr(Bf):g}let s=this.browserStorage.generateNonceKey(r),c=this.browserStorage.getTemporaryCache(s);if(this.authCodeRequest.code=o.code,o.cloud_instance_host_name&&(yield wn(this.authModule.updateAuthority.bind(this.authModule),mt.UpdateTokenEndpointAuthority,this.logger,this.performanceClient,this.authCodeRequest.correlationId)(o.cloud_instance_host_name,this.authCodeRequest.correlationId)),o.nonce=c||void 0,o.state=r,o.client_info)this.authCodeRequest.clientInfo=o.client_info;else{let g=this.checkCcsCredentials();g&&(this.authCodeRequest.ccsCredential=g)}let h=yield this.authModule.acquireToken(this.authCodeRequest,o);return this.browserStorage.cleanRequestByState(t),h})}checkCcsCredentials(){let e=this.browserStorage.getTemporaryCache(ya.CCS_CREDENTIAL,!0);if(e)try{return JSON.parse(e)}catch{this.authModule.logger.error("Cache credential could not be parsed"),this.authModule.logger.errorPii(`Cache credential could not be parsed: ${e}`)}return null}};var Ete=class extends Uf{constructor(e,t,i,r,o,s,c,h,g,x){super(e,t,i,r,o,s,c,g,x),this.nativeStorage=h}acquireToken(e){return ct(this,null,function*(){let t=yield wn(this.initializeAuthorizationRequest.bind(this),mt.StandardInteractionClientInitializeAuthorizationRequest,this.logger,this.performanceClient,this.correlationId)(e,pr.Redirect);this.browserStorage.updateCacheEntries(t.state,t.nonce,t.authority,t.loginHint||"",t.account||null);let i=this.initializeServerTelemetryManager(Ma.acquireTokenRedirect),r=o=>{o.persisted&&(this.logger.verbose("Page was restored from back/forward cache. Clearing temporary cache."),this.browserStorage.cleanRequestByState(t.state),this.eventHandler.emitEvent(fr.RESTORE_FROM_BFCACHE,pr.Redirect))};try{let o=yield wn(this.initializeAuthorizationCodeRequest.bind(this),mt.StandardInteractionClientInitializeAuthorizationCodeRequest,this.logger,this.performanceClient,this.correlationId)(t),s=yield wn(this.createAuthCodeClient.bind(this),mt.StandardInteractionClientCreateAuthCodeClient,this.logger,this.performanceClient,this.correlationId)(i,t.authority,t.azureCloudOptions,t.account),c=new s8(s,this.browserStorage,o,this.logger,this.performanceClient),h=yield s.getAuthCodeUrl(wt(Ce({},t),{nativeBroker:Wm.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,e.authenticationScheme)})),g=this.getRedirectStartPage(e.redirectStartPage);return this.logger.verbosePii(`Redirect start page: ${g}`),window.addEventListener("pageshow",r),yield c.initiateAuthRequest(h,{navigationClient:this.navigationClient,redirectTimeout:this.config.system.redirectNavigationTimeout,redirectStartPage:g,onRedirectNavigate:e.onRedirectNavigate})}catch(o){throw o instanceof Os&&(o.setCorrelationId(this.correlationId),i.cacheFailedRequest(o)),window.removeEventListener("pageshow",r),this.browserStorage.cleanRequestByState(t.state),o}})}handleRedirectPromise(e="",t){return ct(this,null,function*(){let i=this.initializeServerTelemetryManager(Ma.handleRedirectPromise);try{if(!this.browserStorage.isInteractionInProgress(!0))return this.logger.info("handleRedirectPromise called but there is no interaction in progress, returning null."),null;let[r,o]=this.getRedirectResponse(e||"");if(!r)return this.logger.info("handleRedirectPromise did not detect a response as a result of a redirect. Cleaning temporary cache."),this.browserStorage.cleanRequestByInteractionType(pr.Redirect),t.event.errorCode="no_server_response",null;let s=this.browserStorage.getTemporaryCache(ya.ORIGIN_URI,!0)||yi.EMPTY_STRING,c=bs.removeHashFromUrl(s),h=bs.removeHashFromUrl(window.location.href);if(c===h&&this.config.auth.navigateToLoginRequestUrl)return this.logger.verbose("Current page is loginRequestUrl, handling response"),s.indexOf("#")>-1&&Swe(s),yield this.handleResponse(r,i);if(this.config.auth.navigateToLoginRequestUrl){if(!JH()||this.config.system.allowRedirectInIframe){this.browserStorage.setTemporaryCache(ya.URL_HASH,o,!0);let g={apiId:Ma.handleRedirectPromise,timeout:this.config.system.redirectNavigationTimeout,noHistory:!0},x=!0;if(!s||s==="null"){let C=Ewe();this.browserStorage.setTemporaryCache(ya.ORIGIN_URI,C,!0),this.logger.warning("Unable to get valid login request url from cache, redirecting to home page"),x=yield this.navigationClient.navigateInternal(C,g)}else this.logger.verbose(`Navigating to loginRequestUrl: ${s}`),x=yield this.navigationClient.navigateInternal(s,g);if(!x)return yield this.handleResponse(r,i)}}else return this.logger.verbose("NavigateToLoginRequestUrl set to false, handling response"),yield this.handleResponse(r,i);return null}catch(r){throw r instanceof Os&&(r.setCorrelationId(this.correlationId),i.cacheFailedRequest(r)),this.browserStorage.cleanRequestByInteractionType(pr.Redirect),r}})}getRedirectResponse(e){this.logger.verbose("getRedirectResponseHash called");let t=e;t||(this.config.auth.OIDCOptions.serverResponseType===o0.QUERY?t=window.location.search:t=window.location.hash);let i=KI.getDeserializedResponse(t);if(i){try{K5e(i,this.browserCrypto,pr.Redirect)}catch(o){return o instanceof Os&&this.logger.error(`Interaction type validation failed due to ${o.errorCode}: ${o.errorMessage}`),[null,""]}return Cwe(window),this.logger.verbose("Hash contains known properties, returning response hash"),[i,t]}let r=this.browserStorage.getTemporaryCache(ya.URL_HASH,!0);return this.browserStorage.removeItem(this.browserStorage.generateCacheKey(ya.URL_HASH)),r&&(i=KI.getDeserializedResponse(r),i)?(this.logger.verbose("Hash does not contain known properties, returning cached hash"),[i,r]):[null,""]}handleResponse(e,t){return ct(this,null,function*(){let i=e.state;if(!i)throw nr(iT);let r=this.browserStorage.getCachedRequest(i);if(this.logger.verbose("handleResponse called, retrieved cached request"),e.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),!this.nativeMessageHandler)throw nr(v_);let h=new b_(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,Ma.acquireTokenPopup,this.performanceClient,this.nativeMessageHandler,e.accountId,this.nativeStorage,r.correlationId),{userRequestState:g}=hd.parseRequestState(this.browserCrypto,i);return h.acquireToken(wt(Ce({},r),{state:g,prompt:void 0})).finally(()=>{this.browserStorage.cleanRequestByState(i)})}let o=this.browserStorage.getCachedAuthority(i);if(!o)throw nr(nT);let s=yield wn(this.createAuthCodeClient.bind(this),mt.StandardInteractionClientCreateAuthCodeClient,this.logger,this.performanceClient,this.correlationId)(t,o);return Mb.removeThrottle(this.browserStorage,this.config.auth.clientId,r),new s8(s,this.browserStorage,r,this.logger,this.performanceClient).handleCodeResponse(e,i)})}logout(e){return ct(this,null,function*(){this.logger.verbose("logoutRedirect called");let t=this.initializeLogoutRequest(e),i=this.initializeServerTelemetryManager(Ma.logout);try{this.eventHandler.emitEvent(fr.LOGOUT_START,pr.Redirect,e),yield this.clearCacheOnLogout(t.account);let r={apiId:Ma.logout,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},o=yield wn(this.createAuthCodeClient.bind(this),mt.StandardInteractionClientCreateAuthCodeClient,this.logger,this.performanceClient,this.correlationId)(i,e&&e.authority,void 0,e&&e.account||void 0);if(o.authority.protocolMode===_h.OIDC)try{o.authority.endSessionEndpoint}catch{if(t.account?.homeAccountId){this.browserStorage.removeAccount(t.account?.homeAccountId),this.eventHandler.emitEvent(fr.LOGOUT_SUCCESS,pr.Redirect,t);return}}let s=o.getLogoutUri(t);if(this.eventHandler.emitEvent(fr.LOGOUT_SUCCESS,pr.Redirect,t),e&&typeof e.onRedirectNavigate=="function")if(e.onRedirectNavigate(s)!==!1){this.logger.verbose("Logout onRedirectNavigate did not return false, navigating"),this.browserStorage.getInteractionInProgress()||this.browserStorage.setInteractionInProgress(!0),yield this.navigationClient.navigateExternal(s,r);return}else this.browserStorage.setInteractionInProgress(!1),this.logger.verbose("Logout onRedirectNavigate returned false, stopping navigation");else{this.browserStorage.getInteractionInProgress()||this.browserStorage.setInteractionInProgress(!0),yield this.navigationClient.navigateExternal(s,r);return}}catch(r){throw r instanceof Os&&(r.setCorrelationId(this.correlationId),i.cacheFailedRequest(r)),this.eventHandler.emitEvent(fr.LOGOUT_FAILURE,pr.Redirect,null,r),this.eventHandler.emitEvent(fr.LOGOUT_END,pr.Redirect),r}this.eventHandler.emitEvent(fr.LOGOUT_END,pr.Redirect)})}getRedirectStartPage(e){let t=e||window.location.href;return bs.getAbsoluteUrl(t,zf())}};function W5e(n,e,t,i,r){return ct(this,null,function*(){if(e.addQueueMeasurement(mt.SilentHandlerInitiateAuthRequest,i),!n)throw t.info("Navigate url is empty"),nr(Pb);return r?wn(O0t,mt.SilentHandlerLoadFrame,t,e,i)(n,r,e,i):zp(R0t,mt.SilentHandlerLoadFrameSync,t,e,i)(n)})}function Z5e(n,e,t,i,r,o,s){return ct(this,null,function*(){return i.addQueueMeasurement(mt.SilentHandlerMonitorIframeForHash,o),new Promise((c,h)=>{e{window.clearInterval(x),h(nr(XL))},e),x=window.setInterval(()=>{let C="",A=n.contentWindow;try{C=A?A.location.href:""}catch{}if(!C||C==="about:blank")return;let k="";A&&(s===o0.QUERY?k=A.location.search:k=A.location.hash),window.clearTimeout(g),window.clearInterval(x),c(k)},t)}).finally(()=>{zp(N0t,mt.RemoveHiddenIframe,r,i,o)(n)})})}function O0t(n,e,t,i){return t.addQueueMeasurement(mt.SilentHandlerLoadFrame,i),new Promise((r,o)=>{let s=Q5e();window.setTimeout(()=>{if(!s){o("Unable to load iframe");return}s.src=n,r(s)},e)})}function R0t(n){let e=Q5e();return e.src=n,e}function Q5e(){let n=document.createElement("iframe");return n.className="msalSilentIframe",n.style.visibility="hidden",n.style.position="absolute",n.style.width=n.style.height="0",n.style.border="0",n.setAttribute("sandbox","allow-scripts allow-same-origin allow-forms"),document.body.appendChild(n),n}function N0t(n){document.body===n.parentNode&&document.body.removeChild(n)}var Ite=class extends Uf{constructor(e,t,i,r,o,s,c,h,g,x,C){super(e,t,i,r,o,s,h,x,C),this.apiId=c,this.nativeStorage=g}acquireToken(e){return ct(this,null,function*(){this.performanceClient.addQueueMeasurement(mt.SilentIframeClientAcquireToken,e.correlationId),!e.loginHint&&!e.sid&&(!e.account||!e.account.username)&&this.logger.warning("No user hint provided. The authorization server may need more information to complete this request.");let t=Ce({},e);t.prompt?t.prompt!==uc.NONE&&t.prompt!==uc.NO_SESSION&&(this.logger.warning(`SilentIframeClient. Replacing invalid prompt ${t.prompt} with ${uc.NONE}`),t.prompt=uc.NONE):t.prompt=uc.NONE;let i=yield wn(this.initializeAuthorizationRequest.bind(this),mt.StandardInteractionClientInitializeAuthorizationRequest,this.logger,this.performanceClient,e.correlationId)(t,pr.Silent);t8(i.authority);let r=this.initializeServerTelemetryManager(this.apiId);try{let o=yield wn(this.createAuthCodeClient.bind(this),mt.StandardInteractionClientCreateAuthCodeClient,this.logger,this.performanceClient,e.correlationId)(r,i.authority,i.azureCloudOptions,i.account);return yield wn(this.silentTokenHelper.bind(this),mt.SilentIframeClientTokenHelper,this.logger,this.performanceClient,e.correlationId)(o,i)}catch(o){throw o instanceof Os&&(o.setCorrelationId(this.correlationId),r.cacheFailedRequest(o)),o}})}logout(){return Promise.reject(nr(Fb))}silentTokenHelper(e,t){return ct(this,null,function*(){let i=t.correlationId;this.performanceClient.addQueueMeasurement(mt.SilentIframeClientTokenHelper,i);let r=yield wn(this.initializeAuthorizationCodeRequest.bind(this),mt.StandardInteractionClientInitializeAuthorizationCodeRequest,this.logger,this.performanceClient,i)(t),o=yield wn(e.getAuthCodeUrl.bind(e),mt.GetAuthCodeUrl,this.logger,this.performanceClient,i)(wt(Ce({},t),{nativeBroker:Wm.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,t.authenticationScheme)})),s=new uT(e,this.browserStorage,r,this.logger,this.performanceClient),c=yield wn(W5e,mt.SilentHandlerInitiateAuthRequest,this.logger,this.performanceClient,i)(o,this.performanceClient,this.logger,i,this.config.system.navigateFrameWait),h=this.config.auth.OIDCOptions.serverResponseType,g=yield wn(Z5e,mt.SilentHandlerMonitorIframeForHash,this.logger,this.performanceClient,i)(c,this.config.system.iframeHashTimeout,this.config.system.pollIntervalMilliseconds,this.performanceClient,this.logger,i,h),x=zp(Cte,mt.DeserializeResponse,this.logger,this.performanceClient,this.correlationId)(g,h,this.logger);if(x.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),!this.nativeMessageHandler)throw nr(v_);let C=new b_(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.apiId,this.performanceClient,this.nativeMessageHandler,x.accountId,this.browserStorage,i),{userRequestState:A}=hd.parseRequestState(this.browserCrypto,t.state);return wn(C.acquireToken.bind(C),mt.NativeInteractionClientAcquireToken,this.logger,this.performanceClient,i)(wt(Ce({},t),{state:A,prompt:t.prompt||uc.NONE}))}return wn(s.handleCodeResponse.bind(s),mt.HandleCodeResponse,this.logger,this.performanceClient,i)(x,t)})}};var Tte=class extends Uf{acquireToken(e){return ct(this,null,function*(){this.performanceClient.addQueueMeasurement(mt.SilentRefreshClientAcquireToken,e.correlationId);let t=yield wn(r8,mt.InitializeBaseRequest,this.logger,this.performanceClient,e.correlationId)(e,this.config,this.performanceClient,this.logger),i=Ce(Ce({},e),t);e.redirectUri&&(i.redirectUri=this.getRedirectUri(e.redirectUri));let r=this.initializeServerTelemetryManager(Ma.acquireTokenSilent_silentFlow),o=yield this.createRefreshTokenClient(r,i.authority,i.azureCloudOptions,i.account);return wn(o.acquireTokenByRefreshToken.bind(o),mt.RefreshTokenClientAcquireTokenByRefreshToken,this.logger,this.performanceClient,e.correlationId)(i).catch(s=>{throw s.setCorrelationId(this.correlationId),r.cacheFailedRequest(s),s})})}logout(){return Promise.reject(nr(Fb))}createRefreshTokenClient(e,t,i,r){return ct(this,null,function*(){let o=yield wn(this.getClientConfiguration.bind(this),mt.StandardInteractionClientGetClientConfiguration,this.logger,this.performanceClient,this.correlationId)(e,t,i,r);return new tT(o,this.performanceClient)})}};var Ate=class{constructor(e,t,i,r){this.isBrowserEnvironment=typeof window<"u",this.config=e,this.storage=t,this.logger=i,this.cryptoObj=r}loadExternalTokens(e,t,i){if(!this.isBrowserEnvironment)throw nr(rT);let r=t.id_token?qI.extractTokenClaims(t.id_token,Vf):void 0,o={protocolMode:this.config.auth.protocolMode,knownAuthorities:this.config.auth.knownAuthorities,cloudDiscoveryMetadata:this.config.auth.cloudDiscoveryMetadata,authorityMetadata:this.config.auth.authorityMetadata,skipAuthorityMetadataCache:this.config.auth.skipAuthorityMetadataCache},s=e.authority?new g_(g_.generateAuthority(e.authority,e.azureCloudOptions),this.config.system.networkClient,this.storage,o,this.logger,e.correlationId||jd()):void 0,c=this.loadAccount(e,i.clientInfo||t.client_info||"",r,s),h=this.loadIdToken(t,c.homeAccountId,c.environment,c.realm),g=this.loadAccessToken(e,t,c.homeAccountId,c.environment,c.realm,i),x=this.loadRefreshToken(t,c.homeAccountId,c.environment);return this.generateAuthenticationResult(e,{account:c,idToken:h,accessToken:g,refreshToken:x},r,s)}loadAccount(e,t,i,r){if(this.logger.verbose("TokenCache - loading account"),e.account){let h=zl.createFromAccountInfo(e.account);return this.storage.setAccount(h),h}else if(!r||!t&&!i)throw this.logger.error("TokenCache - if an account is not provided on the request, authority and either clientInfo or idToken must be provided instead."),nr(aB);let o=zl.generateHomeAccountId(t,r.authorityType,this.logger,this.cryptoObj,i),s=i?.tid,c=jL(this.storage,r,o,Vf,i,t,r.hostnameAndPort,s,void 0,void 0,this.logger);return this.storage.setAccount(c),c}loadIdToken(e,t,i,r){if(!e.id_token)return this.logger.verbose("TokenCache - no id token found in response"),null;this.logger.verbose("TokenCache - loading id token");let o=Bl.createIdTokenEntity(t,i,e.id_token,this.config.auth.clientId,r);return this.storage.setIdTokenCredential(o),o}loadAccessToken(e,t,i,r,o,s){if(t.access_token)if(t.expires_in){if(!t.scope&&(!e.scopes||!e.scopes.length))return this.logger.error("TokenCache - scopes not specified in the request or response. Cannot add token to the cache."),null}else return this.logger.error("TokenCache - no expiration set on the access token. Cannot add it to the cache."),null;else return this.logger.verbose("TokenCache - no access token found in response"),null;this.logger.verbose("TokenCache - loading access token");let c=t.scope?dc.fromString(t.scope):new dc(e.scopes),h=s.expiresOn||t.expires_in+new Date().getTime()/1e3,g=s.extendedExpiresOn||(t.ext_expires_in||t.expires_in)+new Date().getTime()/1e3,x=Bl.createAccessTokenEntity(i,r,t.access_token,this.config.auth.clientId,o,c.printScopes(),h,g,Vf);return this.storage.setAccessTokenCredential(x),x}loadRefreshToken(e,t,i){if(!e.refresh_token)return this.logger.verbose("TokenCache - no refresh token found in response"),null;this.logger.verbose("TokenCache - loading refresh token");let r=Bl.createRefreshTokenEntity(t,i,e.refresh_token,this.config.auth.clientId,e.foci,void 0,e.refresh_token_expires_in);return this.storage.setRefreshTokenCredential(r),r}generateAuthenticationResult(e,t,i,r){let o="",s=[],c=null,h;t?.accessToken&&(o=t.accessToken.secret,s=dc.fromString(t.accessToken.target).asArray(),c=new Date(Number(t.accessToken.expiresOn)*1e3),h=new Date(Number(t.accessToken.extendedExpiresOn)*1e3));let g=t.account;return{authority:r?r.canonicalAuthority:"",uniqueId:t.account.localAccountId,tenantId:t.account.realm,scopes:s,account:g.getAccountInfo(),idToken:t.idToken?.secret||"",idTokenClaims:i||{},accessToken:o,fromCache:!0,expiresOn:c,correlationId:e.correlationId||"",requestId:"",extExpiresOn:h,familyId:t.refreshToken?.familyId||"",tokenType:t?.accessToken?.tokenType||"",state:e.state||"",cloudGraphHostName:g.cloudGraphHostName||"",msGraphHost:g.msGraphHost||"",fromNativeBroker:!1}}};var Dte=class extends GO{constructor(e){super(e),this.includeRedirectUri=!1}};var kte=class extends Uf{constructor(e,t,i,r,o,s,c,h,g,x){super(e,t,i,r,o,s,h,g,x),this.apiId=c}acquireToken(e){return ct(this,null,function*(){if(!e.code)throw nr(lB);let t=yield wn(this.initializeAuthorizationRequest.bind(this),mt.StandardInteractionClientInitializeAuthorizationRequest,this.logger,this.performanceClient,e.correlationId)(e,pr.Silent),i=this.initializeServerTelemetryManager(this.apiId);try{let r=wt(Ce({},t),{code:e.code}),o=yield wn(this.getClientConfiguration.bind(this),mt.StandardInteractionClientGetClientConfiguration,this.logger,this.performanceClient,e.correlationId)(i,t.authority,t.azureCloudOptions,t.account),s=new Dte(o);this.logger.verbose("Auth code client created");let c=new uT(s,this.browserStorage,r,this.logger,this.performanceClient);return yield wn(c.handleCodeResponseFromServer.bind(c),mt.HandleCodeResponseFromServer,this.logger,this.performanceClient,e.correlationId)({code:e.code,msgraph_host:e.msGraphHost,cloud_graph_host_name:e.cloudGraphHostName,cloud_instance_host_name:e.cloudInstanceHostName},t,!1)}catch(r){throw r instanceof Os&&(r.setCorrelationId(this.correlationId),i.cacheFailedRequest(r)),r}})}logout(){return Promise.reject(nr(Fb))}};function Bb(n){let e=n?.idTokenClaims;if(e?.tfp||e?.acr)return"B2C";if(e?.tid){if(e?.tid==="9188040d-6c67-4c5b-b112-36a304b66dad")return"MSA"}else return;return"AAD"}function Mte(n,e){try{e8(n)}catch(t){throw e.end({success:!1},t),t}}var CB=class n{constructor(e){this.operatingContext=e,this.isBrowserEnvironment=this.operatingContext.isBrowserEnvironment(),this.config=e.getConfig(),this.initialized=!1,this.logger=this.operatingContext.getLogger(),this.networkClient=this.config.system.networkClient,this.navigationClient=this.config.system.navigationClient,this.redirectResponse=new Map,this.hybridAuthCodeResponses=new Map,this.performanceClient=this.config.telemetry.client,this.browserCrypto=this.isBrowserEnvironment?new k5e(this.logger,this.performanceClient):QI,this.eventHandler=new xte(this.logger,this.browserCrypto),this.browserStorage=this.isBrowserEnvironment?new bB(this.config.auth.clientId,this.config.cache,this.browserCrypto,this.logger,S1e(this.config.auth),this.performanceClient):M5e(this.config.auth.clientId,this.logger);let t={cacheLocation:Ql.MemoryStorage,temporaryCacheLocation:Ql.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!1,claimsBasedCachingEnabled:!1};this.nativeInternalStorage=new bB(this.config.auth.clientId,t,this.browserCrypto,this.logger,void 0,this.performanceClient),this.tokenCache=new Ate(this.config,this.browserStorage,this.logger,this.browserCrypto),this.activeSilentTokenRequests=new Map,this.trackPageVisibility=this.trackPageVisibility.bind(this),this.trackPageVisibilityWithMeasurement=this.trackPageVisibilityWithMeasurement.bind(this)}static createController(e,t){return ct(this,null,function*(){let i=new n(e);return yield i.initialize(t),i})}trackPageVisibility(e){e&&(this.logger.info("Perf: Visibility change detected"),this.performanceClient.incrementFields({visibilityChangeCount:1},e))}initialize(e){return ct(this,null,function*(){if(this.logger.trace("initialize called"),this.initialized){this.logger.info("initialize has already been called, exiting early.");return}let t=e?.correlationId||this.getRequestCorrelationId(),i=this.config.system.allowNativeBroker,r=this.performanceClient.startMeasurement(mt.InitializeClientApplication,t);if(this.eventHandler.emitEvent(fr.INITIALIZE_START),i)try{this.nativeExtensionProvider=yield Wm.createProvider(this.logger,this.config.system.nativeBrokerHandshakeTimeout,this.performanceClient)}catch(o){this.logger.verbose(o)}this.config.cache.claimsBasedCachingEnabled||(this.logger.verbose("Claims-based caching is disabled. Clearing the previous cache with claims"),yield wn(this.browserStorage.clearTokensAndKeysWithClaims.bind(this.browserStorage),mt.ClearTokensAndKeysWithClaims,this.logger,this.performanceClient,t)(this.performanceClient,t)),this.initialized=!0,this.eventHandler.emitEvent(fr.INITIALIZE_END),r.end({allowNativeBroker:i,success:!0})})}handleRedirectPromise(e){return ct(this,null,function*(){if(this.logger.verbose("handleRedirectPromise called"),dte(this.initialized),this.isBrowserEnvironment){let t=e||"",i=this.redirectResponse.get(t);return typeof i>"u"?(i=this.handleRedirectPromiseInternal(e),this.redirectResponse.set(t,i),this.logger.verbose("handleRedirectPromise has been called for the first time, storing the promise")):this.logger.verbose("handleRedirectPromise has been called previously, returning the result from the first call"),i}return this.logger.verbose("handleRedirectPromise returns null, not browser environment"),null})}handleRedirectPromiseInternal(e){return ct(this,null,function*(){let t=this.getAllAccounts(),i=this.browserStorage.getCachedNativeRequest(),r=i&&Wm.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider)&&this.nativeExtensionProvider&&!e,o=r?i?.correlationId:this.browserStorage.getTemporaryCache(ya.CORRELATION_ID,!0)||"",s=this.performanceClient.startMeasurement(mt.AcquireTokenRedirect,o);this.eventHandler.emitEvent(fr.HANDLE_REDIRECT_START,pr.Redirect);let c;if(r&&this.nativeExtensionProvider){this.logger.trace("handleRedirectPromise - acquiring token from native platform");let h=new b_(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,Ma.handleRedirectPromise,this.performanceClient,this.nativeExtensionProvider,i.accountId,this.nativeInternalStorage,i.correlationId);c=wn(h.handleRedirectPromise.bind(h),mt.HandleNativeRedirectPromiseMeasurement,this.logger,this.performanceClient,s.event.correlationId)(this.performanceClient,s.event.correlationId)}else{this.logger.trace("handleRedirectPromise - acquiring token from web flow");let h=this.createRedirectClient(o);c=wn(h.handleRedirectPromise.bind(h),mt.HandleRedirectPromiseMeasurement,this.logger,this.performanceClient,s.event.correlationId)(e,s)}return c.then(h=>(h?(t.length{let g=h;throw t.length>0?this.eventHandler.emitEvent(fr.ACQUIRE_TOKEN_FAILURE,pr.Redirect,null,g):this.eventHandler.emitEvent(fr.LOGIN_FAILURE,pr.Redirect,null,g),this.eventHandler.emitEvent(fr.HANDLE_REDIRECT_END,pr.Redirect),s.end({success:!1},g),h})})}acquireTokenRedirect(e){return ct(this,null,function*(){let t=this.getRequestCorrelationId(e);this.logger.verbose("acquireTokenRedirect called",t);let i=this.performanceClient.startMeasurement(mt.AcquireTokenPreRedirect,t);i.add({accountType:Bb(e.account),scenarioId:e.scenarioId});let r=e.onRedirectNavigate;e.onRedirectNavigate=s=>{let c=typeof r=="function"?r(s):void 0;return c!==!1?i.end({success:!0}):i.discard(),c};let o=this.getAllAccounts().length>0;try{hte(this.initialized,this.config),this.browserStorage.setInteractionInProgress(!0),o?this.eventHandler.emitEvent(fr.ACQUIRE_TOKEN_START,pr.Redirect,e):this.eventHandler.emitEvent(fr.LOGIN_START,pr.Redirect,e);let s;return this.nativeExtensionProvider&&this.canUseNative(e)?s=new b_(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,Ma.acquireTokenRedirect,this.performanceClient,this.nativeExtensionProvider,this.getNativeAccountId(e),this.nativeInternalStorage,t).acquireTokenRedirect(e,i).catch(h=>{if(h instanceof y_&&cT(h))return this.nativeExtensionProvider=void 0,this.createRedirectClient(t).acquireToken(e);if(h instanceof vh)return this.logger.verbose("acquireTokenRedirect - Resolving interaction required error thrown by native broker by falling back to web flow"),this.createRedirectClient(t).acquireToken(e);throw this.browserStorage.setInteractionInProgress(!1),h}):s=this.createRedirectClient(t).acquireToken(e),yield s}catch(s){throw i.end({success:!1},s),o?this.eventHandler.emitEvent(fr.ACQUIRE_TOKEN_FAILURE,pr.Redirect,null,s):this.eventHandler.emitEvent(fr.LOGIN_FAILURE,pr.Redirect,null,s),s}})}acquireTokenPopup(e){let t=this.getRequestCorrelationId(e),i=this.performanceClient.startMeasurement(mt.AcquireTokenPopup,t);i.add({scenarioId:e.scenarioId,accountType:Bb(e.account)});try{this.logger.verbose("acquireTokenPopup called",t),Mte(this.initialized,i),this.browserStorage.setInteractionInProgress(!0)}catch(s){return Promise.reject(s)}let r=this.getAllAccounts();r.length>0?this.eventHandler.emitEvent(fr.ACQUIRE_TOKEN_START,pr.Popup,e):this.eventHandler.emitEvent(fr.LOGIN_START,pr.Popup,e);let o;return this.canUseNative(e)?o=this.acquireTokenNative(wt(Ce({},e),{correlationId:t}),Ma.acquireTokenPopup).then(s=>(this.browserStorage.setInteractionInProgress(!1),i.end({success:!0,isNativeBroker:!0,requestId:s.requestId,accountType:Bb(s.account)}),s)).catch(s=>{if(s instanceof y_&&cT(s))return this.nativeExtensionProvider=void 0,this.createPopupClient(t).acquireToken(e);if(s instanceof vh)return this.logger.verbose("acquireTokenPopup - Resolving interaction required error thrown by native broker by falling back to web flow"),this.createPopupClient(t).acquireToken(e);throw this.browserStorage.setInteractionInProgress(!1),s}):o=this.createPopupClient(t).acquireToken(e),o.then(s=>(r.length(r.length>0?this.eventHandler.emitEvent(fr.ACQUIRE_TOKEN_FAILURE,pr.Popup,null,s):this.eventHandler.emitEvent(fr.LOGIN_FAILURE,pr.Popup,null,s),i.end({success:!1},s),Promise.reject(s)))}trackPageVisibilityWithMeasurement(){let e=this.ssoSilentMeasurement||this.acquireTokenByCodeAsyncMeasurement;e&&(this.logger.info("Perf: Visibility change detected in ",e.event.name),e.increment({visibilityChangeCount:1}))}ssoSilent(e){return ct(this,null,function*(){let t=this.getRequestCorrelationId(e),i=wt(Ce({},e),{prompt:e.prompt,correlationId:t});this.ssoSilentMeasurement=this.performanceClient.startMeasurement(mt.SsoSilent,t),this.ssoSilentMeasurement?.add({scenarioId:e.scenarioId,accountType:Bb(e.account)}),Mte(this.initialized,this.ssoSilentMeasurement),this.ssoSilentMeasurement?.increment({visibilityChangeCount:0}),document.addEventListener("visibilitychange",this.trackPageVisibilityWithMeasurement),this.logger.verbose("ssoSilent called",t),this.eventHandler.emitEvent(fr.SSO_SILENT_START,pr.Silent,i);let r;return this.canUseNative(i)?r=this.acquireTokenNative(i,Ma.ssoSilent).catch(o=>{if(o instanceof y_&&cT(o))return this.nativeExtensionProvider=void 0,this.createSilentIframeClient(i.correlationId).acquireToken(i);throw o}):r=this.createSilentIframeClient(i.correlationId).acquireToken(i),r.then(o=>(this.eventHandler.emitEvent(fr.SSO_SILENT_SUCCESS,pr.Silent,o),this.ssoSilentMeasurement?.end({success:!0,isNativeBroker:o.fromNativeBroker,requestId:o.requestId,accessTokenSize:o.accessToken.length,idTokenSize:o.idToken.length,accountType:Bb(o.account)}),o)).catch(o=>{throw this.eventHandler.emitEvent(fr.SSO_SILENT_FAILURE,pr.Silent,null,o),this.ssoSilentMeasurement?.end({success:!1},o),o}).finally(()=>{document.removeEventListener("visibilitychange",this.trackPageVisibilityWithMeasurement)})})}acquireTokenByCode(e){return ct(this,null,function*(){let t=this.getRequestCorrelationId(e);this.logger.trace("acquireTokenByCode called",t);let i=this.performanceClient.startMeasurement(mt.AcquireTokenByCode,t);Mte(this.initialized,i),this.eventHandler.emitEvent(fr.ACQUIRE_TOKEN_BY_CODE_START,pr.Silent,e),i.add({scenarioId:e.scenarioId});try{if(e.code&&e.nativeAccountId)throw nr(uB);if(e.code){let r=e.code,o=this.hybridAuthCodeResponses.get(r);return o?(this.logger.verbose("Existing acquireTokenByCode request found",t),i.discard()):(this.logger.verbose("Initiating new acquireTokenByCode request",t),o=this.acquireTokenByCodeAsync(wt(Ce({},e),{correlationId:t})).then(s=>(this.eventHandler.emitEvent(fr.ACQUIRE_TOKEN_BY_CODE_SUCCESS,pr.Silent,s),this.hybridAuthCodeResponses.delete(r),i.end({success:!0,isNativeBroker:s.fromNativeBroker,requestId:s.requestId,accessTokenSize:s.accessToken.length,idTokenSize:s.idToken.length,accountType:Bb(s.account)}),s)).catch(s=>{throw this.hybridAuthCodeResponses.delete(r),this.eventHandler.emitEvent(fr.ACQUIRE_TOKEN_BY_CODE_FAILURE,pr.Silent,null,s),i.end({success:!1},s),s}),this.hybridAuthCodeResponses.set(r,o)),yield o}else if(e.nativeAccountId)if(this.canUseNative(e,e.nativeAccountId)){let r=yield this.acquireTokenNative(wt(Ce({},e),{correlationId:t}),Ma.acquireTokenByCode,e.nativeAccountId).catch(o=>{throw o instanceof y_&&cT(o)&&(this.nativeExtensionProvider=void 0),o});return i.end({accountType:Bb(r.account),success:!0}),r}else throw nr(dB);else throw nr(cB)}catch(r){throw this.eventHandler.emitEvent(fr.ACQUIRE_TOKEN_BY_CODE_FAILURE,pr.Silent,null,r),i.end({success:!1},r),r}})}acquireTokenByCodeAsync(e){return ct(this,null,function*(){return this.logger.trace("acquireTokenByCodeAsync called",e.correlationId),this.acquireTokenByCodeAsyncMeasurement=this.performanceClient.startMeasurement(mt.AcquireTokenByCodeAsync,e.correlationId),this.acquireTokenByCodeAsyncMeasurement?.increment({visibilityChangeCount:0}),document.addEventListener("visibilitychange",this.trackPageVisibilityWithMeasurement),yield this.createSilentAuthCodeClient(e.correlationId).acquireToken(e).then(r=>(this.acquireTokenByCodeAsyncMeasurement?.end({success:!0,fromCache:r.fromCache,isNativeBroker:r.fromNativeBroker,requestId:r.requestId}),r)).catch(r=>{throw this.acquireTokenByCodeAsyncMeasurement?.end({success:!1},r),r}).finally(()=>{document.removeEventListener("visibilitychange",this.trackPageVisibilityWithMeasurement)})})}acquireTokenFromCache(e,t){return ct(this,null,function*(){switch(this.performanceClient.addQueueMeasurement(mt.AcquireTokenFromCache,e.correlationId),t){case Up.Default:case Up.AccessToken:case Up.AccessTokenAndRefreshToken:let i=this.createSilentCacheClient(e.correlationId);return wn(i.acquireToken.bind(i),mt.SilentCacheClientAcquireToken,this.logger,this.performanceClient,e.correlationId)(e);default:throw Xi(ud.tokenRefreshRequired)}})}acquireTokenByRefreshToken(e,t){return ct(this,null,function*(){switch(this.performanceClient.addQueueMeasurement(mt.AcquireTokenByRefreshToken,e.correlationId),t){case Up.Default:case Up.AccessTokenAndRefreshToken:case Up.RefreshToken:case Up.RefreshTokenAndNetwork:let i=this.createSilentRefreshClient(e.correlationId);return wn(i.acquireToken.bind(i),mt.SilentRefreshClientAcquireToken,this.logger,this.performanceClient,e.correlationId)(e);default:throw Xi(ud.tokenRefreshRequired)}})}acquireTokenBySilentIframe(e){return ct(this,null,function*(){this.performanceClient.addQueueMeasurement(mt.AcquireTokenBySilentIframe,e.correlationId);let t=this.createSilentIframeClient(e.correlationId);return wn(t.acquireToken.bind(t),mt.SilentIframeClientAcquireToken,this.logger,this.performanceClient,e.correlationId)(e)})}logout(e){return ct(this,null,function*(){let t=this.getRequestCorrelationId(e);return this.logger.warning("logout API is deprecated and will be removed in msal-browser v3.0.0. Use logoutRedirect instead.",t),this.logoutRedirect(Ce({correlationId:t},e))})}logoutRedirect(e){return ct(this,null,function*(){let t=this.getRequestCorrelationId(e);return hte(this.initialized,this.config),this.browserStorage.setInteractionInProgress(!0),this.createRedirectClient(t).logout(e)})}logoutPopup(e){try{let t=this.getRequestCorrelationId(e);return e8(this.initialized),this.browserStorage.setInteractionInProgress(!0),this.createPopupClient(t).logout(e)}catch(t){return Promise.reject(t)}}clearCache(e){return ct(this,null,function*(){let t=this.getRequestCorrelationId(e);return this.createSilentCacheClient(t).logout(e)})}getAllAccounts(e){return O5e(this.logger,this.browserStorage,this.isBrowserEnvironment,e)}getAccount(e){return R5e(e,this.logger,this.browserStorage)}getAccountByUsername(e){return N5e(e,this.logger,this.browserStorage)}getAccountByHomeId(e){return P5e(e,this.logger,this.browserStorage)}getAccountByLocalId(e){return F5e(e,this.logger,this.browserStorage)}setActiveAccount(e){L5e(e,this.browserStorage)}getActiveAccount(){return B5e(this.browserStorage)}hydrateCache(e,t){return ct(this,null,function*(){this.logger.verbose("hydrateCache called");let i=zl.createFromAccountInfo(e.account,e.cloudGraphHostName,e.msGraphHost);return this.browserStorage.setAccount(i),e.fromNativeBroker?(this.logger.verbose("Response was from native broker, storing in-memory"),this.nativeInternalStorage.hydrateCache(e,t)):this.browserStorage.hydrateCache(e,t)})}acquireTokenNative(e,t,i){return ct(this,null,function*(){if(this.logger.trace("acquireTokenNative called"),!this.nativeExtensionProvider)throw nr(v_);return new b_(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,t,this.performanceClient,this.nativeExtensionProvider,i||this.getNativeAccountId(e),this.nativeInternalStorage,e.correlationId).acquireToken(e)})}canUseNative(e,t){if(this.logger.trace("canUseNative called"),!Wm.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider,e.authenticationScheme))return this.logger.trace("canUseNative: isNativeAvailable returned false, returning false"),!1;if(e.prompt)switch(e.prompt){case uc.NONE:case uc.CONSENT:case uc.LOGIN:this.logger.trace("canUseNative: prompt is compatible with native flow");break;default:return this.logger.trace(`canUseNative: prompt = ${e.prompt} is not compatible with native flow, returning false`),!1}return!t&&!this.getNativeAccountId(e)?(this.logger.trace("canUseNative: nativeAccountId is not available, returning false"),!1):!0}getNativeAccountId(e){let t=e.account||this.getAccount({loginHint:e.loginHint,sid:e.sid})||this.getActiveAccount();return t&&t.nativeAccountId||""}createPopupClient(e){return new Ste(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,e)}createRedirectClient(e){return new Ete(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,e)}createSilentIframeClient(e){return new Ite(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,Ma.ssoSilent,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,e)}createSilentCacheClient(e){return new wB(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,e)}createSilentRefreshClient(e){return new Tte(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,e)}createSilentAuthCodeClient(e){return new kte(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,Ma.acquireTokenByCode,this.performanceClient,this.nativeExtensionProvider,e)}addEventCallback(e){return this.eventHandler.addEventCallback(e)}removeEventCallback(e){this.eventHandler.removeEventCallback(e)}addPerformanceCallback(e){return this.performanceClient.addPerformanceCallback(e)}removePerformanceCallback(e){return this.performanceClient.removePerformanceCallback(e)}enableAccountStorageEvents(){this.eventHandler.enableAccountStorageEvents()}disableAccountStorageEvents(){this.eventHandler.disableAccountStorageEvents()}getTokenCache(){return this.tokenCache}getLogger(){return this.logger}setLogger(e){this.logger=e}initializeWrapperLibrary(e,t){this.browserStorage.setWrapperMetadata(e,t)}setNavigationClient(e){this.navigationClient=e}getConfiguration(){return this.config}getPerformanceClient(){return this.performanceClient}isBrowserEnv(){return this.isBrowserEnvironment}getEventHandler(){return this.eventHandler}getRequestCorrelationId(e){return e?.correlationId?e.correlationId:this.isBrowserEnvironment?jd():yi.EMPTY_STRING}loginRedirect(e){return ct(this,null,function*(){let t=this.getRequestCorrelationId(e);return this.logger.verbose("loginRedirect called",t),this.acquireTokenRedirect(Ce({correlationId:t},e||_we))})}loginPopup(e){let t=this.getRequestCorrelationId(e);return this.logger.verbose("loginPopup called",t),this.acquireTokenPopup(Ce({correlationId:t},e||_we))}acquireTokenSilent(e){return ct(this,null,function*(){let t=this.getRequestCorrelationId(e),i=this.performanceClient.startMeasurement(mt.AcquireTokenSilent,t);i.add({cacheLookupPolicy:e.cacheLookupPolicy,scenarioId:e.scenarioId}),Mte(this.initialized,i),this.logger.verbose("acquireTokenSilent called",t);let r=e.account||this.getActiveAccount();if(!r)throw nr(iB);i.add({accountType:Bb(r)});let o={clientId:this.config.auth.clientId,authority:e.authority||yi.EMPTY_STRING,scopes:e.scopes,homeAccountIdentifier:r.homeAccountId,claims:e.claims,authenticationScheme:e.authenticationScheme,resourceRequestMethod:e.resourceRequestMethod,resourceRequestUri:e.resourceRequestUri,shrClaims:e.shrClaims,sshKid:e.sshKid,shrOptions:e.shrOptions},s=JSON.stringify(o),c=this.activeSilentTokenRequests.get(s);if(typeof c>"u"){this.logger.verbose("acquireTokenSilent called for the first time, storing active request",t);let h=wn(this.acquireTokenSilentAsync.bind(this),mt.AcquireTokenSilentAsync,this.logger,this.performanceClient,t)(wt(Ce({},e),{correlationId:t}),r).then(g=>(this.activeSilentTokenRequests.delete(s),i.end({success:!0,fromCache:g.fromCache,isNativeBroker:g.fromNativeBroker,cacheLookupPolicy:e.cacheLookupPolicy,requestId:g.requestId,accessTokenSize:g.accessToken.length,idTokenSize:g.idToken.length}),g)).catch(g=>{throw this.activeSilentTokenRequests.delete(s),i.end({success:!1},g),g});return this.activeSilentTokenRequests.set(s,h),wt(Ce({},yield h),{state:e.state})}else return this.logger.verbose("acquireTokenSilent has been called previously, returning the result from the first call",t),i.discard(),wt(Ce({},yield c),{state:e.state})})}acquireTokenSilentAsync(e,t){return ct(this,null,function*(){let i=()=>this.trackPageVisibility(e.correlationId);this.performanceClient.addQueueMeasurement(mt.AcquireTokenSilentAsync,e.correlationId),this.eventHandler.emitEvent(fr.ACQUIRE_TOKEN_START,pr.Silent,e),e.correlationId&&this.performanceClient.incrementFields({visibilityChangeCount:0},e.correlationId),document.addEventListener("visibilitychange",i);let r=yield wn(V5e,mt.InitializeSilentRequest,this.logger,this.performanceClient,e.correlationId)(e,t,this.config,this.performanceClient,this.logger),o=e.cacheLookupPolicy||Up.Default;return this.acquireTokenSilentNoIframe(r,o).catch(c=>ct(this,null,function*(){if(P0t(c,o))if(this.activeIframeRequest)if(o!==Up.Skip){let[g,x]=this.activeIframeRequest;this.logger.verbose(`Iframe request is already in progress, awaiting resolution for request with correlationId: ${x}`,r.correlationId);let C=this.performanceClient.startMeasurement(mt.AwaitConcurrentIframe,r.correlationId);C.add({awaitIframeCorrelationId:x});let A=yield g;if(C.end({success:A}),A)return this.logger.verbose(`Parallel iframe request with correlationId: ${x} succeeded. Retrying cache and/or RT redemption`,r.correlationId),this.acquireTokenSilentNoIframe(r,o);throw this.logger.info(`Iframe request with correlationId: ${x} failed. Interaction is required.`),c}else return this.logger.warning("Another iframe request is currently in progress and CacheLookupPolicy is set to Skip. This may result in degraded performance and/or reliability for both calls. Please consider changing the CacheLookupPolicy to take advantage of request queuing and token cache.",r.correlationId),wn(this.acquireTokenBySilentIframe.bind(this),mt.AcquireTokenBySilentIframe,this.logger,this.performanceClient,r.correlationId)(r);else{let g;return this.activeIframeRequest=[new Promise(x=>{g=x}),r.correlationId],this.logger.verbose("Refresh token expired/invalid or CacheLookupPolicy is set to Skip, attempting acquire token by iframe.",r.correlationId),wn(this.acquireTokenBySilentIframe.bind(this),mt.AcquireTokenBySilentIframe,this.logger,this.performanceClient,r.correlationId)(r).then(x=>(g(!0),x)).catch(x=>{throw g(!1),x}).finally(()=>{this.activeIframeRequest=void 0})}else throw c})).then(c=>(this.eventHandler.emitEvent(fr.ACQUIRE_TOKEN_SUCCESS,pr.Silent,c),e.correlationId&&this.performanceClient.addFields({fromCache:c.fromCache,isNativeBroker:c.fromNativeBroker,requestId:c.requestId},e.correlationId),c)).catch(c=>{throw this.eventHandler.emitEvent(fr.ACQUIRE_TOKEN_FAILURE,pr.Silent,null,c),c}).finally(()=>{document.removeEventListener("visibilitychange",i)})})}acquireTokenSilentNoIframe(e,t){return ct(this,null,function*(){return Wm.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider,e.authenticationScheme)&&e.account.nativeAccountId?(this.logger.verbose("acquireTokenSilent - attempting to acquire token from native platform"),this.acquireTokenNative(e,Ma.acquireTokenSilent_silentFlow).catch(i=>ct(this,null,function*(){throw i instanceof y_&&cT(i)?(this.logger.verbose("acquireTokenSilent - native platform unavailable, falling back to web flow"),this.nativeExtensionProvider=void 0,Xi(ud.tokenRefreshRequired)):i}))):(this.logger.verbose("acquireTokenSilent - attempting to acquire token from web flow"),wn(this.acquireTokenFromCache.bind(this),mt.AcquireTokenFromCache,this.logger,this.performanceClient,e.correlationId)(e,t).catch(i=>{if(t===Up.AccessToken)throw i;return this.eventHandler.emitEvent(fr.ACQUIRE_TOKEN_NETWORK_START,pr.Silent,e),wn(this.acquireTokenByRefreshToken.bind(this),mt.AcquireTokenByRefreshToken,this.logger,this.performanceClient,e.correlationId)(e,t)}))})}};function P0t(n,e){let t=!(n instanceof vh&&n.subError!==Vw.badToken),i=n.errorCode===pd.INVALID_GRANT_ERROR||n.errorCode===ud.tokenRefreshRequired,r=t&&i||n.errorCode===Vw.noTokensFound||n.errorCode===Vw.refreshTokenExpired,o=u5e.includes(e);return r&&o}function X5e(n,e){return ct(this,null,function*(){let t=new _te(n);return yield t.initialize(),CB.createController(t,e)})}var a8=class n{static createPublicClientApplication(e){return ct(this,null,function*(){let t=yield X5e(e);return new n(e,t)})}constructor(e,t){this.controller=t||new CB(new _te(e))}initialize(e){return ct(this,null,function*(){return this.controller.initialize(e)})}acquireTokenPopup(e){return ct(this,null,function*(){return this.controller.acquireTokenPopup(e)})}acquireTokenRedirect(e){return this.controller.acquireTokenRedirect(e)}acquireTokenSilent(e){return this.controller.acquireTokenSilent(e)}acquireTokenByCode(e){return this.controller.acquireTokenByCode(e)}addEventCallback(e){return this.controller.addEventCallback(e)}removeEventCallback(e){return this.controller.removeEventCallback(e)}addPerformanceCallback(e){return this.controller.addPerformanceCallback(e)}removePerformanceCallback(e){return this.controller.removePerformanceCallback(e)}enableAccountStorageEvents(){this.controller.enableAccountStorageEvents()}disableAccountStorageEvents(){this.controller.disableAccountStorageEvents()}getAccount(e){return this.controller.getAccount(e)}getAccountByHomeId(e){return this.controller.getAccountByHomeId(e)}getAccountByLocalId(e){return this.controller.getAccountByLocalId(e)}getAccountByUsername(e){return this.controller.getAccountByUsername(e)}getAllAccounts(e){return this.controller.getAllAccounts(e)}handleRedirectPromise(e){return this.controller.handleRedirectPromise(e)}loginPopup(e){return this.controller.loginPopup(e)}loginRedirect(e){return this.controller.loginRedirect(e)}logout(e){return this.controller.logout(e)}logoutRedirect(e){return this.controller.logoutRedirect(e)}logoutPopup(e){return this.controller.logoutPopup(e)}ssoSilent(e){return this.controller.ssoSilent(e)}getTokenCache(){return this.controller.getTokenCache()}getLogger(){return this.controller.getLogger()}setLogger(e){this.controller.setLogger(e)}setActiveAccount(e){this.controller.setActiveAccount(e)}getActiveAccount(){return this.controller.getActiveAccount()}initializeWrapperLibrary(e,t){return this.controller.initializeWrapperLibrary(e,t)}setNavigationClient(e){this.controller.setNavigationClient(e)}getConfiguration(){return this.controller.getConfiguration()}hydrateCache(e,t){return ct(this,null,function*(){return this.controller.hydrateCache(e,t)})}clearCache(e){return this.controller.clearCache(e)}};var l8=class{static getInteractionStatusFromEvent(e,t){switch(e.eventType){case fr.LOGIN_START:return Fc.Login;case fr.SSO_SILENT_START:return Fc.SsoSilent;case fr.ACQUIRE_TOKEN_START:if(e.interactionType===pr.Redirect||e.interactionType===pr.Popup)return Fc.AcquireToken;break;case fr.HANDLE_REDIRECT_START:return Fc.HandleRedirect;case fr.LOGOUT_START:return Fc.Logout;case fr.SSO_SILENT_SUCCESS:case fr.SSO_SILENT_FAILURE:if(t&&t!==Fc.SsoSilent)break;return Fc.None;case fr.LOGOUT_END:if(t&&t!==Fc.Logout)break;return Fc.None;case fr.HANDLE_REDIRECT_END:if(t&&t!==Fc.HandleRedirect)break;return Fc.None;case fr.LOGIN_SUCCESS:case fr.LOGIN_FAILURE:case fr.ACQUIRE_TOKEN_SUCCESS:case fr.ACQUIRE_TOKEN_FAILURE:case fr.RESTORE_FROM_BFCACHE:if(e.interactionType===pr.Redirect||e.interactionType===pr.Popup){if(t&&t!==Fc.Login&&t!==Fc.AcquireToken)break;return Fc.None}break}return null}};var sUe=null;function zb(){return sUe}function aUe(n){sUe??=n}var Vte=class{};var Ln=new fi(""),zwe=(()=>{let e=class e{historyGo(i){throw new Error("")}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=It({token:e,factory:()=>ai(F0t),providedIn:"platform"});let n=e;return n})(),lUe=new fi(""),F0t=(()=>{let e=class e extends zwe{constructor(){super(),this._doc=ai(Ln),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return zb().getBaseHref(this._doc)}onPopState(i){let r=zb().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",i,!1),()=>r.removeEventListener("popstate",i)}onHashChange(i){let r=zb().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",i,!1),()=>r.removeEventListener("hashchange",i)}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(i){this._location.pathname=i}pushState(i,r,o){this._history.pushState(i,r,o)}replaceState(i,r,o){this._history.replaceState(i,r,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(i=0){this._history.go(i)}getState(){return this._history.state}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=It({token:e,factory:()=>new e,providedIn:"platform"});let n=e;return n})();function Vwe(n,e){if(n.length==0)return e;if(e.length==0)return n;let t=0;return n.endsWith("/")&&t++,e.startsWith("/")&&t++,t==2?n+e.substring(1):t==1?n+e:n+"/"+e}function J5e(n){let e=n.match(/#|\?|$/),t=e&&e.index||n.length,i=t-(n[t-1]==="/"?1:0);return n.slice(0,i)+n.slice(t)}function qw(n){return n&&n[0]!=="?"?"?"+n:n}var Ww=(()=>{let e=class e{historyGo(i){throw new Error("")}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=It({token:e,factory:()=>ai(Uwe),providedIn:"root"});let n=e;return n})(),cUe=new fi(""),Uwe=(()=>{let e=class e extends Ww{constructor(i,r){super(),this._platformLocation=i,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??ai(Ln).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(i){this._removeListenerFns.push(this._platformLocation.onPopState(i),this._platformLocation.onHashChange(i))}getBaseHref(){return this._baseHref}prepareExternalUrl(i){return Vwe(this._baseHref,i)}path(i=!1){let r=this._platformLocation.pathname+qw(this._platformLocation.search),o=this._platformLocation.hash;return o&&i?`${r}${o}`:r}pushState(i,r,o,s){let c=this.prepareExternalUrl(o+qw(s));this._platformLocation.pushState(i,r,c)}replaceState(i,r,o,s){let c=this.prepareExternalUrl(o+qw(s));this._platformLocation.replaceState(i,r,c)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(i=0){this._platformLocation.historyGo?.(i)}};e.\u0275fac=function(r){return new(r||e)(Ke(zwe),Ke(cUe,8))},e.\u0275prov=It({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),uUe=(()=>{let e=class e extends Ww{constructor(i,r){super(),this._platformLocation=i,this._baseHref="",this._removeListenerFns=[],r!=null&&(this._baseHref=r)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(i){this._removeListenerFns.push(this._platformLocation.onPopState(i),this._platformLocation.onHashChange(i))}getBaseHref(){return this._baseHref}path(i=!1){let r=this._platformLocation.hash??"#";return r.length>0?r.substring(1):r}prepareExternalUrl(i){let r=Vwe(this._baseHref,i);return r.length>0?"#"+r:r}pushState(i,r,o,s){let c=this.prepareExternalUrl(o+qw(s));c.length==0&&(c=this._platformLocation.pathname),this._platformLocation.pushState(i,r,c)}replaceState(i,r,o,s){let c=this.prepareExternalUrl(o+qw(s));c.length==0&&(c=this._platformLocation.pathname),this._platformLocation.replaceState(i,r,c)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(i=0){this._platformLocation.historyGo?.(i)}};e.\u0275fac=function(r){return new(r||e)(Ke(zwe),Ke(cUe,8))},e.\u0275prov=It({token:e,factory:e.\u0275fac});let n=e;return n})(),jf=(()=>{let e=class e{constructor(i){this._subject=new Kt,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=i;let r=this._locationStrategy.getBaseHref();this._basePath=z0t(J5e(eUe(r))),this._locationStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(i=!1){return this.normalize(this._locationStrategy.path(i))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(i,r=""){return this.path()==this.normalize(i+qw(r))}normalize(i){return e.stripTrailingSlash(B0t(this._basePath,eUe(i)))}prepareExternalUrl(i){return i&&i[0]!=="/"&&(i="/"+i),this._locationStrategy.prepareExternalUrl(i)}go(i,r="",o=null){this._locationStrategy.pushState(o,"",i,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(i+qw(r)),o)}replaceState(i,r="",o=null){this._locationStrategy.replaceState(o,"",i,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(i+qw(r)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(i=0){this._locationStrategy.historyGo?.(i)}onUrlChange(i){return this._urlChangeListeners.push(i),this._urlChangeSubscription??=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)}),()=>{let r=this._urlChangeListeners.indexOf(i);this._urlChangeListeners.splice(r,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(i="",r){this._urlChangeListeners.forEach(o=>o(i,r))}subscribe(i,r,o){return this._subject.subscribe({next:i,error:r,complete:o})}};e.normalizeQueryParams=qw,e.joinWithSlash=Vwe,e.stripTrailingSlash=J5e,e.\u0275fac=function(r){return new(r||e)(Ke(Ww))},e.\u0275prov=It({token:e,factory:()=>L0t(),providedIn:"root"});let n=e;return n})();function L0t(){return new jf(Ke(Ww))}function B0t(n,e){if(!n||!e.startsWith(n))return e;let t=e.substring(n.length);return t===""||["/",";","?","#"].includes(t[0])?t:e}function eUe(n){return n.replace(/\/index.html$/,"")}function z0t(n){if(new RegExp("^(https?:)?//").test(n)){let[,t]=n.split(/\/\/[^\/]+/);return t}return n}var dUe=function(n){return n[n.Decimal=0]="Decimal",n[n.Percent=1]="Percent",n[n.Currency=2]="Currency",n[n.Scientific=3]="Scientific",n}(dUe||{}),SB=function(n){return n[n.Zero=0]="Zero",n[n.One=1]="One",n[n.Two=2]="Two",n[n.Few=3]="Few",n[n.Many=4]="Many",n[n.Other=5]="Other",n}(SB||{}),jp=function(n){return n[n.Format=0]="Format",n[n.Standalone=1]="Standalone",n}(jp||{}),Vl=function(n){return n[n.Narrow=0]="Narrow",n[n.Abbreviated=1]="Abbreviated",n[n.Wide=2]="Wide",n[n.Short=3]="Short",n}(Vl||{}),Zm=function(n){return n[n.Short=0]="Short",n[n.Medium=1]="Medium",n[n.Long=2]="Long",n[n.Full=3]="Full",n}(Zm||{}),Qm={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function V0t(n){return Lf(n)[Nc.LocaleId]}function U0t(n,e,t){let i=Lf(n),r=[i[Nc.DayPeriodsFormat],i[Nc.DayPeriodsStandalone]],o=x_(r,e);return x_(o,t)}function j0t(n,e,t){let i=Lf(n),r=[i[Nc.DaysFormat],i[Nc.DaysStandalone]],o=x_(r,e);return x_(o,t)}function H0t(n,e,t){let i=Lf(n),r=[i[Nc.MonthsFormat],i[Nc.MonthsStandalone]],o=x_(r,e);return x_(o,t)}function G0t(n,e){let i=Lf(n)[Nc.Eras];return x_(i,e)}function Ote(n,e){let t=Lf(n);return x_(t[Nc.DateFormat],e)}function Rte(n,e){let t=Lf(n);return x_(t[Nc.TimeFormat],e)}function Nte(n,e){let i=Lf(n)[Nc.DateTimeFormat];return x_(i,e)}function $w(n,e){let t=Lf(n),i=t[Nc.NumberSymbols][e];if(typeof i>"u"){if(e===Qm.CurrencyDecimal)return t[Nc.NumberSymbols][Qm.Decimal];if(e===Qm.CurrencyGroup)return t[Nc.NumberSymbols][Qm.Group]}return i}function Y0t(n,e){return Lf(n)[Nc.NumberFormats][e]}var q0t=T4e;function hUe(n){if(!n[Nc.ExtraData])throw new Error(`Missing extra locale data for the locale "${n[Nc.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function $0t(n){let e=Lf(n);return hUe(e),(e[Nc.ExtraData][2]||[]).map(i=>typeof i=="string"?Twe(i):[Twe(i[0]),Twe(i[1])])}function K0t(n,e,t){let i=Lf(n);hUe(i);let r=[i[Nc.ExtraData][0],i[Nc.ExtraData][1]],o=x_(r,e)||[];return x_(o,t)||[]}function x_(n,e){for(let t=e;t>-1;t--)if(typeof n[t]<"u")return n[t];throw new Error("Locale data API: locale data undefined")}function Twe(n){let[e,t]=n.split(":");return{hours:+e,minutes:+t}}var W0t=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Pte={},Z0t=/((?:[^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]*)/,Kw=function(n){return n[n.Short=0]="Short",n[n.ShortGMT=1]="ShortGMT",n[n.Long=2]="Long",n[n.Extended=3]="Extended",n}(Kw||{}),Ka=function(n){return n[n.FullYear=0]="FullYear",n[n.Month=1]="Month",n[n.Date=2]="Date",n[n.Hours=3]="Hours",n[n.Minutes=4]="Minutes",n[n.Seconds=5]="Seconds",n[n.FractionalSeconds=6]="FractionalSeconds",n[n.Day=7]="Day",n}(Ka||{}),$a=function(n){return n[n.DayPeriods=0]="DayPeriods",n[n.Days=1]="Days",n[n.Months=2]="Months",n[n.Eras=3]="Eras",n}($a||{});function Q0t(n,e,t,i){let r=syt(n);e=Yw(t,e)||e;let s=[],c;for(;e;)if(c=Z0t.exec(e),c){s=s.concat(c.slice(1));let x=s.pop();if(!x)break;e=x}else{s.push(e);break}let h=r.getTimezoneOffset();i&&(h=fUe(i,h),r=oyt(r,i,!0));let g="";return s.forEach(x=>{let C=nyt(x);g+=C?C(r,t,h):x==="''"?"'":x.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),g}function Ute(n,e,t){let i=new Date(0);return i.setFullYear(n,e,t),i.setHours(0,0,0),i}function Yw(n,e){let t=V0t(n);if(Pte[t]??={},Pte[t][e])return Pte[t][e];let i="";switch(e){case"shortDate":i=Ote(n,Zm.Short);break;case"mediumDate":i=Ote(n,Zm.Medium);break;case"longDate":i=Ote(n,Zm.Long);break;case"fullDate":i=Ote(n,Zm.Full);break;case"shortTime":i=Rte(n,Zm.Short);break;case"mediumTime":i=Rte(n,Zm.Medium);break;case"longTime":i=Rte(n,Zm.Long);break;case"fullTime":i=Rte(n,Zm.Full);break;case"short":let r=Yw(n,"shortTime"),o=Yw(n,"shortDate");i=Fte(Nte(n,Zm.Short),[r,o]);break;case"medium":let s=Yw(n,"mediumTime"),c=Yw(n,"mediumDate");i=Fte(Nte(n,Zm.Medium),[s,c]);break;case"long":let h=Yw(n,"longTime"),g=Yw(n,"longDate");i=Fte(Nte(n,Zm.Long),[h,g]);break;case"full":let x=Yw(n,"fullTime"),C=Yw(n,"fullDate");i=Fte(Nte(n,Zm.Full),[x,C]);break}return i&&(Pte[t][e]=i),i}function Fte(n,e){return e&&(n=n.replace(/\{([^}]+)}/g,function(t,i){return e!=null&&i in e?e[i]:t})),n}function c0(n,e,t="-",i,r){let o="";(n<0||r&&n<=0)&&(r?n=-n+1:(n=-n,o=t));let s=String(n);for(;s.length0||c>-t)&&(c+=t),n===Ka.Hours)c===0&&t===-12&&(c=12);else if(n===Ka.FractionalSeconds)return X0t(c,e);let h=$w(s,Qm.MinusSign);return c0(c,e,h,i,r)}}function J0t(n,e){switch(n){case Ka.FullYear:return e.getFullYear();case Ka.Month:return e.getMonth();case Ka.Date:return e.getDate();case Ka.Hours:return e.getHours();case Ka.Minutes:return e.getMinutes();case Ka.Seconds:return e.getSeconds();case Ka.FractionalSeconds:return e.getMilliseconds();case Ka.Day:return e.getDay();default:throw new Error(`Unknown DateType value "${n}".`)}}function Xl(n,e,t=jp.Format,i=!1){return function(r,o){return eyt(r,o,n,e,t,i)}}function eyt(n,e,t,i,r,o){switch(t){case $a.Months:return H0t(e,r,i)[n.getMonth()];case $a.Days:return j0t(e,r,i)[n.getDay()];case $a.DayPeriods:let s=n.getHours(),c=n.getMinutes();if(o){let g=$0t(e),x=K0t(e,r,i),C=g.findIndex(A=>{if(Array.isArray(A)){let[k,O]=A,F=s>=k.hours&&c>=k.minutes,L=s0?Math.floor(r/60):Math.ceil(r/60);switch(n){case Kw.Short:return(r>=0?"+":"")+c0(s,2,o)+c0(Math.abs(r%60),2,o);case Kw.ShortGMT:return"GMT"+(r>=0?"+":"")+c0(s,1,o);case Kw.Long:return"GMT"+(r>=0?"+":"")+c0(s,2,o)+":"+c0(Math.abs(r%60),2,o);case Kw.Extended:return i===0?"Z":(r>=0?"+":"")+c0(s,2,o)+":"+c0(Math.abs(r%60),2,o);default:throw new Error(`Unknown zone width "${n}"`)}}}var tyt=0,zte=4;function iyt(n){let e=Ute(n,tyt,1).getDay();return Ute(n,0,1+(e<=zte?zte:zte+7)-e)}function pUe(n){let e=n.getDay(),t=e===0?-3:zte-e;return Ute(n.getFullYear(),n.getMonth(),n.getDate()+t)}function Awe(n,e=!1){return function(t,i){let r;if(e){let o=new Date(t.getFullYear(),t.getMonth(),1).getDay()-1,s=t.getDate();r=1+Math.floor((s+o)/7)}else{let o=pUe(t),s=iyt(o.getFullYear()),c=o.getTime()-s.getTime();r=1+Math.round(c/6048e5)}return c0(r,n,$w(i,Qm.MinusSign))}}function Bte(n,e=!1){return function(t,i){let o=pUe(t).getFullYear();return c0(o,n,$w(i,Qm.MinusSign),e)}}var Dwe={};function nyt(n){if(Dwe[n])return Dwe[n];let e;switch(n){case"G":case"GG":case"GGG":e=Xl($a.Eras,Vl.Abbreviated);break;case"GGGG":e=Xl($a.Eras,Vl.Wide);break;case"GGGGG":e=Xl($a.Eras,Vl.Narrow);break;case"y":e=Fu(Ka.FullYear,1,0,!1,!0);break;case"yy":e=Fu(Ka.FullYear,2,0,!0,!0);break;case"yyy":e=Fu(Ka.FullYear,3,0,!1,!0);break;case"yyyy":e=Fu(Ka.FullYear,4,0,!1,!0);break;case"Y":e=Bte(1);break;case"YY":e=Bte(2,!0);break;case"YYY":e=Bte(3);break;case"YYYY":e=Bte(4);break;case"M":case"L":e=Fu(Ka.Month,1,1);break;case"MM":case"LL":e=Fu(Ka.Month,2,1);break;case"MMM":e=Xl($a.Months,Vl.Abbreviated);break;case"MMMM":e=Xl($a.Months,Vl.Wide);break;case"MMMMM":e=Xl($a.Months,Vl.Narrow);break;case"LLL":e=Xl($a.Months,Vl.Abbreviated,jp.Standalone);break;case"LLLL":e=Xl($a.Months,Vl.Wide,jp.Standalone);break;case"LLLLL":e=Xl($a.Months,Vl.Narrow,jp.Standalone);break;case"w":e=Awe(1);break;case"ww":e=Awe(2);break;case"W":e=Awe(1,!0);break;case"d":e=Fu(Ka.Date,1);break;case"dd":e=Fu(Ka.Date,2);break;case"c":case"cc":e=Fu(Ka.Day,1);break;case"ccc":e=Xl($a.Days,Vl.Abbreviated,jp.Standalone);break;case"cccc":e=Xl($a.Days,Vl.Wide,jp.Standalone);break;case"ccccc":e=Xl($a.Days,Vl.Narrow,jp.Standalone);break;case"cccccc":e=Xl($a.Days,Vl.Short,jp.Standalone);break;case"E":case"EE":case"EEE":e=Xl($a.Days,Vl.Abbreviated);break;case"EEEE":e=Xl($a.Days,Vl.Wide);break;case"EEEEE":e=Xl($a.Days,Vl.Narrow);break;case"EEEEEE":e=Xl($a.Days,Vl.Short);break;case"a":case"aa":case"aaa":e=Xl($a.DayPeriods,Vl.Abbreviated);break;case"aaaa":e=Xl($a.DayPeriods,Vl.Wide);break;case"aaaaa":e=Xl($a.DayPeriods,Vl.Narrow);break;case"b":case"bb":case"bbb":e=Xl($a.DayPeriods,Vl.Abbreviated,jp.Standalone,!0);break;case"bbbb":e=Xl($a.DayPeriods,Vl.Wide,jp.Standalone,!0);break;case"bbbbb":e=Xl($a.DayPeriods,Vl.Narrow,jp.Standalone,!0);break;case"B":case"BB":case"BBB":e=Xl($a.DayPeriods,Vl.Abbreviated,jp.Format,!0);break;case"BBBB":e=Xl($a.DayPeriods,Vl.Wide,jp.Format,!0);break;case"BBBBB":e=Xl($a.DayPeriods,Vl.Narrow,jp.Format,!0);break;case"h":e=Fu(Ka.Hours,1,-12);break;case"hh":e=Fu(Ka.Hours,2,-12);break;case"H":e=Fu(Ka.Hours,1);break;case"HH":e=Fu(Ka.Hours,2);break;case"m":e=Fu(Ka.Minutes,1);break;case"mm":e=Fu(Ka.Minutes,2);break;case"s":e=Fu(Ka.Seconds,1);break;case"ss":e=Fu(Ka.Seconds,2);break;case"S":e=Fu(Ka.FractionalSeconds,1);break;case"SS":e=Fu(Ka.FractionalSeconds,2);break;case"SSS":e=Fu(Ka.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":e=Lte(Kw.Short);break;case"ZZZZZ":e=Lte(Kw.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=Lte(Kw.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=Lte(Kw.Long);break;default:return null}return Dwe[n]=e,e}function fUe(n,e){n=n.replace(/:/g,"");let t=Date.parse("Jan 01, 1970 00:00:00 "+n)/6e4;return isNaN(t)?e:t}function ryt(n,e){return n=new Date(n.getTime()),n.setMinutes(n.getMinutes()+e),n}function oyt(n,e,t){let i=t?-1:1,r=n.getTimezoneOffset(),o=fUe(e,r);return ryt(n,i*(o-r))}function syt(n){if(tUe(n))return n;if(typeof n=="number"&&!isNaN(n))return new Date(n);if(typeof n=="string"){if(n=n.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(n)){let[r,o=1,s=1]=n.split("-").map(c=>+c);return Ute(r,o-1,s)}let t=parseFloat(n);if(!isNaN(n-t))return new Date(t);let i;if(i=n.match(W0t))return ayt(i)}let e=new Date(n);if(!tUe(e))throw new Error(`Unable to convert "${n}" into a date`);return e}function ayt(n){let e=new Date(0),t=0,i=0,r=n[8]?e.setUTCFullYear:e.setFullYear,o=n[8]?e.setUTCHours:e.setHours;n[9]&&(t=Number(n[9]+n[10]),i=Number(n[9]+n[11])),r.call(e,Number(n[1]),Number(n[2])-1,Number(n[3]));let s=Number(n[4]||0)-t,c=Number(n[5]||0)-i,h=Number(n[6]||0),g=Math.floor(parseFloat("0."+(n[7]||0))*1e3);return o.call(e,s,c,h,g),e}function tUe(n){return n instanceof Date&&!isNaN(n.valueOf())}var lyt=/^(\d+)?\.((\d+)(-(\d+))?)?$/,iUe=22,jte=".",c8="0",cyt=";",uyt=",",kwe="#";function dyt(n,e,t,i,r,o,s=!1){let c="",h=!1;if(!isFinite(n))c=$w(t,Qm.Infinity);else{let g=myt(n);s&&(g=fyt(g));let x=e.minInt,C=e.minFrac,A=e.maxFrac;if(o){let j=o.match(lyt);if(j===null)throw new Error(`${o} is not a valid digit info`);let K=j[1],ee=j[3],ne=j[5];K!=null&&(x=Mwe(K)),ee!=null&&(C=Mwe(ee)),ne!=null?A=Mwe(ne):ee!=null&&C>A&&(A=C)}gyt(g,C,A);let k=g.digits,O=g.integerLen,F=g.exponent,L=[];for(h=k.every(j=>!j);O0?L=k.splice(O,k.length):(L=k,k=[0]);let z=[];for(k.length>=e.lgSize&&z.unshift(k.splice(-e.lgSize,k.length).join(""));k.length>e.gSize;)z.unshift(k.splice(-e.gSize,k.length).join(""));k.length&&z.unshift(k.join("")),c=z.join($w(t,i)),L.length&&(c+=$w(t,r)+L.join("")),F&&(c+=$w(t,Qm.Exponential)+"+"+F)}return n<0&&!h?c=e.negPre+c+e.negSuf:c=e.posPre+c+e.posSuf,c}function hyt(n,e,t){let i=Y0t(e,dUe.Decimal),r=pyt(i,$w(e,Qm.MinusSign));return dyt(n,r,e,Qm.Group,Qm.Decimal,t)}function pyt(n,e="-"){let t={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},i=n.split(cyt),r=i[0],o=i[1],s=r.indexOf(jte)!==-1?r.split(jte):[r.substring(0,r.lastIndexOf(c8)+1),r.substring(r.lastIndexOf(c8)+1)],c=s[0],h=s[1]||"";t.posPre=c.substring(0,c.indexOf(kwe));for(let x=0;x-1&&(e=e.replace(jte,"")),(o=e.search(/e/i))>0?(r<0&&(r=o),r+=+e.slice(o+1),e=e.substring(0,o)):r<0&&(r=e.length),o=0;e.charAt(o)===c8;o++);if(o===(c=e.length))i=[0],r=1;else{for(c--;e.charAt(c)===c8;)c--;for(r-=o,i=[],s=0;o<=c;o++,s++)i[s]=Number(e.charAt(o))}return r>iUe&&(i=i.splice(0,iUe-1),t=r-1,r=1),{digits:i,exponent:t,integerLen:r}}function gyt(n,e,t){if(e>t)throw new Error(`The minimum number of digits after fraction (${e}) is higher than the maximum (${t}).`);let i=n.digits,r=i.length-n.integerLen,o=Math.min(Math.max(e,r),t),s=o+n.integerLen,c=i[s];if(s>0){i.splice(Math.max(n.integerLen,s));for(let C=s;C=5)if(s-1<0){for(let C=0;C>s;C--)i.unshift(0),n.integerLen++;i.unshift(1),n.integerLen++}else i[s-1]++;for(;r=g?O.pop():h=!1),A>=10?1:0},0);x&&(i.unshift(x),n.integerLen++)}function Mwe(n){let e=parseInt(n);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+n);return e}var mUe=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=It({token:e,factory:function(r){let o=null;return r?o=new r:o=(s=>new vyt(s))(Ke(zI)),o},providedIn:"root"});let n=e;return n})();function _yt(n,e,t,i){let r=`=${n}`;if(e.indexOf(r)>-1||(r=t.getPluralCategory(n,i),e.indexOf(r)>-1))return r;if(e.indexOf("other")>-1)return"other";throw new Error(`No plural message found for value "${n}"`)}var vyt=(()=>{let e=class e extends mUe{constructor(i){super(),this.locale=i}getPluralCategory(i,r){switch(q0t(r||this.locale)(i)){case SB.Zero:return"zero";case SB.One:return"one";case SB.Two:return"two";case SB.Few:return"few";case SB.Many:return"many";default:return"other"}}};e.\u0275fac=function(r){return new(r||e)(Ke(zI))},e.\u0275prov=It({token:e,factory:e.\u0275fac});let n=e;return n})();function Hte(n,e){e=encodeURIComponent(e);for(let t of n.split(";")){let i=t.indexOf("="),[r,o]=i==-1?[t,""]:[t.slice(0,i),t.slice(i+1)];if(r.trim()===e)return decodeURIComponent(o)}return null}var Owe=/\s+/,nUe=[],Xa=(()=>{let e=class e{constructor(i,r){this._ngEl=i,this._renderer=r,this.initialClasses=nUe,this.stateMap=new Map}set klass(i){this.initialClasses=i!=null?i.trim().split(Owe):nUe}set ngClass(i){this.rawClass=typeof i=="string"?i.trim().split(Owe):i}ngDoCheck(){for(let r of this.initialClasses)this._updateState(r,!0);let i=this.rawClass;if(Array.isArray(i)||i instanceof Set)for(let r of i)this._updateState(r,!0);else if(i!=null)for(let r of Object.keys(i))this._updateState(r,!!i[r]);this._applyStateDiff()}_updateState(i,r){let o=this.stateMap.get(i);o!==void 0?(o.enabled!==r&&(o.changed=!0,o.enabled=r),o.touched=!0):this.stateMap.set(i,{enabled:r,changed:!0,touched:!0})}_applyStateDiff(){for(let i of this.stateMap){let r=i[0],o=i[1];o.changed?(this._toggleClass(r,o.enabled),o.changed=!1):o.touched||(o.enabled&&this._toggleClass(r,!1),this.stateMap.delete(r)),o.touched=!1}}_toggleClass(i,r){i=i.trim(),i.length>0&&i.split(Owe).forEach(o=>{r?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}};e.\u0275fac=function(r){return new(r||e)(oe(Ai),oe(Fl))},e.\u0275dir=Ki({type:e,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"},standalone:!0});let n=e;return n})();var Rwe=class{constructor(e,t,i,r){this.$implicit=e,this.ngForOf=t,this.index=i,this.count=r}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},Hf=(()=>{let e=class e{set ngForOf(i){this._ngForOf=i,this._ngForOfDirty=!0}set ngForTrackBy(i){this._trackByFn=i}get ngForTrackBy(){return this._trackByFn}constructor(i,r,o){this._viewContainer=i,this._template=r,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(i){i&&(this._template=i)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let i=this._ngForOf;if(!this._differ&&i)if(0)try{}catch{}else this._differ=this._differs.find(i).create(this.ngForTrackBy)}if(this._differ){let i=this._differ.diff(this._ngForOf);i&&this._applyChanges(i)}}_applyChanges(i){let r=this._viewContainer;i.forEachOperation((o,s,c)=>{if(o.previousIndex==null)r.createEmbeddedView(this._template,new Rwe(o.item,this._ngForOf,-1,-1),c===null?void 0:c);else if(c==null)r.remove(s===null?void 0:s);else if(s!==null){let h=r.get(s);r.move(h,c),rUe(h,o)}});for(let o=0,s=r.length;o{let s=r.get(o.currentIndex);rUe(s,o)})}static ngTemplateContextGuard(i,r){return!0}};e.\u0275fac=function(r){return new(r||e)(oe(Sc),oe(qa),oe(sH))},e.\u0275dir=Ki({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0});let n=e;return n})();function rUe(n,e){n.context.$implicit=e.item}var Ul=(()=>{let e=class e{constructor(i,r){this._viewContainer=i,this._context=new Nwe,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(i){this._context.$implicit=this._context.ngIf=i,this._updateView()}set ngIfThen(i){oUe("ngIfThen",i),this._thenTemplateRef=i,this._thenViewRef=null,this._updateView()}set ngIfElse(i){oUe("ngIfElse",i),this._elseTemplateRef=i,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(i,r){return!0}};e.\u0275fac=function(r){return new(r||e)(oe(Sc),oe(qa))},e.\u0275dir=Ki({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0});let n=e;return n})(),Nwe=class{constructor(){this.$implicit=null,this.ngIf=null}};function oUe(n,e){if(!!!(!e||e.createEmbeddedView))throw new Error(`${n} must be a TemplateRef, but received '${Pp(e)}'.`)}var Zc=(()=>{let e=class e{constructor(i,r,o){this._ngEl=i,this._differs=r,this._renderer=o,this._ngStyle=null,this._differ=null}set ngStyle(i){this._ngStyle=i,!this._differ&&i&&(this._differ=this._differs.find(i).create())}ngDoCheck(){if(this._differ){let i=this._differ.diff(this._ngStyle);i&&this._applyChanges(i)}}_setStyle(i,r){let[o,s]=i.split("."),c=o.indexOf("-")===-1?void 0:Eb.DashCase;r!=null?this._renderer.setStyle(this._ngEl.nativeElement,o,s?`${r}${s}`:r,c):this._renderer.removeStyle(this._ngEl.nativeElement,o,c)}_applyChanges(i){i.forEachRemovedItem(r=>this._setStyle(r.key,null)),i.forEachAddedItem(r=>this._setStyle(r.key,r.currentValue)),i.forEachChangedItem(r=>this._setStyle(r.key,r.currentValue))}};e.\u0275fac=function(r){return new(r||e)(oe(Ai),oe(Tee),oe(Fl))},e.\u0275dir=Ki({type:e,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0});let n=e;return n})(),Rs=(()=>{let e=class e{constructor(i){this._viewContainerRef=i,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(i){if(this._shouldRecreateView(i)){let r=this._viewContainerRef;if(this._viewRef&&r.remove(r.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let o=this._createContextForwardProxy();this._viewRef=r.createEmbeddedView(this.ngTemplateOutlet,o,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(i){return!!i.ngTemplateOutlet||!!i.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(i,r,o)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,r,o):!1,get:(i,r,o)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,r,o)}})}};e.\u0275fac=function(r){return new(r||e)(oe(Sc))},e.\u0275dir=Ki({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[eo]});let n=e;return n})();function Gte(n,e){return new Fn(2100,!1)}var Pwe=class{createSubscription(e,t){return lH(()=>e.subscribe({next:t,error:i=>{throw i}}))}dispose(e){lH(()=>e.unsubscribe())}},Fwe=class{createSubscription(e,t){return e.then(t,i=>{throw i})}dispose(e){}},yyt=new Fwe,byt=new Pwe,gUe=(()=>{let e=class e{constructor(i){this._latestValue=null,this.markForCheckOnValueUpdate=!0,this._subscription=null,this._obj=null,this._strategy=null,this._ref=i}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(i){if(!this._obj){if(i)try{this.markForCheckOnValueUpdate=!1,this._subscribe(i)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return i!==this._obj?(this._dispose(),this.transform(i)):this._latestValue}_subscribe(i){this._obj=i,this._strategy=this._selectStrategy(i),this._subscription=this._strategy.createSubscription(i,r=>this._updateLatestValue(i,r))}_selectStrategy(i){if(BI(i))return yyt;if(u1e(i))return byt;throw Gte(e,i)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(i,r){i===this._obj&&(this._latestValue=r,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}};e.\u0275fac=function(r){return new(r||e)(oe(ur,16))},e.\u0275pipe=Kj({name:"async",type:e,pure:!1,standalone:!0});let n=e;return n})();var xyt="mediumDate",wyt=new fi(""),Cyt=new fi(""),dT=(()=>{let e=class e{constructor(i,r,o){this.locale=i,this.defaultTimezone=r,this.defaultOptions=o}transform(i,r,o,s){if(i==null||i===""||i!==i)return null;try{let c=r??this.defaultOptions?.dateFormat??xyt,h=o??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return Q0t(i,c,s||this.locale,h)}catch(c){throw Gte(e,c.message)}}};e.\u0275fac=function(r){return new(r||e)(oe(zI,16),oe(wyt,24),oe(Cyt,24))},e.\u0275pipe=Kj({name:"date",type:e,pure:!0,standalone:!0});let n=e;return n})(),Syt=/#/g,_Ue=(()=>{let e=class e{constructor(i){this._localization=i}transform(i,r,o){if(i==null)return"";if(typeof r!="object"||r===null)throw Gte(e,r);let s=_yt(i,Object.keys(r),this._localization,o);return r[s].replace(Syt,i.toString())}};e.\u0275fac=function(r){return new(r||e)(oe(mUe,16))},e.\u0275pipe=Kj({name:"i18nPlural",type:e,pure:!0,standalone:!0});let n=e;return n})();var vUe=(()=>{let e=class e{constructor(i){this._locale=i}transform(i,r,o){if(!Eyt(i))return null;o||=this._locale;try{let s=Iyt(i);return hyt(s,o,r)}catch(s){throw Gte(e,s.message)}}};e.\u0275fac=function(r){return new(r||e)(oe(zI,16))},e.\u0275pipe=Kj({name:"number",type:e,pure:!0,standalone:!0});let n=e;return n})();function Eyt(n){return!(n==null||n===""||n!==n)}function Iyt(n){if(typeof n=="string"&&!isNaN(Number(n)-parseFloat(n)))return Number(n);if(typeof n!="number")throw new Error(`${n} is not a number`);return n}var os=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=Oi({type:e}),e.\u0275inj=Mi({});let n=e;return n})(),jwe="browser",Tyt="server";function hl(n){return n===jwe}function Vb(n){return n===Tyt}var yUe=(()=>{let e=class e{};e.\u0275prov=It({token:e,providedIn:"root",factory:()=>hl(ai(va))?new Lwe(ai(Ln),window):new Bwe});let n=e;return n})(),Lwe=class{constructor(e,t){this.document=e,this.window=t,this.offset=()=>[0,0]}setOffset(e){Array.isArray(e)?this.offset=()=>e:this.offset=e}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(e){this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){let t=Ayt(this.document,e);t&&(this.scrollToElement(t),t.focus())}setHistoryScrollRestoration(e){this.window.history.scrollRestoration=e}scrollToElement(e){let t=e.getBoundingClientRect(),i=t.left+this.window.pageXOffset,r=t.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(i-o[0],r-o[1])}};function Ayt(n,e){let t=n.getElementById(e)||n.getElementsByName(e)[0];if(t)return t;if(typeof n.createTreeWalker=="function"&&n.body&&typeof n.body.attachShadow=="function"){let i=n.createTreeWalker(n.body,NodeFilter.SHOW_ELEMENT),r=i.currentNode;for(;r;){let o=r.shadowRoot;if(o){let s=o.getElementById(e)||o.querySelector(`[name="${e}"]`);if(s)return s}r=i.nextNode()}}return null}var Bwe=class{setOffset(e){}getScrollPosition(){return[0,0]}scrollToPosition(e){}scrollToAnchor(e){}setHistoryScrollRestoration(e){}},EB=class{};var h8=class{},qte=class{},Zw=class n{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?typeof e=="string"?this.lazyInit=()=>{this.headers=new Map,e.split(` `).forEach(t=>{let i=t.indexOf(":");if(i>0){let r=t.slice(0,i),o=r.toLowerCase(),s=t.slice(i+1).trim();this.maybeSetNormalizedName(r,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:typeof Headers<"u"&&e instanceof Headers?(this.headers=new Map,e.forEach((t,i)=>{this.setHeaderEntries(i,t)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(e).forEach(([t,i])=>{this.setHeaderEntries(t,i)})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();let t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,t){return this.clone({name:e,value:t,op:"a"})}set(e,t){return this.clone({name:e,value:t,op:"s"})}delete(e,t){return this.clone({name:e,value:t,op:"d"})}maybeSetNormalizedName(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)}init(){this.lazyInit&&(this.lazyInit instanceof n?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(t=>{this.headers.set(t,e.headers.get(t)),this.normalizedNames.set(t,e.normalizedNames.get(t))})}clone(e){let t=new n;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof n?this.lazyInit:this,t.lazyUpdate=(this.lazyUpdate||[]).concat([e]),t}applyUpdate(e){let t=e.name.toLowerCase();switch(e.op){case"a":case"s":let i=e.value;if(typeof i=="string"&&(i=[i]),i.length===0)return;this.maybeSetNormalizedName(e.name,t);let r=(e.op==="a"?this.headers.get(t):void 0)||[];r.push(...i),this.headers.set(t,r);break;case"d":let o=e.value;if(!o)this.headers.delete(t),this.normalizedNames.delete(t);else{let s=this.headers.get(t);if(!s)return;s=s.filter(c=>o.indexOf(c)===-1),s.length===0?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,s)}break}}setHeaderEntries(e,t){let i=(Array.isArray(t)?t:[t]).map(o=>o.toString()),r=e.toLowerCase();this.headers.set(r,i),this.maybeSetNormalizedName(e,r)}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(t=>e(this.normalizedNames.get(t),this.headers.get(t)))}};var Gwe=class{encodeKey(e){return bUe(e)}encodeValue(e){return bUe(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};function Dyt(n,e){let t=new Map;return n.length>0&&n.replace(/^\?/,"").split("&").forEach(r=>{let o=r.indexOf("="),[s,c]=o==-1?[e.decodeKey(r),""]:[e.decodeKey(r.slice(0,o)),e.decodeValue(r.slice(o+1))],h=t.get(s)||[];h.push(c),t.set(s,h)}),t}var kyt=/%(\d[a-f0-9])/gi,Myt={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function bUe(n){return encodeURIComponent(n).replace(kyt,(e,t)=>Myt[t]??e)}function Yte(n){return`${n}`}var Bs=class n{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new Gwe,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=Dyt(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(t=>{let i=e.fromObject[t],r=Array.isArray(i)?i.map(Yte):[Yte(i)];this.map.set(t,r)})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();let t=this.map.get(e);return t?t[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,t){return this.clone({param:e,value:t,op:"a"})}appendAll(e){let t=[];return Object.keys(e).forEach(i=>{let r=e[i];Array.isArray(r)?r.forEach(o=>{t.push({param:i,value:o,op:"a"})}):t.push({param:i,value:r,op:"a"})}),this.clone(t)}set(e,t){return this.clone({param:e,value:t,op:"s"})}delete(e,t){return this.clone({param:e,value:t,op:"d"})}toString(){return this.init(),this.keys().map(e=>{let t=this.encoder.encodeKey(e);return this.map.get(e).map(i=>t+"="+this.encoder.encodeValue(i)).join("&")}).filter(e=>e!=="").join("&")}clone(e){let t=new n({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat(e),t}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":let t=(e.op==="a"?this.map.get(e.param):void 0)||[];t.push(Yte(e.value)),this.map.set(e.param,t);break;case"d":if(e.value!==void 0){let i=this.map.get(e.param)||[],r=i.indexOf(Yte(e.value));r!==-1&&i.splice(r,1),i.length>0?this.map.set(e.param,i):this.map.delete(e.param)}else{this.map.delete(e.param);break}}}),this.cloneFrom=this.updates=null)}};var Ywe=class{constructor(){this.map=new Map}set(e,t){return this.map.set(e,t),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}};function Oyt(n){switch(n){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function xUe(n){return typeof ArrayBuffer<"u"&&n instanceof ArrayBuffer}function wUe(n){return typeof Blob<"u"&&n instanceof Blob}function CUe(n){return typeof FormData<"u"&&n instanceof FormData}function Ryt(n){return typeof URLSearchParams<"u"&&n instanceof URLSearchParams}var d8=class n{constructor(e,t,i,r){this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase();let o;if(Oyt(this.method)||r?(this.body=i!==void 0?i:null,o=r):o=i,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),this.transferCache=o.transferCache),this.headers??=new Zw,this.context??=new Ywe,!this.params)this.params=new Bs,this.urlWithParams=t;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=t;else{let c=t.indexOf("?"),h=c===-1?"?":cA.set(k,e.setHeaders[k]),g)),e.setParams&&(x=Object.keys(e.setParams).reduce((A,k)=>A.set(k,e.setParams[k]),x)),new n(t,i,s,{params:x,headers:g,context:C,reportProgress:h,responseType:r,withCredentials:c,transferCache:o})}},pT=function(n){return n[n.Sent=0]="Sent",n[n.UploadProgress=1]="UploadProgress",n[n.ResponseHeader=2]="ResponseHeader",n[n.DownloadProgress=3]="DownloadProgress",n[n.Response=4]="Response",n[n.User=5]="User",n}(pT||{}),p8=class{constructor(e,t=200,i="OK"){this.headers=e.headers||new Zw,this.status=e.status!==void 0?e.status:t,this.statusText=e.statusText||i,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}},$te=class n extends p8{constructor(e={}){super(e),this.type=pT.ResponseHeader}clone(e={}){return new n({headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},f8=class n extends p8{constructor(e={}){super(e),this.type=pT.Response,this.body=e.body!==void 0?e.body:null}clone(e={}){return new n({body:e.body!==void 0?e.body:this.body,headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},hT=class extends p8{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${e.url||"(unknown url)"}`:this.message=`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}},AUe=200,Nyt=204;function Hwe(n,e){return{body:e,headers:n.headers,context:n.context,observe:n.observe,params:n.params,reportProgress:n.reportProgress,responseType:n.responseType,withCredentials:n.withCredentials,transferCache:n.transferCache}}var ms=(()=>{let e=class e{constructor(i){this.handler=i}request(i,r,o={}){let s;if(i instanceof d8)s=i;else{let g;o.headers instanceof Zw?g=o.headers:g=new Zw(o.headers);let x;o.params&&(o.params instanceof Bs?x=o.params:x=new Bs({fromObject:o.params})),s=new d8(i,r,o.body!==void 0?o.body:null,{headers:g,context:o.context,params:x,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache})}let c=kn(s).pipe(h_(g=>this.handler.handle(g)));if(i instanceof d8||o.observe==="events")return c;let h=c.pipe(Wn(g=>g instanceof f8));switch(o.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return h.pipe(ri(g=>{if(g.body!==null&&!(g.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return g.body}));case"blob":return h.pipe(ri(g=>{if(g.body!==null&&!(g.body instanceof Blob))throw new Error("Response is not a Blob.");return g.body}));case"text":return h.pipe(ri(g=>{if(g.body!==null&&typeof g.body!="string")throw new Error("Response is not a string.");return g.body}));case"json":default:return h.pipe(ri(g=>g.body))}case"response":return h;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(i,r={}){return this.request("DELETE",i,r)}get(i,r={}){return this.request("GET",i,r)}head(i,r={}){return this.request("HEAD",i,r)}jsonp(i,r){return this.request("JSONP",i,{params:new Bs().append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(i,r={}){return this.request("OPTIONS",i,r)}patch(i,r,o={}){return this.request("PATCH",i,Hwe(o,r))}post(i,r,o={}){return this.request("POST",i,Hwe(o,r))}put(i,r,o={}){return this.request("PUT",i,Hwe(o,r))}};e.\u0275fac=function(r){return new(r||e)(Ke(h8))},e.\u0275prov=It({token:e,factory:e.\u0275fac});let n=e;return n})(),Pyt=/^\)\]\}',?\n/,Fyt="X-Request-URL";function SUe(n){if(n.url)return n.url;let e=Fyt.toLocaleLowerCase();return n.headers.get(e)}var Lyt=(()=>{let e=class e{constructor(){this.fetchImpl=ai(qwe,{optional:!0})?.fetch??fetch.bind(globalThis),this.ngZone=ai(Zi)}handle(i){return new fo(r=>{let o=new AbortController;return this.doRequest(i,o.signal,r).then($we,s=>r.error(new hT({error:s}))),()=>o.abort()})}doRequest(i,r,o){return ct(this,null,function*(){let s=this.createRequestInit(i),c;try{let O=this.fetchImpl(i.urlWithParams,Ce({signal:r},s));Byt(O),o.next({type:pT.Sent}),c=yield O}catch(O){o.error(new hT({error:O,status:O.status??0,statusText:O.statusText,url:i.urlWithParams,headers:O.headers}));return}let h=new Zw(c.headers),g=c.statusText,x=SUe(c)??i.urlWithParams,C=c.status,A=null;if(i.reportProgress&&o.next(new $te({headers:h,status:C,statusText:g,url:x})),c.body){let O=c.headers.get("content-length"),F=[],L=c.body.getReader(),z=0,j,K,ee=typeof Zone<"u"&&Zone.current;yield this.ngZone.runOutsideAngular(()=>ct(this,null,function*(){for(;;){let{done:X,value:q}=yield L.read();if(X)break;if(F.push(q),z+=q.length,i.reportProgress){K=i.responseType==="text"?(K??"")+(j??=new TextDecoder).decode(q,{stream:!0}):void 0;let fe=()=>o.next({type:pT.DownloadProgress,total:O?+O:void 0,loaded:z,partialText:K});ee?ee.run(fe):fe()}}}));let ne=this.concatChunks(F,z);try{let X=c.headers.get("Content-Type")??"";A=this.parseBody(i,ne,X)}catch(X){o.error(new hT({error:X,headers:new Zw(c.headers),status:c.status,statusText:c.statusText,url:SUe(c)??i.urlWithParams}));return}}C===0&&(C=A?AUe:0),C>=200&&C<300?(o.next(new f8({body:A,headers:h,status:C,statusText:g,url:x})),o.complete()):o.error(new hT({error:A,headers:h,status:C,statusText:g,url:x}))})}parseBody(i,r,o){switch(i.responseType){case"json":let s=new TextDecoder().decode(r).replace(Pyt,"");return s===""?null:JSON.parse(s);case"text":return new TextDecoder().decode(r);case"blob":return new Blob([r],{type:o});case"arraybuffer":return r.buffer}}createRequestInit(i){let r={},o=i.withCredentials?"include":void 0;if(i.headers.forEach((s,c)=>r[s]=c.join(",")),r.Accept??="application/json, text/plain, */*",!r["Content-Type"]){let s=i.detectContentTypeHeader();s!==null&&(r["Content-Type"]=s)}return{body:i.serializeBody(),method:i.method,headers:r,credentials:o}}concatChunks(i,r){let o=new Uint8Array(r),s=0;for(let c of i)o.set(c,s),s+=c.length;return o}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=It({token:e,factory:e.\u0275fac});let n=e;return n})(),qwe=class{};function $we(){}function Byt(n){n.then($we,$we)}function DUe(n,e){return e(n)}function zyt(n,e){return(t,i)=>e.intercept(t,{handle:r=>n(r,i)})}function Vyt(n,e,t){return(i,r)=>Nf(t,()=>e(i,o=>n(o,r)))}var Kwe=new fi(""),Wwe=new fi(""),Uyt=new fi(""),kUe=new fi("",{providedIn:"root",factory:()=>!0});function jyt(){let n=null;return(e,t)=>{n===null&&(n=(ai(Kwe,{optional:!0})??[]).reduceRight(zyt,DUe));let i=ai(Ew);if(ai(kUe)){let o=i.add();return n(e,t).pipe(yb(()=>i.remove(o)))}else return n(e,t)}}var EUe=(()=>{let e=class e extends h8{constructor(i,r){super(),this.backend=i,this.injector=r,this.chain=null,this.pendingTasks=ai(Ew),this.contributeToStability=ai(kUe)}handle(i){if(this.chain===null){let r=Array.from(new Set([...this.injector.get(Wwe),...this.injector.get(Uyt,[])]));this.chain=r.reduceRight((o,s)=>Vyt(o,s,this.injector),DUe)}if(this.contributeToStability){let r=this.pendingTasks.add();return this.chain(i,o=>this.backend.handle(o)).pipe(yb(()=>this.pendingTasks.remove(r)))}else return this.chain(i,r=>this.backend.handle(r))}};e.\u0275fac=function(r){return new(r||e)(Ke(qte),Ke(zd))},e.\u0275prov=It({token:e,factory:e.\u0275fac});let n=e;return n})();var Hyt=/^\)\]\}',?\n/;function Gyt(n){return"responseURL"in n&&n.responseURL?n.responseURL:/^X-Request-URL:/m.test(n.getAllResponseHeaders())?n.getResponseHeader("X-Request-URL"):null}var IUe=(()=>{let e=class e{constructor(i){this.xhrFactory=i}handle(i){if(i.method==="JSONP")throw new Fn(-2800,!1);let r=this.xhrFactory;return(r.\u0275loadImpl?wo(r.\u0275loadImpl()):kn(null)).pipe(lr(()=>new fo(s=>{let c=r.build();if(c.open(i.method,i.urlWithParams),i.withCredentials&&(c.withCredentials=!0),i.headers.forEach((L,z)=>c.setRequestHeader(L,z.join(","))),i.headers.has("Accept")||c.setRequestHeader("Accept","application/json, text/plain, */*"),!i.headers.has("Content-Type")){let L=i.detectContentTypeHeader();L!==null&&c.setRequestHeader("Content-Type",L)}if(i.responseType){let L=i.responseType.toLowerCase();c.responseType=L!=="json"?L:"text"}let h=i.serializeBody(),g=null,x=()=>{if(g!==null)return g;let L=c.statusText||"OK",z=new Zw(c.getAllResponseHeaders()),j=Gyt(c)||i.url;return g=new $te({headers:z,status:c.status,statusText:L,url:j}),g},C=()=>{let{headers:L,status:z,statusText:j,url:K}=x(),ee=null;z!==Nyt&&(ee=typeof c.response>"u"?c.responseText:c.response),z===0&&(z=ee?AUe:0);let ne=z>=200&&z<300;if(i.responseType==="json"&&typeof ee=="string"){let X=ee;ee=ee.replace(Hyt,"");try{ee=ee!==""?JSON.parse(ee):null}catch(q){ee=X,ne&&(ne=!1,ee={error:q,text:ee})}}ne?(s.next(new f8({body:ee,headers:L,status:z,statusText:j,url:K||void 0})),s.complete()):s.error(new hT({error:ee,headers:L,status:z,statusText:j,url:K||void 0}))},A=L=>{let{url:z}=x(),j=new hT({error:L,status:c.status||0,statusText:c.statusText||"Unknown Error",url:z||void 0});s.error(j)},k=!1,O=L=>{k||(s.next(x()),k=!0);let z={type:pT.DownloadProgress,loaded:L.loaded};L.lengthComputable&&(z.total=L.total),i.responseType==="text"&&c.responseText&&(z.partialText=c.responseText),s.next(z)},F=L=>{let z={type:pT.UploadProgress,loaded:L.loaded};L.lengthComputable&&(z.total=L.total),s.next(z)};return c.addEventListener("load",C),c.addEventListener("error",A),c.addEventListener("timeout",A),c.addEventListener("abort",A),i.reportProgress&&(c.addEventListener("progress",O),h!==null&&c.upload&&c.upload.addEventListener("progress",F)),c.send(h),s.next({type:pT.Sent}),()=>{c.removeEventListener("error",A),c.removeEventListener("abort",A),c.removeEventListener("load",C),c.removeEventListener("timeout",A),i.reportProgress&&(c.removeEventListener("progress",O),h!==null&&c.upload&&c.upload.removeEventListener("progress",F)),c.readyState!==c.DONE&&c.abort()}})))}};e.\u0275fac=function(r){return new(r||e)(Ke(EB))},e.\u0275prov=It({token:e,factory:e.\u0275fac});let n=e;return n})(),MUe=new fi(""),Yyt="XSRF-TOKEN",qyt=new fi("",{providedIn:"root",factory:()=>Yyt}),$yt="X-XSRF-TOKEN",Kyt=new fi("",{providedIn:"root",factory:()=>$yt}),Kte=class{},Wyt=(()=>{let e=class e{constructor(i,r,o){this.doc=i,this.platform=r,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if(this.platform==="server")return null;let i=this.doc.cookie||"";return i!==this.lastCookieString&&(this.parseCount++,this.lastToken=Hte(i,this.cookieName),this.lastCookieString=i),this.lastToken}};e.\u0275fac=function(r){return new(r||e)(Ke(Ln),Ke(va),Ke(qyt))},e.\u0275prov=It({token:e,factory:e.\u0275fac});let n=e;return n})();function Zyt(n,e){let t=n.url.toLowerCase();if(!ai(MUe)||n.method==="GET"||n.method==="HEAD"||t.startsWith("http://")||t.startsWith("https://"))return e(n);let i=ai(Kte).getToken(),r=ai(Kyt);return i!=null&&!n.headers.has(r)&&(n=n.clone({headers:n.headers.set(r,i)})),e(n)}var OUe=function(n){return n[n.Interceptors=0]="Interceptors",n[n.LegacyInterceptors=1]="LegacyInterceptors",n[n.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",n[n.NoXsrfProtection=3]="NoXsrfProtection",n[n.JsonpSupport=4]="JsonpSupport",n[n.RequestsMadeViaParent=5]="RequestsMadeViaParent",n[n.Fetch=6]="Fetch",n}(OUe||{});function Qyt(n,e){return{\u0275kind:n,\u0275providers:e}}function RUe(...n){let e=[ms,IUe,EUe,{provide:h8,useExisting:EUe},{provide:qte,useFactory:()=>ai(Lyt,{optional:!0})??ai(IUe)},{provide:Wwe,useValue:Zyt,multi:!0},{provide:MUe,useValue:!0},{provide:Kte,useClass:Wyt}];for(let t of n)e.push(...t.\u0275providers);return rO(e)}var TUe=new fi("");function NUe(){return Qyt(OUe.LegacyInterceptors,[{provide:TUe,useFactory:jyt},{provide:Wwe,useExisting:TUe,multi:!0}])}var Xwe=class extends Vte{constructor(){super(...arguments),this.supportsDOMEvents=!0}},Jwe=class n extends Xwe{static makeCurrent(){aUe(new n)}onAndCancel(e,t,i){return e.addEventListener(t,i),()=>{e.removeEventListener(t,i)}}dispatchEvent(e,t){e.dispatchEvent(t)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,t){return t=t||this.getDefaultDocument(),t.createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,t){return t==="window"?window:t==="document"?e:t==="body"?e.body:null}getBaseHref(e){let t=Xyt();return t==null?null:Jyt(t)}resetBaseElement(){m8=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return Hte(document.cookie,e)}},m8=null;function Xyt(){return m8=m8||document.querySelector("base"),m8?m8.getAttribute("href"):null}function Jyt(n){return new URL(n,document.baseURI).pathname}var eCe=class{addToWindow(e){Bd.getAngularTestability=(i,r=!0)=>{let o=e.findTestabilityInTree(i,r);if(o==null)throw new Fn(5103,!1);return o},Bd.getAllAngularTestabilities=()=>e.getAllTestabilities(),Bd.getAllAngularRootElements=()=>e.getAllRootElements();let t=i=>{let r=Bd.getAllAngularTestabilities(),o=r.length,s=function(){o--,o==0&&i()};r.forEach(c=>{c.whenStable(s)})};Bd.frameworkStabilizers||(Bd.frameworkStabilizers=[]),Bd.frameworkStabilizers.push(t)}findTestabilityInTree(e,t,i){if(t==null)return null;let r=e.getTestability(t);return r??(i?zb().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null)}},ebt=(()=>{let e=class e{build(){return new XMLHttpRequest}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=It({token:e,factory:e.\u0275fac});let n=e;return n})(),tCe=new fi(""),LUe=(()=>{let e=class e{constructor(i,r){this._zone=r,this._eventNameToPlugin=new Map,i.forEach(o=>{o.manager=this}),this._plugins=i.slice().reverse()}addEventListener(i,r,o){return this._findPluginFor(r).addEventListener(i,r,o)}getZone(){return this._zone}_findPluginFor(i){let r=this._eventNameToPlugin.get(i);if(r)return r;if(r=this._plugins.find(s=>s.supports(i)),!r)throw new Fn(5101,!1);return this._eventNameToPlugin.set(i,r),r}};e.\u0275fac=function(r){return new(r||e)(Ke(tCe),Ke(Zi))},e.\u0275prov=It({token:e,factory:e.\u0275fac});let n=e;return n})(),Wte=class{constructor(e){this._doc=e}},Zwe="ng-app-id",BUe=(()=>{let e=class e{constructor(i,r,o,s={}){this.doc=i,this.appId=r,this.nonce=o,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=Vb(s),this.resetHostNodes()}addStyles(i){for(let r of i)this.changeUsageCount(r,1)===1&&this.onStyleAdded(r)}removeStyles(i){for(let r of i)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){let i=this.styleNodesInDOM;i&&(i.forEach(r=>r.remove()),i.clear());for(let r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(i){this.hostNodes.add(i);for(let r of this.getAllStyles())this.addStyleToHost(i,r)}removeHost(i){this.hostNodes.delete(i)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(i){for(let r of this.hostNodes)this.addStyleToHost(r,i)}onStyleRemoved(i){let r=this.styleRef;r.get(i)?.elements?.forEach(o=>o.remove()),r.delete(i)}collectServerRenderedStyles(){let i=this.doc.head?.querySelectorAll(`style[${Zwe}="${this.appId}"]`);if(i?.length){let r=new Map;return i.forEach(o=>{o.textContent!=null&&r.set(o.textContent,o)}),r}return null}changeUsageCount(i,r){let o=this.styleRef;if(o.has(i)){let s=o.get(i);return s.usage+=r,s.usage}return o.set(i,{usage:r,elements:[]}),r}getStyleElement(i,r){let o=this.styleNodesInDOM,s=o?.get(r);if(s?.parentNode===i)return o.delete(r),s.removeAttribute(Zwe),s;{let c=this.doc.createElement("style");return this.nonce&&c.setAttribute("nonce",this.nonce),c.textContent=r,this.platformIsServer&&c.setAttribute(Zwe,this.appId),i.appendChild(c),c}}addStyleToHost(i,r){let o=this.getStyleElement(i,r),s=this.styleRef,c=s.get(r)?.elements;c?c.push(o):s.set(r,{elements:[o],usage:1})}resetHostNodes(){let i=this.hostNodes;i.clear(),i.add(this.doc.head)}};e.\u0275fac=function(r){return new(r||e)(Ke(Ln),Ke(TL),Ke(Qj,8),Ke(va))},e.\u0275prov=It({token:e,factory:e.\u0275fac});let n=e;return n})(),Qwe={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/",math:"http://www.w3.org/1998/Math/MathML"},nCe=/%COMP%/g,zUe="%COMP%",tbt=`_nghost-${zUe}`,ibt=`_ngcontent-${zUe}`,nbt=!0,rbt=new fi("",{providedIn:"root",factory:()=>nbt});function obt(n){return ibt.replace(nCe,n)}function sbt(n){return tbt.replace(nCe,n)}function VUe(n,e){return e.map(t=>t.replace(nCe,n))}var Zte=(()=>{let e=class e{constructor(i,r,o,s,c,h,g,x=null){this.eventManager=i,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=s,this.doc=c,this.platformId=h,this.ngZone=g,this.nonce=x,this.rendererByCompId=new Map,this.platformIsServer=Vb(h),this.defaultRenderer=new g8(i,c,g,this.platformIsServer)}createRenderer(i,r){if(!i||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===wb.ShadowDom&&(r=wt(Ce({},r),{encapsulation:wb.Emulated}));let o=this.getOrCreateRenderer(i,r);return o instanceof Qte?o.applyToHost(i):o instanceof _8&&o.applyStyles(),o}getOrCreateRenderer(i,r){let o=this.rendererByCompId,s=o.get(r.id);if(!s){let c=this.doc,h=this.ngZone,g=this.eventManager,x=this.sharedStylesHost,C=this.removeStylesOnCompDestroy,A=this.platformIsServer;switch(r.encapsulation){case wb.Emulated:s=new Qte(g,x,r,this.appId,C,c,h,A);break;case wb.ShadowDom:return new iCe(g,x,i,r,c,h,this.nonce,A);default:s=new _8(g,x,r,C,c,h,A);break}o.set(r.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}};e.\u0275fac=function(r){return new(r||e)(Ke(LUe),Ke(BUe),Ke(TL),Ke(rbt),Ke(Ln),Ke(va),Ke(Zi),Ke(Qj))},e.\u0275prov=It({token:e,factory:e.\u0275fac});let n=e;return n})(),g8=class{constructor(e,t,i,r){this.eventManager=e,this.doc=t,this.ngZone=i,this.platformIsServer=r,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(e,t){return t?this.doc.createElementNS(Qwe[t]||t,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,t){(PUe(e)?e.content:e).appendChild(t)}insertBefore(e,t,i){e&&(PUe(e)?e.content:e).insertBefore(t,i)}removeChild(e,t){e&&e.removeChild(t)}selectRootElement(e,t){let i=typeof e=="string"?this.doc.querySelector(e):e;if(!i)throw new Fn(-5104,!1);return t||(i.textContent=""),i}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,i,r){if(r){t=r+":"+t;let o=Qwe[r];o?e.setAttributeNS(o,t,i):e.setAttribute(t,i)}else e.setAttribute(t,i)}removeAttribute(e,t,i){if(i){let r=Qwe[i];r?e.removeAttributeNS(r,t):e.removeAttribute(`${i}:${t}`)}else e.removeAttribute(t)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}setStyle(e,t,i,r){r&(Eb.DashCase|Eb.Important)?e.style.setProperty(t,i,r&Eb.Important?"important":""):e.style[t]=i}removeStyle(e,t,i){i&Eb.DashCase?e.style.removeProperty(t):e.style[t]=""}setProperty(e,t,i){e!=null&&(e[t]=i)}setValue(e,t){e.nodeValue=t}listen(e,t,i){if(typeof e=="string"&&(e=zb().getGlobalEventTarget(this.doc,e),!e))throw new Error(`Unsupported event target ${e} for event ${t}`);return this.eventManager.addEventListener(e,t,this.decoratePreventDefault(i))}decoratePreventDefault(e){return t=>{if(t==="__ngUnwrap__")return e;(this.platformIsServer?this.ngZone.runGuarded(()=>e(t)):e(t))===!1&&t.preventDefault()}}};function PUe(n){return n.tagName==="TEMPLATE"&&n.content!==void 0}var iCe=class extends g8{constructor(e,t,i,r,o,s,c,h){super(e,o,s,h),this.sharedStylesHost=t,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let g=VUe(r.id,r.styles);for(let x of g){let C=document.createElement("style");c&&C.setAttribute("nonce",c),C.textContent=x,this.shadowRoot.appendChild(C)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,t){return super.appendChild(this.nodeOrShadowRoot(e),t)}insertBefore(e,t,i){return super.insertBefore(this.nodeOrShadowRoot(e),t,i)}removeChild(e,t){return super.removeChild(this.nodeOrShadowRoot(e),t)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},_8=class extends g8{constructor(e,t,i,r,o,s,c,h){super(e,o,s,c),this.sharedStylesHost=t,this.removeStylesOnCompDestroy=r,this.styles=h?VUe(h,i.styles):i.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},Qte=class extends _8{constructor(e,t,i,r,o,s,c,h){let g=r+"-"+i.id;super(e,t,i,o,s,c,h,g),this.contentAttr=obt(g),this.hostAttr=sbt(g)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,t){let i=super.createElement(e,t);return super.setAttribute(i,this.contentAttr,""),i}},abt=(()=>{let e=class e extends Wte{constructor(i){super(i)}supports(i){return!0}addEventListener(i,r,o){return i.addEventListener(r,o,!1),()=>this.removeEventListener(i,r,o)}removeEventListener(i,r,o){return i.removeEventListener(r,o)}};e.\u0275fac=function(r){return new(r||e)(Ke(Ln))},e.\u0275prov=It({token:e,factory:e.\u0275fac});let n=e;return n})(),FUe=["alt","control","meta","shift"],lbt={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},cbt={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey},ubt=(()=>{let e=class e extends Wte{constructor(i){super(i)}supports(i){return e.parseEventName(i)!=null}addEventListener(i,r,o){let s=e.parseEventName(r),c=e.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>zb().onAndCancel(i,s.domEventName,c))}static parseEventName(i){let r=i.toLowerCase().split("."),o=r.shift();if(r.length===0||!(o==="keydown"||o==="keyup"))return null;let s=e._normalizeKey(r.pop()),c="",h=r.indexOf("code");if(h>-1&&(r.splice(h,1),c="code."),FUe.forEach(x=>{let C=r.indexOf(x);C>-1&&(r.splice(C,1),c+=x+".")}),c+=s,r.length!=0||s.length===0)return null;let g={};return g.domEventName=o,g.fullKey=c,g}static matchEventFullKeyCode(i,r){let o=lbt[i.key]||i.key,s="";return r.indexOf("code.")>-1&&(o=i.code,s="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),FUe.forEach(c=>{if(c!==o){let h=cbt[c];h(i)&&(s+=c+".")}}),s+=o,s===r)}static eventCallback(i,r,o){return s=>{e.matchEventFullKeyCode(s,i)&&o.runGuarded(()=>r(s))}}static _normalizeKey(i){return i==="esc"?"escape":i}};e.\u0275fac=function(r){return new(r||e)(Ke(Ln))},e.\u0275prov=It({token:e,factory:e.\u0275fac});let n=e;return n})();function UUe(n,e){return V4e(Ce({rootComponent:n},dbt(e)))}function dbt(n){return{appProviders:[...jUe,...n?.providers??[]],platformProviders:mbt}}function hbt(){Jwe.makeCurrent()}function pbt(){return new sd}function fbt(){return sVe(document),document}var mbt=[{provide:va,useValue:jwe},{provide:Vxe,useValue:hbt,multi:!0},{provide:Ln,useFactory:fbt,deps:[]}];var gbt=new fi(""),_bt=[{provide:oH,useClass:eCe,deps:[]},{provide:l1e,useClass:See,deps:[Zi,Eee,oH]},{provide:See,useClass:See,deps:[Zi,Eee,oH]}],jUe=[{provide:JJ,useValue:"root"},{provide:sd,useFactory:pbt,deps:[]},{provide:tCe,useClass:abt,multi:!0,deps:[Ln,Zi,va]},{provide:tCe,useClass:ubt,multi:!0,deps:[Ln]},Zte,BUe,LUe,{provide:Ib,useExisting:Zte},{provide:EB,useClass:ebt,deps:[]},[]],Xte=(()=>{let e=class e{constructor(i){}static withServerTransition(i){return{ngModule:e,providers:[{provide:TL,useValue:i.appId}]}}};e.\u0275fac=function(r){return new(r||e)(Ke(gbt,12))},e.\u0275mod=Oi({type:e}),e.\u0275inj=Mi({providers:[...jUe,..._bt],imports:[os,z4e]});let n=e;return n})();var Jte=(()=>{let e=class e{constructor(i){this._doc=i}getTitle(){return this._doc.title}setTitle(i){this._doc.title=i||""}};e.\u0275fac=function(r){return new(r||e)(Ke(Ln))},e.\u0275prov=It({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var rCe=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=It({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=Ke(vbt),o},providedIn:"root"});let n=e;return n})(),vbt=(()=>{let e=class e extends rCe{constructor(i){super(),this._doc=i}sanitize(i,r){if(r==null)return null;switch(i){case mh.NONE:return r;case mh.HTML:return FI(r,"HTML")?f_(r):vVe(this._doc,String(r)).toString();case mh.STYLE:return FI(r,"Style")?f_(r):r;case mh.SCRIPT:if(FI(r,"Script"))return f_(r);throw new Fn(5200,!1);case mh.URL:return FI(r,"URL")?f_(r):lee(String(r));case mh.RESOURCE_URL:if(FI(r,"ResourceURL"))return f_(r);throw new Fn(5201,!1);default:throw new Fn(5202,!1)}}bypassSecurityTrustHtml(i){return lVe(i)}bypassSecurityTrustStyle(i){return cVe(i)}bypassSecurityTrustScript(i){return uVe(i)}bypassSecurityTrustUrl(i){return dVe(i)}bypassSecurityTrustResourceUrl(i){return hVe(i)}};e.\u0275fac=function(r){return new(r||e)(Ke(Ln))},e.\u0275prov=It({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var Ns="primary",N8=Symbol("RouteTitle"),uCe=class{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){let t=this.params[e];return Array.isArray(t)?t[0]:t}return null}getAll(e){if(this.has(e)){let t=this.params[e];return Array.isArray(t)?t:[t]}return[]}get keys(){return Object.keys(this.params)}};function MB(n){return new uCe(n)}function ybt(n,e,t){let i=t.path.split("/");if(i.length>n.length||t.pathMatch==="full"&&(e.hasChildren()||i.lengthi[o]===r)}else return n===e}function e6e(n){return n.length>0?n[n.length-1]:null}function gT(n){return Mj(n)?n:BI(n)?wo(Promise.resolve(n)):kn(n)}var xbt={exact:i6e,subset:n6e},t6e={exact:wbt,subset:Cbt,ignored:()=>!0};function HUe(n,e,t){return xbt[t.paths](n.root,e.root,t.matrixParams)&&t6e[t.queryParams](n.queryParams,e.queryParams)&&!(t.fragment==="exact"&&n.fragment!==e.fragment)}function wbt(n,e){return Ub(n,e)}function i6e(n,e,t){if(!JO(n.segments,e.segments)||!iie(n.segments,e.segments,t)||n.numberOfChildren!==e.numberOfChildren)return!1;for(let i in e.children)if(!n.children[i]||!i6e(n.children[i],e.children[i],t))return!1;return!0}function Cbt(n,e){return Object.keys(e).length<=Object.keys(n).length&&Object.keys(e).every(t=>JUe(n[t],e[t]))}function n6e(n,e,t){return r6e(n,e,e.segments,t)}function r6e(n,e,t,i){if(n.segments.length>t.length){let r=n.segments.slice(0,t.length);return!(!JO(r,t)||e.hasChildren()||!iie(r,t,i))}else if(n.segments.length===t.length){if(!JO(n.segments,t)||!iie(n.segments,t,i))return!1;for(let r in e.children)if(!n.children[r]||!n6e(n.children[r],e.children[r],i))return!1;return!0}else{let r=t.slice(0,n.segments.length),o=t.slice(n.segments.length);return!JO(n.segments,r)||!iie(n.segments,r,i)||!n.children[Ns]?!1:r6e(n.children[Ns],e,o,i)}}function iie(n,e,t){return e.every((i,r)=>t6e[t](n[r].parameters,i.parameters))}var fT=class{constructor(e=new Ja([],{}),t={},i=null){this.root=e,this.queryParams=t,this.fragment=i}get queryParamMap(){return this._queryParamMap??=MB(this.queryParams),this._queryParamMap}toString(){return Ibt.serialize(this)}},Ja=class{constructor(e,t){this.segments=e,this.children=t,this.parent=null,Object.values(t).forEach(i=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return nie(this)}},XO=class{constructor(e,t){this.path=e,this.parameters=t}get parameterMap(){return this._parameterMap??=MB(this.parameters),this._parameterMap}toString(){return s6e(this)}};function Sbt(n,e){return JO(n,e)&&n.every((t,i)=>Ub(t.parameters,e[i].parameters))}function JO(n,e){return n.length!==e.length?!1:n.every((t,i)=>t.path===e[i].path)}function Ebt(n,e){let t=[];return Object.entries(n.children).forEach(([i,r])=>{i===Ns&&(t=t.concat(e(r,i)))}),Object.entries(n.children).forEach(([i,r])=>{i!==Ns&&(t=t.concat(e(r,i)))}),t}var P8=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=It({token:e,factory:()=>new OB,providedIn:"root"});let n=e;return n})(),OB=class{parse(e){let t=new pCe(e);return new fT(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(e){let t=`/${v8(e.root,!0)}`,i=Dbt(e.queryParams),r=typeof e.fragment=="string"?`#${Tbt(e.fragment)}`:"";return`${t}${i}${r}`}},Ibt=new OB;function nie(n){return n.segments.map(e=>s6e(e)).join("/")}function v8(n,e){if(!n.hasChildren())return nie(n);if(e){let t=n.children[Ns]?v8(n.children[Ns],!1):"",i=[];return Object.entries(n.children).forEach(([r,o])=>{r!==Ns&&i.push(`${r}:${v8(o,!1)}`)}),i.length>0?`${t}(${i.join("//")})`:t}else{let t=Ebt(n,(i,r)=>r===Ns?[v8(n.children[Ns],!1)]:[`${r}:${v8(i,!1)}`]);return Object.keys(n.children).length===1&&n.children[Ns]!=null?`${nie(n)}/${t[0]}`:`${nie(n)}/(${t.join("//")})`}}function o6e(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function eie(n){return o6e(n).replace(/%3B/gi,";")}function Tbt(n){return encodeURI(n)}function hCe(n){return o6e(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function rie(n){return decodeURIComponent(n)}function GUe(n){return rie(n.replace(/\+/g,"%20"))}function s6e(n){return`${hCe(n.path)}${Abt(n.parameters)}`}function Abt(n){return Object.entries(n).map(([e,t])=>`;${hCe(e)}=${hCe(t)}`).join("")}function Dbt(n){let e=Object.entries(n).map(([t,i])=>Array.isArray(i)?i.map(r=>`${eie(t)}=${eie(r)}`).join("&"):`${eie(t)}=${eie(i)}`).filter(t=>t);return e.length?`?${e.join("&")}`:""}var kbt=/^[^\/()?;#]+/;function sCe(n){let e=n.match(kbt);return e?e[0]:""}var Mbt=/^[^\/()?;=#]+/;function Obt(n){let e=n.match(Mbt);return e?e[0]:""}var Rbt=/^[^=?&#]+/;function Nbt(n){let e=n.match(Rbt);return e?e[0]:""}var Pbt=/^[^&#]+/;function Fbt(n){let e=n.match(Pbt);return e?e[0]:""}var pCe=class{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new Ja([],{}):new Ja([],this.parseChildren())}parseQueryParams(){let e={};if(this.consumeOptional("?"))do this.parseQueryParam(e);while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(i[Ns]=new Ja(e,t)),i}parseSegment(){let e=sCe(this.remaining);if(e===""&&this.peekStartsWith(";"))throw new Fn(4009,!1);return this.capture(e),new XO(rie(e),this.parseMatrixParams())}parseMatrixParams(){let e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){let t=Obt(this.remaining);if(!t)return;this.capture(t);let i="";if(this.consumeOptional("=")){let r=sCe(this.remaining);r&&(i=r,this.capture(i))}e[rie(t)]=rie(i)}parseQueryParam(e){let t=Nbt(this.remaining);if(!t)return;this.capture(t);let i="";if(this.consumeOptional("=")){let s=Fbt(this.remaining);s&&(i=s,this.capture(i))}let r=GUe(t),o=GUe(i);if(e.hasOwnProperty(r)){let s=e[r];Array.isArray(s)||(s=[s],e[r]=s),s.push(o)}else e[r]=o}parseParens(e){let t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let i=sCe(this.remaining),r=this.remaining[i.length];if(r!=="/"&&r!==")"&&r!==";")throw new Fn(4010,!1);let o;i.indexOf(":")>-1?(o=i.slice(0,i.indexOf(":")),this.capture(o),this.capture(":")):e&&(o=Ns);let s=this.parseChildren();t[o]=Object.keys(s).length===1?s[Ns]:new Ja([],s),this.consumeOptional("//")}return t}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return this.peekStartsWith(e)?(this.remaining=this.remaining.substring(e.length),!0):!1}capture(e){if(!this.consumeOptional(e))throw new Fn(4011,!1)}};function a6e(n){return n.segments.length>0?new Ja([],{[Ns]:n}):n}function l6e(n){let e={};for(let[i,r]of Object.entries(n.children)){let o=l6e(r);if(i===Ns&&o.segments.length===0&&o.hasChildren())for(let[s,c]of Object.entries(o.children))e[s]=c;else(o.segments.length>0||o.hasChildren())&&(e[i]=o)}let t=new Ja(n.segments,e);return Lbt(t)}function Lbt(n){if(n.numberOfChildren===1&&n.children[Ns]){let e=n.children[Ns];return new Ja(n.segments.concat(e.segments),e.children)}return n}function S8(n){return n instanceof fT}function Bbt(n,e,t=null,i=null){let r=c6e(n);return u6e(r,e,t,i)}function c6e(n){let e;function t(o){let s={};for(let h of o.children){let g=t(h);s[h.outlet]=g}let c=new Ja(o.url,s);return o===n&&(e=c),c}let i=t(n.root),r=a6e(i);return e??r}function u6e(n,e,t,i){let r=n;for(;r.parent;)r=r.parent;if(e.length===0)return aCe(r,r,r,t,i);let o=zbt(e);if(o.toRoot())return aCe(r,r,new Ja([],{}),t,i);let s=Vbt(o,r,n),c=s.processChildren?x8(s.segmentGroup,s.index,o.commands):h6e(s.segmentGroup,s.index,o.commands);return aCe(r,s.segmentGroup,c,t,i)}function oie(n){return typeof n=="object"&&n!=null&&!n.outlets&&!n.segmentPath}function E8(n){return typeof n=="object"&&n!=null&&n.outlets}function aCe(n,e,t,i,r){let o={};i&&Object.entries(i).forEach(([h,g])=>{o[h]=Array.isArray(g)?g.map(x=>`${x}`):`${g}`});let s;n===e?s=t:s=d6e(n,e,t);let c=a6e(l6e(s));return new fT(c,o,r)}function d6e(n,e,t){let i={};return Object.entries(n.children).forEach(([r,o])=>{o===e?i[r]=t:i[r]=d6e(o,e,t)}),new Ja(n.segments,i)}var sie=class{constructor(e,t,i){if(this.isAbsolute=e,this.numberOfDoubleDots=t,this.commands=i,e&&i.length>0&&oie(i[0]))throw new Fn(4003,!1);let r=i.find(E8);if(r&&r!==e6e(i))throw new Fn(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function zbt(n){if(typeof n[0]=="string"&&n.length===1&&n[0]==="/")return new sie(!0,0,n);let e=0,t=!1,i=n.reduce((r,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let c={};return Object.entries(o.outlets).forEach(([h,g])=>{c[h]=typeof g=="string"?g.split("/"):g}),[...r,{outlets:c}]}if(o.segmentPath)return[...r,o.segmentPath]}return typeof o!="string"?[...r,o]:s===0?(o.split("/").forEach((c,h)=>{h==0&&c==="."||(h==0&&c===""?t=!0:c===".."?e++:c!=""&&r.push(c))}),r):[...r,o]},[]);return new sie(t,e,i)}var AB=class{constructor(e,t,i){this.segmentGroup=e,this.processChildren=t,this.index=i}};function Vbt(n,e,t){if(n.isAbsolute)return new AB(e,!0,0);if(!t)return new AB(e,!1,NaN);if(t.parent===null)return new AB(t,!0,0);let i=oie(n.commands[0])?0:1,r=t.segments.length-1+i;return Ubt(t,r,n.numberOfDoubleDots)}function Ubt(n,e,t){let i=n,r=e,o=t;for(;o>r;){if(o-=r,i=i.parent,!i)throw new Fn(4005,!1);r=i.segments.length}return new AB(i,!1,r-o)}function jbt(n){return E8(n[0])?n[0].outlets:{[Ns]:n}}function h6e(n,e,t){if(n??=new Ja([],{}),n.segments.length===0&&n.hasChildren())return x8(n,e,t);let i=Hbt(n,e,t),r=t.slice(i.commandIndex);if(i.match&&i.pathIndexo!==Ns)&&n.children[Ns]&&n.numberOfChildren===1&&n.children[Ns].segments.length===0){let o=x8(n.children[Ns],e,t);return new Ja(n.segments,o.children)}return Object.entries(i).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(r[o]=h6e(n.children[o],e,s))}),Object.entries(n.children).forEach(([o,s])=>{i[o]===void 0&&(r[o]=s)}),new Ja(n.segments,r)}}function Hbt(n,e,t){let i=0,r=e,o={match:!1,pathIndex:0,commandIndex:0};for(;r=t.length)return o;let s=n.segments[r],c=t[i];if(E8(c))break;let h=`${c}`,g=i0&&h===void 0)break;if(h&&g&&typeof g=="object"&&g.outlets===void 0){if(!qUe(h,g,s))return o;i+=2}else{if(!qUe(h,{},s))return o;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}function fCe(n,e,t){let i=n.segments.slice(0,e),r=0;for(;r{typeof i=="string"&&(i=[i]),i!==null&&(e[t]=fCe(new Ja([],{}),0,i))}),e}function YUe(n){let e={};return Object.entries(n).forEach(([t,i])=>e[t]=`${i}`),e}function qUe(n,e,t){return n==t.path&&Ub(e,t.parameters)}var w8="imperative",Hd=function(n){return n[n.NavigationStart=0]="NavigationStart",n[n.NavigationEnd=1]="NavigationEnd",n[n.NavigationCancel=2]="NavigationCancel",n[n.NavigationError=3]="NavigationError",n[n.RoutesRecognized=4]="RoutesRecognized",n[n.ResolveStart=5]="ResolveStart",n[n.ResolveEnd=6]="ResolveEnd",n[n.GuardsCheckStart=7]="GuardsCheckStart",n[n.GuardsCheckEnd=8]="GuardsCheckEnd",n[n.RouteConfigLoadStart=9]="RouteConfigLoadStart",n[n.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",n[n.ChildActivationStart=11]="ChildActivationStart",n[n.ChildActivationEnd=12]="ChildActivationEnd",n[n.ActivationStart=13]="ActivationStart",n[n.ActivationEnd=14]="ActivationEnd",n[n.Scroll=15]="Scroll",n[n.NavigationSkipped=16]="NavigationSkipped",n}(Hd||{}),w_=class{constructor(e,t){this.id=e,this.url=t}},RB=class extends w_{constructor(e,t,i="imperative",r=null){super(e,t),this.type=Hd.NavigationStart,this.navigationTrigger=i,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},yh=class extends w_{constructor(e,t,i){super(e,t),this.urlAfterRedirects=i,this.type=Hd.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},Jm=function(n){return n[n.Redirect=0]="Redirect",n[n.SupersededByNewNavigation=1]="SupersededByNewNavigation",n[n.NoDataFromResolver=2]="NoDataFromResolver",n[n.GuardRejected=3]="GuardRejected",n}(Jm||{}),aie=function(n){return n[n.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",n[n.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",n}(aie||{}),Qw=class extends w_{constructor(e,t,i,r){super(e,t),this.reason=i,this.code=r,this.type=Hd.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},mT=class extends w_{constructor(e,t,i,r){super(e,t),this.reason=i,this.code=r,this.type=Hd.NavigationSkipped}},I8=class extends w_{constructor(e,t,i,r){super(e,t),this.error=i,this.target=r,this.type=Hd.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},lie=class extends w_{constructor(e,t,i,r){super(e,t),this.urlAfterRedirects=i,this.state=r,this.type=Hd.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},mCe=class extends w_{constructor(e,t,i,r){super(e,t),this.urlAfterRedirects=i,this.state=r,this.type=Hd.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},gCe=class extends w_{constructor(e,t,i,r,o){super(e,t),this.urlAfterRedirects=i,this.state=r,this.shouldActivate=o,this.type=Hd.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},_Ce=class extends w_{constructor(e,t,i,r){super(e,t),this.urlAfterRedirects=i,this.state=r,this.type=Hd.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},vCe=class extends w_{constructor(e,t,i,r){super(e,t),this.urlAfterRedirects=i,this.state=r,this.type=Hd.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},yCe=class{constructor(e){this.route=e,this.type=Hd.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},bCe=class{constructor(e){this.route=e,this.type=Hd.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},xCe=class{constructor(e){this.snapshot=e,this.type=Hd.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},wCe=class{constructor(e){this.snapshot=e,this.type=Hd.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},CCe=class{constructor(e){this.snapshot=e,this.type=Hd.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},T8=class{constructor(e){this.snapshot=e,this.type=Hd.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},cie=class{constructor(e,t,i){this.routerEvent=e,this.position=t,this.anchor=i,this.type=Hd.Scroll}toString(){let e=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${e}')`}},A8=class{},NB=class{constructor(e,t){this.url=e,this.navigationBehaviorOptions=t}};var SCe=class{constructor(e){this.injector=e,this.outlet=null,this.route=null,this.children=new F8(this.injector),this.attachRef=null}},F8=(()=>{let e=class e{constructor(i){this.parentInjector=i,this.contexts=new Map}onChildOutletCreated(i,r){let o=this.getOrCreateContext(i);o.outlet=r,this.contexts.set(i,o)}onChildOutletDestroyed(i){let r=this.getContext(i);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let i=this.contexts;return this.contexts=new Map,i}onOutletReAttached(i){this.contexts=i}getOrCreateContext(i){let r=this.getContext(i);return r||(r=new SCe(this.parentInjector),this.contexts.set(i,r)),r}getContext(i){return this.contexts.get(i)||null}};e.\u0275fac=function(r){return new(r||e)(Ke(zd))},e.\u0275prov=It({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),uie=class{constructor(e){this._root=e}get root(){return this._root.value}parent(e){let t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null}children(e){let t=ECe(e,this._root);return t?t.children.map(i=>i.value):[]}firstChild(e){let t=ECe(e,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(e){let t=ICe(e,this._root);return t.length<2?[]:t[t.length-2].children.map(r=>r.value).filter(r=>r!==e)}pathFromRoot(e){return ICe(e,this._root).map(t=>t.value)}};function ECe(n,e){if(n===e.value)return e;for(let t of e.children){let i=ECe(n,t);if(i)return i}return null}function ICe(n,e){if(n===e.value)return[e];for(let t of e.children){let i=ICe(n,t);if(i.length)return i.unshift(e),i}return[]}var Xm=class{constructor(e,t){this.value=e,this.children=t}toString(){return`TreeNode(${this.value})`}};function TB(n){let e={};return n&&n.children.forEach(t=>e[t.value.outlet]=t),e}var die=class extends uie{constructor(e,t){super(e),this.snapshot=t,PCe(this,e)}toString(){return this.snapshot.toString()}};function p6e(n){let e=Ybt(n),t=new ea([new XO("",{})]),i=new ea({}),r=new ea({}),o=new ea({}),s=new ea(""),c=new Kh(t,i,o,s,r,Ns,n,e.root);return c.snapshot=e.root,new die(new Xm(c,[]),e)}function Ybt(n){let e={},t={},i={},r="",o=new DB([],e,i,r,t,Ns,n,null,{});return new pie("",new Xm(o,[]))}var Kh=class{constructor(e,t,i,r,o,s,c,h){this.urlSubject=e,this.paramsSubject=t,this.queryParamsSubject=i,this.fragmentSubject=r,this.dataSubject=o,this.outlet=s,this.component=c,this._futureSnapshot=h,this.title=this.dataSubject?.pipe(ri(g=>g[N8]))??kn(void 0),this.url=e,this.params=t,this.queryParams=i,this.fragment=r,this.data=o}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.params.pipe(ri(e=>MB(e))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(ri(e=>MB(e))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function hie(n,e,t="emptyOnly"){let i,{routeConfig:r}=n;return e!==null&&(t==="always"||r?.path===""||!e.component&&!e.routeConfig?.loadComponent)?i={params:Ce(Ce({},e.params),n.params),data:Ce(Ce({},e.data),n.data),resolve:Ce(Ce(Ce(Ce({},n.data),e.data),r?.data),n._resolvedData)}:i={params:Ce({},n.params),data:Ce({},n.data),resolve:Ce(Ce({},n.data),n._resolvedData??{})},r&&m6e(r)&&(i.resolve[N8]=r.title),i}var DB=class{get title(){return this.data?.[N8]}constructor(e,t,i,r,o,s,c,h,g){this.url=e,this.params=t,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=s,this.component=c,this.routeConfig=h,this._resolve=g}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??=MB(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=MB(this.queryParams),this._queryParamMap}toString(){let e=this.url.map(i=>i.toString()).join("/"),t=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${e}', path:'${t}')`}},pie=class extends uie{constructor(e,t){super(t),this.url=e,PCe(this,t)}toString(){return f6e(this._root)}};function PCe(n,e){e.value._routerState=n,e.children.forEach(t=>PCe(n,t))}function f6e(n){let e=n.children.length>0?` { ${n.children.map(f6e).join(", ")} } `:"";return`${n.value}${e}`}function lCe(n){if(n.snapshot){let e=n.snapshot,t=n._futureSnapshot;n.snapshot=t,Ub(e.queryParams,t.queryParams)||n.queryParamsSubject.next(t.queryParams),e.fragment!==t.fragment&&n.fragmentSubject.next(t.fragment),Ub(e.params,t.params)||n.paramsSubject.next(t.params),bbt(e.url,t.url)||n.urlSubject.next(t.url),Ub(e.data,t.data)||n.dataSubject.next(t.data)}else n.snapshot=n._futureSnapshot,n.dataSubject.next(n._futureSnapshot.data)}function TCe(n,e){let t=Ub(n.params,e.params)&&Sbt(n.url,e.url),i=!n.parent!=!e.parent;return t&&!i&&(!n.parent||TCe(n.parent,e.parent))}function m6e(n){return typeof n.title=="string"||n.title===null}var FCe=(()=>{let e=class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=Ns,this.activateEvents=new Kt,this.deactivateEvents=new Kt,this.attachEvents=new Kt,this.detachEvents=new Kt,this.parentContexts=ai(F8),this.location=ai(Sc),this.changeDetector=ai(ur),this.inputBinder=ai(_ie,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(i){if(i.name){let{firstChange:r,previousValue:o}=i.name;if(r)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(i){return this.parentContexts.getContext(i)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let i=this.parentContexts.getContext(this.name);i?.route&&(i.attachRef?this.attach(i.attachRef,i.route):this.activateWith(i.route,i.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Fn(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Fn(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Fn(4012,!1);this.location.detach();let i=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(i.instance),i}attach(i,r){this.activated=i,this._activatedRoute=r,this.location.insert(i.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(i.instance)}deactivate(){if(this.activated){let i=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(i)}}activateWith(i,r){if(this.isActivated)throw new Fn(4013,!1);this._activatedRoute=i;let o=this.location,c=i.snapshot.component,h=this.parentContexts.getOrCreateContext(this.name).children,g=new ACe(i,h,o.injector);this.activated=o.createComponent(c,{index:o.length,injector:g,environmentInjector:r}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=Ki({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[eo]});let n=e;return n})(),ACe=class n{__ngOutletInjector(e){return new n(this.route,this.childContexts,e)}constructor(e,t,i){this.route=e,this.childContexts=t,this.parent=i}get(e,t){return e===Kh?this.route:e===F8?this.childContexts:this.parent.get(e,t)}},_ie=new fi(""),$Ue=(()=>{let e=class e{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(i){this.unsubscribeFromRouteData(i),this.subscribeToRouteData(i)}unsubscribeFromRouteData(i){this.outletDataSubscriptions.get(i)?.unsubscribe(),this.outletDataSubscriptions.delete(i)}subscribeToRouteData(i){let{activatedRoute:r}=i,o=Zv([r.queryParams,r.params,r.data]).pipe(lr(([s,c,h],g)=>(h=Ce(Ce(Ce({},s),c),h),g===0?kn(h):Promise.resolve(h)))).subscribe(s=>{if(!i.isActivated||!i.activatedComponentRef||i.activatedRoute!==r||r.component===null){this.unsubscribeFromRouteData(i);return}let c=U4e(r.component);if(!c){this.unsubscribeFromRouteData(i);return}for(let{templateName:h}of c.inputs)i.activatedComponentRef.setInput(h,s[h])});this.outletDataSubscriptions.set(i,o)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=It({token:e,factory:e.\u0275fac});let n=e;return n})();function qbt(n,e,t){let i=D8(n,e._root,t?t._root:void 0);return new die(i,e)}function D8(n,e,t){if(t&&n.shouldReuseRoute(e.value,t.value.snapshot)){let i=t.value;i._futureSnapshot=e.value;let r=$bt(n,e,t);return new Xm(i,r)}else{if(n.shouldAttach(e.value)){let o=n.retrieve(e.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=e.value,s.children=e.children.map(c=>D8(n,c)),s}}let i=Kbt(e.value),r=e.children.map(o=>D8(n,o));return new Xm(i,r)}}function $bt(n,e,t){return e.children.map(i=>{for(let r of t.children)if(n.shouldReuseRoute(i.value,r.value.snapshot))return D8(n,i,r);return D8(n,i)})}function Kbt(n){return new Kh(new ea(n.url),new ea(n.params),new ea(n.queryParams),new ea(n.fragment),new ea(n.data),n.outlet,n.component,n)}var k8=class{constructor(e,t){this.redirectTo=e,this.navigationBehaviorOptions=t}},g6e="ngNavigationCancelingError";function fie(n,e){let{redirectTo:t,navigationBehaviorOptions:i}=S8(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,r=_6e(!1,Jm.Redirect);return r.url=t,r.navigationBehaviorOptions=i,r}function _6e(n,e){let t=new Error(`NavigationCancelingError: ${n||""}`);return t[g6e]=!0,t.cancellationCode=e,t}function Wbt(n){return v6e(n)&&S8(n.url)}function v6e(n){return!!n&&n[g6e]}var Zbt=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=Ct({type:e,selectors:[["ng-component"]],standalone:!0,features:[Ot],decls:1,vars:0,template:function(r,o){r&1&&bt(0,"router-outlet")},dependencies:[FCe],encapsulation:2});let n=e;return n})();function Qbt(n,e){return n.providers&&!n._injector&&(n._injector=vee(n.providers,e,`Route: ${n.path}`)),n._injector??e}function LCe(n){let e=n.children&&n.children.map(LCe),t=e?wt(Ce({},n),{children:e}):Ce({},n);return!t.component&&!t.loadComponent&&(e||t.loadChildren)&&t.outlet&&t.outlet!==Ns&&(t.component=Zbt),t}function u0(n){return n.outlet||Ns}function Xbt(n,e){let t=n.filter(i=>u0(i)===e);return t.push(...n.filter(i=>u0(i)!==e)),t}function L8(n){if(!n)return null;if(n.routeConfig?._injector)return n.routeConfig._injector;for(let e=n.parent;e;e=e.parent){let t=e.routeConfig;if(t?._loadedInjector)return t._loadedInjector;if(t?._injector)return t._injector}return null}var Jbt=(n,e,t,i)=>ri(r=>(new DCe(e,r.targetRouterState,r.currentRouterState,t,i).activate(n),r)),DCe=class{constructor(e,t,i,r,o){this.routeReuseStrategy=e,this.futureState=t,this.currState=i,this.forwardEvent=r,this.inputBindingEnabled=o}activate(e){let t=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,i,e),lCe(this.futureState.root),this.activateChildRoutes(t,i,e)}deactivateChildRoutes(e,t,i){let r=TB(t);e.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,r[s],i),delete r[s]}),Object.values(r).forEach(o=>{this.deactivateRouteAndItsChildren(o,i)})}deactivateRoutes(e,t,i){let r=e.value,o=t?t.value:null;if(r===o)if(r.component){let s=i.getContext(r.outlet);s&&this.deactivateChildRoutes(e,t,s.children)}else this.deactivateChildRoutes(e,t,i);else o&&this.deactivateRouteAndItsChildren(t,i)}deactivateRouteAndItsChildren(e,t){e.value.component&&this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,t):this.deactivateRouteAndOutlet(e,t)}detachAndStoreRouteSubtree(e,t){let i=t.getContext(e.value.outlet),r=i&&e.value.component?i.children:t,o=TB(e);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,r);if(i&&i.outlet){let s=i.outlet.detach(),c=i.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:s,route:e,contexts:c})}}deactivateRouteAndOutlet(e,t){let i=t.getContext(e.value.outlet),r=i&&e.value.component?i.children:t,o=TB(e);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,r);i&&(i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated()),i.attachRef=null,i.route=null)}activateChildRoutes(e,t,i){let r=TB(t);e.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],i),this.forwardEvent(new T8(o.value.snapshot))}),e.children.length&&this.forwardEvent(new wCe(e.value.snapshot))}activateRoutes(e,t,i){let r=e.value,o=t?t.value:null;if(lCe(r),r===o)if(r.component){let s=i.getOrCreateContext(r.outlet);this.activateChildRoutes(e,t,s.children)}else this.activateChildRoutes(e,t,i);else if(r.component){let s=i.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){let c=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),s.children.onOutletReAttached(c.contexts),s.attachRef=c.componentRef,s.route=c.route.value,s.outlet&&s.outlet.attach(c.componentRef,c.route.value),lCe(c.route.value),this.activateChildRoutes(e,null,s.children)}else{let c=L8(r.snapshot);s.attachRef=null,s.route=r,s.injector=c??s.injector,s.outlet&&s.outlet.activateWith(r,s.injector),this.activateChildRoutes(e,null,s.children)}}else this.activateChildRoutes(e,null,i)}},mie=class{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}},kB=class{constructor(e,t){this.component=e,this.route=t}};function ext(n,e,t){let i=n._root,r=e?e._root:null;return y8(i,r,t,[i.value])}function txt(n){let e=n.routeConfig?n.routeConfig.canActivateChild:null;return!e||e.length===0?null:{node:n,guards:e}}function FB(n,e){let t=Symbol(),i=e.get(n,t);return i===t?typeof n=="function"&&!X3e(n)?n:e.get(n):i}function y8(n,e,t,i,r={canDeactivateChecks:[],canActivateChecks:[]}){let o=TB(e);return n.children.forEach(s=>{ixt(s,o[s.value.outlet],t,i.concat([s.value]),r),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,c])=>C8(c,t.getContext(s),r)),r}function ixt(n,e,t,i,r={canDeactivateChecks:[],canActivateChecks:[]}){let o=n.value,s=e?e.value:null,c=t?t.getContext(n.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let h=nxt(s,o,o.routeConfig.runGuardsAndResolvers);h?r.canActivateChecks.push(new mie(i)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?y8(n,e,c?c.children:null,i,r):y8(n,e,t,i,r),h&&c&&c.outlet&&c.outlet.isActivated&&r.canDeactivateChecks.push(new kB(c.outlet.component,s))}else s&&C8(e,c,r),r.canActivateChecks.push(new mie(i)),o.component?y8(n,null,c?c.children:null,i,r):y8(n,null,t,i,r);return r}function nxt(n,e,t){if(typeof t=="function")return t(n,e);switch(t){case"pathParamsChange":return!JO(n.url,e.url);case"pathParamsOrQueryParamsChange":return!JO(n.url,e.url)||!Ub(n.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!TCe(n,e)||!Ub(n.queryParams,e.queryParams);case"paramsChange":default:return!TCe(n,e)}}function C8(n,e,t){let i=TB(n),r=n.value;Object.entries(i).forEach(([o,s])=>{r.component?e?C8(s,e.children.getContext(o),t):C8(s,null,t):C8(s,e,t)}),r.component?e&&e.outlet&&e.outlet.isActivated?t.canDeactivateChecks.push(new kB(e.outlet.component,r)):t.canDeactivateChecks.push(new kB(null,r)):t.canDeactivateChecks.push(new kB(null,r))}function B8(n){return typeof n=="function"}function rxt(n){return typeof n=="boolean"}function oxt(n){return n&&B8(n.canLoad)}function sxt(n){return n&&B8(n.canActivate)}function axt(n){return n&&B8(n.canActivateChild)}function lxt(n){return n&&B8(n.canDeactivate)}function cxt(n){return n&&B8(n.canMatch)}function y6e(n){return n instanceof Wv||n?.name==="EmptyError"}var tie=Symbol("INITIAL_VALUE");function PB(){return lr(n=>Zv(n.map(e=>e.pipe(kr(1),aa(tie)))).pipe(ri(e=>{for(let t of e)if(t!==!0){if(t===tie)return tie;if(t===!1||uxt(t))return t}return!0}),Wn(e=>e!==tie),kr(1)))}function uxt(n){return S8(n)||n instanceof k8}function dxt(n,e){return xc(t=>{let{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:s}}=t;return s.length===0&&o.length===0?kn(wt(Ce({},t),{guardsResult:!0})):hxt(s,i,r,n).pipe(xc(c=>c&&rxt(c)?pxt(i,o,n,e):kn(c)),ri(c=>wt(Ce({},t),{guardsResult:c})))})}function hxt(n,e,t,i){return wo(n).pipe(xc(r=>vxt(r.component,r.route,t,e,i)),Um(r=>r!==!0,!0))}function pxt(n,e,t,i){return wo(e).pipe(h_(r=>vb(mxt(r.route.parent,i),fxt(r.route,i),_xt(n,r.path,t),gxt(n,r.route,t))),Um(r=>r!==!0,!0))}function fxt(n,e){return n!==null&&e&&e(new CCe(n)),kn(!0)}function mxt(n,e){return n!==null&&e&&e(new xCe(n)),kn(!0)}function gxt(n,e,t){let i=e.routeConfig?e.routeConfig.canActivate:null;if(!i||i.length===0)return kn(!0);let r=i.map(o=>d_(()=>{let s=L8(e)??t,c=FB(o,s),h=sxt(c)?c.canActivate(e,n):Nf(s,()=>c(e,n));return gT(h).pipe(Um())}));return kn(r).pipe(PB())}function _xt(n,e,t){let i=e[e.length-1],o=e.slice(0,e.length-1).reverse().map(s=>txt(s)).filter(s=>s!==null).map(s=>d_(()=>{let c=s.guards.map(h=>{let g=L8(s.node)??t,x=FB(h,g),C=axt(x)?x.canActivateChild(i,n):Nf(g,()=>x(i,n));return gT(C).pipe(Um())});return kn(c).pipe(PB())}));return kn(o).pipe(PB())}function vxt(n,e,t,i,r){let o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!o||o.length===0)return kn(!0);let s=o.map(c=>{let h=L8(e)??r,g=FB(c,h),x=lxt(g)?g.canDeactivate(n,e,t,i):Nf(h,()=>g(n,e,t,i));return gT(x).pipe(Um())});return kn(s).pipe(PB())}function yxt(n,e,t,i){let r=e.canLoad;if(r===void 0||r.length===0)return kn(!0);let o=r.map(s=>{let c=FB(s,n),h=oxt(c)?c.canLoad(e,t):Nf(n,()=>c(e,t));return gT(h)});return kn(o).pipe(PB(),b6e(i))}function b6e(n){return Oye(vs(e=>{if(typeof e!="boolean")throw fie(n,e)}),ri(e=>e===!0))}function bxt(n,e,t,i){let r=e.canMatch;if(!r||r.length===0)return kn(!0);let o=r.map(s=>{let c=FB(s,n),h=cxt(c)?c.canMatch(e,t):Nf(n,()=>c(e,t));return gT(h)});return kn(o).pipe(PB(),b6e(i))}var M8=class{constructor(e){this.segmentGroup=e||null}},O8=class extends Error{constructor(e){super(),this.urlTree=e}};function IB(n){return Mf(new M8(n))}function xxt(n){return Mf(new Fn(4e3,!1))}function wxt(n){return Mf(_6e(!1,Jm.GuardRejected))}var kCe=class{constructor(e,t){this.urlSerializer=e,this.urlTree=t}lineralizeSegments(e,t){let i=[],r=t.root;for(;;){if(i=i.concat(r.segments),r.numberOfChildren===0)return kn(i);if(r.numberOfChildren>1||!r.children[Ns])return xxt(`${e.redirectTo}`);r=r.children[Ns]}}applyRedirectCommands(e,t,i,r,o){if(typeof t!="string"){let c=t,{queryParams:h,fragment:g,routeConfig:x,url:C,outlet:A,params:k,data:O,title:F}=r,L=Nf(o,()=>c({params:k,data:O,queryParams:h,fragment:g,routeConfig:x,url:C,outlet:A,title:F}));if(L instanceof fT)throw new O8(L);t=L}let s=this.applyRedirectCreateUrlTree(t,this.urlSerializer.parse(t),e,i);if(t[0]==="/")throw new O8(s);return s}applyRedirectCreateUrlTree(e,t,i,r){let o=this.createSegmentGroup(e,t.root,i,r);return new fT(o,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(e,t){let i={};return Object.entries(e).forEach(([r,o])=>{if(typeof o=="string"&&o[0]===":"){let c=o.substring(1);i[r]=t[c]}else i[r]=o}),i}createSegmentGroup(e,t,i,r){let o=this.createSegments(e,t.segments,i,r),s={};return Object.entries(t.children).forEach(([c,h])=>{s[c]=this.createSegmentGroup(e,h,i,r)}),new Ja(o,s)}createSegments(e,t,i,r){return t.map(o=>o.path[0]===":"?this.findPosParam(e,o,r):this.findOrReturn(o,i))}findPosParam(e,t,i){let r=i[t.path.substring(1)];if(!r)throw new Fn(4001,!1);return r}findOrReturn(e,t){let i=0;for(let r of t){if(r.path===e.path)return t.splice(i),r;i++}return e}},MCe={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Cxt(n,e,t,i,r){let o=BCe(n,e,t);return o.matched?(i=Qbt(e,i),bxt(i,e,t,r).pipe(ri(s=>s===!0?o:Ce({},MCe)))):kn(o)}function BCe(n,e,t){if(e.path==="**")return Sxt(t);if(e.path==="")return e.pathMatch==="full"&&(n.hasChildren()||t.length>0)?Ce({},MCe):{matched:!0,consumedSegments:[],remainingSegments:t,parameters:{},positionalParamSegments:{}};let r=(e.matcher||ybt)(t,n,e);if(!r)return Ce({},MCe);let o={};Object.entries(r.posParams??{}).forEach(([c,h])=>{o[c]=h.path});let s=r.consumed.length>0?Ce(Ce({},o),r.consumed[r.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:r.consumed,remainingSegments:t.slice(r.consumed.length),parameters:s,positionalParamSegments:r.posParams??{}}}function Sxt(n){return{matched:!0,parameters:n.length>0?e6e(n).parameters:{},consumedSegments:n,remainingSegments:[],positionalParamSegments:{}}}function KUe(n,e,t,i){return t.length>0&&Txt(n,t,i)?{segmentGroup:new Ja(e,Ixt(i,new Ja(t,n.children))),slicedSegments:[]}:t.length===0&&Axt(n,t,i)?{segmentGroup:new Ja(n.segments,Ext(n,t,i,n.children)),slicedSegments:t}:{segmentGroup:new Ja(n.segments,n.children),slicedSegments:t}}function Ext(n,e,t,i){let r={};for(let o of t)if(vie(n,e,o)&&!i[u0(o)]){let s=new Ja([],{});r[u0(o)]=s}return Ce(Ce({},i),r)}function Ixt(n,e){let t={};t[Ns]=e;for(let i of n)if(i.path===""&&u0(i)!==Ns){let r=new Ja([],{});t[u0(i)]=r}return t}function Txt(n,e,t){return t.some(i=>vie(n,e,i)&&u0(i)!==Ns)}function Axt(n,e,t){return t.some(i=>vie(n,e,i))}function vie(n,e,t){return(n.hasChildren()||e.length>0)&&t.pathMatch==="full"?!1:t.path===""}function Dxt(n,e,t,i){return u0(n)!==i&&(i===Ns||!vie(e,t,n))?!1:BCe(e,n,t).matched}function kxt(n,e,t){return e.length===0&&!n.children[t]}var OCe=class{};function Mxt(n,e,t,i,r,o,s="emptyOnly"){return new RCe(n,e,t,i,r,s,o).recognize()}var Oxt=31,RCe=class{constructor(e,t,i,r,o,s,c){this.injector=e,this.configLoader=t,this.rootComponentType=i,this.config=r,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=c,this.applyRedirects=new kCe(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(e){return new Fn(4002,`'${e.segmentGroup}'`)}recognize(){let e=KUe(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(e).pipe(ri(({children:t,rootSnapshot:i})=>{let r=new Xm(i,t),o=new pie("",r),s=Bbt(i,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),{state:o,tree:s}}))}match(e){let t=new DB([],Object.freeze({}),Object.freeze(Ce({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),Ns,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,e,Ns,t).pipe(ri(i=>({children:i,rootSnapshot:t})),Ld(i=>{if(i instanceof O8)return this.urlTree=i.urlTree,this.match(i.urlTree.root);throw i instanceof M8?this.noMatchError(i):i}))}processSegmentGroup(e,t,i,r,o){return i.segments.length===0&&i.hasChildren()?this.processChildren(e,t,i,o):this.processSegment(e,t,i,i.segments,r,!0,o).pipe(ri(s=>s instanceof Xm?[s]:[]))}processChildren(e,t,i,r){let o=[];for(let s of Object.keys(i.children))s==="primary"?o.unshift(s):o.push(s);return wo(o).pipe(h_(s=>{let c=i.children[s],h=Xbt(t,s);return this.processSegmentGroup(e,h,c,s,r)}),Hye((s,c)=>(s.push(...c),s)),Vm(null),jye(),xc(s=>{if(s===null)return IB(i);let c=x6e(s);return Rxt(c),kn(c)}))}processSegment(e,t,i,r,o,s,c){return wo(t).pipe(h_(h=>this.processSegmentAgainstRoute(h._injector??e,t,h,i,r,o,s,c).pipe(Ld(g=>{if(g instanceof M8)return kn(null);throw g}))),Um(h=>!!h),Ld(h=>{if(y6e(h))return kxt(i,r,o)?kn(new OCe):IB(i);throw h}))}processSegmentAgainstRoute(e,t,i,r,o,s,c,h){return Dxt(i,r,o,s)?i.redirectTo===void 0?this.matchSegmentAgainstRoute(e,r,i,o,s,h):this.allowRedirects&&c?this.expandSegmentAgainstRouteUsingRedirect(e,r,t,i,o,s,h):IB(r):IB(r)}expandSegmentAgainstRouteUsingRedirect(e,t,i,r,o,s,c){let{matched:h,parameters:g,consumedSegments:x,positionalParamSegments:C,remainingSegments:A}=BCe(t,r,o);if(!h)return IB(t);typeof r.redirectTo=="string"&&r.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>Oxt&&(this.allowRedirects=!1));let k=new DB(o,g,Object.freeze(Ce({},this.urlTree.queryParams)),this.urlTree.fragment,WUe(r),u0(r),r.component??r._loadedComponent??null,r,ZUe(r)),O=hie(k,c,this.paramsInheritanceStrategy);k.params=Object.freeze(O.params),k.data=Object.freeze(O.data);let F=this.applyRedirects.applyRedirectCommands(x,r.redirectTo,C,k,e);return this.applyRedirects.lineralizeSegments(r,F).pipe(xc(L=>this.processSegment(e,i,t,L.concat(A),s,!1,c)))}matchSegmentAgainstRoute(e,t,i,r,o,s){let c=Cxt(t,i,r,e,this.urlSerializer);return i.path==="**"&&(t.children={}),c.pipe(lr(h=>h.matched?(e=i._injector??e,this.getChildConfig(e,i,r).pipe(lr(({routes:g})=>{let x=i._loadedInjector??e,{parameters:C,consumedSegments:A,remainingSegments:k}=h,O=new DB(A,C,Object.freeze(Ce({},this.urlTree.queryParams)),this.urlTree.fragment,WUe(i),u0(i),i.component??i._loadedComponent??null,i,ZUe(i)),F=hie(O,s,this.paramsInheritanceStrategy);O.params=Object.freeze(F.params),O.data=Object.freeze(F.data);let{segmentGroup:L,slicedSegments:z}=KUe(t,A,k,g);if(z.length===0&&L.hasChildren())return this.processChildren(x,g,L,O).pipe(ri(K=>new Xm(O,K)));if(g.length===0&&z.length===0)return kn(new Xm(O,[]));let j=u0(i)===o;return this.processSegment(x,g,L,z,j?Ns:o,!0,O).pipe(ri(K=>new Xm(O,K instanceof Xm?[K]:[])))}))):IB(t)))}getChildConfig(e,t,i){return t.children?kn({routes:t.children,injector:e}):t.loadChildren?t._loadedRoutes!==void 0?kn({routes:t._loadedRoutes,injector:t._loadedInjector}):yxt(e,t,i,this.urlSerializer).pipe(xc(r=>r?this.configLoader.loadChildren(e,t).pipe(vs(o=>{t._loadedRoutes=o.routes,t._loadedInjector=o.injector})):wxt(t))):kn({routes:[],injector:e})}};function Rxt(n){n.sort((e,t)=>e.value.outlet===Ns?-1:t.value.outlet===Ns?1:e.value.outlet.localeCompare(t.value.outlet))}function Nxt(n){let e=n.value.routeConfig;return e&&e.path===""}function x6e(n){let e=[],t=new Set;for(let i of n){if(!Nxt(i)){e.push(i);continue}let r=e.find(o=>i.value.routeConfig===o.value.routeConfig);r!==void 0?(r.children.push(...i.children),t.add(r)):e.push(i)}for(let i of t){let r=x6e(i.children);e.push(new Xm(i.value,r))}return e.filter(i=>!t.has(i))}function WUe(n){return n.data||{}}function ZUe(n){return n.resolve||{}}function Pxt(n,e,t,i,r,o){return xc(s=>Mxt(n,e,t,i,s.extractedUrl,r,o).pipe(ri(({state:c,tree:h})=>wt(Ce({},s),{targetSnapshot:c,urlAfterRedirects:h}))))}function Fxt(n,e){return xc(t=>{let{targetSnapshot:i,guards:{canActivateChecks:r}}=t;if(!r.length)return kn(t);let o=new Set(r.map(h=>h.route)),s=new Set;for(let h of o)if(!s.has(h))for(let g of w6e(h))s.add(g);let c=0;return wo(s).pipe(h_(h=>o.has(h)?Lxt(h,i,n,e):(h.data=hie(h,h.parent,n).resolve,kn(void 0))),vs(()=>c++),oL(1),xc(h=>c===s.size?kn(t):uu))})}function w6e(n){let e=n.children.map(t=>w6e(t)).flat();return[n,...e]}function Lxt(n,e,t,i){let r=n.routeConfig,o=n._resolve;return r?.title!==void 0&&!m6e(r)&&(o[N8]=r.title),Bxt(o,n,e,i).pipe(ri(s=>(n._resolvedData=s,n.data=hie(n,n.parent,t).resolve,null)))}function Bxt(n,e,t,i){let r=dCe(n);if(r.length===0)return kn({});let o={};return wo(r).pipe(xc(s=>zxt(n[s],e,t,i).pipe(Um(),vs(c=>{if(c instanceof k8)throw fie(new OB,c);o[s]=c}))),oL(1),EI(o),Ld(s=>y6e(s)?uu:Mf(s)))}function zxt(n,e,t,i){let r=L8(e)??i,o=FB(n,r),s=o.resolve?o.resolve(e,t):Nf(r,()=>o(e,t));return gT(s)}function cCe(n){return lr(e=>{let t=n(e);return t?wo(t).pipe(ri(()=>e)):kn(e)})}var C6e=(()=>{let e=class e{buildTitle(i){let r,o=i.root;for(;o!==void 0;)r=this.getResolvedTitleForRoute(o)??r,o=o.children.find(s=>s.outlet===Ns);return r}getResolvedTitleForRoute(i){return i.data[N8]}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=It({token:e,factory:()=>ai(Vxt),providedIn:"root"});let n=e;return n})(),Vxt=(()=>{let e=class e extends C6e{constructor(i){super(),this.title=i}updateTitle(i){let r=this.buildTitle(i);r!==void 0&&this.title.setTitle(r)}};e.\u0275fac=function(r){return new(r||e)(Ke(Jte))},e.\u0275prov=It({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),z8=new fi("",{providedIn:"root",factory:()=>({})}),R8=new fi(""),zCe=(()=>{let e=class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=ai(Iee)}loadComponent(i){if(this.componentLoaders.get(i))return this.componentLoaders.get(i);if(i._loadedComponent)return kn(i._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(i);let r=gT(i.loadComponent()).pipe(ri(S6e),vs(s=>{this.onLoadEndListener&&this.onLoadEndListener(i),i._loadedComponent=s}),yb(()=>{this.componentLoaders.delete(i)})),o=new HM(r,()=>new mi).pipe(ZF());return this.componentLoaders.set(i,o),o}loadChildren(i,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return kn({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let s=Uxt(r,this.compiler,i,this.onLoadEndListener).pipe(yb(()=>{this.childrenLoaders.delete(r)})),c=new HM(s,()=>new mi).pipe(ZF());return this.childrenLoaders.set(r,c),c}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=It({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function Uxt(n,e,t,i){return gT(n.loadChildren()).pipe(ri(S6e),xc(r=>r instanceof Hj||Array.isArray(r)?kn(r):wo(e.compileModuleAsync(r))),ri(r=>{i&&i(n);let o,s,c=!1;return Array.isArray(r)?(s=r,c=!0):(o=r.create(t).injector,s=o.get(R8,[],{optional:!0,self:!0}).flat()),{routes:s.map(LCe),injector:o}}))}function jxt(n){return n&&typeof n=="object"&&"default"in n}function S6e(n){return jxt(n)?n.default:n}var VCe=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=It({token:e,factory:()=>ai(Hxt),providedIn:"root"});let n=e;return n})(),Hxt=(()=>{let e=class e{shouldProcessUrl(i){return!0}extract(i){return i}merge(i,r){return i}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=It({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),E6e=new fi(""),I6e=new fi("");function Gxt(n,e,t){let i=n.get(I6e),r=n.get(Ln);return n.get(Zi).runOutsideAngular(()=>{if(!r.startViewTransition||i.skipNextTransition)return i.skipNextTransition=!1,new Promise(g=>setTimeout(g));let o,s=new Promise(g=>{o=g}),c=r.startViewTransition(()=>(o(),Yxt(n))),{onViewTransitionCreated:h}=i;return h&&Nf(n,()=>h({transition:c,from:e,to:t})),s})}function Yxt(n){return new Promise(e=>{ad(e,{injector:n})})}var qxt=new fi(""),UCe=(()=>{let e=class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new mi,this.transitionAbortSubject=new mi,this.configLoader=ai(zCe),this.environmentInjector=ai(zd),this.urlSerializer=ai(P8),this.rootContexts=ai(F8),this.location=ai(jf),this.inputBindingEnabled=ai(_ie,{optional:!0})!==null,this.titleStrategy=ai(C6e),this.options=ai(z8,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=ai(VCe),this.createViewTransition=ai(E6e,{optional:!0}),this.navigationErrorHandler=ai(qxt,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>kn(void 0),this.rootComponentType=null;let i=o=>this.events.next(new yCe(o)),r=o=>this.events.next(new bCe(o));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=i}complete(){this.transitions?.complete()}handleNavigationRequest(i){let r=++this.navigationId;this.transitions?.next(wt(Ce(Ce({},this.transitions.value),i),{id:r}))}setupNavigations(i,r,o){return this.transitions=new ea({id:0,currentUrlTree:r,currentRawUrl:r,extractedUrl:this.urlHandlingStrategy.extract(r),urlAfterRedirects:this.urlHandlingStrategy.extract(r),rawUrl:r,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:w8,restoredState:null,currentSnapshot:o.snapshot,targetSnapshot:null,currentRouterState:o,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(Wn(s=>s.id!==0),ri(s=>wt(Ce({},s),{extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),lr(s=>{let c=!1,h=!1;return kn(s).pipe(lr(g=>{if(this.navigationId>s.id)return this.cancelNavigationTransition(s,"",Jm.SupersededByNewNavigation),uu;this.currentTransition=s,this.currentNavigation={id:g.id,initialUrl:g.rawUrl,extractedUrl:g.extractedUrl,trigger:g.source,extras:g.extras,previousNavigation:this.lastSuccessfulNavigation?wt(Ce({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let x=!i.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),C=g.extras.onSameUrlNavigation??i.onSameUrlNavigation;if(!x&&C!=="reload"){let A="";return this.events.next(new mT(g.id,this.urlSerializer.serialize(g.rawUrl),A,aie.IgnoredSameUrlNavigation)),g.resolve(!1),uu}if(this.urlHandlingStrategy.shouldProcessUrl(g.rawUrl))return kn(g).pipe(lr(A=>{let k=this.transitions?.getValue();return this.events.next(new RB(A.id,this.urlSerializer.serialize(A.extractedUrl),A.source,A.restoredState)),k!==this.transitions?.getValue()?uu:Promise.resolve(A)}),Pxt(this.environmentInjector,this.configLoader,this.rootComponentType,i.config,this.urlSerializer,this.paramsInheritanceStrategy),vs(A=>{s.targetSnapshot=A.targetSnapshot,s.urlAfterRedirects=A.urlAfterRedirects,this.currentNavigation=wt(Ce({},this.currentNavigation),{finalUrl:A.urlAfterRedirects});let k=new lie(A.id,this.urlSerializer.serialize(A.extractedUrl),this.urlSerializer.serialize(A.urlAfterRedirects),A.targetSnapshot);this.events.next(k)}));if(x&&this.urlHandlingStrategy.shouldProcessUrl(g.currentRawUrl)){let{id:A,extractedUrl:k,source:O,restoredState:F,extras:L}=g,z=new RB(A,this.urlSerializer.serialize(k),O,F);this.events.next(z);let j=p6e(this.rootComponentType).snapshot;return this.currentTransition=s=wt(Ce({},g),{targetSnapshot:j,urlAfterRedirects:k,extras:wt(Ce({},L),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=k,kn(s)}else{let A="";return this.events.next(new mT(g.id,this.urlSerializer.serialize(g.extractedUrl),A,aie.IgnoredByUrlHandlingStrategy)),g.resolve(!1),uu}}),vs(g=>{let x=new mCe(g.id,this.urlSerializer.serialize(g.extractedUrl),this.urlSerializer.serialize(g.urlAfterRedirects),g.targetSnapshot);this.events.next(x)}),ri(g=>(this.currentTransition=s=wt(Ce({},g),{guards:ext(g.targetSnapshot,g.currentSnapshot,this.rootContexts)}),s)),dxt(this.environmentInjector,g=>this.events.next(g)),vs(g=>{if(s.guardsResult=g.guardsResult,g.guardsResult&&typeof g.guardsResult!="boolean")throw fie(this.urlSerializer,g.guardsResult);let x=new gCe(g.id,this.urlSerializer.serialize(g.extractedUrl),this.urlSerializer.serialize(g.urlAfterRedirects),g.targetSnapshot,!!g.guardsResult);this.events.next(x)}),Wn(g=>g.guardsResult?!0:(this.cancelNavigationTransition(g,"",Jm.GuardRejected),!1)),cCe(g=>{if(g.guards.canActivateChecks.length)return kn(g).pipe(vs(x=>{let C=new _Ce(x.id,this.urlSerializer.serialize(x.extractedUrl),this.urlSerializer.serialize(x.urlAfterRedirects),x.targetSnapshot);this.events.next(C)}),lr(x=>{let C=!1;return kn(x).pipe(Fxt(this.paramsInheritanceStrategy,this.environmentInjector),vs({next:()=>C=!0,complete:()=>{C||this.cancelNavigationTransition(x,"",Jm.NoDataFromResolver)}}))}),vs(x=>{let C=new vCe(x.id,this.urlSerializer.serialize(x.extractedUrl),this.urlSerializer.serialize(x.urlAfterRedirects),x.targetSnapshot);this.events.next(C)}))}),cCe(g=>{let x=C=>{let A=[];C.routeConfig?.loadComponent&&!C.routeConfig._loadedComponent&&A.push(this.configLoader.loadComponent(C.routeConfig).pipe(vs(k=>{C.component=k}),ri(()=>{})));for(let k of C.children)A.push(...x(k));return A};return Zv(x(g.targetSnapshot.root)).pipe(Vm(null),kr(1))}),cCe(()=>this.afterPreactivation()),lr(()=>{let{currentSnapshot:g,targetSnapshot:x}=s,C=this.createViewTransition?.(this.environmentInjector,g.root,x.root);return C?wo(C).pipe(ri(()=>s)):kn(s)}),ri(g=>{let x=qbt(i.routeReuseStrategy,g.targetSnapshot,g.currentRouterState);return this.currentTransition=s=wt(Ce({},g),{targetRouterState:x}),this.currentNavigation.targetRouterState=x,s}),vs(()=>{this.events.next(new A8)}),Jbt(this.rootContexts,i.routeReuseStrategy,g=>this.events.next(g),this.inputBindingEnabled),kr(1),vs({next:g=>{c=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new yh(g.id,this.urlSerializer.serialize(g.extractedUrl),this.urlSerializer.serialize(g.urlAfterRedirects))),this.titleStrategy?.updateTitle(g.targetRouterState.snapshot),g.resolve(!0)},complete:()=>{c=!0}}),hr(this.transitionAbortSubject.pipe(vs(g=>{throw g}))),yb(()=>{!c&&!h&&this.cancelNavigationTransition(s,"",Jm.SupersededByNewNavigation),this.currentTransition?.id===s.id&&(this.currentNavigation=null,this.currentTransition=null)}),Ld(g=>{if(h=!0,v6e(g))this.events.next(new Qw(s.id,this.urlSerializer.serialize(s.extractedUrl),g.message,g.cancellationCode)),Wbt(g)?this.events.next(new NB(g.url,g.navigationBehaviorOptions)):s.resolve(!1);else{let x=new I8(s.id,this.urlSerializer.serialize(s.extractedUrl),g,s.targetSnapshot??void 0);try{let C=Nf(this.environmentInjector,()=>this.navigationErrorHandler?.(x));if(C instanceof k8){let{message:A,cancellationCode:k}=fie(this.urlSerializer,C);this.events.next(new Qw(s.id,this.urlSerializer.serialize(s.extractedUrl),A,k)),this.events.next(new NB(C.redirectTo,C.navigationBehaviorOptions))}else{this.events.next(x);let A=i.errorHandler(g);s.resolve(!!A)}}catch(C){this.options.resolveNavigationPromiseOnError?s.resolve(!1):s.reject(C)}}return uu}))}))}cancelNavigationTransition(i,r,o){let s=new Qw(i.id,this.urlSerializer.serialize(i.extractedUrl),r,o);this.events.next(s),i.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==this.currentTransition?.extractedUrl.toString()&&!this.currentTransition?.extras.skipLocationChange}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=It({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function $xt(n){return n!==w8}var Kxt=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=It({token:e,factory:()=>ai(Wxt),providedIn:"root"});let n=e;return n})(),NCe=class{shouldDetach(e){return!1}store(e,t){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,t){return e.routeConfig===t.routeConfig}},Wxt=(()=>{let e=class e extends NCe{};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=Qn(e)))(o||e)}})(),e.\u0275prov=It({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),T6e=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=It({token:e,factory:()=>ai(Zxt),providedIn:"root"});let n=e;return n})(),Zxt=(()=>{let e=class e extends T6e{constructor(){super(...arguments),this.location=ai(jf),this.urlSerializer=ai(P8),this.options=ai(z8,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=ai(VCe),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new fT,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=p6e(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(i){return this.location.subscribe(r=>{r.type==="popstate"&&i(r.url,r.state)})}handleRouterEvent(i,r){if(i instanceof RB)this.stateMemento=this.createStateMemento();else if(i instanceof mT)this.rawUrlTree=r.initialUrl;else if(i instanceof lie){if(this.urlUpdateStrategy==="eager"&&!r.extras.skipLocationChange){let o=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl);this.setBrowserUrl(o,r)}}else i instanceof A8?(this.currentUrlTree=r.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl),this.routerState=r.targetRouterState,this.urlUpdateStrategy==="deferred"&&(r.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,r))):i instanceof Qw&&(i.code===Jm.GuardRejected||i.code===Jm.NoDataFromResolver)?this.restoreHistory(r):i instanceof I8?this.restoreHistory(r,!0):i instanceof yh&&(this.lastSuccessfulId=i.id,this.currentPageId=this.browserPageId)}setBrowserUrl(i,r){let o=this.urlSerializer.serialize(i);if(this.location.isCurrentPathEqualTo(o)||r.extras.replaceUrl){let s=this.browserPageId,c=Ce(Ce({},r.extras.state),this.generateNgRouterState(r.id,s));this.location.replaceState(o,"",c)}else{let s=Ce(Ce({},r.extras.state),this.generateNgRouterState(r.id,this.browserPageId+1));this.location.go(o,"",s)}}restoreHistory(i,r=!1){if(this.canceledNavigationResolution==="computed"){let o=this.browserPageId,s=this.currentPageId-o;s!==0?this.location.historyGo(s):this.currentUrlTree===i.finalUrl&&s===0&&(this.resetState(i),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(r&&this.resetState(i),this.resetUrlToCurrentUrlTree())}resetState(i){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,i.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(i,r){return this.canceledNavigationResolution==="computed"?{navigationId:i,\u0275routerPageId:r}:{navigationId:i}}};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=Qn(e)))(o||e)}})(),e.\u0275prov=It({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),b8=function(n){return n[n.COMPLETE=0]="COMPLETE",n[n.FAILED=1]="FAILED",n[n.REDIRECTING=2]="REDIRECTING",n}(b8||{});function A6e(n,e){n.events.pipe(Wn(t=>t instanceof yh||t instanceof Qw||t instanceof I8||t instanceof mT),ri(t=>t instanceof yh||t instanceof mT?b8.COMPLETE:(t instanceof Qw?t.code===Jm.Redirect||t.code===Jm.SupersededByNewNavigation:!1)?b8.REDIRECTING:b8.FAILED),Wn(t=>t!==b8.REDIRECTING),kr(1)).subscribe(()=>{e()})}function Qxt(n){throw n}var Xxt={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Jxt={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},el=(()=>{let e=class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.console=ai(Cee),this.stateManager=ai(T6e),this.options=ai(z8,{optional:!0})||{},this.pendingTasks=ai(Ew),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=ai(UCe),this.urlSerializer=ai(P8),this.location=ai(jf),this.urlHandlingStrategy=ai(VCe),this._events=new mi,this.errorHandler=this.options.errorHandler||Qxt,this.navigated=!1,this.routeReuseStrategy=ai(Kxt),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=ai(R8,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!ai(_ie,{optional:!0}),this.eventsSubscription=new Qo,this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:i=>{this.console.warn(i)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let i=this.navigationTransitions.events.subscribe(r=>{try{let o=this.navigationTransitions.currentTransition,s=this.navigationTransitions.currentNavigation;if(o!==null&&s!==null){if(this.stateManager.handleRouterEvent(r,s),r instanceof Qw&&r.code!==Jm.Redirect&&r.code!==Jm.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof yh)this.navigated=!0;else if(r instanceof NB){let c=r.navigationBehaviorOptions,h=this.urlHandlingStrategy.merge(r.url,o.currentRawUrl),g=Ce({info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:o.extras.replaceUrl||this.urlUpdateStrategy==="eager"||$xt(o.source)},c);this.scheduleNavigation(h,w8,null,g,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}t1t(r)&&this._events.next(r)}catch(o){this.navigationTransitions.transitionAbortSubject.next(o)}});this.eventsSubscription.add(i)}resetRootComponentType(i){this.routerState.root.component=i,this.navigationTransitions.rootComponentType=i}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),w8,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((i,r)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(i,"popstate",r)},0)})}navigateToSyncWithBrowser(i,r,o){let s={replaceUrl:!0},c=o?.navigationId?o:null;if(o){let g=Ce({},o);delete g.navigationId,delete g.\u0275routerPageId,Object.keys(g).length!==0&&(s.state=g)}let h=this.parseUrl(i);this.scheduleNavigation(h,r,c,s)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(i){this.config=i.map(LCe),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(i,r={}){let{relativeTo:o,queryParams:s,fragment:c,queryParamsHandling:h,preserveFragment:g}=r,x=g?this.currentUrlTree.fragment:c,C=null;switch(h){case"merge":C=Ce(Ce({},this.currentUrlTree.queryParams),s);break;case"preserve":C=this.currentUrlTree.queryParams;break;default:C=s||null}C!==null&&(C=this.removeEmptyProps(C));let A;try{let k=o?o.snapshot:this.routerState.snapshot.root;A=c6e(k)}catch{(typeof i[0]!="string"||i[0][0]!=="/")&&(i=[]),A=this.currentUrlTree.root}return u6e(A,i,C,x??null)}navigateByUrl(i,r={skipLocationChange:!1}){let o=S8(i)?i:this.parseUrl(i),s=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(s,w8,null,r)}navigate(i,r={skipLocationChange:!1}){return e1t(i),this.navigateByUrl(this.createUrlTree(i,r),r)}serializeUrl(i){return this.urlSerializer.serialize(i)}parseUrl(i){try{return this.urlSerializer.parse(i)}catch{return this.urlSerializer.parse("/")}}isActive(i,r){let o;if(r===!0?o=Ce({},Xxt):r===!1?o=Ce({},Jxt):o=r,S8(i))return HUe(this.currentUrlTree,i,o);let s=this.parseUrl(i);return HUe(this.currentUrlTree,s,o)}removeEmptyProps(i){return Object.entries(i).reduce((r,[o,s])=>(s!=null&&(r[o]=s),r),{})}scheduleNavigation(i,r,o,s,c){if(this.disposed)return Promise.resolve(!1);let h,g,x;c?(h=c.resolve,g=c.reject,x=c.promise):x=new Promise((A,k)=>{h=A,g=k});let C=this.pendingTasks.add();return A6e(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(C))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:i,extras:s,resolve:h,reject:g,promise:x,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),x.catch(A=>Promise.reject(A))}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=It({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function e1t(n){for(let e=0;e{let e=class e{constructor(i,r,o,s,c,h){this.router=i,this.route=r,this.tabIndexAttribute=o,this.renderer=s,this.el=c,this.locationStrategy=h,this.href=null,this.commands=null,this.onChanges=new mi,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;let g=c.nativeElement.tagName?.toLowerCase();this.isAnchorElement=g==="a"||g==="area",this.isAnchorElement?this.subscription=i.events.subscribe(x=>{x instanceof yh&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(i){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",i)}ngOnChanges(i){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(i){i!=null?(this.commands=Array.isArray(i)?i:[i],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(i,r,o,s,c){let h=this.urlTree;if(h===null||this.isAnchorElement&&(i!==0||r||o||s||c||typeof this.target=="string"&&this.target!="_self"))return!0;let g={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(h,g),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let i=this.urlTree;this.href=i!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(i)):null;let r=this.href===null?null:yVe(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",r)}applyAttributeValue(i,r){let o=this.renderer,s=this.el.nativeElement;r!==null?o.setAttribute(s,i,r):o.removeAttribute(s,i)}get urlTree(){return this.commands===null?null:this.router.createUrlTree(this.commands,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}};e.\u0275fac=function(r){return new(r||e)(oe(el),oe(Kh),Hm("tabindex"),oe(Fl),oe(Ai),oe(Ww))},e.\u0275dir=Ki({type:e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(r,o){r&1&&At("click",function(c){return o.onClick(c.button,c.ctrlKey,c.shiftKey,c.altKey,c.metaKey)}),r&2&&Et("target",o.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",Ht],skipLocationChange:[2,"skipLocationChange","skipLocationChange",Ht],replaceUrl:[2,"replaceUrl","replaceUrl",Ht],routerLink:"routerLink"},standalone:!0,features:[Ir,eo]});let n=e;return n})(),LB=(()=>{let e=class e{get isActive(){return this._isActive}constructor(i,r,o,s,c){this.router=i,this.element=r,this.renderer=o,this.cdr=s,this.link=c,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new Kt,this.routerEventsSubscription=i.events.subscribe(h=>{h instanceof yh&&this.update()})}ngAfterContentInit(){kn(this.links.changes,kn(null)).pipe(_b()).subscribe(i=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let i=[...this.links.toArray(),this.link].filter(r=>!!r).map(r=>r.onChanges);this.linkInputChangesSubscription=wo(i).pipe(_b()).subscribe(r=>{this._isActive!==this.isLinkActive(this.router)(r)&&this.update()})}set routerLinkActive(i){let r=Array.isArray(i)?i:i.split(" ");this.classes=r.filter(o=>!!o)}ngOnChanges(i){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let i=this.hasActiveLinks();this.classes.forEach(r=>{i?this.renderer.addClass(this.element.nativeElement,r):this.renderer.removeClass(this.element.nativeElement,r)}),i&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==i&&(this._isActive=i,this.cdr.markForCheck(),this.isActiveChange.emit(i))})}isLinkActive(i){let r=i1t(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return o=>{let s=o.urlTree;return s?i.isActive(s,r):!1}}hasActiveLinks(){let i=this.isLinkActive(this.router);return this.link&&i(this.link)||this.links.some(i)}};e.\u0275fac=function(r){return new(r||e)(oe(el),oe(Ai),oe(Fl),oe(ur),oe(Wh,8))},e.\u0275dir=Ki({type:e,selectors:[["","routerLinkActive",""]],contentQueries:function(r,o,s){if(r&1&&gr(s,Wh,5),r&2){let c;Di(c=ki())&&(o.links=c)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[eo]});let n=e;return n})();function i1t(n){return!!n.paths}var gie=class{};var n1t=(()=>{let e=class e{constructor(i,r,o,s,c){this.router=i,this.injector=o,this.preloadingStrategy=s,this.loader=c}setUpPreloading(){this.subscription=this.router.events.pipe(Wn(i=>i instanceof yh),h_(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(i,r){let o=[];for(let s of r){s.providers&&!s._injector&&(s._injector=vee(s.providers,i,`Route: ${s.path}`));let c=s._injector??i,h=s._loadedInjector??c;(s.loadChildren&&!s._loadedRoutes&&s.canLoad===void 0||s.loadComponent&&!s._loadedComponent)&&o.push(this.preloadConfig(c,s)),(s.children||s._loadedRoutes)&&o.push(this.processRoutes(h,s.children??s._loadedRoutes))}return wo(o).pipe(_b())}preloadConfig(i,r){return this.preloadingStrategy.preload(r,()=>{let o;r.loadChildren&&r.canLoad===void 0?o=this.loader.loadChildren(i,r):o=kn(null);let s=o.pipe(xc(c=>c===null?kn(void 0):(r._loadedRoutes=c.routes,r._loadedInjector=c.injector,this.processRoutes(c.injector??i,c.routes))));if(r.loadComponent&&!r._loadedComponent){let c=this.loader.loadComponent(r);return wo([s,c]).pipe(_b())}else return s})}};e.\u0275fac=function(r){return new(r||e)(Ke(el),Ke(Iee),Ke(zd),Ke(gie),Ke(zCe))},e.\u0275prov=It({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),D6e=new fi(""),r1t=(()=>{let e=class e{constructor(i,r,o,s,c={}){this.urlSerializer=i,this.transitions=r,this.viewportScroller=o,this.zone=s,this.options=c,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},this.environmentInjector=ai(zd),c.scrollPositionRestoration||="disabled",c.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(i=>{i instanceof RB?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=i.navigationTrigger,this.restoredId=i.restoredState?i.restoredState.navigationId:0):i instanceof yh?(this.lastId=i.id,this.scheduleScrollEvent(i,this.urlSerializer.parse(i.urlAfterRedirects).fragment)):i instanceof mT&&i.code===aie.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(i,this.urlSerializer.parse(i.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(i=>{i instanceof cie&&(i.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(i.position):i.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(i.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(i,r){this.zone.runOutsideAngular(()=>ct(this,null,function*(){yield new Promise(o=>{setTimeout(()=>{o()}),ad(()=>{o()},{injector:this.environmentInjector})}),this.zone.run(()=>{this.transitions.events.next(new cie(i,this.lastSource==="popstate"?this.store[this.restoredId]:null,r))})}))}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}};e.\u0275fac=function(r){Jj()},e.\u0275prov=It({token:e,factory:e.\u0275fac});let n=e;return n})();function k6e(n,...e){return rO([{provide:R8,multi:!0,useValue:n},[],{provide:Kh,useFactory:M6e,deps:[el]},{provide:dO,multi:!0,useFactory:O6e},e.map(t=>t.\u0275providers)])}function M6e(n){return n.routerState.root}function V8(n,e){return{\u0275kind:n,\u0275providers:e}}function O6e(){let n=ai(yo);return e=>{let t=n.get(n0);if(e!==t.components[0])return;let i=n.get(el),r=n.get(R6e);n.get(jCe)===1&&i.initialNavigation(),n.get(N6e,null,Hs.Optional)?.setUpPreloading(),n.get(D6e,null,Hs.Optional)?.init(),i.resetRootComponentType(t.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}var R6e=new fi("",{factory:()=>new mi}),jCe=new fi("",{providedIn:"root",factory:()=>1});function o1t(){return V8(2,[{provide:jCe,useValue:0},{provide:uO,multi:!0,deps:[yo],useFactory:e=>{let t=e.get(lUe,Promise.resolve());return()=>t.then(()=>new Promise(i=>{let r=e.get(el),o=e.get(R6e);A6e(r,()=>{i(!0)}),e.get(UCe).afterPreactivation=()=>(i(!0),o.closed?kn(void 0):o),r.initialNavigation()}))}}])}function s1t(){return V8(3,[{provide:uO,multi:!0,useFactory:()=>{let e=ai(el);return()=>{e.setUpLocationChangeListener()}}},{provide:jCe,useValue:2}])}var N6e=new fi("");function a1t(n){return V8(0,[{provide:N6e,useExisting:n1t},{provide:gie,useExisting:n}])}function l1t(){return V8(8,[$Ue,{provide:_ie,useExisting:$Ue}])}function c1t(n){let e=[{provide:E6e,useValue:Gxt},{provide:I6e,useValue:Ce({skipNextTransition:!!n?.skipInitialTransition},n)}];return V8(9,e)}var QUe=new fi("ROUTER_FORROOT_GUARD"),u1t=[jf,{provide:P8,useClass:OB},el,F8,{provide:Kh,useFactory:M6e,deps:[el]},zCe,[]],C_=(()=>{let e=class e{constructor(i){}static forRoot(i,r){return{ngModule:e,providers:[u1t,[],{provide:R8,multi:!0,useValue:i},{provide:QUe,useFactory:f1t,deps:[[el,new xw,new RI]]},{provide:z8,useValue:r||{}},r?.useHash?h1t():p1t(),d1t(),r?.preloadingStrategy?a1t(r.preloadingStrategy).\u0275providers:[],r?.initialNavigation?m1t(r):[],r?.bindToComponentInputs?l1t().\u0275providers:[],r?.enableViewTransitions?c1t().\u0275providers:[],g1t()]}}static forChild(i){return{ngModule:e,providers:[{provide:R8,multi:!0,useValue:i}]}}};e.\u0275fac=function(r){return new(r||e)(Ke(QUe,8))},e.\u0275mod=Oi({type:e}),e.\u0275inj=Mi({});let n=e;return n})();function d1t(){return{provide:D6e,useFactory:()=>{let n=ai(yUe),e=ai(Zi),t=ai(z8),i=ai(UCe),r=ai(P8);return t.scrollOffset&&n.setOffset(t.scrollOffset),new r1t(r,i,n,e,t)}}}function h1t(){return{provide:Ww,useClass:uUe}}function p1t(){return{provide:Ww,useClass:Uwe}}function f1t(n){return"guarded"}function m1t(n){return[n.initialNavigation==="disabled"?s1t().\u0275providers:[],n.initialNavigation==="enabledBlocking"?o1t().\u0275providers:[]]}var XUe=new fi("");function g1t(){return[{provide:XUe,useFactory:O6e},{provide:dO,multi:!0,useExisting:XUe}]}var P6e="@azure/msal-angular",HCe="3.0.23",eR=new fi("MSAL_INSTANCE"),BB=new fi("MSAL_GUARD_CONFIG"),zB=new fi("MSAL_INTERCEPTOR_CONFIG"),_1t=new fi("MSAL_BROADCAST_CONFIG"),Zh=(()=>{class n{constructor(t,i){this.instance=t,this.location=i;let r=this.location.path(!0).split("#").pop();r&&(this.redirectHash=`#${r}`),this.instance.initializeWrapperLibrary(ywe.Angular,HCe)}initialize(){return wo(this.instance.initialize())}acquireTokenPopup(t){return wo(this.instance.acquireTokenPopup(t))}acquireTokenRedirect(t){return wo(this.instance.acquireTokenRedirect(t))}acquireTokenSilent(t){return wo(this.instance.acquireTokenSilent(t))}handleRedirectObservable(t){return wo(this.instance.initialize().then(()=>this.instance.handleRedirectPromise(t||this.redirectHash)))}loginPopup(t){return wo(this.instance.loginPopup(t))}loginRedirect(t){return wo(this.instance.loginRedirect(t))}logout(t){return wo(this.instance.logout(t))}logoutRedirect(t){return wo(this.instance.logoutRedirect(t))}logoutPopup(t){return wo(this.instance.logoutPopup(t))}ssoSilent(t){return wo(this.instance.ssoSilent(t))}getLogger(){return this.logger||(this.logger=this.instance.getLogger().clone(P6e,HCe)),this.logger}setLogger(t){this.logger=t.clone(P6e,HCe),this.instance.setLogger(t)}}return n.\u0275fac=function(t){return new(t||n)(Ke(eR),Ke(jf))},n.\u0275prov=It({token:n,factory:n.\u0275fac}),n})(),Xw=(()=>{class n{constructor(t,i,r){this.msalInstance=t,this.authService=i,this.msalBroadcastConfig=r,this.msalBroadcastConfig&&this.msalBroadcastConfig.eventsToReplay>0?(this.authService.getLogger().verbose(`BroadcastService - eventsToReplay set on BroadcastConfig, replaying the last ${this.msalBroadcastConfig.eventsToReplay} events`),this._msalSubject=new Yo(this.msalBroadcastConfig.eventsToReplay)):this._msalSubject=new mi,this.msalSubject$=this._msalSubject.asObservable(),this._inProgress=new ea(Fc.Startup),this.inProgress$=this._inProgress.asObservable(),this.msalInstance.addEventCallback(o=>{this._msalSubject.next(o);let s=l8.getInteractionStatusFromEvent(o,this._inProgress.value);s!==null&&(this.authService.getLogger().verbose(`BroadcastService - ${o.eventType} results in setting inProgress from ${this._inProgress.value} to ${s}`),this._inProgress.next(s))})}}return n.\u0275fac=function(t){return new(t||n)(Ke(eR),Ke(Zh),Ke(_1t,8))},n.\u0275prov=It({token:n,factory:n.\u0275fac}),n})(),S_=(()=>{class n{constructor(t,i,r,o,s){this.msalGuardConfig=t,this.msalBroadcastService=i,this.authService=r,this.location=o,this.router=s,this.msalBroadcastService.inProgress$.subscribe()}parseUrl(t){return this.router.parseUrl(t)}getDestinationUrl(t){this.authService.getLogger().verbose("Guard - getting destination url");let i=document.getElementsByTagName("base"),r=this.location.normalize(i.length?i[0].href:window.location.origin),o=this.location.prepareExternalUrl(t);return o.startsWith("#")?(this.authService.getLogger().verbose("Guard - destination by hash routing"),`${r}/${o}`):`${r}${t}`}loginInteractively(t){let i=typeof this.msalGuardConfig.authRequest=="function"?this.msalGuardConfig.authRequest(this.authService,t):Ce({},this.msalGuardConfig.authRequest);if(this.msalGuardConfig.interactionType===pr.Popup)return this.authService.getLogger().verbose("Guard - logging in by popup"),this.authService.loginPopup(i).pipe(ri(o=>(this.authService.getLogger().verbose("Guard - login by popup successful, can activate, setting active account"),this.authService.instance.setActiveAccount(o.account),!0)));this.authService.getLogger().verbose("Guard - logging in by redirect");let r=this.getDestinationUrl(t.url);return this.authService.loginRedirect(Ce({redirectStartPage:r},i)).pipe(ri(()=>!1))}activateHelper(t){if(this.msalGuardConfig.interactionType!==pr.Popup&&this.msalGuardConfig.interactionType!==pr.Redirect)throw new ZO("invalid_interaction_type","Invalid interaction type provided to MSAL Guard. InteractionType.Popup or InteractionType.Redirect must be provided in the MsalGuardConfiguration");if(this.authService.getLogger().verbose("MSAL Guard activated"),typeof window<"u"){if(bs.hashContainsKnownProperties(window.location.hash)&&pte.isInIframe()&&!this.authService.instance.getConfiguration().system.allowRedirectInIframe)return this.authService.getLogger().warning("Guard - redirectUri set to page with MSAL Guard. It is recommended to not set redirectUri to a page that requires authentication."),kn(!1)}else return this.authService.getLogger().info("Guard - window is undefined, MSAL does not support server-side token acquisition"),kn(!0);this.msalGuardConfig.loginFailedRoute&&(this.loginFailedRoute=this.parseUrl(this.msalGuardConfig.loginFailedRoute));let i=this.location.path(!0);return this.authService.initialize().pipe(h_(()=>this.authService.handleRedirectObservable()),h_(()=>{if(!this.authService.instance.getAllAccounts().length)return t?(this.authService.getLogger().verbose("Guard - no accounts retrieved, log in required to activate"),this.loginInteractively(t)):(this.authService.getLogger().verbose("Guard - no accounts retrieved, no state, cannot load"),kn(!1));if(this.authService.getLogger().verbose("Guard - at least 1 account exists, can activate or load"),t){let r=this.includesCode(t.url),o=!!t.root&&!!t.root.fragment&&this.includesCode(`#${t.root.fragment}`),s=this.location.prepareExternalUrl(t.url).indexOf("#")===0;if(r&&(o||s))return this.authService.getLogger().info("Guard - Hash contains known code response, stopping navigation."),i.indexOf("#")>-1?kn(this.parseUrl(this.location.path())):kn(this.parseUrl(""))}return kn(!0)}),Ld(r=>(this.authService.getLogger().error("Guard - error while logging in, unable to activate"),this.authService.getLogger().errorPii(`Guard - error: ${r.message}`),this.loginFailedRoute&&t?(this.authService.getLogger().verbose("Guard - loginFailedRoute set, redirecting"),kn(this.loginFailedRoute)):kn(!1))))}includesCode(t){return t.lastIndexOf("/code")>-1&&t.lastIndexOf("/code")===t.length-5||t.indexOf("#code=")>-1||t.indexOf("&code=")>-1}canActivate(t,i){return this.authService.getLogger().verbose("Guard - canActivate"),this.activateHelper(i)}canActivateChild(t,i){return this.authService.getLogger().verbose("Guard - canActivateChild"),this.activateHelper(i)}canMatch(){return this.authService.getLogger().verbose("Guard - canLoad"),this.activateHelper()}}return n.\u0275fac=function(t){return new(t||n)(Ke(BB),Ke(Xw),Ke(Zh),Ke(jf),Ke(el))},n.\u0275prov=It({token:n,factory:n.\u0275fac}),n})(),F6e=(()=>{class n{constructor(t,i,r,o,s){this.msalInterceptorConfig=t,this.authService=i,this.location=r,this.msalBroadcastService=o,this._document=s}intercept(t,i){if(this.msalInterceptorConfig.interactionType!==pr.Popup&&this.msalInterceptorConfig.interactionType!==pr.Redirect)throw new ZO("invalid_interaction_type","Invalid interaction type provided to MSAL Interceptor. InteractionType.Popup, InteractionType.Redirect must be provided in the msalInterceptorConfiguration");this.authService.getLogger().verbose("MSAL Interceptor activated");let r=this.getScopesForEndpoint(t.url,t.method);if(!r||r.length===0)return this.authService.getLogger().verbose("Interceptor - no scopes for endpoint"),i.handle(t);let o;this.authService.instance.getActiveAccount()?(this.authService.getLogger().verbose("Interceptor - active account selected"),o=this.authService.instance.getActiveAccount()):(this.authService.getLogger().verbose("Interceptor - no active account, fallback to first account"),o=this.authService.instance.getAllAccounts()[0]);let s=typeof this.msalInterceptorConfig.authRequest=="function"?this.msalInterceptorConfig.authRequest(this.authService,t,{account:o}):wt(Ce({},this.msalInterceptorConfig.authRequest),{account:o});return this.authService.getLogger().info(`Interceptor - ${r.length} scopes found for endpoint`),this.authService.getLogger().infoPii(`Interceptor - [${r}] scopes found for ${t.url}`),this.acquireToken(s,r,o).pipe(lr(c=>{this.authService.getLogger().verbose("Interceptor - setting authorization headers");let h=t.headers.set("Authorization",`Bearer ${c.accessToken}`),g=t.clone({headers:h});return i.handle(g)}))}acquireToken(t,i,r){return this.authService.acquireTokenSilent(wt(Ce({},t),{scopes:i,account:r})).pipe(Ld(()=>(this.authService.getLogger().error("Interceptor - acquireTokenSilent rejected with error. Invoking interaction to resolve."),this.msalBroadcastService.inProgress$.pipe(kr(1),lr(o=>o===Fc.None?this.acquireTokenInteractively(t,i):this.msalBroadcastService.inProgress$.pipe(Wn(s=>s===Fc.None),kr(1),lr(()=>this.acquireToken(t,i,r))))))),lr(o=>o.accessToken?kn(o):(this.authService.getLogger().error("Interceptor - acquireTokenSilent resolved with null access token. Known issue with B2C tenants, invoking interaction to resolve."),this.msalBroadcastService.inProgress$.pipe(Wn(s=>s===Fc.None),kr(1),lr(()=>this.acquireTokenInteractively(t,i))))))}acquireTokenInteractively(t,i){if(this.msalInterceptorConfig.interactionType===pr.Popup)return this.authService.getLogger().verbose("Interceptor - error acquiring token silently, acquiring by popup"),this.authService.acquireTokenPopup(wt(Ce({},t),{scopes:i}));this.authService.getLogger().verbose("Interceptor - error acquiring token silently, acquiring by redirect");let r=window.location.href;return this.authService.acquireTokenRedirect(wt(Ce({},t),{scopes:i,redirectStartPage:r})),uu}getScopesForEndpoint(t,i){this.authService.getLogger().verbose("Interceptor - getting scopes for endpoint");let r=this.location.normalize(t),o=Array.from(this.msalInterceptorConfig.protectedResourceMap.keys()),s=this.matchResourcesToEndpoint(o,r);return s.length>0?this.matchScopesToEndpoint(this.msalInterceptorConfig.protectedResourceMap,s,i):null}matchResourcesToEndpoint(t,i){let r=[];return t.forEach(o=>{let s=this.location.normalize(o),c=this.getAbsoluteUrl(s),h=new URL(c),g=this.getAbsoluteUrl(i),x=new URL(g);this.checkUrlComponents(h,x)&&r.push(o)}),r}checkUrlComponents(t,i){let r=["protocol","host","pathname","search","hash"];for(let o of r)if(t[o]){let s=decodeURIComponent(t[o]);if(!Tc.matchPattern(s,i[o]))return!1}return!0}getAbsoluteUrl(t){let i=this._document.createElement("a");return i.href=t,i.href}matchScopesToEndpoint(t,i,r){let o=[];return i.forEach(s=>{let c=[],h=t.get(s);if(h===null){o.push(null);return}h.forEach(g=>{if(typeof g=="string")c.push(g);else{let x=r.toLowerCase();g.httpMethod.toLowerCase()===x&&(g.scopes===null?o.push(null):g.scopes.forEach(A=>{c.push(A)}))}}),c.length>0&&o.push(c)}),o.length>0?(o.length>1&&this.authService.getLogger().warning("Interceptor - More than 1 matching scopes for endpoint found."),o[0]):null}}return n.\u0275fac=function(t){return new(t||n)(Ke(zB),Ke(Zh),Ke(jf),Ke(Xw),Ke(Ln))},n.\u0275prov=It({token:n,factory:n.\u0275fac}),n})();var GCe=(()=>{class n{static forRoot(t,i,r){return{ngModule:n,providers:[{provide:eR,useValue:t},{provide:BB,useValue:i},{provide:zB,useValue:r},Zh]}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Oi({type:n}),n.\u0275inj=Mi({providers:[S_,Xw],imports:[os]}),n})();var d0=new fi("BD_FRONTEND_APP_CONFIG"),dr=(()=>{let e=class e{constructor(i){this._appConfig=i,this.store()}store(){if(this._storeValues(this._appConfig.apiEndpoints),this._storeValues(this._appConfig.variables),this._appConfig.helpResources&&this._appConfig.helpResources.length>0){let i=`${e.envStoragePrefix}.BD_HELP_RESOURCE_URLS`;sessionStorage.setItem(i,JSON.stringify(this._appConfig.helpResources))}}_storeValues(i={}){Object.keys(i).forEach(o=>{let s=`${e.envStoragePrefix}.${o}`,c=i[o];c.toString().match('[\\[\\{][\\\\\\"].*([\\"\\\\]|\\w)[\\]\\}]')&&(c=JSON.parse(c)),sessionStorage.setItem(s,JSON.stringify(c))})}load(i,r=!1){let o=`${e.envStoragePrefix}.${i}`,s=sessionStorage.getItem(o),c=null;if(!s&&!r)throw new Error(`${i} is missing in storage.`);try{c=JSON.parse(s)}catch{c=s}return c}};e.envStoragePrefix="bd.config",e.\u0275fac=function(r){return new(r||e)(Ke(d0))},e.\u0275prov=It({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function qCe(n){for(let e in n){let t=n[e]??"";switch(e){case"display":t==="flex"?n.display=["-webkit-flex","flex"]:t==="inline-flex"?n.display=["-webkit-inline-flex","inline-flex"]:n.display=t;break;case"align-items":case"align-self":case"align-content":case"flex":case"flex-basis":case"flex-flow":case"flex-grow":case"flex-shrink":case"flex-wrap":case"justify-content":n["-webkit-"+e]=t;break;case"flex-direction":n["-webkit-flex-direction"]=t,n["flex-direction"]=t;break;case"order":n.order=n["-webkit-"+e]=isNaN(+t)?"0":t;break}}return n}var YCe="inline",j8=["row","column","row-reverse","column-reverse"];function yie(n){let[e,t,i]=B6e(n);return y1t(e,t,i)}function B6e(n){n=n?.toLowerCase()??"";let[e,t,i]=n.split(" ");return j8.find(r=>r===e)||(e=j8[0]),t===YCe&&(t=i!==YCe?i:"",i=YCe),[e,v1t(t),!!i]}function H8(n){let[e]=B6e(n);return e.indexOf("row")>-1}function v1t(n){if(n)switch(n.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":n="wrap-reverse";break;case"no":case"none":case"nowrap":n="nowrap";break;default:n="wrap";break}return n}function y1t(n,e=null,t=!1){return{display:t?"inline-flex":"flex","box-sizing":"border-box","flex-direction":n,"flex-wrap":e||null}}function h0(n,...e){if(n==null)throw TypeError("Cannot convert undefined or null to object");for(let t of e)if(t!=null)for(let i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);return n}function b1t(n,e){return()=>{if(hl(e)){let t=Array.from(n.querySelectorAll(`[class*=${z6e}]`)),i=/\bflex-layout-.+?\b/g;t.forEach(r=>{r.classList.contains(`${z6e}ssr`)&&r.parentNode?r.parentNode.removeChild(r):r.className.replace(i,"")})}}}var x1t={provide:dO,useFactory:b1t,deps:[Ln,va],multi:!0},z6e="flex-layout-";var jB=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Oi({type:n}),n.\u0275inj=Mi({providers:[x1t]}),n})(),_T=class n{constructor(e=!1,t="all",i="",r="",o=0){this.matches=e,this.mediaQuery=t,this.mqAlias=i,this.suffix=r,this.priority=o,this.property=""}clone(){return new n(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}};var w1t=(()=>{class n{constructor(){this.stylesheet=new Map}addStyleToElement(t,i,r){let o=this.stylesheet.get(t);o?o.set(i,r):this.stylesheet.set(t,new Map([[i,r]]))}clearStyles(){this.stylesheet.clear()}getStyleForElement(t,i){let r=this.stylesheet.get(t),o="";if(r){let s=r.get(i);(typeof s=="number"||typeof s=="string")&&(o=s+"")}return o}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=It({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var bie={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[],multiplier:void 0,defaultUnit:"px",detectLayoutDisplay:!1},tg=new fi("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>bie});var HB=new fi("FlexLayoutServerLoaded",{providedIn:"root",factory:()=>!1});var xie=new fi("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:()=>null});function KCe(n,e){return n=n?.clone()??new _T,e&&(n.mqAlias=e.alias,n.mediaQuery=e.mediaQuery,n.suffix=e.suffix,n.priority=e.priority),n}var E_=class{constructor(){this.shouldCache=!0}sideEffect(e,t,i){}};var jb=(()=>{class n{constructor(t,i,r,o){this._serverStylesheet=t,this._serverModuleLoaded=i,this._platformId=r,this.layoutConfig=o}applyStyleToElement(t,i,r=null){let o={};typeof i=="string"&&(o[i]=r,i=o),o=this.layoutConfig.disableVendorPrefixes?i:qCe(i),this._applyMultiValueStyleToElement(o,t)}applyStyleToElements(t,i=[]){let r=this.layoutConfig.disableVendorPrefixes?t:qCe(t);i.forEach(o=>{this._applyMultiValueStyleToElement(r,o)})}getFlowDirection(t){let i="flex-direction",r=this.lookupStyle(t,i),o=this.lookupInlineStyle(t,i)||Vb(this._platformId)&&this._serverModuleLoaded?r:"";return[r||"row",o]}hasWrap(t){return this.lookupStyle(t,"flex-wrap")==="wrap"}lookupAttributeValue(t,i){return t.getAttribute(i)??""}lookupInlineStyle(t,i){return hl(this._platformId)?t.style.getPropertyValue(i):C1t(t,i)}lookupStyle(t,i,r=!1){let o="";return t&&((o=this.lookupInlineStyle(t,i))||(hl(this._platformId)?r||(o=getComputedStyle(t).getPropertyValue(i)):this._serverModuleLoaded&&(o=this._serverStylesheet.getStyleForElement(t,i)))),o?o.trim():""}_applyMultiValueStyleToElement(t,i){Object.keys(t).sort().forEach(r=>{let o=t[r],s=Array.isArray(o)?o:[o];s.sort();for(let c of s)c=c?c+"":"",hl(this._platformId)||!this._serverModuleLoaded?hl(this._platformId)?i.style.setProperty(r,c):S1t(i,r,c):this._serverStylesheet.addStyleToElement(i,r,c)})}}return n.\u0275fac=function(t){return new(t||n)(Ke(w1t),Ke(HB),Ke(va),Ke(tg))},n.\u0275prov=It({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function C1t(n,e){return Z6e(n)[e]??""}function S1t(n,e,t){e=e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();let i=Z6e(n);i[e]=t??"",E1t(n,i)}function E1t(n,e){let t="";for(let i in e)e[i]&&(t+=`${i}:${e[i]};`);n.setAttribute("style",t)}function Z6e(n){let e={},t=n.getAttribute("style");if(t){let i=t.split(/;+/g);for(let r=0;r0){let s=o.indexOf(":");if(s===-1)throw new Error(`Invalid CSS style: ${o}`);let c=o.substr(0,s).trim();e[c]=o.substr(s+1).trim()}}}return e}function UB(n,e){let t=n&&n.priority||0;return(e&&e.priority||0)-t}function I1t(n,e){let t=n.priority||0,i=e.priority||0;return t-i}var Q6e=(()=>{class n{constructor(t,i,r){this._zone=t,this._platformId=i,this._document=r,this.source=new ea(new _T(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}get activations(){let t=[];return this.registry.forEach((i,r)=>{i.matches&&t.push(r)}),t}isActive(t){return this.registry.get(t)?.matches??this.registerQuery(t).some(r=>r.matches)}observe(t,i=!1){if(t&&t.length){let r=this._observable$.pipe(Wn(s=>i?t.indexOf(s.mediaQuery)>-1:!0)),o=new fo(s=>{let c=this.registerQuery(t);if(c.length){let h=c.pop();c.forEach(g=>{s.next(g)}),this.source.next(h)}s.complete()});return Da(o,r)}return this._observable$}registerQuery(t){let i=Array.isArray(t)?t:[t],r=[];return T1t(i,this._document),i.forEach(o=>{let s=h=>{this._zone.run(()=>this.source.next(new _T(h.matches,o)))},c=this.registry.get(o);c||(c=this.buildMQL(o),c.addListener(s),this.pendingRemoveListenerFns.push(()=>c.removeListener(s)),this.registry.set(o,c)),c.matches&&r.push(new _T(!0,o))}),r}ngOnDestroy(){let t;for(;t=this.pendingRemoveListenerFns.pop();)t()}buildMQL(t){return D1t(t,hl(this._platformId))}}return n.\u0275fac=function(t){return new(t||n)(Ke(Zi),Ke(va),Ke(Ln))},n.\u0275prov=It({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),V6e={};function T1t(n,e){let t=n.filter(i=>!V6e[i]);if(t.length>0){let i=t.join(", ");try{let r=e.createElement("style");if(r.setAttribute("type","text/css"),!r.styleSheet){let o=` /* @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners see http://bit.ly/2sd4HMP */ @media ${i} {.fx-query-test{ }} `;r.appendChild(e.createTextNode(o))}e.head.appendChild(r),t.forEach(o=>V6e[o]=r)}catch(r){console.error(r)}}}function A1t(n){let e=new EventTarget;return e.matches=n==="all"||n==="",e.media=n,e.addListener=()=>{},e.removeListener=()=>{},e.addEventListener=()=>{},e.dispatchEvent=()=>!1,e.onchange=null,e}function D1t(n,e){return e&&!!window.matchMedia("all").addListener?window.matchMedia(n):A1t(n)}var k1t=[{alias:"xs",mediaQuery:"screen and (min-width: 0px) and (max-width: 599.98px)",priority:1e3},{alias:"sm",mediaQuery:"screen and (min-width: 600px) and (max-width: 959.98px)",priority:900},{alias:"md",mediaQuery:"screen and (min-width: 960px) and (max-width: 1279.98px)",priority:800},{alias:"lg",mediaQuery:"screen and (min-width: 1280px) and (max-width: 1919.98px)",priority:700},{alias:"xl",mediaQuery:"screen and (min-width: 1920px) and (max-width: 4999.98px)",priority:600},{alias:"lt-sm",overlapping:!0,mediaQuery:"screen and (max-width: 599.98px)",priority:950},{alias:"lt-md",overlapping:!0,mediaQuery:"screen and (max-width: 959.98px)",priority:850},{alias:"lt-lg",overlapping:!0,mediaQuery:"screen and (max-width: 1279.98px)",priority:750},{alias:"lt-xl",overlapping:!0,priority:650,mediaQuery:"screen and (max-width: 1919.98px)"},{alias:"gt-xs",overlapping:!0,mediaQuery:"screen and (min-width: 600px)",priority:-950},{alias:"gt-sm",overlapping:!0,mediaQuery:"screen and (min-width: 960px)",priority:-850},{alias:"gt-md",overlapping:!0,mediaQuery:"screen and (min-width: 1280px)",priority:-750},{alias:"gt-lg",overlapping:!0,mediaQuery:"screen and (min-width: 1920px)",priority:-650}];var U6e="(orientation: portrait) and (max-width: 599.98px)",j6e="(orientation: landscape) and (max-width: 959.98px)",H6e="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",G6e="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",Y6e="(orientation: portrait) and (min-width: 840px)",q6e="(orientation: landscape) and (min-width: 1280px)",Jw={HANDSET:`${U6e}, ${j6e}`,TABLET:`${H6e} , ${G6e}`,WEB:`${Y6e}, ${q6e} `,HANDSET_PORTRAIT:`${U6e}`,TABLET_PORTRAIT:`${H6e} `,WEB_PORTRAIT:`${Y6e}`,HANDSET_LANDSCAPE:`${j6e}`,TABLET_LANDSCAPE:`${G6e}`,WEB_LANDSCAPE:`${q6e}`},M1t=[{alias:"handset",priority:2e3,mediaQuery:Jw.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:Jw.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:Jw.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:Jw.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:Jw.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:Jw.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:Jw.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:Jw.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:Jw.WEB_PORTRAIT,overlapping:!0}],O1t=/(\.|-|_)/g;function R1t(n){let e=n.length>0?n.charAt(0):"",t=n.length>1?n.slice(1):"";return e.toUpperCase()+t}function N1t(n){return n.replace(O1t,"|").split("|").map(R1t).join("")}function P1t(n){return n.forEach(e=>{e.suffix||(e.suffix=N1t(e.alias),e.overlapping=!!e.overlapping)}),n}function F1t(n,e=[]){let t={};return n.forEach(i=>{t[i.alias]=i}),e.forEach(i=>{t[i.alias]?h0(t[i.alias],i):t[i.alias]=i}),P1t(Object.keys(t).map(i=>t[i]))}var L1t=new fi("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:()=>{let n=ai(xie),e=ai(tg),t=[].concat.apply([],(n||[]).map(r=>Array.isArray(r)?r:[r])),i=(e.disableDefaultBps?[]:k1t).concat(e.addOrientationBps?M1t:[]);return F1t(i,t)}});var WCe=(()=>{class n{constructor(t){this.findByMap=new Map,this.items=[...t].sort(I1t)}findByAlias(t){return t?this.findWithPredicate(t,i=>i.alias===t):null}findByQuery(t){return this.findWithPredicate(t,i=>i.mediaQuery===t)}get overlappings(){return this.items.filter(t=>t.overlapping)}get aliases(){return this.items.map(t=>t.alias)}get suffixes(){return this.items.map(t=>t?.suffix??"")}findWithPredicate(t,i){let r=this.findByMap.get(t);return r||(r=this.items.find(i)??null,this.findByMap.set(t,r)),r??null}}return n.\u0275fac=function(t){return new(t||n)(Ke(L1t))},n.\u0275prov=It({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var VB="print",B1t={alias:VB,mediaQuery:VB,priority:1e3},X6e=(()=>{class n{constructor(t,i,r){this.breakpoints=t,this.layoutConfig=i,this._document=r,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.formerActivations=null,this.isPrinting=!1,this.queue=new $Ce,this.deactivations=[]}withPrintQuery(t){return[...t,VB]}isPrintEvent(t){return t.mediaQuery.startsWith(VB)}get printAlias(){return[...this.layoutConfig.printWithBreakpoints??[]]}get printBreakPoints(){return this.printAlias.map(t=>this.breakpoints.findByAlias(t)).filter(t=>t!==null)}getEventBreakpoints({mediaQuery:t}){let i=this.breakpoints.findByQuery(t);return(i?[...this.printBreakPoints,i]:this.printBreakPoints).sort(UB)}updateEvent(t){let i=this.breakpoints.findByQuery(t.mediaQuery);return this.isPrintEvent(t)&&(i=this.getEventBreakpoints(t)[0],t.mediaQuery=i?.mediaQuery??""),KCe(t,i)}registerBeforeAfterPrintHooks(t){if(!this._document.defaultView||this.registeredBeforeAfterPrintHooks)return;this.registeredBeforeAfterPrintHooks=!0;let i=()=>{this.isPrinting||(this.isPrintingBeforeAfterEvent=!0,this.startPrinting(t,this.getEventBreakpoints(new _T(!0,VB))),t.updateStyles())},r=()=>{this.isPrintingBeforeAfterEvent=!1,this.isPrinting&&(this.stopPrinting(t),t.updateStyles())};this._document.defaultView.addEventListener("beforeprint",i),this._document.defaultView.addEventListener("afterprint",r),this.beforePrintEventListeners.push(i),this.afterPrintEventListeners.push(r)}interceptEvents(t){return i=>{if(this.isPrintEvent(i)){i.matches&&!this.isPrinting?(this.startPrinting(t,this.getEventBreakpoints(i)),t.updateStyles()):!i.matches&&this.isPrinting&&!this.isPrintingBeforeAfterEvent&&(this.stopPrinting(t),t.updateStyles());return}this.collectActivations(t,i)}}blockPropagation(){return t=>!(this.isPrinting||this.isPrintEvent(t))}startPrinting(t,i){this.isPrinting=!0,this.formerActivations=t.activatedBreakpoints,t.activatedBreakpoints=this.queue.addPrintBreakpoints(i)}stopPrinting(t){t.activatedBreakpoints=this.deactivations,this.deactivations=[],this.formerActivations=null,this.queue.clear(),this.isPrinting=!1}collectActivations(t,i){if(!this.isPrinting||this.isPrintingBeforeAfterEvent){if(!this.isPrintingBeforeAfterEvent){this.deactivations=[];return}if(!i.matches){let r=this.breakpoints.findByQuery(i.mediaQuery);if(r){let o=this.formerActivations&&this.formerActivations.includes(r),s=!this.formerActivations&&t.activatedBreakpoints.includes(r);(o||s)&&(this.deactivations.push(r),this.deactivations.sort(UB))}}}}ngOnDestroy(){this._document.defaultView&&(this.beforePrintEventListeners.forEach(t=>this._document.defaultView.removeEventListener("beforeprint",t)),this.afterPrintEventListeners.forEach(t=>this._document.defaultView.removeEventListener("afterprint",t)))}}return n.\u0275fac=function(t){return new(t||n)(Ke(WCe),Ke(tg),Ke(Ln))},n.\u0275prov=It({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),$Ce=class{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(e){return e.push(B1t),e.sort(UB),e.forEach(t=>this.addBreakpoint(t)),this.printBreakpoints}addBreakpoint(e){e&&this.printBreakpoints.find(i=>i.mediaQuery===e.mediaQuery)===void 0&&(this.printBreakpoints=z1t(e)?[e,...this.printBreakpoints]:[...this.printBreakpoints,e])}clear(){this.printBreakpoints=[]}};function z1t(n){return n?.mediaQuery.startsWith(VB)??!1}var eC=(()=>{class n{constructor(t,i,r){this.matchMedia=t,this.breakpoints=i,this.hook=r,this._useFallbacks=!0,this._activatedBreakpoints=[],this.elementMap=new Map,this.elementKeyMap=new WeakMap,this.watcherMap=new WeakMap,this.updateMap=new WeakMap,this.clearMap=new WeakMap,this.subject=new mi,this.observeActivations()}get activatedAlias(){return this.activatedBreakpoints[0]?.alias??""}set activatedBreakpoints(t){this._activatedBreakpoints=[...t]}get activatedBreakpoints(){return[...this._activatedBreakpoints]}set useFallbacks(t){this._useFallbacks=t}onMediaChange(t){let i=this.findByQuery(t.mediaQuery);if(i){t=KCe(t,i);let r=this.activatedBreakpoints.indexOf(i);t.matches&&r===-1?(this._activatedBreakpoints.push(i),this._activatedBreakpoints.sort(UB),this.updateStyles()):!t.matches&&r!==-1&&(this._activatedBreakpoints.splice(r,1),this._activatedBreakpoints.sort(UB),this.updateStyles())}}init(t,i,r,o,s=[]){$6e(this.updateMap,t,i,r),$6e(this.clearMap,t,i,o),this.buildElementKeyMap(t,i),this.watchExtraTriggers(t,i,s)}getValue(t,i,r){let o=this.elementMap.get(t);if(o){let s=r!==void 0?o.get(r):this.getActivatedValues(o,i);if(s)return s.get(i)}}hasValue(t,i){let r=this.elementMap.get(t);if(r){let o=this.getActivatedValues(r,i);if(o)return o.get(i)!==void 0||!1}return!1}setValue(t,i,r,o){let s=this.elementMap.get(t);if(!s)s=new Map().set(o,new Map().set(i,r)),this.elementMap.set(t,s);else{let h=(s.get(o)??new Map).set(i,r);s.set(o,h),this.elementMap.set(t,s)}let c=this.getValue(t,i);c!==void 0&&this.updateElement(t,i,c)}trackValue(t,i){return this.subject.asObservable().pipe(Wn(r=>r.element===t&&r.key===i))}updateStyles(){this.elementMap.forEach((t,i)=>{let r=new Set(this.elementKeyMap.get(i)),o=this.getActivatedValues(t);o&&o.forEach((s,c)=>{this.updateElement(i,c,s),r.delete(c)}),r.forEach(s=>{if(o=this.getActivatedValues(t,s),o){let c=o.get(s);this.updateElement(i,s,c)}else this.clearElement(i,s)})})}clearElement(t,i){let r=this.clearMap.get(t);if(r){let o=r.get(i);o&&(o(),this.subject.next({element:t,key:i,value:""}))}}updateElement(t,i,r){let o=this.updateMap.get(t);if(o){let s=o.get(i);s&&(s(r),this.subject.next({element:t,key:i,value:r}))}}releaseElement(t){let i=this.watcherMap.get(t);i&&(i.forEach(o=>o.unsubscribe()),this.watcherMap.delete(t));let r=this.elementMap.get(t);r&&(r.forEach((o,s)=>r.delete(s)),this.elementMap.delete(t))}triggerUpdate(t,i){let r=this.elementMap.get(t);if(r){let o=this.getActivatedValues(r,i);o&&(i?this.updateElement(t,i,o.get(i)):o.forEach((s,c)=>this.updateElement(t,c,s)))}}buildElementKeyMap(t,i){let r=this.elementKeyMap.get(t);r||(r=new Set,this.elementKeyMap.set(t,r)),r.add(i)}watchExtraTriggers(t,i,r){if(r&&r.length){let o=this.watcherMap.get(t);if(o||(o=new Map,this.watcherMap.set(t,o)),!o.get(i)){let c=Da(...r).subscribe(()=>{let h=this.getValue(t,i);this.updateElement(t,i,h)});o.set(i,c)}}}findByQuery(t){return this.breakpoints.findByQuery(t)}getActivatedValues(t,i){for(let o=0;oi.mediaQuery);this.hook.registerBeforeAfterPrintHooks(this),this.matchMedia.observe(this.hook.withPrintQuery(t)).pipe(vs(this.hook.interceptEvents(this)),Wn(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}return n.\u0275fac=function(t){return new(t||n)(Ke(Q6e),Ke(WCe),Ke(X6e))},n.\u0275prov=It({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function $6e(n,e,t,i){if(i!==void 0){let r=n.get(e)??new Map;r.set(t,i),n.set(e,r)}}var tC=(()=>{class n{constructor(t,i,r,o){this.elementRef=t,this.styleBuilder=i,this.styler=r,this.marshal=o,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new mi,this.styleCache=new Map}get parentElement(){return this.elementRef.nativeElement.parentElement}get nativeElement(){return this.elementRef.nativeElement}get activatedValue(){return this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY)}set activatedValue(t){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,t,this.marshal.activatedAlias)}ngOnChanges(t){Object.keys(t).forEach(i=>{if(this.inputs.indexOf(i)!==-1){let r=i.split(".").slice(1).join("."),o=t[i].currentValue;this.setValue(o,r)}})}ngOnDestroy(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}init(t=[]){this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),t)}addStyles(t,i){let r=this.styleBuilder,o=r.shouldCache,s=this.styleCache.get(t);(!s||!o)&&(s=r.buildStyles(t,i),o&&this.styleCache.set(t,s)),this.mru=Ce({},s),this.applyStyleToElement(s),r.sideEffect(t,s,i)}clearStyles(){Object.keys(this.mru).forEach(t=>{this.mru[t]=""}),this.applyStyleToElement(this.mru),this.mru={},this.currentValue=void 0}triggerUpdate(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}getFlexFlowDirection(t,i=!1){if(t){let[r,o]=this.styler.getFlowDirection(t);if(!o&&i){let s=yie(r),c=[t];this.styler.applyStyleToElements(s,c)}return r.trim()}return"row"}hasWrap(t){return this.styler.hasWrap(t)}applyStyleToElement(t,i,r=this.nativeElement){this.styler.applyStyleToElement(r,t,i)}setValue(t,i){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,t,i)}updateWithValue(t){this.currentValue!==t&&(this.addStyles(t),this.currentValue=t)}}return n.\u0275fac=function(t){return new(t||n)(oe(Ai),oe(E_),oe(jb),oe(eC))},n.\u0275dir=Ki({type:n,features:[eo]}),n})();function V1t(n){return Array.isArray(n)?n:[n]}var GB=(()=>{class n{constructor(t,i,r){this.breakpoints=t,this.matchMedia=i,this.hook=r,this.filterOverlaps=!1,this.destroyed$=new mi,this._media$=this.watchActivations()}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}asObservable(){return this._media$}isActive(t){return j1t(V1t(t)).some(r=>{let o=U1t(r,this.breakpoints);return o!==null&&this.matchMedia.isActive(o)})}watchActivations(){let t=this.breakpoints.items.map(i=>i.mediaQuery);return this.buildObservable(t)}buildObservable(t){let i=s=>{let c=h=>h.mediaQuery.length>0;return s.filter(c).length>0},r=s=>this.filterOverlaps?s.filter(c=>this.breakpoints.findByQuery(c.mediaQuery)?.overlapping??!0):s,o=(s,c)=>{if(s.length!==c.length)return!1;let h=s.map(C=>C.mediaQuery),g=new Set(c.map(C=>C.mediaQuery));return new Set(h.filter(C=>!g.has(C))).size===0};return this.matchMedia.observe(this.hook.withPrintQuery(t)).pipe(Wn(s=>s.matches),Qv(0,GM),lr(s=>kn(this.findAllActivations())),ri(r),Wn(i),hh(o),hr(this.destroyed$))}findAllActivations(){let t=r=>{let o=this.breakpoints.findByQuery(r.mediaQuery);return KCe(r,o)},i=r=>this.hook.isPrintEvent(r)?this.hook.updateEvent(r):r;return this.matchMedia.activations.map(r=>new _T(!0,r)).map(i).map(t).sort(UB)}}return n.\u0275fac=function(t){return new(t||n)(Ke(WCe),Ke(Q6e),Ke(X6e))},n.\u0275prov=It({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function U1t(n,e){return(e.findByAlias(n)??e.findByQuery(n))?.mediaQuery??null}function j1t(n){return n.flatMap(e=>e.split(",")).map(e=>e.trim())}function ZCe(n,e="1",t="1"){let i=[e,t,n],r=n.indexOf("calc");if(r>0){i[2]=K6e(n.substring(r).trim());let o=n.substr(0,r).trim().split(" ");o.length==2&&(i[0]=o[0],i[1]=o[1])}else if(r==0)i[2]=K6e(n.trim());else{let o=n.split(" ");i=o.length===3?o:[e,t,n]}return i}function K6e(n){return n.replace(/[\s]/g,"").replace(/[\/\*\+\-]/g," $& ")}var W6e="x";function wie(n,e){if(e===void 0)return n;let t=i=>{let r=+i.slice(0,-W6e.length);return n.endsWith(W6e)&&!isNaN(r)?`${r*e.value}${e.unit}`:n};return n.includes(" ")?n.split(" ").map(t).join(" "):t(n)}function wl(n){return n!=null&&`${n}`!="false"}function Qh(n,e=0){return H1t(n)?Number(n):e}function H1t(n){return!isNaN(parseFloat(n))&&!isNaN(Number(n))}function YB(n){return Array.isArray(n)?n:[n]}function pu(n){return n==null?"":typeof n=="string"?n:`${n}px`}function Yf(n){return n instanceof Ai?n.nativeElement:n}var G1t=(()=>{class n extends E_{buildStyles(t,i){return{display:t==="true"?i.display||(i.isServer?"initial":""):"none"}}}return n.\u0275fac=(()=>{let e;return function(i){return(e||(e=Qn(n)))(i||n)}})(),n.\u0275prov=It({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Y1t=(()=>{class n extends tC{constructor(t,i,r,o,s,c,h){super(t,i,r,o),this.layoutConfig=s,this.platformId=c,this.serverModuleLoaded=h,this.DIRECTIVE_KEY="show-hide",this.display="",this.hasLayout=!1,this.hasFlexChild=!1}ngAfterViewInit(){this.trackExtraTriggers();let t=Array.from(this.nativeElement.children);for(let r=0;r{if(this.inputs.indexOf(i)!==-1){let r=i.split("."),o=r.slice(1).join("."),s=t[i].currentValue,c=s!==""?s!==0?wl(s):!1:!0;r[0]==="fxHide"&&(c=!c),this.setValue(c,o)}})}trackExtraTriggers(){this.hasLayout=this.marshal.hasValue(this.nativeElement,"layout"),["layout","layout-align"].forEach(t=>{this.marshal.trackValue(this.nativeElement,t).pipe(hr(this.destroySubject)).subscribe(this.triggerUpdate.bind(this))})}getDisplayStyle(){return this.hasLayout||this.hasFlexChild&&this.layoutConfig.addFlexToParent?"flex":this.styler.lookupStyle(this.nativeElement,"display",!0)}updateWithValue(t=!0){if(t==="")return;let i=Vb(this.platformId);this.addStyles(t?"true":"false",{display:this.display,isServer:i}),i&&this.serverModuleLoaded&&this.nativeElement.style.setProperty("display",""),this.marshal.triggerUpdate(this.parentElement,"layout-gap")}}return n.\u0275fac=function(t){return new(t||n)(oe(Ai),oe(G1t),oe(jb),oe(eC),oe(tg),oe(va),oe(HB))},n.\u0275dir=Ki({type:n,features:[Li,eo]}),n})(),QCe=new WeakMap,q1t=["fxShow","fxShow.print","fxShow.xs","fxShow.sm","fxShow.md","fxShow.lg","fxShow.xl","fxShow.lt-sm","fxShow.lt-md","fxShow.lt-lg","fxShow.lt-xl","fxShow.gt-xs","fxShow.gt-sm","fxShow.gt-md","fxShow.gt-lg","fxHide","fxHide.print","fxHide.xs","fxHide.sm","fxHide.md","fxHide.lg","fxHide.xl","fxHide.lt-sm","fxHide.lt-md","fxHide.lt-lg","fxHide.lt-xl","fxHide.gt-xs","fxHide.gt-sm","fxHide.gt-md","fxHide.gt-lg"];var qB=(()=>{class n extends Y1t{constructor(){super(...arguments),this.inputs=q1t}}return n.\u0275fac=(()=>{let e;return function(i){return(e||(e=Qn(n)))(i||n)}})(),n.\u0275dir=Ki({type:n,selectors:[["","fxShow",""],["","fxShow.print",""],["","fxShow.xs",""],["","fxShow.sm",""],["","fxShow.md",""],["","fxShow.lg",""],["","fxShow.xl",""],["","fxShow.lt-sm",""],["","fxShow.lt-md",""],["","fxShow.lt-lg",""],["","fxShow.lt-xl",""],["","fxShow.gt-xs",""],["","fxShow.gt-sm",""],["","fxShow.gt-md",""],["","fxShow.gt-lg",""],["","fxHide",""],["","fxHide.print",""],["","fxHide.xs",""],["","fxHide.sm",""],["","fxHide.md",""],["","fxHide.lg",""],["","fxHide.xl",""],["","fxHide.lt-sm",""],["","fxHide.lt-md",""],["","fxHide.lt-lg",""],["","fxHide.lt-xl",""],["","fxHide.gt-xs",""],["","fxHide.gt-sm",""],["","fxHide.gt-md",""],["","fxHide.gt-lg",""]],inputs:{fxShow:"fxShow","fxShow.print":"fxShow.print","fxShow.xs":"fxShow.xs","fxShow.sm":"fxShow.sm","fxShow.md":"fxShow.md","fxShow.lg":"fxShow.lg","fxShow.xl":"fxShow.xl","fxShow.lt-sm":"fxShow.lt-sm","fxShow.lt-md":"fxShow.lt-md","fxShow.lt-lg":"fxShow.lt-lg","fxShow.lt-xl":"fxShow.lt-xl","fxShow.gt-xs":"fxShow.gt-xs","fxShow.gt-sm":"fxShow.gt-sm","fxShow.gt-md":"fxShow.gt-md","fxShow.gt-lg":"fxShow.gt-lg",fxHide:"fxHide","fxHide.print":"fxHide.print","fxHide.xs":"fxHide.xs","fxHide.sm":"fxHide.sm","fxHide.md":"fxHide.md","fxHide.lg":"fxHide.lg","fxHide.xl":"fxHide.xl","fxHide.lt-sm":"fxHide.lt-sm","fxHide.lt-md":"fxHide.lt-md","fxHide.lt-lg":"fxHide.lt-lg","fxHide.lt-xl":"fxHide.lt-xl","fxHide.gt-xs":"fxHide.gt-xs","fxHide.gt-sm":"fxHide.gt-sm","fxHide.gt-md":"fxHide.gt-md","fxHide.gt-lg":"fxHide.gt-lg"},features:[Li]}),n})();var p0=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Oi({type:n}),n.\u0275inj=Mi({imports:[jB]}),n})();var $1t=new fi("cdk-dir-doc",{providedIn:"root",factory:K1t});function K1t(){return ai(Ln)}var W1t=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function Z1t(n){let e=n?.toLowerCase()||"";return e==="auto"&&typeof navigator<"u"&&navigator?.language?W1t.test(navigator.language)?"rtl":"ltr":e==="rtl"?"rtl":"ltr"}var pl=(()=>{let e=class e{constructor(i){if(this.value="ltr",this.change=new Kt,i){let r=i.body?i.body.dir:null,o=i.documentElement?i.documentElement.dir:null;this.value=Z1t(r||o||"ltr")}}ngOnDestroy(){this.change.complete()}};e.\u0275fac=function(r){return new(r||e)(Ke($1t,8))},e.\u0275prov=It({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var Hb=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=Oi({type:e}),e.\u0275inj=Mi({});let n=e;return n})();var Q1t=(()=>{class n extends E_{buildStyles(t,{display:i}){let r=yie(t);return wt(Ce({},r),{display:i==="none"?i:r.display})}}return n.\u0275fac=(()=>{let e;return function(i){return(e||(e=Qn(n)))(i||n)}})(),n.\u0275prov=It({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),X1t=["fxLayout","fxLayout.xs","fxLayout.sm","fxLayout.md","fxLayout.lg","fxLayout.xl","fxLayout.lt-sm","fxLayout.lt-md","fxLayout.lt-lg","fxLayout.lt-xl","fxLayout.gt-xs","fxLayout.gt-sm","fxLayout.gt-md","fxLayout.gt-lg"];var J1t=(()=>{class n extends tC{constructor(t,i,r,o,s){super(t,r,i,o),this._config=s,this.DIRECTIVE_KEY="layout",this.init()}updateWithValue(t){let r=this._config.detectLayoutDisplay?this.styler.lookupStyle(this.nativeElement,"display"):"";this.styleCache=eje.get(r)??new Map,eje.set(r,this.styleCache),this.currentValue!==t&&(this.addStyles(t,{display:r}),this.currentValue=t)}}return n.\u0275fac=function(t){return new(t||n)(oe(Ai),oe(jb),oe(Q1t),oe(eC),oe(tg))},n.\u0275dir=Ki({type:n,features:[Li]}),n})(),tl=(()=>{class n extends J1t{constructor(){super(...arguments),this.inputs=X1t}}return n.\u0275fac=(()=>{let e;return function(i){return(e||(e=Qn(n)))(i||n)}})(),n.\u0275dir=Ki({type:n,selectors:[["","fxLayout",""],["","fxLayout.xs",""],["","fxLayout.sm",""],["","fxLayout.md",""],["","fxLayout.lg",""],["","fxLayout.xl",""],["","fxLayout.lt-sm",""],["","fxLayout.lt-md",""],["","fxLayout.lt-lg",""],["","fxLayout.lt-xl",""],["","fxLayout.gt-xs",""],["","fxLayout.gt-sm",""],["","fxLayout.gt-md",""],["","fxLayout.gt-lg",""]],inputs:{fxLayout:"fxLayout","fxLayout.xs":"fxLayout.xs","fxLayout.sm":"fxLayout.sm","fxLayout.md":"fxLayout.md","fxLayout.lg":"fxLayout.lg","fxLayout.xl":"fxLayout.xl","fxLayout.lt-sm":"fxLayout.lt-sm","fxLayout.lt-md":"fxLayout.lt-md","fxLayout.lt-lg":"fxLayout.lt-lg","fxLayout.lt-xl":"fxLayout.lt-xl","fxLayout.gt-xs":"fxLayout.gt-xs","fxLayout.gt-sm":"fxLayout.gt-sm","fxLayout.gt-md":"fxLayout.gt-md","fxLayout.gt-lg":"fxLayout.gt-lg"},features:[Li]}),n})(),eje=new Map;var tje={"margin-left":null,"margin-right":null,"margin-top":null,"margin-bottom":null},ewt=(()=>{class n extends E_{constructor(t,i){super(),this._styler=t,this._config=i}buildStyles(t,i){return t.endsWith(Cie)?(t=t.slice(0,t.indexOf(Cie)),t=wie(t,this._config.multiplier),lwt(t,i.directionality)):{}}sideEffect(t,i,r){let o=r.items;if(t.endsWith(Cie)){t=t.slice(0,t.indexOf(Cie)),t=wie(t,this._config.multiplier);let s=awt(t,r.directionality);this._styler.applyStyleToElements(s,r.items)}else{t=wie(t,this._config.multiplier),t=this.addFallbackUnit(t);let s=o.pop(),c=cwt(t,r);this._styler.applyStyleToElements(c,o),this._styler.applyStyleToElements(tje,[s])}}addFallbackUnit(t){return isNaN(+t)?t:`${t}${this._config.defaultUnit}`}}return n.\u0275fac=function(t){return new(t||n)(Ke(jb),Ke(tg))},n.\u0275prov=It({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),twt=["fxLayoutGap","fxLayoutGap.xs","fxLayoutGap.sm","fxLayoutGap.md","fxLayoutGap.lg","fxLayoutGap.xl","fxLayoutGap.lt-sm","fxLayoutGap.lt-md","fxLayoutGap.lt-lg","fxLayoutGap.lt-xl","fxLayoutGap.gt-xs","fxLayoutGap.gt-sm","fxLayoutGap.gt-md","fxLayoutGap.gt-lg"];var iwt=(()=>{class n extends tC{constructor(t,i,r,o,s,c){super(t,s,o,c),this.zone=i,this.directionality=r,this.styleUtils=o,this.layout="row",this.DIRECTIVE_KEY="layout-gap",this.observerSubject=new mi;let h=[this.directionality.change,this.observerSubject.asObservable()];this.init(h),this.marshal.trackValue(this.nativeElement,"layout").pipe(hr(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}get childrenNodes(){let t=this.nativeElement.children,i=[];for(let r=t.length;r--;)i[r]=t[r];return i}ngAfterContentInit(){this.buildChildObservable(),this.triggerUpdate()}ngOnDestroy(){super.ngOnDestroy(),this.observer&&this.observer.disconnect()}onLayoutChange(t){let r=t.value.split(" ");this.layout=r[0],j8.find(o=>o===this.layout)||(this.layout="row"),this.triggerUpdate()}updateWithValue(t){let i=this.childrenNodes.filter(r=>r.nodeType===1&&this.willDisplay(r)).sort((r,o)=>{let s=+this.styler.lookupStyle(r,"order"),c=+this.styler.lookupStyle(o,"order");return isNaN(s)||isNaN(c)||s===c?0:s>c?1:-1});if(i.length>0){let r=this.directionality.value,o=this.layout;o==="row"&&r==="rtl"?this.styleCache=nwt:o==="row"&&r!=="rtl"?this.styleCache=owt:o==="column"&&r==="rtl"?this.styleCache=rwt:o==="column"&&r!=="rtl"&&(this.styleCache=swt),this.addStyles(t,{directionality:r,items:i,layout:o})}}clearStyles(){let t=Object.keys(this.mru).length>0,i=t?"padding":ije(this.directionality.value,this.layout);t&&super.clearStyles(),this.styleUtils.applyStyleToElements({[i]:""},this.childrenNodes)}willDisplay(t){let i=this.marshal.getValue(t,"show-hide");return i===!0||i===void 0&&this.styleUtils.lookupStyle(t,"display")!=="none"}buildChildObservable(){this.zone.runOutsideAngular(()=>{typeof MutationObserver<"u"&&(this.observer=new MutationObserver(t=>{let i=r=>r.addedNodes&&r.addedNodes.length>0||r.removedNodes&&r.removedNodes.length>0;t.some(i)&&this.observerSubject.next()}),this.observer.observe(this.nativeElement,{childList:!0}))})}}return n.\u0275fac=function(t){return new(t||n)(oe(Ai),oe(Zi),oe(pl),oe(jb),oe(ewt),oe(eC))},n.\u0275dir=Ki({type:n,features:[Li]}),n})(),Gd=(()=>{class n extends iwt{constructor(){super(...arguments),this.inputs=twt}}return n.\u0275fac=(()=>{let e;return function(i){return(e||(e=Qn(n)))(i||n)}})(),n.\u0275dir=Ki({type:n,selectors:[["","fxLayoutGap",""],["","fxLayoutGap.xs",""],["","fxLayoutGap.sm",""],["","fxLayoutGap.md",""],["","fxLayoutGap.lg",""],["","fxLayoutGap.xl",""],["","fxLayoutGap.lt-sm",""],["","fxLayoutGap.lt-md",""],["","fxLayoutGap.lt-lg",""],["","fxLayoutGap.lt-xl",""],["","fxLayoutGap.gt-xs",""],["","fxLayoutGap.gt-sm",""],["","fxLayoutGap.gt-md",""],["","fxLayoutGap.gt-lg",""]],inputs:{fxLayoutGap:"fxLayoutGap","fxLayoutGap.xs":"fxLayoutGap.xs","fxLayoutGap.sm":"fxLayoutGap.sm","fxLayoutGap.md":"fxLayoutGap.md","fxLayoutGap.lg":"fxLayoutGap.lg","fxLayoutGap.xl":"fxLayoutGap.xl","fxLayoutGap.lt-sm":"fxLayoutGap.lt-sm","fxLayoutGap.lt-md":"fxLayoutGap.lt-md","fxLayoutGap.lt-lg":"fxLayoutGap.lt-lg","fxLayoutGap.lt-xl":"fxLayoutGap.lt-xl","fxLayoutGap.gt-xs":"fxLayoutGap.gt-xs","fxLayoutGap.gt-sm":"fxLayoutGap.gt-sm","fxLayoutGap.gt-md":"fxLayoutGap.gt-md","fxLayoutGap.gt-lg":"fxLayoutGap.gt-lg"},features:[Li]}),n})(),nwt=new Map,rwt=new Map,owt=new Map,swt=new Map,Cie=" grid";function awt(n,e){let[t,i]=n.split(" "),r=i??t,o="0px",s=r,c="0px";return e==="rtl"?c=t:o=t,{padding:`0px ${o} ${s} ${c}`}}function lwt(n,e){let[t,i]=n.split(" "),r=i??t,o=g=>`-${g}`,s="0px",c=o(r),h="0px";return e==="rtl"?h=o(t):s=o(t),{margin:`0px ${s} ${c} ${h}`}}function ije(n,e){switch(e){case"column":return"margin-bottom";case"column-reverse":return"margin-top";case"row":return n==="rtl"?"margin-left":"margin-right";case"row-reverse":return n==="rtl"?"margin-right":"margin-left";default:return n==="rtl"?"margin-left":"margin-right"}}function cwt(n,e){let t=ije(e.directionality,e.layout),i=Ce({},tje);return i[t]=n,i}var uwt=(()=>{class n extends E_{constructor(t){super(),this.layoutConfig=t}buildStyles(t,i){let[r,o,...s]=t.split(" "),c=s.join(" "),h=i.direction.indexOf("column")>-1?"column":"row",g=H8(h)?"max-width":"max-height",x=H8(h)?"min-width":"min-height",C=String(c).indexOf("calc")>-1,A=C||c==="auto",k=String(c).indexOf("%")>-1&&!C,O=String(c).indexOf("px")>-1||String(c).indexOf("rem")>-1||String(c).indexOf("em")>-1||String(c).indexOf("vw")>-1||String(c).indexOf("vh")>-1,F=C||O;r=r=="0"?0:r,o=o=="0"?0:o;let L=!r&&!o,z={},j={"max-width":null,"max-height":null,"min-width":null,"min-height":null};switch(c||""){case"":let K=this.layoutConfig.useColumnBasisZero!==!1;c=h==="row"?"0%":K?"0.000000001px":"auto";break;case"initial":case"nogrow":r=0,c="auto";break;case"grow":c="100%";break;case"noshrink":o=0,c="auto";break;case"auto":break;case"none":r=0,o=0,c="auto";break;default:!F&&!k&&!isNaN(c)&&(c=c+"%"),c==="0%"&&(F=!0),c==="0px"&&(c="0%"),C?z=h0(j,{"flex-grow":r,"flex-shrink":o,"flex-basis":F?c:"100%"}):z=h0(j,{flex:`${r} ${o} ${F?c:"100%"}`});break}return z.flex||z["flex-grow"]||(C?z=h0(j,{"flex-grow":r,"flex-shrink":o,"flex-basis":c}):z=h0(j,{flex:`${r} ${o} ${c}`})),c!=="0%"&&c!=="0px"&&c!=="0.000000001px"&&c!=="auto"&&(z[x]=L||F&&r?c:null,z[g]=L||!A&&o?c:null),!z[x]&&!z[g]?C?z=h0(j,{"flex-grow":r,"flex-shrink":o,"flex-basis":c}):z=h0(j,{flex:`${r} ${o} ${c}`}):i.hasWrap&&(z[C?"flex-basis":"flex"]=z[g]?C?z[g]:`${r} ${o} ${z[g]}`:C?z[x]:`${r} ${o} ${z[x]}`),h0(z,{"box-sizing":"border-box"})}}return n.\u0275fac=function(t){return new(t||n)(Ke(tg))},n.\u0275prov=It({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),dwt=["fxFlex","fxFlex.xs","fxFlex.sm","fxFlex.md","fxFlex.lg","fxFlex.xl","fxFlex.lt-sm","fxFlex.lt-md","fxFlex.lt-lg","fxFlex.lt-xl","fxFlex.gt-xs","fxFlex.gt-sm","fxFlex.gt-md","fxFlex.gt-lg"];var hwt=(()=>{class n extends tC{constructor(t,i,r,o,s){super(t,o,i,s),this.layoutConfig=r,this.marshal=s,this.DIRECTIVE_KEY="flex",this.direction=void 0,this.wrap=void 0,this.flexGrow="1",this.flexShrink="1",this.init()}get shrink(){return this.flexShrink}set shrink(t){this.flexShrink=t||"1",this.triggerReflow()}get grow(){return this.flexGrow}set grow(t){this.flexGrow=t||"1",this.triggerReflow()}ngOnInit(){this.parentElement&&(this.marshal.trackValue(this.parentElement,"layout").pipe(hr(this.destroySubject)).subscribe(this.onLayoutChange.bind(this)),this.marshal.trackValue(this.nativeElement,"layout-align").pipe(hr(this.destroySubject)).subscribe(this.triggerReflow.bind(this)))}onLayoutChange(t){let r=t.value.split(" ");this.direction=r[0],this.wrap=r[1]!==void 0&&r[1]==="wrap",this.triggerUpdate()}updateWithValue(t){let i=this.layoutConfig.addFlexToParent!==!1;this.direction===void 0&&(this.direction=this.getFlexFlowDirection(this.parentElement,i)),this.wrap===void 0&&(this.wrap=this.hasWrap(this.parentElement));let r=this.direction,o=r.startsWith("row"),s=this.wrap;o&&s?this.styleCache=mwt:o&&!s?this.styleCache=pwt:!o&&s?this.styleCache=gwt:!o&&!s&&(this.styleCache=fwt);let c=String(t).replace(";",""),h=ZCe(c,this.flexGrow,this.flexShrink);this.addStyles(h.join(" "),{direction:r,hasWrap:s})}triggerReflow(){let t=this.activatedValue;if(t!==void 0){let i=ZCe(t+"",this.flexGrow,this.flexShrink);this.marshal.updateElement(this.nativeElement,this.DIRECTIVE_KEY,i.join(" "))}}}return n.\u0275fac=function(t){return new(t||n)(oe(Ai),oe(jb),oe(tg),oe(uwt),oe(eC))},n.\u0275dir=Ki({type:n,inputs:{shrink:[0,"fxShrink","shrink"],grow:[0,"fxGrow","grow"]},features:[Li]}),n})(),Cl=(()=>{class n extends hwt{constructor(){super(...arguments),this.inputs=dwt}}return n.\u0275fac=(()=>{let e;return function(i){return(e||(e=Qn(n)))(i||n)}})(),n.\u0275dir=Ki({type:n,selectors:[["","fxFlex",""],["","fxFlex.xs",""],["","fxFlex.sm",""],["","fxFlex.md",""],["","fxFlex.lg",""],["","fxFlex.xl",""],["","fxFlex.lt-sm",""],["","fxFlex.lt-md",""],["","fxFlex.lt-lg",""],["","fxFlex.lt-xl",""],["","fxFlex.gt-xs",""],["","fxFlex.gt-sm",""],["","fxFlex.gt-md",""],["","fxFlex.gt-lg",""]],inputs:{fxFlex:"fxFlex","fxFlex.xs":"fxFlex.xs","fxFlex.sm":"fxFlex.sm","fxFlex.md":"fxFlex.md","fxFlex.lg":"fxFlex.lg","fxFlex.xl":"fxFlex.xl","fxFlex.lt-sm":"fxFlex.lt-sm","fxFlex.lt-md":"fxFlex.lt-md","fxFlex.lt-lg":"fxFlex.lt-lg","fxFlex.lt-xl":"fxFlex.lt-xl","fxFlex.gt-xs":"fxFlex.gt-xs","fxFlex.gt-sm":"fxFlex.gt-sm","fxFlex.gt-md":"fxFlex.gt-md","fxFlex.gt-lg":"fxFlex.gt-lg"},features:[Li]}),n})(),pwt=new Map,fwt=new Map,mwt=new Map,gwt=new Map;var _wt=(()=>{class n extends E_{buildStyles(t){t=t||"stretch";let i={};switch(t){case"start":i["align-self"]="flex-start";break;case"end":i["align-self"]="flex-end";break;default:i["align-self"]=t;break}return i}}return n.\u0275fac=(()=>{let e;return function(i){return(e||(e=Qn(n)))(i||n)}})(),n.\u0275prov=It({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),vwt=["fxFlexAlign","fxFlexAlign.xs","fxFlexAlign.sm","fxFlexAlign.md","fxFlexAlign.lg","fxFlexAlign.xl","fxFlexAlign.lt-sm","fxFlexAlign.lt-md","fxFlexAlign.lt-lg","fxFlexAlign.lt-xl","fxFlexAlign.gt-xs","fxFlexAlign.gt-sm","fxFlexAlign.gt-md","fxFlexAlign.gt-lg"];var ywt=(()=>{class n extends tC{constructor(t,i,r,o){super(t,r,i,o),this.DIRECTIVE_KEY="flex-align",this.styleCache=bwt,this.init()}}return n.\u0275fac=function(t){return new(t||n)(oe(Ai),oe(jb),oe(_wt),oe(eC))},n.\u0275dir=Ki({type:n,features:[Li]}),n})(),bwt=new Map,nje=(()=>{class n extends ywt{constructor(){super(...arguments),this.inputs=vwt}}return n.\u0275fac=(()=>{let e;return function(i){return(e||(e=Qn(n)))(i||n)}})(),n.\u0275dir=Ki({type:n,selectors:[["","fxFlexAlign",""],["","fxFlexAlign.xs",""],["","fxFlexAlign.sm",""],["","fxFlexAlign.md",""],["","fxFlexAlign.lg",""],["","fxFlexAlign.xl",""],["","fxFlexAlign.lt-sm",""],["","fxFlexAlign.lt-md",""],["","fxFlexAlign.lt-lg",""],["","fxFlexAlign.lt-xl",""],["","fxFlexAlign.gt-xs",""],["","fxFlexAlign.gt-sm",""],["","fxFlexAlign.gt-md",""],["","fxFlexAlign.gt-lg",""]],inputs:{fxFlexAlign:"fxFlexAlign","fxFlexAlign.xs":"fxFlexAlign.xs","fxFlexAlign.sm":"fxFlexAlign.sm","fxFlexAlign.md":"fxFlexAlign.md","fxFlexAlign.lg":"fxFlexAlign.lg","fxFlexAlign.xl":"fxFlexAlign.xl","fxFlexAlign.lt-sm":"fxFlexAlign.lt-sm","fxFlexAlign.lt-md":"fxFlexAlign.lt-md","fxFlexAlign.lt-lg":"fxFlexAlign.lt-lg","fxFlexAlign.lt-xl":"fxFlexAlign.lt-xl","fxFlexAlign.gt-xs":"fxFlexAlign.gt-xs","fxFlexAlign.gt-sm":"fxFlexAlign.gt-sm","fxFlexAlign.gt-md":"fxFlexAlign.gt-md","fxFlexAlign.gt-lg":"fxFlexAlign.gt-lg"},features:[Li]}),n})();var xwt=(()=>{class n extends E_{buildStyles(t,i){let r={},[o,s]=t.split(" ");switch(o){case"center":r["justify-content"]="center";break;case"space-around":r["justify-content"]="space-around";break;case"space-between":r["justify-content"]="space-between";break;case"space-evenly":r["justify-content"]="space-evenly";break;case"end":case"flex-end":r["justify-content"]="flex-end";break;case"start":case"flex-start":default:r["justify-content"]="flex-start";break}switch(s){case"start":case"flex-start":r["align-items"]=r["align-content"]="flex-start";break;case"center":r["align-items"]=r["align-content"]="center";break;case"end":case"flex-end":r["align-items"]=r["align-content"]="flex-end";break;case"space-between":r["align-content"]="space-between",r["align-items"]="stretch";break;case"space-around":r["align-content"]="space-around",r["align-items"]="stretch";break;case"baseline":r["align-content"]="stretch",r["align-items"]="baseline";break;case"stretch":default:r["align-items"]=r["align-content"]="stretch";break}return h0(r,{display:i.inline?"inline-flex":"flex","flex-direction":i.layout,"box-sizing":"border-box","max-width":s==="stretch"?H8(i.layout)?null:"100%":null,"max-height":s==="stretch"&&H8(i.layout)?"100%":null})}}return n.\u0275fac=(()=>{let e;return function(i){return(e||(e=Qn(n)))(i||n)}})(),n.\u0275prov=It({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),wwt=["fxLayoutAlign","fxLayoutAlign.xs","fxLayoutAlign.sm","fxLayoutAlign.md","fxLayoutAlign.lg","fxLayoutAlign.xl","fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg"];var Cwt=(()=>{class n extends tC{constructor(t,i,r,o){super(t,r,i,o),this.DIRECTIVE_KEY="layout-align",this.layout="row",this.inline=!1,this.init(),this.marshal.trackValue(this.nativeElement,"layout").pipe(hr(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}updateWithValue(t){let i=this.layout||"row",r=this.inline;i==="row"&&r?this.styleCache=Awt:i==="row"&&!r?this.styleCache=Swt:i==="row-reverse"&&r?this.styleCache=kwt:i==="row-reverse"&&!r?this.styleCache=Iwt:i==="column"&&r?this.styleCache=Dwt:i==="column"&&!r?this.styleCache=Ewt:i==="column-reverse"&&r?this.styleCache=Mwt:i==="column-reverse"&&!r&&(this.styleCache=Twt),this.addStyles(t,{layout:i,inline:r})}onLayoutChange(t){let i=t.value.split(" ");this.layout=i[0],this.inline=t.value.includes("inline"),j8.find(r=>r===this.layout)||(this.layout="row"),this.triggerUpdate()}}return n.\u0275fac=function(t){return new(t||n)(oe(Ai),oe(jb),oe(xwt),oe(eC))},n.\u0275dir=Ki({type:n,features:[Li]}),n})(),Ac=(()=>{class n extends Cwt{constructor(){super(...arguments),this.inputs=wwt}}return n.\u0275fac=(()=>{let e;return function(i){return(e||(e=Qn(n)))(i||n)}})(),n.\u0275dir=Ki({type:n,selectors:[["","fxLayoutAlign",""],["","fxLayoutAlign.xs",""],["","fxLayoutAlign.sm",""],["","fxLayoutAlign.md",""],["","fxLayoutAlign.lg",""],["","fxLayoutAlign.xl",""],["","fxLayoutAlign.lt-sm",""],["","fxLayoutAlign.lt-md",""],["","fxLayoutAlign.lt-lg",""],["","fxLayoutAlign.lt-xl",""],["","fxLayoutAlign.gt-xs",""],["","fxLayoutAlign.gt-sm",""],["","fxLayoutAlign.gt-md",""],["","fxLayoutAlign.gt-lg",""]],inputs:{fxLayoutAlign:"fxLayoutAlign","fxLayoutAlign.xs":"fxLayoutAlign.xs","fxLayoutAlign.sm":"fxLayoutAlign.sm","fxLayoutAlign.md":"fxLayoutAlign.md","fxLayoutAlign.lg":"fxLayoutAlign.lg","fxLayoutAlign.xl":"fxLayoutAlign.xl","fxLayoutAlign.lt-sm":"fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md":"fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg":"fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl":"fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs":"fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm":"fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md":"fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg":"fxLayoutAlign.gt-lg"},features:[Li]}),n})(),Swt=new Map,Ewt=new Map,Iwt=new Map,Twt=new Map,Awt=new Map,Dwt=new Map,kwt=new Map,Mwt=new Map;var Ys=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Oi({type:n}),n.\u0275inj=Mi({imports:[jB,Hb]}),n})();var eSe;try{eSe=typeof Intl<"u"&&Intl.v8BreakIterator}catch{eSe=!1}var zo=(()=>{let e=class e{constructor(i){this._platformId=i,this.isBrowser=this._platformId?hl(this._platformId):typeof document=="object"&&!!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||eSe)&&typeof CSS<"u"&&!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}};e.\u0275fac=function(r){return new(r||e)(Ke(va))},e.\u0275prov=It({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var $B,rje=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function tSe(){if($B)return $B;if(typeof document!="object"||!document)return $B=new Set(rje),$B;let n=document.createElement("input");return $B=new Set(rje.filter(e=>(n.setAttribute("type",e),n.type===e))),$B}var G8;function Owt(){if(G8==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>G8=!0}))}finally{G8=G8||!1}return G8}function T_(n){return Owt()?n:!!n.capture}var f0=function(n){return n[n.NORMAL=0]="NORMAL",n[n.NEGATED=1]="NEGATED",n[n.INVERTED=2]="INVERTED",n}(f0||{}),Sie,tR;function Eie(){if(tR==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return tR=!1,tR;if("scrollBehavior"in document.documentElement.style)tR=!0;else{let n=Element.prototype.scrollTo;n?tR=!/\{\s*\[native code\]\s*\}/.test(n.toString()):tR=!1}}return tR}function KB(){if(typeof document!="object"||!document)return f0.NORMAL;if(Sie==null){let n=document.createElement("div"),e=n.style;n.dir="rtl",e.width="1px",e.overflow="auto",e.visibility="hidden",e.pointerEvents="none",e.position="absolute";let t=document.createElement("div"),i=t.style;i.width="2px",i.height="1px",n.appendChild(t),document.body.appendChild(n),Sie=f0.NORMAL,n.scrollLeft===0&&(n.scrollLeft=1,Sie=n.scrollLeft===0?f0.NEGATED:f0.INVERTED),n.remove()}return Sie}var JCe;function Rwt(){if(JCe==null){let n=typeof document<"u"?document.head:null;JCe=!!(n&&(n.createShadowRoot||n.attachShadow))}return JCe}function oje(n){if(Rwt()){let e=n.getRootNode?n.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}function iR(){let n=typeof document<"u"&&document?document.activeElement:null;for(;n&&n.shadowRoot;){let e=n.shadowRoot.activeElement;if(e===n)break;n=e}return n}function Gp(n){return n.composedPath?n.composedPath()[0]:n.target}function Y8(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function il(n,...e){return e.length?e.some(t=>n[t]):n.altKey||n.shiftKey||n.ctrlKey||n.metaKey}function Nwt(n){if(n.type==="characterData"&&n.target instanceof Comment)return!0;if(n.type==="childList"){for(let e=0;e{let e=class e{create(i){return typeof MutationObserver>"u"?null:new MutationObserver(i)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=It({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),Pwt=(()=>{let e=class e{constructor(i){this._mutationObserverFactory=i,this._observedElements=new Map,this._ngZone=ai(Zi)}ngOnDestroy(){this._observedElements.forEach((i,r)=>this._cleanupObserver(r))}observe(i){let r=Yf(i);return new fo(o=>{let c=this._observeElement(r).pipe(ri(h=>h.filter(g=>!Nwt(g))),Wn(h=>!!h.length)).subscribe(h=>{this._ngZone.run(()=>{o.next(h)})});return()=>{c.unsubscribe(),this._unobserveElement(r)}})}_observeElement(i){return this._ngZone.runOutsideAngular(()=>{if(this._observedElements.has(i))this._observedElements.get(i).count++;else{let r=new mi,o=this._mutationObserverFactory.create(s=>r.next(s));o&&o.observe(i,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(i,{observer:o,stream:r,count:1})}return this._observedElements.get(i).stream})}_unobserveElement(i){this._observedElements.has(i)&&(this._observedElements.get(i).count--,this._observedElements.get(i).count||this._cleanupObserver(i))}_cleanupObserver(i){if(this._observedElements.has(i)){let{observer:r,stream:o}=this._observedElements.get(i);r&&r.disconnect(),o.complete(),this._observedElements.delete(i)}}};e.\u0275fac=function(r){return new(r||e)(Ke(sje))},e.\u0275prov=It({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),aje=(()=>{let e=class e{get disabled(){return this._disabled}set disabled(i){this._disabled=i,this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(i){this._debounce=Qh(i),this._subscribe()}constructor(i,r){this._contentObserver=i,this._elementRef=r,this.event=new Kt,this._disabled=!1,this._currentSubscription=null}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();let i=this._contentObserver.observe(this._elementRef);this._currentSubscription=(this.debounce?i.pipe(Qv(this.debounce)):i).subscribe(this.event)}_unsubscribe(){this._currentSubscription?.unsubscribe()}};e.\u0275fac=function(r){return new(r||e)(oe(Pwt),oe(Ai))},e.\u0275dir=Ki({type:e,selectors:[["","cdkObserveContent",""]],inputs:{disabled:[2,"cdkObserveContentDisabled","disabled",Ht],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"],standalone:!0,features:[Ir]});let n=e;return n})(),WB=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=Oi({type:e}),e.\u0275inj=Mi({providers:[sje]});let n=e;return n})();var lje=new Set,nR,Fwt=(()=>{let e=class e{constructor(i,r){this._platform=i,this._nonce=r,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Bwt}matchMedia(i){return(this._platform.WEBKIT||this._platform.BLINK)&&Lwt(i,this._nonce),this._matchMedia(i)}};e.\u0275fac=function(r){return new(r||e)(Ke(zo),Ke(Qj,8))},e.\u0275prov=It({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function Lwt(n,e){if(!lje.has(n))try{nR||(nR=document.createElement("style"),e&&nR.setAttribute("nonce",e),nR.setAttribute("type","text/css"),document.head.appendChild(nR)),nR.sheet&&(nR.sheet.insertRule(`@media ${n} {body{ }}`,0),lje.add(n))}catch(t){console.error(t)}}function Bwt(n){return{matches:n==="all"||n==="",media:n,addListener:()=>{},removeListener:()=>{}}}var ZB=(()=>{let e=class e{constructor(i,r){this._mediaMatcher=i,this._zone=r,this._queries=new Map,this._destroySubject=new mi}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(i){return cje(YB(i)).some(o=>this._registerQuery(o).mql.matches)}observe(i){let o=cje(YB(i)).map(c=>this._registerQuery(c).observable),s=Zv(o);return s=vb(s.pipe(kr(1)),s.pipe(Rj(1),Qv(0))),s.pipe(ri(c=>{let h={matches:!1,breakpoints:{}};return c.forEach(({matches:g,query:x})=>{h.matches=h.matches||g,h.breakpoints[x]=g}),h}))}_registerQuery(i){if(this._queries.has(i))return this._queries.get(i);let r=this._mediaMatcher.matchMedia(i),s={observable:new fo(c=>{let h=g=>this._zone.run(()=>c.next(g));return r.addListener(h),()=>{r.removeListener(h)}}).pipe(aa(r),ri(({matches:c})=>({query:i,matches:c})),hr(this._destroySubject)),mql:r};return this._queries.set(i,s),s}};e.\u0275fac=function(r){return new(r||e)(Ke(Fwt),Ke(Zi))},e.\u0275prov=It({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function cje(n){return n.map(e=>e.split(",")).reduce((e,t)=>e.concat(t)).map(e=>e.trim())}var iC={XSmall:"(max-width: 599.98px)",Small:"(min-width: 600px) and (max-width: 959.98px)",Medium:"(min-width: 960px) and (max-width: 1279.98px)",Large:"(min-width: 1280px) and (max-width: 1919.98px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"};var mje=" ";function t3(n,e,t){let i=Die(n,e);t=t.trim(),!i.some(r=>r.trim()===t)&&(i.push(t),n.setAttribute(e,i.join(mje)))}function bT(n,e,t){let i=Die(n,e);t=t.trim();let r=i.filter(o=>o!==t);r.length?n.setAttribute(e,r.join(mje)):n.removeAttribute(e)}function Die(n,e){return n.getAttribute(e)?.match(/\S+/g)??[]}var gje="cdk-describedby-message",Iie="cdk-describedby-host",rSe=0,_je=(()=>{let e=class e{constructor(i,r){this._platform=r,this._messageRegistry=new Map,this._messagesContainer=null,this._id=`${rSe++}`,this._document=i,this._id=ai(TL)+"-"+rSe++}describe(i,r,o){if(!this._canBeDescribed(i,r))return;let s=iSe(r,o);typeof r!="string"?(dje(r,this._id),this._messageRegistry.set(s,{messageElement:r,referenceCount:0})):this._messageRegistry.has(s)||this._createMessageElement(r,o),this._isElementDescribedByMessage(i,s)||this._addMessageReference(i,s)}removeDescription(i,r,o){if(!r||!this._isElementNode(i))return;let s=iSe(r,o);if(this._isElementDescribedByMessage(i,s)&&this._removeMessageReference(i,s),typeof r=="string"){let c=this._messageRegistry.get(s);c&&c.referenceCount===0&&this._deleteMessageElement(s)}this._messagesContainer?.childNodes.length===0&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){let i=this._document.querySelectorAll(`[${Iie}="${this._id}"]`);for(let r=0;ro.indexOf(gje)!=0);i.setAttribute("aria-describedby",r.join(" "))}_addMessageReference(i,r){let o=this._messageRegistry.get(r);t3(i,"aria-describedby",o.messageElement.id),i.setAttribute(Iie,this._id),o.referenceCount++}_removeMessageReference(i,r){let o=this._messageRegistry.get(r);o.referenceCount--,bT(i,"aria-describedby",o.messageElement.id),i.removeAttribute(Iie)}_isElementDescribedByMessage(i,r){let o=Die(i,"aria-describedby"),s=this._messageRegistry.get(r),c=s&&s.messageElement.id;return!!c&&o.indexOf(c)!=-1}_canBeDescribed(i,r){if(!this._isElementNode(i))return!1;if(r&&typeof r=="object")return!0;let o=r==null?"":`${r}`.trim(),s=i.getAttribute("aria-label");return o?!s||s.trim()!==o:!1}_isElementNode(i){return i.nodeType===this._document.ELEMENT_NODE}};e.\u0275fac=function(r){return new(r||e)(Ke(Ln),Ke(zo))},e.\u0275prov=It({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function iSe(n,e){return typeof n=="string"?`${e||""}/${n}`:n}function dje(n,e){n.id||(n.id=`${gje}-${e}-${rSe++}`)}var kie=class{constructor(e,t){this._items=e,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new mi,this._typeaheadSubscription=Qo.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=i=>i.disabled,this._pressedLetters=[],this.tabOut=new mi,this.change=new mi,e instanceof fh?this._itemChangesSubscription=e.changes.subscribe(i=>this._itemsChanged(i.toArray())):_ee(e)&&(this._effectRef=cH(()=>this._itemsChanged(e()),{injector:t}))}skipPredicate(e){return this._skipPredicateFn=e,this}withWrap(e=!0){return this._wrap=e,this}withVerticalOrientation(e=!0){return this._vertical=e,this}withHorizontalOrientation(e){return this._horizontal=e,this}withAllowedModifierKeys(e){return this._allowedModifierKeys=e,this}withTypeAhead(e=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(vs(t=>this._pressedLetters.push(t)),Qv(e),Wn(()=>this._pressedLetters.length>0),ri(()=>this._pressedLetters.join(""))).subscribe(t=>{let i=this._getItemsArray();for(let r=1;r!e[o]||this._allowedModifierKeys.indexOf(o)>-1);switch(t){case 9:this.tabOut.next();return;case 40:if(this._vertical&&r){this.setNextItemActive();break}else return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}else return;case 39:if(this._horizontal&&r){this._horizontal==="rtl"?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&r){this._horizontal==="rtl"?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&r){this.setFirstItemActive();break}else return;case 35:if(this._homeAndEnd&&r){this.setLastItemActive();break}else return;case 33:if(this._pageUpAndDown.enabled&&r){let o=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(o>0?o:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&r){let o=this._activeItemIndex+this._pageUpAndDown.delta,s=this._getItemsArray().length;this._setActiveItemByIndex(o=65&&t<=90||t>=48&&t<=57)&&this._letterKeyStream.next(String.fromCharCode(t)));return}this._pressedLetters=[],e.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._getItemsArray().length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(e){let t=this._getItemsArray(),i=typeof e=="number"?e:t.indexOf(e),r=t[i];this._activeItem=r??null,this._activeItemIndex=i}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._effectRef?.destroy(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(e){this._wrap?this._setActiveInWrapMode(e):this._setActiveInDefaultMode(e)}_setActiveInWrapMode(e){let t=this._getItemsArray();for(let i=1;i<=t.length;i++){let r=(this._activeItemIndex+e*i+t.length)%t.length,o=t[r];if(!this._skipPredicateFn(o)){this.setActiveItem(r);return}}}_setActiveInDefaultMode(e){this._setActiveItemByIndex(this._activeItemIndex+e,e)}_setActiveItemByIndex(e,t){let i=this._getItemsArray();if(i[e]){for(;this._skipPredicateFn(i[e]);)if(e+=t,!i[e])return;this.setActiveItem(e)}}_getItemsArray(){return _ee(this._items)?this._items():this._items instanceof fh?this._items.toArray():this._items}_itemsChanged(e){if(this._activeItem){let t=e.indexOf(this._activeItem);t>-1&&t!==this._activeItemIndex&&(this._activeItemIndex=t)}}},XB=class extends kie{setActiveItem(e){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(e),this.activeItem&&this.activeItem.setActiveStyles()}},vT=class extends kie{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(e){return this._origin=e,this}setActiveItem(e){super.setActiveItem(e),this.activeItem&&this.activeItem.focus(this._origin)}};var rC=(()=>{let e=class e{constructor(i){this._platform=i}isDisabled(i){return i.hasAttribute("disabled")}isVisible(i){return Xwt(i)&&getComputedStyle(i).visibility==="visible"}isTabbable(i){if(!this._platform.isBrowser)return!1;let r=Qwt(sCt(i));if(r&&(hje(r)===-1||!this.isVisible(r)))return!1;let o=i.nodeName.toLowerCase(),s=hje(i);return i.hasAttribute("contenteditable")?s!==-1:o==="iframe"||o==="object"||this._platform.WEBKIT&&this._platform.IOS&&!rCt(i)?!1:o==="audio"?i.hasAttribute("controls")?s!==-1:!1:o==="video"?s===-1?!1:s!==null?!0:this._platform.FIREFOX||i.hasAttribute("controls"):i.tabIndex>=0}isFocusable(i,r){return oCt(i)&&!this.isDisabled(i)&&(r?.ignoreVisibility||this.isVisible(i))}};e.\u0275fac=function(r){return new(r||e)(Ke(zo))},e.\u0275prov=It({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function Qwt(n){try{return n.frameElement}catch{return null}}function Xwt(n){return!!(n.offsetWidth||n.offsetHeight||typeof n.getClientRects=="function"&&n.getClientRects().length)}function Jwt(n){let e=n.nodeName.toLowerCase();return e==="input"||e==="select"||e==="button"||e==="textarea"}function eCt(n){return iCt(n)&&n.type=="hidden"}function tCt(n){return nCt(n)&&n.hasAttribute("href")}function iCt(n){return n.nodeName.toLowerCase()=="input"}function nCt(n){return n.nodeName.toLowerCase()=="a"}function vje(n){if(!n.hasAttribute("tabindex")||n.tabIndex===void 0)return!1;let e=n.getAttribute("tabindex");return!!(e&&!isNaN(parseInt(e,10)))}function hje(n){if(!vje(n))return null;let e=parseInt(n.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}function rCt(n){let e=n.nodeName.toLowerCase(),t=e==="input"&&n.type;return t==="text"||t==="password"||e==="select"||e==="textarea"}function oCt(n){return eCt(n)?!1:Jwt(n)||tCt(n)||n.hasAttribute("contenteditable")||vje(n)}function sCt(n){return n.ownerDocument&&n.ownerDocument.defaultView||window}var oSe=class{get enabled(){return this._enabled}set enabled(e){this._enabled=e,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}constructor(e,t,i,r,o=!1,s){this._element=e,this._checker=t,this._ngZone=i,this._document=r,this._injector=s,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,o||this.attachAnchors()}destroy(){let e=this._startAnchor,t=this._endAnchor;e&&(e.removeEventListener("focus",this.startAnchorListener),e.remove()),t&&(t.removeEventListener("focus",this.endAnchorListener),t.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return this._hasAttached?!0:(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(e){return new Promise(t=>{this._executeOnStable(()=>t(this.focusInitialElement(e)))})}focusFirstTabbableElementWhenReady(e){return new Promise(t=>{this._executeOnStable(()=>t(this.focusFirstTabbableElement(e)))})}focusLastTabbableElementWhenReady(e){return new Promise(t=>{this._executeOnStable(()=>t(this.focusLastTabbableElement(e)))})}_getRegionBoundary(e){let t=this._element.querySelectorAll(`[cdk-focus-region-${e}], [cdkFocusRegion${e}], [cdk-focus-${e}]`);return e=="start"?t.length?t[0]:this._getFirstTabbableElement(this._element):t.length?t[t.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(e){let t=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(t){if(!this._checker.isFocusable(t)){let i=this._getFirstTabbableElement(t);return i?.focus(e),!!i}return t.focus(e),!0}return this.focusFirstTabbableElement(e)}focusFirstTabbableElement(e){let t=this._getRegionBoundary("start");return t&&t.focus(e),!!t}focusLastTabbableElement(e){let t=this._getRegionBoundary("end");return t&&t.focus(e),!!t}hasAttached(){return this._hasAttached}_getFirstTabbableElement(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;let t=e.children;for(let i=0;i=0;i--){let r=t[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(t[i]):null;if(r)return r}return null}_createAnchor(){let e=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,e),e.classList.add("cdk-visually-hidden"),e.classList.add("cdk-focus-trap-anchor"),e.setAttribute("aria-hidden","true"),e}_toggleAnchorTabIndex(e,t){e?t.setAttribute("tabindex","0"):t.removeAttribute("tabindex")}toggleAnchors(e){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}_executeOnStable(e){this._ngZone.isStable?this._injector?ad(e,{injector:this._injector}):e():this._ngZone.onStable.pipe(kr(1)).subscribe(e)}},xT=(()=>{let e=class e{constructor(i,r,o){this._checker=i,this._ngZone=r,this._injector=ai(yo),this._document=o}create(i,r=!1){return new oSe(i,this._checker,this._ngZone,this._document,r,this._injector)}};e.\u0275fac=function(r){return new(r||e)(Ke(rC),Ke(Zi),Ke(Ln))},e.\u0275prov=It({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function $8(n){return n.buttons===0||n.detail===0}function K8(n){let e=n.touches&&n.touches[0]||n.changedTouches&&n.changedTouches[0];return!!e&&e.identifier===-1&&(e.radiusX==null||e.radiusX===1)&&(e.radiusY==null||e.radiusY===1)}var aCt=new fi("cdk-input-modality-detector-options"),lCt={ignoreKeys:[18,17,224,91,16]},yje=650,QB=T_({passive:!0,capture:!0}),cCt=(()=>{let e=class e{get mostRecentModality(){return this._modality.value}constructor(i,r,o,s){this._platform=i,this._mostRecentTarget=null,this._modality=new ea(null),this._lastTouchMs=0,this._onKeydown=c=>{this._options?.ignoreKeys?.some(h=>h===c.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Gp(c))},this._onMousedown=c=>{Date.now()-this._lastTouchMs{if(K8(c)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Gp(c)},this._options=Ce(Ce({},lCt),s),this.modalityDetected=this._modality.pipe(Rj(1)),this.modalityChanged=this.modalityDetected.pipe(hh()),i.isBrowser&&r.runOutsideAngular(()=>{o.addEventListener("keydown",this._onKeydown,QB),o.addEventListener("mousedown",this._onMousedown,QB),o.addEventListener("touchstart",this._onTouchstart,QB)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,QB),document.removeEventListener("mousedown",this._onMousedown,QB),document.removeEventListener("touchstart",this._onTouchstart,QB))}};e.\u0275fac=function(r){return new(r||e)(Ke(zo),Ke(Zi),Ke(Ln),Ke(aCt,8))},e.\u0275prov=It({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),uCt=new fi("liveAnnouncerElement",{providedIn:"root",factory:dCt});function dCt(){return null}var hCt=new fi("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),pCt=0,Mie=(()=>{let e=class e{constructor(i,r,o,s){this._ngZone=r,this._defaultOptions=s,this._document=o,this._liveElement=i||this._createLiveElement()}announce(i,...r){let o=this._defaultOptions,s,c;return r.length===1&&typeof r[0]=="number"?c=r[0]:[s,c]=r,this.clear(),clearTimeout(this._previousTimeout),s||(s=o&&o.politeness?o.politeness:"polite"),c==null&&o&&(c=o.duration),this._liveElement.setAttribute("aria-live",s),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(h=>this._currentResolve=h)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=i,typeof c=="number"&&(this._previousTimeout=setTimeout(()=>this.clear(),c)),this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){let i="cdk-live-announcer-element",r=this._document.getElementsByClassName(i),o=this._document.createElement("div");for(let s=0;s .cdk-overlay-container [aria-modal="true"]');for(let o=0;o{let e=class e{constructor(i,r,o,s,c){this._ngZone=i,this._platform=r,this._inputModalityDetector=o,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=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new mi,this._rootNodeFocusAndBlurListener=h=>{let g=Gp(h);for(let x=g;x;x=x.parentElement)h.type==="focus"?this._onFocus(h,x):this._onBlur(h,x)},this._document=s,this._detectionMode=c?.detectionMode||Aie.IMMEDIATE}monitor(i,r=!1){let o=Yf(i);if(!this._platform.isBrowser||o.nodeType!==1)return kn();let s=oje(o)||this._getDocument(),c=this._elementInfo.get(o);if(c)return r&&(c.checkChildren=!0),c.subject;let h={checkChildren:r,subject:new mi,rootNode:s};return this._elementInfo.set(o,h),this._registerGlobalListeners(h),h.subject}stopMonitoring(i){let r=Yf(i),o=this._elementInfo.get(r);o&&(o.subject.complete(),this._setClasses(r),this._elementInfo.delete(r),this._removeGlobalListeners(o))}focusVia(i,r,o){let s=Yf(i),c=this._getDocument().activeElement;s===c?this._getClosestElementsInfo(s).forEach(([h,g])=>this._originChanged(h,r,g)):(this._setOrigin(r),typeof s.focus=="function"&&s.focus(o))}ngOnDestroy(){this._elementInfo.forEach((i,r)=>this.stopMonitoring(r))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(i){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(i)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:i&&this._isLastInteractionFromInputLabel(i)?"mouse":"program"}_shouldBeAttributedToTouch(i){return this._detectionMode===Aie.EVENTUAL||!!i?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(i,r){i.classList.toggle("cdk-focused",!!r),i.classList.toggle("cdk-touch-focused",r==="touch"),i.classList.toggle("cdk-keyboard-focused",r==="keyboard"),i.classList.toggle("cdk-mouse-focused",r==="mouse"),i.classList.toggle("cdk-program-focused",r==="program")}_setOrigin(i,r=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=i,this._originFromTouchInteraction=i==="touch"&&r,this._detectionMode===Aie.IMMEDIATE){clearTimeout(this._originTimeoutId);let o=this._originFromTouchInteraction?yje:1;this._originTimeoutId=setTimeout(()=>this._origin=null,o)}})}_onFocus(i,r){let o=this._elementInfo.get(r),s=Gp(i);!o||!o.checkChildren&&r!==s||this._originChanged(r,this._getFocusOrigin(s),o)}_onBlur(i,r){let o=this._elementInfo.get(r);!o||o.checkChildren&&i.relatedTarget instanceof Node&&r.contains(i.relatedTarget)||(this._setClasses(r),this._emitOrigin(o,null))}_emitOrigin(i,r){i.subject.observers.length&&this._ngZone.run(()=>i.subject.next(r))}_registerGlobalListeners(i){if(!this._platform.isBrowser)return;let r=i.rootNode,o=this._rootNodeFocusListenerCount.get(r)||0;o||this._ngZone.runOutsideAngular(()=>{r.addEventListener("focus",this._rootNodeFocusAndBlurListener,Tie),r.addEventListener("blur",this._rootNodeFocusAndBlurListener,Tie)}),this._rootNodeFocusListenerCount.set(r,o+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(hr(this._stopInputModalityDetector)).subscribe(s=>{this._setOrigin(s,!0)}))}_removeGlobalListeners(i){let r=i.rootNode;if(this._rootNodeFocusListenerCount.has(r)){let o=this._rootNodeFocusListenerCount.get(r);o>1?this._rootNodeFocusListenerCount.set(r,o-1):(r.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Tie),r.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Tie),this._rootNodeFocusListenerCount.delete(r))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(i,r,o){this._setClasses(i,r),this._emitOrigin(o,r),this._lastFocusOrigin=r}_getClosestElementsInfo(i){let r=[];return this._elementInfo.forEach((o,s)=>{(s===i||o.checkChildren&&s.contains(i))&&r.push([s,o])}),r}_isLastInteractionFromInputLabel(i){let{_mostRecentTarget:r,mostRecentModality:o}=this._inputModalityDetector;if(o!=="mouse"||!r||r===i||i.nodeName!=="INPUT"&&i.nodeName!=="TEXTAREA"||i.disabled)return!1;let s=i.labels;if(s){for(let c=0;c{let e=class e{constructor(i,r){this._platform=i,this._document=r,this._breakpointSubscription=ai(ZB).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return rR.NONE;let i=this._document.createElement("div");i.style.backgroundColor="rgb(1,2,3)",i.style.position="absolute",this._document.body.appendChild(i);let r=this._document.defaultView||window,o=r&&r.getComputedStyle?r.getComputedStyle(i):null,s=(o&&o.backgroundColor||"").replace(/ /g,"");switch(i.remove(),s){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return rR.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return rR.BLACK_ON_WHITE}return rR.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let i=this._document.body.classList;i.remove(nSe,pje,fje),this._hasCheckedHighContrastMode=!0;let r=this.getHighContrastMode();r===rR.BLACK_ON_WHITE?i.add(nSe,pje):r===rR.WHITE_ON_BLACK&&i.add(nSe,fje)}}};e.\u0275fac=function(r){return new(r||e)(Ke(zo),Ke(Ln))},e.\u0275prov=It({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),Oie=(()=>{let e=class e{constructor(i){i._applyBodyHighContrastModeCssClasses()}};e.\u0275fac=function(r){return new(r||e)(Ke(aSe))},e.\u0275mod=Oi({type:e}),e.\u0275inj=Mi({imports:[WB]});let n=e;return n})();var mCt=["text"],gCt=[[["mat-icon"]],"*"],_Ct=["mat-icon","*"];function vCt(n,e){if(n&1&&bt(0,"mat-pseudo-checkbox",1),n&2){let t=le();J("disabled",t.disabled)("state",t.selected?"checked":"unchecked")}}function yCt(n,e){if(n&1&&bt(0,"mat-pseudo-checkbox",3),n&2){let t=le();J("disabled",t.disabled)}}function bCt(n,e){if(n&1&&(se(0,"span",4),yt(1),ce()),n&2){let t=le();Z(),ps("(",t.group.label,")")}}var xCt=["mat-internal-form-field",""],wCt=["*"];var i3=(()=>{let e=class e{};e.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",e.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",e.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",e.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)";let n=e;return n})(),n3=(()=>{let e=class e{};e.COMPLEX="375ms",e.ENTERING="225ms",e.EXITING="195ms";let n=e;return n})();function CCt(){return!0}var SCt=new fi("mat-sanity-checks",{providedIn:"root",factory:CCt}),ro=(()=>{let e=class e{constructor(i,r,o){this._sanityChecks=r,this._document=o,this._hasDoneGlobalChecks=!1,i._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(i){return Y8()?!1:typeof this._sanityChecks=="boolean"?this._sanityChecks:!!this._sanityChecks[i]}};e.\u0275fac=function(r){return new(r||e)(Ke(aSe),Ke(SCt,8),Ke(Ln))},e.\u0275mod=Oi({type:e}),e.\u0275inj=Mi({imports:[Hb,Hb]});let n=e;return n})();var wT=class{constructor(e,t,i,r,o){this._defaultMatcher=e,this.ngControl=t,this._parentFormGroup=i,this._parentForm=r,this._stateChanges=o,this.errorState=!1}updateErrorState(){let e=this.errorState,t=this._parentFormGroup||this._parentForm,i=this.matcher||this._defaultMatcher,r=this.ngControl?this.ngControl.control:null,o=i?.isErrorState(r,t)??!1;o!==e&&(this.errorState=o,this._stateChanges.next())}};var D_=(()=>{let e=class e{isErrorState(i,r){return!!(i&&i.invalid&&(i.touched||r&&r.submitted))}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=It({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var A_=function(n){return n[n.FADING_IN=0]="FADING_IN",n[n.VISIBLE=1]="VISIBLE",n[n.FADING_OUT=2]="FADING_OUT",n[n.HIDDEN=3]="HIDDEN",n}(A_||{}),uSe=class{constructor(e,t,i,r=!1){this._renderer=e,this.element=t,this.config=i,this._animationForciblyDisabledThroughCss=r,this.state=A_.HIDDEN}fadeOut(){this._renderer.fadeOutRipple(this)}},bje=T_({passive:!0,capture:!0}),dSe=class{constructor(){this._events=new Map,this._delegateEventHandler=e=>{let t=Gp(e);t&&this._events.get(e.type)?.forEach((i,r)=>{(r===t||r.contains(t))&&i.forEach(o=>o.handleEvent(e))})}}addHandler(e,t,i,r){let o=this._events.get(t);if(o){let s=o.get(i);s?s.add(r):o.set(i,new Set([r]))}else this._events.set(t,new Map([[i,new Set([r])]])),e.runOutsideAngular(()=>{document.addEventListener(t,this._delegateEventHandler,bje)})}removeHandler(e,t,i){let r=this._events.get(e);if(!r)return;let o=r.get(t);o&&(o.delete(i),o.size===0&&r.delete(t),r.size===0&&(this._events.delete(e),document.removeEventListener(e,this._delegateEventHandler,bje)))}},xje={enterDuration:225,exitDuration:150},ECt=800,wje=T_({passive:!0,capture:!0}),Cje=["mousedown","touchstart"],Sje=["mouseup","mouseleave","touchend","touchcancel"],W8=class W8{constructor(e,t,i,r){this._target=e,this._ngZone=t,this._platform=r,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=Yf(i))}fadeInRipple(e,t,i={}){let r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o=Ce(Ce({},xje),i.animation);i.centered&&(e=r.left+r.width/2,t=r.top+r.height/2);let s=i.radius||ICt(e,t,r),c=e-r.left,h=t-r.top,g=o.enterDuration,x=document.createElement("div");x.classList.add("mat-ripple-element"),x.style.left=`${c-s}px`,x.style.top=`${h-s}px`,x.style.height=`${s*2}px`,x.style.width=`${s*2}px`,i.color!=null&&(x.style.backgroundColor=i.color),x.style.transitionDuration=`${g}ms`,this._containerElement.appendChild(x);let C=window.getComputedStyle(x),A=C.transitionProperty,k=C.transitionDuration,O=A==="none"||k==="0s"||k==="0s, 0s"||r.width===0&&r.height===0,F=new uSe(this,x,i,O);x.style.transform="scale3d(1, 1, 1)",F.state=A_.FADING_IN,i.persistent||(this._mostRecentTransientRipple=F);let L=null;return!O&&(g||o.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let z=()=>this._finishRippleTransition(F),j=()=>this._destroyRipple(F);x.addEventListener("transitionend",z),x.addEventListener("transitioncancel",j),L={onTransitionEnd:z,onTransitionCancel:j}}),this._activeRipples.set(F,L),(O||!g)&&this._finishRippleTransition(F),F}fadeOutRipple(e){if(e.state===A_.FADING_OUT||e.state===A_.HIDDEN)return;let t=e.element,i=Ce(Ce({},xje),e.config.animation);t.style.transitionDuration=`${i.exitDuration}ms`,t.style.opacity="0",e.state=A_.FADING_OUT,(e._animationForciblyDisabledThroughCss||!i.exitDuration)&&this._finishRippleTransition(e)}fadeOutAll(){this._getActiveRipples().forEach(e=>e.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(e=>{e.config.persistent||e.fadeOut()})}setupTriggerEvents(e){let t=Yf(e);!this._platform.isBrowser||!t||t===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=t,Cje.forEach(i=>{W8._eventManager.addHandler(this._ngZone,i,t,this)}))}handleEvent(e){e.type==="mousedown"?this._onMousedown(e):e.type==="touchstart"?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{Sje.forEach(t=>{this._triggerElement.addEventListener(t,this,wje)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(e){e.state===A_.FADING_IN?this._startFadeOutTransition(e):e.state===A_.FADING_OUT&&this._destroyRipple(e)}_startFadeOutTransition(e){let t=e===this._mostRecentTransientRipple,{persistent:i}=e.config;e.state=A_.VISIBLE,!i&&(!t||!this._isPointerDown)&&e.fadeOut()}_destroyRipple(e){let t=this._activeRipples.get(e)??null;this._activeRipples.delete(e),this._activeRipples.size||(this._containerRect=null),e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),e.state=A_.HIDDEN,t!==null&&(e.element.removeEventListener("transitionend",t.onTransitionEnd),e.element.removeEventListener("transitioncancel",t.onTransitionCancel)),e.element.remove()}_onMousedown(e){let t=$8(e),i=this._lastTouchStartEvent&&Date.now(){let t=e.state===A_.VISIBLE||e.config.terminateOnPointerUp&&e.state===A_.FADING_IN;!e.config.persistent&&t&&e.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let e=this._triggerElement;e&&(Cje.forEach(t=>W8._eventManager.removeHandler(t,e,this)),this._pointerUpEventsRegistered&&(Sje.forEach(t=>e.removeEventListener(t,this,wje)),this._pointerUpEventsRegistered=!1))}};W8._eventManager=new dSe;var Z8=W8;function ICt(n,e,t){let i=Math.max(Math.abs(n-t.left),Math.abs(n-t.right)),r=Math.max(Math.abs(e-t.top),Math.abs(e-t.bottom));return Math.sqrt(i*i+r*r)}var CT=new fi("mat-ripple-global-options"),oC=(()=>{let e=class e{get disabled(){return this._disabled}set disabled(i){i&&this.fadeOutAllNonPersistent(),this._disabled=i,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(i){this._trigger=i,this._setupTriggerEventsIfEnabled()}constructor(i,r,o,s,c){this._elementRef=i,this._animationMode=c,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=s||{},this._rippleRenderer=new Z8(this,r,i,o)}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:Ce(Ce(Ce({},this._globalOptions.animation),this._animationMode==="NoopAnimations"?{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(i,r=0,o){return typeof i=="number"?this._rippleRenderer.fadeInRipple(i,r,Ce(Ce({},this.rippleConfig),o)):this._rippleRenderer.fadeInRipple(0,0,Ce(Ce({},this.rippleConfig),i))}};e.\u0275fac=function(r){return new(r||e)(oe(Ai),oe(Zi),oe(zo),oe(CT,8),oe(da,8))},e.\u0275dir=Ki({type:e,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(r,o){r&2&&$n("mat-ripple-unbounded",o.unbounded)},inputs:{color:[0,"matRippleColor","color"],unbounded:[0,"matRippleUnbounded","unbounded"],centered:[0,"matRippleCentered","centered"],radius:[0,"matRippleRadius","radius"],animation:[0,"matRippleAnimation","animation"],disabled:[0,"matRippleDisabled","disabled"],trigger:[0,"matRippleTrigger","trigger"]},exportAs:["matRipple"],standalone:!0});let n=e;return n})(),Gb=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=Oi({type:e}),e.\u0275inj=Mi({imports:[ro,ro]});let n=e;return n})(),TCt=(()=>{let e=class e{constructor(i){this._animationMode=i,this.state="unchecked",this.disabled=!1,this.appearance="full"}};e.\u0275fac=function(r){return new(r||e)(oe(da,8))},e.\u0275cmp=Ct({type:e,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(r,o){r&2&&$n("mat-pseudo-checkbox-indeterminate",o.state==="indeterminate")("mat-pseudo-checkbox-checked",o.state==="checked")("mat-pseudo-checkbox-disabled",o.disabled)("mat-pseudo-checkbox-minimal",o.appearance==="minimal")("mat-pseudo-checkbox-full",o.appearance==="full")("_mat-animation-noopable",o._animationMode==="NoopAnimations")},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},standalone:!0,features:[Ot],decls:0,vars:0,template:function(r,o){},styles:['.mat-pseudo-checkbox{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-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-minimal-pseudo-checkbox-selected-checkmark-color)}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color)}.mat-pseudo-checkbox-full{border-color:var(--mat-full-pseudo-checkbox-unselected-icon-color);border-width:2px;border-style:solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-disabled{border-color:var(--mat-full-pseudo-checkbox-disabled-unselected-icon-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{background-color:var(--mat-full-pseudo-checkbox-selected-icon-color);border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-full-pseudo-checkbox-selected-checkmark-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled{background-color:var(--mat-full-pseudo-checkbox-disabled-selected-icon-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-full-pseudo-checkbox-disabled-selected-checkmark-color)}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}'],encapsulation:2,changeDetection:0});let n=e;return n})(),hSe=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=Oi({type:e}),e.\u0275inj=Mi({imports:[ro]});let n=e;return n})(),X8=new fi("MAT_OPTION_PARENT_COMPONENT");var J8=new fi("MatOptgroup");var ACt=0,Q8=class{constructor(e,t=!1){this.source=e,this.isUserInput=t}},ST=(()=>{let e=class e{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(i){this._disabled=i}get disableRipple(){return!!(this._parent&&this._parent.disableRipple)}get hideSingleSelectionIndicator(){return!!(this._parent&&this._parent.hideSingleSelectionIndicator)}constructor(i,r,o,s){this._element=i,this._changeDetectorRef=r,this._parent=o,this.group=s,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id=`mat-option-${ACt++}`,this.onSelectionChange=new Kt,this._stateChanges=new mi}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(i=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),i&&this._emitSelectionChangeEvent())}deselect(i=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),i&&this._emitSelectionChangeEvent())}focus(i,r){let o=this._getHostElement();typeof o.focus=="function"&&o.focus(r)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(i){(i.keyCode===13||i.keyCode===32)&&!il(i)&&(this._selectViaInteraction(),i.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=this.multiple?!this._selected:!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){let i=this.viewValue;i!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=i)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(i=!1){this.onSelectionChange.emit(new Q8(this,i))}};e.\u0275fac=function(r){return new(r||e)(oe(Ai),oe(ur),oe(X8,8),oe(J8,8))},e.\u0275cmp=Ct({type:e,selectors:[["mat-option"]],viewQuery:function(r,o){if(r&1&&Xn(mCt,7),r&2){let s;Di(s=ki())&&(o._text=s.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(r,o){r&1&&At("click",function(){return o._selectViaInteraction()})("keydown",function(c){return o._handleKeydown(c)}),r&2&&(Pu("id",o.id),Et("aria-selected",o.selected)("aria-disabled",o.disabled.toString()),$n("mdc-list-item--selected",o.selected)("mat-mdc-option-multiple",o.multiple)("mat-mdc-option-active",o.active)("mdc-list-item--disabled",o.disabled))},inputs:{value:"value",id:"id",disabled:[2,"disabled","disabled",Ht]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],standalone:!0,features:[Ir,Ot],ngContentSelectors:_Ct,decls:8,vars:5,consts:[["text",""],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],[1,"mdc-list-item__primary-text"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled"]],template:function(r,o){r&1&&(Yr(gCt),Ne(0,vCt,1,2,"mat-pseudo-checkbox",1),Gn(1),se(2,"span",2,0),Gn(4,1),ce(),Ne(5,yCt,1,1,"mat-pseudo-checkbox",3)(6,bCt,2,1,"span",4),bt(7,"div",5)),r&2&&(Hi(o.multiple?0:-1),Z(5),Hi(!o.multiple&&o.selected&&!o.hideSingleSelectionIndicator?5:-1),Z(),Hi(o.group&&o.group._inert?6:-1),Z(),J("matRippleTrigger",o._getHostElement())("matRippleDisabled",o.disabled||o.disableRipple))},dependencies:[TCt,oC],styles:['.mat-mdc-option{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:16px;padding-right:16px;-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color);font-family:var(--mat-option-label-text-font);line-height:var(--mat-option-label-text-line-height);font-size:var(--mat-option-label-text-size);letter-spacing:var(--mat-option-label-text-tracking);font-weight:var(--mat-option-label-text-weight);min-height:48px}.mat-mdc-option:focus{outline:none}[dir=rtl] .mat-mdc-option,.mat-mdc-option[dir=rtl]{padding-left:16px;padding-right:16px}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color)}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple){background-color:var(--mat-option-selected-state-layer-color)}.mat-mdc-option.mdc-list-item{align-items:center;background:rgba(0,0,0,0)}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}.cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{right:auto;left:16px}.mat-mdc-option-multiple{--mdc-list-list-item-selected-container-color:var(--mdc-list-list-item-container-color, transparent)}.mat-mdc-option-active .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0});let n=e;return n})();function Nie(n,e,t){if(t.length){let i=e.toArray(),r=t.toArray(),o=0;for(let s=0;st+i?Math.max(0,n-i+e):t}var ET=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=Oi({type:e}),e.\u0275inj=Mi({imports:[Gb,ro,hSe]});let n=e;return n})(),Eje={capture:!0},Ije=["focus","mousedown","mouseenter","touchstart"],lSe="mat-ripple-loader-uninitialized",cSe="mat-ripple-loader-class-name",Tje="mat-ripple-loader-centered",Rie="mat-ripple-loader-disabled",Fie=(()=>{let e=class e{constructor(){this._document=ai(Ln,{optional:!0}),this._animationMode=ai(da,{optional:!0}),this._globalRippleOptions=ai(CT,{optional:!0}),this._platform=ai(zo),this._ngZone=ai(Zi),this._hosts=new Map,this._onInteraction=i=>{let r=Gp(i);if(r instanceof HTMLElement){let o=r.closest(`[${lSe}="${this._globalRippleOptions?.namespace??""}"]`);o&&this._createRipple(o)}},this._ngZone.runOutsideAngular(()=>{for(let i of Ije)this._document?.addEventListener(i,this._onInteraction,Eje)})}ngOnDestroy(){let i=this._hosts.keys();for(let r of i)this.destroyRipple(r);for(let r of Ije)this._document?.removeEventListener(r,this._onInteraction,Eje)}configureRipple(i,r){i.setAttribute(lSe,this._globalRippleOptions?.namespace??""),(r.className||!i.hasAttribute(cSe))&&i.setAttribute(cSe,r.className||""),r.centered&&i.setAttribute(Tje,""),r.disabled&&i.setAttribute(Rie,"")}getRipple(i){return this._hosts.get(i)||this._createRipple(i)}setDisabled(i,r){let o=this._hosts.get(i);if(o){o.disabled=r;return}r?i.setAttribute(Rie,""):i.removeAttribute(Rie)}_createRipple(i){if(!this._document)return;let r=this._hosts.get(i);if(r)return r;i.querySelector(".mat-ripple")?.remove();let o=this._document.createElement("span");o.classList.add("mat-ripple",i.getAttribute(cSe)),i.append(o);let s=new oC(new Ai(o),this._ngZone,this._platform,this._globalRippleOptions?this._globalRippleOptions:void 0,this._animationMode?this._animationMode:void 0);return s._isInitialized=!0,s.trigger=i,s.centered=i.hasAttribute(Tje),s.disabled=i.hasAttribute(Rie),this.attachRipple(i,s),s}attachRipple(i,r){i.removeAttribute(lSe),this._hosts.set(i,r)}destroyRipple(i){let r=this._hosts.get(i);r&&(r.ngOnDestroy(),this._hosts.delete(i))}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=It({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),Aje=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=Ct({type:e,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(r,o){r&2&&$n("mdc-form-field--align-end",o.labelPosition==="before")},inputs:{labelPosition:"labelPosition"},standalone:!0,features:[Ot],attrs:xCt,ngContentSelectors:wCt,decls:1,vars:0,template:function(r,o){r&1&&(Yr(),Gn(0))},styles:[".mdc-form-field{display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field[hidden]{display:none}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{margin-left:auto;margin-right:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}[dir=rtl] .mdc-form-field--space-between>label,.mdc-form-field--space-between>label[dir=rtl]{margin:0}.mat-internal-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}"],encapsulation:2,changeDetection:0});let n=e;return n})();var DCt=["*"],Lie;function kCt(){if(Lie===void 0&&(Lie=null,typeof window<"u")){let n=window;n.trustedTypes!==void 0&&(Lie=n.trustedTypes.createPolicy("angular#components",{createHTML:e=>e}))}return Lie}function tG(n){return kCt()?.createHTML(n)||n}function Dje(n){return Error(`Unable to find icon with the name "${n}"`)}function MCt(){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 kje(n){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${n}".`)}function Mje(n){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${n}".`)}var sC=class{constructor(e,t,i){this.url=e,this.svgText=t,this.options=i}},OCt=(()=>{let e=class e{constructor(i,r,o,s){this._httpClient=i,this._sanitizer=r,this._errorHandler=s,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","mat-ligature-font"],this._document=o}addSvgIcon(i,r,o){return this.addSvgIconInNamespace("",i,r,o)}addSvgIconLiteral(i,r,o){return this.addSvgIconLiteralInNamespace("",i,r,o)}addSvgIconInNamespace(i,r,o,s){return this._addSvgIconConfig(i,r,new sC(o,null,s))}addSvgIconResolver(i){return this._resolvers.push(i),this}addSvgIconLiteralInNamespace(i,r,o,s){let c=this._sanitizer.sanitize(mh.HTML,o);if(!c)throw Mje(o);let h=tG(c);return this._addSvgIconConfig(i,r,new sC("",h,s))}addSvgIconSet(i,r){return this.addSvgIconSetInNamespace("",i,r)}addSvgIconSetLiteral(i,r){return this.addSvgIconSetLiteralInNamespace("",i,r)}addSvgIconSetInNamespace(i,r,o){return this._addSvgIconSetConfig(i,new sC(r,null,o))}addSvgIconSetLiteralInNamespace(i,r,o){let s=this._sanitizer.sanitize(mh.HTML,r);if(!s)throw Mje(r);let c=tG(s);return this._addSvgIconSetConfig(i,new sC("",c,o))}registerFontClassAlias(i,r=i){return this._fontCssClassesByAlias.set(i,r),this}classNameForFontAlias(i){return this._fontCssClassesByAlias.get(i)||i}setDefaultFontSetClass(...i){return this._defaultFontSetClass=i,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(i){let r=this._sanitizer.sanitize(mh.RESOURCE_URL,i);if(!r)throw kje(i);let o=this._cachedIconsByUrl.get(r);return o?kn(Bie(o)):this._loadSvgIconFromConfig(new sC(i,null)).pipe(vs(s=>this._cachedIconsByUrl.set(r,s)),ri(s=>Bie(s)))}getNamedSvgIcon(i,r=""){let o=Oje(r,i),s=this._svgIconConfigs.get(o);if(s)return this._getSvgFromConfig(s);if(s=this._getIconConfigFromResolvers(r,i),s)return this._svgIconConfigs.set(o,s),this._getSvgFromConfig(s);let c=this._iconSetConfigs.get(r);return c?this._getSvgFromIconSetConfigs(i,c):Mf(Dje(o))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(i){return i.svgText?kn(Bie(this._svgElementFromConfig(i))):this._loadSvgIconFromConfig(i).pipe(ri(r=>Bie(r)))}_getSvgFromIconSetConfigs(i,r){let o=this._extractIconWithNameFromAnySet(i,r);if(o)return kn(o);let s=r.filter(c=>!c.svgText).map(c=>this._loadSvgIconSetFromConfig(c).pipe(Ld(h=>{let x=`Loading icon set URL: ${this._sanitizer.sanitize(mh.RESOURCE_URL,c.url)} failed: ${h.message}`;return this._errorHandler.handleError(new Error(x)),kn(null)})));return dh(s).pipe(ri(()=>{let c=this._extractIconWithNameFromAnySet(i,r);if(!c)throw Dje(i);return c}))}_extractIconWithNameFromAnySet(i,r){for(let o=r.length-1;o>=0;o--){let s=r[o];if(s.svgText&&s.svgText.toString().indexOf(i)>-1){let c=this._svgElementFromConfig(s),h=this._extractSvgIconFromSet(c,i,s.options);if(h)return h}}return null}_loadSvgIconFromConfig(i){return this._fetchIcon(i).pipe(vs(r=>i.svgText=r),ri(()=>this._svgElementFromConfig(i)))}_loadSvgIconSetFromConfig(i){return i.svgText?kn(null):this._fetchIcon(i).pipe(vs(r=>i.svgText=r))}_extractSvgIconFromSet(i,r,o){let s=i.querySelector(`[id="${r}"]`);if(!s)return null;let c=s.cloneNode(!0);if(c.removeAttribute("id"),c.nodeName.toLowerCase()==="svg")return this._setSvgAttributes(c,o);if(c.nodeName.toLowerCase()==="symbol")return this._setSvgAttributes(this._toSvgElement(c),o);let h=this._svgElementFromString(tG(""));return h.appendChild(c),this._setSvgAttributes(h,o)}_svgElementFromString(i){let r=this._document.createElement("DIV");r.innerHTML=i;let o=r.querySelector("svg");if(!o)throw Error(" tag not found");return o}_toSvgElement(i){let r=this._svgElementFromString(tG("")),o=i.attributes;for(let s=0;stG(x)),yb(()=>this._inProgressUrlFetches.delete(c)),Oj());return this._inProgressUrlFetches.set(c,g),g}_addSvgIconConfig(i,r,o){return this._svgIconConfigs.set(Oje(i,r),o),this}_addSvgIconSetConfig(i,r){let o=this._iconSetConfigs.get(i);return o?o.push(r):this._iconSetConfigs.set(i,[r]),this}_svgElementFromConfig(i){if(!i.svgElement){let r=this._svgElementFromString(i.svgText);this._setSvgAttributes(r,i.options),i.svgElement=r}return i.svgElement}_getIconConfigFromResolvers(i,r){for(let o=0;oe?e.pathname+e.search:""}}var Rje=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],LCt=Rje.map(n=>`[${n}]`).join(", "),BCt=/^url\(['"]?#(.*?)['"]?\)$/,zs=(()=>{let e=class e{get color(){return this._color||this._defaultColor}set color(i){this._color=i}get svgIcon(){return this._svgIcon}set svgIcon(i){i!==this._svgIcon&&(i?this._updateSvgIcon(i):this._svgIcon&&this._clearSvgElement(),this._svgIcon=i)}get fontSet(){return this._fontSet}set fontSet(i){let r=this._cleanupFontValue(i);r!==this._fontSet&&(this._fontSet=r,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(i){let r=this._cleanupFontValue(i);r!==this._fontIcon&&(this._fontIcon=r,this._updateFontIconClasses())}constructor(i,r,o,s,c,h){this._elementRef=i,this._iconRegistry=r,this._location=s,this._errorHandler=c,this.inline=!1,this._previousFontSetClass=[],this._currentIconFetch=Qo.EMPTY,h&&(h.color&&(this.color=this._defaultColor=h.color),h.fontSet&&(this.fontSet=h.fontSet)),o||i.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(i){if(!i)return["",""];let r=i.split(":");switch(r.length){case 1:return["",r[0]];case 2:return r;default:throw Error(`Invalid icon name: "${i}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){let i=this._elementsWithExternalReferences;if(i&&i.size){let r=this._location.getPathname();r!==this._previousPath&&(this._previousPath=r,this._prependPathToReferences(r))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(i){this._clearSvgElement();let r=this._location.getPathname();this._previousPath=r,this._cacheChildrenWithExternalReferences(i),this._prependPathToReferences(r),this._elementRef.nativeElement.appendChild(i)}_clearSvgElement(){let i=this._elementRef.nativeElement,r=i.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();r--;){let o=i.childNodes[r];(o.nodeType!==1||o.nodeName.toLowerCase()==="svg")&&o.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;let i=this._elementRef.nativeElement,r=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(o=>o.length>0);this._previousFontSetClass.forEach(o=>i.classList.remove(o)),r.forEach(o=>i.classList.add(o)),this._previousFontSetClass=r,this.fontIcon!==this._previousFontIconClass&&!r.includes("mat-ligature-font")&&(this._previousFontIconClass&&i.classList.remove(this._previousFontIconClass),this.fontIcon&&i.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(i){return typeof i=="string"?i.trim().split(" ")[0]:i}_prependPathToReferences(i){let r=this._elementsWithExternalReferences;r&&r.forEach((o,s)=>{o.forEach(c=>{s.setAttribute(c.name,`url('${i}#${c.value}')`)})})}_cacheChildrenWithExternalReferences(i){let r=i.querySelectorAll(LCt),o=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let s=0;s{let h=r[s],g=h.getAttribute(c),x=g?g.match(BCt):null;if(x){let C=o.get(h);C||(C=[],o.set(h,C)),C.push({name:c,value:x[1]})}})}_updateSvgIcon(i){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),i){let[r,o]=this._splitIconName(i);r&&(this._svgNamespace=r),o&&(this._svgName=o),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(o,r).pipe(kr(1)).subscribe(s=>this._setSvgElement(s),s=>{let c=`Error retrieving icon ${r}:${o}! ${s.message}`;this._errorHandler.handleError(new Error(c))})}}};e.\u0275fac=function(r){return new(r||e)(oe(Ai),oe(OCt),Hm("aria-hidden"),oe(PCt),oe(sd),oe(NCt,8))},e.\u0275cmp=Ct({type:e,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(r,o){r&2&&(Et("data-mat-icon-type",o._usingFontIcon()?"font":"svg")("data-mat-icon-name",o._svgName||o.fontIcon)("data-mat-icon-namespace",o._svgNamespace||o.fontSet)("fontIcon",o._usingFontIcon()?o.fontIcon:null),vn(o.color?"mat-"+o.color:""),$n("mat-icon-inline",o.inline)("mat-icon-no-color",o.color!=="primary"&&o.color!=="accent"&&o.color!=="warn"))},inputs:{color:"color",inline:[2,"inline","inline",Ht],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],standalone:!0,features:[Ir,Ot],ngContentSelectors:DCt,decls:1,vars:0,template:function(r,o){r&1&&(Yr(),Gn(0))},styles:["mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[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}"],encapsulation:2,changeDetection:0});let n=e;return n})(),qs=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=Oi({type:e}),e.\u0275inj=Mi({imports:[ro,ro]});let n=e;return n})();var iG=class{attach(e){return this._attachedHost=e,e.attach(this)}detach(){let e=this._attachedHost;e!=null&&(this._attachedHost=null,e.detach())}get isAttached(){return this._attachedHost!=null}setAttachedHost(e){this._attachedHost=e}},_0=class extends iG{constructor(e,t,i,r,o){super(),this.component=e,this.viewContainerRef=t,this.injector=i,this.componentFactoryResolver=r,this.projectableNodes=o}},qp=class extends iG{constructor(e,t,i,r){super(),this.templateRef=e,this.viewContainerRef=t,this.context=i,this.injector=r}get origin(){return this.templateRef.elementRef}attach(e,t=this.context){return this.context=t,super.attach(e)}detach(){return this.context=void 0,super.detach()}},pSe=class extends iG{constructor(e){super(),this.element=e instanceof Ai?e.nativeElement:e}},IT=class{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(e){if(e instanceof _0)return this._attachedPortal=e,this.attachComponentPortal(e);if(e instanceof qp)return this._attachedPortal=e,this.attachTemplatePortal(e);if(this.attachDomPortal&&e instanceof pSe)return this._attachedPortal=e,this.attachDomPortal(e)}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(e){this._disposeFn=e}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}};var nG=class extends IT{constructor(e,t,i,r,o){super(),this.outletElement=e,this._componentFactoryResolver=t,this._appRef=i,this._defaultInjector=r,this.attachDomPortal=s=>{this._document;let c=s.element;c.parentNode;let h=this._document.createComment("dom-portal");c.parentNode.insertBefore(h,c),this.outletElement.appendChild(c),this._attachedPortal=s,super.setDisposeFn(()=>{h.parentNode&&h.parentNode.replaceChild(c,h)})},this._document=o}attachComponentPortal(e){let i=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),r;return e.viewContainerRef?(r=e.viewContainerRef.createComponent(i,e.viewContainerRef.length,e.injector||e.viewContainerRef.injector,e.projectableNodes||void 0),this.setDisposeFn(()=>r.destroy())):(r=i.create(e.injector||this._defaultInjector||yo.NULL),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=e,r}attachTemplatePortal(e){let t=e.viewContainerRef,i=t.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return i.rootNodes.forEach(r=>this.outletElement.appendChild(r)),i.detectChanges(),this.setDisposeFn(()=>{let r=t.indexOf(i);r!==-1&&t.remove(r)}),this._attachedPortal=e,i}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(e){return e.hostView.rootNodes[0]}};var k_=(()=>{let e=class e extends IT{constructor(i,r,o){super(),this._componentFactoryResolver=i,this._viewContainerRef=r,this._isInitialized=!1,this.attached=new Kt,this.attachDomPortal=s=>{this._document;let c=s.element;c.parentNode;let h=this._document.createComment("dom-portal");s.setAttachedHost(this),c.parentNode.insertBefore(h,c),this._getRootNode().appendChild(c),this._attachedPortal=s,super.setDisposeFn(()=>{h.parentNode&&h.parentNode.replaceChild(c,h)})},this._document=o}get portal(){return this._attachedPortal}set portal(i){this.hasAttached()&&!i&&!this._isInitialized||(this.hasAttached()&&super.detach(),i&&super.attach(i),this._attachedPortal=i||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(i){i.setAttachedHost(this);let r=i.viewContainerRef!=null?i.viewContainerRef:this._viewContainerRef,s=(i.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(i.component),c=r.createComponent(s,r.length,i.injector||r.injector,i.projectableNodes||void 0);return r!==this._viewContainerRef&&this._getRootNode().appendChild(c.hostView.rootNodes[0]),super.setDisposeFn(()=>c.destroy()),this._attachedPortal=i,this._attachedRef=c,this.attached.emit(c),c}attachTemplatePortal(i){i.setAttachedHost(this);let r=this._viewContainerRef.createEmbeddedView(i.templateRef,i.context,{injector:i.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=i,this._attachedRef=r,this.attached.emit(r),r}_getRootNode(){let i=this._viewContainerRef.element.nativeElement;return i.nodeType===i.ELEMENT_NODE?i:i.parentNode}};e.\u0275fac=function(r){return new(r||e)(oe(e0),oe(Sc),oe(Ln))},e.\u0275dir=Ki({type:e,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],standalone:!0,features:[Li]});let n=e;return n})();var v0=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=Oi({type:e}),e.\u0275inj=Mi({});let n=e;return n})();var ts=function(n){return n[n.State=0]="State",n[n.Transition=1]="Transition",n[n.Sequence=2]="Sequence",n[n.Group=3]="Group",n[n.Animate=4]="Animate",n[n.Keyframes=5]="Keyframes",n[n.Style=6]="Style",n[n.Trigger=7]="Trigger",n[n.Reference=8]="Reference",n[n.AnimateChild=9]="AnimateChild",n[n.AnimateRef=10]="AnimateRef",n[n.Query=11]="Query",n[n.Stagger=12]="Stagger",n}(ts||{}),Yb="*";function jl(n,e){return{type:ts.Trigger,name:n,definitions:e,options:{}}}function Ps(n,e=null){return{type:ts.Animate,styles:e,timings:n}}function y0(n,e=null){return{type:ts.Group,steps:n,options:e}}function Nje(n,e=null){return{type:ts.Sequence,steps:n,options:e}}function qr(n){return{type:ts.Style,styles:n,offset:null}}function nl(n,e,t){return{type:ts.State,name:n,styles:e,options:t}}function $s(n,e,t=null){return{type:ts.Transition,expr:n,animation:e,options:t}}function fSe(n,e=null){return{type:ts.Reference,animation:n,options:e}}function AT(n=null){return{type:ts.AnimateChild,options:n}}function mSe(n,e=null){return{type:ts.AnimateRef,animation:n,options:e}}function DT(n,e,t=null){return{type:ts.Query,selector:n,animation:e,options:t}}var TT=class{constructor(e=0,t=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=e+t}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){let t=e=="start"?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}},rG=class{constructor(e){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;let t=0,i=0,r=0,o=this.players.length;o==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++t==o&&this._onFinish()}),s.onDestroy(()=>{++i==o&&this._onDestroy()}),s.onStart(()=>{++r==o&&this._onStart()})}),this.totalTime=this.players.reduce((s,c)=>Math.max(s,c.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){let t=e*this.totalTime;this.players.forEach(i=>{let r=i.totalTime?Math.min(1,t/i.totalTime):1;i.setPosition(r)})}getPosition(){let e=this.players.reduce((t,i)=>t===null||i.totalTime>t.totalTime?i:t,null);return e!=null?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){let t=e=="start"?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}},zie="!";var Vie=class{get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}constructor(e=!1,t,i=!0,r){this._multiple=e,this._emitChanges=i,this.compareWith=r,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new mi,t&&t.length&&(e?t.forEach(o=>this._markSelected(o)):this._markSelected(t[0]),this._selectedToEmit.length=0)}select(...e){this._verifyValueAssignment(e),e.forEach(i=>this._markSelected(i));let t=this._hasQueuedChanges();return this._emitChangeEvent(),t}deselect(...e){this._verifyValueAssignment(e),e.forEach(i=>this._unmarkSelected(i));let t=this._hasQueuedChanges();return this._emitChangeEvent(),t}setSelection(...e){this._verifyValueAssignment(e);let t=this.selected,i=new Set(e);e.forEach(o=>this._markSelected(o)),t.filter(o=>!i.has(this._getConcreteValue(o,i))).forEach(o=>this._unmarkSelected(o));let r=this._hasQueuedChanges();return this._emitChangeEvent(),r}toggle(e){return this.isSelected(e)?this.deselect(e):this.select(e)}clear(e=!0){this._unmarkAll();let t=this._hasQueuedChanges();return e&&this._emitChangeEvent(),t}isSelected(e){return this._selection.has(this._getConcreteValue(e))}isEmpty(){return this._selection.size===0}hasValue(){return!this.isEmpty()}sort(e){this._multiple&&this.selected&&this._selected.sort(e)}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(e){e=this._getConcreteValue(e),this.isSelected(e)||(this._multiple||this._unmarkAll(),this.isSelected(e)||this._selection.add(e),this._emitChanges&&this._selectedToEmit.push(e))}_unmarkSelected(e){e=this._getConcreteValue(e),this.isSelected(e)&&(this._selection.delete(e),this._emitChanges&&this._deselectedToEmit.push(e))}_unmarkAll(){this.isEmpty()||this._selection.forEach(e=>this._unmarkSelected(e))}_verifyValueAssignment(e){e.length>1&&this._multiple}_hasQueuedChanges(){return!!(this._deselectedToEmit.length||this._selectedToEmit.length)}_getConcreteValue(e,t){if(this.compareWith){t=t??this._selection;for(let i of t)if(this.compareWith(e,i))return i;return e}else return e}};var zCt=20,aC=(()=>{let e=class e{constructor(i,r,o){this._ngZone=i,this._platform=r,this._scrolled=new mi,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=o}register(i){this.scrollContainers.has(i)||this.scrollContainers.set(i,i.elementScrolled().subscribe(()=>this._scrolled.next(i)))}deregister(i){let r=this.scrollContainers.get(i);r&&(r.unsubscribe(),this.scrollContainers.delete(i))}scrolled(i=zCt){return this._platform.isBrowser?new fo(r=>{this._globalSubscription||this._addGlobalListener();let o=i>0?this._scrolled.pipe(cJ(i)).subscribe(r):this._scrolled.subscribe(r);return this._scrolledCount++,()=>{o.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):kn()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((i,r)=>this.deregister(r)),this._scrolled.complete()}ancestorScrolled(i,r){let o=this.getAncestorScrollContainers(i);return this.scrolled(r).pipe(Wn(s=>!s||o.indexOf(s)>-1))}getAncestorScrollContainers(i){let r=[];return this.scrollContainers.forEach((o,s)=>{this._scrollableContainsElement(s,i)&&r.push(s)}),r}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(i,r){let o=Yf(r),s=i.getElementRef().nativeElement;do if(o==s)return!0;while(o=o.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{let i=this._getWindow();return wc(i.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}};e.\u0275fac=function(r){return new(r||e)(Ke(Zi),Ke(zo),Ke(Ln,8))},e.\u0275prov=It({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),lC=(()=>{let e=class e{constructor(i,r,o,s){this.elementRef=i,this.scrollDispatcher=r,this.ngZone=o,this.dir=s,this._destroyed=new mi,this._elementScrolled=new fo(c=>this.ngZone.runOutsideAngular(()=>wc(this.elementRef.nativeElement,"scroll").pipe(hr(this._destroyed)).subscribe(c)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(i){let r=this.elementRef.nativeElement,o=this.dir&&this.dir.value=="rtl";i.left==null&&(i.left=o?i.end:i.start),i.right==null&&(i.right=o?i.start:i.end),i.bottom!=null&&(i.top=r.scrollHeight-r.clientHeight-i.bottom),o&&KB()!=f0.NORMAL?(i.left!=null&&(i.right=r.scrollWidth-r.clientWidth-i.left),KB()==f0.INVERTED?i.left=i.right:KB()==f0.NEGATED&&(i.left=i.right?-i.right:i.right)):i.right!=null&&(i.left=r.scrollWidth-r.clientWidth-i.right),this._applyScrollToOptions(i)}_applyScrollToOptions(i){let r=this.elementRef.nativeElement;Eie()?r.scrollTo(i):(i.top!=null&&(r.scrollTop=i.top),i.left!=null&&(r.scrollLeft=i.left))}measureScrollOffset(i){let r="left",o="right",s=this.elementRef.nativeElement;if(i=="top")return s.scrollTop;if(i=="bottom")return s.scrollHeight-s.clientHeight-s.scrollTop;let c=this.dir&&this.dir.value=="rtl";return i=="start"?i=c?o:r:i=="end"&&(i=c?r:o),c&&KB()==f0.INVERTED?i==r?s.scrollWidth-s.clientWidth-s.scrollLeft:s.scrollLeft:c&&KB()==f0.NEGATED?i==r?s.scrollLeft+s.scrollWidth-s.clientWidth:-s.scrollLeft:i==r?s.scrollLeft:s.scrollWidth-s.clientWidth-s.scrollLeft}};e.\u0275fac=function(r){return new(r||e)(oe(Ai),oe(aC),oe(Zi),oe(pl,8))},e.\u0275dir=Ki({type:e,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]],standalone:!0});let n=e;return n})(),VCt=20,qb=(()=>{let e=class e{constructor(i,r,o){this._platform=i,this._change=new mi,this._changeListener=s=>{this._change.next(s)},this._document=o,r.runOutsideAngular(()=>{if(i.isBrowser){let s=this._getWindow();s.addEventListener("resize",this._changeListener),s.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){let i=this._getWindow();i.removeEventListener("resize",this._changeListener),i.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();let i={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),i}getViewportRect(){let i=this.getViewportScrollPosition(),{width:r,height:o}=this.getViewportSize();return{top:i.top,left:i.left,bottom:i.top+o,right:i.left+r,height:o,width:r}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let i=this._document,r=this._getWindow(),o=i.documentElement,s=o.getBoundingClientRect(),c=-s.top||i.body.scrollTop||r.scrollY||o.scrollTop||0,h=-s.left||i.body.scrollLeft||r.scrollX||o.scrollLeft||0;return{top:c,left:h}}change(i=VCt){return i>0?this._change.pipe(cJ(i)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){let i=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:i.innerWidth,height:i.innerHeight}:{width:0,height:0}}};e.\u0275fac=function(r){return new(r||e)(Ke(zo),Ke(Zi),Ke(Ln,8))},e.\u0275prov=It({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var ig=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=Oi({type:e}),e.\u0275inj=Mi({});let n=e;return n})(),gSe=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=Oi({type:e}),e.\u0275inj=Mi({imports:[Hb,ig,Hb,ig]});let n=e;return n})();var Pje=Eie(),_Se=class{constructor(e,t){this._viewportRuler=e,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=t}attach(){}enable(){if(this._canBeEnabled()){let e=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=e.style.left||"",this._previousHTMLStyles.top=e.style.top||"",e.style.left=pu(-this._previousScrollPosition.left),e.style.top=pu(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){let e=this._document.documentElement,t=this._document.body,i=e.style,r=t.style,o=i.scrollBehavior||"",s=r.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),Pje&&(i.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Pje&&(i.scrollBehavior=o,r.scrollBehavior=s)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;let t=this._document.body,i=this._viewportRuler.getViewportSize();return t.scrollHeight>i.height||t.scrollWidth>i.width}};var vSe=class{constructor(e,t,i,r){this._scrollDispatcher=e,this._ngZone=t,this._viewportRuler=i,this._config=r,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(e){this._overlayRef,this._overlayRef=e}enable(){if(this._scrollSubscription)return;let e=this._scrollDispatcher.scrolled(0).pipe(Wn(t=>!t||!this._overlayRef.overlayElement.contains(t.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe(()=>{let t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=e.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}},Uie=class{enable(){}disable(){}attach(){}};function ySe(n,e){return e.some(t=>{let i=n.bottomt.bottom,o=n.rightt.right;return i||r||o||s})}function Fje(n,e){return e.some(t=>{let i=n.topt.bottom,o=n.leftt.right;return i||r||o||s})}var bSe=class{constructor(e,t,i,r){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=i,this._config=r,this._scrollSubscription=null}attach(e){this._overlayRef,this._overlayRef=e}enable(){if(!this._scrollSubscription){let e=this._config?this._config.scrollThrottle:0;this._scrollSubscription=this._scrollDispatcher.scrolled(e).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){let t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:i,height:r}=this._viewportRuler.getViewportSize();ySe(t,[{width:i,height:r,bottom:r,right:i,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}},UCt=(()=>{let e=class e{constructor(i,r,o,s){this._scrollDispatcher=i,this._viewportRuler=r,this._ngZone=o,this.noop=()=>new Uie,this.close=c=>new vSe(this._scrollDispatcher,this._ngZone,this._viewportRuler,c),this.block=()=>new _Se(this._viewportRuler,this._document),this.reposition=c=>new bSe(this._scrollDispatcher,this._viewportRuler,this._ngZone,c),this._document=s}};e.\u0275fac=function(r){return new(r||e)(Ke(aC),Ke(qb),Ke(Zi),Ke(Ln))},e.\u0275prov=It({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),M_=class{constructor(e){if(this.scrollStrategy=new Uie,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,e){let t=Object.keys(e);for(let i of t)e[i]!==void 0&&(this[i]=e[i])}}};var xSe=class{constructor(e,t){this.connectionPair=e,this.scrollableViewProperties=t}};var Uje=(()=>{let e=class e{constructor(i){this._attachedOverlays=[],this._document=i}ngOnDestroy(){this.detach()}add(i){this.remove(i),this._attachedOverlays.push(i)}remove(i){let r=this._attachedOverlays.indexOf(i);r>-1&&this._attachedOverlays.splice(r,1),this._attachedOverlays.length===0&&this.detach()}};e.\u0275fac=function(r){return new(r||e)(Ke(Ln))},e.\u0275prov=It({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),jCt=(()=>{let e=class e extends Uje{constructor(i,r){super(i),this._ngZone=r,this._keydownListener=o=>{let s=this._attachedOverlays;for(let c=s.length-1;c>-1;c--)if(s[c]._keydownEvents.observers.length>0){let h=s[c]._keydownEvents;this._ngZone?this._ngZone.run(()=>h.next(o)):h.next(o);break}}}add(i){super.add(i),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}};e.\u0275fac=function(r){return new(r||e)(Ke(Ln),Ke(Zi,8))},e.\u0275prov=It({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),HCt=(()=>{let e=class e extends Uje{constructor(i,r,o){super(i),this._platform=r,this._ngZone=o,this._cursorStyleIsSet=!1,this._pointerDownListener=s=>{this._pointerDownEventTarget=Gp(s)},this._clickListener=s=>{let c=Gp(s),h=s.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:c;this._pointerDownEventTarget=null;let g=this._attachedOverlays.slice();for(let x=g.length-1;x>-1;x--){let C=g[x];if(C._outsidePointerEvents.observers.length<1||!C.hasAttached())continue;if(C.overlayElement.contains(c)||C.overlayElement.contains(h))break;let A=C._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>A.next(s)):A.next(s)}}}add(i){if(super.add(i),!this._isAttached){let r=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(r)):this._addEventListeners(r),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=r.style.cursor,r.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){let i=this._document.body;i.removeEventListener("pointerdown",this._pointerDownListener,!0),i.removeEventListener("click",this._clickListener,!0),i.removeEventListener("auxclick",this._clickListener,!0),i.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(i.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(i){i.addEventListener("pointerdown",this._pointerDownListener,!0),i.addEventListener("click",this._clickListener,!0),i.addEventListener("auxclick",this._clickListener,!0),i.addEventListener("contextmenu",this._clickListener,!0)}};e.\u0275fac=function(r){return new(r||e)(Ke(Ln),Ke(zo),Ke(Zi,8))},e.\u0275prov=It({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),r3=(()=>{let e=class e{constructor(i,r){this._platform=r,this._document=i}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let i="cdk-overlay-container";if(this._platform.isBrowser||Y8()){let o=this._document.querySelectorAll(`.${i}[platform="server"], .${i}[platform="test"]`);for(let s=0;sthis._backdropClick.next(A),this._backdropTransitionendHandler=A=>{this._disposeBackdrop(A.target)},this._keydownEvents=new mi,this._outsidePointerEvents=new mi,this._renders=new mi,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy,this._afterRenderRef=lH(()=>iH(()=>{this._renders.next()},{injector:this._injector}))}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(e){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);let t=this._portalOutlet.attach(e);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),ad(()=>{this.hasAttached()&&this.updatePosition()},{injector:this._injector}),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),typeof t?.onDestroy=="function"&&t.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),t}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();let e=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),e}dispose(){let e=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),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,e&&this._detachments.next(),this._detachments.complete(),this._afterRenderRef.destroy(),this._renders.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(e){e!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=e,this.hasAttached()&&(e.attach(this),this.updatePosition()))}updateSize(e){this._config=Ce(Ce({},this._config),e),this._updateElementSize()}setDirection(e){this._config=wt(Ce({},this._config),{direction:e}),this._updateElementDirection()}addPanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!0)}removePanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!1)}getDirection(){let e=this._config.direction;return e?typeof e=="string"?e:e.value:"ltr"}updateScrollStrategy(e){e!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=e,this.hasAttached()&&(e.attach(this),e.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;let e=this._pane.style;e.width=pu(this._config.width),e.height=pu(this._config.height),e.minWidth=pu(this._config.minWidth),e.minHeight=pu(this._config.minHeight),e.maxWidth=pu(this._config.maxWidth),e.maxHeight=pu(this._config.maxHeight)}_togglePointerEvents(e){this._pane.style.pointerEvents=e?"":"none"}_attachBackdrop(){let e="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),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),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(e)})}):this._backdropElement.classList.add(e)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let e=this._backdropElement;if(e){if(this._animationsDisabled){this._disposeBackdrop(e);return}e.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{e.addEventListener("transitionend",this._backdropTransitionendHandler)}),e.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(e)},500))}}_toggleClasses(e,t,i){let r=YB(t||[]).filter(o=>!!o);r.length&&(i?e.classList.add(...r):e.classList.remove(...r))}_detachContentWhenEmpty(){this._ngZone.runOutsideAngular(()=>{let e=this._renders.pipe(hr(Da(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||this._pane.children.length===0)&&(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()),e.unsubscribe())})})}_disposeScrollStrategy(){let e=this._scrollStrategy;e&&(e.disable(),e.detach&&e.detach())}_disposeBackdrop(e){e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",this._backdropTransitionendHandler),e.remove(),this._backdropElement===e&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}},Lje="cdk-overlay-connected-position-bounding-box",GCt=/([A-Za-z%]+)$/,wSe=class{get positions(){return this._preferredPositions}constructor(e,t,i,r,o){this._viewportRuler=t,this._document=i,this._platform=r,this._overlayContainer=o,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 mi,this._resizeSubscription=Qo.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(e)}attach(e){this._overlayRef&&this._overlayRef,this._validatePositions(),e.hostElement.classList.add(Lje),this._overlayRef=e,this._boundingBox=e.hostElement,this._pane=e.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){this.reapplyLastPosition();return}this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let e=this._originRect,t=this._overlayRect,i=this._viewportRect,r=this._containerRect,o=[],s;for(let c of this._preferredPositions){let h=this._getOriginPoint(e,r,c),g=this._getOverlayPoint(h,t,c),x=this._getOverlayFit(g,t,i,c);if(x.isCompletelyWithinViewport){this._isPushed=!1,this._applyPosition(c,h);return}if(this._canFitWithFlexibleDimensions(x,g,i)){o.push({position:c,origin:h,overlayRect:t,boundingBoxRect:this._calculateBoundingBoxRect(h,c)});continue}(!s||s.overlayFit.visibleAreah&&(h=x,c=g)}this._isPushed=!1,this._applyPosition(c.position,c.origin);return}if(this._canPush){this._isPushed=!0,this._applyPosition(s.position,s.originPoint);return}this._applyPosition(s.position,s.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&oR(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Lje),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;let e=this._lastPosition;if(e){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let t=this._getOriginPoint(this._originRect,this._containerRect,e);this._applyPosition(e,t)}else this.apply()}withScrollableContainers(e){return this._scrollables=e,this}withPositions(e){return this._preferredPositions=e,e.indexOf(this._lastPosition)===-1&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(e){return this._viewportMargin=e,this}withFlexibleDimensions(e=!0){return this._hasFlexibleDimensions=e,this}withGrowAfterOpen(e=!0){return this._growAfterOpen=e,this}withPush(e=!0){return this._canPush=e,this}withLockedPosition(e=!0){return this._positionLocked=e,this}setOrigin(e){return this._origin=e,this}withDefaultOffsetX(e){return this._offsetX=e,this}withDefaultOffsetY(e){return this._offsetY=e,this}withTransformOriginOn(e){return this._transformOriginSelector=e,this}_getOriginPoint(e,t,i){let r;if(i.originX=="center")r=e.left+e.width/2;else{let s=this._isRtl()?e.right:e.left,c=this._isRtl()?e.left:e.right;r=i.originX=="start"?s:c}t.left<0&&(r-=t.left);let o;return i.originY=="center"?o=e.top+e.height/2:o=i.originY=="top"?e.top:e.bottom,t.top<0&&(o-=t.top),{x:r,y:o}}_getOverlayPoint(e,t,i){let r;i.overlayX=="center"?r=-t.width/2:i.overlayX==="start"?r=this._isRtl()?-t.width:0:r=this._isRtl()?0:-t.width;let o;return i.overlayY=="center"?o=-t.height/2:o=i.overlayY=="top"?0:-t.height,{x:e.x+r,y:e.y+o}}_getOverlayFit(e,t,i,r){let o=zje(t),{x:s,y:c}=e,h=this._getOffset(r,"x"),g=this._getOffset(r,"y");h&&(s+=h),g&&(c+=g);let x=0-s,C=s+o.width-i.width,A=0-c,k=c+o.height-i.height,O=this._subtractOverflows(o.width,x,C),F=this._subtractOverflows(o.height,A,k),L=O*F;return{visibleArea:L,isCompletelyWithinViewport:o.width*o.height===L,fitsInViewportVertically:F===o.height,fitsInViewportHorizontally:O==o.width}}_canFitWithFlexibleDimensions(e,t,i){if(this._hasFlexibleDimensions){let r=i.bottom-t.y,o=i.right-t.x,s=Bje(this._overlayRef.getConfig().minHeight),c=Bje(this._overlayRef.getConfig().minWidth),h=e.fitsInViewportVertically||s!=null&&s<=r,g=e.fitsInViewportHorizontally||c!=null&&c<=o;return h&&g}return!1}_pushOverlayOnScreen(e,t,i){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};let r=zje(t),o=this._viewportRect,s=Math.max(e.x+r.width-o.width,0),c=Math.max(e.y+r.height-o.height,0),h=Math.max(o.top-i.top-e.y,0),g=Math.max(o.left-i.left-e.x,0),x=0,C=0;return r.width<=o.width?x=g||-s:x=e.xO&&!this._isInitialRender&&!this._growAfterOpen&&(s=e.y-O/2)}let h=t.overlayX==="start"&&!r||t.overlayX==="end"&&r,g=t.overlayX==="end"&&!r||t.overlayX==="start"&&r,x,C,A;if(g)A=i.width-e.x+this._viewportMargin*2,x=e.x-this._viewportMargin;else if(h)C=e.x,x=i.right-e.x;else{let k=Math.min(i.right-e.x+i.left,e.x),O=this._lastBoundingBoxSize.width;x=k*2,C=e.x-k,x>O&&!this._isInitialRender&&!this._growAfterOpen&&(C=e.x-O/2)}return{top:s,left:C,bottom:c,right:A,width:x,height:o}}_setBoundingBoxStyles(e,t){let i=this._calculateBoundingBoxRect(e,t);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));let r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{let o=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;r.height=pu(i.height),r.top=pu(i.top),r.bottom=pu(i.bottom),r.width=pu(i.width),r.left=pu(i.left),r.right=pu(i.right),t.overlayX==="center"?r.alignItems="center":r.alignItems=t.overlayX==="end"?"flex-end":"flex-start",t.overlayY==="center"?r.justifyContent="center":r.justifyContent=t.overlayY==="bottom"?"flex-end":"flex-start",o&&(r.maxHeight=pu(o)),s&&(r.maxWidth=pu(s))}this._lastBoundingBoxSize=i,oR(this._boundingBox.style,r)}_resetBoundingBoxStyles(){oR(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){oR(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(e,t){let i={},r=this._hasExactPosition(),o=this._hasFlexibleDimensions,s=this._overlayRef.getConfig();if(r){let x=this._viewportRuler.getViewportScrollPosition();oR(i,this._getExactOverlayY(t,e,x)),oR(i,this._getExactOverlayX(t,e,x))}else i.position="static";let c="",h=this._getOffset(t,"x"),g=this._getOffset(t,"y");h&&(c+=`translateX(${h}px) `),g&&(c+=`translateY(${g}px)`),i.transform=c.trim(),s.maxHeight&&(r?i.maxHeight=pu(s.maxHeight):o&&(i.maxHeight="")),s.maxWidth&&(r?i.maxWidth=pu(s.maxWidth):o&&(i.maxWidth="")),oR(this._pane.style,i)}_getExactOverlayY(e,t,i){let r={top:"",bottom:""},o=this._getOverlayPoint(t,this._overlayRect,e);if(this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),e.overlayY==="bottom"){let s=this._document.documentElement.clientHeight;r.bottom=`${s-(o.y+this._overlayRect.height)}px`}else r.top=pu(o.y);return r}_getExactOverlayX(e,t,i){let r={left:"",right:""},o=this._getOverlayPoint(t,this._overlayRect,e);this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i));let s;if(this._isRtl()?s=e.overlayX==="end"?"left":"right":s=e.overlayX==="end"?"right":"left",s==="right"){let c=this._document.documentElement.clientWidth;r.right=`${c-(o.x+this._overlayRect.width)}px`}else r.left=pu(o.x);return r}_getScrollVisibility(){let e=this._getOriginRect(),t=this._pane.getBoundingClientRect(),i=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Fje(e,i),isOriginOutsideView:ySe(e,i),isOverlayClipped:Fje(t,i),isOverlayOutsideView:ySe(t,i)}}_subtractOverflows(e,...t){return t.reduce((i,r)=>i-Math.max(r,0),e)}_getNarrowedViewportRect(){let e=this._document.documentElement.clientWidth,t=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+e-this._viewportMargin,bottom:i.top+t-this._viewportMargin,width:e-2*this._viewportMargin,height:t-2*this._viewportMargin}}_isRtl(){return this._overlayRef.getDirection()==="rtl"}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(e,t){return t==="x"?e.offsetX==null?this._offsetX:e.offsetX:e.offsetY==null?this._offsetY:e.offsetY}_validatePositions(){}_addPanelClasses(e){this._pane&&YB(e).forEach(t=>{t!==""&&this._appliedPanelClasses.indexOf(t)===-1&&(this._appliedPanelClasses.push(t),this._pane.classList.add(t))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(e=>{this._pane.classList.remove(e)}),this._appliedPanelClasses=[])}_getOriginRect(){let e=this._origin;if(e instanceof Ai)return e.nativeElement.getBoundingClientRect();if(e instanceof Element)return e.getBoundingClientRect();let t=e.width||0,i=e.height||0;return{top:e.y,bottom:e.y+i,left:e.x,right:e.x+t,height:i,width:t}}};function oR(n,e){for(let t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n}function Bje(n){if(typeof n!="number"&&n!=null){let[e,t]=n.split(GCt);return!t||t==="px"?parseFloat(e):null}return n||null}function zje(n){return{top:Math.floor(n.top),right:Math.floor(n.right),bottom:Math.floor(n.bottom),left:Math.floor(n.left),width:Math.floor(n.width),height:Math.floor(n.height)}}function YCt(n,e){return n===e?!0:n.isOriginClipped===e.isOriginClipped&&n.isOriginOutsideView===e.isOriginOutsideView&&n.isOverlayClipped===e.isOverlayClipped&&n.isOverlayOutsideView===e.isOverlayOutsideView}var Vje="cdk-global-overlay-wrapper",CSe=class{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(e){let t=e.getConfig();this._overlayRef=e,this._width&&!t.width&&e.updateSize({width:this._width}),this._height&&!t.height&&e.updateSize({height:this._height}),e.hostElement.classList.add(Vje),this._isDisposed=!1}top(e=""){return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}left(e=""){return this._xOffset=e,this._xPosition="left",this}bottom(e=""){return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}right(e=""){return this._xOffset=e,this._xPosition="right",this}start(e=""){return this._xOffset=e,this._xPosition="start",this}end(e=""){return this._xOffset=e,this._xPosition="end",this}width(e=""){return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}height(e=""){return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}centerHorizontally(e=""){return this.left(e),this._xPosition="center",this}centerVertically(e=""){return this.top(e),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;let e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:r,height:o,maxWidth:s,maxHeight:c}=i,h=(r==="100%"||r==="100vw")&&(!s||s==="100%"||s==="100vw"),g=(o==="100%"||o==="100vh")&&(!c||c==="100%"||c==="100vh"),x=this._xPosition,C=this._xOffset,A=this._overlayRef.getConfig().direction==="rtl",k="",O="",F="";h?F="flex-start":x==="center"?(F="center",A?O=C:k=C):A?x==="left"||x==="end"?(F="flex-end",k=C):(x==="right"||x==="start")&&(F="flex-start",O=C):x==="left"||x==="start"?(F="flex-start",k=C):(x==="right"||x==="end")&&(F="flex-end",O=C),e.position=this._cssPosition,e.marginLeft=h?"0":k,e.marginTop=g?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=h?"0":O,t.justifyContent=F,t.alignItems=g?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;let e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement,i=t.style;t.classList.remove(Vje),i.justifyContent=i.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}},qCt=(()=>{let e=class e{constructor(i,r,o,s){this._viewportRuler=i,this._document=r,this._platform=o,this._overlayContainer=s}global(){return new CSe}flexibleConnectedTo(i){return new wSe(i,this._viewportRuler,this._document,this._platform,this._overlayContainer)}};e.\u0275fac=function(r){return new(r||e)(Ke(qb),Ke(Ln),Ke(zo),Ke(r3))},e.\u0275prov=It({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),$Ct=0,ba=(()=>{let e=class e{constructor(i,r,o,s,c,h,g,x,C,A,k,O){this.scrollStrategies=i,this._overlayContainer=r,this._componentFactoryResolver=o,this._positionBuilder=s,this._keyboardDispatcher=c,this._injector=h,this._ngZone=g,this._document=x,this._directionality=C,this._location=A,this._outsideClickDispatcher=k,this._animationsModuleType=O}create(i){let r=this._createHostElement(),o=this._createPaneElement(r),s=this._createPortalOutlet(o),c=new M_(i);return c.direction=c.direction||this._directionality.value,new b0(s,r,o,c,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,this._animationsModuleType==="NoopAnimations",this._injector.get(zd))}position(){return this._positionBuilder}_createPaneElement(i){let r=this._document.createElement("div");return r.id=`cdk-overlay-${$Ct++}`,r.classList.add("cdk-overlay-pane"),i.appendChild(r),r}_createHostElement(){let i=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(i),i}_createPortalOutlet(i){return this._appRef||(this._appRef=this._injector.get(n0)),new nG(i,this._componentFactoryResolver,this._appRef,this._injector,this._document)}};e.\u0275fac=function(r){return new(r||e)(Ke(UCt),Ke(r3),Ke(e0),Ke(qCt),Ke(jCt),Ke(yo),Ke(Zi),Ke(Ln),Ke(pl),Ke(jf),Ke(HCt),Ke(da,8))},e.\u0275prov=It({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),KCt=[{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"}],jje=new fi("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{let n=ai(ba);return()=>n.scrollStrategies.reposition()}}),sG=(()=>{let e=class e{constructor(i){this.elementRef=i}};e.\u0275fac=function(r){return new(r||e)(oe(Ai))},e.\u0275dir=Ki({type:e,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"],standalone:!0});let n=e;return n})(),SSe=(()=>{let e=class e{get offsetX(){return this._offsetX}set offsetX(i){this._offsetX=i,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(i){this._offsetY=i,this._position&&this._updatePositionStrategy(this._position)}get disposeOnNavigation(){return this._disposeOnNavigation}set disposeOnNavigation(i){this._disposeOnNavigation=i}constructor(i,r,o,s,c){this._overlay=i,this._dir=c,this._backdropSubscription=Qo.EMPTY,this._attachSubscription=Qo.EMPTY,this._detachSubscription=Qo.EMPTY,this._positionSubscription=Qo.EMPTY,this._disposeOnNavigation=!1,this._ngZone=ai(Zi),this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.hasBackdrop=!1,this.lockPosition=!1,this.flexibleDimensions=!1,this.growAfterOpen=!1,this.push=!1,this.backdropClick=new Kt,this.positionChange=new Kt,this.attach=new Kt,this.detach=new Kt,this.overlayKeydown=new Kt,this.overlayOutsideClick=new Kt,this._templatePortal=new qp(r,o),this._scrollStrategyFactory=s,this.scrollStrategy=this._scrollStrategyFactory()}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(i){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),i.origin&&this.open&&this._position.apply()),i.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=KCt);let i=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=i.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=i.detachments().subscribe(()=>this.detach.emit()),i.keydownEvents().subscribe(r=>{this.overlayKeydown.next(r),r.keyCode===27&&!this.disableClose&&!il(r)&&(r.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(r=>{let o=this._getOriginElement(),s=Gp(r);(!o||o!==s&&!o.contains(s))&&this.overlayOutsideClick.next(r)})}_buildConfig(){let i=this._position=this.positionStrategy||this._createPositionStrategy(),r=new M_({direction:this._dir,positionStrategy:i,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation});return(this.width||this.width===0)&&(r.width=this.width),(this.height||this.height===0)&&(r.height=this.height),(this.minWidth||this.minWidth===0)&&(r.minWidth=this.minWidth),(this.minHeight||this.minHeight===0)&&(r.minHeight=this.minHeight),this.backdropClass&&(r.backdropClass=this.backdropClass),this.panelClass&&(r.panelClass=this.panelClass),r}_updatePositionStrategy(i){let r=this.positions.map(o=>({originX:o.originX,originY:o.originY,overlayX:o.overlayX,overlayY:o.overlayY,offsetX:o.offsetX||this.offsetX,offsetY:o.offsetY||this.offsetY,panelClass:o.panelClass||void 0}));return i.setOrigin(this._getOrigin()).withPositions(r).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){let i=this._overlay.position().flexibleConnectedTo(this._getOrigin());return this._updatePositionStrategy(i),i}_getOrigin(){return this.origin instanceof sG?this.origin.elementRef:this.origin}_getOriginElement(){return this.origin instanceof sG?this.origin.elementRef.nativeElement:this.origin instanceof Ai?this.origin.nativeElement:typeof Element<"u"&&this.origin instanceof Element?this.origin:null}_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(i=>{this.backdropClick.emit(i)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(Nj(()=>this.positionChange.observers.length>0)).subscribe(i=>{this._ngZone.run(()=>this.positionChange.emit(i)),this.positionChange.observers.length===0&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}};e.\u0275fac=function(r){return new(r||e)(oe(ba),oe(qa),oe(Sc),oe(jje),oe(pl,8))},e.\u0275dir=Ki({type:e,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:[0,"cdkConnectedOverlayOrigin","origin"],positions:[0,"cdkConnectedOverlayPositions","positions"],positionStrategy:[0,"cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:[0,"cdkConnectedOverlayOffsetX","offsetX"],offsetY:[0,"cdkConnectedOverlayOffsetY","offsetY"],width:[0,"cdkConnectedOverlayWidth","width"],height:[0,"cdkConnectedOverlayHeight","height"],minWidth:[0,"cdkConnectedOverlayMinWidth","minWidth"],minHeight:[0,"cdkConnectedOverlayMinHeight","minHeight"],backdropClass:[0,"cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:[0,"cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:[0,"cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:[0,"cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:[0,"cdkConnectedOverlayOpen","open"],disableClose:[0,"cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:[0,"cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:[2,"cdkConnectedOverlayHasBackdrop","hasBackdrop",Ht],lockPosition:[2,"cdkConnectedOverlayLockPosition","lockPosition",Ht],flexibleDimensions:[2,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",Ht],growAfterOpen:[2,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",Ht],push:[2,"cdkConnectedOverlayPush","push",Ht],disposeOnNavigation:[2,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",Ht]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],standalone:!0,features:[Ir,eo]});let n=e;return n})();function WCt(n){return()=>n.scrollStrategies.reposition()}var ZCt={provide:jje,deps:[ba],useFactory:WCt},ng=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=Oi({type:e}),e.\u0275inj=Mi({providers:[ba,ZCt],imports:[Hb,v0,gSe,gSe]});let n=e;return n})();var QCt=["mat-menu-item",""],XCt=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],JCt=["mat-icon, [matMenuItemIcon]","*"];function eSt(n,e){n&1&&(Rr(),se(0,"svg",2),bt(1,"polygon",3),ce())}var tSt=["*"];function iSt(n,e){if(n&1){let t=Fi();se(0,"div",0),At("keydown",function(r){ht(t);let o=le();return pt(o._handleKeydown(r))})("click",function(){ht(t);let r=le();return pt(r.closed.emit("click"))})("@transformMenu.start",function(r){ht(t);let o=le();return pt(o._onAnimationStart(r))})("@transformMenu.done",function(r){ht(t);let o=le();return pt(o._onAnimationDone(r))}),se(1,"div",1),Gn(2),ce()()}if(n&2){let t=le();vn(t._classList),J("id",t.panelId)("@transformMenu",t._panelAnimationState),Et("aria-label",t.ariaLabel||null)("aria-labelledby",t.ariaLabelledby||null)("aria-describedby",t.ariaDescribedby||null)}}var ESe=new fi("MAT_MENU_PANEL"),aR=(()=>{let e=class e{constructor(i,r,o,s,c){this._elementRef=i,this._document=r,this._focusMonitor=o,this._parentMenu=s,this._changeDetectorRef=c,this.role="menuitem",this.disabled=!1,this.disableRipple=!1,this._hovered=new mi,this._focused=new mi,this._highlighted=!1,this._triggersSubmenu=!1,s?.addItem?.(this)}focus(i,r){this._focusMonitor&&i?this._focusMonitor.focusVia(this._getHostElement(),i,r):this._getHostElement().focus(r),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(i){this.disabled&&(i.preventDefault(),i.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){let i=this._elementRef.nativeElement.cloneNode(!0),r=i.querySelectorAll("mat-icon, .material-icons");for(let o=0;o enter",Ps("120ms cubic-bezier(0, 0, 0.2, 1)",qr({opacity:1,transform:"scale(1)"}))),$s("* => void",Ps("100ms 25ms linear",qr({opacity:0})))]),fadeInItems:jl("fadeInItems",[nl("showing",qr({opacity:1})),$s("void => *",[qr({opacity:0}),Ps("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},qIi=jie.fadeInItems,$Ii=jie.transformMenu,rSt=0,oSt=new fi("mat-menu-default-options",{providedIn:"root",factory:sSt});function sSt(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}var kT=(()=>{let e=class e{get xPosition(){return this._xPosition}set xPosition(i){this._xPosition=i,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(i){this._yPosition=i,this.setPositionClasses()}set panelClass(i){let r=this._previousPanelClass,o=Ce({},this._classList);r&&r.length&&r.split(" ").forEach(s=>{o[s]=!1}),this._previousPanelClass=i,i&&i.length&&(i.split(" ").forEach(s=>{o[s]=!0}),this._elementRef.nativeElement.className=""),this._classList=o}get classList(){return this.panelClass}set classList(i){this.panelClass=i}constructor(i,r,o,s){this._elementRef=i,this._changeDetectorRef=s,this._elevationPrefix="mat-elevation-z",this._baseElevation=8,this._directDescendantItems=new fh,this._classList={},this._panelAnimationState="void",this._animationDone=new mi,this.closed=new Kt,this.close=this.closed,this.panelId=`mat-menu-panel-${rSt++}`,this._injector=ai(yo),this.overlayPanelClass=o.overlayPanelClass||"",this._xPosition=o.xPosition,this._yPosition=o.yPosition,this.backdropClass=o.backdropClass,this.overlapTrigger=o.overlapTrigger,this.hasBackdrop=o.hasBackdrop}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new vT(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(aa(this._directDescendantItems),lr(i=>Da(...i.map(r=>r._focused)))).subscribe(i=>this._keyManager.updateActiveItem(i)),this._directDescendantItems.changes.subscribe(i=>{let r=this._keyManager;if(this._panelAnimationState==="enter"&&r.activeItem?._hasFocus()){let o=i.toArray(),s=Math.max(0,Math.min(o.length-1,r.activeItemIndex||0));o[s]&&!o[s].disabled?r.setActiveItem(s):r.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusRef?.destroy()}_hovered(){return this._directDescendantItems.changes.pipe(aa(this._directDescendantItems),lr(r=>Da(...r.map(o=>o._hovered))))}addItem(i){}removeItem(i){}_handleKeydown(i){let r=i.keyCode,o=this._keyManager;switch(r){case 27:il(i)||(i.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&this.direction==="ltr"&&this.closed.emit("keydown");break;case 39:this.parentMenu&&this.direction==="rtl"&&this.closed.emit("keydown");break;default:(r===38||r===40)&&o.setFocusOrigin("keyboard"),o.onKeydown(i);return}i.stopPropagation()}focusFirstItem(i="program"){this._firstItemFocusRef?.destroy(),this._firstItemFocusRef=ad(()=>{let r=null;if(this._directDescendantItems.length&&(r=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!r||!r.contains(document.activeElement)){let o=this._keyManager;o.setFocusOrigin(i).setFirstItemActive(),!o.activeItem&&r&&r.focus()}},{injector:this._injector})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(i){let r=Math.min(this._baseElevation+i,24),o=`${this._elevationPrefix}${r}`,s=Object.keys(this._classList).find(c=>c.startsWith(this._elevationPrefix));if(!s||s===this._previousElevation){let c=Ce({},this._classList);this._previousElevation&&(c[this._previousElevation]=!1),c[o]=!0,this._previousElevation=o,this._classList=c}}setPositionClasses(i=this.xPosition,r=this.yPosition){this._classList=wt(Ce({},this._classList),{"mat-menu-before":i==="before","mat-menu-after":i==="after","mat-menu-above":r==="above","mat-menu-below":r==="below"}),this._changeDetectorRef?.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(i){this._animationDone.next(i),this._isAnimating=!1}_onAnimationStart(i){this._isAnimating=!0,i.toState==="enter"&&this._keyManager.activeItemIndex===0&&(i.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(aa(this._allItems)).subscribe(i=>{this._directDescendantItems.reset(i.filter(r=>r._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}};e.\u0275fac=function(r){return new(r||e)(oe(Ai),oe(Zi),oe(oSt),oe(ur))},e.\u0275cmp=Ct({type:e,selectors:[["mat-menu"]],contentQueries:function(r,o,s){if(r&1&&(gr(s,nSt,5),gr(s,aR,5),gr(s,aR,4)),r&2){let c;Di(c=ki())&&(o.lazyContent=c.first),Di(c=ki())&&(o._allItems=c),Di(c=ki())&&(o.items=c)}},viewQuery:function(r,o){if(r&1&&Xn(qa,5),r&2){let s;Di(s=ki())&&(o.templateRef=s.first)}},hostVars:3,hostBindings:function(r,o){r&2&&Et("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},inputs:{backdropClass:"backdropClass",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:[2,"overlapTrigger","overlapTrigger",Ht],hasBackdrop:[2,"hasBackdrop","hasBackdrop",i=>i==null?null:Ht(i)],panelClass:[0,"class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"},exportAs:["matMenu"],standalone:!0,features:[Co([{provide:ESe,useExisting:e}]),Ir,Ot],ngContentSelectors:tSt,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-mdc-menu-panel","mat-mdc-elevation-specific",3,"keydown","click","id"],[1,"mat-mdc-menu-content"]],template:function(r,o){r&1&&(Yr(),Ne(0,iSt,3,7,"ng-template"))},styles:['mat-menu{display:none}.mat-mdc-menu-content{margin:0;padding:8px 0;list-style-type:none}.mat-mdc-menu-content:focus{outline:none}.mat-mdc-menu-content,.mat-mdc-menu-content .mat-mdc-menu-item .mat-mdc-menu-item-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;flex:1;white-space:normal;font-family:var(--mat-menu-item-label-text-font);line-height:var(--mat-menu-item-label-text-line-height);font-size:var(--mat-menu-item-label-text-size);letter-spacing:var(--mat-menu-item-label-text-tracking);font-weight:var(--mat-menu-item-label-text-weight)}.mat-mdc-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;box-sizing:border-box;outline:0;border-radius:var(--mat-menu-container-shape);background-color:var(--mat-menu-container-color);will-change:transform,opacity}.mat-mdc-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-mdc-menu-panel{outline:solid 1px}.mat-mdc-menu-panel .mat-divider{color:var(--mat-menu-divider-color);margin-bottom:var(--mat-menu-divider-bottom-spacing);margin-top:var(--mat-menu-divider-top-spacing)}.mat-mdc-menu-item{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:var(--mat-menu-item-leading-spacing);padding-right:var(--mat-menu-item-trailing-spacing);-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);cursor:pointer;width:100%;text-align:left;box-sizing:border-box;color:inherit;font-size:inherit;background:none;text-decoration:none;margin:0;align-items:center;min-height:48px}.mat-mdc-menu-item:focus{outline:none}[dir=rtl] .mat-mdc-menu-item,.mat-mdc-menu-item[dir=rtl]{padding-left:var(--mat-menu-item-trailing-spacing);padding-right:var(--mat-menu-item-leading-spacing)}.mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-left:var(--mat-menu-item-with-icon-leading-spacing);padding-right:var(--mat-menu-item-with-icon-trailing-spacing)}[dir=rtl] .mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]),.mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon])[dir=rtl]{padding-left:var(--mat-menu-item-with-icon-trailing-spacing);padding-right:var(--mat-menu-item-with-icon-leading-spacing)}.mat-mdc-menu-item::-moz-focus-inner{border:0}.mat-mdc-menu-item,.mat-mdc-menu-item:visited,.mat-mdc-menu-item:link{color:var(--mat-menu-item-label-text-color)}.mat-mdc-menu-item .mat-icon-no-color,.mat-mdc-menu-item .mat-mdc-menu-submenu-icon{color:var(--mat-menu-item-icon-color)}.mat-mdc-menu-item[disabled]{cursor:default;opacity:.38}.mat-mdc-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.mat-mdc-menu-item .mat-icon{flex-shrink:0;margin-right:var(--mat-menu-item-spacing);height:var(--mat-menu-item-icon-size);width:var(--mat-menu-item-icon-size)}[dir=rtl] .mat-mdc-menu-item{text-align:right}[dir=rtl] .mat-mdc-menu-item .mat-icon{margin-right:0;margin-left:var(--mat-menu-item-spacing)}.mat-mdc-menu-item:not([disabled]):hover{background-color:var(--mat-menu-item-hover-state-layer-color)}.mat-mdc-menu-item:not([disabled]).cdk-program-focused,.mat-mdc-menu-item:not([disabled]).cdk-keyboard-focused,.mat-mdc-menu-item:not([disabled]).mat-mdc-menu-item-highlighted{background-color:var(--mat-menu-item-focus-state-layer-color)}.cdk-high-contrast-active .mat-mdc-menu-item{margin-top:1px}.mat-mdc-menu-submenu-icon{width:var(--mat-menu-item-icon-size);height:10px;fill:currentColor;padding-left:var(--mat-menu-item-spacing)}[dir=rtl] .mat-mdc-menu-submenu-icon{padding-right:var(--mat-menu-item-spacing);padding-left:0}[dir=rtl] .mat-mdc-menu-submenu-icon polygon{transform:scaleX(-1)}.cdk-high-contrast-active .mat-mdc-menu-submenu-icon{fill:CanvasText}.mat-mdc-menu-item .mat-mdc-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[jie.transformMenu,jie.fadeInItems]},changeDetection:0});let n=e;return n})(),Gje=new fi("mat-menu-scroll-strategy",{providedIn:"root",factory:()=>{let n=ai(ba);return()=>n.scrollStrategies.reposition()}});function aSt(n){return()=>n.scrollStrategies.reposition()}var lSt={provide:Gje,deps:[ba],useFactory:aSt},Hje=T_({passive:!0});var Hie=(()=>{let e=class e{get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(i){this.menu=i}get menu(){return this._menu}set menu(i){i!==this._menu&&(this._menu=i,this._menuCloseSubscription.unsubscribe(),i&&(this._parentMaterialMenu,this._menuCloseSubscription=i.close.subscribe(r=>{this._destroyMenu(r),(r==="click"||r==="tab")&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(r)})),this._menuItemInstance?._setTriggersSubmenu(this.triggersSubmenu()))}constructor(i,r,o,s,c,h,g,x,C){this._overlay=i,this._element=r,this._viewContainerRef=o,this._menuItemInstance=h,this._dir=g,this._focusMonitor=x,this._ngZone=C,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=Qo.EMPTY,this._hoverSubscription=Qo.EMPTY,this._menuCloseSubscription=Qo.EMPTY,this._changeDetectorRef=ai(ur),this._handleTouchStart=A=>{K8(A)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new Kt,this.onMenuOpen=this.menuOpened,this.menuClosed=new Kt,this.onMenuClose=this.menuClosed,this._scrollStrategy=s,this._parentMaterialMenu=c instanceof kT?c:void 0,r.nativeElement.addEventListener("touchstart",this._handleTouchStart,Hje)}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,Hje),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}triggersSubmenu(){return!!(this._menuItemInstance&&this._parentMaterialMenu&&this.menu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){let i=this.menu;if(this._menuOpen||!i)return;let r=this._createOverlay(i),o=r.getConfig(),s=o.positionStrategy;this._setPosition(i,s),o.hasBackdrop=i.hasBackdrop==null?!this.triggersSubmenu():i.hasBackdrop,r.attach(this._getPortal(i)),i.lazyContent&&i.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(i),i instanceof kT&&(i._startAnimation(),i._directDescendantItems.changes.pipe(hr(i.close)).subscribe(()=>{s.withLockedPosition(!1).reapplyLastPosition(),s.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(i,r){this._focusMonitor&&i?this._focusMonitor.focusVia(this._element,i,r):this._element.nativeElement.focus(r)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(i){if(!this._overlayRef||!this.menuOpen)return;let r=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&(i==="keydown"||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,r instanceof kT?(r._resetAnimation(),r.lazyContent?r._animationDone.pipe(Wn(o=>o.toState==="void"),kr(1),hr(r.lazyContent._attached)).subscribe({next:()=>r.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),r?.lazyContent?.detach())}_initMenu(i){i.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,i.direction=this.dir,this._setMenuElevation(i),i.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(i){if(i.setElevation){let r=0,o=i.parentMenu;for(;o;)r++,o=o.parentMenu;i.setElevation(r)}}_setIsMenuOpen(i){i!==this._menuOpen&&(this._menuOpen=i,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(i),this._changeDetectorRef.markForCheck())}_createOverlay(i){if(!this._overlayRef){let r=this._getOverlayConfig(i);this._subscribeToPositions(i,r.positionStrategy),this._overlayRef=this._overlay.create(r),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(i){return new M_({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:i.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:i.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(i,r){i.setPositionClasses&&r.positionChanges.subscribe(o=>{let s=o.connectionPair.overlayX==="start"?"after":"before",c=o.connectionPair.overlayY==="top"?"below":"above";this._ngZone?this._ngZone.run(()=>i.setPositionClasses(s,c)):i.setPositionClasses(s,c)})}_setPosition(i,r){let[o,s]=i.xPosition==="before"?["end","start"]:["start","end"],[c,h]=i.yPosition==="above"?["bottom","top"]:["top","bottom"],[g,x]=[c,h],[C,A]=[o,s],k=0;if(this.triggersSubmenu()){if(A=o=i.xPosition==="before"?"start":"end",s=C=o==="end"?"start":"end",this._parentMaterialMenu){if(this._parentInnerPadding==null){let O=this._parentMaterialMenu.items.first;this._parentInnerPadding=O?O._getHostElement().offsetTop:0}k=c==="bottom"?this._parentInnerPadding:-this._parentInnerPadding}}else i.overlapTrigger||(g=c==="top"?"bottom":"top",x=h==="top"?"bottom":"top");r.withPositions([{originX:o,originY:g,overlayX:C,overlayY:c,offsetY:k},{originX:s,originY:g,overlayX:A,overlayY:c,offsetY:k},{originX:o,originY:x,overlayX:C,overlayY:h,offsetY:-k},{originX:s,originY:x,overlayX:A,overlayY:h,offsetY:-k}])}_menuClosingActions(){let i=this._overlayRef.backdropClick(),r=this._overlayRef.detachments(),o=this._parentMaterialMenu?this._parentMaterialMenu.closed:kn(),s=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(Wn(c=>c!==this._menuItemInstance),Wn(()=>this._menuOpen)):kn();return Da(i,o,s,r)}_handleMousedown(i){$8(i)||(this._openedBy=i.button===0?"mouse":void 0,this.triggersSubmenu()&&i.preventDefault())}_handleKeydown(i){let r=i.keyCode;(r===13||r===32)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(r===39&&this.dir==="ltr"||r===37&&this.dir==="rtl")&&(this._openedBy="keyboard",this.openMenu())}_handleClick(i){this.triggersSubmenu()?(i.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(Wn(i=>i===this._menuItemInstance&&!i.disabled),rL(0,GM)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof kT&&this.menu._isAnimating?this.menu._animationDone.pipe(kr(1),rL(0,GM),hr(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(i){return(!this._portal||this._portal.templateRef!==i.templateRef)&&(this._portal=new qp(i.templateRef,this._viewContainerRef)),this._portal}};e.\u0275fac=function(r){return new(r||e)(oe(ba),oe(Ai),oe(Sc),oe(Gje),oe(ESe,8),oe(aR,10),oe(pl,8),oe(Lu),oe(Zi))},e.\u0275dir=Ki({type:e,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],hostVars:3,hostBindings:function(r,o){r&1&&At("click",function(c){return o._handleClick(c)})("mousedown",function(c){return o._handleMousedown(c)})("keydown",function(c){return o._handleKeydown(c)}),r&2&&Et("aria-haspopup",o.menu?"menu":null)("aria-expanded",o.menuOpen)("aria-controls",o.menuOpen?o.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:[0,"mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:[0,"matMenuTriggerFor","menu"],menuData:[0,"matMenuTriggerData","menuData"],restoreFocus:[0,"matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"],standalone:!0});let n=e;return n})(),Yje=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=Oi({type:e}),e.\u0275inj=Mi({providers:[lSt],imports:[os,Gb,ro,ng,ig,ro]});let n=e;return n})();var qje=["mat-button",""],$je=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],Kje=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],uSt='.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;user-select:none;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0)}.mdc-button .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top}[dir=rtl] .mdc-button .mdc-button__icon,.mdc-button .mdc-button__icon[dir=rtl]{margin-left:8px;margin-right:0}.mdc-button .mdc-button__progress-indicator{font-size:0;position:absolute;transform:translate(-50%, -50%);top:50%;left:50%;line-height:initial}.mdc-button .mdc-button__label{position:relative}.mdc-button .mdc-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px);display:none}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring{border-color:CanvasText}}.mdc-button .mdc-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring::after{border-color:CanvasText}}@media screen and (forced-colors: active){.mdc-button.mdc-ripple-upgraded--background-focused .mdc-button__focus-ring,.mdc-button:not(.mdc-ripple-upgraded):focus .mdc-button__focus-ring{display:block}}.mdc-button .mdc-button__touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-button__label+.mdc-button__icon{margin-left:8px;margin-right:0}[dir=rtl] .mdc-button__label+.mdc-button__icon,.mdc-button__label+.mdc-button__icon[dir=rtl]{margin-left:0;margin-right:8px}svg.mdc-button__icon{fill:currentColor}.mdc-button--touch{margin-top:6px;margin-bottom:6px}.mdc-button{padding:0 8px 0 8px}.mdc-button--unelevated{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--unelevated.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--unelevated.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--raised{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--raised.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--raised.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--outlined{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button--outlined .mdc-button__ripple{border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button{font-family:var(--mdc-text-button-label-text-font);font-size:var(--mdc-text-button-label-text-size);letter-spacing:var(--mdc-text-button-label-text-tracking);font-weight:var(--mdc-text-button-label-text-weight);text-transform:var(--mdc-text-button-label-text-transform);height:var(--mdc-text-button-container-height);border-radius:var(--mdc-text-button-container-shape);padding:0 var(--mat-text-button-horizontal-padding, 8px)}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color)}.mat-mdc-button:disabled{color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape)}.mat-mdc-button:has(.material-icons,mat-icon,[matButtonIcon]){padding:0 var(--mat-text-button-with-icon-horizontal-padding, 8px)}.mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}[dir=rtl] .mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}.mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-text-button-ripple-color)}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-state-layer-color)}.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-disabled-state-layer-color)}.mat-mdc-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-hover-state-layer-opacity)}.mat-mdc-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-focus-state-layer-opacity)}.mat-mdc-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-pressed-state-layer-opacity)}.mat-mdc-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-text-button-touch-target-display)}.mat-mdc-button[disabled],.mat-mdc-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-unelevated-button{font-family:var(--mdc-filled-button-label-text-font);font-size:var(--mdc-filled-button-label-text-size);letter-spacing:var(--mdc-filled-button-label-text-tracking);font-weight:var(--mdc-filled-button-label-text-weight);text-transform:var(--mdc-filled-button-label-text-transform);height:var(--mdc-filled-button-container-height);border-radius:var(--mdc-filled-button-container-shape);padding:0 var(--mat-filled-button-horizontal-padding, 16px)}.mat-mdc-unelevated-button:not(:disabled){background-color:var(--mdc-filled-button-container-color)}.mat-mdc-unelevated-button:disabled{background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color)}.mat-mdc-unelevated-button:disabled{color:var(--mdc-filled-button-disabled-label-text-color)}.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape)}.mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-filled-button-ripple-color)}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-state-layer-color)}.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-disabled-state-layer-color)}.mat-mdc-unelevated-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-hover-state-layer-opacity)}.mat-mdc-unelevated-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-focus-state-layer-opacity)}.mat-mdc-unelevated-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-pressed-state-layer-opacity)}.mat-mdc-unelevated-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-filled-button-touch-target-display)}.mat-mdc-unelevated-button[disabled],.mat-mdc-unelevated-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-filled-button-disabled-label-text-color);background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-raised-button{font-family:var(--mdc-protected-button-label-text-font);font-size:var(--mdc-protected-button-label-text-size);letter-spacing:var(--mdc-protected-button-label-text-tracking);font-weight:var(--mdc-protected-button-label-text-weight);text-transform:var(--mdc-protected-button-label-text-transform);height:var(--mdc-protected-button-container-height);border-radius:var(--mdc-protected-button-container-shape);padding:0 var(--mat-protected-button-horizontal-padding, 16px);box-shadow:var(--mdc-protected-button-container-elevation-shadow)}.mat-mdc-raised-button:not(:disabled){background-color:var(--mdc-protected-button-container-color)}.mat-mdc-raised-button:disabled{background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color)}.mat-mdc-raised-button:disabled{color:var(--mdc-protected-button-disabled-label-text-color)}.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape)}.mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}.mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-protected-button-ripple-color)}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-state-layer-color)}.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-disabled-state-layer-color)}.mat-mdc-raised-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-hover-state-layer-opacity)}.mat-mdc-raised-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-focus-state-layer-opacity)}.mat-mdc-raised-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-pressed-state-layer-opacity)}.mat-mdc-raised-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-protected-button-touch-target-display)}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation-shadow)}.mat-mdc-raised-button:focus{box-shadow:var(--mdc-protected-button-focus-container-elevation-shadow)}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mdc-protected-button-pressed-container-elevation-shadow)}.mat-mdc-raised-button[disabled],.mat-mdc-raised-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-protected-button-disabled-label-text-color);background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button[disabled].mat-mdc-button-disabled,.mat-mdc-raised-button.mat-mdc-button-disabled.mat-mdc-button-disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation-shadow)}.mat-mdc-raised-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button{font-family:var(--mdc-outlined-button-label-text-font);font-size:var(--mdc-outlined-button-label-text-size);letter-spacing:var(--mdc-outlined-button-label-text-tracking);font-weight:var(--mdc-outlined-button-label-text-weight);text-transform:var(--mdc-outlined-button-label-text-transform);height:var(--mdc-outlined-button-container-height);border-radius:var(--mdc-outlined-button-container-shape);padding:0 15px 0 15px;border-width:var(--mdc-outlined-button-outline-width);padding:0 var(--mat-outlined-button-horizontal-padding, 15px)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color)}.mat-mdc-outlined-button:disabled{color:var(--mdc-outlined-button-disabled-label-text-color)}.mat-mdc-outlined-button .mdc-button__ripple{border-radius:var(--mdc-outlined-button-container-shape)}.mat-mdc-outlined-button:not(:disabled){border-color:var(--mdc-outlined-button-outline-color)}.mat-mdc-outlined-button:disabled{border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-outlined-button.mdc-button--icon-trailing{padding:0 11px 0 15px}.mat-mdc-outlined-button.mdc-button--icon-leading{padding:0 15px 0 11px}.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:var(--mdc-outlined-button-outline-width)}.mat-mdc-outlined-button .mdc-button__touch{left:calc(-1 * var(--mdc-outlined-button-outline-width));width:calc(100% + 2 * var(--mdc-outlined-button-outline-width))}.mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-outlined-button-ripple-color)}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-state-layer-color)}.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-disabled-state-layer-color)}.mat-mdc-outlined-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-hover-state-layer-opacity)}.mat-mdc-outlined-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-focus-state-layer-opacity)}.mat-mdc-outlined-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-pressed-state-layer-opacity)}.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-outlined-button-touch-target-display)}.mat-mdc-outlined-button[disabled],.mat-mdc-outlined-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-outlined-button-disabled-label-text-color);border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-button-base{text-decoration:none}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-button .mdc-button__label,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-outlined-button .mdc-button__label{z-index:1}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px)*-1)}',ISe=".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}";var Wje=["mat-icon-button",""],Zje=["*"],dSt='.mdc-icon-button{display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;user-select:none;z-index:0;overflow:visible}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}@media screen and (forced-colors: active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{display:block}}.mdc-icon-button:disabled{cursor:default;pointer-events:none}.mdc-icon-button[hidden]{display:none}.mdc-icon-button--display-flex{align-items:center;display:inline-flex;justify-content:center}.mdc-icon-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%;display:none}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring{border-color:CanvasText}}.mdc-icon-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring::after{border-color:CanvasText}}.mdc-icon-button__icon{display:inline-block}.mdc-icon-button__icon.mdc-icon-button__icon--on{display:none}.mdc-icon-button--on .mdc-icon-button__icon{display:none}.mdc-icon-button--on .mdc-icon-button__icon.mdc-icon-button__icon--on{display:inline-block}.mdc-icon-button__link{height:100%;left:0;outline:none;position:absolute;top:0;width:100%}.mat-mdc-icon-button{color:var(--mdc-icon-button-icon-color)}.mat-mdc-icon-button .mdc-button__icon{font-size:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button svg,.mat-mdc-icon-button img{width:var(--mdc-icon-button-icon-size);height:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button:disabled{color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button{border-radius:50%;flex-shrink:0;text-align:center;width:var(--mdc-icon-button-state-layer-size, 48px);height:var(--mdc-icon-button-state-layer-size, 48px);padding:calc(calc(var(--mdc-icon-button-state-layer-size, 48px) - var(--mdc-icon-button-icon-size, 24px)) / 2);font-size:var(--mdc-icon-button-icon-size);-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button svg{vertical-align:baseline}.mat-mdc-icon-button[disabled],.mat-mdc-icon-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-icon-button .mdc-button__label{z-index:1}.mat-mdc-icon-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color)}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color)}.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-disabled-state-layer-color)}.mat-mdc-icon-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity)}.mat-mdc-icon-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity)}.mat-mdc-icon-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity)}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-icon-button-touch-target-display)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}',hSt=new fi("MAT_BUTTON_CONFIG");var pSt=[{attribute:"mat-button",mdcClasses:["mdc-button","mat-mdc-button"]},{attribute:"mat-flat-button",mdcClasses:["mdc-button","mdc-button--unelevated","mat-mdc-unelevated-button"]},{attribute:"mat-raised-button",mdcClasses:["mdc-button","mdc-button--raised","mat-mdc-raised-button"]},{attribute:"mat-stroked-button",mdcClasses:["mdc-button","mdc-button--outlined","mat-mdc-outlined-button"]},{attribute:"mat-fab",mdcClasses:["mdc-fab","mat-mdc-fab"]},{attribute:"mat-mini-fab",mdcClasses:["mdc-fab","mdc-fab--mini","mat-mdc-mini-fab"]},{attribute:"mat-icon-button",mdcClasses:["mdc-icon-button","mat-mdc-icon-button"]}],TSe=(()=>{let e=class e{get ripple(){return this._rippleLoader?.getRipple(this._elementRef.nativeElement)}set ripple(i){this._rippleLoader?.attachRipple(this._elementRef.nativeElement,i)}get disableRipple(){return this._disableRipple}set disableRipple(i){this._disableRipple=i,this._updateRippleDisabled()}get disabled(){return this._disabled}set disabled(i){this._disabled=i,this._updateRippleDisabled()}constructor(i,r,o,s){this._elementRef=i,this._platform=r,this._ngZone=o,this._animationMode=s,this._focusMonitor=ai(Lu),this._rippleLoader=ai(Fie),this._isFab=!1,this._disableRipple=!1,this._disabled=!1;let c=ai(hSt,{optional:!0}),h=i.nativeElement,g=h.classList;this.disabledInteractive=c?.disabledInteractive??!1,this._rippleLoader?.configureRipple(h,{className:"mat-mdc-button-ripple"});for(let{attribute:x,mdcClasses:C}of pSt)h.hasAttribute(x)&&g.add(...C)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement)}focus(i="program",r){i?this._focusMonitor.focusVia(this._elementRef.nativeElement,i,r):this._elementRef.nativeElement.focus(r)}_getAriaDisabled(){return this.ariaDisabled!=null?this.ariaDisabled:this.disabled&&this.disabledInteractive?!0:null}_getDisabledAttribute(){return this.disabledInteractive||!this.disabled?null:!0}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled)}};e.\u0275fac=function(r){Jj()},e.\u0275dir=Ki({type:e,inputs:{color:"color",disableRipple:[2,"disableRipple","disableRipple",Ht],disabled:[2,"disabled","disabled",Ht],ariaDisabled:[2,"aria-disabled","ariaDisabled",Ht],disabledInteractive:[2,"disabledInteractive","disabledInteractive",Ht]},features:[Ir]});let n=e;return n})();var Qje=(()=>{let e=class e extends TSe{constructor(i,r,o,s){super(i,r,o,s),this._haltDisabledEvents=c=>{this.disabled&&(c.preventDefault(),c.stopImmediatePropagation())}}ngOnInit(){this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)})}ngOnDestroy(){super.ngOnDestroy(),this._elementRef.nativeElement.removeEventListener("click",this._haltDisabledEvents)}_getAriaDisabled(){return this.ariaDisabled==null?this.disabled:this.ariaDisabled}};e.\u0275fac=function(r){Jj()},e.\u0275dir=Ki({type:e,inputs:{tabIndex:[2,"tabIndex","tabIndex",i=>i==null?void 0:xr(i)]},features:[Ir,Li]});let n=e;return n})(),Sl=(()=>{let e=class e extends TSe{constructor(i,r,o,s){super(i,r,o,s)}};e.\u0275fac=function(r){return new(r||e)(oe(Ai),oe(zo),oe(Zi),oe(da,8))},e.\u0275cmp=Ct({type:e,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:14,hostBindings:function(r,o){r&2&&(Et("disabled",o._getDisabledAttribute())("aria-disabled",o._getAriaDisabled()),vn(o.color?"mat-"+o.color:""),$n("mat-mdc-button-disabled",o.disabled)("mat-mdc-button-disabled-interactive",o.disabledInteractive)("_mat-animation-noopable",o._animationMode==="NoopAnimations")("mat-unthemed",!o.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],standalone:!0,features:[Li,Ot],attrs:qje,ngContentSelectors:Kje,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(r,o){r&1&&(Yr($je),bt(0,"span",0),Gn(1),se(2,"span",1),Gn(3,1),ce(),Gn(4,2),bt(5,"span",2)(6,"span",3)),r&2&&$n("mdc-button__ripple",!o._isFab)("mdc-fab__ripple",o._isFab)},styles:['.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;user-select:none;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0)}.mdc-button .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top}[dir=rtl] .mdc-button .mdc-button__icon,.mdc-button .mdc-button__icon[dir=rtl]{margin-left:8px;margin-right:0}.mdc-button .mdc-button__progress-indicator{font-size:0;position:absolute;transform:translate(-50%, -50%);top:50%;left:50%;line-height:initial}.mdc-button .mdc-button__label{position:relative}.mdc-button .mdc-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px);display:none}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring{border-color:CanvasText}}.mdc-button .mdc-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring::after{border-color:CanvasText}}@media screen and (forced-colors: active){.mdc-button.mdc-ripple-upgraded--background-focused .mdc-button__focus-ring,.mdc-button:not(.mdc-ripple-upgraded):focus .mdc-button__focus-ring{display:block}}.mdc-button .mdc-button__touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-button__label+.mdc-button__icon{margin-left:8px;margin-right:0}[dir=rtl] .mdc-button__label+.mdc-button__icon,.mdc-button__label+.mdc-button__icon[dir=rtl]{margin-left:0;margin-right:8px}svg.mdc-button__icon{fill:currentColor}.mdc-button--touch{margin-top:6px;margin-bottom:6px}.mdc-button{padding:0 8px 0 8px}.mdc-button--unelevated{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--unelevated.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--unelevated.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--raised{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--raised.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--raised.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--outlined{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button--outlined .mdc-button__ripple{border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button{font-family:var(--mdc-text-button-label-text-font);font-size:var(--mdc-text-button-label-text-size);letter-spacing:var(--mdc-text-button-label-text-tracking);font-weight:var(--mdc-text-button-label-text-weight);text-transform:var(--mdc-text-button-label-text-transform);height:var(--mdc-text-button-container-height);border-radius:var(--mdc-text-button-container-shape);padding:0 var(--mat-text-button-horizontal-padding, 8px)}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color)}.mat-mdc-button:disabled{color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape)}.mat-mdc-button:has(.material-icons,mat-icon,[matButtonIcon]){padding:0 var(--mat-text-button-with-icon-horizontal-padding, 8px)}.mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}[dir=rtl] .mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}.mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-text-button-ripple-color)}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-state-layer-color)}.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-disabled-state-layer-color)}.mat-mdc-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-hover-state-layer-opacity)}.mat-mdc-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-focus-state-layer-opacity)}.mat-mdc-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-pressed-state-layer-opacity)}.mat-mdc-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-text-button-touch-target-display)}.mat-mdc-button[disabled],.mat-mdc-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-unelevated-button{font-family:var(--mdc-filled-button-label-text-font);font-size:var(--mdc-filled-button-label-text-size);letter-spacing:var(--mdc-filled-button-label-text-tracking);font-weight:var(--mdc-filled-button-label-text-weight);text-transform:var(--mdc-filled-button-label-text-transform);height:var(--mdc-filled-button-container-height);border-radius:var(--mdc-filled-button-container-shape);padding:0 var(--mat-filled-button-horizontal-padding, 16px)}.mat-mdc-unelevated-button:not(:disabled){background-color:var(--mdc-filled-button-container-color)}.mat-mdc-unelevated-button:disabled{background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color)}.mat-mdc-unelevated-button:disabled{color:var(--mdc-filled-button-disabled-label-text-color)}.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape)}.mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-filled-button-ripple-color)}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-state-layer-color)}.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-disabled-state-layer-color)}.mat-mdc-unelevated-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-hover-state-layer-opacity)}.mat-mdc-unelevated-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-focus-state-layer-opacity)}.mat-mdc-unelevated-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-pressed-state-layer-opacity)}.mat-mdc-unelevated-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-filled-button-touch-target-display)}.mat-mdc-unelevated-button[disabled],.mat-mdc-unelevated-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-filled-button-disabled-label-text-color);background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-raised-button{font-family:var(--mdc-protected-button-label-text-font);font-size:var(--mdc-protected-button-label-text-size);letter-spacing:var(--mdc-protected-button-label-text-tracking);font-weight:var(--mdc-protected-button-label-text-weight);text-transform:var(--mdc-protected-button-label-text-transform);height:var(--mdc-protected-button-container-height);border-radius:var(--mdc-protected-button-container-shape);padding:0 var(--mat-protected-button-horizontal-padding, 16px);box-shadow:var(--mdc-protected-button-container-elevation-shadow)}.mat-mdc-raised-button:not(:disabled){background-color:var(--mdc-protected-button-container-color)}.mat-mdc-raised-button:disabled{background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color)}.mat-mdc-raised-button:disabled{color:var(--mdc-protected-button-disabled-label-text-color)}.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape)}.mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}.mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-protected-button-ripple-color)}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-state-layer-color)}.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-disabled-state-layer-color)}.mat-mdc-raised-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-hover-state-layer-opacity)}.mat-mdc-raised-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-focus-state-layer-opacity)}.mat-mdc-raised-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-pressed-state-layer-opacity)}.mat-mdc-raised-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-protected-button-touch-target-display)}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation-shadow)}.mat-mdc-raised-button:focus{box-shadow:var(--mdc-protected-button-focus-container-elevation-shadow)}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mdc-protected-button-pressed-container-elevation-shadow)}.mat-mdc-raised-button[disabled],.mat-mdc-raised-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-protected-button-disabled-label-text-color);background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button[disabled].mat-mdc-button-disabled,.mat-mdc-raised-button.mat-mdc-button-disabled.mat-mdc-button-disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation-shadow)}.mat-mdc-raised-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button{font-family:var(--mdc-outlined-button-label-text-font);font-size:var(--mdc-outlined-button-label-text-size);letter-spacing:var(--mdc-outlined-button-label-text-tracking);font-weight:var(--mdc-outlined-button-label-text-weight);text-transform:var(--mdc-outlined-button-label-text-transform);height:var(--mdc-outlined-button-container-height);border-radius:var(--mdc-outlined-button-container-shape);padding:0 15px 0 15px;border-width:var(--mdc-outlined-button-outline-width);padding:0 var(--mat-outlined-button-horizontal-padding, 15px)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color)}.mat-mdc-outlined-button:disabled{color:var(--mdc-outlined-button-disabled-label-text-color)}.mat-mdc-outlined-button .mdc-button__ripple{border-radius:var(--mdc-outlined-button-container-shape)}.mat-mdc-outlined-button:not(:disabled){border-color:var(--mdc-outlined-button-outline-color)}.mat-mdc-outlined-button:disabled{border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-outlined-button.mdc-button--icon-trailing{padding:0 11px 0 15px}.mat-mdc-outlined-button.mdc-button--icon-leading{padding:0 15px 0 11px}.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:var(--mdc-outlined-button-outline-width)}.mat-mdc-outlined-button .mdc-button__touch{left:calc(-1 * var(--mdc-outlined-button-outline-width));width:calc(100% + 2 * var(--mdc-outlined-button-outline-width))}.mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-outlined-button-ripple-color)}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-state-layer-color)}.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-disabled-state-layer-color)}.mat-mdc-outlined-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-hover-state-layer-opacity)}.mat-mdc-outlined-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-focus-state-layer-opacity)}.mat-mdc-outlined-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-pressed-state-layer-opacity)}.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-outlined-button-touch-target-display)}.mat-mdc-outlined-button[disabled],.mat-mdc-outlined-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-outlined-button-disabled-label-text-color);border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-button-base{text-decoration:none}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-button .mdc-button__label,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-outlined-button .mdc-button__label{z-index:1}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px)*-1)}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0});let n=e;return n})(),o3=(()=>{let e=class e extends Qje{constructor(i,r,o,s){super(i,r,o,s)}};e.\u0275fac=function(r){return new(r||e)(oe(Ai),oe(zo),oe(Zi),oe(da,8))},e.\u0275cmp=Ct({type:e,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-flat-button",""],["a","mat-stroked-button",""]],hostVars:15,hostBindings:function(r,o){r&2&&(Et("disabled",o._getDisabledAttribute())("tabindex",o.disabled&&!o.disabledInteractive?-1:o.tabIndex)("aria-disabled",o._getDisabledAttribute()),vn(o.color?"mat-"+o.color:""),$n("mat-mdc-button-disabled",o.disabled)("mat-mdc-button-disabled-interactive",o.disabledInteractive)("_mat-animation-noopable",o._animationMode==="NoopAnimations")("mat-unthemed",!o.color)("mat-mdc-button-base",!0))},exportAs:["matButton","matAnchor"],standalone:!0,features:[Li,Ot],attrs:qje,ngContentSelectors:Kje,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(r,o){r&1&&(Yr($je),bt(0,"span",0),Gn(1),se(2,"span",1),Gn(3,1),ce(),Gn(4,2),bt(5,"span",2)(6,"span",3)),r&2&&$n("mdc-button__ripple",!o._isFab)("mdc-fab__ripple",o._isFab)},styles:[uSt,ISe],encapsulation:2,changeDetection:0});let n=e;return n})();var Jh=(()=>{let e=class e extends TSe{constructor(i,r,o,s){super(i,r,o,s),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}};e.\u0275fac=function(r){return new(r||e)(oe(Ai),oe(zo),oe(Zi),oe(da,8))},e.\u0275cmp=Ct({type:e,selectors:[["button","mat-icon-button",""]],hostVars:14,hostBindings:function(r,o){r&2&&(Et("disabled",o._getDisabledAttribute())("aria-disabled",o._getAriaDisabled()),vn(o.color?"mat-"+o.color:""),$n("mat-mdc-button-disabled",o.disabled)("mat-mdc-button-disabled-interactive",o.disabledInteractive)("_mat-animation-noopable",o._animationMode==="NoopAnimations")("mat-unthemed",!o.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],standalone:!0,features:[Li,Ot],attrs:Wje,ngContentSelectors:Zje,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(r,o){r&1&&(Yr(),bt(0,"span",0),Gn(1),bt(2,"span",1)(3,"span",2))},styles:['.mdc-icon-button{display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;user-select:none;z-index:0;overflow:visible}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}@media screen and (forced-colors: active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{display:block}}.mdc-icon-button:disabled{cursor:default;pointer-events:none}.mdc-icon-button[hidden]{display:none}.mdc-icon-button--display-flex{align-items:center;display:inline-flex;justify-content:center}.mdc-icon-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%;display:none}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring{border-color:CanvasText}}.mdc-icon-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring::after{border-color:CanvasText}}.mdc-icon-button__icon{display:inline-block}.mdc-icon-button__icon.mdc-icon-button__icon--on{display:none}.mdc-icon-button--on .mdc-icon-button__icon{display:none}.mdc-icon-button--on .mdc-icon-button__icon.mdc-icon-button__icon--on{display:inline-block}.mdc-icon-button__link{height:100%;left:0;outline:none;position:absolute;top:0;width:100%}.mat-mdc-icon-button{color:var(--mdc-icon-button-icon-color)}.mat-mdc-icon-button .mdc-button__icon{font-size:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button svg,.mat-mdc-icon-button img{width:var(--mdc-icon-button-icon-size);height:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button:disabled{color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button{border-radius:50%;flex-shrink:0;text-align:center;width:var(--mdc-icon-button-state-layer-size, 48px);height:var(--mdc-icon-button-state-layer-size, 48px);padding:calc(calc(var(--mdc-icon-button-state-layer-size, 48px) - var(--mdc-icon-button-icon-size, 24px)) / 2);font-size:var(--mdc-icon-button-icon-size);-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button svg{vertical-align:baseline}.mat-mdc-icon-button[disabled],.mat-mdc-icon-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-icon-button .mdc-button__label{z-index:1}.mat-mdc-icon-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color)}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color)}.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-disabled-state-layer-color)}.mat-mdc-icon-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity)}.mat-mdc-icon-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity)}.mat-mdc-icon-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity)}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-icon-button-touch-target-display)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}',ISe],encapsulation:2,changeDetection:0});let n=e;return n})(),Xje=(()=>{let e=class e extends Qje{constructor(i,r,o,s){super(i,r,o,s)}};e.\u0275fac=function(r){return new(r||e)(oe(Ai),oe(zo),oe(Zi),oe(da,8))},e.\u0275cmp=Ct({type:e,selectors:[["a","mat-icon-button",""]],hostVars:15,hostBindings:function(r,o){r&2&&(Et("disabled",o._getDisabledAttribute())("tabindex",o.disabled&&!o.disabledInteractive?-1:o.tabIndex)("aria-disabled",o._getDisabledAttribute()),vn(o.color?"mat-"+o.color:""),$n("mat-mdc-button-disabled",o.disabled)("mat-mdc-button-disabled-interactive",o.disabledInteractive)("_mat-animation-noopable",o._animationMode==="NoopAnimations")("mat-unthemed",!o.color)("mat-mdc-button-base",!0))},exportAs:["matButton","matAnchor"],standalone:!0,features:[Li,Ot],attrs:Wje,ngContentSelectors:Zje,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(r,o){r&1&&(Yr(),bt(0,"span",0),Gn(1),bt(2,"span",1)(3,"span",2))},styles:[dSt,ISe],encapsulation:2,changeDetection:0});let n=e;return n})(),gs=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=Oi({type:e}),e.\u0275inj=Mi({imports:[ro,Gb,ro]});let n=e;return n})();var ASe=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Oi({type:n}),n.\u0275inj=Mi({imports:[jB]}),n})();var eHe=(()=>{class n{constructor(t,i){Vb(i)&&!t&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}static withConfig(t,i=[]){return{ngModule:n,providers:t.serverLoaded?[{provide:tg,useValue:Ce(Ce({},bie),t)},{provide:xie,useValue:i,multi:!0},{provide:HB,useValue:!0}]:[{provide:tg,useValue:Ce(Ce({},bie),t)},{provide:xie,useValue:i,multi:!0}]}}}return n.\u0275fac=function(t){return new(t||n)(Ke(HB),Ke(va))},n.\u0275mod=Oi({type:n}),n.\u0275inj=Mi({imports:[Ys,p0,ASe,Ys,p0,ASe]}),n})();var Dc=class{constructor(){this._subs=[]}unsubscribeAll(){this._subs.forEach(e=>e.unsubscribe()),this._subs=[]}};var lR=class{static get(e){let t=i=>i.isInRange(e);return ySt.find(t)}constructor(e,t,i=-1/0,r=1/0){this.key=e,this.mediaQuery=t,this.min=i,this.max=r}isInRange(e){return e<=this.max&&e>=this.min}},fSt=new lR("xs","screen and (max-width: 599px)",void 0,599),mSt=new lR("sm","screen and (min-width: 600px) and (max-width: 959px)",600,959),gSt=new lR("md","screen and (min-width: 960px) and (max-width: 1279px)",960,1279),_St=new lR("lg","screen and (min-width: 1280px) and (max-width: 1919px)",1280,1919),vSt=new lR("xl","screen and (min-width: 1920px)",1920,void 0),ySt=[fSt,mSt,gSt,_St,vSt];function bSt(){return window}var MT=(()=>{let e=class e{constructor(){this.onWindowResize=new mi}get(){return bSt()}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=It({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var Gie=(()=>{let e=class e{constructor(i){this._windowRefService=i,this._windowHeightPixel=this._windowRefService.get().innerHeight}resize$(){if(this._resize$)return this._resize$.pipe();throw new Error("BdWindowResizeListenerService: No resize listener attached. Please use BdWindowResizeListenerDirective on a global element.")}set(i){this._resize$=i}};e.\u0275fac=function(r){return new(r||e)(Ke(MT))},e.\u0275prov=It({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var kSe=(()=>{let e=class e{constructor(){}};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=Oi({type:e}),e.\u0275inj=Mi({providers:[Gie],imports:[os]});let n=e;return n})();var s3=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=Oi({type:e}),e.\u0275inj=Mi({providers:[MT],imports:[kSe,kSe]});let n=e;return n})();var Yie=class n{static loadFrontendConfig(e,t){let i=n.frontendConfigUrl(t.configRequestMethod,t.configRequestUrl);return fetch(i,{method:t.configRequestMethod,mode:"cors",body:t.configRequestMethod==="GET"?null:JSON.stringify(e),headers:new Headers({"content-type":"application/json"})}).then(r=>r.json())}static frontendConfigUrl(e,t){let i=n.extractHostname(window.location.origin,!0);return e==="GET"?t:`${window.location.protocol}//frontend-config-api.${i}${t}`}static extractHostname(e,t=!1){let i;if(e.indexOf("://")>-1?i=e.split("/")[2]:i=e.split("/")[0],i=i.split(":")[0],i=i.split("?")[0],t){let r=i.split(".");i=r[r.length-2]+"."+r[r.length-1]}return i}};function wSt(n,e){}var cC=class{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0,this.closeOnOverlayDetachments=!0}};var lG=(()=>{let e=class e extends IT{constructor(i,r,o,s,c,h,g,x){super(),this._elementRef=i,this._focusTrapFactory=r,this._config=s,this._interactivityChecker=c,this._ngZone=h,this._overlayRef=g,this._focusMonitor=x,this._platform=ai(zo),this._focusTrap=null,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this._ariaLabelledByQueue=[],this._changeDetectorRef=ai(ur),this.attachDomPortal=C=>{this._portalOutlet.hasAttached();let A=this._portalOutlet.attachDomPortal(C);return this._contentAttached(),A},this._document=o,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_addAriaLabelledBy(i){this._ariaLabelledByQueue.push(i),this._changeDetectorRef.markForCheck()}_removeAriaLabelledBy(i){let r=this._ariaLabelledByQueue.indexOf(i);r>-1&&(this._ariaLabelledByQueue.splice(r,1),this._changeDetectorRef.markForCheck())}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(i){this._portalOutlet.hasAttached();let r=this._portalOutlet.attachComponentPortal(i);return this._contentAttached(),r}attachTemplatePortal(i){this._portalOutlet.hasAttached();let r=this._portalOutlet.attachTemplatePortal(i);return this._contentAttached(),r}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(i,r){this._interactivityChecker.isFocusable(i)||(i.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let o=()=>{i.removeEventListener("blur",o),i.removeEventListener("mousedown",o),i.removeAttribute("tabindex")};i.addEventListener("blur",o),i.addEventListener("mousedown",o)})),i.focus(r)}_focusByCssSelector(i,r){let o=this._elementRef.nativeElement.querySelector(i);o&&this._forceFocus(o,r)}_trapFocus(){let i=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||i.focus();break;case!0:case"first-tabbable":this._focusTrap?.focusInitialElementWhenReady().then(r=>{r||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus);break}}_restoreFocus(){let i=this._config.restoreFocus,r=null;if(typeof i=="string"?r=this._document.querySelector(i):typeof i=="boolean"?r=i?this._elementFocusedBeforeDialogWasOpened:null:i&&(r=i),this._config.restoreFocus&&r&&typeof r.focus=="function"){let o=iR(),s=this._elementRef.nativeElement;(!o||o===this._document.body||o===s||s.contains(o))&&(this._focusMonitor?(this._focusMonitor.focusVia(r,this._closeInteractionType),this._closeInteractionType=null):r.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){let i=this._elementRef.nativeElement,r=iR();return i===r||i.contains(r)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=iR()))}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}};e.\u0275fac=function(r){return new(r||e)(oe(Ai),oe(xT),oe(Ln,8),oe(cC),oe(rC),oe(Zi),oe(b0),oe(Lu))},e.\u0275cmp=Ct({type:e,selectors:[["cdk-dialog-container"]],viewQuery:function(r,o){if(r&1&&Xn(k_,7),r&2){let s;Di(s=ki())&&(o._portalOutlet=s.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(r,o){r&2&&Et("id",o._config.id||null)("role",o._config.role)("aria-modal",o._config.ariaModal)("aria-labelledby",o._config.ariaLabel?null:o._ariaLabelledByQueue[0])("aria-label",o._config.ariaLabel)("aria-describedby",o._config.ariaDescribedBy||null)},standalone:!0,features:[Li,Ot],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(r,o){r&1&&Ne(0,wSt,0,0,"ng-template",0)},dependencies:[k_],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2});let n=e;return n})(),aG=class{constructor(e,t){this.overlayRef=e,this.config=t,this.closed=new mi,this.disableClose=t.disableClose,this.backdropClick=e.backdropClick(),this.keydownEvents=e.keydownEvents(),this.outsidePointerEvents=e.outsidePointerEvents(),this.id=t.id,this.keydownEvents.subscribe(i=>{i.keyCode===27&&!this.disableClose&&!il(i)&&(i.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})}),this._detachSubscription=e.detachments().subscribe(()=>{t.closeOnOverlayDetachments!==!1&&this.close()})}close(e,t){if(this.containerInstance){let i=this.closed;this.containerInstance._closeInteractionType=t?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),i.next(e),i.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(e="",t=""){return this.overlayRef.updateSize({width:e,height:t}),this}addPanelClass(e){return this.overlayRef.addPanelClass(e),this}removePanelClass(e){return this.overlayRef.removePanelClass(e),this}},CSt=new fi("DialogScrollStrategy",{providedIn:"root",factory:()=>{let n=ai(ba);return()=>n.scrollStrategies.block()}}),SSt=new fi("DialogData"),ESt=new fi("DefaultDialogConfig");var ISt=0,cG=(()=>{let e=class e{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}constructor(i,r,o,s,c,h){this._overlay=i,this._injector=r,this._defaultOptions=o,this._parentDialog=s,this._overlayContainer=c,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new mi,this._afterOpenedAtThisLevel=new mi,this._ariaHiddenElements=new Map,this.afterAllClosed=d_(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(aa(void 0))),this._scrollStrategy=h}open(i,r){let o=this._defaultOptions||new cC;r=Ce(Ce({},o),r),r.id=r.id||`cdk-dialog-${ISt++}`,r.id&&this.getDialogById(r.id);let s=this._getOverlayConfig(r),c=this._overlay.create(s),h=new aG(c,r),g=this._attachContainer(c,h,r);return h.containerInstance=g,this._attachDialogContent(i,h,g,r),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(h),h.closed.subscribe(()=>this._removeOpenDialog(h,!0)),this.afterOpened.next(h),h}closeAll(){MSe(this.openDialogs,i=>i.close())}getDialogById(i){return this.openDialogs.find(r=>r.id===i)}ngOnDestroy(){MSe(this._openDialogsAtThisLevel,i=>{i.config.closeOnDestroy===!1&&this._removeOpenDialog(i,!1)}),MSe(this._openDialogsAtThisLevel,i=>i.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(i){let r=new M_({positionStrategy:i.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:i.scrollStrategy||this._scrollStrategy(),panelClass:i.panelClass,hasBackdrop:i.hasBackdrop,direction:i.direction,minWidth:i.minWidth,minHeight:i.minHeight,maxWidth:i.maxWidth,maxHeight:i.maxHeight,width:i.width,height:i.height,disposeOnNavigation:i.closeOnNavigation});return i.backdropClass&&(r.backdropClass=i.backdropClass),r}_attachContainer(i,r,o){let s=o.injector||o.viewContainerRef?.injector,c=[{provide:cC,useValue:o},{provide:aG,useValue:r},{provide:b0,useValue:i}],h;o.container?typeof o.container=="function"?h=o.container:(h=o.container.type,c.push(...o.container.providers(o))):h=lG;let g=new _0(h,o.viewContainerRef,yo.create({parent:s||this._injector,providers:c}),o.componentFactoryResolver);return i.attach(g).instance}_attachDialogContent(i,r,o,s){if(i instanceof qa){let c=this._createInjector(s,r,o,void 0),h={$implicit:s.data,dialogRef:r};s.templateContext&&(h=Ce(Ce({},h),typeof s.templateContext=="function"?s.templateContext():s.templateContext)),o.attachTemplatePortal(new qp(i,null,h,c))}else{let c=this._createInjector(s,r,o,this._injector),h=o.attachComponentPortal(new _0(i,s.viewContainerRef,c,s.componentFactoryResolver));r.componentRef=h,r.componentInstance=h.instance}}_createInjector(i,r,o,s){let c=i.injector||i.viewContainerRef?.injector,h=[{provide:SSt,useValue:i.data},{provide:aG,useValue:r}];return i.providers&&(typeof i.providers=="function"?h.push(...i.providers(r,i,o)):h.push(...i.providers)),i.direction&&(!c||!c.get(pl,null,{optional:!0}))&&h.push({provide:pl,useValue:{value:i.direction,change:kn()}}),yo.create({parent:c||s,providers:h})}_removeOpenDialog(i,r){let o=this.openDialogs.indexOf(i);o>-1&&(this.openDialogs.splice(o,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((s,c)=>{s?c.setAttribute("aria-hidden",s):c.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),r&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){let i=this._overlayContainer.getContainerElement();if(i.parentElement){let r=i.parentElement.children;for(let o=r.length-1;o>-1;o--){let s=r[o];s!==i&&s.nodeName!=="SCRIPT"&&s.nodeName!=="STYLE"&&!s.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(s,s.getAttribute("aria-hidden")),s.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){let i=this._parentDialog;return i?i._getAfterAllClosed():this._afterAllClosedAtThisLevel}};e.\u0275fac=function(r){return new(r||e)(Ke(ba),Ke(yo),Ke(ESt,8),Ke(e,12),Ke(r3),Ke(CSt))},e.\u0275prov=It({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function MSe(n,e){let t=n.length;for(;t--;)e(n[t])}var qie=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=Oi({type:e}),e.\u0275inj=Mi({providers:[cG],imports:[ng,v0,Oie,v0]});let n=e;return n})();function ASt(n,e){}var cR=class{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0}},OSe="mdc-dialog--open",iHe="mdc-dialog--opening",nHe="mdc-dialog--closing",DSt=150,kSt=75,MSt=(()=>{let e=class e extends lG{constructor(i,r,o,s,c,h,g,x,C){super(i,r,o,s,c,h,g,C),this._animationMode=x,this._animationStateChanged=new Kt,this._animationsEnabled=this._animationMode!=="NoopAnimations",this._actionSectionCount=0,this._hostElement=this._elementRef.nativeElement,this._enterAnimationDuration=this._animationsEnabled?oHe(this._config.enterAnimationDuration)??DSt:0,this._exitAnimationDuration=this._animationsEnabled?oHe(this._config.exitAnimationDuration)??kSt:0,this._animationTimer=null,this._isDestroyed=!1,this._finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration)},this._finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration})}}_contentAttached(){super._contentAttached(),this._startOpenAnimation()}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(rHe,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(iHe,OSe)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(OSe),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(OSe),this._animationsEnabled?(this._hostElement.style.setProperty(rHe,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(nHe)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_updateActionSectionCount(i){this._actionSectionCount+=i,this._changeDetectorRef.markForCheck()}_clearAnimationClasses(){this._hostElement.classList.remove(iHe,nHe)}_waitForAnimationToComplete(i,r){this._animationTimer!==null&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(r,i)}_requestAnimationFrame(i){this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame=="function"?requestAnimationFrame(i):i()})}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(i){this._isDestroyed||(this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:i}))}ngOnDestroy(){super.ngOnDestroy(),this._animationTimer!==null&&clearTimeout(this._animationTimer),this._isDestroyed=!0}attachComponentPortal(i){let r=super.attachComponentPortal(i);return r.location.nativeElement.classList.add("mat-mdc-dialog-component-host"),r}};e.\u0275fac=function(r){return new(r||e)(oe(Ai),oe(xT),oe(Ln,8),oe(cR),oe(rC),oe(Zi),oe(b0),oe(da,8),oe(Lu))},e.\u0275cmp=Ct({type:e,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(r,o){r&2&&(Pu("id",o._config.id),Et("aria-modal",o._config.ariaModal)("role",o._config.role)("aria-labelledby",o._config.ariaLabel?null:o._ariaLabelledByQueue[0])("aria-label",o._config.ariaLabel)("aria-describedby",o._config.ariaDescribedBy||null),$n("_mat-animation-noopable",!o._animationsEnabled)("mat-mdc-dialog-container-with-actions",o._actionSectionCount>0))},standalone:!0,features:[Li,Ot],decls:3,vars:0,consts:[[1,"mat-mdc-dialog-inner-container","mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(r,o){r&1&&(se(0,"div",0)(1,"div",1),Ne(2,ASt,0,0,"ng-template",2),ce()())},dependencies:[k_],styles:['.mat-mdc-dialog-container{width:100%;height:100%;display:block;box-sizing:border-box;max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;outline:0}.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-max-width, 80vw);min-width:var(--mat-dialog-container-min-width, 0)}@media(max-width: 599px){.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-small-max-width, 80vw)}}.mat-mdc-dialog-inner-container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;opacity:0;transition:opacity linear var(--mat-dialog-transition-duration, 0ms);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mdc-dialog--closing .mat-mdc-dialog-inner-container{transition:opacity 75ms linear;transform:none}.mdc-dialog--open .mat-mdc-dialog-inner-container{opacity:1}._mat-animation-noopable .mat-mdc-dialog-inner-container{transition:none}.mat-mdc-dialog-surface{display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;width:100%;height:100%;position:relative;overflow-y:auto;outline:0;transform:scale(0.8);transition:transform var(--mat-dialog-transition-duration, 0ms) cubic-bezier(0, 0, 0.2, 1);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;box-shadow:var(--mat-dialog-container-elevation-shadow, 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12));border-radius:var(--mdc-dialog-container-shape, 4px);background-color:var(--mdc-dialog-container-color, white)}[dir=rtl] .mat-mdc-dialog-surface{text-align:right}.mdc-dialog--open .mat-mdc-dialog-surface,.mdc-dialog--closing .mat-mdc-dialog-surface{transform:none}._mat-animation-noopable .mat-mdc-dialog-surface{transition:none}.mat-mdc-dialog-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mat-mdc-dialog-title{display:block;margin-top:0;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:var(--mat-dialog-headline-padding, 0 24px 9px)}.mat-mdc-dialog-title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mat-mdc-dialog-title{text-align:right}.mat-mdc-dialog-container .mat-mdc-dialog-title{color:var(--mdc-dialog-subhead-color, rgba(0, 0, 0, 0.87));font-family:var(--mdc-dialog-subhead-font, Roboto, sans-serif);line-height:var(--mdc-dialog-subhead-line-height, 1.5rem);font-size:var(--mdc-dialog-subhead-size, 1rem);font-weight:var(--mdc-dialog-subhead-weight, 400);letter-spacing:var(--mdc-dialog-subhead-tracking, 0.03125em)}.mat-mdc-dialog-content{display:block;flex-grow:1;box-sizing:border-box;margin:0;overflow:auto;max-height:65vh}.mat-mdc-dialog-content>:first-child{margin-top:0}.mat-mdc-dialog-content>:last-child{margin-bottom:0}.mat-mdc-dialog-container .mat-mdc-dialog-content{color:var(--mdc-dialog-supporting-text-color, rgba(0, 0, 0, 0.6));font-family:var(--mdc-dialog-supporting-text-font, Roboto, sans-serif);line-height:var(--mdc-dialog-supporting-text-line-height, 1.5rem);font-size:var(--mdc-dialog-supporting-text-size, 1rem);font-weight:var(--mdc-dialog-supporting-text-weight, 400);letter-spacing:var(--mdc-dialog-supporting-text-tracking, 0.03125em)}.mat-mdc-dialog-container .mat-mdc-dialog-content{padding:var(--mat-dialog-content-padding, 20px 24px)}.mat-mdc-dialog-container-with-actions .mat-mdc-dialog-content{padding:var(--mat-dialog-with-actions-content-padding, 20px 24px)}.mat-mdc-dialog-container .mat-mdc-dialog-title+.mat-mdc-dialog-content{padding-top:0}.mat-mdc-dialog-actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;box-sizing:border-box;min-height:52px;margin:0;padding:8px;border-top:1px solid rgba(0,0,0,0);padding:var(--mat-dialog-actions-padding, 8px);justify-content:var(--mat-dialog-actions-alignment, start)}.cdk-high-contrast-active .mat-mdc-dialog-actions{border-top-color:CanvasText}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-start,.mat-mdc-dialog-actions[align=start]{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}.mat-mdc-dialog-component-host{display:contents}'],encapsulation:2});let n=e;return n})(),rHe="--mat-dialog-transition-duration";function oHe(n){return n==null?null:typeof n=="number"?n:n.endsWith("ms")?Qh(n.substring(0,n.length-2)):n.endsWith("s")?Qh(n.substring(0,n.length-1))*1e3:n==="0"?0:null}var $ie=function(n){return n[n.OPEN=0]="OPEN",n[n.CLOSING=1]="CLOSING",n[n.CLOSED=2]="CLOSED",n}($ie||{}),x0=class{constructor(e,t,i){this._ref=e,this._containerInstance=i,this._afterOpened=new mi,this._beforeClosed=new mi,this._state=$ie.OPEN,this.disableClose=t.disableClose,this.id=e.id,e.addPanelClass("mat-mdc-dialog-panel"),i._animationStateChanged.pipe(Wn(r=>r.state==="opened"),kr(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),i._animationStateChanged.pipe(Wn(r=>r.state==="closed"),kr(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),e.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),Da(this.backdropClick(),this.keydownEvents().pipe(Wn(r=>r.keyCode===27&&!this.disableClose&&!il(r)))).subscribe(r=>{this.disableClose||(r.preventDefault(),sHe(this,r.type==="keydown"?"keyboard":"mouse"))})}close(e){this._result=e,this._containerInstance._animationStateChanged.pipe(Wn(t=>t.state==="closing"),kr(1)).subscribe(t=>{this._beforeClosed.next(e),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),t.totalTime+100)}),this._state=$ie.CLOSING,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(e){let t=this._ref.config.positionStrategy;return e&&(e.left||e.right)?e.left?t.left(e.left):t.right(e.right):t.centerHorizontally(),e&&(e.top||e.bottom)?e.top?t.top(e.top):t.bottom(e.bottom):t.centerVertically(),this._ref.updatePosition(),this}updateSize(e="",t=""){return this._ref.updateSize(e,t),this}addPanelClass(e){return this._ref.addPanelClass(e),this}removePanelClass(e){return this._ref.removePanelClass(e),this}getState(){return this._state}_finishDialogClose(){this._state=$ie.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}};function sHe(n,e,t){return n._closeInteractionType=e,n.close(t)}var uG=new fi("MatMdcDialogData"),OSt=new fi("mat-mdc-dialog-default-options"),RSt=new fi("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{let n=ai(ba);return()=>n.scrollStrategies.block()}});var NSt=0,w0=(()=>{let e=class e{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){let i=this._parentDialog;return i?i._getAfterAllClosed():this._afterAllClosedAtThisLevel}constructor(i,r,o,s,c,h,g,x){this._overlay=i,this._defaultOptions=s,this._scrollStrategy=c,this._parentDialog=h,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new mi,this._afterOpenedAtThisLevel=new mi,this.dialogConfigClass=cR,this.afterAllClosed=d_(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(aa(void 0))),this._dialog=r.get(cG),this._dialogRefConstructor=x0,this._dialogContainerType=MSt,this._dialogDataToken=uG}open(i,r){let o;r=Ce(Ce({},this._defaultOptions||new cR),r),r.id=r.id||`mat-mdc-dialog-${NSt++}`,r.scrollStrategy=r.scrollStrategy||this._scrollStrategy();let s=this._dialog.open(i,wt(Ce({},r),{positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:r},{provide:cC,useValue:r}]},templateContext:()=>({dialogRef:o}),providers:(c,h,g)=>(o=new this._dialogRefConstructor(c,r,g),o.updatePosition(r?.position),[{provide:this._dialogContainerType,useValue:g},{provide:this._dialogDataToken,useValue:h.data},{provide:this._dialogRefConstructor,useValue:o}])}));return o.componentRef=s.componentRef,o.componentInstance=s.componentInstance,this.openDialogs.push(o),this.afterOpened.next(o),o.afterClosed().subscribe(()=>{let c=this.openDialogs.indexOf(o);c>-1&&(this.openDialogs.splice(c,1),this.openDialogs.length||this._getAfterAllClosed().next())}),o}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(i){return this.openDialogs.find(r=>r.id===i)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(i){let r=i.length;for(;r--;)i[r].close()}};e.\u0275fac=function(r){return new(r||e)(Ke(ba),Ke(yo),Ke(jf,8),Ke(OSt,8),Ke(RSt),Ke(e,12),Ke(r3),Ke(da,8))},e.\u0275prov=It({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),PSt=0,Kie=(()=>{let e=class e{constructor(i,r,o){this.dialogRef=i,this._elementRef=r,this._dialog=o,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=lHe(this._elementRef,this._dialog.openDialogs))}ngOnChanges(i){let r=i._matDialogClose||i._matDialogCloseResult;r&&(this.dialogResult=r.currentValue)}_onButtonClick(i){sHe(this.dialogRef,i.screenX===0&&i.screenY===0?"keyboard":"mouse",this.dialogResult)}};e.\u0275fac=function(r){return new(r||e)(oe(x0,8),oe(Ai),oe(w0))},e.\u0275dir=Ki({type:e,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(r,o){r&1&&At("click",function(c){return o._onButtonClick(c)}),r&2&&Et("aria-label",o.ariaLabel||null)("type",o.type)},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],type:"type",dialogResult:[0,"mat-dialog-close","dialogResult"],_matDialogClose:[0,"matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],standalone:!0,features:[eo]});let n=e;return n})(),aHe=(()=>{let e=class e{constructor(i,r,o){this._dialogRef=i,this._elementRef=r,this._dialog=o}ngOnInit(){this._dialogRef||(this._dialogRef=lHe(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{this._onAdd()})}ngOnDestroy(){this._dialogRef?._containerInstance&&Promise.resolve().then(()=>{this._onRemove()})}};e.\u0275fac=function(r){return new(r||e)(oe(x0,8),oe(Ai),oe(w0))},e.\u0275dir=Ki({type:e,standalone:!0});let n=e;return n})(),a3=(()=>{let e=class e extends aHe{constructor(){super(...arguments),this.id=`mat-mdc-dialog-title-${PSt++}`}_onAdd(){this._dialogRef._containerInstance?._addAriaLabelledBy?.(this.id)}_onRemove(){this._dialogRef?._containerInstance?._removeAriaLabelledBy?.(this.id)}};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=Qn(e)))(o||e)}})(),e.\u0275dir=Ki({type:e,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(r,o){r&2&&Pu("id",o.id)},inputs:{id:"id"},exportAs:["matDialogTitle"],standalone:!0,features:[Li]});let n=e;return n})(),OT=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=Ki({type:e,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"],standalone:!0,features:[d4e([lC])]});let n=e;return n})(),RT=(()=>{let e=class e extends aHe{_onAdd(){this._dialogRef._containerInstance?._updateActionSectionCount?.(1)}_onRemove(){this._dialogRef._containerInstance?._updateActionSectionCount?.(-1)}};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=Qn(e)))(o||e)}})(),e.\u0275dir=Ki({type:e,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-mdc-dialog-actions","mdc-dialog__actions"],hostVars:6,hostBindings:function(r,o){r&2&&$n("mat-mdc-dialog-actions-align-start",o.align==="start")("mat-mdc-dialog-actions-align-center",o.align==="center")("mat-mdc-dialog-actions-align-end",o.align==="end")},inputs:{align:"align"},standalone:!0,features:[Li]});let n=e;return n})();function lHe(n,e){let t=n.nativeElement.parentElement;for(;t&&!t.classList.contains("mat-mdc-dialog-container");)t=t.parentElement;return t?e.find(i=>i.id===t.id):null}var cHe=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=Oi({type:e}),e.\u0275inj=Mi({providers:[w0],imports:[qie,ng,v0,ro,ro]});let n=e;return n})();var Wie=class{static getConfig(e){let t=new cR;return t.width=t.maxWidth="80vw",t.maxHeight="80vh",e.find(i=>i.mqAlias==="xs")&&(t.width=t.maxWidth="100%",t.height=t.maxHeight="100%",t.panelClass=["mat-dialog-container-fullscreen"]),t}};var C0=(()=>{let e=class e{constructor(i){this._mediaObserver=i,this._currentMediaChange=[],this._mediaObserver.asObservable().subscribe(r=>this._currentMediaChange=r)}config(){return this._currentMediaChange?Wie.getConfig(this._currentMediaChange):{width:"80vw"}}};e.\u0275fac=function(r){return new(r||e)(Ke(GB))},e.\u0275prov=It({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var Zie=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=Oi({type:e}),e.\u0275inj=Mi({providers:[C0],imports:[s3]});let n=e;return n})();var Qie=class{constructor(e,t,i){this.dialogTitle=e,this.dialogMessage=t,this.dialogSubmitButtonText=i}};var RSe=(()=>{let e=class e{constructor(i){this.data=i}};e.\u0275fac=function(r){return new(r||e)(oe(uG))},e.\u0275cmp=Ct({type:e,selectors:[["ng-component"]],standalone:!0,features:[Ot],decls:9,vars:5,consts:[["mat-dialog-title",""],[3,"align"],["mat-button","",3,"mat-dialog-close"],["mat-raised-button","","color","warn",3,"mat-dialog-close"]],template:function(r,o){r&1&&(se(0,"h1",0),yt(1),ce(),se(2,"mat-dialog-content"),yt(3),ce(),se(4,"mat-dialog-actions",1)(5,"button",2),yt(6,"Abbrechen"),ce(),se(7,"button",3),yt(8),ce()()),r&2&&(Z(),ps(" ",o.data.dialogTitle," "),Z(2),ps(" ",o.data.dialogMessage," "),Z(),J("align","end"),Z(3),J("mat-dialog-close",!0),Z(),ps(" ",o.data.dialogSubmitButtonText," "))},dependencies:[a3,OT,RT,gs,Sl,Kie],styles:["*[_ngcontent-%COMP%]{font-family:Roboto,sans-serif}"]});let n=e;return n})();var NSe=(()=>{let e=class e{constructor(i){this.dialog=i}get(i="Objekt l\xF6schen",r="Best\xE4tigen um das Objekt endg\xFCltig zu l\xF6schen.",o="L\xF6schen"){let s,c={data:new Qie(i,r,o)};return s=this.dialog.open(RSe,c),s.afterClosed().toPromise()}};e.\u0275fac=function(r){return new(r||e)(Ke(w0))},e.\u0275prov=It({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var l3=(()=>{let e=class e{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(i){this._vertical=wl(i)}get inset(){return this._inset}set inset(i){this._inset=wl(i)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=Ct({type:e,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(r,o){r&2&&(Et("aria-orientation",o.vertical?"vertical":"horizontal"),$n("mat-divider-vertical",o.vertical)("mat-divider-horizontal",!o.vertical)("mat-divider-inset",o.inset))},inputs:{vertical:"vertical",inset:"inset"},standalone:!0,features:[Ot],decls:0,vars:0,template:function(r,o){},styles:[".mat-divider{display:block;margin:0;border-top-style:solid;border-top-color:var(--mat-divider-color);border-top-width:var(--mat-divider-width)}.mat-divider.mat-divider-vertical{border-top:0;border-right-style:solid;border-right-color:var(--mat-divider-color);border-right-width:var(--mat-divider-width)}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}"],encapsulation:2,changeDetection:0});let n=e;return n})(),$b=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=Oi({type:e}),e.\u0275inj=Mi({imports:[ro,ro]});let n=e;return n})();var _He=(()=>{let e=class e{constructor(i,r){this._renderer=i,this._elementRef=r,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(i,r){this._renderer.setProperty(this._elementRef.nativeElement,i,r)}registerOnTouched(i){this.onTouched=i}registerOnChange(i){this.onChange=i}setDisabledState(i){this.setProperty("disabled",i)}};e.\u0275fac=function(r){return new(r||e)(oe(Fl),oe(Ai))},e.\u0275dir=Ki({type:e});let n=e;return n})(),LSt=(()=>{let e=class e extends _He{};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=Qn(e)))(o||e)}})(),e.\u0275dir=Ki({type:e,features:[Li]});let n=e;return n})(),Bu=new fi("");var BSt={provide:Bu,useExisting:ka(()=>ane),multi:!0};function zSt(){let n=zb()?zb().getUserAgent():"";return/android (\d+)/.test(n.toLowerCase())}var VSt=new fi(""),ane=(()=>{let e=class e extends _He{constructor(i,r,o){super(i,r),this._compositionMode=o,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!zSt())}writeValue(i){let r=i??"";this.setProperty("value",r)}_handleInput(i){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(i)}_compositionStart(){this._composing=!0}_compositionEnd(i){this._composing=!1,this._compositionMode&&this.onChange(i)}};e.\u0275fac=function(r){return new(r||e)(oe(Fl),oe(Ai),oe(VSt,8))},e.\u0275dir=Ki({type:e,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(r,o){r&1&&At("input",function(c){return o._handleInput(c.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(c){return o._compositionEnd(c.target.value)})},features:[Co([BSt]),Li]});let n=e;return n})();function NT(n){return n==null||(typeof n=="string"||Array.isArray(n))&&n.length===0}function vHe(n){return n!=null&&typeof n.length=="number"}var d3=new fi(""),lne=new fi(""),USt=/^(?=.{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])?)*$/,rg=class{static min(e){return jSt(e)}static max(e){return HSt(e)}static required(e){return GSt(e)}static requiredTrue(e){return YSt(e)}static email(e){return qSt(e)}static minLength(e){return $St(e)}static maxLength(e){return KSt(e)}static pattern(e){return WSt(e)}static nullValidator(e){return yHe(e)}static compose(e){return EHe(e)}static composeAsync(e){return IHe(e)}};function jSt(n){return e=>{if(NT(e.value)||NT(n))return null;let t=parseFloat(e.value);return!isNaN(t)&&t{if(NT(e.value)||NT(n))return null;let t=parseFloat(e.value);return!isNaN(t)&&t>n?{max:{max:n,actual:e.value}}:null}}function GSt(n){return NT(n.value)?{required:!0}:null}function YSt(n){return n.value===!0?null:{required:!0}}function qSt(n){return NT(n.value)||USt.test(n.value)?null:{email:!0}}function $St(n){return e=>NT(e.value)||!vHe(e.value)?null:e.value.lengthvHe(e.value)&&e.value.length>n?{maxlength:{requiredLength:n,actualLength:e.value.length}}:null}function WSt(n){if(!n)return yHe;let e,t;return typeof n=="string"?(t="",n.charAt(0)!=="^"&&(t+="^"),t+=n,n.charAt(n.length-1)!=="$"&&(t+="$"),e=new RegExp(t)):(t=n.toString(),e=n),i=>{if(NT(i.value))return null;let r=i.value;return e.test(r)?null:{pattern:{requiredPattern:t,actualValue:r}}}}function yHe(n){return null}function bHe(n){return n!=null}function xHe(n){return BI(n)?wo(n):n}function wHe(n){let e={};return n.forEach(t=>{e=t!=null?Ce(Ce({},e),t):e}),Object.keys(e).length===0?null:e}function CHe(n,e){return e.map(t=>t(n))}function ZSt(n){return!n.validate}function SHe(n){return n.map(e=>ZSt(e)?e:t=>e.validate(t))}function EHe(n){if(!n)return null;let e=n.filter(bHe);return e.length==0?null:function(t){return wHe(CHe(t,e))}}function BSe(n){return n!=null?EHe(SHe(n)):null}function IHe(n){if(!n)return null;let e=n.filter(bHe);return e.length==0?null:function(t){let i=CHe(t,e).map(xHe);return dh(i).pipe(ri(wHe))}}function zSe(n){return n!=null?IHe(SHe(n)):null}function dHe(n,e){return n===null?[e]:Array.isArray(n)?[...n,e]:[n,e]}function THe(n){return n._rawValidators}function AHe(n){return n._rawAsyncValidators}function PSe(n){return n?Array.isArray(n)?n:[n]:[]}function Jie(n,e){return Array.isArray(n)?n.includes(e):n===e}function hHe(n,e){let t=PSe(e);return PSe(n).forEach(r=>{Jie(t,r)||t.push(r)}),t}function pHe(n,e){return PSe(e).filter(t=>!Jie(n,t))}var ene=class{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(e){this._rawValidators=e||[],this._composedValidatorFn=BSe(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=zSe(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e=void 0){this.control&&this.control.reset(e)}hasError(e,t){return this.control?this.control.hasError(e,t):!1}getError(e,t){return this.control?this.control.getError(e,t):null}},PT=class extends ene{get formDirective(){return null}get path(){return null}},$p=class extends ene{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},tne=class{constructor(e){this._cd=e}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}},QSt={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},Eki=wt(Ce({},QSt),{"[class.ng-submitted]":"isSubmitted"}),LT=(()=>{let e=class e extends tne{constructor(i){super(i)}};e.\u0275fac=function(r){return new(r||e)(oe($p,2))},e.\u0275dir=Ki({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,o){r&2&&$n("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},features:[Li]});let n=e;return n})(),DHe=(()=>{let e=class e extends tne{constructor(i){super(i)}};e.\u0275fac=function(r){return new(r||e)(oe(PT,10))},e.\u0275dir=Ki({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(r,o){r&2&&$n("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)("ng-submitted",o.isSubmitted)},features:[Li]});let n=e;return n})();var dG="VALID",Xie="INVALID",c3="PENDING",hG="DISABLED",FT=class{},ine=class extends FT{constructor(e,t){super(),this.value=e,this.source=t}},fG=class extends FT{constructor(e,t){super(),this.pristine=e,this.source=t}},mG=class extends FT{constructor(e,t){super(),this.touched=e,this.source=t}},u3=class extends FT{constructor(e,t){super(),this.status=e,this.source=t}},FSe=class extends FT{constructor(e){super(),this.source=e}},LSe=class extends FT{constructor(e){super(),this.source=e}};function kHe(n){return(cne(n)?n.validators:n)||null}function XSt(n){return Array.isArray(n)?BSe(n):n||null}function MHe(n,e){return(cne(e)?e.asyncValidators:n)||null}function JSt(n){return Array.isArray(n)?zSe(n):n||null}function cne(n){return n!=null&&!Array.isArray(n)&&typeof n=="object"}function eEt(n,e,t){let i=n.controls;if(!(e?Object.keys(i):i).length)throw new Fn(1e3,"");if(!i[t])throw new Fn(1001,"")}function tEt(n,e,t){n._forEachChild((i,r)=>{if(t[r]===void 0)throw new Fn(1002,"")})}var nne=class{constructor(e,t){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._events=new mi,this.events=this._events.asObservable(),this._onDisabledChange=[],this._assignValidators(e),this._assignAsyncValidators(t)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get valid(){return this.status===dG}get invalid(){return this.status===Xie}get pending(){return this.status==c3}get disabled(){return this.status===hG}get enabled(){return this.status!==hG}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._assignValidators(e)}setAsyncValidators(e){this._assignAsyncValidators(e)}addValidators(e){this.setValidators(hHe(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(hHe(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(pHe(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(pHe(e,this._rawAsyncValidators))}hasValidator(e){return Jie(this._rawValidators,e)}hasAsyncValidator(e){return Jie(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){let t=this.touched===!1;this.touched=!0;let i=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsTouched(wt(Ce({},e),{sourceControl:i})),t&&e.emitEvent!==!1&&this._events.next(new mG(!0,i))}markAllAsTouched(e={}){this.markAsTouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:this}),this._forEachChild(t=>t.markAllAsTouched(e))}markAsUntouched(e={}){let t=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let i=e.sourceControl??this;this._forEachChild(r=>{r.markAsUntouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:i})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,i),t&&e.emitEvent!==!1&&this._events.next(new mG(!1,i))}markAsDirty(e={}){let t=this.pristine===!0;this.pristine=!1;let i=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsDirty(wt(Ce({},e),{sourceControl:i})),t&&e.emitEvent!==!1&&this._events.next(new fG(!1,i))}markAsPristine(e={}){let t=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let i=e.sourceControl??this;this._forEachChild(r=>{r.markAsPristine({onlySelf:!0,emitEvent:e.emitEvent})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e,i),t&&e.emitEvent!==!1&&this._events.next(new fG(!0,i))}markAsPending(e={}){this.status=c3;let t=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new u3(this.status,t)),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.markAsPending(wt(Ce({},e),{sourceControl:t}))}disable(e={}){let t=this._parentMarkedDirty(e.onlySelf);this.status=hG,this.errors=null,this._forEachChild(r=>{r.disable(wt(Ce({},e),{onlySelf:!0}))}),this._updateValue();let i=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new ine(this.value,i)),this._events.next(new u3(this.status,i)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(wt(Ce({},e),{skipPristineCheck:t}),this),this._onDisabledChange.forEach(r=>r(!0))}enable(e={}){let t=this._parentMarkedDirty(e.onlySelf);this.status=dG,this._forEachChild(i=>{i.enable(wt(Ce({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(wt(Ce({},e),{skipPristineCheck:t}),this),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(e,t){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine({},t),this._parent._updateTouched({},t))}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let i=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===dG||this.status===c3)&&this._runAsyncValidator(i,e.emitEvent)}let t=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new ine(this.value,t)),this._events.next(new u3(this.status,t)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(wt(Ce({},e),{sourceControl:t}))}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?hG:dG}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e,t){if(this.asyncValidator){this.status=c3,this._hasOwnPendingAsyncValidator={emitEvent:t!==!1};let i=xHe(this.asyncValidator(this));this._asyncValidationSubscription=i.subscribe(r=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(r,{emitEvent:t,shouldHaveEmitted:e})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let e=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,e}return!1}setErrors(e,t={}){this.errors=e,this._updateControlsErrors(t.emitEvent!==!1,this,t.shouldHaveEmitted)}get(e){let t=e;return t==null||(Array.isArray(t)||(t=t.split(".")),t.length===0)?null:t.reduce((i,r)=>i&&i._find(r),this)}getError(e,t){let i=t?this.get(t):this;return i&&i.errors?i.errors[e]:null}hasError(e,t){return!!this.getError(e,t)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e,t,i){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),(e||i)&&this._events.next(new u3(this.status,t)),this._parent&&this._parent._updateControlsErrors(e,t,i)}_initObservables(){this.valueChanges=new Kt,this.statusChanges=new Kt}_calculateStatus(){return this._allControlsDisabled()?hG:this.errors?Xie:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(c3)?c3:this._anyControlsHaveStatus(Xie)?Xie:dG}_anyControlsHaveStatus(e){return this._anyControls(t=>t.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e,t){let i=!this._anyControlsDirty(),r=this.pristine!==i;this.pristine=i,this._parent&&!e.onlySelf&&this._parent._updatePristine(e,t),r&&this._events.next(new fG(this.pristine,t))}_updateTouched(e={},t){this.touched=this._anyControlsTouched(),this._events.next(new mG(this.touched,t)),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,t)}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){cne(e)&&e.updateOn!=null&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){let t=this._parent&&this._parent.dirty;return!e&&!!t&&!this._parent._anyControlsDirty()}_find(e){return null}_assignValidators(e){this._rawValidators=Array.isArray(e)?e.slice():e,this._composedValidatorFn=XSt(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=JSt(this._rawAsyncValidators)}},dR=class extends nne{constructor(e,t,i){super(kHe(t),MHe(i,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}addControl(e,t,i={}){this.registerControl(e,t),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(e,t={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}setControl(e,t,i={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,t={}){tEt(this,!0,e),Object.keys(e).forEach(i=>{eEt(this,!0,i),this.controls[i].setValue(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){e!=null&&(Object.keys(e).forEach(i=>{let r=this.controls[i];r&&r.patchValue(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(e={},t={}){this._forEachChild((i,r)=>{i.reset(e?e[r]:null,{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t,this),this._updateTouched(t,this),this.updateValueAndValidity(t)}getRawValue(){return this._reduceChildren({},(e,t,i)=>(e[i]=t.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(t,i)=>i._syncPendingControls()?!0:t);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){Object.keys(this.controls).forEach(t=>{let i=this.controls[t];i&&e(i,t)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(let[t,i]of Object.entries(this.controls))if(this.contains(t)&&e(i))return!0;return!1}_reduceValue(){let e={};return this._reduceChildren(e,(t,i,r)=>((i.enabled||this.disabled)&&(t[r]=i.value),t))}_reduceChildren(e,t){let i=e;return this._forEachChild((r,o)=>{i=t(i,r,o)}),i}_allControlsDisabled(){for(let e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(e){return this.controls.hasOwnProperty(e)?this.controls[e]:null}};var h3=new fi("CallSetDisabledState",{providedIn:"root",factory:()=>une}),une="always";function iEt(n,e){return[...e.path,n]}function gG(n,e,t=une){VSe(n,e),e.valueAccessor.writeValue(n.value),(n.disabled||t==="always")&&e.valueAccessor.setDisabledState?.(n.disabled),rEt(n,e),sEt(n,e),oEt(n,e),nEt(n,e)}function rne(n,e,t=!0){let i=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(i),e.valueAccessor.registerOnTouched(i)),sne(n,e),n&&(e._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}))}function one(n,e){n.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function nEt(n,e){if(e.valueAccessor.setDisabledState){let t=i=>{e.valueAccessor.setDisabledState(i)};n.registerOnDisabledChange(t),e._registerOnDestroy(()=>{n._unregisterOnDisabledChange(t)})}}function VSe(n,e){let t=THe(n);e.validator!==null?n.setValidators(dHe(t,e.validator)):typeof t=="function"&&n.setValidators([t]);let i=AHe(n);e.asyncValidator!==null?n.setAsyncValidators(dHe(i,e.asyncValidator)):typeof i=="function"&&n.setAsyncValidators([i]);let r=()=>n.updateValueAndValidity();one(e._rawValidators,r),one(e._rawAsyncValidators,r)}function sne(n,e){let t=!1;if(n!==null){if(e.validator!==null){let r=THe(n);if(Array.isArray(r)&&r.length>0){let o=r.filter(s=>s!==e.validator);o.length!==r.length&&(t=!0,n.setValidators(o))}}if(e.asyncValidator!==null){let r=AHe(n);if(Array.isArray(r)&&r.length>0){let o=r.filter(s=>s!==e.asyncValidator);o.length!==r.length&&(t=!0,n.setAsyncValidators(o))}}}let i=()=>{};return one(e._rawValidators,i),one(e._rawAsyncValidators,i),t}function rEt(n,e){e.valueAccessor.registerOnChange(t=>{n._pendingValue=t,n._pendingChange=!0,n._pendingDirty=!0,n.updateOn==="change"&&OHe(n,e)})}function oEt(n,e){e.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,n.updateOn==="blur"&&n._pendingChange&&OHe(n,e),n.updateOn!=="submit"&&n.markAsTouched()})}function OHe(n,e){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function sEt(n,e){let t=(i,r)=>{e.valueAccessor.writeValue(i),r&&e.viewToModelUpdate(i)};n.registerOnChange(t),e._registerOnDestroy(()=>{n._unregisterOnChange(t)})}function RHe(n,e){n==null,VSe(n,e)}function aEt(n,e){return sne(n,e)}function NHe(n,e){if(!n.hasOwnProperty("model"))return!1;let t=n.model;return t.isFirstChange()?!0:!Object.is(e,t.currentValue)}function lEt(n){return Object.getPrototypeOf(n.constructor)===LSt}function PHe(n,e){n._syncPendingControls(),e.forEach(t=>{let i=t.control;i.updateOn==="submit"&&i._pendingChange&&(t.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}function FHe(n,e){if(!e)return null;Array.isArray(e);let t,i,r;return e.forEach(o=>{o.constructor===ane?t=o:lEt(o)?i=o:r=o}),r||i||t||null}function cEt(n,e){let t=n.indexOf(e);t>-1&&n.splice(t,1)}var uEt={provide:PT,useExisting:ka(()=>hR)},pG=Promise.resolve(),hR=(()=>{let e=class e extends PT{constructor(i,r,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._directives=new Set,this.ngSubmit=new Kt,this.form=new dR({},BSe(i),zSe(r))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(i){pG.then(()=>{let r=this._findContainer(i.path);i.control=r.registerControl(i.name,i.control),gG(i.control,i,this.callSetDisabledState),i.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(i)})}getControl(i){return this.form.get(i.path)}removeControl(i){pG.then(()=>{let r=this._findContainer(i.path);r&&r.removeControl(i.name),this._directives.delete(i)})}addFormGroup(i){pG.then(()=>{let r=this._findContainer(i.path),o=new dR({});RHe(o,i),r.registerControl(i.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(i){pG.then(()=>{let r=this._findContainer(i.path);r&&r.removeControl(i.name)})}getFormGroup(i){return this.form.get(i.path)}updateModel(i,r){pG.then(()=>{this.form.get(i.path).setValue(r)})}setValue(i){this.control.setValue(i)}onSubmit(i){return this.submitted=!0,PHe(this.form,this._directives),this.ngSubmit.emit(i),i?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(i=void 0){this.form.reset(i),this.submitted=!1}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(i){return i.pop(),i.length?this.form.get(i):this.form}};e.\u0275fac=function(r){return new(r||e)(oe(d3,10),oe(lne,10),oe(h3,8))},e.\u0275dir=Ki({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(r,o){r&1&&At("submit",function(c){return o.onSubmit(c)})("reset",function(){return o.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Co([uEt]),Li]});let n=e;return n})();function fHe(n,e){let t=n.indexOf(e);t>-1&&n.splice(t,1)}function mHe(n){return typeof n=="object"&&n!==null&&Object.keys(n).length===2&&"value"in n&&"disabled"in n}var Kb=class extends nne{constructor(e=null,t,i){super(kHe(t),MHe(i,t)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(e),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),cne(t)&&(t.nonNullable||t.initialValueIsDefault)&&(mHe(e)?this.defaultValue=e.value:this.defaultValue=e)}setValue(e,t={}){this.value=this._pendingValue=e,this._onChange.length&&t.emitModelToViewChange!==!1&&this._onChange.forEach(i=>i(this.value,t.emitViewToModelChange!==!1)),this.updateValueAndValidity(t)}patchValue(e,t={}){this.setValue(e,t)}reset(e=this.defaultValue,t={}){this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){fHe(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){fHe(this._onDisabledChange,e)}_forEachChild(e){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(e){mHe(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}};var dEt=n=>n instanceof Kb;var hEt={provide:$p,useExisting:ka(()=>pR)},gHe=Promise.resolve(),pR=(()=>{let e=class e extends $p{constructor(i,r,o,s,c,h){super(),this._changeDetectorRef=c,this.callSetDisabledState=h,this.control=new Kb,this._registered=!1,this.name="",this.update=new Kt,this._parent=i,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=FHe(this,s)}ngOnChanges(i){if(this._checkForErrors(),!this._registered||"name"in i){if(this._registered&&(this._checkName(),this.formDirective)){let r=i.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in i&&this._updateDisabled(i),NHe(i,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(i){this.viewModel=i,this.update.emit(i)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){gG(this.control,this,this.callSetDisabledState),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()&&this.name}_updateValue(i){gHe.then(()=>{this.control.setValue(i,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(i){let r=i.isDisabled.currentValue,o=r!==0&&Ht(r);gHe.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(i){return this._parent?iEt(i,this._parent):[i]}};e.\u0275fac=function(r){return new(r||e)(oe(PT,9),oe(d3,10),oe(lne,10),oe(Bu,10),oe(ur,8),oe(h3,8))},e.\u0275dir=Ki({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Co([hEt]),Li,eo]});let n=e;return n})(),LHe=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=Ki({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]});let n=e;return n})();var BHe=new fi(""),pEt={provide:$p,useExisting:ka(()=>_G)},_G=(()=>{let e=class e extends $p{set isDisabled(i){}constructor(i,r,o,s,c){super(),this._ngModelWarningConfig=s,this.callSetDisabledState=c,this.update=new Kt,this._ngModelWarningSent=!1,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=FHe(this,o)}ngOnChanges(i){if(this._isControlChanged(i)){let r=i.form.previousValue;r&&rne(r,this,!1),gG(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}NHe(i,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&rne(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(i){this.viewModel=i,this.update.emit(i)}_isControlChanged(i){return i.hasOwnProperty("form")}};e._ngModelWarningSentOnce=!1,e.\u0275fac=function(r){return new(r||e)(oe(d3,10),oe(lne,10),oe(Bu,10),oe(BHe,8),oe(h3,8))},e.\u0275dir=Ki({type:e,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[Co([pEt]),Li,eo]});let n=e;return n})(),fEt={provide:PT,useExisting:ka(()=>uC)},uC=(()=>{let e=class e extends PT{constructor(i,r,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new Kt,this._setValidators(i),this._setAsyncValidators(r)}ngOnChanges(i){this._checkFormPresent(),i.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(sne(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(i){let r=this.form.get(i.path);return gG(r,i,this.callSetDisabledState),r.updateValueAndValidity({emitEvent:!1}),this.directives.push(i),r}getControl(i){return this.form.get(i.path)}removeControl(i){rne(i.control||null,i,!1),cEt(this.directives,i)}addFormGroup(i){this._setUpFormContainer(i)}removeFormGroup(i){this._cleanUpFormContainer(i)}getFormGroup(i){return this.form.get(i.path)}addFormArray(i){this._setUpFormContainer(i)}removeFormArray(i){this._cleanUpFormContainer(i)}getFormArray(i){return this.form.get(i.path)}updateModel(i,r){this.form.get(i.path).setValue(r)}onSubmit(i){return this.submitted=!0,PHe(this.form,this.directives),this.ngSubmit.emit(i),this.form._events.next(new FSe(this.control)),i?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(i=void 0){this.form.reset(i),this.submitted=!1,this.form._events.next(new LSe(this.form))}_updateDomValue(){this.directives.forEach(i=>{let r=i.control,o=this.form.get(i.path);r!==o&&(rne(r||null,i),dEt(o)&&(gG(o,i,this.callSetDisabledState),i.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(i){let r=this.form.get(i.path);RHe(r,i),r.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(i){if(this.form){let r=this.form.get(i.path);r&&aEt(r,i)&&r.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){VSe(this.form,this),this._oldForm&&sne(this._oldForm,this)}_checkFormPresent(){this.form}};e.\u0275fac=function(r){return new(r||e)(oe(d3,10),oe(lne,10),oe(h3,8))},e.\u0275dir=Ki({type:e,selectors:[["","formGroup",""]],hostBindings:function(r,o){r&1&&At("submit",function(c){return o.onSubmit(c)})("reset",function(){return o.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Co([fEt]),Li,eo]});let n=e;return n})();var zHe=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=Oi({type:e}),e.\u0275inj=Mi({});let n=e;return n})();var dC=(()=>{let e=class e{static withConfig(i){return{ngModule:e,providers:[{provide:h3,useValue:i.callSetDisabledState??une}]}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=Oi({type:e}),e.\u0275inj=Mi({imports:[zHe]});let n=e;return n})(),BT=(()=>{let e=class e{static withConfig(i){return{ngModule:e,providers:[{provide:BHe,useValue:i.warnOnNgModelWithFormControl??"always"},{provide:h3,useValue:i.callSetDisabledState??une}]}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=Oi({type:e}),e.\u0275inj=Mi({imports:[zHe]});let n=e;return n})();var mEt=["*"],gEt='@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-list-divider::after{content:"";display:block;border-bottom-width:1px;border-bottom-style:solid}}.mdc-list{margin:0;padding:8px 0;list-style-type:none}.mdc-list:focus{outline:none}.mdc-list-item__wrapper{display:block}.mdc-list-item{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;align-items:stretch;cursor:pointer}.mdc-list-item:focus{outline:none}.mdc-list-item.mdc-list-item--with-one-line{height:48px}.mdc-list-item.mdc-list-item--with-two-lines{height:64px}.mdc-list-item.mdc-list-item--with-three-lines{height:88px}.mdc-list-item.mdc-list-item--with-one-line .mdc-list-item__start{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--with-three-lines .mdc-list-item__start{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--with-one-line .mdc-list-item__end{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-two-lines .mdc-list-item__end{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--disabled,.mdc-list-item.mdc-list-item--non-interactive{cursor:auto}.mdc-list-item:not(.mdc-list-item--selected):focus::before,.mdc-list-item.mdc-ripple-upgraded--background-focused::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-list-item:not(.mdc-list-item--selected):focus::before,.mdc-list-item.mdc-ripple-upgraded--background-focused::before{border-color:CanvasText}}.mdc-list-item.mdc-list-item--selected::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:3px double rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-list-item.mdc-list-item--selected::before{border-color:CanvasText}}.mdc-list-item.mdc-list-item--selected:focus::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:3px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-list-item.mdc-list-item--selected:focus::before{border-color:CanvasText}}a.mdc-list-item{color:inherit;text-decoration:none}.mdc-list-item__start{fill:currentColor;flex-shrink:0;pointer-events:none}.mdc-list-item__end{flex-shrink:0;pointer-events:none}.mdc-list-item__content{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;align-self:center;flex:1;pointer-events:none}.mdc-list-item--with-two-lines .mdc-list-item__content,.mdc-list-item--with-three-lines .mdc-list-item__content{align-self:stretch}.mdc-list-item__content[for]{pointer-events:none}.mdc-list-item__primary-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-three-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-three-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-three-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item__secondary-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:block;margin-top:0;line-height:normal}.mdc-list-item__secondary-text::before{display:inline-block;width:0;height:20px;content:"";vertical-align:0}.mdc-list-item--with-three-lines .mdc-list-item__secondary-text{white-space:normal;line-height:20px}.mdc-list-item--with-overline .mdc-list-item__secondary-text{white-space:nowrap;line-height:auto}.mdc-list-item__overline-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:24px;content:"";vertical-align:0}.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-three-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-three-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-three-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-avatar.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-avatar.mdc-list-item,.mdc-list-item--with-leading-avatar.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-avatar .mdc-list-item__start{margin-left:16px;margin-right:16px}[dir=rtl] .mdc-list-item--with-leading-avatar .mdc-list-item__start,.mdc-list-item--with-leading-avatar .mdc-list-item__start[dir=rtl]{margin-left:16px;margin-right:16px}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-avatar.mdc-list-item--with-one-line{height:56px}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-avatar .mdc-list-item__start{border-radius:50%}.mdc-list-item--with-leading-icon.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-icon.mdc-list-item,.mdc-list-item--with-leading-icon.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-icon .mdc-list-item__start{margin-left:16px;margin-right:32px}[dir=rtl] .mdc-list-item--with-leading-icon .mdc-list-item__start,.mdc-list-item--with-leading-icon .mdc-list-item__start[dir=rtl]{margin-left:32px;margin-right:16px}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-icon.mdc-list-item--with-one-line{height:56px}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-thumbnail.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-thumbnail.mdc-list-item,.mdc-list-item--with-leading-thumbnail.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-thumbnail .mdc-list-item__start{margin-left:16px;margin-right:16px}[dir=rtl] .mdc-list-item--with-leading-thumbnail .mdc-list-item__start,.mdc-list-item--with-leading-thumbnail .mdc-list-item__start[dir=rtl]{margin-left:16px;margin-right:16px}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-one-line{height:56px}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-image.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-image.mdc-list-item,.mdc-list-item--with-leading-image.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-image .mdc-list-item__start{margin-left:16px;margin-right:16px}[dir=rtl] .mdc-list-item--with-leading-image .mdc-list-item__start,.mdc-list-item--with-leading-image .mdc-list-item__start[dir=rtl]{margin-left:16px;margin-right:16px}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-image.mdc-list-item--with-one-line{height:72px}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:8px}.mdc-list-item--with-leading-video.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-video.mdc-list-item,.mdc-list-item--with-leading-video.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-video .mdc-list-item__start{margin-left:0;margin-right:16px}[dir=rtl] .mdc-list-item--with-leading-video .mdc-list-item__start,.mdc-list-item--with-leading-video .mdc-list-item__start[dir=rtl]{margin-left:16px;margin-right:0}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-video.mdc-list-item--with-one-line{height:72px}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-checkbox.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-checkbox.mdc-list-item,.mdc-list-item--with-leading-checkbox.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-checkbox .mdc-list-item__start{margin-left:8px;margin-right:24px}[dir=rtl] .mdc-list-item--with-leading-checkbox .mdc-list-item__start,.mdc-list-item--with-leading-checkbox .mdc-list-item__start[dir=rtl]{margin-left:24px;margin-right:8px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:8px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-one-line{height:56px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-radio.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-radio.mdc-list-item,.mdc-list-item--with-leading-radio.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-radio .mdc-list-item__start{margin-left:8px;margin-right:24px}[dir=rtl] .mdc-list-item--with-leading-radio .mdc-list-item__start,.mdc-list-item--with-leading-radio .mdc-list-item__start[dir=rtl]{margin-left:24px;margin-right:8px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:8px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-one-line{height:56px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-switch.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-switch.mdc-list-item,.mdc-list-item--with-leading-switch.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-switch .mdc-list-item__start{margin-left:16px;margin-right:16px}[dir=rtl] .mdc-list-item--with-leading-switch .mdc-list-item__start,.mdc-list-item--with-leading-switch .mdc-list-item__start[dir=rtl]{margin-left:16px;margin-right:16px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:16px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-switch.mdc-list-item--with-one-line{height:56px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-trailing-icon.mdc-list-item{padding-left:auto;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-icon.mdc-list-item,.mdc-list-item--with-trailing-icon.mdc-list-item[dir=rtl]{padding-left:0;padding-right:auto}.mdc-list-item--with-trailing-icon .mdc-list-item__end{margin-left:16px;margin-right:16px}[dir=rtl] .mdc-list-item--with-trailing-icon .mdc-list-item__end,.mdc-list-item--with-trailing-icon .mdc-list-item__end[dir=rtl]{margin-left:16px;margin-right:16px}.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end{align-self:flex-start;margin-top:0}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:0}.mdc-list-item--with-trailing-meta.mdc-list-item{padding-left:auto;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-meta.mdc-list-item,.mdc-list-item--with-trailing-meta.mdc-list-item[dir=rtl]{padding-left:0;padding-right:auto}.mdc-list-item--with-trailing-meta .mdc-list-item__end{margin-left:28px;margin-right:16px}[dir=rtl] .mdc-list-item--with-trailing-meta .mdc-list-item__end,.mdc-list-item--with-trailing-meta .mdc-list-item__end[dir=rtl]{margin-left:16px;margin-right:28px}.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-trailing-meta .mdc-list-item__end{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mdc-typography-caption-font-family);font-size:var(--mdc-typography-caption-font-size);line-height:var(--mdc-typography-caption-line-height);font-weight:var(--mdc-typography-caption-font-weight);letter-spacing:var(--mdc-typography-caption-letter-spacing);text-decoration:var(--mdc-typography-caption-text-decoration);text-transform:var(--mdc-typography-caption-text-transform)}.mdc-list-item--with-trailing-checkbox.mdc-list-item{padding-left:auto;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item,.mdc-list-item--with-trailing-checkbox.mdc-list-item[dir=rtl]{padding-left:0;padding-right:auto}.mdc-list-item--with-trailing-checkbox .mdc-list-item__end{margin-left:24px;margin-right:8px}[dir=rtl] .mdc-list-item--with-trailing-checkbox .mdc-list-item__end,.mdc-list-item--with-trailing-checkbox .mdc-list-item__end[dir=rtl]{margin-left:8px;margin-right:24px}.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:8px}.mdc-list-item--with-trailing-radio.mdc-list-item{padding-left:auto;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item,.mdc-list-item--with-trailing-radio.mdc-list-item[dir=rtl]{padding-left:0;padding-right:auto}.mdc-list-item--with-trailing-radio .mdc-list-item__end{margin-left:24px;margin-right:8px}[dir=rtl] .mdc-list-item--with-trailing-radio .mdc-list-item__end,.mdc-list-item--with-trailing-radio .mdc-list-item__end[dir=rtl]{margin-left:8px;margin-right:24px}.mdc-list-item--with-trailing-radio.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:8px}.mdc-list-item--with-trailing-switch.mdc-list-item{padding-left:auto;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-switch.mdc-list-item,.mdc-list-item--with-trailing-switch.mdc-list-item[dir=rtl]{padding-left:0;padding-right:auto}.mdc-list-item--with-trailing-switch .mdc-list-item__end{margin-left:16px;margin-right:16px}[dir=rtl] .mdc-list-item--with-trailing-switch .mdc-list-item__end,.mdc-list-item--with-trailing-switch .mdc-list-item__end[dir=rtl]{margin-left:16px;margin-right:16px}.mdc-list-item--with-trailing-switch.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:16px}.mdc-list-item--with-overline.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-overline.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:20px;content:"";vertical-align:0}.mdc-list-item--with-overline.mdc-list-item--with-three-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-overline.mdc-list-item--with-three-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:20px;content:"";vertical-align:0}.mdc-list-item{padding-left:16px;padding-right:16px}[dir=rtl] .mdc-list-item,.mdc-list-item[dir=rtl]{padding-left:16px;padding-right:16px}.mdc-list-group .mdc-deprecated-list{padding:0}.mdc-list-group__subheader{margin:calc((3rem - 1.5rem)/2) 16px}.mdc-list-divider{padding:0;background-clip:content-box}.mdc-list-divider.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-text.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-icon.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-image.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-thumbnail.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-avatar.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-checkbox.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-switch.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-radio.mdc-list-divider--with-leading-inset{padding-left:16px;padding-right:auto}[dir=rtl] .mdc-list-divider.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-text.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-icon.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-image.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-thumbnail.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-avatar.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-checkbox.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-switch.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-radio.mdc-list-divider--with-leading-inset,.mdc-list-divider.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-text.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-icon.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-image.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-thumbnail.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-avatar.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-checkbox.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-switch.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-radio.mdc-list-divider--with-leading-inset[dir=rtl]{padding-left:auto;padding-right:16px}.mdc-list-divider.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-text.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-icon.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-image.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-thumbnail.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-avatar.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-checkbox.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-switch.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-radio.mdc-list-divider--with-trailing-inset{padding-left:auto;padding-right:16px}[dir=rtl] .mdc-list-divider.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-text.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-icon.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-image.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-thumbnail.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-avatar.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-checkbox.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-switch.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-radio.mdc-list-divider--with-trailing-inset,.mdc-list-divider.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-text.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-icon.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-image.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-thumbnail.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-avatar.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-checkbox.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-switch.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-radio.mdc-list-divider--with-trailing-inset[dir=rtl]{padding-left:16px;padding-right:auto}.mdc-list-divider--with-leading-video.mdc-list-divider--with-leading-inset{padding-left:0px;padding-right:auto}[dir=rtl] .mdc-list-divider--with-leading-video.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-video.mdc-list-divider--with-leading-inset[dir=rtl]{padding-left:auto;padding-right:0px}[dir=rtl] .mdc-list-divider,.mdc-list-divider[dir=rtl]{padding:0}.mdc-list-item{background-color:var(--mdc-list-list-item-container-color)}.mdc-list-item.mdc-list-item--selected{background-color:var(--mdc-list-list-item-selected-container-color)}.mdc-list-item--with-one-line{border-radius:var(--mdc-list-list-item-container-shape)}.mdc-list-item--with-one-line.mdc-list-item--with-leading-avatar,.mdc-list-item--with-one-line.mdc-list-item--with-leading-icon,.mdc-list-item--with-one-line.mdc-list-item--with-leading-thumbnail,.mdc-list-item--with-one-line.mdc-list-item--with-leading-checkbox,.mdc-list-item--with-one-line.mdc-list-item--with-leading-radio,.mdc-list-item--with-one-line.mdc-list-item--with-leading-switch{border-radius:var(--mdc-list-list-item-container-shape)}.mdc-list-item--with-one-line.mdc-list-item--with-leading-image,.mdc-list-item--with-one-line.mdc-list-item--with-leading-video{border-radius:var(--mdc-list-list-item-container-shape)}.mdc-list-item--with-two-lines{border-radius:var(--mdc-list-list-item-container-shape)}.mdc-list-item--with-two-lines.mdc-list-item--with-leading-avatar,.mdc-list-item--with-two-lines.mdc-list-item--with-leading-icon,.mdc-list-item--with-two-lines.mdc-list-item--with-leading-thumbnail,.mdc-list-item--with-two-lines.mdc-list-item--with-leading-checkbox,.mdc-list-item--with-two-lines.mdc-list-item--with-leading-radio,.mdc-list-item--with-two-lines.mdc-list-item--with-leading-switch,.mdc-list-item--with-two-lines.mdc-list-item--with-leading-image,.mdc-list-item--with-two-lines.mdc-list-item--with-leading-video{border-radius:var(--mdc-list-list-item-container-shape)}.mdc-list-item--with-three-lines{border-radius:var(--mdc-list-list-item-container-shape)}.mdc-list-item.mdc-list-item--with-one-line{height:var(--mdc-list-list-item-one-line-container-height)}.mdc-list-item.mdc-list-item--with-two-lines{height:var(--mdc-list-list-item-two-line-container-height)}.mdc-list-item.mdc-list-item--with-three-lines{height:var(--mdc-list-list-item-three-line-container-height)}.mdc-list-item__primary-text{color:var(--mdc-list-list-item-label-text-color)}.mdc-list-item__primary-text{font-family:var(--mdc-list-list-item-label-text-font);line-height:var(--mdc-list-list-item-label-text-line-height);font-size:var(--mdc-list-list-item-label-text-size);font-weight:var(--mdc-list-list-item-label-text-weight);letter-spacing:var(--mdc-list-list-item-label-text-tracking)}.mdc-list-item__secondary-text{color:var(--mdc-list-list-item-supporting-text-color)}.mdc-list-item__secondary-text{font-family:var(--mdc-list-list-item-supporting-text-font);line-height:var(--mdc-list-list-item-supporting-text-line-height);font-size:var(--mdc-list-list-item-supporting-text-size);font-weight:var(--mdc-list-list-item-supporting-text-weight);letter-spacing:var(--mdc-list-list-item-supporting-text-tracking)}.mdc-list-item--with-leading-icon .mdc-list-item__start{color:var(--mdc-list-list-item-leading-icon-color)}.mdc-list-item--with-leading-icon .mdc-list-item__start{width:var(--mdc-list-list-item-leading-icon-size);height:var(--mdc-list-list-item-leading-icon-size)}.mdc-list-item--with-leading-icon .mdc-list-item__start>i{font-size:var(--mdc-list-list-item-leading-icon-size)}.mdc-list-item--with-leading-icon .mdc-list-item__start .mdc-list-item__icon{font-size:var(--mdc-list-list-item-leading-icon-size);width:var(--mdc-list-list-item-leading-icon-size);height:var(--mdc-list-list-item-leading-icon-size)}.mdc-list-item--with-leading-icon .mdc-list-item__start .mdc-list-item__icon,.mdc-list-item--with-leading-icon .mdc-list-item__start .mdc-list-item__icon>.materialdesignWizIconSvgsSvgIcon{display:block}.mdc-list-item--with-leading-avatar .mdc-list-item__start{width:var(--mdc-list-list-item-leading-avatar-size);height:var(--mdc-list-list-item-leading-avatar-size)}.mdc-list-item.mdc-list-item--with-trailing-meta .mdc-list-item__end{color:var(--mdc-list-list-item-trailing-supporting-text-color)}.mdc-list-item--with-trailing-meta .mdc-list-item__end{font-family:var(--mdc-list-list-item-trailing-supporting-text-font);line-height:var(--mdc-list-list-item-trailing-supporting-text-line-height);font-size:var(--mdc-list-list-item-trailing-supporting-text-size);font-weight:var(--mdc-list-list-item-trailing-supporting-text-weight);letter-spacing:var(--mdc-list-list-item-trailing-supporting-text-tracking)}.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mdc-list-list-item-trailing-icon-color)}.mdc-list-item--with-trailing-icon .mdc-list-item__end{width:var(--mdc-list-list-item-trailing-icon-size);height:var(--mdc-list-list-item-trailing-icon-size)}.mdc-list-item--with-trailing-icon .mdc-list-item__end>i{font-size:var(--mdc-list-list-item-trailing-icon-size)}.mdc-list-item--with-trailing-icon .mdc-list-item__end .mdc-list-item__icon{font-size:var(--mdc-list-list-item-trailing-icon-size);width:var(--mdc-list-list-item-trailing-icon-size);height:var(--mdc-list-list-item-trailing-icon-size)}.mdc-list-item--with-trailing-icon .mdc-list-item__end .mdc-list-item__icon,.mdc-list-item--with-trailing-icon .mdc-list-item__end .mdc-list-item__icon>.materialdesignWizIconSvgsSvgIcon{display:block}.mdc-list-item--selected.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mdc-list-list-item-selected-trailing-icon-color)}.mdc-list-item--disabled .mdc-list-item__start,.mdc-list-item--disabled .mdc-list-item__content,.mdc-list-item--disabled .mdc-list-item__end{opacity:1}.mdc-list-item--disabled .mdc-list-item__primary-text,.mdc-list-item--disabled .mdc-list-item__secondary-text,.mdc-list-item--disabled .mdc-list-item__overline-text{opacity:var(--mdc-list-list-item-disabled-label-text-opacity)}.mdc-list-item--disabled.mdc-list-item--with-leading-icon .mdc-list-item__start{color:var(--mdc-list-list-item-disabled-leading-icon-color)}.mdc-list-item--disabled.mdc-list-item--with-leading-icon .mdc-list-item__start{opacity:var(--mdc-list-list-item-disabled-leading-icon-opacity)}.mdc-list-item--disabled.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mdc-list-list-item-disabled-trailing-icon-color)}.mdc-list-item--disabled.mdc-list-item--with-trailing-icon .mdc-list-item__end{opacity:var(--mdc-list-list-item-disabled-trailing-icon-opacity)}.mdc-list-item:hover .mdc-list-item__primary-text{color:var(--mdc-list-list-item-hover-label-text-color)}.mdc-list-item--with-leading-icon:hover .mdc-list-item__start{color:var(--mdc-list-list-item-hover-leading-icon-color)}.mdc-list-item--with-trailing-icon:hover .mdc-list-item__end{color:var(--mdc-list-list-item-hover-trailing-icon-color)}.mdc-list-item:focus .mdc-list-item__primary-text{color:var(--mdc-list-list-item-focus-label-text-color)}.mdc-list-item.mdc-list-item--disabled .mdc-list-item__primary-text{color:var(--mdc-list-list-item-disabled-label-text-color)}.mdc-list-item:hover::before{background-color:var(--mdc-list-list-item-hover-state-layer-color);opacity:var(--mdc-list-list-item-hover-state-layer-opacity)}.mdc-list-item.mdc-list-item--disabled::before{background-color:var(--mdc-list-list-item-disabled-state-layer-color);opacity:var(--mdc-list-list-item-disabled-state-layer-opacity)}.mdc-list-item:focus::before{background-color:var(--mdc-list-list-item-focus-state-layer-color);opacity:var(--mdc-list-list-item-focus-state-layer-opacity)}.mdc-list-item--disabled .mdc-radio,.mdc-list-item--disabled .mdc-checkbox{opacity:var(--mdc-list-list-item-disabled-label-text-opacity)}.mdc-list-item--with-leading-avatar .mat-mdc-list-item-avatar{border-radius:var(--mdc-list-list-item-leading-avatar-shape);background-color:var(--mdc-list-list-item-leading-avatar-color)}.mat-mdc-list-item-icon{font-size:var(--mdc-list-list-item-leading-icon-size)}.cdk-high-contrast-active a.mdc-list-item--activated::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active a.mdc-list-item--activated [dir=rtl]::after{right:auto;left:16px}.mat-mdc-list-base{display:block}.mat-mdc-list-base .mdc-list-item__start,.mat-mdc-list-base .mdc-list-item__end,.mat-mdc-list-base .mdc-list-item__content{pointer-events:auto}.mat-mdc-list-item,.mat-mdc-list-option{width:100%;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-list-item:not(.mat-mdc-list-item-interactive),.mat-mdc-list-option:not(.mat-mdc-list-item-interactive){cursor:default}.mat-mdc-list-item .mat-divider-inset,.mat-mdc-list-option .mat-divider-inset{position:absolute;left:0;right:0;bottom:0}.mat-mdc-list-item .mat-mdc-list-item-avatar~.mat-divider-inset,.mat-mdc-list-option .mat-mdc-list-item-avatar~.mat-divider-inset{margin-left:72px}[dir=rtl] .mat-mdc-list-item .mat-mdc-list-item-avatar~.mat-divider-inset,[dir=rtl] .mat-mdc-list-option .mat-mdc-list-item-avatar~.mat-divider-inset{margin-right:72px}.mat-mdc-list-item-interactive::before{top:0;left:0;right:0;bottom:0;position:absolute;content:"";opacity:0;pointer-events:none}.mat-mdc-list-item>.mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-list-item:focus>.mat-mdc-focus-indicator::before{content:""}.mat-mdc-list-item.mdc-list-item--with-three-lines .mat-mdc-list-item-line.mdc-list-item__secondary-text{white-space:nowrap;line-height:normal}.mat-mdc-list-item.mdc-list-item--with-three-lines .mat-mdc-list-item-unscoped-content.mdc-list-item__secondary-text{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:start}mat-action-list button::-moz-focus-inner{border:0}.mdc-list-item--with-leading-icon .mdc-list-item__start{margin-inline-start:var(--mat-list-list-item-leading-icon-start-space);margin-inline-end:var(--mat-list-list-item-leading-icon-end-space)}.mat-mdc-nav-list .mat-mdc-list-item{border-radius:var(--mat-list-active-indicator-shape);--mat-mdc-focus-indicator-border-radius:var(--mat-list-active-indicator-shape)}.mat-mdc-nav-list .mat-mdc-list-item.mdc-list-item--activated{background-color:var(--mat-list-active-indicator-color)}',_Et=["unscopedContent"],vEt=["text"],yEt=[[["","matListItemAvatar",""],["","matListItemIcon",""]],[["","matListItemTitle",""]],[["","matListItemLine",""]],"*",[["","matListItemMeta",""]],[["mat-divider"]]],bEt=["[matListItemAvatar],[matListItemIcon]","[matListItemTitle]","[matListItemLine]","*","[matListItemMeta]","mat-divider"];var xEt=new fi("ListOption"),USe=(()=>{let e=class e{constructor(i){this._elementRef=i}};e.\u0275fac=function(r){return new(r||e)(oe(Ai))},e.\u0275dir=Ki({type:e,selectors:[["","matListItemTitle",""]],hostAttrs:[1,"mat-mdc-list-item-title","mdc-list-item__primary-text"],standalone:!0});let n=e;return n})(),jSe=(()=>{let e=class e{constructor(i){this._elementRef=i}};e.\u0275fac=function(r){return new(r||e)(oe(Ai))},e.\u0275dir=Ki({type:e,selectors:[["","matListItemLine",""]],hostAttrs:[1,"mat-mdc-list-item-line","mdc-list-item__secondary-text"],standalone:!0});let n=e;return n})(),wEt=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=Ki({type:e,selectors:[["","matListItemMeta",""]],hostAttrs:[1,"mat-mdc-list-item-meta","mdc-list-item__end"],standalone:!0});let n=e;return n})(),VHe=(()=>{let e=class e{constructor(i){this._listOption=i}_isAlignedAtStart(){return!this._listOption||this._listOption?._getTogglePosition()==="after"}};e.\u0275fac=function(r){return new(r||e)(oe(xEt,8))},e.\u0275dir=Ki({type:e,hostVars:4,hostBindings:function(r,o){r&2&&$n("mdc-list-item__start",o._isAlignedAtStart())("mdc-list-item__end",!o._isAlignedAtStart())},standalone:!0});let n=e;return n})(),CEt=(()=>{let e=class e extends VHe{};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=Qn(e)))(o||e)}})(),e.\u0275dir=Ki({type:e,selectors:[["","matListItemAvatar",""]],hostAttrs:[1,"mat-mdc-list-item-avatar"],standalone:!0,features:[Li]});let n=e;return n})(),HSe=(()=>{let e=class e extends VHe{};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=Qn(e)))(o||e)}})(),e.\u0275dir=Ki({type:e,selectors:[["","matListItemIcon",""]],hostAttrs:[1,"mat-mdc-list-item-icon"],standalone:!0,features:[Li]});let n=e;return n})(),SEt=new fi("MAT_LIST_CONFIG"),dne=(()=>{let e=class e{constructor(){this._isNonInteractive=!0,this._disableRipple=!1,this._disabled=!1,this._defaultOptions=ai(SEt,{optional:!0})}get disableRipple(){return this._disableRipple}set disableRipple(i){this._disableRipple=wl(i)}get disabled(){return this._disabled}set disabled(i){this._disabled=wl(i)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=Ki({type:e,hostVars:1,hostBindings:function(r,o){r&2&&Et("aria-disabled",o.disabled)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},standalone:!0});let n=e;return n})(),EEt=(()=>{let e=class e{set lines(i){this._explicitLines=Qh(i,null),this._updateItemLines(!1)}get disableRipple(){return this.disabled||this._disableRipple||this._noopAnimations||!!this._listBase?.disableRipple}set disableRipple(i){this._disableRipple=wl(i)}get disabled(){return this._disabled||!!this._listBase?.disabled}set disabled(i){this._disabled=wl(i)}get rippleDisabled(){return this.disableRipple||!!this.rippleConfig.disabled}constructor(i,r,o,s,c,h){this._elementRef=i,this._ngZone=r,this._listBase=o,this._platform=s,this._explicitLines=null,this._disableRipple=!1,this._disabled=!1,this._subscriptions=new Qo,this._rippleRenderer=null,this._hasUnscopedTextContent=!1,this.rippleConfig=c||{},this._hostElement=this._elementRef.nativeElement,this._isButtonElement=this._hostElement.nodeName.toLowerCase()==="button",this._noopAnimations=h==="NoopAnimations",o&&!o._isNonInteractive&&this._initInteractiveListItem(),this._isButtonElement&&!this._hostElement.hasAttribute("type")&&this._hostElement.setAttribute("type","button")}ngAfterViewInit(){this._monitorProjectedLinesAndTitle(),this._updateItemLines(!0)}ngOnDestroy(){this._subscriptions.unsubscribe(),this._rippleRenderer!==null&&this._rippleRenderer._removeTriggerEvents()}_hasIconOrAvatar(){return!!(this._avatars.length||this._icons.length)}_initInteractiveListItem(){this._hostElement.classList.add("mat-mdc-list-item-interactive"),this._rippleRenderer=new Z8(this,this._ngZone,this._hostElement,this._platform),this._rippleRenderer.setupTriggerEvents(this._hostElement)}_monitorProjectedLinesAndTitle(){this._ngZone.runOutsideAngular(()=>{this._subscriptions.add(Da(this._lines.changes,this._titles.changes).subscribe(()=>this._updateItemLines(!1)))})}_updateItemLines(i){if(!this._lines||!this._titles||!this._unscopedContent)return;i&&this._checkDomForUnscopedTextContent();let r=this._explicitLines??this._inferLinesFromContent(),o=this._unscopedContent.nativeElement;if(this._hostElement.classList.toggle("mat-mdc-list-item-single-line",r<=1),this._hostElement.classList.toggle("mdc-list-item--with-one-line",r<=1),this._hostElement.classList.toggle("mdc-list-item--with-two-lines",r===2),this._hostElement.classList.toggle("mdc-list-item--with-three-lines",r===3),this._hasUnscopedTextContent){let s=this._titles.length===0&&r===1;o.classList.toggle("mdc-list-item__primary-text",s),o.classList.toggle("mdc-list-item__secondary-text",!s)}else o.classList.remove("mdc-list-item__primary-text"),o.classList.remove("mdc-list-item__secondary-text")}_inferLinesFromContent(){let i=this._titles.length+this._lines.length;return this._hasUnscopedTextContent&&(i+=1),i}_checkDomForUnscopedTextContent(){this._hasUnscopedTextContent=Array.from(this._unscopedContent.nativeElement.childNodes).filter(i=>i.nodeType!==i.COMMENT_NODE).some(i=>!!(i.textContent&&i.textContent.trim()))}};e.\u0275fac=function(r){return new(r||e)(oe(Ai),oe(Zi),oe(dne,8),oe(zo),oe(CT,8),oe(da,8))},e.\u0275dir=Ki({type:e,contentQueries:function(r,o,s){if(r&1&&(gr(s,CEt,4),gr(s,HSe,4)),r&2){let c;Di(c=ki())&&(o._avatars=c),Di(c=ki())&&(o._icons=c)}},hostVars:4,hostBindings:function(r,o){r&2&&(Et("aria-disabled",o.disabled)("disabled",o._isButtonElement&&o.disabled||null),$n("mdc-list-item--disabled",o.disabled))},inputs:{lines:"lines",disableRipple:"disableRipple",disabled:"disabled"},standalone:!0});let n=e;return n})();var UHe=(()=>{let e=class e extends dne{};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=Qn(e)))(o||e)}})(),e.\u0275cmp=Ct({type:e,selectors:[["mat-list"]],hostAttrs:[1,"mat-mdc-list","mat-mdc-list-base","mdc-list"],exportAs:["matList"],standalone:!0,features:[Co([{provide:dne,useExisting:e}]),Li,Ot],ngContentSelectors:mEt,decls:1,vars:0,template:function(r,o){r&1&&(Yr(),Gn(0))},styles:[gEt],encapsulation:2,changeDetection:0});let n=e;return n})(),jHe=(()=>{let e=class e extends EEt{get activated(){return this._activated}set activated(i){this._activated=wl(i)}constructor(i,r,o,s,c,h){super(i,r,o,s,c,h),this._activated=!1}_getAriaCurrent(){return this._hostElement.nodeName==="A"&&this._activated?"page":null}};e.\u0275fac=function(r){return new(r||e)(oe(Ai),oe(Zi),oe(dne,8),oe(zo),oe(CT,8),oe(da,8))},e.\u0275cmp=Ct({type:e,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(r,o,s){if(r&1&&(gr(s,jSe,5),gr(s,USe,5),gr(s,wEt,5)),r&2){let c;Di(c=ki())&&(o._lines=c),Di(c=ki())&&(o._titles=c),Di(c=ki())&&(o._meta=c)}},viewQuery:function(r,o){if(r&1&&(Xn(_Et,5),Xn(vEt,5)),r&2){let s;Di(s=ki())&&(o._unscopedContent=s.first),Di(s=ki())&&(o._itemText=s.first)}},hostAttrs:[1,"mat-mdc-list-item","mdc-list-item"],hostVars:11,hostBindings:function(r,o){r&2&&(Et("aria-current",o._getAriaCurrent()),$n("mdc-list-item--activated",o.activated)("mdc-list-item--with-leading-avatar",o._avatars.length!==0)("mdc-list-item--with-leading-icon",o._icons.length!==0)("mdc-list-item--with-trailing-meta",o._meta.length!==0)("_mat-animation-noopable",o._noopAnimations))},inputs:{activated:"activated"},exportAs:["matListItem"],standalone:!0,features:[Li,Ot],ngContentSelectors:bEt,decls:10,vars:0,consts:[["unscopedContent",""],[1,"mdc-list-item__content"],[1,"mat-mdc-list-item-unscoped-content",3,"cdkObserveContent"],[1,"mat-mdc-focus-indicator"]],template:function(r,o){if(r&1){let s=Fi();Yr(yEt),Gn(0),se(1,"span",1),Gn(2,1),Gn(3,2),se(4,"span",2,0),At("cdkObserveContent",function(){return ht(s),pt(o._updateItemLines(!0))}),Gn(6,3),ce()(),Gn(7,4),Gn(8,5),bt(9,"div",3)}},dependencies:[aje],encapsulation:2,changeDetection:0});let n=e;return n})();var HHe=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=Oi({type:e}),e.\u0275inj=Mi({imports:[WB,os,ro,Gb,hSe,$b]});let n=e;return n})();var TEt=["determinateSpinner"];function AEt(n,e){if(n&1&&(Rr(),se(0,"svg",11),bt(1,"circle",12),ce()),n&2){let t=le();Et("viewBox",t._viewBox()),Z(),ld("stroke-dasharray",t._strokeCircumference(),"px")("stroke-dashoffset",t._strokeCircumference()/2,"px")("stroke-width",t._circleStrokeWidth(),"%"),Et("r",t._circleRadius())}}var DEt=new fi("mat-progress-spinner-default-options",{providedIn:"root",factory:kEt});function kEt(){return{diameter:GHe}}var GHe=100,MEt=10,YHe=(()=>{let e=class e{get color(){return this._color||this._defaultColor}set color(i){this._color=i}constructor(i,r,o){this._elementRef=i,this._defaultColor="primary",this._value=0,this._diameter=GHe,this._noopAnimations=r==="NoopAnimations"&&!!o&&!o._forceAnimations,this.mode=i.nativeElement.nodeName.toLowerCase()==="mat-spinner"?"indeterminate":"determinate",o&&(o.color&&(this.color=this._defaultColor=o.color),o.diameter&&(this.diameter=o.diameter),o.strokeWidth&&(this.strokeWidth=o.strokeWidth))}get value(){return this.mode==="determinate"?this._value:0}set value(i){this._value=Math.max(0,Math.min(100,i||0))}get diameter(){return this._diameter}set diameter(i){this._diameter=i||0}get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(i){this._strokeWidth=i||0}_circleRadius(){return(this.diameter-MEt)/2}_viewBox(){let i=this._circleRadius()*2+this.strokeWidth;return`0 0 ${i} ${i}`}_strokeCircumference(){return 2*Math.PI*this._circleRadius()}_strokeDashOffset(){return this.mode==="determinate"?this._strokeCircumference()*(100-this._value)/100:null}_circleStrokeWidth(){return this.strokeWidth/this.diameter*100}};e.\u0275fac=function(r){return new(r||e)(oe(Ai),oe(da,8),oe(DEt))},e.\u0275cmp=Ct({type:e,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(r,o){if(r&1&&Xn(TEt,5),r&2){let s;Di(s=ki())&&(o._determinateCircle=s.first)}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:18,hostBindings:function(r,o){r&2&&(Et("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow",o.mode==="determinate"?o.value:null)("mode",o.mode),vn("mat-"+o.color),ld("width",o.diameter,"px")("height",o.diameter,"px")("--mdc-circular-progress-size",o.diameter+"px")("--mdc-circular-progress-active-indicator-width",o.diameter+"px"),$n("_mat-animation-noopable",o._noopAnimations)("mdc-circular-progress--indeterminate",o.mode==="indeterminate"))},inputs:{color:"color",mode:"mode",value:[2,"value","value",xr],diameter:[2,"diameter","diameter",xr],strokeWidth:[2,"strokeWidth","strokeWidth",xr]},exportAs:["matProgressSpinner"],standalone:!0,features:[Ir,Ot],decls:14,vars:11,consts:[["circle",""],["determinateSpinner",""],["aria-hidden","true",1,"mdc-circular-progress__determinate-container"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__determinate-circle-graphic"],["cx","50%","cy","50%",1,"mdc-circular-progress__determinate-circle"],["aria-hidden","true",1,"mdc-circular-progress__indeterminate-container"],[1,"mdc-circular-progress__spinner-layer"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-left"],[3,"ngTemplateOutlet"],[1,"mdc-circular-progress__gap-patch"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-right"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__indeterminate-circle-graphic"],["cx","50%","cy","50%"]],template:function(r,o){if(r&1&&(Ne(0,AEt,2,8,"ng-template",null,0,ws),se(2,"div",2,1),Rr(),se(4,"svg",3),bt(5,"circle",4),ce()(),sO(),se(6,"div",5)(7,"div",6)(8,"div",7),Pn(9,8),ce(),se(10,"div",9),Pn(11,8),ce(),se(12,"div",10),Pn(13,8),ce()()()),r&2){let s=_r(1);Z(4),Et("viewBox",o._viewBox()),Z(),ld("stroke-dasharray",o._strokeCircumference(),"px")("stroke-dashoffset",o._strokeDashOffset(),"px")("stroke-width",o._circleStrokeWidth(),"%"),Et("r",o._circleRadius()),Z(4),J("ngTemplateOutlet",s),Z(2),J("ngTemplateOutlet",s),Z(2),J("ngTemplateOutlet",s)}},dependencies:[Rs],styles:["@keyframes mdc-circular-progress-container-rotate{to{transform:rotate(360deg)}}@keyframes mdc-circular-progress-spinner-layer-rotate{12.5%{transform:rotate(135deg)}25%{transform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(945deg)}100%{transform:rotate(1080deg)}}@keyframes mdc-circular-progress-color-1-fade-in-out{from{opacity:.99}25%{opacity:.99}26%{opacity:0}89%{opacity:0}90%{opacity:.99}to{opacity:.99}}@keyframes mdc-circular-progress-color-2-fade-in-out{from{opacity:0}15%{opacity:0}25%{opacity:.99}50%{opacity:.99}51%{opacity:0}to{opacity:0}}@keyframes mdc-circular-progress-color-3-fade-in-out{from{opacity:0}40%{opacity:0}50%{opacity:.99}75%{opacity:.99}76%{opacity:0}to{opacity:0}}@keyframes mdc-circular-progress-color-4-fade-in-out{from{opacity:0}65%{opacity:0}75%{opacity:.99}90%{opacity:.99}to{opacity:0}}@keyframes mdc-circular-progress-left-spin{from{transform:rotate(265deg)}50%{transform:rotate(130deg)}to{transform:rotate(265deg)}}@keyframes mdc-circular-progress-right-spin{from{transform:rotate(-265deg)}50%{transform:rotate(-130deg)}to{transform:rotate(-265deg)}}.mdc-circular-progress{display:inline-flex;position:relative;direction:ltr;line-height:0;transition:opacity 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-circular-progress__determinate-container,.mdc-circular-progress__indeterminate-circle-graphic,.mdc-circular-progress__indeterminate-container,.mdc-circular-progress__spinner-layer{position:absolute;width:100%;height:100%}.mdc-circular-progress__determinate-container{transform:rotate(-90deg)}.mdc-circular-progress__indeterminate-container{font-size:0;letter-spacing:0;white-space:nowrap;opacity:0}.mdc-circular-progress__determinate-circle-graphic,.mdc-circular-progress__indeterminate-circle-graphic{fill:rgba(0,0,0,0)}.mdc-circular-progress__determinate-circle{transition:stroke-dashoffset 500ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-circular-progress__gap-patch{position:absolute;top:0;left:47.5%;box-sizing:border-box;width:5%;height:100%;overflow:hidden}.mdc-circular-progress__gap-patch .mdc-circular-progress__indeterminate-circle-graphic{left:-900%;width:2000%;transform:rotate(180deg)}.mdc-circular-progress__circle-clipper{display:inline-flex;position:relative;width:50%;height:100%;overflow:hidden}.mdc-circular-progress__circle-clipper .mdc-circular-progress__indeterminate-circle-graphic{width:200%}.mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{left:-100%}.mdc-circular-progress--indeterminate .mdc-circular-progress__determinate-container{opacity:0}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{opacity:1}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{animation:mdc-circular-progress-container-rotate 1568.2352941176ms linear infinite}.mdc-circular-progress--indeterminate .mdc-circular-progress__spinner-layer{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-1{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-1-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-2{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-2-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-3{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-3-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-4{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-4-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-left .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-left-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-right-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--closed{opacity:0}.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:var(--mdc-circular-progress-active-indicator-color)}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}.mat-mdc-progress-spinner circle{stroke-width:var(--mdc-circular-progress-active-indicator-width)}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-1 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-2 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-3 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-4 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}.mat-mdc-progress-spinner .mdc-circular-progress{width:var(--mdc-circular-progress-size) !important;height:var(--mdc-circular-progress-size) !important}.mat-mdc-progress-spinner{display:block;overflow:hidden;line-height:0}.mat-mdc-progress-spinner._mat-animation-noopable,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__determinate-circle{transition:none}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__spinner-layer,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container{animation:none}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container circle{stroke-dasharray:0 !important}.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic,.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle{stroke:currentColor;stroke:CanvasText}"],encapsulation:2,changeDetection:0});let n=e;return n})();var qHe=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=Oi({type:e}),e.\u0275inj=Mi({imports:[os,ro]});let n=e;return n})();function REt(n,e){return Math.round(n/e)*e}function $He(n){return typeof n=="number"&&!isNaN(n)&&isFinite(n)}function NEt(n){return Array.isArray(n)?n:[n]}function PEt(n){n=String(n);var e=n.split(".");return e.length>1?e[1].length:0}function YSe(n,e){return 100/(e-n)}function GSe(n,e,t){return e*100/(n[t+1]-n[t])}function FEt(n,e){return GSe(n,n[0]<0?e+Math.abs(n[0]):e-n[0],0)}function LEt(n,e){return e*(n[1]-n[0])/100+n[0]}function vG(n,e){for(var t=1;n>=e[t];)t+=1;return t}function BEt(n,e,t){if(t>=n.slice(-1)[0])return 100;var i=vG(t,n),r=n[i-1],o=n[i],s=e[i-1],c=e[i];return s+FEt([r,o],t)/YSe(s,c)}function zEt(n,e,t){if(t>=100)return n.slice(-1)[0];var i=vG(t,e),r=n[i-1],o=n[i],s=e[i-1],c=e[i];return LEt([r,o],(t-s)*YSe(s,c))}function VEt(n,e,t,i){if(i===100)return i;var r=vG(i,n),o=n[r-1],s=n[r];return t?i-o>(s-o)/2?s:o:e[r-1]?n[r-1]+REt(i-n[r-1],e[r-1]):i}var UMi=function(){function n(e,t,i){this.xPct=[],this.xVal=[],this.xSteps=[],this.xNumSteps=[],this.xHighestCompleteStep=[],this.xSteps=[i||!1],this.xNumSteps=[!1],this.snap=t;var r,o=[];for(Object.keys(e).forEach(function(s){o.push([NEt(e[s]),s])}),o.sort(function(s,c){return s[0][0]-c[0][0]}),r=0;rthis.xPct[r+1];)r++;else e===this.xPct[this.xPct.length-1]&&(r=this.xPct.length-2);!i&&e===this.xPct[r+1]&&r++,t===null&&(t=[]);var o,s=1,c=t[r],h=0,g=0,x=0,C=0;for(i?o=(e-this.xPct[r])/(this.xPct[r+1]-this.xPct[r]):o=(this.xPct[r+1]-e)/(this.xPct[r+1]-this.xPct[r]);c>0;)h=this.xPct[r+1+C]-this.xPct[r+C],t[r+C]*s+100-o*100>100?(g=h*o,s=(c-100*o)/t[r+C],o=1):(g=t[r+C]*h/100*s,s=0),i?(x=x-g,this.xPct.length+C>=1&&C--):(x=x+g,this.xPct.length-C>=1&&C++),c=t[r+C]*s;return e+x},n.prototype.toStepping=function(e){return e=BEt(this.xVal,this.xPct,e),e},n.prototype.fromStepping=function(e){return zEt(this.xVal,this.xPct,e)},n.prototype.getStep=function(e){return e=VEt(this.xPct,this.xSteps,this.snap,e),e},n.prototype.getDefaultStep=function(e,t,i){var r=vG(e,this.xPct);return(e===100||t&&e===this.xPct[r-1])&&(r=Math.max(r-1,1)),(this.xVal[r]-this.xVal[r-1])/i},n.prototype.getNearbySteps=function(e){var t=vG(e,this.xPct);return{stepBefore:{startValue:this.xVal[t-2],step:this.xNumSteps[t-2],highestStep:this.xHighestCompleteStep[t-2]},thisStep:{startValue:this.xVal[t-1],step:this.xNumSteps[t-1],highestStep:this.xHighestCompleteStep[t-1]},stepAfter:{startValue:this.xVal[t],step:this.xNumSteps[t],highestStep:this.xHighestCompleteStep[t]}}},n.prototype.countStepDecimals=function(){var e=this.xNumSteps.map(PEt);return Math.max.apply(null,e)},n.prototype.hasNoSize=function(){return this.xVal[0]===this.xVal[this.xVal.length-1]},n.prototype.convert=function(e){return this.getStep(this.toStepping(e))},n.prototype.handleEntryPoint=function(e,t){var i;if(e==="min"?i=0:e==="max"?i=100:i=parseFloat(e),!$He(i)||!$He(t[0]))throw new Error("noUiSlider: 'range' value isn't numeric.");this.xPct.push(i),this.xVal.push(t[0]);var r=Number(t[1]);i?this.xSteps.push(isNaN(r)?!1:r):isNaN(r)||(this.xSteps[0]=r),this.xHighestCompleteStep.push(0)},n.prototype.handleStepPoint=function(e,t){if(t){if(this.xVal[e]===this.xVal[e+1]){this.xSteps[e]=this.xHighestCompleteStep[e]=this.xVal[e];return}this.xSteps[e]=GSe([this.xVal[e],this.xVal[e+1]],t,0)/YSe(this.xPct[e],this.xPct[e+1]);var i=(this.xVal[e+1]-this.xVal[e])/this.xNumSteps[e],r=Math.ceil(Number(i.toFixed(3))-1),o=this.xVal[e]+this.xNumSteps[e]*r;this.xHighestCompleteStep[e]=o}},n}();var KHe=T_({passive:!0}),WHe=(()=>{let e=class e{constructor(i,r){this._platform=i,this._ngZone=r,this._monitoredElements=new Map}monitor(i){if(!this._platform.isBrowser)return uu;let r=Yf(i),o=this._monitoredElements.get(r);if(o)return o.subject;let s=new mi,c="cdk-text-field-autofilled",h=g=>{g.animationName==="cdk-text-field-autofill-start"&&!r.classList.contains(c)?(r.classList.add(c),this._ngZone.run(()=>s.next({target:g.target,isAutofilled:!0}))):g.animationName==="cdk-text-field-autofill-end"&&r.classList.contains(c)&&(r.classList.remove(c),this._ngZone.run(()=>s.next({target:g.target,isAutofilled:!1})))};return this._ngZone.runOutsideAngular(()=>{r.addEventListener("animationstart",h,KHe),r.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(r,{subject:s,unlisten:()=>{r.removeEventListener("animationstart",h,KHe)}}),s}stopMonitoring(i){let r=Yf(i),o=this._monitoredElements.get(r);o&&(o.unlisten(),o.subject.complete(),r.classList.remove("cdk-text-field-autofill-monitored"),r.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(r))}ngOnDestroy(){this._monitoredElements.forEach((i,r)=>this.stopMonitoring(r))}};e.\u0275fac=function(r){return new(r||e)(Ke(zo),Ke(Zi))},e.\u0275prov=It({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var ZHe=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=Oi({type:e}),e.\u0275inj=Mi({});let n=e;return n})();var qSe=class{constructor(e){this._box=e,this._destroyed=new mi,this._resizeSubject=new mi,this._elementObservables=new Map,typeof ResizeObserver<"u"&&(this._resizeObserver=new ResizeObserver(t=>this._resizeSubject.next(t)))}observe(e){return this._elementObservables.has(e)||this._elementObservables.set(e,new fo(t=>{let i=this._resizeSubject.subscribe(t);return this._resizeObserver?.observe(e,{box:this._box}),()=>{this._resizeObserver?.unobserve(e),i.unsubscribe(),this._elementObservables.delete(e)}}).pipe(Wn(t=>t.some(i=>i.target===e)),dl({bufferSize:1,refCount:!0}),hr(this._destroyed))),this._elementObservables.get(e)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}},QHe=(()=>{let e=class e{constructor(){this._observers=new Map,this._ngZone=ai(Zi),typeof ResizeObserver<"u"}ngOnDestroy(){for(let[,i]of this._observers)i.destroy();this._observers.clear(),typeof ResizeObserver<"u"}observe(i,r){let o=r?.box||"content-box";return this._observers.has(o)||this._observers.set(o,new qSe(o)),this._observers.get(o).observe(i)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=It({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var jEt=["notch"],HEt=["matFormFieldNotchedOutline",""],GEt=["*"],YEt=["textField"],qEt=["iconPrefixContainer"],$Et=["textPrefixContainer"],KEt=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],WEt=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];function ZEt(n,e){n&1&&bt(0,"span",19)}function QEt(n,e){if(n&1&&(se(0,"label",18),Gn(1,1),Ne(2,ZEt,1,0,"span",19),ce()),n&2){let t=le(2);J("floating",t._shouldLabelFloat())("monitorResize",t._hasOutline())("id",t._labelId),Et("for",t._control.disableAutomaticLabeling?null:t._control.id),Z(2),Hi(!t.hideRequiredMarker&&t._control.required?2:-1)}}function XEt(n,e){if(n&1&&Ne(0,QEt,3,5,"label",18),n&2){let t=le();Hi(t._hasFloatingLabel()?0:-1)}}function JEt(n,e){n&1&&bt(0,"div",5)}function eIt(n,e){}function tIt(n,e){if(n&1&&Ne(0,eIt,0,0,"ng-template",11),n&2){le(2);let t=_r(1);J("ngTemplateOutlet",t)}}function iIt(n,e){if(n&1&&(se(0,"div",7),Ne(1,tIt,1,1,null,11),ce()),n&2){let t=le();J("matFormFieldNotchedOutlineOpen",t._shouldLabelFloat()),Z(),Hi(t._forceDisplayInfixLabel()?-1:1)}}function nIt(n,e){n&1&&(se(0,"div",8,2),Gn(2,2),ce())}function rIt(n,e){n&1&&(se(0,"div",9,3),Gn(2,3),ce())}function oIt(n,e){}function sIt(n,e){if(n&1&&Ne(0,oIt,0,0,"ng-template",11),n&2){le();let t=_r(1);J("ngTemplateOutlet",t)}}function aIt(n,e){n&1&&(se(0,"div",12),Gn(1,4),ce())}function lIt(n,e){n&1&&(se(0,"div",13),Gn(1,5),ce())}function cIt(n,e){n&1&&bt(0,"div",14)}function uIt(n,e){if(n&1&&(se(0,"div",16),Gn(1,6),ce()),n&2){let t=le();J("@transitionMessages",t._subscriptAnimationState)}}function dIt(n,e){if(n&1&&(se(0,"mat-hint",20),yt(1),ce()),n&2){let t=le(2);J("id",t._hintLabelId),Z(),jn(t.hintLabel)}}function hIt(n,e){if(n&1&&(se(0,"div",17),Ne(1,dIt,2,2,"mat-hint",20),Gn(2,7),bt(3,"div",21),Gn(4,8),ce()),n&2){let t=le();J("@transitionMessages",t._subscriptAnimationState),Z(),Hi(t.hintLabel?1:-1)}}var pne=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=Ki({type:e,selectors:[["mat-label"]],standalone:!0});let n=e;return n})();var pIt=new fi("MatError");var fIt=0,XHe=(()=>{let e=class e{constructor(){this.align="start",this.id=`mat-mdc-hint-${fIt++}`}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=Ki({type:e,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(r,o){r&2&&(Pu("id",o.id),Et("align",null),$n("mat-mdc-form-field-hint-end",o.align==="end"))},inputs:{align:"align",id:"id"},standalone:!0});let n=e;return n})(),mIt=new fi("MatPrefix");var gIt=new fi("MatSuffix");var s8e=new fi("FloatingLabelParent"),JHe=(()=>{let e=class e{get floating(){return this._floating}set floating(i){this._floating=i,this.monitorResize&&this._handleResize()}get monitorResize(){return this._monitorResize}set monitorResize(i){this._monitorResize=i,this._monitorResize?this._subscribeToResize():this._resizeSubscription.unsubscribe()}constructor(i){this._elementRef=i,this._floating=!1,this._monitorResize=!1,this._resizeObserver=ai(QHe),this._ngZone=ai(Zi),this._parent=ai(s8e),this._resizeSubscription=new Qo}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return _It(this._elementRef.nativeElement)}get element(){return this._elementRef.nativeElement}_handleResize(){setTimeout(()=>this._parent._handleLabelResized())}_subscribeToResize(){this._resizeSubscription.unsubscribe(),this._ngZone.runOutsideAngular(()=>{this._resizeSubscription=this._resizeObserver.observe(this._elementRef.nativeElement,{box:"border-box"}).subscribe(()=>this._handleResize())})}};e.\u0275fac=function(r){return new(r||e)(oe(Ai))},e.\u0275dir=Ki({type:e,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(r,o){r&2&&$n("mdc-floating-label--float-above",o.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"},standalone:!0});let n=e;return n})();function _It(n){let e=n;if(e.offsetParent!==null)return e.scrollWidth;let t=e.cloneNode(!0);t.style.setProperty("position","absolute"),t.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(t);let i=t.scrollWidth;return t.remove(),i}var e8e="mdc-line-ripple--active",hne="mdc-line-ripple--deactivating",t8e=(()=>{let e=class e{constructor(i,r){this._elementRef=i,this._handleTransitionEnd=o=>{let s=this._elementRef.nativeElement.classList,c=s.contains(hne);o.propertyName==="opacity"&&c&&s.remove(e8e,hne)},r.runOutsideAngular(()=>{i.nativeElement.addEventListener("transitionend",this._handleTransitionEnd)})}activate(){let i=this._elementRef.nativeElement.classList;i.remove(hne),i.add(e8e)}deactivate(){this._elementRef.nativeElement.classList.add(hne)}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._handleTransitionEnd)}};e.\u0275fac=function(r){return new(r||e)(oe(Ai),oe(Zi))},e.\u0275dir=Ki({type:e,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"],standalone:!0});let n=e;return n})(),i8e=(()=>{let e=class e{constructor(i,r){this._elementRef=i,this._ngZone=r,this.open=!1}ngAfterViewInit(){let i=this._elementRef.nativeElement.querySelector(".mdc-floating-label");i?(this._elementRef.nativeElement.classList.add("mdc-notched-outline--upgraded"),typeof requestAnimationFrame=="function"&&(i.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>i.style.transitionDuration="")}))):this._elementRef.nativeElement.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(i){!this.open||!i?this._notch.nativeElement.style.width="":this._notch.nativeElement.style.width=`calc(${i}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`}};e.\u0275fac=function(r){return new(r||e)(oe(Ai),oe(Zi))},e.\u0275cmp=Ct({type:e,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(r,o){if(r&1&&Xn(jEt,5),r&2){let s;Di(s=ki())&&(o._notch=s.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(r,o){r&2&&$n("mdc-notched-outline--notched",o.open)},inputs:{open:[0,"matFormFieldNotchedOutlineOpen","open"]},standalone:!0,features:[Ot],attrs:HEt,ngContentSelectors:GEt,decls:5,vars:0,consts:[["notch",""],[1,"mdc-notched-outline__leading"],[1,"mdc-notched-outline__notch"],[1,"mdc-notched-outline__trailing"]],template:function(r,o){r&1&&(Yr(),bt(0,"div",1),se(1,"div",2,0),Gn(3),ce(),bt(4,"div",3))},encapsulation:2,changeDetection:0});let n=e;return n})(),vIt={transitionMessages:jl("transitionMessages",[nl("enter",qr({opacity:1,transform:"translateY(0%)"})),$s("void => enter",[qr({opacity:0,transform:"translateY(-5px)"}),Ps("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},fR=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=Ki({type:e});let n=e;return n})();var pC=new fi("MatFormField"),yIt=new fi("MAT_FORM_FIELD_DEFAULT_OPTIONS"),n8e=0,r8e="fill",bIt="auto",o8e="fixed",xIt="translateY(-50%)",zT=(()=>{let e=class e{get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(i){this._hideRequiredMarker=wl(i)}get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||bIt}set floatLabel(i){i!==this._floatLabel&&(this._floatLabel=i,this._changeDetectorRef.markForCheck())}get appearance(){return this._appearance}set appearance(i){let r=this._appearance,o=i||this._defaults?.appearance||r8e;this._appearance=o,this._appearance==="outline"&&this._appearance!==r&&(this._needsOutlineLabelOffsetUpdate=!0)}get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||o8e}set subscriptSizing(i){this._subscriptSizing=i||this._defaults?.subscriptSizing||o8e}get hintLabel(){return this._hintLabel}set hintLabel(i){this._hintLabel=i,this._processHints()}get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(i){this._explicitFormFieldControl=i}constructor(i,r,o,s,c,h,g,x){this._elementRef=i,this._changeDetectorRef=r,this._dir=s,this._platform=c,this._defaults=h,this._animationMode=g,this._hideRequiredMarker=!1,this.color="primary",this._appearance=r8e,this._subscriptSizing=null,this._hintLabel="",this._hasIconPrefix=!1,this._hasTextPrefix=!1,this._hasIconSuffix=!1,this._hasTextSuffix=!1,this._labelId=`mat-mdc-form-field-label-${n8e++}`,this._hintLabelId=`mat-mdc-hint-${n8e++}`,this._subscriptAnimationState="",this._destroyed=new mi,this._isFocused=null,this._needsOutlineLabelOffsetUpdate=!1,this._injector=ai(yo),h&&(h.appearance&&(this.appearance=h.appearance),this._hideRequiredMarker=!!h?.hideRequiredMarker,h.color&&(this.color=h.color))}ngAfterViewInit(){this._updateFocusState(),this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeControl(),this._initializeSubscript(),this._initializePrefixAndSuffix(),this._initializeOutlineLabelOffsetSubscriptions()}ngAfterContentChecked(){this._assertFormFieldControl()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(){let i=this._control;i.controlType&&this._elementRef.nativeElement.classList.add(`mat-mdc-form-field-type-${i.controlType}`),i.stateChanges.subscribe(()=>{this._updateFocusState(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),i.ngControl&&i.ngControl.valueChanges&&i.ngControl.valueChanges.pipe(hr(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck())}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(i=>!i._isText),this._hasTextPrefix=!!this._prefixChildren.find(i=>i._isText),this._hasIconSuffix=!!this._suffixChildren.find(i=>!i._isText),this._hasTextSuffix=!!this._suffixChildren.find(i=>i._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),Da(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._checkPrefixAndSuffixTypes(),this._changeDetectorRef.markForCheck()})}_initializeSubscript(){this._hintChildren.changes.subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._validateHints(),this._syncDescribedByIds()}_assertFormFieldControl(){this._control}_updateFocusState(){this._control.focused&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!this._control.focused&&(this._isFocused||this._isFocused===null)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",this._control.focused)}_initializeOutlineLabelOffsetSubscriptions(){this._prefixChildren.changes.subscribe(()=>this._needsOutlineLabelOffsetUpdate=!0),iH(()=>{this._needsOutlineLabelOffsetUpdate&&(this._needsOutlineLabelOffsetUpdate=!1,this._updateOutlineLabelOffset())},{injector:this._injector}),this._dir.change.pipe(hr(this._destroyed)).subscribe(()=>this._needsOutlineLabelOffsetUpdate=!0)}_shouldAlwaysFloat(){return this.floatLabel==="always"}_hasOutline(){return this.appearance==="outline"}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_hasFloatingLabel(){return!!this._labelChildNonStatic||!!this._labelChildStatic}_shouldLabelFloat(){return this._control.shouldLabelFloat||this._shouldAlwaysFloat()}_shouldForward(i){let r=this._control?this._control.ngControl:null;return r&&r[i]}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_handleLabelResized(){this._refreshOutlineNotchWidth()}_refreshOutlineNotchWidth(){!this._hasOutline()||!this._floatingLabel||!this._shouldLabelFloat()?this._notchedOutline?._setNotchWidth(0):this._notchedOutline?._setNotchWidth(this._floatingLabel.getWidth())}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){this._hintChildren}_syncDescribedByIds(){if(this._control){let i=[];if(this._control.userAriaDescribedBy&&typeof this._control.userAriaDescribedBy=="string"&&i.push(...this._control.userAriaDescribedBy.split(" ")),this._getDisplayedMessages()==="hint"){let r=this._hintChildren?this._hintChildren.find(s=>s.align==="start"):null,o=this._hintChildren?this._hintChildren.find(s=>s.align==="end"):null;r?i.push(r.id):this._hintLabel&&i.push(this._hintLabelId),o&&i.push(o.id)}else this._errorChildren&&i.push(...this._errorChildren.map(r=>r.id));this._control.setDescribedByIds(i)}}_updateOutlineLabelOffset(){if(!this._hasOutline()||!this._floatingLabel)return;let i=this._floatingLabel.element;if(!(this._iconPrefixContainer||this._textPrefixContainer)){i.style.transform="";return}if(!this._isAttachedToDom()){this._needsOutlineLabelOffsetUpdate=!0;return}let r=this._iconPrefixContainer?.nativeElement,o=this._textPrefixContainer?.nativeElement,s=r?.getBoundingClientRect().width??0,c=o?.getBoundingClientRect().width??0,h=this._dir.value==="rtl"?"-1":"1",g=`${s+c}px`,C=`calc(${h} * (${g} + var(--mat-mdc-form-field-label-offset-x, 0px)))`;i.style.transform=`var( --mat-mdc-form-field-label-transform, ${xIt} translateX(${C}) )`}_isAttachedToDom(){let i=this._elementRef.nativeElement;if(i.getRootNode){let r=i.getRootNode();return r&&r!==i}return document.documentElement.contains(i)}};e.\u0275fac=function(r){return new(r||e)(oe(Ai),oe(ur),oe(Zi),oe(pl),oe(zo),oe(yIt,8),oe(da,8),oe(Ln))},e.\u0275cmp=Ct({type:e,selectors:[["mat-form-field"]],contentQueries:function(r,o,s){if(r&1&&(gr(s,pne,5),gr(s,pne,7),gr(s,fR,5),gr(s,mIt,5),gr(s,gIt,5),gr(s,pIt,5),gr(s,XHe,5)),r&2){let c;Di(c=ki())&&(o._labelChildNonStatic=c.first),Di(c=ki())&&(o._labelChildStatic=c.first),Di(c=ki())&&(o._formFieldControl=c.first),Di(c=ki())&&(o._prefixChildren=c),Di(c=ki())&&(o._suffixChildren=c),Di(c=ki())&&(o._errorChildren=c),Di(c=ki())&&(o._hintChildren=c)}},viewQuery:function(r,o){if(r&1&&(Xn(YEt,5),Xn(qEt,5),Xn($Et,5),Xn(JHe,5),Xn(i8e,5),Xn(t8e,5)),r&2){let s;Di(s=ki())&&(o._textField=s.first),Di(s=ki())&&(o._iconPrefixContainer=s.first),Di(s=ki())&&(o._textPrefixContainer=s.first),Di(s=ki())&&(o._floatingLabel=s.first),Di(s=ki())&&(o._notchedOutline=s.first),Di(s=ki())&&(o._lineRipple=s.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:42,hostBindings:function(r,o){r&2&&$n("mat-mdc-form-field-label-always-float",o._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",o._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",o._hasIconSuffix)("mat-form-field-invalid",o._control.errorState)("mat-form-field-disabled",o._control.disabled)("mat-form-field-autofilled",o._control.autofilled)("mat-form-field-no-animations",o._animationMode==="NoopAnimations")("mat-form-field-appearance-fill",o.appearance=="fill")("mat-form-field-appearance-outline",o.appearance=="outline")("mat-form-field-hide-placeholder",o._hasFloatingLabel()&&!o._shouldLabelFloat())("mat-focused",o._control.focused)("mat-primary",o.color!=="accent"&&o.color!=="warn")("mat-accent",o.color==="accent")("mat-warn",o.color==="warn")("ng-untouched",o._shouldForward("untouched"))("ng-touched",o._shouldForward("touched"))("ng-pristine",o._shouldForward("pristine"))("ng-dirty",o._shouldForward("dirty"))("ng-valid",o._shouldForward("valid"))("ng-invalid",o._shouldForward("invalid"))("ng-pending",o._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],standalone:!0,features:[Co([{provide:pC,useExisting:e},{provide:s8e,useExisting:e}]),Ot],ngContentSelectors:WEt,decls:18,vars:21,consts:[["labelTemplate",""],["textField",""],["iconPrefixContainer",""],["textPrefixContainer",""],[1,"mat-mdc-text-field-wrapper","mdc-text-field",3,"click"],[1,"mat-mdc-form-field-focus-overlay"],[1,"mat-mdc-form-field-flex"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen"],[1,"mat-mdc-form-field-icon-prefix"],[1,"mat-mdc-form-field-text-prefix"],[1,"mat-mdc-form-field-infix"],[3,"ngTemplateOutlet"],[1,"mat-mdc-form-field-text-suffix"],[1,"mat-mdc-form-field-icon-suffix"],["matFormFieldLineRipple",""],[1,"mat-mdc-form-field-subscript-wrapper","mat-mdc-form-field-bottom-align"],[1,"mat-mdc-form-field-error-wrapper"],[1,"mat-mdc-form-field-hint-wrapper"],["matFormFieldFloatingLabel","",3,"floating","monitorResize","id"],["aria-hidden","true",1,"mat-mdc-form-field-required-marker","mdc-floating-label--required"],[3,"id"],[1,"mat-mdc-form-field-hint-spacer"]],template:function(r,o){if(r&1){let s=Fi();Yr(KEt),Ne(0,XEt,1,1,"ng-template",null,0,ws),se(2,"div",4,1),At("click",function(h){return ht(s),pt(o._control.onContainerClick(h))}),Ne(4,JEt,1,0,"div",5),se(5,"div",6),Ne(6,iIt,2,2,"div",7)(7,nIt,3,0,"div",8)(8,rIt,3,0,"div",9),se(9,"div",10),Ne(10,sIt,1,1,null,11),Gn(11),ce(),Ne(12,aIt,2,0,"div",12)(13,lIt,2,0,"div",13),ce(),Ne(14,cIt,1,0,"div",14),ce(),se(15,"div",15),Ne(16,uIt,2,1,"div",16)(17,hIt,5,2,"div",17),ce()}if(r&2){let s;Z(2),$n("mdc-text-field--filled",!o._hasOutline())("mdc-text-field--outlined",o._hasOutline())("mdc-text-field--no-label",!o._hasFloatingLabel())("mdc-text-field--disabled",o._control.disabled)("mdc-text-field--invalid",o._control.errorState),Z(2),Hi(!o._hasOutline()&&!o._control.disabled?4:-1),Z(2),Hi(o._hasOutline()?6:-1),Z(),Hi(o._hasIconPrefix?7:-1),Z(),Hi(o._hasTextPrefix?8:-1),Z(2),Hi(!o._hasOutline()||o._forceDisplayInfixLabel()?10:-1),Z(2),Hi(o._hasTextSuffix?12:-1),Z(),Hi(o._hasIconSuffix?13:-1),Z(),Hi(o._hasOutline()?-1:14),Z(),$n("mat-mdc-form-field-subscript-dynamic-size",o.subscriptSizing==="dynamic"),Z(),Hi((s=o._getDisplayedMessages())==="error"?16:s==="hint"?17:-1)}},dependencies:[JHe,i8e,Rs,t8e,XHe],styles:['.mdc-text-field{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:0;border-bottom-left-radius:0;display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-text-field__input{height:28px;width:100%;min-width:0;border:none;border-radius:0;background:none;appearance:none;padding:0}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input::-webkit-calendar-picker-indicator{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}@media all{.mdc-text-field__input::placeholder{opacity:0}}@media all{.mdc-text-field__input:-ms-input-placeholder{opacity:0}}@media all{.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{opacity:1}}@media all{.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{opacity:1}}.mdc-text-field__affix{height:28px;opacity:0;white-space:nowrap}.mdc-text-field--label-floating .mdc-text-field__affix,.mdc-text-field--no-label .mdc-text-field__affix{opacity:1}@supports(-webkit-hyphens: none){.mdc-text-field--outlined .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field__affix--prefix,.mdc-text-field__affix--prefix[dir=rtl]{padding-left:2px;padding-right:0}.mdc-text-field--end-aligned .mdc-text-field__affix--prefix{padding-left:0;padding-right:12px}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--end-aligned .mdc-text-field__affix--prefix[dir=rtl]{padding-left:12px;padding-right:0}.mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field__affix--suffix,.mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:12px}.mdc-text-field--end-aligned .mdc-text-field__affix--suffix{padding-left:2px;padding-right:0}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--end-aligned .mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:2px}.mdc-text-field--filled{height:56px}.mdc-text-field--filled::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}.mdc-text-field--filled .mdc-floating-label{left:16px;right:initial}[dir=rtl] .mdc-text-field--filled .mdc-floating-label,.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:16px}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled.mdc-text-field--no-label::before{display:none}@supports(-webkit-hyphens: none){.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field--outlined{height:56px;overflow:visible}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1)}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--outlined .mdc-text-field__input{height:100%}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px,var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px,var(--mdc-shape-small, 4px))*2)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}@supports(top: max(0%)){.mdc-text-field--outlined{padding-left:max(16px,calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined{padding-right:max(16px,var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-left:max(16px,calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-right:max(16px,var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-left:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-right:max(16px,var(--mdc-shape-small, 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-right:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:max(16px,var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-right:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-left:max(16px,calc(var(--mdc-shape-small, 4px) + 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-right:max(16px,calc(var(--mdc-shape-small, 4px) + 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:initial}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:4px}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:rgba(0,0,0,0)}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mdc-text-field--textarea{flex-direction:column;align-items:center;width:auto;height:auto;padding:0}.mdc-text-field--textarea .mdc-floating-label{top:19px}.mdc-text-field--textarea .mdc-floating-label:not(.mdc-floating-label--float-above){transform:none}.mdc-text-field--textarea .mdc-text-field__input{flex-grow:1;height:auto;min-height:1.5rem;overflow-x:hidden;overflow-y:auto;box-sizing:border-box;resize:none;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--filled::before{display:none}.mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-10.25px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--filled .mdc-text-field__input{margin-top:23px;margin-bottom:9px}.mdc-text-field--textarea.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-27.25px) scale(1)}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-24.75px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label{top:18px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field__input{margin-bottom:2px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter{align-self:flex-end;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::after{display:inline-block;width:0;height:16px;content:"";vertical-align:-16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::before{display:none}.mdc-text-field__resizer{align-self:stretch;display:inline-flex;flex-direction:column;flex-grow:1;max-height:100%;max-width:100%;min-height:56px;min-width:fit-content;min-width:-moz-available;min-width:-webkit-fill-available;overflow:hidden;resize:both}.mdc-text-field--filled .mdc-text-field__resizer{transform:translateY(-1px)}.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateY(1px)}.mdc-text-field--outlined .mdc-text-field__resizer{transform:translateX(-1px) translateY(-1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer,.mdc-text-field--outlined .mdc-text-field__resizer[dir=rtl]{transform:translateX(1px) translateY(-1px)}.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateX(1px) translateY(1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input[dir=rtl],.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter[dir=rtl]{transform:translateX(-1px) translateY(1px)}.mdc-text-field--with-leading-icon{padding-left:0;padding-right:16px}[dir=rtl] .mdc-text-field--with-leading-icon,.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:16px;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 48px);left:48px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:48px}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 64px/0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label{left:36px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:36px}.mdc-text-field--with-leading-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) translateX(-32px) scale(1)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-37.25px) translateX(32px) scale(1)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) translateX(-32px) scale(0.75)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl],.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-34.75px) translateX(32px) scale(0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--with-trailing-icon{padding-left:16px;padding-right:0}[dir=rtl] .mdc-text-field--with-trailing-icon,.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0;padding-right:16px}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 64px)}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 64px/0.75)}.mdc-text-field--with-trailing-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 96px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 96px/0.75)}.mdc-text-field-helper-line{display:flex;justify-content:space-between;box-sizing:border-box}.mdc-text-field+.mdc-text-field-helper-line{padding-right:16px;padding-left:16px}.mdc-form-field>.mdc-text-field+label{align-self:flex-start}.mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--focused .mdc-notched-outline__trailing{border-width:2px}.mdc-text-field--focused+.mdc-text-field-helper-line .mdc-text-field-helper-text:not(.mdc-text-field-helper-text--validation-msg){opacity:1}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-text-field--focused.mdc-text-field--outlined.mdc-text-field--textarea .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--invalid+.mdc-text-field-helper-line .mdc-text-field-helper-text--validation-msg{opacity:1}.mdc-text-field--disabled{pointer-events:none}@media screen and (forced-colors: active){.mdc-text-field--disabled .mdc-text-field__input{background-color:Window}.mdc-text-field--disabled .mdc-floating-label{z-index:1}}.mdc-text-field--disabled .mdc-floating-label{cursor:default}.mdc-text-field--disabled.mdc-text-field--filled .mdc-text-field__ripple{display:none}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--end-aligned .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--end-aligned .mdc-text-field__input[dir=rtl]{text-align:left}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix{direction:ltr}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--leading,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--leading{order:1}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{order:2}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input{order:3}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{order:4}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--trailing,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--trailing{order:5}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--prefix{padding-right:12px}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--suffix{padding-left:2px}.mdc-floating-label{position:absolute;left:0;-webkit-transform-origin:left top;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform}[dir=rtl] .mdc-floating-label,.mdc-floating-label[dir=rtl]{right:0;left:auto;-webkit-transform-origin:right top;transform-origin:right top;text-align:right}.mdc-floating-label--float-above{cursor:auto}.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:1px;margin-right:0px;content:"*"}[dir=rtl] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after,.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)[dir=rtl]::after{margin-left:0;margin-right:1px}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline,.mdc-notched-outline[dir=rtl]{text-align:right}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{box-sizing:border-box;height:100%;pointer-events:none}.mdc-notched-outline__trailing{flex-grow:1}.mdc-notched-outline__notch{flex:0 0 auto;width:auto}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:133.3333333333%}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch,.mdc-notched-outline--notched .mdc-notched-outline__notch[dir=rtl]{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{z-index:1}.mdc-line-ripple::after{transform:scaleX(0);opacity:0;z-index:2}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{border-top:1px solid;border-bottom:1px solid}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;width:12px}[dir=rtl] .mdc-notched-outline__leading,.mdc-notched-outline__leading[dir=rtl]{border-left:none;border-right:1px solid}.mdc-notched-outline__trailing{border-left:none;border-right:1px solid}[dir=rtl] .mdc-notched-outline__trailing,.mdc-notched-outline__trailing[dir=rtl]{border-left:1px solid;border-right:none}.mdc-notched-outline__notch{max-width:calc(100% - 12px*2)}.mdc-line-ripple::before{border-bottom-width:1px}.mdc-line-ripple::after{border-bottom-width:2px}.mdc-text-field--filled{border-top-left-radius:var(--mdc-filled-text-field-container-shape);border-top-right-radius:var(--mdc-filled-text-field-container-shape);border-bottom-right-radius:0;border-bottom-left-radius:0}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-filled-text-field-caret-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-filled-text-field-error-caret-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-filled-text-field-input-text-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-filled-text-field-disabled-input-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-label-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-focus-label-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label,.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-hover-label-text-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-disabled-label-text-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-error-label-text-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-error-focus-label-text-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-error-hover-label-text-color)}.mdc-text-field--filled .mdc-floating-label{font-family:var(--mdc-filled-text-field-label-text-font);font-size:var(--mdc-filled-text-field-label-text-size);font-weight:var(--mdc-filled-text-field-label-text-weight);letter-spacing:var(--mdc-filled-text-field-label-text-tracking)}@media all{.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color)}}@media all{.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color)}}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:var(--mdc-filled-text-field-container-color)}.mdc-text-field--filled.mdc-text-field--disabled{background-color:var(--mdc-filled-text-field-disabled-container-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-active-indicator-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-hover-active-indicator-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-focus-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-disabled-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-hover-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-error-focus-active-indicator-color)}.mdc-text-field--filled .mdc-line-ripple::before{border-bottom-width:var(--mdc-filled-text-field-active-indicator-height)}.mdc-text-field--filled .mdc-line-ripple::after{border-bottom-width:var(--mdc-filled-text-field-focus-active-indicator-height)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-outlined-text-field-caret-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-outlined-text-field-error-caret-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-outlined-text-field-input-text-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-outlined-text-field-disabled-input-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-label-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-focus-label-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-hover-label-text-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-disabled-label-text-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-error-label-text-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-error-focus-label-text-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-error-hover-label-text-color)}.mdc-text-field--outlined .mdc-floating-label{font-family:var(--mdc-outlined-text-field-label-text-font);font-size:var(--mdc-outlined-text-field-label-text-size);font-weight:var(--mdc-outlined-text-field-label-text-weight);letter-spacing:var(--mdc-outlined-text-field-label-text-tracking)}@media all{.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color)}}@media all{.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color)}}.mdc-text-field--outlined.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:calc(.75*var(--mdc-outlined-text-field-label-text-size))}.mdc-text-field--outlined.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:var(--mdc-outlined-text-field-label-text-size)}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:var(--mdc-outlined-text-field-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape)}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px,var(--mdc-outlined-text-field-container-shape))}}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px,var(--mdc-outlined-text-field-container-shape))*2)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-left-radius:0}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:var(--mdc-outlined-text-field-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape)}@supports(top: max(0%)){.mdc-text-field--outlined{padding-left:max(16px,calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined{padding-right:max(16px,var(--mdc-outlined-text-field-container-shape))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-left:max(16px,calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-right:max(16px,var(--mdc-outlined-text-field-container-shape))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-left:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-right:max(16px,var(--mdc-outlined-text-field-container-shape))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-right:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:max(16px,var(--mdc-outlined-text-field-container-shape))}}.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-right:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-left:max(16px,calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-right:max(16px,calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-hover-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-focus-outline-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-disabled-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-hover-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-focus-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__trailing{border-width:var(--mdc-outlined-text-field-outline-width)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__trailing{border-width:var(--mdc-outlined-text-field-focus-outline-width)}.mat-mdc-form-field-textarea-control{vertical-align:middle;resize:vertical;box-sizing:border-box;height:auto;margin:0;padding:0;border:none;overflow:auto}.mat-mdc-form-field-input-control.mat-mdc-form-field-input-control{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font:inherit;letter-spacing:inherit;text-decoration:inherit;text-transform:inherit;border:none}.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;line-height:normal;pointer-events:all;will-change:auto}.mat-mdc-form-field:not(.mat-form-field-disabled) .mat-mdc-floating-label.mdc-floating-label{cursor:inherit}.mdc-text-field--no-label:not(.mdc-text-field--textarea) .mat-mdc-form-field-input-control.mdc-text-field__input,.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control{height:auto}.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control.mdc-text-field__input[type=color]{height:23px}.mat-mdc-text-field-wrapper{height:auto;flex:auto;will-change:auto}.mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-left:0;--mat-mdc-form-field-label-offset-x: -16px}.mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-right:0}[dir=rtl] .mat-mdc-text-field-wrapper{padding-left:16px;padding-right:16px}[dir=rtl] .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-left:0}[dir=rtl] .mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-right:0}.mat-form-field-disabled .mdc-text-field__input::placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-mdc-form-field-label-always-float .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}.mat-mdc-text-field-wrapper .mat-mdc-form-field-infix .mat-mdc-floating-label{left:auto;right:auto}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-text-field__input{display:inline-block}.mat-mdc-form-field .mat-mdc-text-field-wrapper.mdc-text-field .mdc-notched-outline__notch{padding-top:0}.mat-mdc-text-field-wrapper::before{content:none}.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:1px solid rgba(0,0,0,0)}[dir=rtl] .mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:none;border-right:1px solid rgba(0,0,0,0)}.mat-mdc-form-field-infix{min-height:var(--mat-form-field-container-height);padding-top:var(--mat-form-field-filled-with-label-container-padding-top);padding-bottom:var(--mat-form-field-filled-with-label-container-padding-bottom)}.mdc-text-field--outlined .mat-mdc-form-field-infix,.mdc-text-field--no-label .mat-mdc-form-field-infix{padding-top:var(--mat-form-field-container-vertical-padding);padding-bottom:var(--mat-form-field-container-vertical-padding)}.mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label{top:calc(var(--mat-form-field-container-height)/2)}.mdc-text-field--filled .mat-mdc-floating-label{display:var(--mat-form-field-filled-label-display, block)}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{--mat-mdc-form-field-label-transform: translateY(calc(calc(6.75px + var(--mat-form-field-container-height) / 2) * -1)) scale(var(--mat-mdc-form-field-floating-label-scale, 0.75));transform:var(--mat-mdc-form-field-label-transform)}.mat-mdc-form-field-subscript-wrapper{box-sizing:border-box;width:100%;position:relative}.mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-error-wrapper{position:absolute;top:0;left:0;right:0;padding:0 16px}.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-error-wrapper{position:static}.mat-mdc-form-field-bottom-align::before{content:"";display:inline-block;height:16px}.mat-mdc-form-field-bottom-align.mat-mdc-form-field-subscript-dynamic-size::before{content:unset}.mat-mdc-form-field-hint-end{order:1}.mat-mdc-form-field-hint-wrapper{display:flex}.mat-mdc-form-field-hint-spacer{flex:1 0 1em}.mat-mdc-form-field-error{display:block;color:var(--mat-form-field-error-text-color)}.mat-mdc-form-field-subscript-wrapper,.mat-mdc-form-field-bottom-align::before{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-subscript-text-font);line-height:var(--mat-form-field-subscript-text-line-height);font-size:var(--mat-form-field-subscript-text-size);letter-spacing:var(--mat-form-field-subscript-text-tracking);font-weight:var(--mat-form-field-subscript-text-weight)}.mat-mdc-form-field-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;opacity:0;pointer-events:none;background-color:var(--mat-form-field-state-layer-color)}.mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-hover-state-layer-opacity)}.mat-mdc-form-field.mat-focused .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-focus-state-layer-opacity)}select.mat-mdc-form-field-input-control{-moz-appearance:none;-webkit-appearance:none;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box}select.mat-mdc-form-field-input-control:not(:disabled){cursor:pointer}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option{color:var(--mat-form-field-select-option-text-color)}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option:disabled{color:var(--mat-form-field-select-disabled-option-text-color)}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;right:0;top:50%;margin-top:-2.5px;pointer-events:none;color:var(--mat-form-field-enabled-select-arrow-color)}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{right:auto;left:0}.mat-mdc-form-field-type-mat-native-select.mat-focused .mat-mdc-form-field-infix::after{color:var(--mat-form-field-focus-select-arrow-color)}.mat-mdc-form-field-type-mat-native-select.mat-form-field-disabled .mat-mdc-form-field-infix::after{color:var(--mat-form-field-disabled-select-arrow-color)}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:15px}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:0;padding-left:15px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-mdc-text-field-wrapper{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-form-field-disabled .mat-mdc-text-field-wrapper{outline-color:GrayText}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper{outline:dashed 3px}.cdk-high-contrast-active .mat-mdc-form-field.mat-focused .mdc-notched-outline{border:dashed 3px}.mat-mdc-form-field-input-control[type=date],.mat-mdc-form-field-input-control[type=datetime],.mat-mdc-form-field-input-control[type=datetime-local],.mat-mdc-form-field-input-control[type=month],.mat-mdc-form-field-input-control[type=week],.mat-mdc-form-field-input-control[type=time]{line-height:1}.mat-mdc-form-field-input-control::-webkit-datetime-edit{line-height:1;padding:0;margin-bottom:-2px}.mat-mdc-form-field{--mat-mdc-form-field-floating-label-scale: 0.75;display:inline-flex;flex-direction:column;min-width:0;text-align:left;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-container-text-font);line-height:var(--mat-form-field-container-text-line-height);font-size:var(--mat-form-field-container-text-size);letter-spacing:var(--mat-form-field-container-text-tracking);font-weight:var(--mat-form-field-container-text-weight)}[dir=rtl] .mat-mdc-form-field{text-align:right}.mat-mdc-form-field .mdc-text-field--outlined .mdc-floating-label--float-above{font-size:calc(var(--mat-form-field-outlined-label-text-populated-size)*var(--mat-mdc-form-field-floating-label-scale))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:var(--mat-form-field-outlined-label-text-populated-size)}.mat-mdc-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-mdc-text-field-wrapper{width:100%;z-index:0}.mat-mdc-form-field-icon-prefix,.mat-mdc-form-field-icon-suffix{align-self:center;line-height:0;pointer-events:auto;position:relative;z-index:1}.mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field-icon-suffix>.mat-icon{padding:0 12px;box-sizing:content-box}.mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-leading-icon-color)}.mat-form-field-disabled .mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-disabled-leading-icon-color)}.mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-trailing-icon-color)}.mat-form-field-disabled .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-disabled-trailing-icon-color)}.mat-form-field-invalid .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-trailing-icon-color)}.mat-form-field-invalid:not(.mat-focused):not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-hover-trailing-icon-color)}.mat-form-field-invalid.mat-focused .mat-mdc-text-field-wrapper .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-focus-trailing-icon-color)}.mat-mdc-form-field-icon-prefix,[dir=rtl] .mat-mdc-form-field-icon-suffix{padding:0 4px 0 0}.mat-mdc-form-field-icon-suffix,[dir=rtl] .mat-mdc-form-field-icon-prefix{padding:0 0 0 4px}.mat-mdc-form-field-subscript-wrapper .mat-icon,.mat-mdc-form-field label .mat-icon{width:1em;height:1em;font-size:inherit}.mat-mdc-form-field-infix{flex:auto;min-width:0;width:180px;position:relative;box-sizing:border-box}.mat-mdc-form-field .mdc-notched-outline__notch{margin-left:-1px;-webkit-clip-path:inset(-9em -999em -9em 1px);clip-path:inset(-9em -999em -9em 1px)}[dir=rtl] .mat-mdc-form-field .mdc-notched-outline__notch{margin-left:0;margin-right:-1px;-webkit-clip-path:inset(-9em 1px -9em -999em);clip-path:inset(-9em 1px -9em -999em)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition-delay:40ms;transition-duration:110ms}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__affix{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled.mdc-ripple-upgraded--background-focused .mdc-text-field__ripple::before,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before{transition-duration:75ms}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea{transition:none}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-filled 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-filled{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-outlined{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon{0%{transform:translateX(calc(0% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}}[dir=rtl] .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined[dir=rtl] .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon-rtl{0%{transform:translateX(calc(0% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-floating-label{transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-standard 250ms 1}@keyframes mdc-floating-label-shake-float-above-standard{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-notched-outline .mdc-floating-label{max-width:calc(100% + 1px)}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:calc(133.3333333333% + 1px)}'],encapsulation:2,data:{animation:[vIt.transitionMessages]},changeDetection:0});let n=e;return n})(),fC=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=Oi({type:e}),e.\u0275inj=Mi({imports:[ro,os,WB,ro]});let n=e;return n})();var wIt=new fi("MAT_INPUT_VALUE_ACCESSOR"),CIt=["button","checkbox","file","hidden","image","radio","range","reset","submit"],SIt=0,fne=(()=>{let e=class e{get disabled(){return this._disabled}set disabled(i){this._disabled=wl(i),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(i){this._id=i||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(rg.required)??!1}set required(i){this._required=wl(i)}get type(){return this._type}set type(i){this._type=i||"text",this._validateType(),!this._isTextarea&&tSe().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(i){this._errorStateTracker.matcher=i}get value(){return this._inputValueAccessor.value}set value(i){i!==this.value&&(this._inputValueAccessor.value=i,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(i){this._readonly=wl(i)}get errorState(){return this._errorStateTracker.errorState}set errorState(i){this._errorStateTracker.errorState=i}constructor(i,r,o,s,c,h,g,x,C,A){this._elementRef=i,this._platform=r,this.ngControl=o,this._autofillMonitor=x,this._formField=A,this._uid=`mat-input-${SIt++}`,this.focused=!1,this.stateChanges=new mi,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(F=>tSe().has(F)),this._iOSKeyupListener=F=>{let L=F.target;!L.value&&L.selectionStart===0&&L.selectionEnd===0&&(L.setSelectionRange(1,1),L.setSelectionRange(0,0))};let k=this._elementRef.nativeElement,O=k.nodeName.toLowerCase();this._inputValueAccessor=g||k,this._previousNativeValue=this.value,this.id=this.id,r.IOS&&C.runOutsideAngular(()=>{i.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._errorStateTracker=new wT(h,o,c,s,this.stateChanges),this._isServer=!this._platform.isBrowser,this._isNativeSelect=O==="select",this._isTextarea=O==="textarea",this._isInFormField=!!A,this._isNativeSelect&&(this.controlType=k.multiple?"mat-native-select-multiple":"mat-native-select")}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(i=>{this.autofilled=i.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==null&&this.ngControl.disabled!==this.disabled&&(this.disabled=this.ngControl.disabled,this.stateChanges.next())),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(i){this._elementRef.nativeElement.focus(i)}updateErrorState(){this._errorStateTracker.updateErrorState()}_focusChanged(i){i!==this.focused&&(this.focused=i,this.stateChanges.next())}_onInput(){}_dirtyCheckNativeValue(){let i=this._elementRef.nativeElement.value;this._previousNativeValue!==i&&(this._previousNativeValue=i,this.stateChanges.next())}_dirtyCheckPlaceholder(){let i=this._getPlaceholder();if(i!==this._previousPlaceholder){let r=this._elementRef.nativeElement;this._previousPlaceholder=i,i?r.setAttribute("placeholder",i):r.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){CIt.indexOf(this._type)>-1}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let i=this._elementRef.nativeElement.validity;return i&&i.badInput}get empty(){return!this._isNeverEmpty()&&!this._elementRef.nativeElement.value&&!this._isBadInput()&&!this.autofilled}get shouldLabelFloat(){if(this._isNativeSelect){let i=this._elementRef.nativeElement,r=i.options[0];return this.focused||i.multiple||!this.empty||!!(i.selectedIndex>-1&&r&&r.label)}else return this.focused||!this.empty}setDescribedByIds(i){i.length?this._elementRef.nativeElement.setAttribute("aria-describedby",i.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){let i=this._elementRef.nativeElement;return this._isNativeSelect&&(i.multiple||i.size>1)}};e.\u0275fac=function(r){return new(r||e)(oe(Ai),oe(zo),oe($p,10),oe(hR,8),oe(uC,8),oe(D_),oe(wIt,10),oe(WHe),oe(Zi),oe(pC,8))},e.\u0275dir=Ki({type:e,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:18,hostBindings:function(r,o){r&1&&At("focus",function(){return o._focusChanged(!0)})("blur",function(){return o._focusChanged(!1)})("input",function(){return o._onInput()}),r&2&&(Pu("id",o.id)("disabled",o.disabled)("required",o.required),Et("name",o.name||null)("readonly",o.readonly&&!o._isNativeSelect||null)("aria-invalid",o.empty&&o.required?null:o.errorState)("aria-required",o.required)("id",o.id),$n("mat-input-server",o._isServer)("mat-mdc-form-field-textarea-control",o._isInFormField&&o._isTextarea)("mat-mdc-form-field-input-control",o._isInFormField)("mdc-text-field__input",o._isInFormField)("mat-mdc-native-select-inline",o._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],standalone:!0,features:[Co([{provide:fR,useExisting:e}]),eo]});let n=e;return n})(),mne=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=Oi({type:e}),e.\u0275inj=Mi({imports:[ro,fC,fC,ZHe,ro]});let n=e;return n})();var IIt=["panel"],TIt=["*"];function AIt(n,e){if(n&1){let t=Fi();se(0,"div",1,0),At("@panelAnimation.done",function(r){ht(t);let o=le();return pt(o._animationDone.next(r))}),Gn(2),ce()}if(n&2){let t=e.id,i=le();vn(i._classList),$n("mat-mdc-autocomplete-visible",i.showPanel)("mat-mdc-autocomplete-hidden",!i.showPanel)("mat-primary",i._color==="primary")("mat-accent",i._color==="accent")("mat-warn",i._color==="warn"),J("id",i.id)("@panelAnimation",i.isOpen?"visible":"hidden"),Et("aria-label",i.ariaLabel||null)("aria-labelledby",i._getPanelAriaLabelledby(t))}}var DIt=jl("panelAnimation",[nl("void, hidden",qr({opacity:0,transform:"scaleY(0.8)"})),$s(":enter, hidden => visible",[y0([Ps("0.03s linear",qr({opacity:1})),Ps("0.12s cubic-bezier(0, 0, 0.2, 1)",qr({transform:"scaleY(1)"}))])]),$s(":leave, visible => hidden",[Ps("0.075s linear",qr({opacity:0}))])]),kIt=0,KSe=class{constructor(e,t){this.source=e,this.option=t}},l8e=new fi("mat-autocomplete-default-options",{providedIn:"root",factory:MIt});function MIt(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1,hideSingleSelectionIndicator:!1,requireSelection:!1}}var c8e=(()=>{let e=class e{get isOpen(){return this._isOpen&&this.showPanel}_setColor(i){this._color=i,this._changeDetectorRef.markForCheck()}set classList(i){this._classList=i,this._elementRef.nativeElement.className=""}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(i){this._hideSingleSelectionIndicator=i,this._syncParentProperties()}_syncParentProperties(){if(this.options)for(let i of this.options)i._changeDetectorRef.markForCheck()}constructor(i,r,o,s){this._changeDetectorRef=i,this._elementRef=r,this._defaults=o,this._activeOptionChanges=Qo.EMPTY,this._animationDone=new Kt,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new Kt,this.opened=new Kt,this.closed=new Kt,this.optionActivated=new Kt,this.id=`mat-autocomplete-${kIt++}`,this.inertGroups=s?.SAFARI||!1,this.autoActiveFirstOption=!!o.autoActiveFirstOption,this.autoSelectActiveOption=!!o.autoSelectActiveOption,this.requireSelection=!!o.requireSelection,this._hideSingleSelectionIndicator=this._defaults.hideSingleSelectionIndicator??!1}ngAfterContentInit(){this._keyManager=new XB(this.options).withWrap().skipPredicate(this._skipPredicate),this._activeOptionChanges=this._keyManager.change.subscribe(i=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[i]||null})}),this._setVisibility()}ngOnDestroy(){this._keyManager?.destroy(),this._activeOptionChanges.unsubscribe(),this._animationDone.complete()}_setScrollTop(i){this.panel&&(this.panel.nativeElement.scrollTop=i)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._changeDetectorRef.markForCheck()}_emitSelectEvent(i){let r=new KSe(this,i);this.optionSelected.emit(r)}_getPanelAriaLabelledby(i){if(this.ariaLabel)return null;let r=i?i+" ":"";return this.ariaLabelledby?r+this.ariaLabelledby:i}_skipPredicate(){return!1}};e.\u0275fac=function(r){return new(r||e)(oe(ur),oe(Ai),oe(l8e),oe(zo))},e.\u0275cmp=Ct({type:e,selectors:[["mat-autocomplete"]],contentQueries:function(r,o,s){if(r&1&&(gr(s,ST,5),gr(s,J8,5)),r&2){let c;Di(c=ki())&&(o.options=c),Di(c=ki())&&(o.optionGroups=c)}},viewQuery:function(r,o){if(r&1&&(Xn(qa,7),Xn(IIt,5)),r&2){let s;Di(s=ki())&&(o.template=s.first),Di(s=ki())&&(o.panel=s.first)}},hostAttrs:[1,"mat-mdc-autocomplete"],inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:[2,"autoActiveFirstOption","autoActiveFirstOption",Ht],autoSelectActiveOption:[2,"autoSelectActiveOption","autoSelectActiveOption",Ht],requireSelection:[2,"requireSelection","requireSelection",Ht],panelWidth:"panelWidth",disableRipple:[2,"disableRipple","disableRipple",Ht],classList:[0,"class","classList"],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",Ht]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},exportAs:["matAutocomplete"],standalone:!0,features:[Co([{provide:X8,useExisting:e}]),Ir,Ot],ngContentSelectors:TIt,decls:1,vars:0,consts:[["panel",""],["role","listbox",1,"mat-mdc-autocomplete-panel","mdc-menu-surface","mdc-menu-surface--open",3,"id"]],template:function(r,o){r&1&&(Yr(),Ne(0,AIt,3,16,"ng-template"))},styles:["div.mat-mdc-autocomplete-panel{width:100%;max-height:256px;visibility:hidden;transform-origin:center top;overflow:auto;padding:8px 0;box-sizing:border-box;position:static;border-radius:var(--mat-autocomplete-container-shape);box-shadow:var(--mat-autocomplete-container-elevation-shadow);background-color:var(--mat-autocomplete-background-color)}.cdk-high-contrast-active div.mat-mdc-autocomplete-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-autocomplete-panel-above) div.mat-mdc-autocomplete-panel{border-top-left-radius:0;border-top-right-radius:0}.mat-mdc-autocomplete-panel-above div.mat-mdc-autocomplete-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:center bottom}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-visible{visibility:visible}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-hidden{visibility:hidden;pointer-events:none}mat-autocomplete{display:none}"],encapsulation:2,data:{animation:[DIt]},changeDetection:0});let n=e;return n})();var OIt={provide:Bu,useExisting:ka(()=>WSe),multi:!0};var u8e=new fi("mat-autocomplete-scroll-strategy",{providedIn:"root",factory:()=>{let n=ai(ba);return()=>n.scrollStrategies.reposition()}});function RIt(n){return()=>n.scrollStrategies.reposition()}var NIt={provide:u8e,deps:[ba],useFactory:RIt},WSe=(()=>{let e=class e{constructor(i,r,o,s,c,h,g,x,C,A,k){this._element=i,this._overlay=r,this._viewContainerRef=o,this._zone=s,this._changeDetectorRef=c,this._dir=g,this._formField=x,this._document=C,this._viewportRuler=A,this._defaults=k,this._componentDestroyed=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=Qo.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new mi,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._initialized=new mi,this._injector=ai(yo),this._aboveClass="mat-mdc-autocomplete-panel-above",this._overlayAttached=!1,this.optionSelections=d_(()=>{let O=this.autocomplete?this.autocomplete.options:null;return O?O.changes.pipe(aa(O),lr(()=>Da(...O.map(F=>F.onSelectionChange)))):this._initialized.pipe(lr(()=>this.optionSelections))}),this._handlePanelKeydown=O=>{(O.keyCode===27&&!il(O)||O.keyCode===38&&il(O,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),O.stopPropagation(),O.preventDefault())},this._trackedModal=null,this._scrollStrategy=h}ngAfterViewInit(){this._initialized.next(),this._initialized.complete();let i=this._getWindow();typeof i<"u"&&this._zone.runOutsideAngular(()=>i.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(i){i.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){let i=this._getWindow();typeof i<"u"&&i.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete(),this._clearFromModal()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._openPanelInternal()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._latestOpeningTrigger===this&&(this.autocomplete._isOpen=!1,this.autocomplete._latestOpeningTrigger=null),this._overlayAttached=!1,this._pendingAutoselectedOption=null,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._updatePanelState(),this._componentDestroyed||this._changeDetectorRef.detectChanges(),this._trackedModal&&bT(this._trackedModal,"aria-owns",this.autocomplete.id))}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return Da(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(Wn(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(Wn(()=>this._overlayAttached)):kn()).pipe(ri(i=>i instanceof Q8?i:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return Da(wc(this._document,"click"),wc(this._document,"auxclick"),wc(this._document,"touchend")).pipe(Wn(i=>{let r=Gp(i),o=this._formField?this._formField.getConnectedOverlayOrigin().nativeElement:null,s=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&r!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!o||!o.contains(r))&&(!s||!s.contains(r))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(r)}))}writeValue(i){Promise.resolve(null).then(()=>this._assignOptionValue(i))}registerOnChange(i){this._onChange=i}registerOnTouched(i){this._onTouched=i}setDisabledState(i){this._element.nativeElement.disabled=i}_handleKeydown(i){let r=i.keyCode,o=il(i);if(r===27&&!o&&i.preventDefault(),this._valueOnLastKeydown=this._element.nativeElement.value,this.activeOption&&r===13&&this.panelOpen&&!o)this.activeOption._selectViaInteraction(),this._resetActiveItem(),i.preventDefault();else if(this.autocomplete){let s=this.autocomplete._keyManager.activeItem,c=r===38||r===40;r===9||c&&!o&&this.panelOpen?this.autocomplete._keyManager.onKeydown(i):c&&this._canOpen()&&this._openPanelInternal(this._valueOnLastKeydown),(c||this.autocomplete._keyManager.activeItem!==s)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._valueOnLastKeydown),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)))}}_handleInput(i){let r=i.target,o=r.value;if(r.type==="number"&&(o=o==""?null:parseFloat(o)),this._previousValue!==o){if(this._previousValue=o,this._pendingAutoselectedOption=null,(!this.autocomplete||!this.autocomplete.requireSelection)&&this._onChange(o),!o)this._clearPreviousSelectedOption(null,!1);else if(this.panelOpen&&!this.autocomplete.requireSelection){let s=this.autocomplete.options?.find(c=>c.selected);if(s){let c=this._getDisplayValue(s.value);o!==c&&s.deselect(!1)}}if(this._canOpen()&&this._document.activeElement===i.target){let s=this._valueOnLastKeydown??this._element.nativeElement.value;this._valueOnLastKeydown=null,this._openPanelInternal(s)}}}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(this._previousValue),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this._openPanelInternal()}_floatLabel(i=!1){this._formField&&this._formField.floatLabel==="auto"&&(i?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField&&(this._formField.floatLabel="auto"),this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){let i=new fo(o=>{ad(()=>{o.next()},{injector:this._injector})}),r=this.autocomplete.options.changes.pipe(vs(()=>this._positionStrategy.reapplyLastPosition()),rL(0));return Da(i,r).pipe(lr(()=>this._zone.run(()=>{let o=this.panelOpen;return this._resetActiveItem(),this._updatePanelState(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),o!==this.panelOpen&&(this.panelOpen?this._emitOpened():this.autocomplete.closed.emit()),this.panelClosingActions})),kr(1)).subscribe(o=>this._setValueAndClose(o))}_emitOpened(){this.autocomplete.opened.emit()}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_getDisplayValue(i){let r=this.autocomplete;return r&&r.displayWith?r.displayWith(i):i}_assignOptionValue(i){let r=this._getDisplayValue(i);i==null&&this._clearPreviousSelectedOption(null,!1),this._updateNativeInputValue(r??"")}_updateNativeInputValue(i){this._formField?this._formField._control.value=i:this._element.nativeElement.value=i,this._previousValue=i}_setValueAndClose(i){let r=this.autocomplete,o=i?i.source:this._pendingAutoselectedOption;o?(this._clearPreviousSelectedOption(o),this._assignOptionValue(o.value),this._onChange(o.value),r._emitSelectEvent(o),this._element.nativeElement.focus()):r.requireSelection&&this._element.nativeElement.value!==this._valueOnAttach&&(this._clearPreviousSelectedOption(null),this._assignOptionValue(null),r._animationDone?r._animationDone.pipe(kr(1)).subscribe(()=>this._onChange(null)):this._onChange(null)),this.closePanel()}_clearPreviousSelectedOption(i,r){this.autocomplete?.options?.forEach(o=>{o!==i&&o.selected&&o.deselect(r)})}_openPanelInternal(i=this._element.nativeElement.value){if(this._attachOverlay(i),this._floatLabel(),this._trackedModal){let r=this.autocomplete.id;t3(this._trackedModal,"aria-owns",r)}}_attachOverlay(i){this.autocomplete;let r=this._overlayRef;r?(this._positionStrategy.setOrigin(this._getConnectedElement()),r.updateSize({width:this._getPanelWidth()})):(this._portal=new qp(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),r=this._overlay.create(this._getOverlayConfig()),this._overlayRef=r,this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&r&&r.updateSize({width:this._getPanelWidth()})})),r&&!r.hasAttached()&&(r.attach(this._portal),this._valueOnAttach=i,this._valueOnLastKeydown=null,this._closingActionsSubscription=this._subscribeToClosingActions());let o=this.panelOpen;this.autocomplete._isOpen=this._overlayAttached=!0,this.autocomplete._latestOpeningTrigger=this,this.autocomplete._setColor(this._formField?.color),this._updatePanelState(),this._applyModalPanelOwnership(),this.panelOpen&&o!==this.panelOpen&&this._emitOpened()}_updatePanelState(){if(this.autocomplete._setVisibility(),this.panelOpen){let i=this._overlayRef;this._keydownSubscription||(this._keydownSubscription=i.keydownEvents().subscribe(this._handlePanelKeydown)),this._outsideClickSubscription||(this._outsideClickSubscription=i.outsidePointerEvents().subscribe())}else this._keydownSubscription?.unsubscribe(),this._outsideClickSubscription?.unsubscribe(),this._keydownSubscription=this._outsideClickSubscription=null}_getOverlayConfig(){return new M_({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir??void 0,panelClass:this._defaults?.overlayPanelClass})}_getOverlayPosition(){let i=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(i),this._positionStrategy=i,i}_setStrategyPositions(i){let r=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],o=this._aboveClass,s=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:o},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:o}],c;this.position==="above"?c=s:this.position==="below"?c=r:c=[...r,...s],i.withPositions(c)}_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(){let i=this.autocomplete;if(i.autoActiveFirstOption){let r=-1;for(let o=0;o .cdk-overlay-container [aria-modal="true"]');if(!i)return;let r=this.autocomplete.id;this._trackedModal&&bT(this._trackedModal,"aria-owns",r),t3(i,"aria-owns",r),this._trackedModal=i}_clearFromModal(){if(this._trackedModal){let i=this.autocomplete.id;bT(this._trackedModal,"aria-owns",i),this._trackedModal=null}}};e.\u0275fac=function(r){return new(r||e)(oe(Ai),oe(ba),oe(Sc),oe(Zi),oe(ur),oe(u8e),oe(pl,8),oe(pC,9),oe(Ln,8),oe(qb),oe(l8e,8))},e.\u0275dir=Ki({type:e,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-mdc-autocomplete-trigger"],hostVars:7,hostBindings:function(r,o){r&1&&At("focusin",function(){return o._handleFocus()})("blur",function(){return o._onTouched()})("input",function(c){return o._handleInput(c)})("keydown",function(c){return o._handleKeydown(c)})("click",function(){return o._handleClick()}),r&2&&Et("autocomplete",o.autocompleteAttribute)("role",o.autocompleteDisabled?null:"combobox")("aria-autocomplete",o.autocompleteDisabled?null:"list")("aria-activedescendant",o.panelOpen&&o.activeOption?o.activeOption.id:null)("aria-expanded",o.autocompleteDisabled?null:o.panelOpen.toString())("aria-controls",o.autocompleteDisabled||!o.panelOpen||o.autocomplete==null?null:o.autocomplete.id)("aria-haspopup",o.autocompleteDisabled?null:"listbox")},inputs:{autocomplete:[0,"matAutocomplete","autocomplete"],position:[0,"matAutocompletePosition","position"],connectedTo:[0,"matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:[0,"autocomplete","autocompleteAttribute"],autocompleteDisabled:[2,"matAutocompleteDisabled","autocompleteDisabled",Ht]},exportAs:["matAutocompleteTrigger"],standalone:!0,features:[Co([OIt]),Ir,eo]});let n=e;return n})(),gne=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=Oi({type:e}),e.\u0275inj=Mi({providers:[NIt],imports:[ng,ET,ro,os,ig,ET,ro]});let n=e;return n})();function FIt(n,e){n&1&&bt(0,"div",2)}var LIt=new fi("MAT_PROGRESS_BAR_DEFAULT_OPTIONS");var h8e=(()=>{let e=class e{constructor(i,r,o,s,c){this._elementRef=i,this._ngZone=r,this._changeDetectorRef=o,this._animationMode=s,this._isNoopAnimation=!1,this._defaultColor="primary",this._value=0,this._bufferValue=0,this.animationEnd=new Kt,this._mode="determinate",this._transitionendHandler=h=>{this.animationEnd.observers.length===0||!h.target||!h.target.classList.contains("mdc-linear-progress__primary-bar")||(this.mode==="determinate"||this.mode==="buffer")&&this._ngZone.run(()=>this.animationEnd.next({value:this.value}))},this._isNoopAnimation=s==="NoopAnimations",c&&(c.color&&(this.color=this._defaultColor=c.color),this.mode=c.mode||this.mode)}get color(){return this._color||this._defaultColor}set color(i){this._color=i}get value(){return this._value}set value(i){this._value=d8e(i||0),this._changeDetectorRef.markForCheck()}get bufferValue(){return this._bufferValue||0}set bufferValue(i){this._bufferValue=d8e(i||0),this._changeDetectorRef.markForCheck()}get mode(){return this._mode}set mode(i){this._mode=i,this._changeDetectorRef.markForCheck()}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("transitionend",this._transitionendHandler)})}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._transitionendHandler)}_getPrimaryBarTransform(){return`scaleX(${this._isIndeterminate()?1:this.value/100})`}_getBufferBarFlexBasis(){return`${this.mode==="buffer"?this.bufferValue:100}%`}_isIndeterminate(){return this.mode==="indeterminate"||this.mode==="query"}};e.\u0275fac=function(r){return new(r||e)(oe(Ai),oe(Zi),oe(ur),oe(da,8),oe(LIt,8))},e.\u0275cmp=Ct({type:e,selectors:[["mat-progress-bar"]],hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100","tabindex","-1",1,"mat-mdc-progress-bar","mdc-linear-progress"],hostVars:10,hostBindings:function(r,o){r&2&&(Et("aria-valuenow",o._isIndeterminate()?null:o.value)("mode",o.mode),vn("mat-"+o.color),$n("_mat-animation-noopable",o._isNoopAnimation)("mdc-linear-progress--animation-ready",!o._isNoopAnimation)("mdc-linear-progress--indeterminate",o._isIndeterminate()))},inputs:{color:"color",value:[2,"value","value",xr],bufferValue:[2,"bufferValue","bufferValue",xr],mode:"mode"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],standalone:!0,features:[Ir,Ot],decls:7,vars:5,consts:[["aria-hidden","true",1,"mdc-linear-progress__buffer"],[1,"mdc-linear-progress__buffer-bar"],[1,"mdc-linear-progress__buffer-dots"],["aria-hidden","true",1,"mdc-linear-progress__bar","mdc-linear-progress__primary-bar"],[1,"mdc-linear-progress__bar-inner"],["aria-hidden","true",1,"mdc-linear-progress__bar","mdc-linear-progress__secondary-bar"]],template:function(r,o){r&1&&(se(0,"div",0),bt(1,"div",1),Ne(2,FIt,1,0,"div",2),ce(),se(3,"div",3),bt(4,"span",4),ce(),se(5,"div",5),bt(6,"span",4),ce()),r&2&&(Z(),ld("flex-basis",o._getBufferBarFlexBasis()),Z(),Hi(o.mode==="buffer"?2:-1),Z(),ld("transform",o._getPrimaryBarTransform()))},styles:[`@keyframes mdc-linear-progress-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(var(--mdc-linear-progress-primary-half))}100%{transform:translateX(var(--mdc-linear-progress-primary-full))}}@keyframes mdc-linear-progress-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mdc-linear-progress-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(var(--mdc-linear-progress-secondary-quarter))}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(var(--mdc-linear-progress-secondary-half))}100%{transform:translateX(var(--mdc-linear-progress-secondary-full))}}@keyframes mdc-linear-progress-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.205028, 0.057051, 0.57661, 0.453971);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.152313, 0.196432, 0.648374, 1.004315);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.257759, -0.003163, 0.211762, 1.38179);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mdc-linear-progress-primary-indeterminate-translate-reverse{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(var(--mdc-linear-progress-primary-half-neg))}100%{transform:translateX(var(--mdc-linear-progress-primary-full-neg))}}@keyframes mdc-linear-progress-secondary-indeterminate-translate-reverse{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(var(--mdc-linear-progress-secondary-quarter-neg))}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(var(--mdc-linear-progress-secondary-half-neg))}100%{transform:translateX(var(--mdc-linear-progress-secondary-full-neg))}}@keyframes mdc-linear-progress-buffering-reverse{from{transform:translateX(-10px)}}.mdc-linear-progress{position:relative;width:100%;transform:translateZ(0);outline:1px solid rgba(0,0,0,0);overflow-x:hidden;transition:opacity 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}@media screen and (forced-colors: active){.mdc-linear-progress{outline-color:CanvasText}}.mdc-linear-progress__bar{position:absolute;top:0;bottom:0;margin:auto 0;width:100%;animation:none;transform-origin:top left;transition:transform 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-linear-progress__bar-inner{display:inline-block;position:absolute;width:100%;animation:none;border-top-style:solid}.mdc-linear-progress__buffer{display:flex;position:absolute;top:0;bottom:0;margin:auto 0;width:100%;overflow:hidden}.mdc-linear-progress__buffer-dots{background-repeat:repeat-x;flex:auto;transform:rotate(180deg);-webkit-mask-image:url("data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='xMinYMin slice'%3E%3Ccircle cx='1' cy='1' r='1'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='xMinYMin slice'%3E%3Ccircle cx='1' cy='1' r='1'/%3E%3C/svg%3E");animation:mdc-linear-progress-buffering 250ms infinite linear}.mdc-linear-progress__buffer-bar{flex:0 1 100%;transition:flex-basis 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-linear-progress__primary-bar{transform:scaleX(0)}.mdc-linear-progress__secondary-bar{display:none}.mdc-linear-progress--indeterminate .mdc-linear-progress__bar{transition:none}.mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar{left:-145.166611%}.mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar{left:-54.888891%;display:block}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar{animation:mdc-linear-progress-primary-indeterminate-translate 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar>.mdc-linear-progress__bar-inner{animation:mdc-linear-progress-primary-indeterminate-scale 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar{animation:mdc-linear-progress-secondary-indeterminate-translate 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar>.mdc-linear-progress__bar-inner{animation:mdc-linear-progress-secondary-indeterminate-scale 2s infinite linear}[dir=rtl] .mdc-linear-progress:not([dir=ltr]) .mdc-linear-progress__bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]) .mdc-linear-progress__bar{right:0;-webkit-transform-origin:center right;transform-origin:center right}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar{animation-name:mdc-linear-progress-primary-indeterminate-translate-reverse}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar{animation-name:mdc-linear-progress-secondary-indeterminate-translate-reverse}[dir=rtl] .mdc-linear-progress:not([dir=ltr]) .mdc-linear-progress__buffer-dots,.mdc-linear-progress[dir=rtl]:not([dir=ltr]) .mdc-linear-progress__buffer-dots{animation:mdc-linear-progress-buffering-reverse 250ms infinite linear;transform:rotate(0)}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar{right:-145.166611%;left:auto}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar{right:-54.888891%;left:auto}.mdc-linear-progress--closed{opacity:0}.mdc-linear-progress--closed-animation-off .mdc-linear-progress__buffer-dots{animation:none}.mdc-linear-progress--closed-animation-off.mdc-linear-progress--indeterminate .mdc-linear-progress__bar,.mdc-linear-progress--closed-animation-off.mdc-linear-progress--indeterminate .mdc-linear-progress__bar .mdc-linear-progress__bar-inner{animation:none}@keyframes mdc-linear-progress-buffering{from{transform:rotate(180deg) translateX(calc(var(--mdc-linear-progress-track-height) * -2.5))}}.mdc-linear-progress__bar-inner{border-color:var(--mdc-linear-progress-active-indicator-color)}.mdc-linear-progress__buffer-dots{background-color:var(--mdc-linear-progress-track-color)}@media(forced-colors: active){.mdc-linear-progress__buffer-dots{background-color:ButtonBorder}}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.mdc-linear-progress__buffer-dots{background-color:rgba(0,0,0,0);background-image:url("data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='none slice'%3E%3Ccircle cx='1' cy='1' r='1' fill='rgba(244, 67, 54, 0.25)'/%3E%3C/svg%3E")}}.mdc-linear-progress__buffer-bar{background-color:var(--mdc-linear-progress-track-color)}.mdc-linear-progress{height:max(var(--mdc-linear-progress-track-height), var(--mdc-linear-progress-active-indicator-height))}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.mdc-linear-progress{height:4px}}.mdc-linear-progress__bar{height:var(--mdc-linear-progress-active-indicator-height)}.mdc-linear-progress__bar-inner{border-top-width:var(--mdc-linear-progress-active-indicator-height)}.mdc-linear-progress__buffer{height:var(--mdc-linear-progress-track-height)}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.mdc-linear-progress__buffer-dots{background-size:10px var(--mdc-linear-progress-track-height)}}.mdc-linear-progress__buffer{border-radius:var(--mdc-linear-progress-track-shape)}.mat-mdc-progress-bar{display:block;text-align:start;--mdc-linear-progress-primary-half: 83.67142%;--mdc-linear-progress-primary-full: 200.611057%;--mdc-linear-progress-secondary-quarter: 37.651913%;--mdc-linear-progress-secondary-half: 84.386165%;--mdc-linear-progress-secondary-full: 160.277782%;--mdc-linear-progress-primary-half-neg: -83.67142%;--mdc-linear-progress-primary-full-neg: -200.611057%;--mdc-linear-progress-secondary-quarter-neg: -37.651913%;--mdc-linear-progress-secondary-half-neg: -84.386165%;--mdc-linear-progress-secondary-full-neg: -160.277782%}.mat-mdc-progress-bar[mode=query]{transform:scaleX(-1)}.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__buffer-dots,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__primary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__secondary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__bar-inner.mdc-linear-progress__bar-inner{animation:none}.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__primary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__buffer-bar{transition:transform 1ms}`],encapsulation:2,changeDetection:0});let n=e;return n})();function d8e(n,e=0,t=100){return Math.max(e,Math.min(t,n))}var p8e=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=Oi({type:e}),e.\u0275inj=Mi({imports:[ro]});let n=e;return n})();var sr=class{static equals(e,t,i=(r,o)=>r===o){return e===void 0&&t===void 0||e===null&&t===null?!0:e&&t?i(e,t):!1}};var Jl=class n{constructor(e,t,i,r,o,s=void 0,c=(g,x)=>g===x,h=g=>JSON.parse(JSON.stringify(g))){this.tileId=e,this.propertyKey=t,this.value=i,this.overrideValue=r,this.deleteState=o,this.dependencyVirtualClinicId=s,this.equalsFn=c,this._cloneFn=h}clone(){return new n(this.tileId,this.propertyKey,this.value?this._cloneFn(this.value):this.value,this.overrideValue?this._cloneFn(this.overrideValue):this.overrideValue,this.deleteState,this.dependencyVirtualClinicId,this.equalsFn,this._cloneFn)}equals(e){return sr.equals(this.tileId,e.tileId)&&sr.equals(this.propertyKey,e.propertyKey)&&sr.equals(this.value,e.value,(t,i)=>this.equalsFn(t,i))}},ec=class{static overrideProperty(e,t,i,r){if(!i)return r(e)??null;let o=i.find(s=>sr.equals(t,s.propertyKey)&&sr.equals(e,s.value,(c,h)=>s.equalsFn(c,h)));return o?o.deleteState==="should-be-deleted"?null:r(o.overrideValue):r(e)??null}static overrideProperties(e,t,i,r){return e.map(o=>this.overrideProperty(o,t,i,r)).filter(o=>!!o)}};var ZSe=["#FF6900","#FCB900","#7BDCB5","#00D084","#8ED1FC","#0693E3","#ABB8C3","#EB144C","#F78DA7","#9900EF"];var Wb=class{percentage(e,t,i){return(e-t)/(i-t)}},f8e={custom:"Eigene Farben",scheme:"Farbverlauf",lightness:"Helligkeitsverlauf",judgement:"Bewertung"};function fd(n,e){zIt(n)&&(n="100%");let t=VIt(n);return n=e===360?n:Math.min(e,Math.max(0,parseFloat(n))),t&&(n=parseInt(String(n*e),10)/100),Math.abs(n-e)<1e-6?1:(e===360?n=(n<0?n%e+e:n%e)/parseFloat(String(e)):n=n%e/parseFloat(String(e)),n)}function yG(n){return Math.min(1,Math.max(0,n))}function zIt(n){return typeof n=="string"&&n.indexOf(".")!==-1&&parseFloat(n)===1}function VIt(n){return typeof n=="string"&&n.indexOf("%")!==-1}function _ne(n){return n=parseFloat(n),(isNaN(n)||n<0||n>1)&&(n=1),n}function bG(n){return Number(n)<=1?`${Number(n)*100}%`:n}function VT(n){return n.length===1?"0"+n:String(n)}function m8e(n,e,t){return{r:fd(n,255)*255,g:fd(e,255)*255,b:fd(t,255)*255}}function XSe(n,e,t){n=fd(n,255),e=fd(e,255),t=fd(t,255);let i=Math.max(n,e,t),r=Math.min(n,e,t),o=0,s=0,c=(i+r)/2;if(i===r)s=0,o=0;else{let h=i-r;switch(s=c>.5?h/(2-i-r):h/(i+r),i){case n:o=(e-t)/h+(e1&&(t-=1),t<1/6?n+(e-n)*(6*t):t<1/2?e:t<2/3?n+(e-n)*(2/3-t)*6:n}function g8e(n,e,t){let i,r,o;if(n=fd(n,360),e=fd(e,100),t=fd(t,100),e===0)r=t,o=t,i=t;else{let s=t<.5?t*(1+e):t+e-t*e,c=2*t-s;i=QSe(c,s,n+1/3),r=QSe(c,s,n),o=QSe(c,s,n-1/3)}return{r:i*255,g:r*255,b:o*255}}function JSe(n,e,t){n=fd(n,255),e=fd(e,255),t=fd(t,255);let i=Math.max(n,e,t),r=Math.min(n,e,t),o=0,s=i,c=i-r,h=i===0?0:c/i;if(i===r)o=0;else{switch(i){case n:o=(e-t)/c+(e>16,g:(n&65280)>>8,b:n&255}}var xG={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function x8e(n){let e={r:0,g:0,b:0},t=1,i=null,r=null,o=null,s=!1,c=!1;return typeof n=="string"&&(n=GIt(n)),typeof n=="object"&&(Kp(n.r)&&Kp(n.g)&&Kp(n.b)?(e=m8e(n.r,n.g,n.b),s=!0,c=String(n.r).substr(-1)==="%"?"prgb":"rgb"):Kp(n.h)&&Kp(n.s)&&Kp(n.v)?(i=bG(n.s),r=bG(n.v),e=_8e(n.h,i,r),s=!0,c="hsv"):Kp(n.h)&&Kp(n.s)&&Kp(n.l)?(i=bG(n.s),o=bG(n.l),e=g8e(n.h,i,o),s=!0,c="hsl"):Kp(n.c)&&Kp(n.m)&&Kp(n.y)&&Kp(n.k)&&(e=y8e(n.c,n.m,n.y,n.k),s=!0,c="cmyk"),Object.prototype.hasOwnProperty.call(n,"a")&&(t=n.a)),t=_ne(t),{ok:s,format:n.format||c,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:t}}var jIt="[-\\+]?\\d+%?",HIt="[-\\+]?\\d*\\.\\d+%?",UT="(?:"+HIt+")|(?:"+jIt+")",nEe="[\\s|\\(]+("+UT+")[,|\\s]+("+UT+")[,|\\s]+("+UT+")\\s*\\)?",vne="[\\s|\\(]+("+UT+")[,|\\s]+("+UT+")[,|\\s]+("+UT+")[,|\\s]+("+UT+")\\s*\\)?",O_={CSS_UNIT:new RegExp(UT),rgb:new RegExp("rgb"+nEe),rgba:new RegExp("rgba"+vne),hsl:new RegExp("hsl"+nEe),hsla:new RegExp("hsla"+vne),hsv:new RegExp("hsv"+nEe),hsva:new RegExp("hsva"+vne),cmyk:new RegExp("cmyk"+vne),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function GIt(n){if(n=n.trim().toLowerCase(),n.length===0)return!1;let e=!1;if(xG[n])n=xG[n],e=!0;else if(n==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};let t=O_.rgb.exec(n);return t?{r:t[1],g:t[2],b:t[3]}:(t=O_.rgba.exec(n),t?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=O_.hsl.exec(n),t?{h:t[1],s:t[2],l:t[3]}:(t=O_.hsla.exec(n),t?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=O_.hsv.exec(n),t?{h:t[1],s:t[2],v:t[3]}:(t=O_.hsva.exec(n),t?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=O_.cmyk.exec(n),t?{c:t[1],m:t[2],y:t[3],k:t[4]}:(t=O_.hex8.exec(n),t?{r:qf(t[1]),g:qf(t[2]),b:qf(t[3]),a:iEe(t[4]),format:e?"name":"hex8"}:(t=O_.hex6.exec(n),t?{r:qf(t[1]),g:qf(t[2]),b:qf(t[3]),format:e?"name":"hex"}:(t=O_.hex4.exec(n),t?{r:qf(t[1]+t[1]),g:qf(t[2]+t[2]),b:qf(t[3]+t[3]),a:iEe(t[4]+t[4]),format:e?"name":"hex8"}:(t=O_.hex3.exec(n),t?{r:qf(t[1]+t[1]),g:qf(t[2]+t[2]),b:qf(t[3]+t[3]),format:e?"name":"hex"}:!1))))))))))}function Kp(n){return typeof n=="number"?!Number.isNaN(n):O_.CSS_UNIT.test(n)}var is=class n{constructor(e="",t={}){if(e instanceof n)return e;typeof e=="number"&&(e=b8e(e)),this.originalInput=e;let i=x8e(e);this.originalInput=e,this.r=i.r,this.g=i.g,this.b=i.b,this.a=i.a,this.roundA=Math.round(100*this.a)/100,this.format=t.format??i.format,this.gradientType=t.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=i.ok}isDark(){return this.getBrightness()<128}isLight(){return!this.isDark()}getBrightness(){let e=this.toRgb();return(e.r*299+e.g*587+e.b*114)/1e3}getLuminance(){let e=this.toRgb(),t,i,r,o=e.r/255,s=e.g/255,c=e.b/255;return o<=.03928?t=o/12.92:t=Math.pow((o+.055)/1.055,2.4),s<=.03928?i=s/12.92:i=Math.pow((s+.055)/1.055,2.4),c<=.03928?r=c/12.92:r=Math.pow((c+.055)/1.055,2.4),.2126*t+.7152*i+.0722*r}getAlpha(){return this.a}setAlpha(e){return this.a=_ne(e),this.roundA=Math.round(100*this.a)/100,this}isMonochrome(){let{s:e}=this.toHsl();return e===0}toHsv(){let e=JSe(this.r,this.g,this.b);return{h:e.h*360,s:e.s,v:e.v,a:this.a}}toHsvString(){let e=JSe(this.r,this.g,this.b),t=Math.round(e.h*360),i=Math.round(e.s*100),r=Math.round(e.v*100);return this.a===1?`hsv(${t}, ${i}%, ${r}%)`:`hsva(${t}, ${i}%, ${r}%, ${this.roundA})`}toHsl(){let e=XSe(this.r,this.g,this.b);return{h:e.h*360,s:e.s,l:e.l,a:this.a}}toHslString(){let e=XSe(this.r,this.g,this.b),t=Math.round(e.h*360),i=Math.round(e.s*100),r=Math.round(e.l*100);return this.a===1?`hsl(${t}, ${i}%, ${r}%)`:`hsla(${t}, ${i}%, ${r}%, ${this.roundA})`}toHex(e=!1){return eEe(this.r,this.g,this.b,e)}toHexString(e=!1){return"#"+this.toHex(e)}toHex8(e=!1){return v8e(this.r,this.g,this.b,this.a,e)}toHex8String(e=!1){return"#"+this.toHex8(e)}toHexShortString(e=!1){return this.a===1?this.toHexString(e):this.toHex8String(e)}toRgb(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}}toRgbString(){let e=Math.round(this.r),t=Math.round(this.g),i=Math.round(this.b);return this.a===1?`rgb(${e}, ${t}, ${i})`:`rgba(${e}, ${t}, ${i}, ${this.roundA})`}toPercentageRgb(){let e=t=>`${Math.round(fd(t,255)*100)}%`;return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}}toPercentageRgbString(){let e=t=>Math.round(fd(t,255)*100);return this.a===1?`rgb(${e(this.r)}%, ${e(this.g)}%, ${e(this.b)}%)`:`rgba(${e(this.r)}%, ${e(this.g)}%, ${e(this.b)}%, ${this.roundA})`}toCmyk(){return Ce({},tEe(this.r,this.g,this.b))}toCmykString(){let{c:e,m:t,y:i,k:r}=tEe(this.r,this.g,this.b);return`cmyk(${e}, ${t}, ${i}, ${r})`}toName(){if(this.a===0)return"transparent";if(this.a<1)return!1;let e="#"+eEe(this.r,this.g,this.b,!1);for(let[t,i]of Object.entries(xG))if(e===i)return t;return!1}toString(e){let t=!!e;e=e??this.format;let i=!1,r=this.a<1&&this.a>=0;return!t&&r&&(e.startsWith("hex")||e==="name")?e==="name"&&this.a===0?this.toName():this.toRgbString():(e==="rgb"&&(i=this.toRgbString()),e==="prgb"&&(i=this.toPercentageRgbString()),(e==="hex"||e==="hex6")&&(i=this.toHexString()),e==="hex3"&&(i=this.toHexString(!0)),e==="hex4"&&(i=this.toHex8String(!0)),e==="hex8"&&(i=this.toHex8String()),e==="name"&&(i=this.toName()),e==="hsl"&&(i=this.toHslString()),e==="hsv"&&(i=this.toHsvString()),e==="cmyk"&&(i=this.toCmykString()),i||this.toHexString())}toNumber(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)}clone(){return new n(this.toString())}lighten(e=10){let t=this.toHsl();return t.l+=e/100,t.l=yG(t.l),new n(t)}brighten(e=10){let t=this.toRgb();return t.r=Math.max(0,Math.min(255,t.r-Math.round(255*-(e/100)))),t.g=Math.max(0,Math.min(255,t.g-Math.round(255*-(e/100)))),t.b=Math.max(0,Math.min(255,t.b-Math.round(255*-(e/100)))),new n(t)}darken(e=10){let t=this.toHsl();return t.l-=e/100,t.l=yG(t.l),new n(t)}tint(e=10){return this.mix("white",e)}shade(e=10){return this.mix("black",e)}desaturate(e=10){let t=this.toHsl();return t.s-=e/100,t.s=yG(t.s),new n(t)}saturate(e=10){let t=this.toHsl();return t.s+=e/100,t.s=yG(t.s),new n(t)}greyscale(){return this.desaturate(100)}spin(e){let t=this.toHsl(),i=(t.h+e)%360;return t.h=i<0?360+i:i,new n(t)}mix(e,t=50){let i=this.toRgb(),r=new n(e).toRgb(),o=t/100,s={r:(r.r-i.r)*o+i.r,g:(r.g-i.g)*o+i.g,b:(r.b-i.b)*o+i.b,a:(r.a-i.a)*o+i.a};return new n(s)}analogous(e=6,t=30){let i=this.toHsl(),r=360/t,o=[this];for(i.h=(i.h-(r*e>>1)+720)%360;--e;)i.h=(i.h+r)%360,o.push(new n(i));return o}complement(){let e=this.toHsl();return e.h=(e.h+180)%360,new n(e)}monochromatic(e=6){let t=this.toHsv(),{h:i}=t,{s:r}=t,{v:o}=t,s=[],c=1/e;for(;e--;)s.push(new n({h:i,s:r,v:o})),o=(o+c)%1;return s}splitcomplement(){let e=this.toHsl(),{h:t}=e;return[this,new n({h:(t+72)%360,s:e.s,l:e.l}),new n({h:(t+216)%360,s:e.s,l:e.l})]}onBackground(e){let t=this.toRgb(),i=new n(e).toRgb(),r=t.a+i.a*(1-t.a);return new n({r:(t.r*t.a+i.r*i.a*(1-t.a))/r,g:(t.g*t.a+i.g*i.a*(1-t.a))/r,b:(t.b*t.a+i.b*i.a*(1-t.a))/r,a:r})}triad(){return this.polyad(3)}tetrad(){return this.polyad(4)}polyad(e){let t=this.toHsl(),{h:i}=t,r=[this],o=360/e;for(let s=1;s0){let o=this.good.toHsl(),s=1-this.good.toHsl().l,c=1-e/i;o.l=o.l+s*c,r=new is(o)}else{let o=this.bad.toHsl(),s=this.bad.toHsl().l,c=1-e/t;o.l=o.l+s*c,r=new is(o)}return r}};var jT=class n extends Wb{static fromObject(e){let t=e&&e.color?new is(e.color):new is("hsl(0, 100%, 50%)");return new n(t)}constructor(e){super(),this.color=e,this.type="lightness"}clone(){return new n(this.color.clone())}toJSON(){return{type:this.type,color:this.color.toHslString()}}getColorForValue(e,t,i){let r;if(e===t)r=new is("#ffffff");else if(e===i)r=this.color;else{let o=this.color.toHsl(),s=1-this.color.toHsl().l,c=1-this.percentage(e,t,i);o.l=o.l+s*c,r=new is(o)}return r}};var rEe={low:new is("hsl(0, 100%, 50%)"),high:new is("hsl(180, 100%, 50%)")},R_=class n extends Wb{static fromObject(e){let t;return e.colorScheme&&(t={low:e.colorScheme.low?new is(e.colorScheme.low):rEe.low,high:e.colorScheme.high?new is(e.colorScheme.high):rEe.high}),new n(t)}constructor(e=rEe){super(),this.colorScheme=e,this.type="scheme"}clone(){return new n({low:this.colorScheme.low.clone(),high:this.colorScheme.high.clone()})}toJSON(){return{type:this.type,colorScheme:{low:this.colorScheme.low.toHslString(),high:this.colorScheme.high.toHslString()}}}getColorForValue(e,t,i){let r;if(e===t)r=this.colorScheme.low;else if(e===i)r=this.colorScheme.high;else{let o=Math.round(this.percentage(e,t,i)*100);r=this.colorScheme.low.clone().mix(this.colorScheme.high.clone(),o)}return r}};var yne=class n extends Wb{static fromObject(e){let t=[];return e.ranges&&(t=e.ranges.map(i=>wt(Ce({},i),{color:new is(i.color)}))),new n(t)}constructor(e=[]){super(),this.ranges=e,this.type="custom"}getColorForValue(e){return this.ranges.find(t=>t.from<=e&&ewt(Ce({},e),{color:e.color.clone()})))}toJSON(){return{type:this.type,ranges:this.ranges.map(e=>wt(Ce({},e),{color:e.color.toString()}))}}};var m3=class{static fromObject(e){let t=null;if(!e.type)return t;switch(e.type){case"lightness":{t=jT.fromObject(e);break}case"scheme":{t=R_.fromObject(e);break}case"judgement":{t=f3.fromObject(e);break}default:t=yne.fromObject(e)}return t}};var oEe={minimumFractionDigits:0,maximumFractionDigits:2},Lc=class{static convertAngularFormatString(e){if(!e.match(/[0-9].[0-9]-[0-9]/))throw new Error("Invalid format string.");let t=e.split(".")[1].split("-"),i=parseInt(t[0]),r=parseInt(t[1]);return{minimumFractionDigits:i,maximumFractionDigits:r}}static format(e,t=oEe,i=navigator.languages){let r="";return!isNaN(e)&&e!=null&&(r=new Intl.NumberFormat(i,t).format(e)),r}};var g3=class{constructor(){this._subs=[]}_unsubscribe(){this._subs.forEach(e=>e.unsubscribe()),this._subs=[]}};var hn=class n{static move(e,t,i){if(i>=e.length){let r=i-e.length+1;for(;r--;)e.push(void 0)}return e.splice(i,0,e.splice(t,1)[0]),e}static unique(e,t){return[...new Map(e.map(i=>[t(i),i])).values()]}static equals(e,t,i,r){let o;if(!e&&!t)o=!0;else if(!e||!t)o=!1;else{let s=r?e.slice().sort(r):e.slice().sort(),c=r?t.slice().sort(r):t.slice().sort();o=s.length===c.length&&s.every((h,g)=>{let x;return i?x=i(h,c[g]):x=h===c[g],x})}return o}static average(e){let t=null;return e&&e.length>0&&(t=e.reduce((i,r)=>i+r,0)/e.length),t}static sum(e){let t=null;return e&&e.length>0&&(t=e.reduce((i,r)=>i+r,0)),t}static median(e){return n.quartile(e,.5)}static quartile(e,t){if(e&&e.length>0){e.sort((c,h)=>c-h);let r=(e.length-1)*t,o=Math.floor(r),s=r-o;return e[o+1]!==void 0?e[o]+s*(e[o+1]-e[o]):e[o]}return null}static chunking(e,t){let i=0,r=e.length,o=[];for(i=0;i{let n=ai(ba);return()=>n.scrollStrategies.reposition({scrollThrottle:S8e})}});function qIt(n){return()=>n.scrollStrategies.reposition({scrollThrottle:S8e})}var $It={provide:E8e,deps:[ba],useFactory:qIt};function KIt(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}var WIt=new fi("mat-tooltip-default-options",{providedIn:"root",factory:KIt});var w8e="tooltip-panel",C8e=T_({passive:!0}),ZIt=8,QIt=8,XIt=24,JIt=200,HT=(()=>{let e=class e{get position(){return this._position}set position(i){i!==this._position&&(this._position=i,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(i){this._positionAtOrigin=wl(i),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(i){this._disabled=wl(i),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(i){this._showDelay=Qh(i)}get hideDelay(){return this._hideDelay}set hideDelay(i){this._hideDelay=Qh(i),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(i){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=i!=null?String(i).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(i){this._tooltipClass=i,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}constructor(i,r,o,s,c,h,g,x,C,A,k,O){this._overlay=i,this._elementRef=r,this._scrollDispatcher=o,this._viewContainerRef=s,this._ngZone=c,this._platform=h,this._ariaDescriber=g,this._focusMonitor=x,this._dir=A,this._defaultOptions=k,this._position="below",this._positionAtOrigin=!1,this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._tooltipComponent=eTt,this._viewportMargin=8,this._cssClassPrefix="mat-mdc",this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new mi,this._injector=ai(yo),this._scrollStrategy=C,this._document=O,k&&(this._showDelay=k.showDelay,this._hideDelay=k.hideDelay,k.position&&(this.position=k.position),k.positionAtOrigin&&(this.positionAtOrigin=k.positionAtOrigin),k.touchGestures&&(this.touchGestures=k.touchGestures)),A.change.pipe(hr(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),this._viewportMargin=ZIt}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(hr(this._destroyed)).subscribe(i=>{i?i==="keyboard"&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){let i=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([r,o])=>{i.removeEventListener(r,o,C8e)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(i,this.message,"tooltip"),this._focusMonitor.stopMonitoring(i)}show(i=this.showDelay,r){if(this.disabled||!this.message||this._isTooltipVisible()){this._tooltipInstance?._cancelPendingAnimations();return}let o=this._createOverlay(r);this._detach(),this._portal=this._portal||new _0(this._tooltipComponent,this._viewContainerRef);let s=this._tooltipInstance=o.attach(this._portal).instance;s._triggerElement=this._elementRef.nativeElement,s._mouseLeaveHideDelay=this._hideDelay,s.afterHidden().pipe(hr(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),s.show(i)}hide(i=this.hideDelay){let r=this._tooltipInstance;r&&(r.isVisible()?r.hide(i):(r._cancelPendingAnimations(),this._detach()))}toggle(i){this._isTooltipVisible()?this.hide():this.show(void 0,i)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(i){if(this._overlayRef){let s=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!i)&&s._origin instanceof Ai)return this._overlayRef;this._detach()}let r=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),o=this._overlay.position().flexibleConnectedTo(this.positionAtOrigin?i||this._elementRef:this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(r);return o.positionChanges.pipe(hr(this._destroyed)).subscribe(s=>{this._updateCurrentPositionClass(s.connectionPair),this._tooltipInstance&&s.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:o,panelClass:`${this._cssClassPrefix}-${w8e}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(hr(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(hr(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(hr(this._destroyed)).subscribe(s=>{this._isTooltipVisible()&&s.keyCode===27&&!il(s)&&(s.preventDefault(),s.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(i){let r=i.getConfig().positionStrategy,o=this._getOrigin(),s=this._getOverlayPosition();r.withPositions([this._addOffset(Ce(Ce({},o.main),s.main)),this._addOffset(Ce(Ce({},o.fallback),s.fallback))])}_addOffset(i){let r=QIt,o=!this._dir||this._dir.value=="ltr";return i.originY==="top"?i.offsetY=-r:i.originY==="bottom"?i.offsetY=r:i.originX==="start"?i.offsetX=o?-r:r:i.originX==="end"&&(i.offsetX=o?r:-r),i}_getOrigin(){let i=!this._dir||this._dir.value=="ltr",r=this.position,o;r=="above"||r=="below"?o={originX:"center",originY:r=="above"?"top":"bottom"}:r=="before"||r=="left"&&i||r=="right"&&!i?o={originX:"start",originY:"center"}:(r=="after"||r=="right"&&i||r=="left"&&!i)&&(o={originX:"end",originY:"center"});let{x:s,y:c}=this._invertPosition(o.originX,o.originY);return{main:o,fallback:{originX:s,originY:c}}}_getOverlayPosition(){let i=!this._dir||this._dir.value=="ltr",r=this.position,o;r=="above"?o={overlayX:"center",overlayY:"bottom"}:r=="below"?o={overlayX:"center",overlayY:"top"}:r=="before"||r=="left"&&i||r=="right"&&!i?o={overlayX:"end",overlayY:"center"}:(r=="after"||r=="right"&&i||r=="left"&&!i)&&(o={overlayX:"start",overlayY:"center"});let{x:s,y:c}=this._invertPosition(o.overlayX,o.overlayY);return{main:o,fallback:{overlayX:s,overlayY:c}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),ad(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()},{injector:this._injector}))}_setTooltipClass(i){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=i,this._tooltipInstance._markForCheck())}_invertPosition(i,r){return this.position==="above"||this.position==="below"?r==="top"?r="bottom":r==="bottom"&&(r="top"):i==="end"?i="start":i==="start"&&(i="end"),{x:i,y:r}}_updateCurrentPositionClass(i){let{overlayY:r,originX:o,originY:s}=i,c;if(r==="center"?this._dir&&this._dir.value==="rtl"?c=o==="end"?"left":"right":c=o==="start"?"left":"right":c=r==="bottom"&&s==="top"?"above":"below",c!==this._currentPosition){let h=this._overlayRef;if(h){let g=`${this._cssClassPrefix}-${w8e}-`;h.removePanelClass(g+this._currentPosition),h.addPanelClass(g+c)}this._currentPosition=c}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",i=>{this._setupPointerExitEventsIfNeeded();let r;i.x!==void 0&&i.y!==void 0&&(r=i),this.show(void 0,r)}]):this.touchGestures!=="off"&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",i=>{let r=i.targetTouches?.[0],o=r?{x:r.clientX,y:r.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout);let s=500;this._touchstartTimeout=setTimeout(()=>this.show(void 0,o),this._defaultOptions.touchLongPressShowDelay??s)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;let i=[];if(this._platformSupportsMouseEvents())i.push(["mouseleave",r=>{let o=r.relatedTarget;(!o||!this._overlayRef?.overlayElement.contains(o))&&this.hide()}],["wheel",r=>this._wheelListener(r)]);else if(this.touchGestures!=="off"){this._disableNativeGesturesIfNecessary();let r=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};i.push(["touchend",r],["touchcancel",r])}this._addListeners(i),this._passiveListeners.push(...i)}_addListeners(i){i.forEach(([r,o])=>{this._elementRef.nativeElement.addEventListener(r,o,C8e)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(i){if(this._isTooltipVisible()){let r=this._document.elementFromPoint(i.clientX,i.clientY),o=this._elementRef.nativeElement;r!==o&&!o.contains(r)&&this.hide()}}_disableNativeGesturesIfNecessary(){let i=this.touchGestures;if(i!=="off"){let r=this._elementRef.nativeElement,o=r.style;(i==="on"||r.nodeName!=="INPUT"&&r.nodeName!=="TEXTAREA")&&(o.userSelect=o.msUserSelect=o.webkitUserSelect=o.MozUserSelect="none"),(i==="on"||!r.draggable)&&(o.webkitUserDrag="none"),o.touchAction="none",o.webkitTapHighlightColor="transparent"}}};e.\u0275fac=function(r){return new(r||e)(oe(ba),oe(Ai),oe(aC),oe(Sc),oe(Zi),oe(zo),oe(_je),oe(Lu),oe(E8e),oe(pl),oe(WIt,8),oe(Ln))},e.\u0275dir=Ki({type:e,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(r,o){r&2&&$n("mat-mdc-tooltip-disabled",o.disabled)},inputs:{position:[0,"matTooltipPosition","position"],positionAtOrigin:[0,"matTooltipPositionAtOrigin","positionAtOrigin"],disabled:[0,"matTooltipDisabled","disabled"],showDelay:[0,"matTooltipShowDelay","showDelay"],hideDelay:[0,"matTooltipHideDelay","hideDelay"],touchGestures:[0,"matTooltipTouchGestures","touchGestures"],message:[0,"matTooltip","message"],tooltipClass:[0,"matTooltipClass","tooltipClass"]},exportAs:["matTooltip"],standalone:!0});let n=e;return n})(),eTt=(()=>{let e=class e{constructor(i,r,o){this._changeDetectorRef=i,this._elementRef=r,this._isMultiline=!1,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new mi,this._showAnimation="mat-mdc-tooltip-show",this._hideAnimation="mat-mdc-tooltip-hide",this._animationsDisabled=o==="NoopAnimations"}show(i){this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},i)}hide(i){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},i)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:i}){(!i||!this._triggerElement.contains(i))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){let i=this._elementRef.nativeElement.getBoundingClientRect();return i.height>XIt&&i.width>=JIt}_handleAnimationEnd({animationName:i}){(i===this._showAnimation||i===this._hideAnimation)&&this._finalizeAnimation(i===this._showAnimation)}_cancelPendingAnimations(){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(i){i?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(i){let r=this._tooltip.nativeElement,o=this._showAnimation,s=this._hideAnimation;if(r.classList.remove(i?s:o),r.classList.add(i?o:s),this._isVisible!==i&&(this._isVisible=i,this._changeDetectorRef.markForCheck()),i&&!this._animationsDisabled&&typeof getComputedStyle=="function"){let c=getComputedStyle(r);(c.getPropertyValue("animation-duration")==="0s"||c.getPropertyValue("animation-name")==="none")&&(this._animationsDisabled=!0)}i&&this._onShow(),this._animationsDisabled&&(r.classList.add("_mat-animation-noopable"),this._finalizeAnimation(i))}};e.\u0275fac=function(r){return new(r||e)(oe(ur),oe(Ai),oe(da,8))},e.\u0275cmp=Ct({type:e,selectors:[["mat-tooltip-component"]],viewQuery:function(r,o){if(r&1&&Xn(YIt,7),r&2){let s;Di(s=ki())&&(o._tooltip=s.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(r,o){r&1&&At("mouseleave",function(c){return o._handleMouseLeave(c)}),r&2&&ld("zoom",o.isVisible()?1:null)},standalone:!0,features:[Ot],decls:4,vars:4,consts:[["tooltip",""],[1,"mdc-tooltip","mdc-tooltip--shown","mat-mdc-tooltip",3,"animationend","ngClass"],[1,"mdc-tooltip__surface","mdc-tooltip__surface-animation"]],template:function(r,o){if(r&1){let s=Fi();se(0,"div",1,0),At("animationend",function(h){return ht(s),pt(o._handleAnimationEnd(h))}),se(2,"div",2),yt(3),ce()()}r&2&&($n("mdc-tooltip--multiline",o._isMultiline),J("ngClass",o.tooltipClass),Z(3),jn(o.message))},dependencies:[Xa],styles:['.mdc-tooltip__surface{word-break:break-all;word-break:var(--mdc-tooltip-word-break, normal);overflow-wrap:anywhere}.mdc-tooltip--showing-transition .mdc-tooltip__surface-animation{transition:opacity 150ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 150ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-tooltip--hide-transition .mdc-tooltip__surface-animation{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-tooltip{position:fixed;display:none;z-index:9}.mdc-tooltip-wrapper--rich{position:relative}.mdc-tooltip--shown,.mdc-tooltip--showing,.mdc-tooltip--hide{display:inline-flex}.mdc-tooltip--shown.mdc-tooltip--rich,.mdc-tooltip--showing.mdc-tooltip--rich,.mdc-tooltip--hide.mdc-tooltip--rich{display:inline-block;left:-320px;position:absolute}.mdc-tooltip__surface{line-height:16px;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center}.mdc-tooltip__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-tooltip__surface::before{border-color:CanvasText}}.mdc-tooltip--rich .mdc-tooltip__surface{align-items:flex-start;display:flex;flex-direction:column;min-height:24px;min-width:40px;max-width:320px;position:relative}.mdc-tooltip--multiline .mdc-tooltip__surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mdc-tooltip__surface,.mdc-tooltip--multiline .mdc-tooltip__surface[dir=rtl]{text-align:right}.mdc-tooltip__surface .mdc-tooltip__title{margin:0 8px}.mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(200px - 2*8px);margin:8px;text-align:left}[dir=rtl] .mdc-tooltip__surface .mdc-tooltip__content,.mdc-tooltip__surface .mdc-tooltip__content[dir=rtl]{text-align:right}.mdc-tooltip--rich .mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(320px - 2*8px);align-self:stretch}.mdc-tooltip__surface .mdc-tooltip__content-link{text-decoration:none}.mdc-tooltip--rich-actions,.mdc-tooltip__content,.mdc-tooltip__title{z-index:1}.mdc-tooltip__surface-animation{opacity:0;transform:scale(0.8);will-change:transform,opacity}.mdc-tooltip--shown .mdc-tooltip__surface-animation{transform:scale(1);opacity:1}.mdc-tooltip--hide .mdc-tooltip__surface-animation{transform:scale(1)}.mdc-tooltip__caret-surface-top,.mdc-tooltip__caret-surface-bottom{position:absolute;height:24px;width:24px;transform:rotate(35deg) skewY(20deg) scaleX(0.9396926208)}.mdc-tooltip__caret-surface-top .mdc-elevation-overlay,.mdc-tooltip__caret-surface-bottom .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-tooltip__caret-surface-bottom{box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);outline:1px solid rgba(0,0,0,0);z-index:-1}@media screen and (forced-colors: active){.mdc-tooltip__caret-surface-bottom{outline-color:CanvasText}}.mat-mdc-tooltip .mdc-tooltip__surface{background-color:var(--mdc-plain-tooltip-container-color)}.mat-mdc-tooltip .mdc-tooltip__surface{border-radius:var(--mdc-plain-tooltip-container-shape)}.mat-mdc-tooltip .mdc-tooltip__caret-surface-top,.mat-mdc-tooltip .mdc-tooltip__caret-surface-bottom{border-radius:var(--mdc-plain-tooltip-container-shape)}.mat-mdc-tooltip .mdc-tooltip__surface{color:var(--mdc-plain-tooltip-supporting-text-color)}.mat-mdc-tooltip .mdc-tooltip__surface{font-family:var(--mdc-plain-tooltip-supporting-text-font);line-height:var(--mdc-plain-tooltip-supporting-text-line-height);font-size:var(--mdc-plain-tooltip-supporting-text-size);font-weight:var(--mdc-plain-tooltip-supporting-text-weight);letter-spacing:var(--mdc-plain-tooltip-supporting-text-tracking)}.mat-mdc-tooltip{position:relative;transform:scale(0)}.mat-mdc-tooltip::before{content:"";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-panel.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards}'],encapsulation:2,changeDetection:0});let n=e;return n})();var GT=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=Oi({type:e}),e.\u0275inj=Mi({providers:[$It],imports:[Oie,os,ng,ro,ro,ig]});let n=e;return n})();var tTt={type:"loader-circle",width:"100px"},I8e=tTt;var Qs=function(n){return n[n.INIT=0]="INIT",n[n.LOADING=1]="LOADING",n[n.SUCCESS=2]="SUCCESS",n[n.ERROR=3]="ERROR",n}(Qs||{}),bne=class{constructor(){this.state$=new mi}destroy(){this.state$.unsubscribe()}},xne=class extends bne{constructor(){super()}connect(e){this.state$.next(Qs.LOADING),e.then(()=>this.state$.next(Qs.SUCCESS)).catch(()=>this.state$.next(Qs.ERROR))}},wne=class extends bne{constructor(){super()}connect(e){this._loadSubscription=e.pipe(aa(Qs.INIT),Ld(t=>(this.state$.next(Qs.ERROR),t)),Nj(t=>!(t instanceof Error))).subscribe(t=>this.state$.next(t))}destroy(){super.destroy(),this._loadSubscription&&this._loadSubscription.unsubscribe()}};var aEe=n=>({$implicit:n});function iTt(n,e){n&1&&Pn(0)}function nTt(n,e){if(n&1&&Ne(0,iTt,1,0,"ng-container",1),n&2){let t=le(2);J("ngTemplateOutlet",t.customLoadingTemplate)}}function rTt(n,e){n&1&&(se(0,"div",0)(1,"div",2),bt(2,"mat-spinner",3),ce()())}function oTt(n,e){if(n&1&&Ne(0,nTt,1,1,"ng-container")(1,rTt,3,0,"div",0),n&2){let t=le();Hi(t.customLoadingTemplate?0:1)}}function sTt(n,e){n&1&&Pn(0)}function aTt(n,e){if(n&1&&Ne(0,sTt,1,0,"ng-container",4),n&2){let t=le();J("ngTemplateOutlet",t.initTemplate)("ngTemplateOutletContext",Tr(2,aEe,t.initTemplateContext))}}function lTt(n,e){n&1&&Pn(0)}function cTt(n,e){if(n&1&&Ne(0,lTt,1,0,"ng-container",4),n&2){let t=le();J("ngTemplateOutlet",t.successTemplate)("ngTemplateOutletContext",Tr(2,aEe,t.successTemplateContext))}}function uTt(n,e){n&1&&Pn(0)}function dTt(n,e){if(n&1&&Ne(0,uTt,1,0,"ng-container",4),n&2){let t=le();J("ngTemplateOutlet",t.errorTemplate)("ngTemplateOutletContext",Tr(2,aEe,t.errorTemplateContext))}}var md=(()=>{let e=class e{constructor(i){this._cdr=i,this.customLoadingTemplate=null,this.errorTemplate=null,this.successTemplate=null,this.initTemplate=null,this.options=I8e,this.BdLoaderState=Qs,this.currentState=Qs.INIT}ngOnChanges(i){i.loadItem&&i.loadItem.currentValue&&this._onLoadItemChange(i.loadItem.currentValue)}ngOnDestroy(){this._loader&&this._loader.destroy()}_onLoadItemChange(i){this._loader&&(this._loader.destroy(),this._loader=null),this._isPromise(i)?this._setPromiseLoader(i):this._setSubjectLoader(i)}_setPromiseLoader(i){this._loader=new xne,this._subscribeLoaderState(this._loader),this._loader.connect(i)}_setSubjectLoader(i){this._loader=new wne,this._subscribeLoaderState(this._loader),this._loader.connect(i)}_subscribeLoaderState(i){this._stateSubscription&&this._stateSubscription.unsubscribe(),this._stateSubscription=i.state$.subscribe(r=>{this.currentState=r,this._cdr.detectChanges()})}_isPromise(i){return!!i.then&&typeof i.then=="function"}};e.\u0275fac=function(r){return new(r||e)(oe(ur))},e.\u0275cmp=Ct({type:e,selectors:[["bd-loader"]],inputs:{customLoadingTemplate:"customLoadingTemplate",errorTemplate:"errorTemplate",successTemplate:"successTemplate",initTemplate:"initTemplate",errorTemplateContext:"errorTemplateContext",successTemplateContext:"successTemplateContext",initTemplateContext:"initTemplateContext",loadItem:"loadItem",options:"options"},standalone:!0,features:[eo,Ot],decls:5,vars:1,consts:[["fxLayout","row","fxLayoutAlign","center center"],[4,"ngTemplateOutlet"],["fxFlex","100px","fxLayoutAlign","end center"],["strokeWidth","3"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(r,o){if(r&1&&(se(0,"div"),Ne(1,oTt,2,1)(2,aTt,1,4,"ng-container")(3,cTt,1,4,"ng-container")(4,dTt,1,4,"ng-container"),ce()),r&2){let s;Z(),Hi((s=o.currentState)===o.BdLoaderState.LOADING?1:s===o.BdLoaderState.INIT?2:s===o.BdLoaderState.SUCCESS?3:s===o.BdLoaderState.ERROR?4:-1)}},dependencies:[Rs,Ys,tl,Ac,Cl,qHe,YHe],changeDetection:0});let n=e;return n})();var Zb=(()=>{let e=class e{constructor(){this.icon="visibility_off",this.message=""}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=Ct({type:e,selectors:[["bd-message-empty"]],inputs:{icon:"icon",message:"message"},standalone:!0,features:[Ot],decls:8,vars:2,consts:[[1,"message__empty"],[1,"flex","flex-row","gap-2","items-center","justify-center"],[1,"flex-none"],[1,"mat-caption"]],template:function(r,o){r&1&&(se(0,"div",0)(1,"div",1)(2,"div",2)(3,"mat-icon"),yt(4),ce()(),se(5,"div",2)(6,"span",3),yt(7),ce()()()()),r&2&&(Z(4),jn(o.icon),Z(3),jn(o.message))},dependencies:[qs,zs],styles:[".message__empty[_ngcontent-%COMP%]{color:#0000008a}.mat-caption[_ngcontent-%COMP%]{line-height:28px}"]});let n=e;return n})();var hTt=["trigger"],pTt=["panel"],fTt=[[["mat-select-trigger"]],"*"],mTt=["mat-select-trigger","*"];function gTt(n,e){if(n&1&&(se(0,"span",4),yt(1),ce()),n&2){let t=le();Z(),jn(t.placeholder)}}function _Tt(n,e){n&1&&Gn(0)}function vTt(n,e){if(n&1&&(se(0,"span",11),yt(1),ce()),n&2){let t=le(2);Z(),jn(t.triggerValue)}}function yTt(n,e){if(n&1&&(se(0,"span",5),Ne(1,_Tt,1,0)(2,vTt,2,1,"span",11),ce()),n&2){let t=le();Z(),Hi(t.customTrigger?1:2)}}function bTt(n,e){if(n&1){let t=Fi();se(0,"div",12,1),At("@transformPanel.done",function(r){ht(t);let o=le();return pt(o._panelDoneAnimatingStream.next(r.toState))})("keydown",function(r){ht(t);let o=le();return pt(o._handleKeydown(r))}),Gn(2,1),ce()}if(n&2){let t=le();wee("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",t._getPanelTheme(),""),J("ngClass",t.panelClass)("@transformPanel","showing"),Et("id",t.id+"-panel")("aria-multiselectable",t.multiple)("aria-label",t.ariaLabel||null)("aria-labelledby",t._getPanelAriaLabelledby())}}var xTt={transformPanelWrap:jl("transformPanelWrap",[$s("* => void",DT("@transformPanel",[AT()],{optional:!0}))]),transformPanel:jl("transformPanel",[nl("void",qr({opacity:0,transform:"scale(1, 0.8)"})),$s("void => showing",Ps("120ms cubic-bezier(0, 0, 0.2, 1)",qr({opacity:1,transform:"scale(1, 1)"}))),$s("* => void",Ps("100ms linear",qr({opacity:0})))])};var T8e=0,A8e=new fi("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{let n=ai(ba);return()=>n.scrollStrategies.reposition()}});function wTt(n){return()=>n.scrollStrategies.reposition()}var CTt=new fi("MAT_SELECT_CONFIG"),STt={provide:A8e,deps:[ba],useFactory:wTt},ETt=new fi("MatSelectTrigger"),lEe=class{constructor(e,t){this.source=e,this.value=t}},D8e=(()=>{let e=class e{_scrollOptionIntoView(i){let r=this.options.toArray()[i];if(r){let o=this.panel.nativeElement,s=Nie(i,this.options,this.optionGroups),c=r._getHostElement();i===0&&s===1?o.scrollTop=0:o.scrollTop=Pie(c.offsetTop,c.offsetHeight,o.scrollTop,o.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(i){return new lEe(this,i)}get focused(){return this._focused||this._panelOpen}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(i){this._hideSingleSelectionIndicator=i,this._syncParentProperties()}get placeholder(){return this._placeholder}set placeholder(i){this._placeholder=i,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(rg.required)??!1}set required(i){this._required=i,this.stateChanges.next()}get multiple(){return this._multiple}set multiple(i){this._selectionModel,this._multiple=i}get compareWith(){return this._compareWith}set compareWith(i){this._compareWith=i,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(i){this._assignValue(i)&&this._onChange(i)}get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(i){this._errorStateTracker.matcher=i}get id(){return this._id}set id(i){this._id=i||this._uid,this.stateChanges.next()}get errorState(){return this._errorStateTracker.errorState}set errorState(i){this._errorStateTracker.errorState=i}constructor(i,r,o,s,c,h,g,x,C,A,k,O,F,L){this._viewportRuler=i,this._changeDetectorRef=r,this._elementRef=c,this._dir=h,this._parentFormField=C,this.ngControl=A,this._liveAnnouncer=F,this._defaultOptions=L,this._positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}],this._panelOpen=!1,this._compareWith=(z,j)=>z===j,this._uid=`mat-select-${T8e++}`,this._triggerAriaLabelledBy=null,this._destroy=new mi,this.stateChanges=new mi,this.disableAutomaticLabeling=!0,this._onChange=()=>{},this._onTouched=()=>{},this._valueId=`mat-select-value-${T8e++}`,this._panelDoneAnimatingStream=new mi,this._overlayPanelClass=this._defaultOptions?.overlayPanelClass||"",this._focused=!1,this.controlType="mat-select",this.disabled=!1,this.disableRipple=!1,this.tabIndex=0,this._hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1,this._multiple=!1,this.disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1,this.ariaLabel="",this.panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth<"u"?this._defaultOptions.panelWidth:"auto",this._initialized=new mi,this.optionSelectionChanges=d_(()=>{let z=this.options;return z?z.changes.pipe(aa(z),lr(()=>Da(...z.map(j=>j.onSelectionChange)))):this._initialized.pipe(lr(()=>this.optionSelectionChanges))}),this.openedChange=new Kt,this._openedStream=this.openedChange.pipe(Wn(z=>z),ri(()=>{})),this._closedStream=this.openedChange.pipe(Wn(z=>!z),ri(()=>{})),this.selectionChange=new Kt,this.valueChange=new Kt,this._trackedModal=null,this._skipPredicate=z=>this.panelOpen?!1:z.disabled,this.ngControl&&(this.ngControl.valueAccessor=this),L?.typeaheadDebounceInterval!=null&&(this.typeaheadDebounceInterval=L.typeaheadDebounceInterval),this._errorStateTracker=new wT(s,A,x,g,this.stateChanges),this._scrollStrategyFactory=O,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(k)||0,this.id=this.id}ngOnInit(){this._selectionModel=new Vie(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(hh(),hr(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen)),this._viewportRuler.change().pipe(hr(this._destroy)).subscribe(()=>{this.panelOpen&&(this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._changeDetectorRef.detectChanges())})}ngAfterContentInit(){this._initialized.next(),this._initialized.complete(),this._initKeyManager(),this._selectionModel.changed.pipe(hr(this._destroy)).subscribe(i=>{i.added.forEach(r=>r.select()),i.removed.forEach(r=>r.deselect())}),this.options.changes.pipe(aa(null),hr(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){let i=this._getTriggerAriaLabelledby(),r=this.ngControl;if(i!==this._triggerAriaLabelledBy){let o=this._elementRef.nativeElement;this._triggerAriaLabelledBy=i,i?o.setAttribute("aria-labelledby",i):o.removeAttribute("aria-labelledby")}r&&(this._previousControl!==r.control&&(this._previousControl!==void 0&&r.disabled!==null&&r.disabled!==this.disabled&&(this.disabled=r.disabled),this._previousControl=r.control),this.updateErrorState())}ngOnChanges(i){(i.disabled||i.userAriaDescribedBy)&&this.stateChanges.next(),i.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this.typeaheadDebounceInterval)}ngOnDestroy(){this._keyManager?.destroy(),this._destroy.next(),this._destroy.complete(),this.stateChanges.complete(),this._clearFromModal()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin()),this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._applyModalPanelOwnership(),this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_applyModalPanelOwnership(){let i=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!i)return;let r=`${this.id}-panel`;this._trackedModal&&bT(this._trackedModal,"aria-owns",r),t3(i,"aria-owns",r),this._trackedModal=i}_clearFromModal(){if(!this._trackedModal)return;let i=`${this.id}-panel`;bT(this._trackedModal,"aria-owns",i),this._trackedModal=null}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched(),this.stateChanges.next())}writeValue(i){this._assignValue(i)}registerOnChange(i){this._onChange=i}registerOnTouched(i){this._onTouched=i}setDisabledState(i){this.disabled=i,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){let i=this._selectionModel.selected.map(r=>r.viewValue);return this._isRtl()&&i.reverse(),i.join(", ")}return this._selectionModel.selected[0].viewValue}updateErrorState(){this._errorStateTracker.updateErrorState()}_isRtl(){return this._dir?this._dir.value==="rtl":!1}_handleKeydown(i){this.disabled||(this.panelOpen?this._handleOpenKeydown(i):this._handleClosedKeydown(i))}_handleClosedKeydown(i){let r=i.keyCode,o=r===40||r===38||r===37||r===39,s=r===13||r===32,c=this._keyManager;if(!c.isTyping()&&s&&!il(i)||(this.multiple||i.altKey)&&o)i.preventDefault(),this.open();else if(!this.multiple){let h=this.selected;c.onKeydown(i);let g=this.selected;g&&h!==g&&this._liveAnnouncer.announce(g.viewValue,1e4)}}_handleOpenKeydown(i){let r=this._keyManager,o=i.keyCode,s=o===40||o===38,c=r.isTyping();if(s&&i.altKey)i.preventDefault(),this.close();else if(!c&&(o===13||o===32)&&r.activeItem&&!il(i))i.preventDefault(),r.activeItem._selectViaInteraction();else if(!c&&this._multiple&&o===65&&i.ctrlKey){i.preventDefault();let h=this.options.some(g=>!g.disabled&&!g.selected);this.options.forEach(g=>{g.disabled||(h?g.select():g.deselect())})}else{let h=r.activeItemIndex;r.onKeydown(i),this._multiple&&s&&i.shiftKey&&r.activeItem&&r.activeItemIndex!==h&&r.activeItem._selectViaInteraction()}}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this._keyManager?.cancelTypeahead(),!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe(kr(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.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(i){if(this.options.forEach(r=>r.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&i)Array.isArray(i),i.forEach(r=>this._selectOptionByValue(r)),this._sortValues();else{let r=this._selectOptionByValue(i);r?this._keyManager.updateActiveItem(r):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(i){let r=this.options.find(o=>{if(this._selectionModel.isSelected(o))return!1;try{return o.value!=null&&this._compareWith(o.value,i)}catch{return!1}});return r&&this._selectionModel.select(r),r}_assignValue(i){return i!==this._value||this._multiple&&Array.isArray(i)?(this.options&&this._setSelectionByValue(i),this._value=i,!0):!1}_getOverlayWidth(i){return this.panelWidth==="auto"?(i instanceof sG?i.elementRef:i||this._elementRef).nativeElement.getBoundingClientRect().width:this.panelWidth===null?"":this.panelWidth}_syncParentProperties(){if(this.options)for(let i of this.options)i._changeDetectorRef.markForCheck()}_initKeyManager(){this._keyManager=new XB(this.options).withTypeAhead(this.typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]).skipPredicate(this._skipPredicate),this._keyManager.tabOut.subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){let i=Da(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(hr(i)).subscribe(r=>{this._onSelect(r.source,r.isUserInput),r.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),Da(...this.options.map(r=>r._stateChanges)).pipe(hr(i)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(i,r){let o=this._selectionModel.isSelected(i);i.value==null&&!this._multiple?(i.deselect(),this._selectionModel.clear(),this.value!=null&&this._propagateChanges(i.value)):(o!==i.selected&&(i.selected?this._selectionModel.select(i):this._selectionModel.deselect(i)),r&&this._keyManager.setActiveItem(i),this.multiple&&(this._sortValues(),r&&this.focus())),o!==this._selectionModel.isSelected(i)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){let i=this.options.toArray();this._selectionModel.sort((r,o)=>this.sortComparator?this.sortComparator(r,o,i):i.indexOf(r)-i.indexOf(o)),this.stateChanges.next()}}_propagateChanges(i){let r;this.multiple?r=this.selected.map(o=>o.value):r=this.selected?this.selected.value:i,this._value=r,this.valueChange.emit(r),this._onChange(r),this.selectionChange.emit(this._getChangeEvent(r)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let i=-1;for(let r=0;r0}focus(i){this._elementRef.nativeElement.focus(i)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;let i=this._parentFormField?.getLabelId(),r=i?i+" ":"";return this.ariaLabelledby?r+this.ariaLabelledby:i}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;let i=this._parentFormField?.getLabelId(),r=(i?i+" ":"")+this._valueId;return this.ariaLabelledby&&(r+=" "+this.ariaLabelledby),r}_panelDoneAnimating(i){this.openedChange.emit(i)}setDescribedByIds(i){i.length?this._elementRef.nativeElement.setAttribute("aria-describedby",i.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}};e.\u0275fac=function(r){return new(r||e)(oe(qb),oe(ur),oe(Zi),oe(D_),oe(Ai),oe(pl,8),oe(hR,8),oe(uC,8),oe(pC,8),oe($p,10),Hm("tabindex"),oe(A8e),oe(Mie),oe(CTt,8))},e.\u0275cmp=Ct({type:e,selectors:[["mat-select"]],contentQueries:function(r,o,s){if(r&1&&(gr(s,ETt,5),gr(s,ST,5),gr(s,J8,5)),r&2){let c;Di(c=ki())&&(o.customTrigger=c.first),Di(c=ki())&&(o.options=c),Di(c=ki())&&(o.optionGroups=c)}},viewQuery:function(r,o){if(r&1&&(Xn(hTt,5),Xn(pTt,5),Xn(SSe,5)),r&2){let s;Di(s=ki())&&(o.trigger=s.first),Di(s=ki())&&(o.panel=s.first),Di(s=ki())&&(o._overlayDir=s.first)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:19,hostBindings:function(r,o){r&1&&At("keydown",function(c){return o._handleKeydown(c)})("focus",function(){return o._onFocus()})("blur",function(){return o._onBlur()}),r&2&&(Et("id",o.id)("tabindex",o.disabled?-1:o.tabIndex)("aria-controls",o.panelOpen?o.id+"-panel":null)("aria-expanded",o.panelOpen)("aria-label",o.ariaLabel||null)("aria-required",o.required.toString())("aria-disabled",o.disabled.toString())("aria-invalid",o.errorState)("aria-activedescendant",o._getAriaActiveDescendant()),$n("mat-mdc-select-disabled",o.disabled)("mat-mdc-select-invalid",o.errorState)("mat-mdc-select-required",o.required)("mat-mdc-select-empty",o.empty)("mat-mdc-select-multiple",o.multiple))},inputs:{userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[2,"disabled","disabled",Ht],disableRipple:[2,"disableRipple","disableRipple",Ht],tabIndex:[2,"tabIndex","tabIndex",i=>i==null?0:xr(i)],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",Ht],placeholder:"placeholder",required:[2,"required","required",Ht],multiple:[2,"multiple","multiple",Ht],disableOptionCentering:[2,"disableOptionCentering","disableOptionCentering",Ht],compareWith:"compareWith",value:"value",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[2,"typeaheadDebounceInterval","typeaheadDebounceInterval",xr],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],standalone:!0,features:[Co([{provide:fR,useExisting:e},{provide:X8,useExisting:e}]),Ir,eo,Ot],ngContentSelectors:mTt,decls:11,vars:8,consts:[["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],["panel",""],["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],[1,"mat-mdc-select-value"],[1,"mat-mdc-select-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-value-text"],[1,"mat-mdc-select-arrow-wrapper"],[1,"mat-mdc-select-arrow"],["viewBox","0 0 24 24","width","24px","height","24px","focusable","false","aria-hidden","true"],["d","M7 10l5 5 5-5z"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"backdropClick","attach","detach","cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"keydown","ngClass"]],template:function(r,o){if(r&1){let s=Fi();Yr(fTt),se(0,"div",2,0),At("click",function(){return ht(s),pt(o.open())}),se(3,"div",3),Ne(4,gTt,2,1,"span",4)(5,yTt,3,1,"span",5),ce(),se(6,"div",6)(7,"div",7),Rr(),se(8,"svg",8),bt(9,"path",9),ce()()()(),Ne(10,bTt,3,9,"ng-template",10),At("backdropClick",function(){return ht(s),pt(o.close())})("attach",function(){return ht(s),pt(o._onAttached())})("detach",function(){return ht(s),pt(o.close())})}if(r&2){let s=_r(1);Z(3),Et("id",o._valueId),Z(),Hi(o.empty?4:5),Z(6),J("cdkConnectedOverlayPanelClass",o._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",o._scrollStrategy)("cdkConnectedOverlayOrigin",o._preferredOverlayOrigin||s)("cdkConnectedOverlayOpen",o.panelOpen)("cdkConnectedOverlayPositions",o._positions)("cdkConnectedOverlayWidth",o._overlayWidth)}},dependencies:[sG,SSe,Xa],styles:['.mat-mdc-select{display:inline-block;width:100%;outline:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-select-enabled-trigger-text-color);font-family:var(--mat-select-trigger-text-font);line-height:var(--mat-select-trigger-text-line-height);font-size:var(--mat-select-trigger-text-size);font-weight:var(--mat-select-trigger-text-weight);letter-spacing:var(--mat-select-trigger-text-tracking)}div.mat-mdc-select-panel{box-shadow:var(--mat-select-container-elevation-shadow)}.mat-mdc-select-disabled{color:var(--mat-select-disabled-trigger-text-color)}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow,.mat-form-field-invalid:not(.mat-form-field-disabled) .mat-mdc-form-field-infix::after{color:var(--mat-select-invalid-arrow-color)}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color)}.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow{color:var(--mat-select-focused-arrow-color)}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow{color:var(--mat-select-disabled-arrow-color)}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:GrayText}div.mat-mdc-select-panel{width:100%;max-height:275px;outline:0;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:static;background-color:var(--mat-select-panel-background-color)}.cdk-high-contrast-active div.mat-mdc-select-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) div.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above div.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}div.mat-mdc-select-panel .mat-mdc-option{--mdc-list-list-item-container-color: var(--mat-select-panel-background-color)}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);color:var(--mat-select-placeholder-text-color)}._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-mdc-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-mdc-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper{cursor:pointer}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label{max-width:calc(100% - 18px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 24px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch{max-width:calc(100% - 24px)}.mat-mdc-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:var(--mat-select-arrow-transform)}'],encapsulation:2,data:{animation:[xTt.transformPanel]},changeDetection:0});let n=e;return n})();var Cne=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=Oi({type:e}),e.\u0275inj=Mi({providers:[STt],imports:[os,ng,ET,ro,ig,fC,ET,ro]});let n=e;return n})();function ITt(n,e){if(n&1&&(se(0,"mat-option",16),yt(1),ce()),n&2){let t=e.$implicit;J("value",t),Z(),ps(" ",t," ")}}function TTt(n,e){if(n&1){let t=Fi();se(0,"mat-form-field",13)(1,"mat-select",15),At("selectionChange",function(r){ht(t);let o=le(2);return pt(o._changePageSize(r.value))}),Ec(2,ITt,2,2,"mat-option",16,Nu),ce()()}if(n&2){let t=le(2);J("appearance",t._formFieldAppearance)("color",t.color),Z(),J("value",t.pageSize)("disabled",t.disabled)("aria-labelledby",t._pageSizeLabelId)("panelClass",t.selectConfig.panelClass||"")("disableOptionCentering",t.selectConfig.disableOptionCentering),Z(),Ic(t._displayedPageSizeOptions)}}function ATt(n,e){if(n&1&&(se(0,"div",14),yt(1),ce()),n&2){let t=le(2);Z(),jn(t.pageSize)}}function DTt(n,e){if(n&1&&(se(0,"div",2)(1,"div",12),yt(2),ce(),Ne(3,TTt,4,7,"mat-form-field",13)(4,ATt,2,1,"div",14),ce()),n&2){let t=le();Z(),Et("id",t._pageSizeLabelId),Z(),ps(" ",t._intl.itemsPerPageLabel," "),Z(),Hi(t._displayedPageSizeOptions.length>1?3:-1),Z(),Hi(t._displayedPageSizeOptions.length<=1?4:-1)}}function kTt(n,e){if(n&1){let t=Fi();se(0,"button",17),At("click",function(){ht(t);let r=le();return pt(r.firstPage())}),Rr(),se(1,"svg",7),bt(2,"path",18),ce()()}if(n&2){let t=le();J("matTooltip",t._intl.firstPageLabel)("matTooltipDisabled",t._previousButtonsDisabled())("matTooltipPosition","above")("disabled",t._previousButtonsDisabled()),Et("aria-label",t._intl.firstPageLabel)}}function MTt(n,e){if(n&1){let t=Fi();se(0,"button",19),At("click",function(){ht(t);let r=le();return pt(r.lastPage())}),Rr(),se(1,"svg",7),bt(2,"path",20),ce()()}if(n&2){let t=le();J("matTooltip",t._intl.lastPageLabel)("matTooltipDisabled",t._nextButtonsDisabled())("matTooltipPosition","above")("disabled",t._nextButtonsDisabled()),Et("aria-label",t._intl.lastPageLabel)}}var YT=(()=>{let e=class e{constructor(){this.changes=new mi,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(i,r,o)=>{if(o==0||r==0)return`0 of ${o}`;o=Math.max(o,0);let s=i*r,c=s{let e=class e{get pageIndex(){return this._pageIndex}set pageIndex(i){this._pageIndex=Math.max(i||0,0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(i){this._length=i||0,this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(i){this._pageSize=Math.max(i||0,0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(i){this._pageSizeOptions=(i||[]).map(r=>xr(r,0)),this._updateDisplayedPageSizeOptions()}constructor(i,r,o){if(this._intl=i,this._changeDetectorRef=r,this._pageSizeLabelId=`mat-paginator-page-size-label-${PTt++}`,this._isInitialized=!1,this._initializedStream=new Yo(1),this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this.hidePageSize=!1,this.showFirstLastButtons=!1,this.selectConfig={},this.disabled=!1,this.page=new Kt,this.initialized=this._initializedStream,this._intlChanges=i.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),o){let{pageSize:s,pageSizeOptions:c,hidePageSize:h,showFirstLastButtons:g}=o;s!=null&&(this._pageSize=s),c!=null&&(this._pageSizeOptions=c),h!=null&&(this.hidePageSize=h),g!=null&&(this.showFirstLastButtons=g)}this._formFieldAppearance=o?.formFieldAppearance||"outline"}ngOnInit(){this._isInitialized=!0,this._updateDisplayedPageSizeOptions(),this._initializedStream.next()}ngOnDestroy(){this._initializedStream.complete(),this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;let i=this.pageIndex;this.pageIndex=this.pageIndex+1,this._emitPageEvent(i)}previousPage(){if(!this.hasPreviousPage())return;let i=this.pageIndex;this.pageIndex=this.pageIndex-1,this._emitPageEvent(i)}firstPage(){if(!this.hasPreviousPage())return;let i=this.pageIndex;this.pageIndex=0,this._emitPageEvent(i)}lastPage(){if(!this.hasNextPage())return;let i=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(i)}hasPreviousPage(){return this.pageIndex>=1&&this.pageSize!=0}hasNextPage(){let i=this.getNumberOfPages()-1;return this.pageIndexi-r),this._changeDetectorRef.markForCheck())}_emitPageEvent(i){this.page.emit({previousPageIndex:i,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}};e.\u0275fac=function(r){return new(r||e)(oe(YT),oe(ur),oe(wG,8))},e.\u0275cmp=Ct({type:e,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-mdc-paginator"],inputs:{color:"color",pageIndex:[2,"pageIndex","pageIndex",xr],length:[2,"length","length",xr],pageSize:[2,"pageSize","pageSize",xr],pageSizeOptions:"pageSizeOptions",hidePageSize:[2,"hidePageSize","hidePageSize",Ht],showFirstLastButtons:[2,"showFirstLastButtons","showFirstLastButtons",Ht],selectConfig:"selectConfig",disabled:[2,"disabled","disabled",Ht]},outputs:{page:"page"},exportAs:["matPaginator"],standalone:!0,features:[Ir,Ot],decls:14,vars:14,consts:[[1,"mat-mdc-paginator-outer-container"],[1,"mat-mdc-paginator-container"],[1,"mat-mdc-paginator-page-size"],[1,"mat-mdc-paginator-range-actions"],["aria-live","polite",1,"mat-mdc-paginator-range-label"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-previous",3,"click","matTooltip","matTooltipDisabled","matTooltipPosition","disabled"],["viewBox","0 0 24 24","focusable","false","aria-hidden","true",1,"mat-mdc-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-mdc-paginator-navigation-next",3,"click","matTooltip","matTooltipDisabled","matTooltipPosition","disabled"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled"],[1,"mat-mdc-paginator-page-size-label"],[1,"mat-mdc-paginator-page-size-select",3,"appearance","color"],[1,"mat-mdc-paginator-page-size-value"],["hideSingleSelectionIndicator","",3,"selectionChange","value","disabled","aria-labelledby","panelClass","disableOptionCentering"],[3,"value"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-first",3,"click","matTooltip","matTooltipDisabled","matTooltipPosition","disabled"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-last",3,"click","matTooltip","matTooltipDisabled","matTooltipPosition","disabled"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(r,o){r&1&&(se(0,"div",0)(1,"div",1),Ne(2,DTt,5,4,"div",2),se(3,"div",3)(4,"div",4),yt(5),ce(),Ne(6,kTt,3,5,"button",5),se(7,"button",6),At("click",function(){return o.previousPage()}),Rr(),se(8,"svg",7),bt(9,"path",8),ce()(),sO(),se(10,"button",9),At("click",function(){return o.nextPage()}),Rr(),se(11,"svg",7),bt(12,"path",10),ce()(),Ne(13,MTt,3,5,"button",11),ce()()()),r&2&&(Z(2),Hi(o.hidePageSize?-1:2),Z(3),ps(" ",o._intl.getRangeLabel(o.pageIndex,o.pageSize,o.length)," "),Z(),Hi(o.showFirstLastButtons?6:-1),Z(),J("matTooltip",o._intl.previousPageLabel)("matTooltipDisabled",o._previousButtonsDisabled())("matTooltipPosition","above")("disabled",o._previousButtonsDisabled()),Et("aria-label",o._intl.previousPageLabel),Z(3),J("matTooltip",o._intl.nextPageLabel)("matTooltipDisabled",o._nextButtonsDisabled())("matTooltipPosition","above")("disabled",o._nextButtonsDisabled()),Et("aria-label",o._intl.nextPageLabel),Z(3),Hi(o.showFirstLastButtons?13:-1))},dependencies:[zT,D8e,ST,Jh,HT],styles:[".mat-mdc-paginator{display:block;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-paginator-container-text-color);background-color:var(--mat-paginator-container-background-color);font-family:var(--mat-paginator-container-text-font);line-height:var(--mat-paginator-container-text-line-height);font-size:var(--mat-paginator-container-text-size);font-weight:var(--mat-paginator-container-text-weight);letter-spacing:var(--mat-paginator-container-text-tracking);--mat-form-field-container-height:var(--mat-paginator-form-field-container-height);--mat-form-field-container-vertical-padding:var(--mat-paginator-form-field-container-vertical-padding)}.mat-mdc-paginator .mat-mdc-select-value{font-size:var(--mat-paginator-select-trigger-text-size)}.mat-mdc-paginator .mat-mdc-form-field-subscript-wrapper{display:none}.mat-mdc-paginator .mat-mdc-select{line-height:1.5}.mat-mdc-paginator-outer-container{display:flex}.mat-mdc-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap;width:100%;min-height:var(--mat-paginator-container-size)}.mat-mdc-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-mdc-paginator-page-size{margin-right:0;margin-left:8px}.mat-mdc-paginator-page-size-label{margin:0 4px}.mat-mdc-paginator-page-size-select{margin:0 4px;width:84px}.mat-mdc-paginator-range-label{margin:0 32px 0 24px}.mat-mdc-paginator-range-actions{display:flex;align-items:center}.mat-mdc-paginator-icon{display:inline-block;width:28px;fill:var(--mat-paginator-enabled-icon-color)}.mat-mdc-icon-button[disabled] .mat-mdc-paginator-icon{fill:var(--mat-paginator-disabled-icon-color)}[dir=rtl] .mat-mdc-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-mdc-icon-button[disabled] .mat-mdc-paginator-icon,.cdk-high-contrast-active .mat-mdc-paginator-icon{fill:currentColor;fill:CanvasText}.cdk-high-contrast-active .mat-mdc-paginator-range-actions .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0});let n=e;return n})(),k8e=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=Oi({type:e}),e.\u0275inj=Mi({providers:[RTt],imports:[gs,Cne,GT,FTt]});let n=e;return n})();var M8e=(()=>{let e=class e extends YT{constructor(){super(...arguments),this.itemsPerPageLabel="Elemente pro Seite",this.nextPageLabel="N\xE4chste Seite",this.previousPageLabel="Vorherige Seite",this.getRangeLabel=this.buildRangeLabel}buildRangeLabel(i,r,o){return`${i*r+1} - ${i*r+r} von ${o}`}};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=Qn(e)))(o||e)}})(),e.\u0275prov=It({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var mR=class{constructor(e){this.length=0,this.data=[],this.currentPage=[],this.pageSize=20,this.pageIndex=0,this.sortFn=(t,i)=>t.toString().localeCompare(i.toString()),this.filterFn=(t,i)=>t.toString().toLowerCase().includes(i.toLowerCase()),this.data=e?.initialData||[],e?.sortFn&&(this.sortFn=e.sortFn),e?.filterFn&&(this.filterFn=e.filterFn),this.pageIndex=e?.pageIndex||0,this.pageSize=e?.pageSize||20,this._dataSorted=this.data.sort((t,i)=>this.sortFn(t,i)),this.length=this.data.length,this.currentPage=this._getCurrentPage()}replaceData(e){this.pageIndex=0,this.data=this._dataSorted=e,this.length=e.length,this.currentPage=this._getCurrentPage()}onPageEvent(e){this.pageSize=e.pageSize,this.pageIndex=e.pageIndex,this.currentPage=this._getCurrentPage()}onSortChange(e){this.sortFn=e,this.pageIndex=0,this.currentPage=this._getCurrentPage()}delete(e){this.data.splice(e,1),this.length=this._dataSorted.length,this.currentPage=this._getCurrentPage()}filter(e){this.pageIndex=0,e&&e.length>2?this._dataSorted=this.data.filter(t=>this.filterFn(t,e)):this._dataSorted=this.data,this.length=this._dataSorted.length,this.currentPage=this._getCurrentPage()}getFilteredData(){return this._dataSorted}_getCurrentPage(){return this._dataSorted.sort(this.sortFn).slice(this.pageIndex*this.pageSize,(this.pageIndex+1)*this.pageSize)}};var CG=class CG{constructor(e,t){this.size=e,this.page=t}static of(e){return new CG(e.pageSize,e.pageIndex)}toHttpParams(){let e=new Bs;return e=e.set("size",this.size.toString()),e=e.set("page",this.page.toString()),e}};CG.DEFAULT=new CG(20,0);var Sne=CG;function Qc(n){let e=Object.prototype.toString.call(n);return n instanceof Date||typeof n=="object"&&e==="[object Date]"?new n.constructor(+n):typeof n=="number"||e==="[object Number]"||typeof n=="string"||e==="[object String]"?new Date(n):new Date(NaN)}function S0(n,e){return n instanceof Date?new n.constructor(e):new Date(e)}function qT(n,e){let t=Qc(n);return isNaN(e)?S0(n,NaN):(e&&t.setDate(t.getDate()+e),t)}function mC(n,e){let t=Qc(n);if(isNaN(e))return S0(n,NaN);if(!e)return t;let i=t.getDate(),r=S0(n,t.getTime());r.setMonth(t.getMonth()+e+1,0);let o=r.getDate();return i>=o?r:(t.setFullYear(r.getFullYear(),r.getMonth(),i),t)}function O8e(n,e){let t=+Qc(n);return S0(n,t+e)}var LTt={};function R8e(){return LTt}function N8e(n,e){let t=R8e(),i=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??t.weekStartsOn??t.locale?.options?.weekStartsOn??0,r=Qc(n),o=r.getDay(),s=(o6?(i=new Date(s,0,1),r=new Date(s,5,30)):(i=new Date(s-1,6,1),r=new Date(s-1,11,31));break;case"previous-year":default:let c=Ane(t,{years:1});i=Ene(c),r=F8e(c);break}return new n(i,r)}static fromObject(e){let t=new Date(e.start),i=new Date(e.end);return new n(t,i)}constructor(e,t){this.start=e,this.end=t,this.error={invalidRange:!1}}isValid(){if(this.start&&this.end){if(this.end.getTime()>=this.start.getTime())return this.error.invalidRange=!1,!0;this.error.invalidRange=!0}return!1}toString(){return`${this.start.toISOString()} - ${this.end.toISOString()}`}clone(){return new n(new Date(this.start.getTime()),new Date(this.end.getTime()))}toCompactDateString(e="de-DE"){if(!this.start||!this.end)return"";let t=new Intl.DateTimeFormat(e,{month:"2-digit",day:"2-digit",year:"numeric"});return this.start.getFullYear()===this.end.getFullYear()&&this.start.getMonth()===0&&this.start.getDate()===1&&this.end.getMonth()===11&&this.end.getDate()===31?this.start.getFullYear().toString():`${t.format(this.start)} - ${t.format(this.end)}`}getYears(){let e=this.start.getFullYear(),t=this.end.getFullYear(),i=[];for(let r=e;r<=t;r++)i.push(r);return i}};var Qb=class{static equals(e,t){return e.start.temporalUnit===t.start.temporalUnit&&e.start.count===t.start.count&&e.duration.temporalUnit===t.duration.temporalUnit&&e.duration.count===t.duration.count}constructor(e,t){this._start=e,this._duration=t,this._startDate=this._getStartDate(),this._endDate=this._getEndDate(this._startDate,this._duration)}toJSON(){return{start:this._start,duration:this._duration}}getTriggerDateNextInterval(){let e=this.getNextIntervalDates().start,t=null;switch(this._start.temporalUnit){case"year":t=IG(e,this._start.count);break;case"quarter":t=SG(e,this._start.count);break;case"month":t=mC(e,this._start.count);break;case"week":t=EG(e,this._start.count);break;case"day":t=qT(e,this._start.count);break}return gR(t)}getNextIntervalDates(){let e=qT(this._endDate,1),t=this._getEndDate(e,this._duration);return{start:e,end:t}}get startDate(){return this._startDate}get endDate(){return this._endDate}get start(){return this._start}set start(e){this._start=e,this._startDate=this._getStartDate(),this._endDate=this._getEndDate(this._startDate,this._duration)}get duration(){return this._duration}set duration(e){this._duration=e,this._endDate=this._getEndDate(this._startDate,this._duration)}_getStartDate(){let e;switch(this._start.temporalUnit){case"year":e=j8e(new Date,this._start.count),e=Ene(e);break;case"quarter":e=z8e(new Date,this._start.count),e=TG(e);break;case"month":e=Tne(new Date,this._start.count),e=AG(e);break;case"week":e=U8e(new Date,this._start.count),e=N8e(e);break;case"day":e=Ine(new Date,this._start.count)}return gR(e)}_getEndDate(e,t){let i;switch(t.temporalUnit){case"year":i=IG(e,t.count);break;case"quarter":i=SG(e,t.count);break;case"month":i=mC(e,t.count);break;case"week":i=EG(e,t.count);break;case"day":i=qT(e,t.count)}return i=gR(i),V8e(i,1)}};var $T=class{static fromObject(e){if(!e)throw new Error("Missing input object.");let t;switch(e.type){case"relative":t=_3.fromObject(e);break;case"calendric":t=Xb.fromObject(e);break;default:throw new Error(`Invalid timeSelection type: ${e.type}`)}return t}},_3=class n extends $T{static fromObject(e){let t=new Qb(e.intervalRelative.start||e.intervalRelative._start,e.intervalRelative.duration||e.intervalRelative._duration);return new n(t)}constructor(e){super(),this.intervalRelative=e,this.type="relative"}equals(e){return this.type===e.type&&Qb.equals(this.intervalRelative,e.intervalRelative)}clone(){return new n(new Qb(this.intervalRelative.start,this.intervalRelative.duration))}toJSON(){return{type:this.type,intervalRelative:this.intervalRelative.toJSON()}}},Xb=class n extends $T{static fromObject(e){let t=ep.fromObject(e.interval);return new n(t)}constructor(e){super(),this.interval=e,this.type="calendric"}clone(){return new n(this.interval.clone())}equals(e){return this.type===e.type&&ep.equals(this.interval,e.interval)}toJSON(){return{type:this.type,interval:this.interval}}};var H8e=wt(Ce({},wG),{formFieldAppearance:"fill"});var DG=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=Oi({type:e}),e.\u0275inj=Mi({providers:[{provide:wG,useValue:H8e},{provide:YT,useClass:M8e}]});let n=e;return n})();var Dne=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=Oi({type:e}),e.\u0275inj=Mi({imports:[DG,DG]});let n=e;return n})();var jTt=["*",[["mat-toolbar-row"]]],HTt=["*","mat-toolbar-row"],GTt=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=Ki({type:e,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"],standalone:!0});let n=e;return n})(),v3=(()=>{let e=class e{constructor(i,r,o){this._elementRef=i,this._platform=r,this._document=o}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){this._toolbarRows.length}};e.\u0275fac=function(r){return new(r||e)(oe(Ai),oe(zo),oe(Ln))},e.\u0275cmp=Ct({type:e,selectors:[["mat-toolbar"]],contentQueries:function(r,o,s){if(r&1&&gr(s,GTt,5),r&2){let c;Di(c=ki())&&(o._toolbarRows=c)}},hostAttrs:[1,"mat-toolbar"],hostVars:6,hostBindings:function(r,o){r&2&&(vn(o.color?"mat-"+o.color:""),$n("mat-toolbar-multiple-rows",o._toolbarRows.length>0)("mat-toolbar-single-row",o._toolbarRows.length===0))},inputs:{color:"color"},exportAs:["matToolbar"],standalone:!0,features:[Ot],ngContentSelectors:HTt,decls:2,vars:0,template:function(r,o){r&1&&(Yr(jTt),Gn(0),Gn(1,1))},styles:[".mat-toolbar{background:var(--mat-toolbar-container-background-color);color:var(--mat-toolbar-container-text-color)}.mat-toolbar,.mat-toolbar h1,.mat-toolbar h2,.mat-toolbar h3,.mat-toolbar h4,.mat-toolbar h5,.mat-toolbar h6{font-family:var(--mat-toolbar-title-text-font);font-size:var(--mat-toolbar-title-text-size);line-height:var(--mat-toolbar-title-text-line-height);font-weight:var(--mat-toolbar-title-text-weight);letter-spacing:var(--mat-toolbar-title-text-tracking);margin:0}.cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar .mat-form-field-underline,.mat-toolbar .mat-form-field-ripple,.mat-toolbar .mat-focused .mat-form-field-ripple{background-color:currentColor}.mat-toolbar .mat-form-field-label,.mat-toolbar .mat-focused .mat-form-field-label,.mat-toolbar .mat-select-value,.mat-toolbar .mat-select-arrow,.mat-toolbar .mat-form-field.mat-focused .mat-select-arrow{color:inherit}.mat-toolbar .mat-input-element{caret-color:currentColor}.mat-toolbar .mat-mdc-button-base.mat-mdc-button-base.mat-unthemed{--mdc-text-button-label-text-color:var(--mat-toolbar-container-text-color);--mdc-outlined-button-label-text-color:var(--mat-toolbar-container-text-color)}.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;height:var(--mat-toolbar-standard-height)}@media(max-width: 599px){.mat-toolbar-row,.mat-toolbar-single-row{height:var(--mat-toolbar-mobile-height)}}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%;min-height:var(--mat-toolbar-standard-height)}@media(max-width: 599px){.mat-toolbar-multiple-rows{min-height:var(--mat-toolbar-mobile-height)}}"],encapsulation:2,changeDetection:0});let n=e;return n})();var Jb=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=Oi({type:e}),e.\u0275inj=Mi({imports:[ro,ro]});let n=e;return n})();var YTt=["*"],qTt=(n,e)=>({"bd-primary":n,"bd-primary-text":e}),KT=(()=>{let e=class e extends Dc{constructor(i){super(),this._observableMedia=i,this.layout="bar";let r=this._observableMedia.asObservable().pipe(hh((o,s)=>hn.equals(o,s,(c,h)=>c.mqAlias===h.mqAlias))).subscribe(o=>{this.layout=o.some(s=>["sm","xs"].includes(s.mqAlias))?"line":"bar"});this._subs.push(r)}ngOnDestroy(){this.unsubscribeAll()}};e.\u0275fac=function(r){return new(r||e)(oe(GB))},e.\u0275cmp=Ct({type:e,selectors:[["bd-toolbar"]],standalone:!0,features:[Li,Ot],ngContentSelectors:YTt,decls:2,vars:4,consts:[[1,"",3,"ngClass"]],template:function(r,o){r&1&&(Yr(),se(0,"mat-toolbar",0),Gn(1),ce()),r&2&&J("ngClass",ha(1,qTt,o.layout==="bar",o.layout==="line"))},dependencies:[Jb,v3,Xa],styles:[".bd-primary-text[_ngcontent-%COMP%]{background-color:inherit}"]});let n=e;return n})();var Wp=(()=>{let e=class e{constructor(i,r,o,s){this.msalConfig=i,this._msalBroadcastService=r,this._environmentService=o,this._msalService=s,this._destroying$=new mi,this._accountInfo=new Yo(1),this._authentication=new ea(this._initAuthentication()),this.authentication$=this._authentication.asObservable().pipe(hh()),this.accountInfo$=this._accountInfo.asObservable(),this._msalBroadcastService.msalSubject$.pipe(ri(c=>e.successEvent(c)?c.payload?.account:null),hr(this._destroying$)).subscribe(c=>this._accountInfo.next(c))}static successEvent(i){return i.eventType===fr.LOGIN_SUCCESS||i.eventType===fr.ACQUIRE_TOKEN_SUCCESS}ngOnDestroy(){this._destroying$.next(null),this._destroying$.complete()}getPasswordResetPolicy(){return{authority:this._environmentService.load("AUTHENTICATION_PASSWORD_RESET_AUTHORITY")}}setAuthenticationState(i){this._authentication.next(i)}setAccountInfoState(i){this._accountInfo.next(i)}_initAuthentication(){return!!this._msalService.instance.getActiveAccount()||this._msalService.instance.getAllAccounts().length>0}};e.\u0275fac=function(r){return new(r||e)(Ke(zB),Ke(Xw),Ke(dr),Ke(Zh))},e.\u0275prov=It({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function $Tt(n,e){if(n&1){let t=Fi();se(0,"div",1)(1,"button",2),At("click",function(){ht(t);let r=le();return pt(r.action())}),yt(2),ce()()}if(n&2){let t=le();Z(2),ps(" ",t.data.action," ")}}var KTt=["label"];function WTt(n,e){}var ZTt=Math.pow(2,31)-1,_R=class{constructor(e,t){this._overlayRef=t,this._afterDismissed=new mi,this._afterOpened=new mi,this._onAction=new mi,this._dismissedByAction=!1,this.containerInstance=e,e._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(e){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(e,ZTt))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}},kne=new fi("MatSnackBarData"),WT=class{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}},QTt=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=Ki({type:e,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"],standalone:!0});let n=e;return n})(),XTt=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=Ki({type:e,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"],standalone:!0});let n=e;return n})(),JTt=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=Ki({type:e,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"],standalone:!0});let n=e;return n})(),eAt=(()=>{let e=class e{constructor(i,r){this.snackBarRef=i,this.data=r}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}};e.\u0275fac=function(r){return new(r||e)(oe(_R),oe(kne))},e.\u0275cmp=Ct({type:e,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],standalone:!0,features:[Ot],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions",""],["mat-button","","matSnackBarAction","",3,"click"]],template:function(r,o){r&1&&(se(0,"div",0),yt(1),ce(),Ne(2,$Tt,3,1,"div",1)),r&2&&(Z(),ps(" ",o.data.message,` `),Z(),Hi(o.hasAction?2:-1))},dependencies:[Sl,QTt,XTt,JTt],styles:[".mat-mdc-simple-snack-bar{display:flex}"],encapsulation:2,changeDetection:0});let n=e;return n})(),tAt={snackBarState:jl("state",[nl("void, hidden",qr({transform:"scale(0.8)",opacity:0})),nl("visible",qr({transform:"scale(1)",opacity:1})),$s("* => visible",Ps("150ms cubic-bezier(0, 0, 0.2, 1)")),$s("* => void, * => hidden",Ps("75ms cubic-bezier(0.4, 0.0, 1, 1)",qr({opacity:0})))])},iAt=0,nAt=(()=>{let e=class e extends IT{constructor(i,r,o,s,c){super(),this._ngZone=i,this._elementRef=r,this._changeDetectorRef=o,this._platform=s,this.snackBarConfig=c,this._document=ai(Ln),this._trackedModals=new Set,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new mi,this._onExit=new mi,this._onEnter=new mi,this._animationState="void",this._liveElementId=`mat-snack-bar-container-live-${iAt++}`,this.attachDomPortal=h=>{this._assertNotAttached();let g=this._portalOutlet.attachDomPortal(h);return this._afterPortalAttached(),g},c.politeness==="assertive"&&!c.announcementMessage?this._live="assertive":c.politeness==="off"?this._live="off":this._live="polite",this._platform.FIREFOX&&(this._live==="polite"&&(this._role="status"),this._live==="assertive"&&(this._role="alert"))}attachComponentPortal(i){this._assertNotAttached();let r=this._portalOutlet.attachComponentPortal(i);return this._afterPortalAttached(),r}attachTemplatePortal(i){this._assertNotAttached();let r=this._portalOutlet.attachTemplatePortal(i);return this._afterPortalAttached(),r}onAnimationEnd(i){let{fromState:r,toState:o}=i;if((o==="void"&&r!=="void"||o==="hidden")&&this._completeExit(),o==="visible"){let s=this._onEnter;this._ngZone.run(()=>{s.next(),s.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.markForCheck(),this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._ngZone.run(()=>{this._animationState="hidden",this._changeDetectorRef.markForCheck(),this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId)}),this._onExit}ngOnDestroy(){this._destroyed=!0,this._clearFromModals(),this._completeExit()}_completeExit(){queueMicrotask(()=>{this._onExit.next(),this._onExit.complete()})}_afterPortalAttached(){let i=this._elementRef.nativeElement,r=this.snackBarConfig.panelClass;r&&(Array.isArray(r)?r.forEach(c=>i.classList.add(c)):i.classList.add(r)),this._exposeToModals();let o=this._label.nativeElement,s="mdc-snackbar__label";o.classList.toggle(s,!o.querySelector(`.${s}`))}_exposeToModals(){let i=this._liveElementId,r=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let o=0;o{let r=i.getAttribute("aria-owns");if(r){let o=r.replace(this._liveElementId,"").trim();o.length>0?i.setAttribute("aria-owns",o):i.removeAttribute("aria-owns")}}),this._trackedModals.clear()}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{let i=this._elementRef.nativeElement.querySelector("[aria-hidden]"),r=this._elementRef.nativeElement.querySelector("[aria-live]");if(i&&r){let o=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&i.contains(document.activeElement)&&(o=document.activeElement),i.removeAttribute("aria-hidden"),r.appendChild(i),o?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}};e.\u0275fac=function(r){return new(r||e)(oe(Zi),oe(Ai),oe(ur),oe(zo),oe(WT))},e.\u0275cmp=Ct({type:e,selectors:[["mat-snack-bar-container"]],viewQuery:function(r,o){if(r&1&&(Xn(k_,7),Xn(KTt,7)),r&2){let s;Di(s=ki())&&(o._portalOutlet=s.first),Di(s=ki())&&(o._label=s.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container"],hostVars:1,hostBindings:function(r,o){r&1&&lO("@state.done",function(c){return o.onAnimationEnd(c)}),r&2&&aO("@state",o._animationState)},standalone:!0,features:[Li,Ot],decls:6,vars:3,consts:[["label",""],[1,"mdc-snackbar__surface","mat-mdc-snackbar-surface"],[1,"mat-mdc-snack-bar-label"],["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(r,o){r&1&&(se(0,"div",1)(1,"div",2,0)(3,"div",3),Ne(4,WTt,0,0,"ng-template",4),ce(),bt(5,"div"),ce()()),r&2&&(Z(5),Et("aria-live",o._live)("role",o._role)("id",o._liveElementId))},dependencies:[k_],styles:[".mat-mdc-snack-bar-container{display:flex;align-items:center;justify-content:center;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);margin:8px}.mat-mdc-snack-bar-handset .mat-mdc-snack-bar-container{width:100vw}.mat-mdc-snackbar-surface{box-shadow:0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);display:flex;align-items:center;justify-content:flex-start;box-sizing:border-box;padding-left:0;padding-right:8px}[dir=rtl] .mat-mdc-snackbar-surface{padding-right:0;padding-left:8px}.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface{min-width:344px;max-width:672px}.mat-mdc-snack-bar-handset .mat-mdc-snackbar-surface{width:100%;min-width:0}.cdk-high-contrast-active .mat-mdc-snackbar-surface{outline:solid 1px}.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface{color:var(--mdc-snackbar-supporting-text-color);border-radius:var(--mdc-snackbar-container-shape);background-color:var(--mdc-snackbar-container-color)}.mdc-snackbar__label{width:100%;flex-grow:1;box-sizing:border-box;margin:0;padding:14px 8px 14px 16px}[dir=rtl] .mdc-snackbar__label{padding-left:8px;padding-right:16px}.mat-mdc-snack-bar-container .mdc-snackbar__label{font-family:var(--mdc-snackbar-supporting-text-font);font-size:var(--mdc-snackbar-supporting-text-size);font-weight:var(--mdc-snackbar-supporting-text-weight);line-height:var(--mdc-snackbar-supporting-text-line-height)}.mat-mdc-snack-bar-actions{display:flex;flex-shrink:0;align-items:center;box-sizing:border-box}.mat-mdc-snack-bar-handset,.mat-mdc-snack-bar-container,.mat-mdc-snack-bar-label{flex:1 1 auto}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled){color:var(--mat-snack-bar-button-color);--mat-text-button-state-layer-color:currentColor;--mat-text-button-ripple-color:currentColor}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) .mat-ripple-element{opacity:.1}"],encapsulation:2,data:{animation:[tAt.snackBarState]}});let n=e;return n})();function rAt(){return new WT}var oAt=new fi("mat-snack-bar-default-options",{providedIn:"root",factory:rAt}),Y8e=(()=>{let e=class e{get _openedSnackBarRef(){let i=this._parentSnackBar;return i?i._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(i){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=i:this._snackBarRefAtThisLevel=i}constructor(i,r,o,s,c,h){this._overlay=i,this._live=r,this._injector=o,this._breakpointObserver=s,this._parentSnackBar=c,this._defaultConfig=h,this._snackBarRefAtThisLevel=null,this.simpleSnackBarComponent=eAt,this.snackBarContainerComponent=nAt,this.handsetCssClass="mat-mdc-snack-bar-handset"}openFromComponent(i,r){return this._attach(i,r)}openFromTemplate(i,r){return this._attach(i,r)}open(i,r="",o){let s=Ce(Ce({},this._defaultConfig),o);return s.data={message:i,action:r},s.announcementMessage===i&&(s.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,s)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(i,r){let o=r&&r.viewContainerRef&&r.viewContainerRef.injector,s=yo.create({parent:o||this._injector,providers:[{provide:WT,useValue:r}]}),c=new _0(this.snackBarContainerComponent,r.viewContainerRef,s),h=i.attach(c);return h.instance.snackBarConfig=r,h.instance}_attach(i,r){let o=Ce(Ce(Ce({},new WT),this._defaultConfig),r),s=this._createOverlay(o),c=this._attachSnackBarContainer(s,o),h=new _R(c,s);if(i instanceof qa){let g=new qp(i,null,{$implicit:o.data,snackBarRef:h});h.instance=c.attachTemplatePortal(g)}else{let g=this._createInjector(o,h),x=new _0(i,void 0,g),C=c.attachComponentPortal(x);h.instance=C.instance}return this._breakpointObserver.observe(iC.HandsetPortrait).pipe(hr(s.detachments())).subscribe(g=>{s.overlayElement.classList.toggle(this.handsetCssClass,g.matches)}),o.announcementMessage&&c._onAnnounce.subscribe(()=>{this._live.announce(o.announcementMessage,o.politeness)}),this._animateSnackBar(h,o),this._openedSnackBarRef=h,this._openedSnackBarRef}_animateSnackBar(i,r){i.afterDismissed().subscribe(()=>{this._openedSnackBarRef==i&&(this._openedSnackBarRef=null),r.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{i.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):i.containerInstance.enter(),r.duration&&r.duration>0&&i.afterOpened().subscribe(()=>i._dismissAfter(r.duration))}_createOverlay(i){let r=new M_;r.direction=i.direction;let o=this._overlay.position().global(),s=i.direction==="rtl",c=i.horizontalPosition==="left"||i.horizontalPosition==="start"&&!s||i.horizontalPosition==="end"&&s,h=!c&&i.horizontalPosition!=="center";return c?o.left("0"):h?o.right("0"):o.centerHorizontally(),i.verticalPosition==="top"?o.top("0"):o.bottom("0"),r.positionStrategy=o,this._overlay.create(r)}_createInjector(i,r){let o=i&&i.viewContainerRef&&i.viewContainerRef.injector;return yo.create({parent:o||this._injector,providers:[{provide:_R,useValue:r},{provide:kne,useValue:i.data}]})}};e.\u0275fac=function(r){return new(r||e)(Ke(ba),Ke(Mie),Ke(yo),Ke(ZB),Ke(e,12),Ke(oAt))},e.\u0275prov=It({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var dEe=class{constructor(e,t){this._document=t;let i=this._textarea=this._document.createElement("textarea"),r=i.style;r.position="fixed",r.top=r.opacity="0",r.left="-999em",i.setAttribute("aria-hidden","true"),i.value=e,i.readOnly=!0,(this._document.fullscreenElement||this._document.body).appendChild(i)}copy(){let e=this._textarea,t=!1;try{if(e){let i=this._document.activeElement;e.select(),e.setSelectionRange(0,e.value.length),t=this._document.execCommand("copy"),i&&i.focus()}}catch{}return t}destroy(){let e=this._textarea;e&&(e.remove(),this._textarea=void 0)}},$8e=(()=>{let e=class e{constructor(i){this._document=i}copy(i){let r=this.beginCopy(i),o=r.copy();return r.destroy(),o}beginCopy(i){return new dEe(i,this._document)}};e.\u0275fac=function(r){return new(r||e)(Ke(Ln))},e.\u0275prov=It({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function aAt(n,e){if(n&1&&(se(0,"span",3),yt(1),ce()),n&2){let t=le();Z(),jn(t.data.title)}}function lAt(n,e){if(n&1&&(se(0,"span",4),yt(1),ce()),n&2){let t=le();Z(),jn(t.data.message)}}var K8e=(()=>{let e=class e{constructor(i,r,o,s,c){this.data=i,this._msalInstance=r,this.snackBarRef=o,this._clipboard=s,this._msalService=c}copyJwtToken(){this._msalService.instance.acquireTokenSilent({account:this._msalService.instance.getActiveAccount(),authority:this._msalInstance.getConfiguration().auth.authority,scopes:[this._msalInstance.getConfiguration().auth.clientId]}).then(i=>this._clipboard.copy(`Bearer ${i.accessToken}`))}};e.\u0275fac=function(r){return new(r||e)(oe(kne),oe(eR),oe(_R),oe($8e),oe(Zh))},e.\u0275cmp=Ct({type:e,selectors:[["ng-component"]],standalone:!0,features:[Ot],decls:12,vars:2,consts:[["fxLayout","row","fxLayoutGap","24px","fxLayoutAlign","space-between center"],["fxFlex",""],["fxLayout","row","fxLayout.lt-lg","column","fxLayoutGap","24px","fxLayoutGap.lt-lg","0","fxLayoutAlign.lt-lg","center start","fxLayoutAlign","start center"],["fxFlex","none",1,"mat-body-strong"],["fxFlex","",1,"mat-body"],["fxFlex","none"],["mat-icon-button","","matTooltip","Generate JWT Token",3,"click"],["mat-icon-button","","matTooltip","Close",3,"click"]],template:function(r,o){r&1&&(se(0,"div",0)(1,"div",1)(2,"div",2),Ne(3,aAt,2,1,"span",3)(4,lAt,2,1,"span",4),ce()(),se(5,"div",5)(6,"button",6),At("click",function(){return o.copyJwtToken()}),se(7,"mat-icon"),yt(8,"generating_tokens"),ce()(),se(9,"button",7),At("click",function(){return o.snackBarRef.dismiss()}),se(10,"mat-icon"),yt(11,"close"),ce()()()()),r&2&&(Z(3),Hi(o.data!=null&&o.data.title?3:-1),Z(),Hi(o.data!=null&&o.data.message?4:-1))},dependencies:[Ys,tl,Gd,Ac,Cl,gs,Jh,GT,HT,qs,zs],encapsulation:2});let n=e;return n})();var Mne=class{constructor(e,t,i,r){this.msalGuardConfig=e,this.msalBroadcastService=t,this.msalService=i,this.authenticationService=r,this.subscriptions=[],this.isIframe=!1,this.loggedIn=!1,this._checkAndCleanStorageForPolicies(),this.msalBroadcastService.inProgress$.pipe(Wn(o=>o===Fc.None)).subscribe(()=>{this.loggedIn=this.msalService.instance.getAllAccounts().length>0,this.checkAndSetActiveAccount()}),this.msalBroadcastService.msalSubject$.pipe(ri(o=>Wp.successEvent(o))).subscribe(()=>{this.loggedIn=this.msalService.instance.getAllAccounts().length>0,this.checkAndSetActiveAccount()}),this.msalBroadcastService.msalSubject$.pipe(Wn(o=>o.eventType===fr.LOGIN_FAILURE||o.eventType===fr.ACQUIRE_TOKEN_FAILURE)).subscribe(o=>{let s=o.payload;if(s?.idTokenClaims?.acr==="b2cPolicies.names.forgotPassword")return window.alert(`Password has been reset successfully. Please sign-in with your new password.`),this.msalService.logout();if(s?.idTokenClaims.acr==="b2cPolicies.names.editProfile")return window.alert(`Profile has been updated successfully. Please sign-in again.`),this.msalService.logout();if(s?.idTokenClaims.tfp==="b2cPolicies.names.editProfile")return window.alert(`Profile has been updated successfully. Please sign-in again.`),this.msalService.logout();if(o.error instanceof Os){if(o.error.message.includes("AADB2C90118")){let c={scopes:["openid"],authority:"b2cPolicies.authorities.forgotPassword.authority"};return this.login(c)}if(o.error.message.includes("AADB2C90129"))return this.msalService.logout();if(o.error.message.includes("AADB2C90091"))return this.msalService.logout()}})}_initAuthenticationRoot(){this.loggedIn=this.msalService.instance.getAllAccounts().length>0,this.isIframe=window!==window.parent&&!window.opener}_initBanner(e,t){if(t.load("BD_STAGING_BANNER",!0)==="true"){let r=new WT;r.horizontalPosition="center",r.verticalPosition="top",r.duration=0,r.politeness="polite",r.panelClass=["bd-app-container-banner"],r.data={title:"Testsystem",message:"Werte k\xF6nnen abweichen oder va\xADri\xADie\xADren"},e.openFromComponent(K8e,r)}}login(e){this.msalGuardConfig.authRequest?this.msalService.loginRedirect(Ce(Ce({},this.msalGuardConfig.authRequest),e)):this.msalService.loginRedirect(e)}checkAndSetActiveAccount(){let e=this.msalService.instance.getActiveAccount(),t=this.msalService.instance.getAllAccounts();!e&&t.length>0&&this.msalService.instance.setActiveAccount(t[0]),this.authenticationService.setAuthenticationState(t.length>0),this.authenticationService.setAccountInfoState(this.msalService.instance.getActiveAccount())}_checkAndCleanStorageForPolicies(){let e=!1;for(let t=0;t{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=Ct({type:e,selectors:[["ng-component"]],standalone:!0,features:[Ot],decls:18,vars:0,consts:[["color","warn"],[1,"bd-container-inner","mat-typography"],["href","https://browser-cache-leeren.de/detect.html"],[1,"bd-container-inner"],[1,"mat-body"],["href","https://www.bindoc.de/support"]],template:function(r,o){r&1&&(se(0,"mat-toolbar",0),yt(1,"Login fehlgeschlagen"),ce(),se(2,"div",1)(3,"span"),yt(4,"Versuchen Sie bitte folgende Dinge, um das Problem zu l\xF6sen"),ce(),se(5,"ul")(6,"li"),yt(7,"Browser Cache leeren - "),se(8,"a",2),yt(9,"Wie leere ich den Cache eines Browsers ?"),ce()(),se(10,"li"),yt(11,"Seite neu laden"),ce()()(),se(12,"div",3)(13,"span",4),yt(14,"Falls dieser Fehler immer wieder auftritt, wenden Sie sich bitte an unseren "),se(15,"a",5),yt(16,"BinDoc Support"),ce(),yt(17,"."),ce()())},dependencies:[Jb,v3],encapsulation:2});let n=e;return n})();var One=(()=>{let e=class e{constructor(i){this._authenticationService=i}};e.\u0275fac=function(r){return new(r||e)(Ke(Wp))},e.\u0275mod=Oi({type:e}),e.\u0275inj=Mi({providers:[Zh,S_,Xw,{provide:Kwe,useClass:F6e,multi:!0},RUe(NUe())],imports:[GCe,C_.forChild([{path:"sys-login-failed",component:hEe}]),Jb,hEe,GCe,C_]});let n=e;return n})();function cAt(n,e){if(n&1){let t=Fi();se(0,"button",4),At("click",function(){ht(t);let r=le();return pt(r.passwordReset())}),se(1,"span"),yt(2,"Passwort \xE4ndern"),ce()(),se(3,"button",4),At("click",function(){ht(t);let r=le();return pt(r.logout())}),se(4,"span"),yt(5,"Abmelden"),ce()()}}function uAt(n,e){if(n&1){let t=Fi();se(0,"button",4),At("click",function(){ht(t);let r=le();return pt(r.login())}),se(1,"span"),yt(2,"Anmelden"),ce()()}}var W8e=(()=>{let e=class e{constructor(i,r){this._authenticationService=i,this._msalService=r,this.loggedIn=!1,this._authenticationService.authentication$.subscribe(o=>this.loggedIn=o)}ngOnInit(){}login(){this._msalService.loginRedirect()}logout(){this._msalService.logout()}passwordReset(){this._msalService.loginRedirect(wt(Ce({},this._authenticationService.getPasswordResetPolicy()),{scopes:[]}))}};e.\u0275fac=function(r){return new(r||e)(oe(Wp),oe(Zh))},e.\u0275cmp=Ct({type:e,selectors:[["bd-authentication-menu"]],standalone:!0,features:[Ot],decls:7,vars:3,consts:[["menu","matMenu"],["mat-icon-button","",3,"matMenuTriggerFor"],[2,"color","#ffffff"],["mat-menu-item",""],["mat-menu-item","",3,"click"]],template:function(r,o){if(r&1&&(se(0,"button",1)(1,"mat-icon",2),yt(2,"settings"),ce()(),se(3,"mat-menu",null,0),Ne(5,cAt,6,0)(6,uAt,3,0,"button",3),ce()),r&2){let s=_r(4);J("matMenuTriggerFor",s),Z(5),Hi(o.loggedIn?5:-1),Z(),Hi(o.loggedIn?-1:6)}},dependencies:[gs,Jh,Yje,kT,aR,Hie,qs,zs]});let n=e;return n})();var y3=class{static msalInstance(e){return new a8(e.msalConfig.publicClientApplication)}static msalInterceptorConfig(e){let t=new Map;return e.msalConfig.protectedResources.forEach(i=>t.set(i.uri,i.scopes)),{interactionType:pr.Redirect,protectedResourceMap:t}}static msalGuardConfig(e){return{interactionType:e.msalConfig.guardConfig.interactionType==="redirect"?pr.Redirect:pr.Popup,authRequest:e.msalConfig.guardConfig.authRequest,loginFailedRoute:e.msalConfig.guardConfig?.loginFailedRoute??"sys-login-failed"}}};var Nt=class{constructor(e,t,i){this.fabKey=e,this.name=t,this.ssdId=i}};var t4i=[new Nt("1500","Allgemeinchirurgie","1"),new Nt("2900","Allgemeine Psychiatrie","14"),new Nt("2700","Augenheilkunde","0"),new Nt("0600","Endokrinologie","6"),new Nt("2400","Frauenheilkunde und Geburtshilfe","3"),new Nt("0700","Gastroenterologie","6"),new Nt("1800","Gef\xE4\xDFchirurgie","1"),new Nt("0200","Geriatrie","4"),new Nt("2600","Hals-, Nasen-, Ohrenheilkunde","5"),new Nt("1551","Handchirurgie","1"),new Nt("2100","Herzchirurgie","1"),new Nt("0500","H\xE4matologie und internistische Onkologie","6"),new Nt("0100","Innere Medizin","6"),new Nt("3600","Intensivmedizin","7"),new Nt("0300","Kardiologie","6"),new Nt("1700","Neurochirurgie","10"),new Nt("2800","Neurologie","11"),new Nt("2316","Orthop\xE4die und Unfallchirurgie","1"),new Nt("1900","Plastische Chirurgie","1"),new Nt("0800","Pneumologie","6"),new Nt("3100","Psychosomatik/Psychotherapie","15"),new Nt("1000","P\xE4diatrie","13"),new Nt("3300","Strahlenheilkunde","17"),new Nt("2000","Thoraxchirurgie","1"),new Nt("2200","Urologie","18"),new Nt("2500","Geburtshilfe","3")],pEe=[new Nt("1500","Allgemeinchirurgie","1"),new Nt("2900","Allgemeine Psychiatrie","14"),new Nt("2700","Augenheilkunde","0"),new Nt("3400","Dermatologie","2"),new Nt("0600","Endokrinologie","6"),new Nt("2400","Frauenheilkunde und Geburtshilfe","3"),new Nt("0700","Gastroenterologie","6"),new Nt("1800","Gef\xE4\xDFchirurgie","1"),new Nt("0200","Geriatrie","4"),new Nt("2600","Hals-, Nasen-, Ohrenheilkunde","5"),new Nt("1551","Handchirurgie","1"),new Nt("2100","Herzchirurgie","1"),new Nt("0500","H\xE4matologie und internistische Onkologie","6"),new Nt("0100","Innere Medizin","6"),new Nt("3600","Intensivmedizin","7"),new Nt("0300","Kardiologie","6"),new Nt("3000","Kinder- und Jugendpsychiatrie","8"),new Nt("1300","Kinderchirurgie","1"),new Nt("1100","Kinderkardiologie","13"),new Nt("1400","Lungen- und Bronchialheilkunde","6"),new Nt("1200","Neonatologie","13"),new Nt("0400","Nephrologie","6"),new Nt("1700","Neurochirurgie","10"),new Nt("2800","Neurologie","11"),new Nt("3200","Nuklearmedizin","12"),new Nt("2300","Orthop\xE4die","1"),new Nt("2316","Orthop\xE4die und Unfallchirurgie","1"),new Nt("1900","Plastische Chirurgie","1"),new Nt("0800","Pneumologie","6"),new Nt("3100","Psychosomatik/Psychotherapie","15"),new Nt("1000","P\xE4diatrie","13"),new Nt("0900","Rheumatologie","6"),new Nt("3753","Schmerztherapie","7"),new Nt("0000","Sonstige",null),new Nt("3700","Sonstige Fachabteilung","16"),new Nt("3300","Strahlenheilkunde","17"),new Nt("2000","Thoraxchirurgie","1"),new Nt("1600","Unfallchirurgie","1"),new Nt("2200","Urologie","18"),new Nt("3500","Zahn- und Kieferheilkunde, Mund- und Kieferchirurgie","9"),new Nt("2500","davon Geburtshilfe","3")],fEe=[new Nt("0000","Unbekannt","0"),new Nt("0100","Innere Medizin","6"),new Nt("2400","Frauenheilkunde","3"),new Nt("2500","Geburtshilfe","3"),new Nt("0200","Geriatrie","4"),new Nt("0300","Kardiologie","6"),new Nt("0400","Nephrologie","6"),new Nt("0500","H\xE4matologie und internistische Onkologie","6"),new Nt("0600","Endokrinologie","6"),new Nt("0700","Gastroenterologie","6"),new Nt("0800","Pneumologie","6"),new Nt("0900","Rheumatologie","6"),new Nt("1000","P\xE4diatrie","13"),new Nt("1100","Kinderkardiologie","13"),new Nt("1200","Neonatologie","13"),new Nt("1300","Kinderchirurgie","1"),new Nt("1400","Lungen- und Bronchialheilkunde","6"),new Nt("1500","Allgemeinchirurgie","1"),new Nt("1600","Unfallchirurgie","1"),new Nt("1700","Neurochirurgie","10"),new Nt("1800","Gef\xE4\xDFchirurgie","1"),new Nt("1900","Plastische Chirurgie","1"),new Nt("2000","Thoraxchirurgie","1"),new Nt("2100","Herzchirurgie","1"),new Nt("2200","Urologie","18"),new Nt("2300","Orthop\xE4die","1"),new Nt("2600","Hals-, Nasen-, Ohrenheilkunde","5"),new Nt("2700","Augenheilkunde","0"),new Nt("2800","Neurologie","11"),new Nt("2900","Allgemeine Psychiatrie","14"),new Nt("3000","Kinder- und Jugendpsychiatrie","8"),new Nt("3100","Psychosomatik/Psychotherapie","15"),new Nt("3200","Nuklearmedizin","12"),new Nt("3300","Strahlenheilkunde","17"),new Nt("3400","Dermatologie","2"),new Nt("3500","Zahn- und Kieferheilkunde, Mund- und Kieferchirurgie","9"),new Nt("3600","Intensivmedizin","7"),new Nt("3700","Sonstige Fachabteilung","16"),new Nt("2316","Orthop\xE4die und Unfallchirurgie","1"),new Nt("0104","Innere Medizin/Schwerpunkt Nephrologie",null),new Nt("0105","Innere Medizin/Schwerpunkt H\xE4matologie und internistische Onkologie",null),new Nt("0106","Innere Medizin/Schwerpunkt Endokrinologie",null),new Nt("0107","Innere Medizin/Schwerpunkt Gastroenterologie",null),new Nt("0108","Innere Medizin/Schwerpunkt Pneumologie",null),new Nt("0109","Innere Medizin/Schwerpunkt Rheumatologie",null),new Nt("0114","Innere Medizin/Schwerpunkt Lungen- und Bronchialheilkunde",null),new Nt("0150","Innere Medizin/Tumorforschung",null),new Nt("0151","Innere Medizin/Schwerpunkt Coloproktologie",null),new Nt("0152","Innere Medizin/Schwerpunkt Infektionskrankheiten",null),new Nt("0153","Innere Medizin/Schwerpunkt Diabetes",null),new Nt("0154","Innere Medizin/Schwerpunkt Naturheilkunde",null),new Nt("0224","Geriatrie/Schwerpunkt Frauenheilkunde",null),new Nt("0260","Geriatrie/Tagesklinik (f\xFCr teilstation\xE4re Pfleges\xE4tze)",null),new Nt("0261","Geriatrie/Nachtklinik (f\xFCr teilstation\xE4re Pfleges\xE4tze)",null),new Nt("0410","Nephrologie/Schwerpunkt P\xE4diatrie",null),new Nt("0436","Nephrologie/Intensivmedizin",null),new Nt("0510","H\xE4matologie und internistische Onkologie/Schwerpunkt P\xE4diatrie",null),new Nt("0524","H\xE4matologie und internistische Onkologie/Schwerpunkt Frauenheilkunde",null),new Nt("0533","H\xE4matologie und internistische Onkologie/Schwerpunkt Strahlenheilkunde",null),new Nt("0607","Endokrinologie/Schwerpunkt Gastroenterologie",null),new Nt("0610","Endokrinologie/Schwerpunkt P\xE4diatrie",null),new Nt("0706","Gastroenterologie/Schwerpunkt Endokrinologie",null),new Nt("0710","Gastroenterologie/Schwerpunkt P\xE4diatrie",null),new Nt("0910","Rheumatologie/Schwerpunkt P\xE4diatrie",null),new Nt("1004","P\xE4diatrie/Schwerpunkt Nephrologie",null),new Nt("1005","P\xE4diatrie/Schwerpunkt H\xE4matologie und internistische Onkologie",null),new Nt("1006","P\xE4diatrie/Schwerpunkt Endokrinologie ",null),new Nt("3750","Angiologie",null),new Nt("0156","Innere Medizin/Schwerpunkt Schlaganfallpatienten",null),new Nt("1007","P\xE4diatrie/Schwerpunkt Gastroenterologie",null),new Nt("1009","P\xE4diatrie/Schwerpunkt Rheumatologie",null),new Nt("1011","P\xE4diatrie/Schwerpunkt Kinderkardiologie",null),new Nt("1012","P\xE4diatrie/Schwerpunkt Neonatologie",null),new Nt("1014","P\xE4diatrie/Schwerpunkt Lungen- und Bronchialheilkunde",null),new Nt("1028","P\xE4diatrie/Schwerpunkt Kinderneurologie",null),new Nt("1050","P\xE4diatrie/Schwerpunkt Perinatalmedizin",null),new Nt("1051","Langzeitbereich Kinder",null),new Nt("1136","Kinderkardiologie/Schwerpunkt Intensivmedizin",null),new Nt("1410","Lungen- und Bronchialheilkunde/Schwerpunkt P\xE4diatrie",null),new Nt("1513","Allgemeine Chirurgie/Schwerpunkt Kinderchirurgie",null),new Nt("1516","Allgemeine Chirurgie/Schwerpunkt Unfallchirurgie",null),new Nt("1518","Allgemeine Chirurgie/Schwerpunkt Gef\xE4\xDFchirurgie",null),new Nt("1519","Allgemeine Chirurgie/Schwerpunkt Plastische Chirurgie",null),new Nt("1520","Allgemeine Chirurgie/Schwerpunkt Thoraxchirurgie",null),new Nt("1523","Chirurgie/Schwerpunkt Orthop\xE4die",null),new Nt("1550","Allgemeine Chirurgie/Schwerpunkt Abdominal- und Gef\xE4\xDFchirurgie",null),new Nt("1551","Allgemeine Chirurgie/Schwerpunkt Handchirurgie",null),new Nt("2021","Thoraxchirurgie/Schwerpunkt Herzchirurgie",null),new Nt("2036","Thoraxchirurgie/Intensivmedizin",null),new Nt("2050","Thoraxchirurgie/Schwerpunkt Herzchirurgie Intensivmedizin",null),new Nt("2120","Herzchirurgie/Schwerpunkt Thoraxchirurgie",null),new Nt("2150","Herzchirurgie/Schwerpunkt Thoraxchirurgie Intensivmedizin",null),new Nt("2309","Orthop\xE4die/Schwerpunkt Rheumatologie",null),new Nt("2315","Orthop\xE4die/Schwerpunkt Chirurgie",null),new Nt("2402","Frauenheilkunde/Schwerpunkt Geriatrie",null),new Nt("2405","Frauenheilkunde/Schwerpunkt H\xE4matologie und internistische Onkologie",null),new Nt("2406","Frauenheilkunde/Schwerpunkt Endokrinologie",null),new Nt("2810","Neurologie/Schwerpunkt P\xE4diatrie",null),new Nt("2928","Allgemeine Psychiatrie/Schwerpunkt Neurologie",null),new Nt("2930","Allgemeine Psychiatrie/Schwerpunkt Kinder- und Jugendpsychiatrie",null),new Nt("0103","Innere Medizin/Schwerpunkt Kardiologie","6"),new Nt("2931","Allgemeine Psychiatrie/Schwerpunkt Psychosomatik/Psychotherapie",null),new Nt("2950","Allgemeine Psychiatrie/Schwerpunkt Suchtbehandlung",null),new Nt("2951","Allgemeine Psychiatrie/Schwerpunkt Gerontopsychiatrie",null),new Nt("2952","Allgemeine Psychiatrie/Schwerpunkt Forensische Behandlung",null),new Nt("2953","Allgemeine Psychiatrie/Schwerpunkt Suchtbehandlung, Tagesklinik",null),new Nt("2954","Allgemeine Psychiatrie/Schwerpunkt Suchtbehandlung, Nachtklinik",null),new Nt("2955","Allgemeine Psychiatrie/Schwerpunkt Gerontopsychiatrie, Tagesklinik",null),new Nt("2956","Allgemeine Psychiatrie/Schwerpunkt Gerontopsychiatrie, Nachtklinik",null),new Nt("2960","Allgemeine Psychiatrie/Tagesklinik (f\xFCr teilstation\xE4re Pfleges\xE4tze)",null),new Nt("2961","Allgemeine Psychiatrie/Nachtklinik (f\xFCr teilstation\xE4re Pfleges\xE4tze)",null),new Nt("3060","Kinder- und Jugendpsychiatrie/Tagesklinik (f\xFCr teilstation\xE4re Pfleges\xE4tze)",null),new Nt("3061","Kinder- und Jugendpsychiatrie/Nachtklinik (f\xFCr teilstation\xE4re Pfleges\xE4tze)",null),new Nt("3160","Psychosomatik/Psychotherapie/Tagesklinik (f\xFCr teilstation\xE4re Pfleges\xE4tze)",null),new Nt("3161","Psychosomatik/Psychotherapie/Nachtklinik (f\xFCr teilstation\xE4re Pfleges\xE4tze)",null),new Nt("3233","Nuklearmedizin/Schwerpunkt Strahlenheilkunde",null),new Nt("3305","Strahlenheilkunde/Schwerpunkt H\xE4matologie und internistische Onkologie",null),new Nt("3350","Strahlenheilkunde/Schwerpunkt Radiologie",null),new Nt("3460","Dermatologie/Tagesklinik (f\xFCr teilstation\xE4re Pfleges\xE4tze)",null),new Nt("3601","Intensivmedizin/Schwerpunkt Innere Medizin",null),new Nt("3603","Intensivmedizin/Schwerpunkt Kardiologie",null),new Nt("3610","Intensivmedizin/Schwerpunkt P\xE4diatrie",null),new Nt("3617","Intensivmedizin/Schwerpunkt Neurochirurgie",null),new Nt("3618","Intensivmedizin/Schwerpunkt Chirurgie",null),new Nt("3621","Intensivmedizin/Schwerpunkt Herzchirurgie",null),new Nt("3622","Intensivmedizin/Schwerpunkt Urologie",null),new Nt("3624","Intensivmedizin/Schwerpunkt Frauenheilkunde und Geburtshilfe",null),new Nt("3626","Intensivmedizin/Schwerpunkt Hals-, Nasen-, Ohrenheilkunde",null),new Nt("3628","Intensivmedizin/Schwerpunkt Neurologie",null),new Nt("3650","Operative Intensivmedizin/Schwerpunkt Chirurgie",null),new Nt("3651","Intensivmedizin/Thorax-Herzchirurgie",null),new Nt("3652","Intensivmedizin/Herz-Thoraxchirurgie",null),new Nt("3751","Radiologie",null),new Nt("3752","Palliativmedizin",null),new Nt("3753","Schmerztherapie",null),new Nt("3754","Heiltherapeutische Abteilung",null),new Nt("3755","Wirbels\xE4ulenchirurgie",null),new Nt("3756","Suchtmedizin",null),new Nt("3757","Visceralchirurgie",null),new Nt("1536","Allgemeine Chirurgie/Intensivmedizin",null),new Nt("2136","Herzchirurgie/Intensivmedizin",null),new Nt("2856","Neurologie/Schwerpunkt Schlaganfallpatienten",null)];var dAt={id:"USER",displayName:"File-Center",type:"other",navigation:{path:["/user","downloads"]},permissions:null},hAt={id:"HELP_PAGES",displayName:"Dokumentation",type:"other",permissions:null,navigation:{externalLink:"https://help.bindoc.de/"}},Z8e=[dAt,hAt];var tp="https://www.bindoc.de/online-meeting";var pAt={id:"HOME",displayName:"Home",type:"tool",permissions:null,navigation:{path:["/home"]}},fAt={id:"OPERATING_NUMBERS",displayName:"Kennzahlen-Benchmarking",type:"tool",permissions:["OPERATING_NUMBERS:BASE"],navigation:{path:["/operating-numbers","clinics"],disabledLink:tp}},mAt={id:"CLINIC_BROWSER",displayName:"Klinik-Browser",type:"tool",permissions:null,navigation:{path:["/clinics"]}},gAt={id:"CODE_BROWSER",displayName:"Code-Browser",type:"tool",permissions:null,navigation:{path:["/code-browser"],children:[{title:"ICD",path:["/code-browser","icd"]},{title:"OPS",path:["/code-browser","ops"]},{title:"DRG",path:["/code-browser","drg"]}]}},_At={id:"PROJECTION",displayName:"Marktprognosen",type:"tool",permissions:["PROJECTION:BASE"],navigation:{path:["/projection"],disabledLink:tp}},vAt={id:"GEOGRAPHIC",displayName:"Geo-Analyse",type:"tool",permissions:null,navigation:{path:["/geographic"],disabledLink:tp}},yAt={id:"POTENTIAL",displayName:"Potenzialanalyse",type:"tool",permissions:["POTENTIAL:BASE"],navigation:{path:["/potential"],disabledLink:tp}};var bAt={id:"DRG_PROFIT_LOSS_ANALYSIS",displayName:"DRG Benchmarking",type:"tool",permissions:["DRG_PROFIT_LOSS_ANALYSIS:BASE"],navigation:{path:["/drg-profit-loss-analysis"],disabledLink:tp}},xAt={id:"COMPETITOR_ANALYSIS",displayName:"Wettbewerbsanalyse",type:"tool",permissions:["COMPETITOR_ANALYSIS:BASE"],navigation:{path:["/competitors-analysis"],disabledLink:tp}},wAt={id:"VIRTUAL_CLINIC_REFERRAL",displayName:"Einweiseranalyse",type:"tool",permissions:["VIRTUAL_CLINIC_REFERRAL:BASE","VIRTUAL_CLINIC_REFERRAL:MAIL"],navigation:{path:["/virtual-clinic-referral"],disabledLink:tp,children:[{title:"Karte",path:["/virtual-clinic-referral","map"]},{title:"Dashboard",path:["/virtual-clinic-referral","dashboard"]},{title:"Management",path:["/virtual-clinic-referral","management"]},{title:"Import",path:["/virtual-clinic-referral","import"]}]}},CAt={id:"CUBE",displayName:"Cube",type:"tool",permissions:["CUBE:BASE","CUBE:CREATE_DASHBOARD"],navigation:{path:["/cube"],disabledLink:tp}},SAt={id:"BUSINESS_CASE",displayName:"Business Case",type:"tool",permissions:["BUSINESS_CASE:BASE"],navigation:{path:["/business-case"],disabledLink:tp}},EAt={id:"SCENARIO_ANALYSIS_CLINIC_LOCATIONS_CLOSING",displayName:"Szenario Analyse",type:"tool",permissions:["SCENARIO_ANALYSIS_CLINIC_LOCATIONS_CLOSING:BASE"],navigation:{path:["/scenario-analysis"],disabledLink:tp}},IAt={id:"DEMAND_ANALYSIS_CLINIC_LOCATIONS_CLOSING",displayName:"Versorgungsanalyse",type:"tool",permissions:["DEMAND_ANALYSIS_CLINIC_LOCATIONS_CLOSING:BASE","DEMAND_ANALYSIS_CLINIC_LOCATIONS_CLOSING:STATE_BB","DEMAND_ANALYSIS_CLINIC_LOCATIONS_CLOSING:STATE_BE","DEMAND_ANALYSIS_CLINIC_LOCATIONS_CLOSING:STATE_BW","DEMAND_ANALYSIS_CLINIC_LOCATIONS_CLOSING:STATE_BY","DEMAND_ANALYSIS_CLINIC_LOCATIONS_CLOSING:STATE_HB","DEMAND_ANALYSIS_CLINIC_LOCATIONS_CLOSING:STATE_HE","DEMAND_ANALYSIS_CLINIC_LOCATIONS_CLOSING:STATE_HH","DEMAND_ANALYSIS_CLINIC_LOCATIONS_CLOSING:STATE_MV","DEMAND_ANALYSIS_CLINIC_LOCATIONS_CLOSING:STATE_NI","DEMAND_ANALYSIS_CLINIC_LOCATIONS_CLOSING:STATE_NW","DEMAND_ANALYSIS_CLINIC_LOCATIONS_CLOSING:STATE_RP","DEMAND_ANALYSIS_CLINIC_LOCATIONS_CLOSING:STATE_SL","DEMAND_ANALYSIS_CLINIC_LOCATIONS_CLOSING:STATE_SN","DEMAND_ANALYSIS_CLINIC_LOCATIONS_CLOSING:STATE_ST","DEMAND_ANALYSIS_CLINIC_LOCATIONS_CLOSING:STATE_SH","DEMAND_ANALYSIS_CLINIC_LOCATIONS_CLOSING:STATE_TH"],navigation:{path:["/demand-analysis"],disabledLink:tp,children:[{title:"Simulation",path:["/demand-analysis"]},{title:"Kalkulation",path:["/demand-analysis/vv"]}]}},Q8e=[pAt,fAt,mAt,gAt,_At,vAt,yAt,bAt,xAt,wAt,CAt,SAt,EAt,IAt];var TAt={id:"MARKET",displayName:"M\xE4rkte",type:"resource",navigation:{path:["/markets"]},permissions:null},AAt={id:"VIRTUAL_CLINIC",displayName:"Virtuelle Kliniken",type:"resource",navigation:{path:["/virtual-clinics"]},permissions:["VIRTUAL_CLINIC:CREATE","VIRTUAL_CLINIC:EDIT_ADDRESS","VIRTUAL_CLINIC:EDIT_STAFFING","VIRTUAL_CLINIC:EDIT_ADDITIONAL_INFO","VIRTUAL_CLINIC:VIEW_FULLY_INPATIENT_CASES"]},DAt={id:"VIRTUAL_BENCHMARKING_GROUP",displayName:"Virtuelle Benchmarking-Gruppen",type:"resource",navigation:{path:["/virtual-benchmarking-groups"]},permissions:null},kAt={id:"CLINICS_FILTER",displayName:"Klinik-Filter",type:"resource",navigation:{path:["/clinics-filters"]},permissions:null},MAt={id:"CODE_SPECTRUM",displayName:"Ziffer-Spektra",type:"resource",navigation:{path:["/code-spectra"]},permissions:null},X8e=[TAt,AAt,kAt,MAt,DAt];var J8e=[...Q8e,...X8e,...Z8e];var Rne=(()=>{let e=class e extends Dc{constructor(i,r){super(),this._httpClient=i,this._envService=r,this._cache=zm(0,60*1e3).pipe(lr(()=>this._fetchFeatureStates()),dl(1))}ngOnDestroy(){this.unsubscribeAll()}getFeatureStatus(i){return this._cache.pipe(ri(r=>{let o=Object.keys(r);return i.forEach(s=>{o.includes(s)||(r[s]=!0)}),r}))}_fetchFeatureStates(){let i=`${this._envService.load("BD_FRONTEND_CONFIG_RESOURCE_URL")}/config/feature/status`;return this._httpClient.post(i,J8e.map(r=>r.id))}};e.\u0275fac=function(r){return new(r||e)(Ke(ms),Ke(dr))},e.\u0275prov=It({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var mEe=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=Ct({type:e,selectors:[["ng-component"]],standalone:!0,features:[Ot],decls:18,vars:1,consts:[[1,"bd-container"],["fxLayout","row","fxLayoutAlign","center center"],["fxFlex","100px"],[3,"inline"],[1,"bd-container-inner","mat-typography"],["fxLayout","column"],["fxFlex",""],[1,"mat-title"]],template:function(r,o){r&1&&(bt(0,"mat-toolbar"),se(1,"div",0)(2,"div",1)(3,"div",2)(4,"mat-icon",3),yt(5,"engineering"),ce()()()(),se(6,"div",4)(7,"div",5)(8,"div",6)(9,"div",1)(10,"div",6)(11,"h1",7),yt(12,"Wir \xFCberarbeiten diesen Bereich gerade f\xFCr Sie"),ce()()()(),se(13,"div",6)(14,"div",1)(15,"div",6)(16,"p"),yt(17,"Danke f\xFCr Ihr Verst\xE4ndnis! Wir beeilen uns, damit Sie so schnell wie m\xF6glich wieder wie gewohnt darauf zugreifen k\xF6nnen. Bis dahin k\xF6nnen Sie gerne unseren Support kontaktieren."),ce()()()()()()),r&2&&(Z(4),J("inline",!0))},dependencies:[Jb,v3,Ys,tl,Ac,Cl,qs,zs],styles:["mat-icon.mat-icon-inline[_ngcontent-%COMP%]{font-size:100px}h1.mat-title[_ngcontent-%COMP%], p[_ngcontent-%COMP%]{text-align:center}"]});let n=e;return n})();var eGe=(()=>{let e=class e{constructor(i,r){this._featureStateService=i,this._router=r}canActivate(i,r){let o=i.data.featureId;return o?this._featureStateService.getFeatureStatus([o]).pipe(ri(s=>s[o]),ri(s=>s||this._router.parseUrl("/sys-feature-maintenance"))):this._router.parseUrl("/sys-feature-maintenance")}canActivateChild(i,r){let o=i.data.featureId;return o?this._featureStateService.getFeatureStatus([o]).pipe(ri(s=>s[o]),ri(s=>s||this._router.parseUrl("/sys-feature-maintenance"))):this._router.parseUrl("/sys-feature-maintenance")}};e.\u0275fac=function(r){return new(r||e)(Ke(Rne),Ke(el))},e.\u0275prov=It({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var RAt="sys-feature-maintenance",NAt={path:RAt,component:mEe},Nne=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=Oi({type:e}),e.\u0275inj=Mi({providers:[eGe],imports:[C_.forChild([NAt]),Jb,Ys,qs,mEe,C_]});let n=e;return n})();var Xc=function(n){return n.ADMIN="ADMIN",n.BUSINESS_CASE="BUSINESS_CASE",n.CLINIC_BROWSER="CLINIC_BROWSER",n.CLINIC_OPERATING_NUMBERS="CLINIC_OPERATING_NUMBERS",n.CODE_BROWSER="CODE_BROWSER",n.COMPETITOR_ANALYSIS="COMPETITOR_ANALYSIS",n.CUBE="CUBE",n.CUBE_BASE="CUBE_BASE",n.CUBE_PREVIEW="CUBE_PREVIEW",n.DRG_BENCHMARKING="DRG_BENCHMARKING",n.HARTMANN_OPPORTUNITY_COSTS="HARTMANN_OPPORTUNITY_COSTS",n.HARTMANN_OPPORTUNITY_COSTS_CH="HARTMANN_OPPORTUNITY_COSTS_CH",n.HARTMANN_VIRTUAL_CLINIC_ANALYSIS="HARTMANN_VIRTUAL_CLINIC_ANALYSIS",n.INTUITIVE_PROFITABILITY_ANALYSIS="INTUITIVE_PROFITABILITY_ANALYSIS",n.INTUITIVE_VIRTUAL_CLINIC_DETAILS_CHANGE="INTUITIVE_VIRTUAL_CLINIC_DETAILS_CHANGE",n.OP_LIVE="OP_LIVE",n.POTENTIAL_ANALYSIS="POTENTIAL_ANALYSIS",n.PROJECTION="PROJECTION",n.REFERRAL_ANALYSIS="REFERRAL_ANALYSIS",n.VIRTUAL_CLINIC_DRG_ACCOUNTING_ANALYSIS="VIRTUAL_CLINIC_DRG_ACCOUNTING_ANALYSIS",n.VIRTUAL_CLINIC_DRG_ACCOUNTING_ANALYSIS_ADVANCED="VIRTUAL_CLINIC_DRG_ACCOUNTING_ANALYSIS_ADVANCED",n}(Xc||{}),I5i=[Xc.ADMIN,Xc.BUSINESS_CASE,Xc.CLINIC_BROWSER,Xc.CLINIC_OPERATING_NUMBERS,Xc.CODE_BROWSER,Xc.COMPETITOR_ANALYSIS,Xc.CUBE,Xc.CUBE_BASE,Xc.CUBE_PREVIEW,Xc.DRG_BENCHMARKING,Xc.HARTMANN_OPPORTUNITY_COSTS,Xc.HARTMANN_OPPORTUNITY_COSTS_CH,Xc.HARTMANN_VIRTUAL_CLINIC_ANALYSIS,Xc.INTUITIVE_PROFITABILITY_ANALYSIS,Xc.INTUITIVE_VIRTUAL_CLINIC_DETAILS_CHANGE,Xc.OP_LIVE,Xc.POTENTIAL_ANALYSIS,Xc.PROJECTION,Xc.REFERRAL_ANALYSIS,Xc.VIRTUAL_CLINIC_DRG_ACCOUNTING_ANALYSIS,Xc.VIRTUAL_CLINIC_DRG_ACCOUNTING_ANALYSIS_ADVANCED];var MG=class n{static includedLower(e){let t=["CREATOR","DELETE","UPDATE","READ"],i=t.indexOf(e);if(i===-1)throw new Error(`Invalid permission type: ${e}`);return t.slice(i)}static includedBetween(e="READ",t="CREATOR"){let i=["READ","UPDATE","DELETE","CREATOR"],r=c=>{let h=i.indexOf(c);return h>-1?h:null},o=r(e)||0,s=r(t)+1||4;return i.slice(o,s)}static includes(e,t){return n.includedLower(e).indexOf(t)>-1}};var Pne={READ:"Schreibgesch\xFCtzt",UPDATE:"Lesen + Bearbeiten",DELETE:"Bearbeiten + L\xF6schen",CREATOR:"Besitzer"};var Bn=function(n){return n.APP_CONTENT_SNIPPET="app-content-snippet",n.AT_CUBE_DASHBOARD="at-cube-dashboard",n.AT_CODE_SPECTRUM="at-code-spectrum",n.AT_VIRTUAL_CLINIC="at-virtual-clinic",n.VIRTUAL_CLINIC="virtual-clinic",n.MARKET="market",n.CODE_SPECTRUM="code-spectrum",n.CLINICS_FILTER="clinics-filter",n.CLINIC_OPERATING_NUMBER_GROUP="clinic-operating-number-group",n.PROFITABILITY_ANALYSIS_FORM="profitability-analysis-form",n.VIRTUAL_CLINIC_P21_IMPORT="virtual-clinic-p21-import",n.VIRTUAL_CLINIC_ANALYSIS_DASHBOARD="virtual-clinic-analysis-dashboard",n.VIRTUAL_CLINIC_REFERRAL_IMPORT="virtual-clinic-referral-import",n.VIRTUAL_CLINIC_BENCHMARKING_GROUP="virtual-clinic-benchmarking-group",n.SCENARIO_ANALYSIS="scenario",n.SCENARIO_ANALYSIS_OPEN_CLOSE="bmg-open-close-scenario",n.SCENARIO_VV_ANALYSIS_OPEN_CLOSE="bmg-vorhalteverguetung-calculation",n.VIRTUAL_CLINIC_CZ="virtual-clinic-cz",n.FILE="file",n}(Bn||{}),gEe={[Bn.AT_CUBE_DASHBOARD]:"Cube Dashboard AT",[Bn.AT_CODE_SPECTRUM]:"Code-Spektra AT",[Bn.AT_VIRTUAL_CLINIC]:"Virtuelle Klinik AT",[Bn.APP_CONTENT_SNIPPET]:"Content Snippet",[Bn.CLINIC_OPERATING_NUMBER_GROUP]:"Kennzahlengruppe",[Bn.CODE_SPECTRUM]:"Code-Spektra",[Bn.CLINICS_FILTER]:"Klinik-Filter",[Bn.MARKET]:"M\xE4rkte",[Bn.PROFITABILITY_ANALYSIS_FORM]:"Wirtschaftlichkeits-Analyse",[Bn.VIRTUAL_CLINIC]:"Virtuelle Klinik",[Bn.VIRTUAL_CLINIC_ANALYSIS_DASHBOARD]:"Cube Dashboard",[Bn.VIRTUAL_CLINIC_BENCHMARKING_GROUP]:"Virtuelle Benchmarking-Gruppe",[Bn.VIRTUAL_CLINIC_P21_IMPORT]:"\xA721 Import",[Bn.VIRTUAL_CLINIC_REFERRAL_IMPORT]:"Einweiser Import",[Bn.SCENARIO_ANALYSIS]:"Szenario-Analyse",[Bn.SCENARIO_ANALYSIS_OPEN_CLOSE]:"Versorgunganalyse - Simulation",[Bn.SCENARIO_VV_ANALYSIS_OPEN_CLOSE]:"Versorgunganalyse - Kalkulation",[Bn.VIRTUAL_CLINIC_CZ]:"Virtuelle Klinik",[Bn.FILE]:"Datei"},gC=class{static filter(e,t){t=t.toLowerCase();let i,r=!1;return e.id&&(r=e.id.toLowerCase().indexOf(t)!==-1),e.name&&(i=e.name.toLowerCase().indexOf(t)!==-1),e.labels&&(i=e.labels.some(o=>o.toLowerCase().indexOf(t)!==-1)),i||r}static sort(e,t,i){let r=i.field,o=e[r],s=t[r];return typeof o=="string"?this.sortString(o.toString(),s.toString(),i):o instanceof Date?this.sortDate(new Date(o),new Date(s),i):s?o?o.toString().localeCompare(s.toString()):1:-1}static sortString(e,t,i){return t?e?i.desc?t.localeCompare(e):e.localeCompare(t):1:-1}static sortDate(e,t,i){return t?e?i.desc?t.getTime()-e.getTime():e.getTime()-t.getTime():1:-1}};var El=class{static merge(e,t){return Object.keys(t).forEach(r=>{if(!e[r])e[r]=t[r];else{let o=t[r].filter(s=>e[r].indexOf(s)===-1);e[r]=e[r].concat(o)}}),e}static flatten(e){let t=Object.keys(e),i=[];return t.forEach(r=>{e[r].forEach(o=>{i.push({resourceName:r,resourceId:o})})}),i}};var Y5i={[Bn.VIRTUAL_CLINIC_ANALYSIS_DASHBOARD]:{children:[Bn.CODE_SPECTRUM,Bn.VIRTUAL_CLINIC]},[Bn.CODE_SPECTRUM]:{parents:[Bn.VIRTUAL_CLINIC_ANALYSIS_DASHBOARD]},[Bn.VIRTUAL_CLINIC]:{parents:[Bn.VIRTUAL_CLINIC_ANALYSIS_DASHBOARD]}};var Fne=class{constructor(e){this._environmentService=e}base(){return this._environmentService.load("BD_PERMISSION_RESOURCE_URL")}findAllPermissions(){return`${this.base()}/features/`}};var Lne=(()=>{let e=class e{constructor(i,r){this._httpClient=i,this._environmentService=r,this._featurePermissionSessionStorageKey="bd.config.BD_FEATURE_PERMISSIONS",this._store=new Fne(this._environmentService)}getPermissions(i=!1){let r=sessionStorage.getItem(this._featurePermissionSessionStorageKey);return r&&i===!1?kn(JSON.parse(r)):(this._currentlyFetching||(this._clearPermissions(),this._currentlyFetching=this._fetchAllPermissions().pipe(vs(o=>this._storePermissions(o)),dl(1))),this._currentlyFetching)}containsPermission(i){return this._fetchAllPermissionsAndCheck(i)}_fetchAllPermissionsAndCheck(i){return this.getPermissions().pipe(ri(r=>i.every(o=>r.indexOf(o)!==-1)))}_fetchAllPermissions(){let i=this._store.findAllPermissions();return this._httpClient.get(i)}_storePermissions(i){return sessionStorage.setItem(this._featurePermissionSessionStorageKey,JSON.stringify(i)),i}_clearPermissions(){sessionStorage.removeItem(this._featurePermissionSessionStorageKey)}};e.\u0275fac=function(r){return new(r||e)(Ke(ms),Ke(dr))},e.\u0275prov=It({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var _C=(()=>{let e=class e{constructor(i,r){this.el=i,this.renderer=r}ngOnChanges(i){for(;this.testId.includes(" ");)this.testId=this.testId.replace(" ","_");this.renderer.setAttribute(this.el.nativeElement,"data-test",this.testId)}};e.\u0275fac=function(r){return new(r||e)(oe(Ai),oe(Fl))},e.\u0275dir=Ki({type:e,selectors:[["","data-test",""]],inputs:{testId:[0,"data-test","testId"]},standalone:!0,features:[eo]});let n=e;return n})();var b3=(()=>{let e=class e{constructor(i,r){this.document=i,this.rendererFactory=r,this._scriptsLoaded=[]}removeJsScript(i){this._scriptsLoaded=this._scriptsLoaded.filter(r=>r!==i),this.document.getElementById(i).remove()}loadJsScript(i,r=[]){let o=new mi;if(this._scriptsLoaded.includes(i.id))return kn(this.document.getElementById(i.id));let s=this._renderer().createElement("script");return s.id=i.id,s.type="text/javascript",s.src=i.src,r.forEach(c=>s.setAttribute(c[0],c[1])),s.onload=()=>{o.next(s)},this._scriptsLoaded.push(i.id),this._renderer().appendChild(this.document.body,s),o}_renderer(){return this.rendererFactory.createRenderer(null,null)}};e.\u0275fac=function(r){return new(r||e)(Ke(Ln),Ke(Ib))},e.\u0275prov=It({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var ip=(()=>{let e=class e{static title(i){return{primaryKeyword:`${i}`}}constructor(i,r,o){this._router=i,this._titleService=r,this._brand=o,this._maxTitleLength=60,this._brand=this._brand?this._brand:"BinDoc"}init(){this._router.events.pipe(Wn(i=>i instanceof T8),Wn(i=>i.snapshot.children.length===0)).subscribe(i=>this.updateTitle(this._pageTitleFromRoute(i)))}pageTitleText(i){return i?(i.length>this._maxTitleLength&&(i=i.slice(0,this._maxTitleLength-3).concat("...")),`${i} | ${this._brand}`):this._brand}updateTitle(i){this._titleService.setTitle(i)}_pageTitleFromRoute(i){if(i.snapshot.data&&i.snapshot.data.pageTitle){let r=i.snapshot.data.pageTitle.primaryKeyword;return this.pageTitleText(r)}else return this._brand}};e.\u0275fac=function(r){return new(r||e)(Ke(el),Ke(Jte),Ke("BD_PAGE_TITLE_BRAND",8))},e.\u0275prov=It({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var J6i={sideSheetContainer:jl("sideSheetContainer",[nl("void, exit",qr({transform:"translateX(100%)"})),nl("enter",qr({transform:"translateX(0%)",opacity:1})),$s("* => enter",Ps(`${n3.ENTERING} ${i3.ACCELERATION_CURVE}`,qr({transform:"translateX(0)",opacity:1}))),$s("* => void, * => exit",Ps(`${n3.EXITING} ${i3.ACCELERATION_CURVE}`,qr({transform:"translateX(100%)"})))])},OG=function(n){return n.pushed="pushed",n.shifted="shifted",n.none="none",n}(OG||{});var nji={subPageMode:OG.none,width:"600px"};var Bne=class{constructor(e){this._environmentService=e}base(){return this._environmentService.load("BD_PERMISSION_RESOURCE_URL")}archive(e,t){return`${this.base()}/archive/${e}/${t}`}sharedResourceWithPermission(e,t,i){return`${this.base()}/shared/${e}/${t}/${i}`}sharedResources(e){return`${this.base()}/shared/${e}`}};var qd=(()=>{let e=class e{constructor(i,r){this._httpClient=i,this._environmentService=r,this._cache={},this._store=new Bne(this._environmentService)}hasPermission(i,r,o){let s=this._getKey(r,i,o),c=this._cache[s];if(!c){let h=this._store.sharedResourceWithPermission(i,r,o);c=this._httpClient.get(h).toPromise().then(()=>!0).catch(()=>!1),this._cache[s]=c}return c}archive(i,r){let o=this._store.archive(i,r);return this._httpClient.delete(o)}sharedResources(i,r="READ",o="CREATOR"){let s=this._store.sharedResources(i),c=new Bs;return c=c.set("minPermission",r),c=c.set("maxPermission",o),this._httpClient.get(s,{params:c})}_getKey(i,r,o){return`${i}_${r}_${o}`}};e.\u0275fac=function(r){return new(r||e)(Ke(ms),Ke(dr))},e.\u0275prov=It({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var zne=class{constructor(e,t,i,r){this._availableFeatures=e,this._authentication$=t,this._featureStatusService=i,this._featurePermissionService=r,this.menu$=new Yo(1),this._featureStatus={},this._subs=[],this._init()}destroy(){this._subs.forEach(e=>e.unsubscribe())}_init(){let e=zm(0,6e4).pipe(lr(()=>this._featureStatusService.getFeatureStatus(this._availableFeatures.map(r=>r.id))),ri(r=>{this._featureStatus=r})),t=this._authentication$.pipe(ri(r=>this._authenticated=r),lr(()=>this._authenticated?this._featurePermissionService.getPermissions(!0):kn([])),ri(r=>{this._featurePermissions=r})),i=Zv([e,t]).subscribe(()=>{this._update()});this._subs.push(i)}_update(){let e={tools:[],resources:[],other:[]};this._availableFeatures.forEach(t=>{let i=this._getMenuItem(t);switch(t.type){case"tool":e.tools.push(i);break;case"resource":e.resources.push(i);break;case"other":e.other.push(i);break}}),this.menu$.next(e)}_getMenuItem(e){let t={feature:e,status:"enabled"};return this._featureStatus[e.id]===!1?t.status="maintenance":this._needsPermission(e)&&(this._featurePermissions.indexOf(`${e.id}:BASE`)===-1?t.status="missingPermission":t.status="enabled"),t}_needsPermission(e){let t=!0;return(e.permissions===null||e.permissions.length>0&&e.permissions?.indexOf(`${e.id}:BASE`)===-1)&&(t=!1),t}};var sGe=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=Ct({type:e,selectors:[["bd-menu-item-missing-permission"]],inputs:{item:"item"},standalone:!0,features:[Ot],decls:10,vars:3,consts:[["target","_blank",3,"href"],["fxLayout","row","fxLayoutGap","24px","fxLayoutAlign","start center"],["fxFlex",""],[1,"item"],[1,"mat-body-2"],["fxFlex","24px"],[1,"menu-disabled-icon"],[3,"inline"]],template:function(r,o){r&1&&(se(0,"a",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"span",4),yt(5),ce()()(),se(6,"div",5)(7,"div",6)(8,"mat-icon",7),yt(9,"lock"),ce()()()()()),r&2&&(J("href",o.item.feature.navigation.disabledLink,Ff),Z(5),jn(o.item.feature.displayName),Z(3),J("inline",!0))},dependencies:[Ys,tl,Gd,Ac,Cl,qs,zs],styles:["a[_ngcontent-%COMP%]{padding:0 12px;height:48px;text-decoration:none;cursor:pointer;display:block;color:#000000de;border-radius:2px}a.active[_ngcontent-%COMP%]{background-color:#46256f1f}a[_ngcontent-%COMP%]:hover{background-color:#00000024}a[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:48px}.menu-disabled-icon[_ngcontent-%COMP%]{color:#0000004d}"]});let n=e;return n})();var GAt=()=>["/sys-feature-maintenance"],aGe=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=Ct({type:e,selectors:[["bd-menu-item-maintenance"]],inputs:{item:"item"},standalone:!0,features:[Ot],decls:10,vars:4,consts:[[3,"routerLink"],["fxLayout","row","fxLayoutGap","24px","fxLayoutAlign","start center"],["fxFlex",""],[1,"item"],[1,"mat-body-2"],["fxFlex","24px"],[1,"menu-disabled-icon"],[3,"inline"]],template:function(r,o){r&1&&(se(0,"a",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"span",4),yt(5),ce()()(),se(6,"div",5)(7,"div",6)(8,"mat-icon",7),yt(9,"warning"),ce()()()()()),r&2&&(J("routerLink",Ll(3,GAt)),Z(5),jn(o.item.feature.displayName),Z(3),J("inline",!0))},dependencies:[Wh,Ys,tl,Gd,Ac,Cl,qs,zs],styles:["a[_ngcontent-%COMP%]{padding:0 12px;height:48px;text-decoration:none;cursor:pointer;display:block;color:#000000de;border-radius:2px}a.active[_ngcontent-%COMP%]{background-color:#46256f1f}a[_ngcontent-%COMP%]:hover{background-color:#00000024}a[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:48px}.menu-disabled-icon[_ngcontent-%COMP%]{color:#0000004d}"]});let n=e;return n})();var YAt=()=>({exact:!0});function qAt(n,e){n&1&&Pn(0)}function $At(n,e){if(n&1){let t=Fi();se(0,"a",9),At("click",function(r){return ht(t),pt(r.stopPropagation())}),se(1,"div",10),bt(2,"div",11),se(3,"div",4)(4,"span",12),yt(5),ce()()()()}if(n&2){let t=e.$implicit,i=le(3);J("routerLink",t.path)("routerLinkActiveOptions",Ll(3,YAt)),Z(5),jn(t.title||i.feature.displayName)}}function KAt(n,e){if(n&1&&Ec(0,$At,6,4,"a",8,Nu),n&2){let t=le(2);Ic(t.feature.navigation.children)}}function WAt(n,e){if(n&1&&Ne(0,KAt,2,0),n&2){le();let t=_r(1);Hi(t.isActive?0:-1)}}var lGe=(()=>{let e=class e{constructor(i){this.activatedRoute=i}ngOnInit(){}};e.\u0275fac=function(r){return new(r||e)(oe(Kh))},e.\u0275cmp=Ct({type:e,selectors:[["ays-menu-nested-item"]],inputs:{feature:"feature",enabled:"enabled"},standalone:!0,features:[Ot],decls:10,vars:3,consts:[["routerLinkActive","routerLinkActive"],["childItemsTpl",""],["routerLinkActive","bd-primary-text active",3,"routerLink"],["fxLayout","row","fxLayoutGap","24px","fxLayoutAlign","start center"],["fxFlex",""],[1,"item"],[1,"mat-body-2"],[4,"ngTemplateOutlet"],["routerLinkActive","bd-primary-text active",3,"routerLink","routerLinkActiveOptions"],["routerLinkActive","bd-primary-text active",3,"click","routerLink","routerLinkActiveOptions"],["fxLayout","row","fxLayoutAlign","start center"],["fxFlex","24px"],[1,"mat-body"]],template:function(r,o){if(r&1&&(se(0,"a",2,0)(2,"div",3)(3,"div",4)(4,"div",5)(5,"span",6),yt(6),ce()()()(),Ne(7,qAt,1,0,"ng-container",7),ce(),Ne(8,WAt,1,1,"ng-template",null,1,ws)),r&2){let s=_r(9);J("routerLink",o.feature.navigation.path),Z(6),jn(o.feature.displayName),Z(),J("ngTemplateOutlet",s)}},dependencies:[LB,Wh,Ys,tl,Gd,Ac,Cl,Rs],styles:["a[_ngcontent-%COMP%]{padding:0 12px;text-decoration:none;cursor:pointer;display:block;color:#000000de;border-radius:2px}a.active[_ngcontent-%COMP%]{background-color:#46256f1f}a[_ngcontent-%COMP%]:hover{background-color:#00000024}a[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:48px}.children-router-link-active-wrapper[_ngcontent-%COMP%]{display:block}"]});let n=e;return n})();function ZAt(n,e){if(n&1&&bt(0,"ays-menu-nested-item",1),n&2){let t=le();J("feature",t.item.feature)}}function QAt(n,e){n&1&&Pn(0)}function XAt(n,e){if(n&1&&(se(0,"a",2),Ne(1,QAt,1,0,"ng-container",4),ce()),n&2){let t=le(2),i=_r(3);J("routerLink",t.item.feature.navigation.path),Z(),J("ngTemplateOutlet",i)}}function JAt(n,e){n&1&&Pn(0)}function eDt(n,e){if(n&1&&(se(0,"a",3),Ne(1,JAt,1,0,"ng-container",4),ce()),n&2){let t=le(2),i=_r(3);J("href",t.item.feature.navigation.externalLink,Ff),Z(),J("ngTemplateOutlet",i)}}function tDt(n,e){if(n&1&&Ne(0,XAt,2,2,"a",2)(1,eDt,2,2,"a",3),n&2){let t=le();Hi(t.item.feature.navigation.path?0:-1),Z(),Hi(t.item.feature.navigation.externalLink?1:-1)}}function iDt(n,e){n&1&&(se(0,"div",9)(1,"mat-icon"),yt(2,"chevron_left"),ce()())}function nDt(n,e){if(n&1&&(se(0,"div",5)(1,"div",6)(2,"div",7)(3,"span",8),yt(4),ce()()(),Ne(5,iDt,3,0,"div",9),ce()),n&2){let t=le();Z(4),jn(t.item.feature.displayName),Z(),Hi((t.item.feature.navigation.children==null?null:t.item.feature.navigation.children.length)>0?5:-1)}}var cGe=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=Ct({type:e,selectors:[["bd-menu-item-enabled"]],inputs:{item:"item"},standalone:!0,features:[Ot],decls:4,vars:1,consts:[["itemInnerTpl",""],[3,"feature"],["routerLinkActive","bd-primary-text active",3,"routerLink"],[3,"href"],[4,"ngTemplateOutlet"],["fxLayout","row","fxLayoutGap","24px","fxLayoutAlign","start center"],["fxFlex",""],[1,"item"],[1,"mat-body-2"],["fxFlex","24px"]],template:function(r,o){r&1&&Ne(0,ZAt,1,1,"ays-menu-nested-item",1)(1,tDt,2,2)(2,nDt,6,2,"ng-template",null,0,ws),r&2&&Hi(o.item.feature.navigation.children&&o.item.feature.navigation.children.length>0?0:1)},dependencies:[lGe,LB,Wh,Rs,Ys,tl,Gd,Ac,Cl,qs,zs],styles:["a[_ngcontent-%COMP%]{padding:0 12px;height:48px;text-decoration:none;cursor:pointer;display:block;color:#000000de;border-radius:2px}a.active[_ngcontent-%COMP%]{background-color:#46256f1f}a[_ngcontent-%COMP%]:hover{background-color:#00000024}a[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:48px}"]});let n=e;return n})();function rDt(n,e){if(n&1&&bt(0,"bd-menu-item-enabled",0),n&2){let t=le();J("item",t.item)}}function oDt(n,e){if(n&1&&bt(0,"bd-menu-item-maintenance",0),n&2){let t=le();J("item",t.item)}}function sDt(n,e){if(n&1&&bt(0,"bd-menu-item-missing-permission",0),n&2){let t=le();J("item",t.item)}}var uGe=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=Ct({type:e,selectors:[["bd-menu-item"]],inputs:{item:"item"},standalone:!0,features:[Ot],decls:3,vars:1,consts:[[3,"item"]],template:function(r,o){if(r&1&&Ne(0,rDt,1,1,"bd-menu-item-enabled",0)(1,oDt,1,1,"bd-menu-item-maintenance",0)(2,sDt,1,1,"bd-menu-item-missing-permission",0),r&2){let s;Hi((s=o.item.status)==="enabled"?0:s==="maintenance"?1:s==="missingPermission"?2:-1)}},dependencies:[cGe,aGe,sGe],encapsulation:2});let n=e;return n})();var vEe=(n,e)=>e.feature.id;function aDt(n,e){if(n&1&&bt(0,"bd-menu-item",4),n&2){let t=e.$implicit;J("item",t)}}function lDt(n,e){if(n&1&&(se(0,"div",1)(1,"div",2)(2,"span",3),yt(3,"Tools"),ce()(),Ec(4,aDt,1,1,"bd-menu-item",4,vEe),ce()),n&2){let t=le();Z(4),Ic(t.menu.tools)}}function cDt(n,e){if(n&1&&bt(0,"bd-menu-item",4),n&2){let t=e.$implicit;J("item",t)}}function uDt(n,e){if(n&1&&(bt(0,"mat-divider"),se(1,"div",1)(2,"div",2)(3,"span",3),yt(4,"Ressourcen"),ce()(),Ec(5,cDt,1,1,"bd-menu-item",4,vEe),ce()),n&2){let t=le();Z(5),Ic(t.menu.resources)}}function dDt(n,e){if(n&1&&bt(0,"bd-menu-item",4),n&2){let t=e.$implicit;J("item",t)}}function hDt(n,e){if(n&1&&(bt(0,"mat-divider"),se(1,"div",1),Ec(2,dDt,1,1,"bd-menu-item",4,vEe),ce()),n&2){let t=le();Z(2),Ic(t.menu.other)}}var dGe=(()=>{let e=class e extends Dc{constructor(i,r,o){super(),this._authenticationService=i,this._featurePermissionService=r,this._featureStatusService=o}ngOnChanges(i){i.features&&this.initMenuHandler()}ngOnDestroy(){this.unsubscribeAll()}initMenuHandler(){this.menuHandler=new zne(this.features,this._authenticationService.authentication$,this._featureStatusService,this._featurePermissionService),this.menuHandler.menu$.subscribe(i=>{this.menu=i})}};e.\u0275fac=function(r){return new(r||e)(oe(Wp),oe(Lne),oe(Rne))},e.\u0275cmp=Ct({type:e,selectors:[["ays-menu"]],inputs:{features:"features"},standalone:!0,features:[Li,eo,Ot],decls:4,vars:3,consts:[[1,"drawer"],[1,"section"],[1,"section--header"],[1,"mat-caption"],[3,"item"]],template:function(r,o){r&1&&(se(0,"div",0),Ne(1,lDt,6,0,"div",1)(2,uDt,7,0)(3,hDt,4,0),ce()),r&2&&(Z(),Hi(o.menu&&o.menu.tools.length>0?1:-1),Z(),Hi(o.menu&&o.menu.resources.length>0?2:-1),Z(),Hi(o.menu&&o.menu.other.length>0?3:-1))},dependencies:[uGe,$b,l3],styles:[".section--header[_ngcontent-%COMP%]{padding:12px 0 12px 12px}"]});let n=e;return n})();var Vne=(()=>{let e=class e{constructor(){this.title$=new mi,this.title=""}setTitle(i){this.title=i,this.title$.next(i)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=It({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var Hne=["*"],fDt=["content"],mDt=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],gDt=["mat-drawer","mat-drawer-content","*"];function _Dt(n,e){if(n&1){let t=Fi();se(0,"div",1),At("click",function(){ht(t);let r=le();return pt(r._onBackdropClicked())}),ce()}if(n&2){let t=le();$n("mat-drawer-shown",t._isShowingBackdrop())}}function vDt(n,e){n&1&&(se(0,"mat-drawer-content"),Gn(1,2),ce())}var yDt=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],bDt=["mat-sidenav","mat-sidenav-content","*"];function xDt(n,e){if(n&1){let t=Fi();se(0,"div",1),At("click",function(){ht(t);let r=le();return pt(r._onBackdropClicked())}),ce()}if(n&2){let t=le();$n("mat-drawer-shown",t._isShowingBackdrop())}}function wDt(n,e){n&1&&(se(0,"mat-sidenav-content"),Gn(1,2),ce())}var CDt='.mat-drawer-container{position:relative;z-index:1;color:var(--mat-sidenav-content-text-color);background-color:var(--mat-sidenav-content-background-color);box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible;background-color:var(--mat-sidenav-scrim-color)}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;color:var(--mat-sidenav-container-text-color);box-shadow:var(--mat-sidenav-container-elevation-shadow);background-color:var(--mat-sidenav-container-background-color);border-top-right-radius:var(--mat-sidenav-container-shape);border-bottom-right-radius:var(--mat-sidenav-container-shape);width:var(--mat-sidenav-container-width);display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0);border-top-left-radius:var(--mat-sidenav-container-shape);border-bottom-left-radius:var(--mat-sidenav-container-shape);border-top-right-radius:0;border-bottom-right-radius:0}[dir=rtl] .mat-drawer{border-top-left-radius:var(--mat-sidenav-container-shape);border-bottom-left-radius:var(--mat-sidenav-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{border-top-right-radius:var(--mat-sidenav-container-shape);border-bottom-right-radius:var(--mat-sidenav-container-shape);border-top-left-radius:0;border-bottom-left-radius:0;left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-side{box-shadow:none;border-right-color:var(--mat-sidenav-container-divider-color);border-right-width:1px;border-right-style:solid}.mat-drawer-side.mat-drawer-end{border-left-color:var(--mat-sidenav-container-divider-color);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side{border-left-color:var(--mat-sidenav-container-divider-color);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side.mat-drawer-end{border-right-color:var(--mat-sidenav-container-divider-color);border-right-width:1px;border-right-style:solid;border-left:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}',hGe={transformDrawer:jl("transform",[nl("open, open-instant",qr({transform:"none",visibility:"visible"})),nl("void",qr({"box-shadow":"none",visibility:"hidden"})),$s("void => open-instant",Ps("0ms")),$s("void <=> open, open-instant => void",Ps("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])};var SDt=new fi("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:EDt}),yEe=new fi("MAT_DRAWER_CONTAINER");function EDt(){return!1}var Une=(()=>{let e=class e extends lC{constructor(i,r,o,s,c){super(o,s,c),this._changeDetectorRef=i,this._container=r}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}};e.\u0275fac=function(r){return new(r||e)(oe(ur),oe(ka(()=>fGe)),oe(Ai),oe(aC),oe(Zi))},e.\u0275cmp=Ct({type:e,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(r,o){r&2&&ld("margin-left",o._container._contentMargins.left,"px")("margin-right",o._container._contentMargins.right,"px")},standalone:!0,features:[Co([{provide:lC,useExisting:e}]),Li,Ot],ngContentSelectors:Hne,decls:1,vars:0,template:function(r,o){r&1&&(Yr(),Gn(0))},encapsulation:2,changeDetection:0});let n=e;return n})(),pGe=(()=>{let e=class e{get position(){return this._position}set position(i){i=i==="end"?"end":"start",i!==this._position&&(this._isAttached&&this._updatePositionInParent(i),this._position=i,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(i){this._mode=i,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(i){this._disableClose=wl(i)}get autoFocus(){let i=this._autoFocus;return i??(this.mode==="side"?"dialog":"first-tabbable")}set autoFocus(i){(i==="true"||i==="false"||i==null)&&(i=wl(i)),this._autoFocus=i}get opened(){return this._opened}set opened(i){this.toggle(wl(i))}constructor(i,r,o,s,c,h,g,x){this._elementRef=i,this._focusTrapFactory=r,this._focusMonitor=o,this._platform=s,this._ngZone=c,this._interactivityChecker=h,this._doc=g,this._container=x,this._focusTrap=null,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new mi,this._animationEnd=new mi,this._animationState="void",this.openedChange=new Kt(!0),this._openedStream=this.openedChange.pipe(Wn(C=>C),ri(()=>{})),this.openedStart=this._animationStarted.pipe(Wn(C=>C.fromState!==C.toState&&C.toState.indexOf("open")===0),EI(void 0)),this._closedStream=this.openedChange.pipe(Wn(C=>!C),ri(()=>{})),this.closedStart=this._animationStarted.pipe(Wn(C=>C.fromState!==C.toState&&C.toState==="void"),EI(void 0)),this._destroyed=new mi,this.onPositionChanged=new Kt,this._modeChanged=new mi,this._injector=ai(yo),this.openedChange.pipe(hr(this._destroyed)).subscribe(C=>{C?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{wc(this._elementRef.nativeElement,"keydown").pipe(Wn(C=>C.keyCode===27&&!this.disableClose&&!il(C)),hr(this._destroyed)).subscribe(C=>this._ngZone.run(()=>{this.close(),C.stopPropagation(),C.preventDefault()}))}),this._animationEnd.pipe(hh((C,A)=>C.fromState===A.fromState&&C.toState===A.toState)).subscribe(C=>{let{fromState:A,toState:k}=C;(k.indexOf("open")===0&&A==="void"||k==="void"&&A.indexOf("open")===0)&&this.openedChange.emit(this._opened)})}_forceFocus(i,r){this._interactivityChecker.isFocusable(i)||(i.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let o=()=>{i.removeEventListener("blur",o),i.removeEventListener("mousedown",o),i.removeAttribute("tabindex")};i.addEventListener("blur",o),i.addEventListener("mousedown",o)})),i.focus(r)}_focusByCssSelector(i,r){let o=this._elementRef.nativeElement.querySelector(i);o&&this._forceFocus(o,r)}_takeFocus(){if(!this._focusTrap)return;let i=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":ad(()=>{!this._focusTrap.focusInitialElement()&&typeof i.focus=="function"&&i.focus()},{injector:this._injector});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus);break}}_restoreFocus(i){this.autoFocus!=="dialog"&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,i):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){let i=this._doc.activeElement;return!!i&&this._elementRef.nativeElement.contains(i)}ngAfterViewInit(){this._isAttached=!0,this._position==="end"&&this._updatePositionInParent("end"),this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState())}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){this._focusTrap?.destroy(),this._anchor?.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(i){return this.toggle(!0,i)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(i=!this.opened,r){i&&r&&(this._openedVia=r);let o=this._setOpen(i,!i&&this._isFocusWithinDrawer(),this._openedVia||"program");return i||(this._openedVia=null),o}_setOpen(i,r,o){return this._opened=i,i?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",r&&this._restoreFocus(o)),this._updateFocusTrapState(),new Promise(s=>{this.openedChange.pipe(kr(1)).subscribe(c=>s(c?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=!!this._container?.hasBackdrop)}_updatePositionInParent(i){if(!this._platform.isBrowser)return;let r=this._elementRef.nativeElement,o=r.parentNode;i==="end"?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),o.insertBefore(this._anchor,r)),o.appendChild(r)):this._anchor&&this._anchor.parentNode.insertBefore(r,this._anchor)}};e.\u0275fac=function(r){return new(r||e)(oe(Ai),oe(xT),oe(Lu),oe(zo),oe(Zi),oe(rC),oe(Ln,8),oe(yEe,8))},e.\u0275cmp=Ct({type:e,selectors:[["mat-drawer"]],viewQuery:function(r,o){if(r&1&&Xn(fDt,5),r&2){let s;Di(s=ki())&&(o._content=s.first)}},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(r,o){r&1&&lO("@transform.start",function(c){return o._animationStarted.next(c)})("@transform.done",function(c){return o._animationEnd.next(c)}),r&2&&(aO("@transform",o._animationState),Et("align",null),$n("mat-drawer-end",o.position==="end")("mat-drawer-over",o.mode==="over")("mat-drawer-push",o.mode==="push")("mat-drawer-side",o.mode==="side")("mat-drawer-opened",o.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],standalone:!0,features:[Ot],ngContentSelectors:Hne,decls:3,vars:0,consts:[["content",""],["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(r,o){r&1&&(Yr(),se(0,"div",1,0),Gn(2),ce())},dependencies:[lC],encapsulation:2,data:{animation:[hGe.transformDrawer]},changeDetection:0});let n=e;return n})(),fGe=(()=>{let e=class e{get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(i){this._autosize=wl(i)}get hasBackdrop(){return this._drawerHasBackdrop(this._start)||this._drawerHasBackdrop(this._end)}set hasBackdrop(i){this._backdropOverride=i==null?null:wl(i)}get scrollable(){return this._userContent||this._content}constructor(i,r,o,s,c,h=!1,g){this._dir=i,this._element=r,this._ngZone=o,this._changeDetectorRef=s,this._animationMode=g,this._drawers=new fh,this.backdropClick=new Kt,this._destroyed=new mi,this._doCheckSubject=new mi,this._contentMargins={left:null,right:null},this._contentMarginChanges=new mi,this._injector=ai(yo),i&&i.change.pipe(hr(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),c.change().pipe(hr(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=h}ngAfterContentInit(){this._allDrawers.changes.pipe(aa(this._allDrawers),hr(this._destroyed)).subscribe(i=>{this._drawers.reset(i.filter(r=>!r._container||r._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(aa(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(i=>{this._watchDrawerToggle(i),this._watchDrawerPosition(i),this._watchDrawerMode(i)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe(Qv(10),hr(this._destroyed)).subscribe(()=>this.updateContentMargins())})}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}open(){this._drawers.forEach(i=>i.open())}close(){this._drawers.forEach(i=>i.close())}updateContentMargins(){let i=0,r=0;if(this._left&&this._left.opened){if(this._left.mode=="side")i+=this._left._getWidth();else if(this._left.mode=="push"){let o=this._left._getWidth();i+=o,r-=o}}if(this._right&&this._right.opened){if(this._right.mode=="side")r+=this._right._getWidth();else if(this._right.mode=="push"){let o=this._right._getWidth();r+=o,i-=o}}i=i||null,r=r||null,(i!==this._contentMargins.left||r!==this._contentMargins.right)&&(this._contentMargins={left:i,right:r},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(i){i._animationStarted.pipe(Wn(r=>r.fromState!==r.toState),hr(this._drawers.changes)).subscribe(r=>{r.toState!=="open-instant"&&this._animationMode!=="NoopAnimations"&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),i.mode!=="side"&&i.openedChange.pipe(hr(this._drawers.changes)).subscribe(()=>this._setContainerClass(i.opened))}_watchDrawerPosition(i){i&&i.onPositionChanged.pipe(hr(this._drawers.changes)).subscribe(()=>{ad(()=>{this._validateDrawers()},{injector:this._injector,phase:gw.Read})})}_watchDrawerMode(i){i&&i._modeChanged.pipe(hr(Da(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(i){let r=this._element.nativeElement.classList,o="mat-drawer-container-has-open";i?r.add(o):r.remove(o)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(i=>{i.position=="end"?(this._end!=null,this._end=i):(this._start!=null,this._start=i)}),this._right=this._left=null,this._dir&&this._dir.value==="rtl"?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}_isPushed(){return this._isDrawerOpen(this._start)&&this._start.mode!="over"||this._isDrawerOpen(this._end)&&this._end.mode!="over"}_onBackdropClicked(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}_closeModalDrawersViaBackdrop(){[this._start,this._end].filter(i=>i&&!i.disableClose&&this._drawerHasBackdrop(i)).forEach(i=>i._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._drawerHasBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._drawerHasBackdrop(this._end)}_isDrawerOpen(i){return i!=null&&i.opened}_drawerHasBackdrop(i){return this._backdropOverride==null?!!i&&i.mode!=="side":this._backdropOverride}};e.\u0275fac=function(r){return new(r||e)(oe(pl,8),oe(Ai),oe(Zi),oe(ur),oe(qb),oe(SDt),oe(da,8))},e.\u0275cmp=Ct({type:e,selectors:[["mat-drawer-container"]],contentQueries:function(r,o,s){if(r&1&&(gr(s,Une,5),gr(s,pGe,5)),r&2){let c;Di(c=ki())&&(o._content=c.first),Di(c=ki())&&(o._allDrawers=c)}},viewQuery:function(r,o){if(r&1&&Xn(Une,5),r&2){let s;Di(s=ki())&&(o._userContent=s.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(r,o){r&2&&$n("mat-drawer-container-explicit-backdrop",o._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],standalone:!0,features:[Co([{provide:yEe,useExisting:e}]),Ot],ngContentSelectors:gDt,decls:4,vars:2,consts:[[1,"mat-drawer-backdrop",3,"mat-drawer-shown"],[1,"mat-drawer-backdrop",3,"click"]],template:function(r,o){r&1&&(Yr(mDt),Ne(0,_Dt,1,2,"div",0),Gn(1),Gn(2,1),Ne(3,vDt,2,0,"mat-drawer-content")),r&2&&(Hi(o.hasBackdrop?0:-1),Z(3),Hi(o._content?-1:3))},dependencies:[Une],styles:['.mat-drawer-container{position:relative;z-index:1;color:var(--mat-sidenav-content-text-color);background-color:var(--mat-sidenav-content-background-color);box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible;background-color:var(--mat-sidenav-scrim-color)}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;color:var(--mat-sidenav-container-text-color);box-shadow:var(--mat-sidenav-container-elevation-shadow);background-color:var(--mat-sidenav-container-background-color);border-top-right-radius:var(--mat-sidenav-container-shape);border-bottom-right-radius:var(--mat-sidenav-container-shape);width:var(--mat-sidenav-container-width);display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0);border-top-left-radius:var(--mat-sidenav-container-shape);border-bottom-left-radius:var(--mat-sidenav-container-shape);border-top-right-radius:0;border-bottom-right-radius:0}[dir=rtl] .mat-drawer{border-top-left-radius:var(--mat-sidenav-container-shape);border-bottom-left-radius:var(--mat-sidenav-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{border-top-right-radius:var(--mat-sidenav-container-shape);border-bottom-right-radius:var(--mat-sidenav-container-shape);border-top-left-radius:0;border-bottom-left-radius:0;left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-side{box-shadow:none;border-right-color:var(--mat-sidenav-container-divider-color);border-right-width:1px;border-right-style:solid}.mat-drawer-side.mat-drawer-end{border-left-color:var(--mat-sidenav-container-divider-color);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side{border-left-color:var(--mat-sidenav-container-divider-color);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side.mat-drawer-end{border-right-color:var(--mat-sidenav-container-divider-color);border-right-width:1px;border-right-style:solid;border-left:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0});let n=e;return n})(),jne=(()=>{let e=class e extends Une{constructor(i,r,o,s,c){super(i,r,o,s,c)}};e.\u0275fac=function(r){return new(r||e)(oe(ur),oe(ka(()=>xEe)),oe(Ai),oe(aC),oe(Zi))},e.\u0275cmp=Ct({type:e,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(r,o){r&2&&ld("margin-left",o._container._contentMargins.left,"px")("margin-right",o._container._contentMargins.right,"px")},standalone:!0,features:[Co([{provide:lC,useExisting:e}]),Li,Ot],ngContentSelectors:Hne,decls:1,vars:0,template:function(r,o){r&1&&(Yr(),Gn(0))},encapsulation:2,changeDetection:0});let n=e;return n})(),bEe=(()=>{let e=class e extends pGe{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(i){this._fixedInViewport=wl(i)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(i){this._fixedTopGap=Qh(i)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(i){this._fixedBottomGap=Qh(i)}};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=Qn(e)))(o||e)}})(),e.\u0275cmp=Ct({type:e,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(r,o){r&2&&(Et("align",null),ld("top",o.fixedInViewport?o.fixedTopGap:null,"px")("bottom",o.fixedInViewport?o.fixedBottomGap:null,"px"),$n("mat-drawer-end",o.position==="end")("mat-drawer-over",o.mode==="over")("mat-drawer-push",o.mode==="push")("mat-drawer-side",o.mode==="side")("mat-drawer-opened",o.opened)("mat-sidenav-fixed",o.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],standalone:!0,features:[Li,Ot],ngContentSelectors:Hne,decls:3,vars:0,consts:[["content",""],["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(r,o){r&1&&(Yr(),se(0,"div",1,0),Gn(2),ce())},dependencies:[lC],encapsulation:2,data:{animation:[hGe.transformDrawer]},changeDetection:0});let n=e;return n})(),xEe=(()=>{let e=class e extends fGe{constructor(){super(...arguments),this._allDrawers=void 0,this._content=void 0}};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=Qn(e)))(o||e)}})(),e.\u0275cmp=Ct({type:e,selectors:[["mat-sidenav-container"]],contentQueries:function(r,o,s){if(r&1&&(gr(s,jne,5),gr(s,bEe,5)),r&2){let c;Di(c=ki())&&(o._content=c.first),Di(c=ki())&&(o._allDrawers=c)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(r,o){r&2&&$n("mat-drawer-container-explicit-backdrop",o._backdropOverride)},exportAs:["matSidenavContainer"],standalone:!0,features:[Co([{provide:yEe,useExisting:e}]),Li,Ot],ngContentSelectors:bDt,decls:4,vars:2,consts:[[1,"mat-drawer-backdrop",3,"mat-drawer-shown"],[1,"mat-drawer-backdrop",3,"click"]],template:function(r,o){r&1&&(Yr(yDt),Ne(0,xDt,1,2,"div",0),Gn(1),Gn(2,1),Ne(3,wDt,2,0,"mat-sidenav-content")),r&2&&(Hi(o.hasBackdrop?0:-1),Z(3),Hi(o._content?-1:3))},dependencies:[jne],styles:[CDt],encapsulation:2,changeDetection:0});let n=e;return n})(),mGe=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=Oi({type:e}),e.\u0275inj=Mi({imports:[ro,ig,ig,ro]});let n=e;return n})();var Gne={privacy:{enabled:!0,link:"https://www.bindoc.de/datenschutz"},documentation:{enabled:!0,link:"https://help.bindoc.de/dokumentation"},siteNotice:{enabled:!0,link:"https://www.bindoc.de/impressum"},status:{enabled:!1,link:"https://status.bindoc.de/"}};var ZT=class{blockingMode;consentMode;cbId;cdn;culture;framework;level;loadScript;type;widgetEnabled;widgetPosition;widgetDistanceVertical;widgetDistanceHorizontal};function TDt(){return window}var QT=(()=>{class n{#e=ai(ZT);#n=ai(va);#r=new mi;#o=new mi;#s=new mi;#a=new mi;#l=new mi;#i=new ea(!1);#c=new mi;#t=new mi;cookiebot;onAccept$;onLoad$;onConsentReady$;onDecline$;onDialogInit$;onDialogDisplay$;onTagsExecuted$;onAcceptCallback$=this.#r.asObservable();onDeclineCallback$=this.#o.asObservable();onDialogDisplayCallback$=this.#s.asObservable();onDialogInitCallback$=this.#a.asObservable();onLoadCallback$=this.#l.asObservable();onServiceReady$=this.#i.asObservable();onTagsExecutedCallback$=this.#c.asObservable();constructor(){hl(this.#n)&&(this.#p(),this.#t=TDt())}init(){return hl(this.#n)?new Promise(t=>{try{this.#e.loadScript!==!1&&this.#t.document.head.append(this.#u())}catch(o){return this.#i.error(o),t()}let i=setTimeout(()=>{this.#i.error("Timed out"),clearInterval(r)},3e4),r=setInterval(()=>{this.#t.Cookiebot instanceof HTMLElement||(this.cookiebot=this.#t.Cookiebot,this.#d(),this.#h(),clearInterval(r),clearTimeout(i),this.#i.next(!0))},10);return t()}):new Promise(t=>{t()})}#u(){let t=document.createElement("script");return t.type="text/javascript",t.id="Cookiebot",t.src="https://consent.cookiebot."+this.#e.cdn+"/uc.js",t.setAttribute("data-cbid",this.#e.cbId),this.#e.blockingMode==="auto"?t.setAttribute("data-blockingmode","auto"):t.async=!0,this.#e.consentMode==="disabled"&&t.setAttribute("data-consentmode",this.#e.consentMode),this.#e.culture&&t.setAttribute("data-culture",this.#e.culture),this.#e.framework&&t.setAttribute("data-framework",this.#e.framework),this.#e.level&&t.setAttribute("data-level",this.#e.level),this.#e.type&&t.setAttribute("data-type",this.#e.type),this.#e.widgetEnabled&&t.setAttribute("data-widget-enabled",this.#e.widgetEnabled?"true":"false"),this.#e.widgetPosition&&t.setAttribute("data-widget-position",this.#e.widgetPosition),this.#e.widgetDistanceVertical&&t.setAttribute("data-widget-distance-vertical",this.#e.widgetDistanceVertical.toString()),this.#e.widgetDistanceHorizontal&&t.setAttribute("data-widget-distance-horizontal",this.#e.widgetDistanceHorizontal.toString()),t}#d(){window.CookiebotCallback_OnAccept=()=>{this.#r.next()},window.CookiebotCallback_OnDecline=()=>{this.#o.next()},window.CookiebotCallback_OnDialogDisplay=()=>{this.#s.next()},window.CookiebotCallback_OnDialogInit=()=>{this.#a.next()},window.CookiebotCallback_OnLoad=()=>{this.#l.next()},window.CookiebotCallback_OnTagsExecuted=()=>{this.#c.next()}}#h(){this.onAccept$=wc(this.#t,"CookiebotOnAccept"),this.onConsentReady$=wc(this.#t,"CookiebotOnConsentReady"),this.onDecline$=wc(this.#t,"CookiebotOnDecline"),this.onDialogInit$=wc(this.#t,"CookiebotOnDialogInit"),this.onDialogDisplay$=wc(this.#t,"CookiebotOnDialogDisplay"),this.onLoad$=wc(this.#t,"CookiebotOnLoad"),this.onTagsExecuted$=wc(this.#t,"CookiebotOnTagsExecuted")}#p(){if(typeof this.#e.loadScript!="boolean")throw new Error("Wrong loadScript config value. Please provide a correct value in the Cookiebot config");if(this.#e.loadScript!==!1){if(!this.#e.cdn||!["com","eu"].includes(this.#e.cdn))throw new Error("Wrong cdn config value. Please provide a correct value in the Cookiebot config");if(!this.#e.cbId)throw new Error("Wrong cbId config value. Please provide a correct value in the Cookiebot config");if(!this.#e.blockingMode||!["auto","manual"].includes(this.#e.blockingMode))throw new Error("Wrong blockingMode config value. Please provide a correct value in the Cookiebot config")}}static \u0275fac=function(i){return new(i||n)};static \u0275prov=It({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();function ADt(n,e){}var DDt={bottomSheetState:jl("state",[nl("void, hidden",qr({transform:"translateY(100%)"})),nl("visible",qr({transform:"translateY(0%)"})),$s("visible => void, visible => hidden",y0([Ps(`${n3.COMPLEX} ${i3.ACCELERATION_CURVE}`),DT("@*",AT(),{optional:!0})])),$s("void => visible",y0([Ps(`${n3.EXITING} ${i3.DECELERATION_CURVE}`),DT("@*",AT(),{optional:!0})]))])},kDt=(()=>{let e=class e extends lG{constructor(i,r,o,s,c,h,g,x,C){super(i,r,o,s,c,h,g,C),this._animationState="void",this._animationStateChanged=new Kt,this._breakpointSubscription=x.observe([iC.Medium,iC.Large,iC.XLarge]).subscribe(()=>{this._toggleClass("mat-bottom-sheet-container-medium",x.isMatched(iC.Medium)),this._toggleClass("mat-bottom-sheet-container-large",x.isMatched(iC.Large)),this._toggleClass("mat-bottom-sheet-container-xlarge",x.isMatched(iC.XLarge))})}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges())}exit(){this._destroyed||(this._animationState="hidden",this._changeDetectorRef.markForCheck())}ngOnDestroy(){super.ngOnDestroy(),this._breakpointSubscription.unsubscribe(),this._destroyed=!0}_onAnimationDone(i){i.toState==="visible"&&this._trapFocus(),this._animationStateChanged.emit(i)}_onAnimationStart(i){this._animationStateChanged.emit(i)}_captureInitialFocus(){}_toggleClass(i,r){this._elementRef.nativeElement.classList.toggle(i,r)}};e.\u0275fac=function(r){return new(r||e)(oe(Ai),oe(xT),oe(Ln,8),oe(cC),oe(rC),oe(Zi),oe(b0),oe(ZB),oe(Lu))},e.\u0275cmp=Ct({type:e,selectors:[["mat-bottom-sheet-container"]],hostAttrs:["tabindex","-1",1,"mat-bottom-sheet-container"],hostVars:4,hostBindings:function(r,o){r&1&&lO("@state.start",function(c){return o._onAnimationStart(c)})("@state.done",function(c){return o._onAnimationDone(c)}),r&2&&(aO("@state",o._animationState),Et("role",o._config.role)("aria-modal",o._config.ariaModal)("aria-label",o._config.ariaLabel))},standalone:!0,features:[Li,Ot],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(r,o){r&1&&Ne(0,ADt,0,0,"ng-template",0)},dependencies:[k_],styles:[".mat-bottom-sheet-container{box-shadow:0px 8px 10px -5px rgba(0, 0, 0, 0.2), 0px 16px 24px 2px rgba(0, 0, 0, 0.14), 0px 6px 30px 5px rgba(0, 0, 0, 0.12);padding:8px 16px;min-width:100vw;box-sizing:border-box;display:block;outline:0;max-height:80vh;overflow:auto;background:var(--mat-bottom-sheet-container-background-color);color:var(--mat-bottom-sheet-container-text-color);font-family:var(--mat-bottom-sheet-container-text-font);font-size:var(--mat-bottom-sheet-container-text-size);line-height:var(--mat-bottom-sheet-container-text-line-height);font-weight:var(--mat-bottom-sheet-container-text-weight);letter-spacing:var(--mat-bottom-sheet-container-text-tracking)}.cdk-high-contrast-active .mat-bottom-sheet-container{outline:1px solid}.mat-bottom-sheet-container-xlarge,.mat-bottom-sheet-container-large,.mat-bottom-sheet-container-medium{border-top-left-radius:var(--mat-bottom-sheet-container-shape);border-top-right-radius:var(--mat-bottom-sheet-container-shape)}.mat-bottom-sheet-container-medium{min-width:384px;max-width:calc(100vw - 128px)}.mat-bottom-sheet-container-large{min-width:512px;max-width:calc(100vw - 256px)}.mat-bottom-sheet-container-xlarge{min-width:576px;max-width:calc(100vw - 384px)}"],encapsulation:2,data:{animation:[DDt.bottomSheetState]}});let n=e;return n})(),MDt=new fi("MatBottomSheetData"),wEe=class{constructor(){this.data=null,this.hasBackdrop=!0,this.disableClose=!1,this.ariaLabel=null,this.ariaModal=!0,this.closeOnNavigation=!0,this.autoFocus="dialog",this.restoreFocus=!0}},w3=class{get instance(){return this._ref.componentInstance}get componentRef(){return this._ref.componentRef}constructor(e,t,i){this._ref=e,this._afterOpened=new mi,this.containerInstance=i,this.disableClose=t.disableClose,i._animationStateChanged.pipe(Wn(r=>r.phaseName==="done"&&r.toState==="visible"),kr(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),i._animationStateChanged.pipe(Wn(r=>r.phaseName==="done"&&r.toState==="hidden"),kr(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._ref.close(this._result)}),e.overlayRef.detachments().subscribe(()=>{this._ref.close(this._result)}),Da(this.backdropClick(),this.keydownEvents().pipe(Wn(r=>r.keyCode===27))).subscribe(r=>{!this.disableClose&&(r.type!=="keydown"||!il(r))&&(r.preventDefault(),this.dismiss())})}dismiss(e){this.containerInstance&&(this.containerInstance._animationStateChanged.pipe(Wn(t=>t.phaseName==="start"),kr(1)).subscribe(t=>{this._closeFallbackTimeout=setTimeout(()=>{this._ref.close(this._result)},t.totalTime+100),this._ref.overlayRef.detachBackdrop()}),this._result=e,this.containerInstance.exit(),this.containerInstance=null)}afterDismissed(){return this._ref.closed}afterOpened(){return this._afterOpened}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}},ODt=new fi("mat-bottom-sheet-default-options"),CEe=(()=>{let e=class e{get _openedBottomSheetRef(){let i=this._parentBottomSheet;return i?i._openedBottomSheetRef:this._bottomSheetRefAtThisLevel}set _openedBottomSheetRef(i){this._parentBottomSheet?this._parentBottomSheet._openedBottomSheetRef=i:this._bottomSheetRefAtThisLevel=i}constructor(i,r,o,s){this._overlay=i,this._parentBottomSheet=o,this._defaultOptions=s,this._bottomSheetRefAtThisLevel=null,this._dialog=r.get(cG)}open(i,r){let o=Ce(Ce({},this._defaultOptions||new wEe),r),s;return this._dialog.open(i,wt(Ce({},o),{disableClose:!0,closeOnOverlayDetachments:!1,maxWidth:"100%",container:kDt,scrollStrategy:o.scrollStrategy||this._overlay.scrollStrategies.block(),positionStrategy:this._overlay.position().global().centerHorizontally().bottom("0"),templateContext:()=>({bottomSheetRef:s}),providers:(c,h,g)=>(s=new w3(c,o,g),[{provide:w3,useValue:s},{provide:MDt,useValue:o.data}])})),s.afterDismissed().subscribe(()=>{this._openedBottomSheetRef===s&&(this._openedBottomSheetRef=null)}),this._openedBottomSheetRef?(this._openedBottomSheetRef.afterDismissed().subscribe(()=>s.containerInstance?.enter()),this._openedBottomSheetRef.dismiss()):s.containerInstance.enter(),this._openedBottomSheetRef=s,s}dismiss(i){this._openedBottomSheetRef&&this._openedBottomSheetRef.dismiss(i)}ngOnDestroy(){this._bottomSheetRefAtThisLevel&&this._bottomSheetRefAtThisLevel.dismiss()}};e.\u0275fac=function(r){return new(r||e)(Ke(ba),Ke(yo),Ke(e,12),Ke(ODt,8))},e.\u0275prov=It({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),_Ge=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=Oi({type:e}),e.\u0275inj=Mi({providers:[CEe],imports:[qie,ro,v0,ro]});let n=e;return n})();var yGe={consent:{necessary:!1,preferences:!1,statistics:!1,marketing:!1}};var Yne=(()=>{let e=class e extends Dc{static createUserConsent(i){return i.consented&&!i.declined?{consent:i.consent}:yGe}constructor(i,r){super(),this._cookieBotService=i,this._appConfig=r,this.userConsent$=new ea({consent:{statistics:!0,marketing:!0,preferences:!0,necessary:!0}});let o=this._appConfig.environment;(o==="production"||o==="staging")&&this._cookieBotService&&this._initWithNgxCookiebotService()}ngOnDestroy(){this.unsubscribeAll()}setUserConsent(i){this.userConsent$.next(i)}_initWithNgxCookiebotService(){this._subs.push(this._cookieBotService.onServiceReady$.pipe(Wn(i=>i),lr(()=>this._cookieBotService.onAccept$),ri(()=>this._cookieBotService.cookiebot)).subscribe(i=>{let r=e.createUserConsent(i);this.setUserConsent(r)})),this._subs.push(this._cookieBotService.onServiceReady$.pipe(Wn(i=>i),lr(()=>this._cookieBotService.onConsentReady$),ri(()=>this._cookieBotService.cookiebot)).subscribe(i=>{let r=e.createUserConsent(i);this.setUserConsent(r)}))}};e.\u0275fac=function(r){return new(r||e)(Ke(QT,8),Ke(d0))},e.\u0275prov=It({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var SEe=class extends ZT{constructor(e){super(),this.loadScript=e==="production",this.cbId="32801549-3670-46f9-aa34-b9f37adc5e37",this.cdn="eu",this.blockingMode="manual"}};function bGe(n){return new SEe(n.environment)}var EEe=(()=>{let e=class e{constructor(i,r){this._scriptService=i,this._appConfig=r}init(){this._appConfig.environment==="production"&&this._scriptService.loadJsScript({id:"Cookiebot",src:"https://consent.cookiebot.com/uc.js"},[["data-cbid","32801549-3670-46f9-aa34-b9f37adc5e37"],["data-blockingmode","manual"]])}};e.\u0275fac=function(r){return new(r||e)(Ke(b3),Ke(d0))},e.\u0275prov=It({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var IEe=(()=>{let e=class e{static forRoot(){return{ngModule:e,providers:[{provide:ZT,useFactory:bGe,deps:[d0]},{provide:QT,useClass:QT,deps:[ZT]},{provide:uO,useFactory:RDt,deps:[QT,EEe],multi:!0}]}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=Oi({type:e}),e.\u0275inj=Mi({providers:[EEe]});let n=e;return n})();function RDt(n,e){return()=>(e.init(),n.init())}var RG=new fi("tracking.service"),qne=(()=>{let e=class e{constructor(i){if(this._trackers=[],this._trackers=[],i&&i.length>0)for(let r of i)this._trackers.push(r);else console.log("no tracker loaded")}addAuthenticatedUserContext(i){this._trackers.forEach(r=>r.addAuthenticatedUserContext(i))}removeAuthenticatedUserContext(){this._trackers.forEach(i=>i.removeAuthenticatedUserContext())}trackException(i){this._trackers.forEach(r=>r.trackException(i))}trackEvent(i,r){this._trackers.forEach(o=>o.trackEvent(i,r))}init(i){this._trackers.forEach(r=>r.init(i))}destroy(){this._trackers.forEach(i=>i.destroy())}};e.\u0275fac=function(r){return new(r||e)(Ke(RG,8))},e.\u0275prov=It({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var $f=(()=>{let e=class e extends Dc{constructor(i,r,o){super(),this._authenticationService=i,this._userConsentService=r,this._userTrackingService=o,this.consent$=new Yo,this.authenticated$=new ea(!1),this.currentUser=new Yo,this.accountInfo=null}init(){let i=this._authenticationService.authentication$.pipe(vs(s=>{s||(this.accountInfo=null),this._onAuthenticatedChange(s)})).subscribe(s=>{this.authenticated$.next(s)}),r=this._userConsentService.userConsent$.pipe(vs(s=>{this._onConsentChange(s)})).subscribe(s=>{this.consent$.next(s)}),o=this._authenticationService.accountInfo$.subscribe(s=>{this.currentUser.next(s),this.accountInfo=s});this._subs.push(i,r,o)}_onConsentChange(i){i.consent.statistics?this._userTrackingService.init(this.accountInfo):this._userTrackingService.destroy()}_onAuthenticatedChange(i){i?this._userTrackingService.addAuthenticatedUserContext(this.accountInfo):this._userTrackingService.removeAuthenticatedUserContext()}};e.\u0275fac=function(r){return new(r||e)(Ke(Wp),Ke(Yne),Ke(qne))},e.\u0275prov=It({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var xGe=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=Oi({type:e}),e.\u0275inj=Mi({imports:[IEe.forRoot()]});let n=e;return n})();function FDt(n,e){if(n&1&&(se(0,"span",1),yt(1),ce()),n&2){let t=le();Z(),jn(t.accountInfo.name)}}function LDt(n,e){if(n&1){let t=Fi();se(0,"button",3),At("click",function(){ht(t);let r=le();return pt(r.login())}),yt(1,"Login"),ce()}}var CGe=(()=>{let e=class e{constructor(i,r){this._currentUserService=i,this._msalService=r,this.accountInfo=null,this._currentUserService.currentUser.subscribe(o=>this.accountInfo=o)}login(){this._msalService.loginRedirect()}};e.\u0275fac=function(r){return new(r||e)(oe($f),oe(Zh))},e.\u0275cmp=Ct({type:e,selectors:[["bd-user-authentication-state"]],standalone:!0,features:[Ot],decls:3,vars:2,consts:[[1,"max-md:invisible"],[1,"mat-body-1"],["mat-button","",1,"btn"],["mat-button","",1,"btn",3,"click"]],template:function(r,o){r&1&&(se(0,"div",0),Ne(1,FDt,2,1,"span",1)(2,LDt,2,0,"button",2),ce()),r&2&&(Z(),Hi(o.accountInfo?1:-1),Z(),Hi(o.accountInfo?-1:2))},dependencies:[gs,Sl],styles:["span[_ngcontent-%COMP%]{line-height:48px}.btn[_ngcontent-%COMP%]{color:#fff!important;border:1px solid #fff}"]});let n=e;return n})();var $ne=new fi("ResourceConfig"),SGe={"at-virtual-clinic":{API_TOKENS:{BASE:"AT_VIRTUAL_CLINIC_API_URL"}},"virtual-clinic":{API_TOKENS:{BASE:"AYS_VIRTUAL_CLINIC_API_URL"}},"at-code-spectrum":{API_TOKENS:{BASE:"AT_CODE_SPECTRUM_API_URL"}},"at-cube-dashboard":{API_TOKENS:{BASE:"AT_CUBE_DASHBOARD_API_URL"}}};var vR={field:"modifiedDate",desc:!0};var zDt=["*",[["mat-chip-avatar"],["","matChipAvatar",""]],[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],VDt=["*","mat-chip-avatar, [matChipAvatar]","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"];function UDt(n,e){n&1&&(se(0,"span",3),Gn(1,1),ce())}function jDt(n,e){n&1&&(se(0,"span",6),Gn(1,2),ce())}var HDt='.mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none;color:inherit}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}.mdc-evolution-chip__action--primary{overflow-x:hidden}.mdc-evolution-chip__action--trailing{position:relative;overflow:visible}.mdc-evolution-chip__action--primary:before{box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1}.mdc-evolution-chip--touch{margin-top:8px;margin-bottom:8px}.mdc-evolution-chip__action-touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-evolution-chip__text-label{white-space:nowrap;user-select:none;text-overflow:ellipsis;overflow:hidden}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mdc-evolution-chip__checkmark-background{opacity:0}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385;stroke:currentColor}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__graphic{transition:width 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark{transition:opacity 50ms 0ms linear,transform 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-50%, -50%)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}@keyframes mdc-evolution-chip-enter{from{transform:scale(0.8);opacity:.4}to{transform:scale(1);opacity:1}}.mdc-evolution-chip--enter{animation:mdc-evolution-chip-enter 100ms 0ms cubic-bezier(0, 0, 0.2, 1)}@keyframes mdc-evolution-chip-exit{from{opacity:1}to{opacity:0}}.mdc-evolution-chip--exit{animation:mdc-evolution-chip-exit 75ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-evolution-chip--hidden{opacity:0;pointer-events:none;transition:width 150ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mat-mdc-standard-chip{border-radius:var(--mdc-chip-container-shape-radius);height:var(--mdc-chip-container-height)}.mat-mdc-standard-chip .mdc-evolution-chip__ripple{border-radius:var(--mdc-chip-container-shape-radius)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-radius:var(--mdc-chip-container-shape-radius)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:var(--mdc-chip-with-avatar-avatar-shape-radius)}.mat-mdc-standard-chip.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--with-primary-icon){--mdc-chip-graphic-selected-width:var(--mdc-chip-with-avatar-avatar-size)}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{height:var(--mdc-chip-with-avatar-avatar-size);width:var(--mdc-chip-with-avatar-avatar-size);font-size:var(--mdc-chip-with-avatar-avatar-size)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--primary:before{border-color:var(--mdc-chip-outline-color)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational).mdc-ripple-upgraded--background-focused:before,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus:before{border-color:var(--mdc-chip-focus-outline-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--primary:before{border-color:var(--mdc-chip-disabled-outline-color)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-width:var(--mdc-chip-outline-width)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary:before{border-width:var(--mdc-chip-flat-selected-outline-width)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-selected-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-flat-disabled-selected-container-color)}.mat-mdc-standard-chip .mdc-evolution-chip__text-label{font-family:var(--mdc-chip-label-text-font);line-height:var(--mdc-chip-label-text-line-height);font-size:var(--mdc-chip-label-text-size);font-weight:var(--mdc-chip-label-text-weight);letter-spacing:var(--mdc-chip-label-text-tracking)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-label-text-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-selected-label-text-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{height:var(--mdc-chip-with-icon-icon-size);width:var(--mdc-chip-with-icon-icon-size);font-size:var(--mdc-chip-with-icon-icon-size)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-disabled-icon-color)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-disabled-icon-color)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-trailing-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-color)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary .mdc-evolution-chip__ripple::before,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary .mdc-evolution-chip__ripple::after{background-color:var(--mdc-chip-hover-state-layer-color)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:hover .mdc-evolution-chip__ripple::before,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary.mdc-ripple-surface--hover .mdc-evolution-chip__ripple::before{opacity:var(--mdc-chip-hover-state-layer-opacity)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary.mdc-ripple-upgraded--background-focused .mdc-evolution-chip__ripple::before,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__ripple::before{transition-duration:75ms;opacity:var(--mdc-chip-focus-state-layer-opacity)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary .mdc-evolution-chip__ripple::before,.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary .mdc-evolution-chip__ripple::after{background-color:var(--mdc-chip-selected-hover-state-layer-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary:hover .mdc-evolution-chip__ripple::before,.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary.mdc-ripple-surface--hover .mdc-evolution-chip__ripple::before{opacity:var(--mdc-chip-selected-hover-state-layer-opacity)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary.mdc-ripple-upgraded--background-focused .mdc-evolution-chip__ripple::before,.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary:not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__ripple::before{transition-duration:75ms;opacity:var(--mdc-chip-selected-focus-state-layer-opacity)}.mat-mdc-chip-highlighted{--mdc-chip-with-icon-icon-color:var(--mdc-chip-with-icon-selected-icon-color);--mdc-chip-elevated-container-color:var(--mdc-chip-elevated-selected-container-color);--mdc-chip-label-text-color:var(--mdc-chip-selected-label-text-color);--mdc-chip-outline-width:var(--mdc-chip-flat-selected-outline-width)}.mat-mdc-chip-focus-overlay{background:var(--mdc-chip-focus-state-layer-color)}.mat-mdc-chip-selected .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-focus-state-layer-color)}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-hover-state-layer-color);opacity:var(--mdc-chip-hover-state-layer-opacity)}.mat-mdc-chip-focus-overlay .mat-mdc-chip-selected:hover,.mat-mdc-chip-highlighted:hover .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-hover-state-layer-color);opacity:var(--mdc-chip-selected-hover-state-layer-opacity)}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-focus-state-layer-color);opacity:var(--mdc-chip-focus-state-layer-opacity)}.mat-mdc-chip-selected.cdk-focused .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-focus-state-layer-color);opacity:var(--mdc-chip-selected-focus-state-layer-opacity)}.mdc-evolution-chip--disabled:not(.mdc-evolution-chip--selected) .mat-mdc-chip-avatar{opacity:var(--mdc-chip-with-avatar-disabled-avatar-opacity)}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{opacity:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity)}.mdc-evolution-chip--disabled.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{opacity:var(--mdc-chip-with-icon-disabled-icon-opacity)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:var(--mat-chip-disabled-container-opacity)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-trailing-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-disabled-trailing-icon-color)}.mat-mdc-chip-remove{opacity:var(--mat-chip-trailing-action-opacity)}.mat-mdc-chip-remove:focus{opacity:var(--mat-chip-trailing-action-focus-opacity)}.mat-mdc-chip-remove::after{background:var(--mat-chip-trailing-action-state-layer-color)}.mat-mdc-chip-remove:hover::after{opacity:var(--mat-chip-trailing-action-hover-state-layer-opacity)}.mat-mdc-chip-remove:focus::after{opacity:var(--mat-chip-trailing-action-focus-state-layer-opacity)}.mat-mdc-chip-selected .mat-mdc-chip-remove::after,.mat-mdc-chip-highlighted .mat-mdc-chip-remove::after{background:var(--mat-chip-selected-trailing-action-state-layer-color)}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove{opacity:calc(var(--mat-chip-trailing-action-opacity)*var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity))}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove:focus{opacity:calc(var(--mat-chip-trailing-action-focus-opacity)*var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity))}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-style:solid}.mat-mdc-standard-chip .mdc-evolution-chip__checkmark{height:20px;width:20px}.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mat-mdc-standard-chip{-webkit-tap-highlight-color:rgba(0,0,0,0)}.cdk-high-contrast-active .mat-mdc-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-mdc-standard-chip .mdc-evolution-chip__checkmark-path{stroke:CanvasText !important}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mat-mdc-chip-action-label{overflow:visible}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary{flex-basis:100%}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{font:inherit;letter-spacing:inherit;white-space:inherit}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-basic-chip .mdc-evolution-chip__action--primary{font:inherit}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip .mat-ripple.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1;color:var(--mdc-chip-with-icon-icon-color, currentColor)}.mat-mdc-chip{position:relative;z-index:0}.mat-mdc-chip-action-label{text-align:left;z-index:1}[dir=rtl] .mat-mdc-chip-action-label{text-align:right}.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label{position:relative}.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.mat-mdc-chip-action-label .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-chip-remove::before{margin:calc(var(--mat-mdc-focus-indicator-border-width, 3px)*-1);left:8px;right:8px}.mat-mdc-chip-remove::after{content:"";display:block;opacity:0;position:absolute;top:-2px;bottom:-2px;left:6px;right:6px;border-radius:50%}.mat-mdc-chip-remove .mat-icon{width:18px;height:18px;font-size:18px;box-sizing:content-box}.mat-chip-edit-input{cursor:text;display:inline-block;color:inherit;outline:0}.cdk-high-contrast-active .mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}.mat-mdc-chip-action:focus .mat-mdc-focus-indicator::before{content:""}',GDt=[[["mat-chip-avatar"],["","matChipAvatar",""]],[["","matChipEditInput",""]],"*",[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],YDt=["mat-chip-avatar, [matChipAvatar]","[matChipEditInput]","*","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"];function qDt(n,e){n&1&&bt(0,"span",0)}function $Dt(n,e){n&1&&(se(0,"span",2),Gn(1),ce())}function KDt(n,e){n&1&&Gn(0,1)}function WDt(n,e){n&1&&bt(0,"span",7)}function ZDt(n,e){if(n&1&&Ne(0,KDt,1,0)(1,WDt,1,0,"span",7),n&2){let t=le();Hi(t.contentEditInput?0:1)}}function QDt(n,e){n&1&&Gn(0,2)}function XDt(n,e){n&1&&(se(0,"span",5),Gn(1,3),ce())}var AGe=["*"],JDt=".mdc-evolution-chip-set{display:flex}.mdc-evolution-chip-set:focus{outline:none}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mdc-evolution-chip-set--overflow .mdc-evolution-chip-set__chips{flex-flow:nowrap}.mdc-evolution-chip-set .mdc-evolution-chip-set__chips{margin-left:-8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip-set__chips,.mdc-evolution-chip-set .mdc-evolution-chip-set__chips[dir=rtl]{margin-left:0;margin-right:-8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-left:8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip,.mdc-evolution-chip-set .mdc-evolution-chip[dir=rtl]{margin-left:0;margin-right:8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-top:4px;margin-bottom:4px}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}.mat-mdc-chip-set-stacked .mdc-evolution-chip__graphic{flex-grow:0}.mat-mdc-chip-set-stacked .mdc-evolution-chip__action--primary{flex-basis:100%;justify-content:start}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px}",DGe=new fi("mat-chips-default-options",{providedIn:"root",factory:()=>({separatorKeyCodes:[13]})}),EGe=new fi("MatChipAvatar"),IGe=new fi("MatChipTrailingIcon"),AEe=new fi("MatChipRemove"),MEe=new fi("MatChip"),Kne=(()=>{let e=class e{get disabled(){return this._disabled||this._parentChip.disabled}set disabled(i){this._disabled=i}_getDisabledAttribute(){return this.disabled&&!this._allowFocusWhenDisabled?"":null}_getTabindex(){return this.disabled&&!this._allowFocusWhenDisabled||!this.isInteractive?null:this.tabIndex.toString()}constructor(i,r){this._elementRef=i,this._parentChip=r,this.isInteractive=!0,this._isPrimary=!0,this._disabled=!1,this.tabIndex=-1,this._allowFocusWhenDisabled=!1,i.nativeElement.nodeName==="BUTTON"&&i.nativeElement.setAttribute("type","button")}focus(){this._elementRef.nativeElement.focus()}_handleClick(i){!this.disabled&&this.isInteractive&&this._isPrimary&&(i.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}_handleKeydown(i){(i.keyCode===13||i.keyCode===32)&&!this.disabled&&this.isInteractive&&this._isPrimary&&!this._parentChip._isEditing&&(i.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}};e.\u0275fac=function(r){return new(r||e)(oe(Ai),oe(MEe))},e.\u0275dir=Ki({type:e,selectors:[["","matChipAction",""]],hostAttrs:[1,"mdc-evolution-chip__action","mat-mdc-chip-action"],hostVars:9,hostBindings:function(r,o){r&1&&At("click",function(c){return o._handleClick(c)})("keydown",function(c){return o._handleKeydown(c)}),r&2&&(Et("tabindex",o._getTabindex())("disabled",o._getDisabledAttribute())("aria-disabled",o.disabled),$n("mdc-evolution-chip__action--primary",o._isPrimary)("mdc-evolution-chip__action--presentational",!o.isInteractive)("mdc-evolution-chip__action--trailing",!o._isPrimary))},inputs:{isInteractive:"isInteractive",disabled:[2,"disabled","disabled",Ht],tabIndex:[2,"tabIndex","tabIndex",i=>i==null?-1:xr(i)],_allowFocusWhenDisabled:"_allowFocusWhenDisabled"},standalone:!0,features:[Ir]});let n=e;return n})();var kGe=(()=>{let e=class e extends Kne{constructor(){super(...arguments),this._isPrimary=!1}_handleClick(i){this.disabled||(i.stopPropagation(),i.preventDefault(),this._parentChip.remove())}_handleKeydown(i){(i.keyCode===13||i.keyCode===32)&&!this.disabled&&(i.stopPropagation(),i.preventDefault(),this._parentChip.remove())}};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=Qn(e)))(o||e)}})(),e.\u0275dir=Ki({type:e,selectors:[["","matChipRemove",""]],hostAttrs:["role","button",1,"mat-mdc-chip-remove","mat-mdc-chip-trailing-icon","mat-mdc-focus-indicator","mdc-evolution-chip__icon","mdc-evolution-chip__icon--trailing"],hostVars:1,hostBindings:function(r,o){r&2&&Et("aria-hidden",null)},standalone:!0,features:[Co([{provide:AEe,useExisting:e}]),Li]});let n=e;return n})(),ekt=0,DEe=(()=>{let e=class e{_hasFocus(){return this._hasFocusInternal}get value(){return this._value!==void 0?this._value:this._textElement.textContent.trim()}set value(i){this._value=i}get ripple(){return this._rippleLoader?.getRipple(this._elementRef.nativeElement)}set ripple(i){this._rippleLoader?.attachRipple(this._elementRef.nativeElement,i)}constructor(i,r,o,s,c,h,g,x){this._changeDetectorRef=i,this._elementRef=r,this._ngZone=o,this._focusMonitor=s,this._globalRippleOptions=g,this._onFocus=new mi,this._onBlur=new mi,this.role=null,this._hasFocusInternal=!1,this.id=`mat-mdc-chip-${ekt++}`,this.ariaLabel=null,this.ariaDescription=null,this._ariaDescriptionId=`${this.id}-aria-description`,this.removable=!0,this.highlighted=!1,this.disableRipple=!1,this.disabled=!1,this.tabIndex=-1,this.removed=new Kt,this.destroyed=new Kt,this.basicChipAttrName="mat-basic-chip",this._rippleLoader=ai(Fie),this._injector=ai(yo),this._document=c,this._animationsDisabled=h==="NoopAnimations",x!=null&&(this.tabIndex=parseInt(x)??-1),this._monitorFocus(),this._rippleLoader?.configureRipple(this._elementRef.nativeElement,{className:"mat-mdc-chip-ripple",disabled:this._isRippleDisabled()})}ngOnInit(){let i=this._elementRef.nativeElement;this._isBasicChip=i.hasAttribute(this.basicChipAttrName)||i.tagName.toLowerCase()===this.basicChipAttrName}ngAfterViewInit(){this._textElement=this._elementRef.nativeElement.querySelector(".mat-mdc-chip-action-label"),this._pendingFocus&&(this._pendingFocus=!1,this.focus())}ngAfterContentInit(){this._actionChanges=Da(this._allLeadingIcons.changes,this._allTrailingIcons.changes,this._allRemoveIcons.changes).subscribe(()=>this._changeDetectorRef.markForCheck())}ngDoCheck(){this._rippleLoader.setDisabled(this._elementRef.nativeElement,this._isRippleDisabled())}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement),this._actionChanges?.unsubscribe(),this.destroyed.emit({chip:this}),this.destroyed.complete()}remove(){this.removable&&this.removed.emit({chip:this})}_isRippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||this._isBasicChip||!!this._globalRippleOptions?.disabled}_hasTrailingIcon(){return!!(this.trailingIcon||this.removeIcon)}_handleKeydown(i){(i.keyCode===8&&!i.repeat||i.keyCode===46)&&(i.preventDefault(),this.remove())}focus(){this.disabled||(this.primaryAction?this.primaryAction.focus():this._pendingFocus=!0)}_getSourceAction(i){return this._getActions().find(r=>{let o=r._elementRef.nativeElement;return o===i||o.contains(i)})}_getActions(){let i=[];return this.primaryAction&&i.push(this.primaryAction),this.removeIcon&&i.push(this.removeIcon),this.trailingIcon&&i.push(this.trailingIcon),i}_handlePrimaryActionInteraction(){}_getTabIndex(){return this.role?this.disabled?-1:this.tabIndex:null}_monitorFocus(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(i=>{let r=i!==null;r!==this._hasFocusInternal&&(this._hasFocusInternal=r,r?this._onFocus.next({chip:this}):ad(()=>this._ngZone.run(()=>this._onBlur.next({chip:this})),{injector:this._injector}))})}};e.\u0275fac=function(r){return new(r||e)(oe(ur),oe(Ai),oe(Zi),oe(Lu),oe(Ln),oe(da,8),oe(CT,8),Hm("tabindex"))},e.\u0275cmp=Ct({type:e,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(r,o,s){if(r&1&&(gr(s,EGe,5),gr(s,IGe,5),gr(s,AEe,5),gr(s,EGe,5),gr(s,IGe,5),gr(s,AEe,5)),r&2){let c;Di(c=ki())&&(o.leadingIcon=c.first),Di(c=ki())&&(o.trailingIcon=c.first),Di(c=ki())&&(o.removeIcon=c.first),Di(c=ki())&&(o._allLeadingIcons=c),Di(c=ki())&&(o._allTrailingIcons=c),Di(c=ki())&&(o._allRemoveIcons=c)}},viewQuery:function(r,o){if(r&1&&Xn(Kne,5),r&2){let s;Di(s=ki())&&(o.primaryAction=s.first)}},hostAttrs:[1,"mat-mdc-chip"],hostVars:32,hostBindings:function(r,o){r&1&&At("keydown",function(c){return o._handleKeydown(c)}),r&2&&(Pu("id",o.id),Et("role",o.role)("tabindex",o._getTabIndex())("aria-label",o.ariaLabel),vn("mat-"+(o.color||"primary")),$n("mdc-evolution-chip",!o._isBasicChip)("mdc-evolution-chip--disabled",o.disabled)("mdc-evolution-chip--with-trailing-action",o._hasTrailingIcon())("mdc-evolution-chip--with-primary-graphic",o.leadingIcon)("mdc-evolution-chip--with-primary-icon",o.leadingIcon)("mdc-evolution-chip--with-avatar",o.leadingIcon)("mat-mdc-chip-with-avatar",o.leadingIcon)("mat-mdc-chip-highlighted",o.highlighted)("mat-mdc-chip-disabled",o.disabled)("mat-mdc-basic-chip",o._isBasicChip)("mat-mdc-standard-chip",!o._isBasicChip)("mat-mdc-chip-with-trailing-icon",o._hasTrailingIcon())("_mat-animation-noopable",o._animationsDisabled))},inputs:{role:"role",id:"id",ariaLabel:[0,"aria-label","ariaLabel"],ariaDescription:[0,"aria-description","ariaDescription"],value:"value",color:"color",removable:[2,"removable","removable",Ht],highlighted:[2,"highlighted","highlighted",Ht],disableRipple:[2,"disableRipple","disableRipple",Ht],disabled:[2,"disabled","disabled",Ht],tabIndex:[2,"tabIndex","tabIndex",i=>i==null?void 0:xr(i)]},outputs:{removed:"removed",destroyed:"destroyed"},exportAs:["matChip"],standalone:!0,features:[Co([{provide:MEe,useExisting:e}]),Ir,Ot],ngContentSelectors:VDt,decls:8,vars:3,consts:[[1,"mat-mdc-chip-focus-overlay"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary"],["matChipAction","",3,"isInteractive"],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label"],[1,"mat-mdc-chip-primary-focus-indicator","mat-mdc-focus-indicator"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"]],template:function(r,o){r&1&&(Yr(zDt),bt(0,"span",0),se(1,"span",1)(2,"span",2),Ne(3,UDt,2,0,"span",3),se(4,"span",4),Gn(5),bt(6,"span",5),ce()()(),Ne(7,jDt,2,0,"span",6)),r&2&&(Z(2),J("isInteractive",!1),Z(),Hi(o.leadingIcon?3:-1),Z(4),Hi(o._hasTrailingIcon()?7:-1))},dependencies:[Kne],styles:['.mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none;color:inherit}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}.mdc-evolution-chip__action--primary{overflow-x:hidden}.mdc-evolution-chip__action--trailing{position:relative;overflow:visible}.mdc-evolution-chip__action--primary:before{box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1}.mdc-evolution-chip--touch{margin-top:8px;margin-bottom:8px}.mdc-evolution-chip__action-touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-evolution-chip__text-label{white-space:nowrap;user-select:none;text-overflow:ellipsis;overflow:hidden}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mdc-evolution-chip__checkmark-background{opacity:0}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385;stroke:currentColor}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__graphic{transition:width 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark{transition:opacity 50ms 0ms linear,transform 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-50%, -50%)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}@keyframes mdc-evolution-chip-enter{from{transform:scale(0.8);opacity:.4}to{transform:scale(1);opacity:1}}.mdc-evolution-chip--enter{animation:mdc-evolution-chip-enter 100ms 0ms cubic-bezier(0, 0, 0.2, 1)}@keyframes mdc-evolution-chip-exit{from{opacity:1}to{opacity:0}}.mdc-evolution-chip--exit{animation:mdc-evolution-chip-exit 75ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-evolution-chip--hidden{opacity:0;pointer-events:none;transition:width 150ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mat-mdc-standard-chip{border-radius:var(--mdc-chip-container-shape-radius);height:var(--mdc-chip-container-height)}.mat-mdc-standard-chip .mdc-evolution-chip__ripple{border-radius:var(--mdc-chip-container-shape-radius)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-radius:var(--mdc-chip-container-shape-radius)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:var(--mdc-chip-with-avatar-avatar-shape-radius)}.mat-mdc-standard-chip.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--with-primary-icon){--mdc-chip-graphic-selected-width:var(--mdc-chip-with-avatar-avatar-size)}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{height:var(--mdc-chip-with-avatar-avatar-size);width:var(--mdc-chip-with-avatar-avatar-size);font-size:var(--mdc-chip-with-avatar-avatar-size)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--primary:before{border-color:var(--mdc-chip-outline-color)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational).mdc-ripple-upgraded--background-focused:before,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus:before{border-color:var(--mdc-chip-focus-outline-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--primary:before{border-color:var(--mdc-chip-disabled-outline-color)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-width:var(--mdc-chip-outline-width)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary:before{border-width:var(--mdc-chip-flat-selected-outline-width)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-selected-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-flat-disabled-selected-container-color)}.mat-mdc-standard-chip .mdc-evolution-chip__text-label{font-family:var(--mdc-chip-label-text-font);line-height:var(--mdc-chip-label-text-line-height);font-size:var(--mdc-chip-label-text-size);font-weight:var(--mdc-chip-label-text-weight);letter-spacing:var(--mdc-chip-label-text-tracking)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-label-text-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-selected-label-text-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{height:var(--mdc-chip-with-icon-icon-size);width:var(--mdc-chip-with-icon-icon-size);font-size:var(--mdc-chip-with-icon-icon-size)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-disabled-icon-color)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-disabled-icon-color)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-trailing-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-color)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary .mdc-evolution-chip__ripple::before,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary .mdc-evolution-chip__ripple::after{background-color:var(--mdc-chip-hover-state-layer-color)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:hover .mdc-evolution-chip__ripple::before,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary.mdc-ripple-surface--hover .mdc-evolution-chip__ripple::before{opacity:var(--mdc-chip-hover-state-layer-opacity)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary.mdc-ripple-upgraded--background-focused .mdc-evolution-chip__ripple::before,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__ripple::before{transition-duration:75ms;opacity:var(--mdc-chip-focus-state-layer-opacity)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary .mdc-evolution-chip__ripple::before,.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary .mdc-evolution-chip__ripple::after{background-color:var(--mdc-chip-selected-hover-state-layer-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary:hover .mdc-evolution-chip__ripple::before,.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary.mdc-ripple-surface--hover .mdc-evolution-chip__ripple::before{opacity:var(--mdc-chip-selected-hover-state-layer-opacity)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary.mdc-ripple-upgraded--background-focused .mdc-evolution-chip__ripple::before,.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary:not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__ripple::before{transition-duration:75ms;opacity:var(--mdc-chip-selected-focus-state-layer-opacity)}.mat-mdc-chip-highlighted{--mdc-chip-with-icon-icon-color:var(--mdc-chip-with-icon-selected-icon-color);--mdc-chip-elevated-container-color:var(--mdc-chip-elevated-selected-container-color);--mdc-chip-label-text-color:var(--mdc-chip-selected-label-text-color);--mdc-chip-outline-width:var(--mdc-chip-flat-selected-outline-width)}.mat-mdc-chip-focus-overlay{background:var(--mdc-chip-focus-state-layer-color)}.mat-mdc-chip-selected .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-focus-state-layer-color)}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-hover-state-layer-color);opacity:var(--mdc-chip-hover-state-layer-opacity)}.mat-mdc-chip-focus-overlay .mat-mdc-chip-selected:hover,.mat-mdc-chip-highlighted:hover .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-hover-state-layer-color);opacity:var(--mdc-chip-selected-hover-state-layer-opacity)}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-focus-state-layer-color);opacity:var(--mdc-chip-focus-state-layer-opacity)}.mat-mdc-chip-selected.cdk-focused .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-focus-state-layer-color);opacity:var(--mdc-chip-selected-focus-state-layer-opacity)}.mdc-evolution-chip--disabled:not(.mdc-evolution-chip--selected) .mat-mdc-chip-avatar{opacity:var(--mdc-chip-with-avatar-disabled-avatar-opacity)}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{opacity:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity)}.mdc-evolution-chip--disabled.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{opacity:var(--mdc-chip-with-icon-disabled-icon-opacity)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:var(--mat-chip-disabled-container-opacity)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-trailing-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-disabled-trailing-icon-color)}.mat-mdc-chip-remove{opacity:var(--mat-chip-trailing-action-opacity)}.mat-mdc-chip-remove:focus{opacity:var(--mat-chip-trailing-action-focus-opacity)}.mat-mdc-chip-remove::after{background:var(--mat-chip-trailing-action-state-layer-color)}.mat-mdc-chip-remove:hover::after{opacity:var(--mat-chip-trailing-action-hover-state-layer-opacity)}.mat-mdc-chip-remove:focus::after{opacity:var(--mat-chip-trailing-action-focus-state-layer-opacity)}.mat-mdc-chip-selected .mat-mdc-chip-remove::after,.mat-mdc-chip-highlighted .mat-mdc-chip-remove::after{background:var(--mat-chip-selected-trailing-action-state-layer-color)}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove{opacity:calc(var(--mat-chip-trailing-action-opacity)*var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity))}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove:focus{opacity:calc(var(--mat-chip-trailing-action-focus-opacity)*var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity))}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-style:solid}.mat-mdc-standard-chip .mdc-evolution-chip__checkmark{height:20px;width:20px}.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mat-mdc-standard-chip{-webkit-tap-highlight-color:rgba(0,0,0,0)}.cdk-high-contrast-active .mat-mdc-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-mdc-standard-chip .mdc-evolution-chip__checkmark-path{stroke:CanvasText !important}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mat-mdc-chip-action-label{overflow:visible}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary{flex-basis:100%}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{font:inherit;letter-spacing:inherit;white-space:inherit}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-basic-chip .mdc-evolution-chip__action--primary{font:inherit}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip .mat-ripple.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1;color:var(--mdc-chip-with-icon-icon-color, currentColor)}.mat-mdc-chip{position:relative;z-index:0}.mat-mdc-chip-action-label{text-align:left;z-index:1}[dir=rtl] .mat-mdc-chip-action-label{text-align:right}.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label{position:relative}.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.mat-mdc-chip-action-label .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-chip-remove::before{margin:calc(var(--mat-mdc-focus-indicator-border-width, 3px)*-1);left:8px;right:8px}.mat-mdc-chip-remove::after{content:"";display:block;opacity:0;position:absolute;top:-2px;bottom:-2px;left:6px;right:6px;border-radius:50%}.mat-mdc-chip-remove .mat-icon{width:18px;height:18px;font-size:18px;box-sizing:content-box}.mat-chip-edit-input{cursor:text;display:inline-block;color:inherit;outline:0}.cdk-high-contrast-active .mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}.mat-mdc-chip-action:focus .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0});let n=e;return n})();var TEe=(()=>{let e=class e{constructor(i,r){this._elementRef=i,this._document=r}initialize(i){this.getNativeElement().focus(),this.setValue(i)}getNativeElement(){return this._elementRef.nativeElement}setValue(i){this.getNativeElement().textContent=i,this._moveCursorToEndOfInput()}getValue(){return this.getNativeElement().textContent||""}_moveCursorToEndOfInput(){let i=this._document.createRange();i.selectNodeContents(this.getNativeElement()),i.collapse(!1);let r=window.getSelection();r.removeAllRanges(),r.addRange(i)}};e.\u0275fac=function(r){return new(r||e)(oe(Ai),oe(Ln))},e.\u0275dir=Ki({type:e,selectors:[["span","matChipEditInput",""]],hostAttrs:["role","textbox","tabindex","-1","contenteditable","true",1,"mat-chip-edit-input"],standalone:!0});let n=e;return n})(),OEe=(()=>{let e=class e extends DEe{constructor(i,r,o,s,c,h,g,x){super(i,r,o,s,c,h,g,x),this.basicChipAttrName="mat-basic-chip-row",this._editStartPending=!1,this.editable=!1,this.edited=new Kt,this._isEditing=!1,this.role="row",this._onBlur.pipe(hr(this.destroyed)).subscribe(()=>{this._isEditing&&!this._editStartPending&&this._onEditFinish()})}_hasTrailingIcon(){return!this._isEditing&&super._hasTrailingIcon()}_handleFocus(){!this._isEditing&&!this.disabled&&this.focus()}_handleKeydown(i){i.keyCode===13&&!this.disabled?this._isEditing?(i.preventDefault(),this._onEditFinish()):this.editable&&this._startEditing(i):this._isEditing?i.stopPropagation():super._handleKeydown(i)}_handleDoubleclick(i){!this.disabled&&this.editable&&this._startEditing(i)}_startEditing(i){if(!this.primaryAction||this.removeIcon&&this._getSourceAction(i.target)===this.removeIcon)return;let r=this.value;this._isEditing=this._editStartPending=!0,this._changeDetectorRef.detectChanges(),setTimeout(()=>{this._getEditInput().initialize(r),this._editStartPending=!1})}_onEditFinish(){this._isEditing=this._editStartPending=!1,this.edited.emit({chip:this,value:this._getEditInput().getValue()}),(this._document.activeElement===this._getEditInput().getNativeElement()||this._document.activeElement===this._document.body)&&this.primaryAction.focus()}_isRippleDisabled(){return super._isRippleDisabled()||this._isEditing}_getEditInput(){return this.contentEditInput||this.defaultEditInput}};e.\u0275fac=function(r){return new(r||e)(oe(ur),oe(Ai),oe(Zi),oe(Lu),oe(Ln),oe(da,8),oe(CT,8),Hm("tabindex"))},e.\u0275cmp=Ct({type:e,selectors:[["mat-chip-row"],["","mat-chip-row",""],["mat-basic-chip-row"],["","mat-basic-chip-row",""]],contentQueries:function(r,o,s){if(r&1&&gr(s,TEe,5),r&2){let c;Di(c=ki())&&(o.contentEditInput=c.first)}},viewQuery:function(r,o){if(r&1&&Xn(TEe,5),r&2){let s;Di(s=ki())&&(o.defaultEditInput=s.first)}},hostAttrs:[1,"mat-mdc-chip","mat-mdc-chip-row","mdc-evolution-chip"],hostVars:27,hostBindings:function(r,o){r&1&&At("focus",function(c){return o._handleFocus(c)})("dblclick",function(c){return o._handleDoubleclick(c)}),r&2&&(Pu("id",o.id),Et("tabindex",o.disabled?null:-1)("aria-label",null)("aria-description",null)("role",o.role),$n("mat-mdc-chip-with-avatar",o.leadingIcon)("mat-mdc-chip-disabled",o.disabled)("mat-mdc-chip-editing",o._isEditing)("mat-mdc-chip-editable",o.editable)("mdc-evolution-chip--disabled",o.disabled)("mdc-evolution-chip--with-trailing-action",o._hasTrailingIcon())("mdc-evolution-chip--with-primary-graphic",o.leadingIcon)("mdc-evolution-chip--with-primary-icon",o.leadingIcon)("mdc-evolution-chip--with-avatar",o.leadingIcon)("mat-mdc-chip-highlighted",o.highlighted)("mat-mdc-chip-with-trailing-icon",o._hasTrailingIcon()))},inputs:{editable:"editable"},outputs:{edited:"edited"},standalone:!0,features:[Co([{provide:DEe,useExisting:e},{provide:MEe,useExisting:e}]),Li,Ot],ngContentSelectors:YDt,decls:10,vars:10,consts:[[1,"mat-mdc-chip-focus-overlay"],["role","gridcell","matChipAction","",1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary",3,"tabIndex","disabled"],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label"],["aria-hidden","true",1,"mat-mdc-chip-primary-focus-indicator","mat-mdc-focus-indicator"],["role","gridcell",1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"],[1,"cdk-visually-hidden",3,"id"],["matChipEditInput",""]],template:function(r,o){r&1&&(Yr(GDt),Ne(0,qDt,1,0,"span",0),se(1,"span",1),Ne(2,$Dt,2,0,"span",2),se(3,"span",3),Ne(4,ZDt,2,1)(5,QDt,1,0),bt(6,"span",4),ce()(),Ne(7,XDt,2,0,"span",5),se(8,"span",6),yt(9),ce()),r&2&&(Hi(o._isEditing?-1:0),Z(),J("tabIndex",o.tabIndex)("disabled",o.disabled),Et("aria-label",o.ariaLabel)("aria-describedby",o._ariaDescriptionId),Z(),Hi(o.leadingIcon?2:-1),Z(2),Hi(o._isEditing?4:5),Z(3),Hi(o._hasTrailingIcon()?7:-1),Z(),J("id",o._ariaDescriptionId),Z(),jn(o.ariaDescription))},dependencies:[Kne,TEe],styles:[HDt],encapsulation:2,changeDetection:0});let n=e;return n})(),tkt=(()=>{let e=class e{get chipFocusChanges(){return this._getChipStream(i=>i._onFocus)}get chipDestroyedChanges(){return this._getChipStream(i=>i.destroyed)}get chipRemovedChanges(){return this._getChipStream(i=>i.removed)}get disabled(){return this._disabled}set disabled(i){this._disabled=i,this._syncChipsState()}get empty(){return!this._chips||this._chips.length===0}get role(){return this._explicitRole?this._explicitRole:this.empty?null:this._defaultRole}set role(i){this._explicitRole=i}get focused(){return this._hasFocusedChip()}constructor(i,r,o){this._elementRef=i,this._changeDetectorRef=r,this._dir=o,this._lastDestroyedFocusedChipIndex=null,this._destroyed=new mi,this._defaultRole="presentation",this._disabled=!1,this.tabIndex=0,this._explicitRole=null,this._chipActions=new fh}ngAfterViewInit(){this._setUpFocusManagement(),this._trackChipSetChanges(),this._trackDestroyedFocusedChip()}ngOnDestroy(){this._keyManager?.destroy(),this._chipActions.destroy(),this._destroyed.next(),this._destroyed.complete()}_hasFocusedChip(){return this._chips&&this._chips.some(i=>i._hasFocus())}_syncChipsState(){this._chips&&this._chips.forEach(i=>{i.disabled=this._disabled,i._changeDetectorRef.markForCheck()})}focus(){}_handleKeydown(i){this._originatesFromChip(i)&&this._keyManager.onKeydown(i)}_isValidIndex(i){return i>=0&&ithis.tabIndex=i)}}_getChipStream(i){return this._chips.changes.pipe(aa(null),lr(()=>Da(...this._chips.map(i))))}_originatesFromChip(i){let r=i.target;for(;r&&r!==this._elementRef.nativeElement;){if(r.classList.contains("mat-mdc-chip"))return!0;r=r.parentElement}return!1}_setUpFocusManagement(){this._chips.changes.pipe(aa(this._chips)).subscribe(i=>{let r=[];i.forEach(o=>o._getActions().forEach(s=>r.push(s))),this._chipActions.reset(r),this._chipActions.notifyOnChanges()}),this._keyManager=new vT(this._chipActions).withVerticalOrientation().withHorizontalOrientation(this._dir?this._dir.value:"ltr").withHomeAndEnd().skipPredicate(i=>this._skipPredicate(i)),this.chipFocusChanges.pipe(hr(this._destroyed)).subscribe(({chip:i})=>{let r=i._getSourceAction(document.activeElement);r&&this._keyManager.updateActiveItem(r)}),this._dir?.change.pipe(hr(this._destroyed)).subscribe(i=>this._keyManager.withHorizontalOrientation(i))}_skipPredicate(i){return!i.isInteractive||i.disabled}_trackChipSetChanges(){this._chips.changes.pipe(aa(null),hr(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>this._syncChipsState()),this._redirectDestroyedChipFocus()})}_trackDestroyedFocusedChip(){this.chipDestroyedChanges.pipe(hr(this._destroyed)).subscribe(i=>{let o=this._chips.toArray().indexOf(i.chip);this._isValidIndex(o)&&i.chip._hasFocus()&&(this._lastDestroyedFocusedChipIndex=o)})}_redirectDestroyedChipFocus(){if(this._lastDestroyedFocusedChipIndex!=null){if(this._chips.length){let i=Math.min(this._lastDestroyedFocusedChipIndex,this._chips.length-1),r=this._chips.toArray()[i];r.disabled?this._chips.length===1?this.focus():this._keyManager.setPreviousItemActive():r.focus()}else this.focus();this._lastDestroyedFocusedChipIndex=null}}};e.\u0275fac=function(r){return new(r||e)(oe(Ai),oe(ur),oe(pl,8))},e.\u0275cmp=Ct({type:e,selectors:[["mat-chip-set"]],contentQueries:function(r,o,s){if(r&1&&gr(s,DEe,5),r&2){let c;Di(c=ki())&&(o._chips=c)}},hostAttrs:[1,"mat-mdc-chip-set","mdc-evolution-chip-set"],hostVars:1,hostBindings:function(r,o){r&1&&At("keydown",function(c){return o._handleKeydown(c)}),r&2&&Et("role",o.role)},inputs:{disabled:[2,"disabled","disabled",Ht],role:"role",tabIndex:[2,"tabIndex","tabIndex",i=>i==null?0:xr(i)]},standalone:!0,features:[Ir,Ot],ngContentSelectors:AGe,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(r,o){r&1&&(Yr(),se(0,"div",0),Gn(1),ce())},styles:[".mdc-evolution-chip-set{display:flex}.mdc-evolution-chip-set:focus{outline:none}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mdc-evolution-chip-set--overflow .mdc-evolution-chip-set__chips{flex-flow:nowrap}.mdc-evolution-chip-set .mdc-evolution-chip-set__chips{margin-left:-8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip-set__chips,.mdc-evolution-chip-set .mdc-evolution-chip-set__chips[dir=rtl]{margin-left:0;margin-right:-8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-left:8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip,.mdc-evolution-chip-set .mdc-evolution-chip[dir=rtl]{margin-left:0;margin-right:8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-top:4px;margin-bottom:4px}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}.mat-mdc-chip-set-stacked .mdc-evolution-chip__graphic{flex-grow:0}.mat-mdc-chip-set-stacked .mdc-evolution-chip__action--primary{flex-basis:100%;justify-content:start}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px}"],encapsulation:2,changeDetection:0});let n=e;return n})();var kEe=class{constructor(e,t){this.source=e,this.value=t}},MGe=(()=>{let e=class e extends tkt{get disabled(){return this.ngControl?!!this.ngControl.disabled:this._disabled}set disabled(i){this._disabled=i,this._syncChipsState()}get id(){return this._chipInput.id}get empty(){return(!this._chipInput||this._chipInput.empty)&&(!this._chips||this._chips.length===0)}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(i){this._placeholder=i,this.stateChanges.next()}get focused(){return this._chipInput.focused||this._hasFocusedChip()}get required(){return this._required??this.ngControl?.control?.hasValidator(rg.required)??!1}set required(i){this._required=i,this.stateChanges.next()}get shouldLabelFloat(){return!this.empty||this.focused}get value(){return this._value}set value(i){this._value=i}get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(i){this._errorStateTracker.matcher=i}get chipBlurChanges(){return this._getChipStream(i=>i._onBlur)}get errorState(){return this._errorStateTracker.errorState}set errorState(i){this._errorStateTracker.errorState=i}constructor(i,r,o,s,c,h,g){super(i,r,o),this.ngControl=g,this.controlType="mat-chip-grid",this._defaultRole="grid",this._ariaDescribedbyIds=[],this._onTouched=()=>{},this._onChange=()=>{},this._value=[],this.change=new Kt,this.valueChange=new Kt,this._chips=void 0,this.stateChanges=new mi,this.ngControl&&(this.ngControl.valueAccessor=this),this._errorStateTracker=new wT(h,g,c,s,this.stateChanges)}ngAfterContentInit(){this.chipBlurChanges.pipe(hr(this._destroyed)).subscribe(()=>{this._blur(),this.stateChanges.next()}),Da(this.chipFocusChanges,this._chips.changes).pipe(hr(this._destroyed)).subscribe(()=>this.stateChanges.next())}ngAfterViewInit(){super.ngAfterViewInit(),this._chipInput}ngDoCheck(){this.ngControl&&this.updateErrorState()}ngOnDestroy(){super.ngOnDestroy(),this.stateChanges.complete()}registerInput(i){this._chipInput=i,this._chipInput.setDescribedByIds(this._ariaDescribedbyIds)}onContainerClick(i){!this.disabled&&!this._originatesFromChip(i)&&this.focus()}focus(){this.disabled||this._chipInput.focused||(!this._chips.length||this._chips.first.disabled?Promise.resolve().then(()=>this._chipInput.focus()):this._chips.length&&this._keyManager.setFirstItemActive(),this.stateChanges.next())}setDescribedByIds(i){this._ariaDescribedbyIds=i,this._chipInput?.setDescribedByIds(i)}writeValue(i){this._value=i}registerOnChange(i){this._onChange=i}registerOnTouched(i){this._onTouched=i}setDisabledState(i){this.disabled=i,this.stateChanges.next()}updateErrorState(){this._errorStateTracker.updateErrorState()}_blur(){this.disabled||setTimeout(()=>{this.focused||(this._propagateChanges(),this._markAsTouched())})}_allowFocusEscape(){this._chipInput.focused||super._allowFocusEscape()}_handleKeydown(i){i.keyCode===9?this._chipInput.focused&&il(i,"shiftKey")&&this._chips.length&&!this._chips.last.disabled?(i.preventDefault(),this._keyManager.activeItem?this._keyManager.setActiveItem(this._keyManager.activeItem):this._focusLastChip()):super._allowFocusEscape():this._chipInput.focused||super._handleKeydown(i),this.stateChanges.next()}_focusLastChip(){this._chips.length&&this._chips.last.focus()}_propagateChanges(){let i=this._chips.length?this._chips.toArray().map(r=>r.value):[];this._value=i,this.change.emit(new kEe(this,i)),this.valueChange.emit(i),this._onChange(i),this._changeDetectorRef.markForCheck()}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}};e.\u0275fac=function(r){return new(r||e)(oe(Ai),oe(ur),oe(pl,8),oe(hR,8),oe(uC,8),oe(D_),oe($p,10))},e.\u0275cmp=Ct({type:e,selectors:[["mat-chip-grid"]],contentQueries:function(r,o,s){if(r&1&&gr(s,OEe,5),r&2){let c;Di(c=ki())&&(o._chips=c)}},hostAttrs:[1,"mat-mdc-chip-set","mat-mdc-chip-grid","mdc-evolution-chip-set"],hostVars:10,hostBindings:function(r,o){r&1&&At("focus",function(){return o.focus()})("blur",function(){return o._blur()}),r&2&&(Et("role",o.role)("tabindex",o.disabled||o._chips&&o._chips.length===0?-1:o.tabIndex)("aria-disabled",o.disabled.toString())("aria-invalid",o.errorState),$n("mat-mdc-chip-list-disabled",o.disabled)("mat-mdc-chip-list-invalid",o.errorState)("mat-mdc-chip-list-required",o.required))},inputs:{disabled:[2,"disabled","disabled",Ht],placeholder:"placeholder",required:[2,"required","required",Ht],value:"value",errorStateMatcher:"errorStateMatcher"},outputs:{change:"change",valueChange:"valueChange"},standalone:!0,features:[Co([{provide:fR,useExisting:e}]),Ir,Li,Ot],ngContentSelectors:AGe,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(r,o){r&1&&(Yr(),se(0,"div",0),Gn(1),ce())},styles:[JDt],encapsulation:2,changeDetection:0});let n=e;return n})(),ikt=0,OGe=(()=>{let e=class e{get chipGrid(){return this._chipGrid}set chipGrid(i){i&&(this._chipGrid=i,this._chipGrid.registerInput(this))}get disabled(){return this._disabled||this._chipGrid&&this._chipGrid.disabled}set disabled(i){this._disabled=i}get empty(){return!this.inputElement.value}constructor(i,r,o){this._elementRef=i,this.focused=!1,this.addOnBlur=!1,this.chipEnd=new Kt,this.placeholder="",this.id=`mat-mdc-chip-list-input-${ikt++}`,this._disabled=!1,this.inputElement=this._elementRef.nativeElement,this.separatorKeyCodes=r.separatorKeyCodes,o&&this.inputElement.classList.add("mat-mdc-form-field-input-control")}ngOnChanges(){this._chipGrid.stateChanges.next()}ngOnDestroy(){this.chipEnd.complete()}_keydown(i){this.empty&&i.keyCode===8?(i.repeat||this._chipGrid._focusLastChip(),i.preventDefault()):this._emitChipEnd(i)}_blur(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipGrid.focused||this._chipGrid._blur(),this._chipGrid.stateChanges.next()}_focus(){this.focused=!0,this._chipGrid.stateChanges.next()}_emitChipEnd(i){(!i||this._isSeparatorKey(i))&&(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),i?.preventDefault())}_onInput(){this._chipGrid.stateChanges.next()}focus(){this.inputElement.focus()}clear(){this.inputElement.value=""}setDescribedByIds(i){let r=this._elementRef.nativeElement;i.length?r.setAttribute("aria-describedby",i.join(" ")):r.removeAttribute("aria-describedby")}_isSeparatorKey(i){return!il(i)&&new Set(this.separatorKeyCodes).has(i.keyCode)}};e.\u0275fac=function(r){return new(r||e)(oe(Ai),oe(DGe),oe(pC,8))},e.\u0275dir=Ki({type:e,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-mdc-chip-input","mat-mdc-input-element","mdc-text-field__input","mat-input-element"],hostVars:6,hostBindings:function(r,o){r&1&&At("keydown",function(c){return o._keydown(c)})("blur",function(){return o._blur()})("focus",function(){return o._focus()})("input",function(){return o._onInput()}),r&2&&(Pu("id",o.id),Et("disabled",o.disabled||null)("placeholder",o.placeholder||null)("aria-invalid",o._chipGrid&&o._chipGrid.ngControl?o._chipGrid.ngControl.invalid:null)("aria-required",o._chipGrid&&o._chipGrid.required||null)("required",o._chipGrid&&o._chipGrid.required||null))},inputs:{chipGrid:[0,"matChipInputFor","chipGrid"],addOnBlur:[2,"matChipInputAddOnBlur","addOnBlur",Ht],separatorKeyCodes:[0,"matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",disabled:[2,"disabled","disabled",Ht]},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],standalone:!0,features:[Ir,eo]});let n=e;return n})();var RGe=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=Oi({type:e}),e.\u0275inj=Mi({providers:[D_,{provide:DGe,useValue:{separatorKeyCodes:[13]}}],imports:[ro,Gb,ro]});let n=e;return n})();function rkt(n,e){if(n&1){let t=Fi();se(0,"mat-chip-row",6),At("removed",function(){let r=ht(t).$implicit,o=le(2);return pt(o.remove(r))})("edited",function(r){let o=ht(t).$implicit,s=le(2);return pt(s.edit(o,r))}),yt(1),se(2,"button",7)(3,"mat-icon"),yt(4,"cancel"),ce()()()}if(n&2){let t=e.$implicit;J("editable",!0),Z(),ps(" ",t," ")}}function okt(n,e){if(n&1){let t=Fi();se(0,"mat-form-field")(1,"mat-label"),yt(2,"Labels"),ce(),se(3,"mat-chip-grid",3,0),Ec(5,rkt,5,2,"mat-chip-row",4,Nu),se(7,"input",5),At("matChipInputTokenEnd",function(r){ht(t);let o=le();return pt(o.add(r))}),ce()()()}if(n&2){let t=_r(4),i=le();Z(5),Ic(i.labels),Z(2),J("matChipInputFor",t)("matChipInputSeparatorKeyCodes",i.separatorKeysCodes)("matChipInputAddOnBlur",i.addOnBlur)}}function skt(n,e){if(n&1){let t=Fi();se(0,"mat-chip-row",6),At("removed",function(){let r=ht(t).$implicit,o=le(2);return pt(o.remove(r))})("edited",function(r){let o=ht(t).$implicit,s=le(2);return pt(s.edit(o,r))}),yt(1),se(2,"button",7)(3,"mat-icon"),yt(4,"cancel"),ce()()()}if(n&2){let t=e.$implicit;J("editable",!0),Z(),ps(" ",t," ")}}function akt(n,e){if(n&1&&(se(0,"mat-option",10),yt(1),ce()),n&2){let t=e.$implicit;J("value",t),Z(),ps(" ",t," ")}}function lkt(n,e){if(n&1){let t=Fi();se(0,"mat-chip-grid",null,0),Ec(2,skt,5,2,"mat-chip-row",4,Nu),ce(),se(4,"input",8,1),At("matChipInputTokenEnd",function(r){ht(t);let o=le();return pt(o.add(r))}),ce(),se(6,"mat-autocomplete",9,2),At("optionSelected",function(r){ht(t);let o=le();return pt(o.add(r))}),Ec(8,akt,2,2,"mat-option",10,Nu),Ym(10,"async"),ce()}if(n&2){let t=_r(1),i=_r(7),r=le();Z(2),Ic(r.labels),Z(2),J("formControl",r.inputControl)("matChipInputFor",t)("matAutocomplete",i)("matChipInputSeparatorKeyCodes",r.separatorKeysCodes),Z(4),Ic(O4e(10,4,r.filteredLabelOptions))}}var NG=(()=>{let e=class e{constructor(){this.labels=[],this.labelsChange=new Kt,this.inputControl=new Kb(""),this.addOnBlur=!0,this.separatorKeysCodes=[13,188],this.filteredLabelOptions=this.inputControl.valueChanges.pipe(ri(i=>{let r=i.toLowerCase();return this.labelOptions.filter(o=>o.toLowerCase().includes(r)&&!this.labels.includes(o))}))}add(i){let r=null;this._eventIsMatChipInputEvent(i)?(r=(i.value||"").trim(),i.chipInput.clear()):(r=i.option.value,this.inputControl.setValue("")),this.labels===null&&(this.labels=[]),r&&this.labels.push(r),this.labelsChange.emit(this.labels)}remove(i){let r=this.labels.indexOf(i);r>=0&&this.labels.splice(r,1),this.labelsChange.emit(this.labels)}edit(i,r){let o=r.value.trim();if(!o){this.remove(i);return}let s=this.labels.indexOf(i);s>=0&&(this.labels[s]=o),this.labelsChange.emit(this.labels)}_eventIsMatChipInputEvent(i){return i.value!==void 0}_eventIsMatAutocompleteSelectedEvent(i){return i.option!==void 0}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=Ct({type:e,selectors:[["bd-ui-labels-input"]],inputs:{labels:"labels",labelOptions:"labelOptions"},outputs:{labelsChange:"labelsChange"},standalone:!0,features:[Ot],decls:2,vars:2,consts:[["chipGrid",""],["fruitInput",""],["auto","matAutocomplete"],["aria-label","Enter fruits"],[3,"editable"],["placeholder","Neues Label...",3,"matChipInputTokenEnd","matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur"],[3,"removed","edited","editable"],["matChipRemove",""],["placeholder","Neues Label...",3,"matChipInputTokenEnd","formControl","matChipInputFor","matAutocomplete","matChipInputSeparatorKeyCodes"],[3,"optionSelected"],[3,"value"]],template:function(r,o){r&1&&Ne(0,okt,8,3,"mat-form-field")(1,lkt,11,6),r&2&&(Hi(o.labelOptions?-1:0),Z(),Hi(o.labelOptions&&o.labelOptions.length>0?1:-1))},dependencies:[fC,zT,pne,RGe,MGe,OGe,kGe,OEe,qs,zs,BT,ane,LT,_G,gne,c8e,ST,WSe,ET,gUe],encapsulation:2});let n=e;return n})();var NGe={showDeleteButton:!0,showEditButton:!0};var yR=function(n){return n.NOOP="NOOP",n.EDIT_RESOURCE="EDIT_RESOURCE",n.DELETE_RESOURCE="DELETE_RESOURCE",n}(yR||{});var Wne=class{constructor(e){this._environmentService=e}linkAssets(){return this._environmentService.load("BD_HELP_RESOURCE_URLS")}};var REe=(()=>{let e=class e{constructor(i,r){this._httpClient=i,this._environmentService=r,this._store=new Wne(this._environmentService);let o=this._store.linkAssets().map(s=>this._httpClient.get(s));this._helpLinks=dh(o).pipe(ri(s=>s.reduce((c,h)=>c.concat(h)))).toPromise().then(s=>s.reduce((c,h)=>(c[h.key]=h,c),{}))}findByKey(i){return this._helpLinks.then(r=>r[i])}};e.\u0275fac=function(r){return new(r||e)(Ke(ms),Ke(dr))},e.\u0275prov=It({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function dkt(n,e){if(n&1&&(se(0,"mat-list-item")(1,"mat-icon",0),yt(2,"calendar_today"),ce(),se(3,"div",1),yt(4),Ym(5,"date"),ce(),se(6,"div",2),yt(7,"Zeitpunkt der Erstellung"),ce()()),n&2){let t=le();Z(4),ps(" ",i0(5,1,t.data.resource.createdDate,"medium")," ")}}function hkt(n,e){if(n&1&&(se(0,"mat-list-item")(1,"mat-icon",0),yt(2,"help"),ce(),se(3,"a",5),yt(4),ce()()),n&2){let t=le();Z(3),J("href",t.helpLink.link,Ff),Z(),ps("Dokumentation ",t.helpLink.displayName,"")}}function pkt(n,e){if(n&1){let t=Fi();se(0,"button",6),At("click",function(){ht(t);let r=le();return pt(r.editResource())}),se(1,"span"),yt(2,"Bearbeiten"),ce()()}}function fkt(n,e){if(n&1){let t=Fi();se(0,"button",7),At("click",function(){ht(t);let r=le();return pt(r.deleteResource())}),se(1,"span"),yt(2,"L\xF6schen"),ce()()}}var PGe=(()=>{let e=class e{constructor(i,r,o){this.data=i,this._dialogRef=r,this._helpService=o,this.permissionDisplayText="",this.showEditButton=!1,this.showDeleteButton=!1,this.permissionDisplayText=Pne[this.data.resource.highestPermission],this.showDeleteButton=i.config.showDeleteButton&&MG.includes(i.resource.highestPermission,"DELETE"),this.showEditButton=i.config.showEditButton&&MG.includes(i.resource.highestPermission,"UPDATE"),this._helpService.findByKey(i.helpKey).then(s=>this.helpLink=s)}editResource(){this._dialogRef.close(yR.EDIT_RESOURCE)}deleteResource(){this._dialogRef.close(yR.DELETE_RESOURCE)}};e.\u0275fac=function(r){return new(r||e)(oe(uG),oe(x0),oe(REe))},e.\u0275cmp=Ct({type:e,selectors:[["ng-component"]],standalone:!0,features:[Ot],decls:20,vars:9,consts:[["matListItemIcon",""],["matListItemTitle",""],["matListItemLine",""],["mat-flat-button","","color","accent","data-test","resource-edit"],["mat-flat-button","","color","accent","data-test","resource-delete"],["matListItemTitle","","target","_blank","rel","noopener",3,"href"],["mat-flat-button","","color","accent","data-test","resource-edit",3,"click"],["mat-flat-button","","color","accent","data-test","resource-delete",3,"click"]],template:function(r,o){r&1&&(se(0,"mat-dialog-content")(1,"mat-list")(2,"mat-list-item")(3,"mat-icon",0),yt(4,"visibility"),ce(),se(5,"div",1),yt(6),ce()(),Ne(7,dkt,8,4,"mat-list-item"),se(8,"mat-list-item")(9,"mat-icon",0),yt(10,"edit_calendar"),ce(),se(11,"div",1),yt(12),Ym(13,"date"),ce(),se(14,"div",2),yt(15,"Zeitpunkt der letzten \xC4nderung"),ce()(),Ne(16,hkt,5,2,"mat-list-item"),ce()(),se(17,"mat-dialog-actions"),Ne(18,pkt,3,0,"button",3)(19,fkt,3,0,"button",4),ce()),r&2&&(Z(6),jn(o.permissionDisplayText),Z(),Hi(o.data.resource!=null&&o.data.resource.createdDate?7:-1),Z(5),ps(" ",i0(13,6,o.data.resource.modifiedDate,"medium")," "),Z(4),Hi(o.helpLink?16:-1),Z(2),Hi(o.showEditButton?18:-1),Z(),Hi(o.showDeleteButton?19:-1))},dependencies:[OT,HHe,UHe,jHe,HSe,jSe,USe,qs,zs,RT,gs,Sl,_C,dT],styles:["a[_ngcontent-%COMP%]{text-decoration:none}a[_ngcontent-%COMP%]:hover{text-decoration:underline}"]});let n=e;return n})();var mkt=["menuButton"],Zne=(()=>{let e=class e extends Dc{constructor(i,r){super(),this._dialog=i,this._confirmService=r,this.config=NGe,this.editResource=new Kt,this.deleteResource=new Kt}openMenu(i){let r=this.menuButtonRef.nativeElement.getBoundingClientRect();this._subs.push(this._dialog.open(PGe,{position:{right:`calc(100vw - ${i.x}px)`,top:`${r.bottom}px`},hasBackdrop:!0,data:{resource:this.resource,config:this.config,helpKey:this.helpKey}}).afterClosed().pipe(Wn(o=>!!o)).subscribe(o=>{switch(o){case yR.DELETE_RESOURCE:{this._confirmService.get(gEe[this.resource.resourceName],`${gEe[this.resource.resourceName]} entg\xFCltig l\xF6schen ?`).then(s=>{s&&this.deleteResource.emit()});break}case yR.EDIT_RESOURCE:{this.editResource.emit();break}}}))}};e.\u0275fac=function(r){return new(r||e)(oe(w0),oe(NSe))},e.\u0275cmp=Ct({type:e,selectors:[["bd-resources-info-menu"]],viewQuery:function(r,o){if(r&1&&Xn(mkt,5,Ai),r&2){let s;Di(s=ki())&&(o.menuButtonRef=s.first)}},inputs:{resource:"resource",helpKey:"helpKey",config:"config"},outputs:{editResource:"editResource",deleteResource:"deleteResource"},standalone:!0,features:[Li,Ot],decls:4,vars:1,consts:[["menuButton",""],["mat-icon-button","","matTooltip","Info","aria-label","resource info menu",3,"click","data-test"]],template:function(r,o){if(r&1){let s=Fi();se(0,"button",1,0),At("click",function(h){return ht(s),pt(o.openMenu(h))}),se(2,"mat-icon"),yt(3,"more_vert"),ce()()}r&2&&J("data-test","resource-info-"+(o.resource==null?null:o.resource.resourceName))},dependencies:[gs,Jh,GT,HT,_C,qs,zs],encapsulation:2,changeDetection:0});let n=e;return n})();var PG=class{constructor(){this.resourceOptions=new mR({sortFn:(e,t)=>gC.sort(e,t,vR),pageSize:10})}init(e){this.resourceOptions.replaceData(e.filter(t=>this.options.filterFnc(t)))}onSortingChange(e){this.resourceOptions.onSortChange((t,i)=>gC.sort(t,i,e)),this.searchTerm?this.onSearchTermChange(this.searchTerm):this.updateResourcesPage()}onSearchTermChange(e){this.searchTerm=e,this.resourceOptions.filter(e),this.updateResourcesPage()}updateResourcesPage(e={pageSize:10,pageIndex:0,length:0}){this.resourceOptions.onPageEvent(e)}searchTermErrorMessage(){return`Keine Ergebnisse f\xFCr '${this.searchTerm}' gefunden`}};var NEe=()=>!1,FG=()=>!0,PEe=n=>[`/${n.resourceName}`,n.id],C3={disableFnc:NEe,detailLinkFnc:PEe,filterFnc:FG,emptyResourcesText:"Keine Elemente gespeichert"};var Mn=class n{static isArray(e,t=!0){return Array.isArray(e)&&(t||e.length!==0)}static isObject(e,t=!0){return typeof e=="object"&&!Array.isArray(e)&&e!=null&&(t||Object.keys(e).length!==0)}static equals(e,t,i){return i?this.resolveFieldData(e,i)===this.resolveFieldData(t,i):this.equalsByValue(e,t)}static equalsByValue(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){var i=Array.isArray(e),r=Array.isArray(t),o,s,c;if(i&&r){if(s=e.length,s!=t.length)return!1;for(o=s;o--!==0;)if(!this.equalsByValue(e[o],t[o]))return!1;return!0}if(i!=r)return!1;var h=this.isDate(e),g=this.isDate(t);if(h!=g)return!1;if(h&&g)return e.getTime()==t.getTime();var x=e instanceof RegExp,C=t instanceof RegExp;if(x!=C)return!1;if(x&&C)return e.toString()==t.toString();var A=Object.keys(e);if(s=A.length,s!==Object.keys(t).length)return!1;for(o=s;o--!==0;)if(!Object.prototype.hasOwnProperty.call(t,A[o]))return!1;for(o=s;o--!==0;)if(c=A[o],!this.equalsByValue(e[c],t[c]))return!1;return!0}return e!==e&&t!==t}static resolveFieldData(e,t){if(e&&t){if(this.isFunction(t))return t(e);if(t.indexOf(".")==-1)return e[t];{let i=t.split("."),r=e;for(let o=0,s=i.length;o=e.length&&(i%=e.length,t%=e.length),e.splice(i,0,e.splice(t,1)[0]))}static insertIntoOrderedArray(e,t,i,r){if(i.length>0){let o=!1;for(let s=0;st){i.splice(s,0,e),o=!0;break}o||i.push(e)}else i.push(e)}static findIndexInList(e,t){let i=-1;if(t){for(let r=0;rt?1:0,o}static sort(e,t,i=1,r,o=1){let s=n.compare(e,t,r,i),c=i;return(n.isEmpty(e)||n.isEmpty(t))&&(c=o===1?i:o),c*s}static merge(e,t){if(!(e==null&&t==null)){{if((e==null||typeof e=="object")&&(t==null||typeof t=="object"))return Ce(Ce({},e||{}),t||{});if((e==null||typeof e=="string")&&(t==null||typeof t=="string"))return[e||"",t||""].join(" ")}return t||e}}static isPrintableCharacter(e=""){return this.isNotEmpty(e)&&e.length===1&&e.match(/\S| /)}static getItemValue(e,...t){return this.isFunction(e)?e(...t):e}static findLastIndex(e,t){let i=-1;if(this.isNotEmpty(e))try{i=e.findLastIndex(t)}catch{i=e.lastIndexOf([...e].reverse().find(t))}return i}static findLast(e,t){let i;if(this.isNotEmpty(e))try{i=e.findLast(t)}catch{i=[...e].reverse().find(t)}return i}static deepEquals(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){var i=Array.isArray(e),r=Array.isArray(t),o,s,c;if(i&&r){if(s=e.length,s!=t.length)return!1;for(o=s;o--!==0;)if(!this.deepEquals(e[o],t[o]))return!1;return!0}if(i!=r)return!1;var h=e instanceof Date,g=t instanceof Date;if(h!=g)return!1;if(h&&g)return e.getTime()==t.getTime();var x=e instanceof RegExp,C=t instanceof RegExp;if(x!=C)return!1;if(x&&C)return e.toString()==t.toString();var A=Object.keys(e);if(s=A.length,s!==Object.keys(t).length)return!1;for(o=s;o--!==0;)if(!Object.prototype.hasOwnProperty.call(t,A[o]))return!1;for(o=s;o--!==0;)if(c=A[o],!this.deepEquals(e[c],t[c]))return!1;return!0}return e!==e&&t!==t}},FGe=0;function rl(n="pn_id_"){return FGe++,`${n}${FGe}`}function gkt(){let n=[],e=(o,s)=>{let c=n.length>0?n[n.length-1]:{key:o,value:s},h=c.value+(c.key===o?0:s)+2;return n.push({key:o,value:h}),h},t=o=>{n=n.filter(s=>s.value!==o)},i=()=>n.length>0?n[n.length-1].value:0,r=o=>o&&parseInt(o.style.zIndex,10)||0;return{get:r,set:(o,s,c)=>{s&&(s.style.zIndex=String(e(o,c)))},clear:o=>{o&&(t(r(o)),o.style.zIndex="")},getCurrent:()=>i()}}var Kf=gkt();var $d=(()=>{class n{static STARTS_WITH="startsWith";static CONTAINS="contains";static NOT_CONTAINS="notContains";static ENDS_WITH="endsWith";static EQUALS="equals";static NOT_EQUALS="notEquals";static IN="in";static LESS_THAN="lt";static LESS_THAN_OR_EQUAL_TO="lte";static GREATER_THAN="gt";static GREATER_THAN_OR_EQUAL_TO="gte";static BETWEEN="between";static IS="is";static IS_NOT="isNot";static BEFORE="before";static AFTER="after";static DATE_IS="dateIs";static DATE_IS_NOT="dateIsNot";static DATE_BEFORE="dateBefore";static DATE_AFTER="dateAfter"}return n})(),FEe=(()=>{class n{static AND="and";static OR="or"}return n})(),Qne=(()=>{class n{filter(t,i,r,o,s){let c=[];if(t)for(let h of t)for(let g of i){let x=Mn.resolveFieldData(h,g);if(this.filters[o](x,r,s)){c.push(h);break}}return c}filters={startsWith:(t,i,r)=>{if(i==null||i.trim()==="")return!0;if(t==null)return!1;let o=Mn.removeAccents(i.toString()).toLocaleLowerCase(r);return Mn.removeAccents(t.toString()).toLocaleLowerCase(r).slice(0,o.length)===o},contains:(t,i,r)=>{if(i==null||typeof i=="string"&&i.trim()==="")return!0;if(t==null)return!1;let o=Mn.removeAccents(i.toString()).toLocaleLowerCase(r);return Mn.removeAccents(t.toString()).toLocaleLowerCase(r).indexOf(o)!==-1},notContains:(t,i,r)=>{if(i==null||typeof i=="string"&&i.trim()==="")return!0;if(t==null)return!1;let o=Mn.removeAccents(i.toString()).toLocaleLowerCase(r);return Mn.removeAccents(t.toString()).toLocaleLowerCase(r).indexOf(o)===-1},endsWith:(t,i,r)=>{if(i==null||i.trim()==="")return!0;if(t==null)return!1;let o=Mn.removeAccents(i.toString()).toLocaleLowerCase(r),s=Mn.removeAccents(t.toString()).toLocaleLowerCase(r);return s.indexOf(o,s.length-o.length)!==-1},equals:(t,i,r)=>i==null||typeof i=="string"&&i.trim()===""?!0:t==null?!1:t.getTime&&i.getTime?t.getTime()===i.getTime():t==i?!0:Mn.removeAccents(t.toString()).toLocaleLowerCase(r)==Mn.removeAccents(i.toString()).toLocaleLowerCase(r),notEquals:(t,i,r)=>i==null||typeof i=="string"&&i.trim()===""?!1:t==null?!0:t.getTime&&i.getTime?t.getTime()!==i.getTime():t==i?!1:Mn.removeAccents(t.toString()).toLocaleLowerCase(r)!=Mn.removeAccents(i.toString()).toLocaleLowerCase(r),in:(t,i)=>{if(i==null||i.length===0)return!0;for(let r=0;ri==null||i[0]==null||i[1]==null?!0:t==null?!1:t.getTime?i[0].getTime()<=t.getTime()&&t.getTime()<=i[1].getTime():i[0]<=t&&t<=i[1],lt:(t,i,r)=>i==null?!0:t==null?!1:t.getTime&&i.getTime?t.getTime()i==null?!0:t==null?!1:t.getTime&&i.getTime?t.getTime()<=i.getTime():t<=i,gt:(t,i,r)=>i==null?!0:t==null?!1:t.getTime&&i.getTime?t.getTime()>i.getTime():t>i,gte:(t,i,r)=>i==null?!0:t==null?!1:t.getTime&&i.getTime?t.getTime()>=i.getTime():t>=i,is:(t,i,r)=>this.filters.equals(t,i,r),isNot:(t,i,r)=>this.filters.notEquals(t,i,r),before:(t,i,r)=>this.filters.lt(t,i,r),after:(t,i,r)=>this.filters.gt(t,i,r),dateIs:(t,i)=>i==null?!0:t==null?!1:t.toDateString()===i.toDateString(),dateIsNot:(t,i)=>i==null?!0:t==null?!1:t.toDateString()!==i.toDateString(),dateBefore:(t,i)=>i==null?!0:t==null?!1:t.getTime(){if(i==null)return!0;if(t==null)return!1;let r=new Date(t);return r.setHours(0,0,0,0),r.getTime()>i.getTime()}};register(t,i){this.filters[t]=i}static \u0275fac=function(i){return new(i||n)};static \u0275prov=It({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var S3=(()=>{class n{clickSource=new mi;clickObservable=this.clickSource.asObservable();add(t){t&&this.clickSource.next(t)}static \u0275fac=function(i){return new(i||n)};static \u0275prov=It({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var zu=(()=>{class n{ripple=!1;inputStyle=Ab("outlined");overlayOptions={};csp=Ab({nonce:void 0});filterMatchModeOptions={text:[$d.STARTS_WITH,$d.CONTAINS,$d.NOT_CONTAINS,$d.ENDS_WITH,$d.EQUALS,$d.NOT_EQUALS],numeric:[$d.EQUALS,$d.NOT_EQUALS,$d.LESS_THAN,$d.LESS_THAN_OR_EQUAL_TO,$d.GREATER_THAN,$d.GREATER_THAN_OR_EQUAL_TO],date:[$d.DATE_IS,$d.DATE_IS_NOT,$d.DATE_BEFORE,$d.DATE_AFTER]};translation={startsWith:"Starts with",contains:"Contains",notContains:"Not contains",endsWith:"Ends with",equals:"Equals",notEquals:"Not equals",noFilter:"No Filter",lt:"Less than",lte:"Less than or equal to",gt:"Greater than",gte:"Greater than or equal to",is:"Is",isNot:"Is not",before:"Before",after:"After",dateIs:"Date is",dateIsNot:"Date is not",dateBefore:"Date is before",dateAfter:"Date is after",clear:"Clear",apply:"Apply",matchAll:"Match All",matchAny:"Match Any",addRule:"Add Rule",removeRule:"Remove Rule",accept:"Yes",reject:"No",choose:"Choose",upload:"Upload",cancel:"Cancel",pending:"Pending",fileSizeTypes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],chooseYear:"Choose Year",chooseMonth:"Choose Month",chooseDate:"Choose Date",prevDecade:"Previous Decade",nextDecade:"Next Decade",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",prevHour:"Previous Hour",nextHour:"Next Hour",prevMinute:"Previous Minute",nextMinute:"Next Minute",prevSecond:"Previous Second",nextSecond:"Next Second",am:"am",pm:"pm",dateFormat:"mm/dd/yy",firstDayOfWeek:0,today:"Today",weekHeader:"Wk",weak:"Weak",medium:"Medium",strong:"Strong",passwordPrompt:"Enter a password",emptyMessage:"No results found",searchMessage:"{0} results are available",selectionMessage:"{0} items selected",emptySelectionMessage:"No selected item",emptySearchMessage:"No results found",emptyFilterMessage:"No results found",aria:{trueLabel:"True",falseLabel:"False",nullLabel:"Not Selected",star:"1 star",stars:"{star} stars",selectAll:"All items selected",unselectAll:"All items unselected",close:"Close",previous:"Previous",next:"Next",navigation:"Navigation",scrollTop:"Scroll Top",moveTop:"Move Top",moveUp:"Move Up",moveDown:"Move Down",moveBottom:"Move Bottom",moveToTarget:"Move to Target",moveToSource:"Move to Source",moveAllToTarget:"Move All to Target",moveAllToSource:"Move All to Source",pageLabel:"{page}",firstPageLabel:"First Page",lastPageLabel:"Last Page",nextPageLabel:"Next Page",prevPageLabel:"Previous Page",rowsPerPageLabel:"Rows per page",previousPageLabel:"Previous Page",jumpToPageDropdownLabel:"Jump to Page Dropdown",jumpToPageInputLabel:"Jump to Page Input",selectRow:"Row Selected",unselectRow:"Row Unselected",expandRow:"Row Expanded",collapseRow:"Row Collapsed",showFilterMenu:"Show Filter Menu",hideFilterMenu:"Hide Filter Menu",filterOperator:"Filter Operator",filterConstraint:"Filter Constraint",editRow:"Row Edit",saveEdit:"Save Edit",cancelEdit:"Cancel Edit",listView:"List View",gridView:"Grid View",slide:"Slide",slideNumber:"{slideNumber}",zoomImage:"Zoom Image",zoomIn:"Zoom In",zoomOut:"Zoom Out",rotateRight:"Rotate Right",rotateLeft:"Rotate Left",listLabel:"Option List",selectColor:"Select a color",removeLabel:"Remove",browseFiles:"Browse Files",maximizeLabel:"Maximize"}};zIndex={modal:1100,overlay:1e3,menu:1e3,tooltip:1100};translationSource=new mi;translationObserver=this.translationSource.asObservable();getTranslation(t){return this.translation[t]}setTranslation(t){this.translation=Ce(Ce({},this.translation),t),this.translationSource.next(this.translation)}static \u0275fac=function(i){return new(i||n)};static \u0275prov=It({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var Ra=(()=>{class n{template;type;name;constructor(t){this.template=t}getType(){return this.name}static \u0275fac=function(i){return new(i||n)(oe(qa))};static \u0275dir=Ki({type:n,selectors:[["","pTemplate",""]],inputs:{type:"type",name:[0,"pTemplate","name"]},standalone:!0})}return n})(),Hl=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275mod=Oi({type:n});static \u0275inj=Mi({})}return n})(),np=(()=>{class n{static STARTS_WITH="startsWith";static CONTAINS="contains";static NOT_CONTAINS="notContains";static ENDS_WITH="endsWith";static EQUALS="equals";static NOT_EQUALS="notEquals";static NO_FILTER="noFilter";static LT="lt";static LTE="lte";static GT="gt";static GTE="gte";static IS="is";static IS_NOT="isNot";static BEFORE="before";static AFTER="after";static CLEAR="clear";static APPLY="apply";static MATCH_ALL="matchAll";static MATCH_ANY="matchAny";static ADD_RULE="addRule";static REMOVE_RULE="removeRule";static ACCEPT="accept";static REJECT="reject";static CHOOSE="choose";static UPLOAD="upload";static CANCEL="cancel";static PENDING="pending";static FILE_SIZE_TYPES="fileSizeTypes";static DAY_NAMES="dayNames";static DAY_NAMES_SHORT="dayNamesShort";static DAY_NAMES_MIN="dayNamesMin";static MONTH_NAMES="monthNames";static MONTH_NAMES_SHORT="monthNamesShort";static FIRST_DAY_OF_WEEK="firstDayOfWeek";static TODAY="today";static WEEK_HEADER="weekHeader";static WEAK="weak";static MEDIUM="medium";static STRONG="strong";static PASSWORD_PROMPT="passwordPrompt";static EMPTY_MESSAGE="emptyMessage";static EMPTY_FILTER_MESSAGE="emptyFilterMessage";static SHOW_FILTER_MENU="showFilterMenu";static HIDE_FILTER_MENU="hideFilterMenu";static SELECTION_MESSAGE="selectionMessage";static ARIA="aria";static SELECT_COLOR="selectColor";static BROWSE_FILES="browseFiles"}return n})();var Ft=(()=>{class n{static zindex=1e3;static calculatedScrollbarWidth=null;static calculatedScrollbarHeight=null;static browser;static addClass(t,i){t&&i&&(t.classList?t.classList.add(i):t.className+=" "+i)}static addMultipleClasses(t,i){if(t&&i)if(t.classList){let r=i.trim().split(" ");for(let o=0;or.split(" ").forEach(o=>this.removeClass(t,o)))}static hasClass(t,i){return t&&i?t.classList?t.classList.contains(i):new RegExp("(^| )"+i+"( |$)","gi").test(t.className):!1}static siblings(t){return Array.prototype.filter.call(t.parentNode.children,function(i){return i!==t})}static find(t,i){return Array.from(t.querySelectorAll(i))}static findSingle(t,i){return this.isElement(t)?t.querySelector(i):null}static index(t){let i=t.parentNode.childNodes,r=0;for(var o=0;o{if(j)return getComputedStyle(j).getPropertyValue("position")==="relative"?j:o(j.parentElement)},s=t.offsetParent?{width:t.offsetWidth,height:t.offsetHeight}:this.getHiddenElementDimensions(t),c=i.offsetHeight??i.getBoundingClientRect().height,h=i.getBoundingClientRect(),g=this.getWindowScrollTop(),x=this.getWindowScrollLeft(),C=this.getViewport(),k=o(t)?.getBoundingClientRect()||{top:-1*g,left:-1*x},O,F;h.top+c+s.height>C.height?(O=h.top-k.top-s.height,t.style.transformOrigin="bottom",h.top+O<0&&(O=-1*h.top)):(O=c+h.top-k.top,t.style.transformOrigin="top");let L=h.left+s.width-C.width,z=h.left-k.left;s.width>C.width?F=(h.left-k.left)*-1:L>0?F=z-L:F=h.left-k.left,t.style.top=O+"px",t.style.left=F+"px",r&&(t.style.marginTop=origin==="bottom"?"calc(var(--p-anchor-gutter) * -1)":"calc(var(--p-anchor-gutter))")}static absolutePosition(t,i,r=!0){let o=t.offsetParent?{width:t.offsetWidth,height:t.offsetHeight}:this.getHiddenElementDimensions(t),s=o.height,c=o.width,h=i.offsetHeight??i.getBoundingClientRect().height,g=i.offsetWidth??i.getBoundingClientRect().width,x=i.getBoundingClientRect(),C=this.getWindowScrollTop(),A=this.getWindowScrollLeft(),k=this.getViewport(),O,F;x.top+h+s>k.height?(O=x.top+C-s,t.style.transformOrigin="bottom",O<0&&(O=C)):(O=h+x.top+C,t.style.transformOrigin="top"),x.left+c>k.width?F=Math.max(0,x.left+A+g-c):F=x.left+A,t.style.top=O+"px",t.style.left=F+"px",r&&(t.style.marginTop=origin==="bottom"?"calc(var(--p-anchor-gutter) * -1)":"calc(var(--p-anchor-gutter))")}static getParents(t,i=[]){return t.parentNode===null?i:this.getParents(t.parentNode,i.concat([t.parentNode]))}static getScrollableParents(t){let i=[];if(t){let r=this.getParents(t),o=/(auto|scroll)/,s=c=>{let h=window.getComputedStyle(c,null);return o.test(h.getPropertyValue("overflow"))||o.test(h.getPropertyValue("overflowX"))||o.test(h.getPropertyValue("overflowY"))};for(let c of r){let h=c.nodeType===1&&c.dataset.scrollselectors;if(h){let g=h.split(",");for(let x of g){let C=this.findSingle(c,x);C&&s(C)&&i.push(C)}}c.nodeType!==9&&s(c)&&i.push(c)}}return i}static getHiddenElementOuterHeight(t){t.style.visibility="hidden",t.style.display="block";let i=t.offsetHeight;return t.style.display="none",t.style.visibility="visible",i}static getHiddenElementOuterWidth(t){t.style.visibility="hidden",t.style.display="block";let i=t.offsetWidth;return t.style.display="none",t.style.visibility="visible",i}static getHiddenElementDimensions(t){let i={};return t.style.visibility="hidden",t.style.display="block",i.width=t.offsetWidth,i.height=t.offsetHeight,t.style.display="none",t.style.visibility="visible",i}static scrollInView(t,i){let r=getComputedStyle(t).getPropertyValue("borderTopWidth"),o=r?parseFloat(r):0,s=getComputedStyle(t).getPropertyValue("paddingTop"),c=s?parseFloat(s):0,h=t.getBoundingClientRect(),x=i.getBoundingClientRect().top+document.body.scrollTop-(h.top+document.body.scrollTop)-o-c,C=t.scrollTop,A=t.clientHeight,k=this.getOuterHeight(i);x<0?t.scrollTop=C+x:x+k>A&&(t.scrollTop=C+x-A+k)}static fadeIn(t,i){t.style.opacity=0;let r=+new Date,o=0,s=function(){o=+t.style.opacity.replace(",",".")+(new Date().getTime()-r)/i,t.style.opacity=o,r=+new Date,+o<1&&(window.requestAnimationFrame&&requestAnimationFrame(s)||setTimeout(s,16))};s()}static fadeOut(t,i){var r=1,o=50,s=i,c=o/s;let h=setInterval(()=>{r=r-c,r<=0&&(r=0,clearInterval(h)),t.style.opacity=r},o)}static getWindowScrollTop(){let t=document.documentElement;return(window.pageYOffset||t.scrollTop)-(t.clientTop||0)}static getWindowScrollLeft(){let t=document.documentElement;return(window.pageXOffset||t.scrollLeft)-(t.clientLeft||0)}static matches(t,i){var r=Element.prototype,o=r.matches||r.webkitMatchesSelector||r.mozMatchesSelector||r.msMatchesSelector||function(s){return[].indexOf.call(document.querySelectorAll(s),this)!==-1};return o.call(t,i)}static getOuterWidth(t,i){let r=t.offsetWidth;if(i){let o=getComputedStyle(t);r+=parseFloat(o.marginLeft)+parseFloat(o.marginRight)}return r}static getHorizontalPadding(t){let i=getComputedStyle(t);return parseFloat(i.paddingLeft)+parseFloat(i.paddingRight)}static getHorizontalMargin(t){let i=getComputedStyle(t);return parseFloat(i.marginLeft)+parseFloat(i.marginRight)}static innerWidth(t){let i=t.offsetWidth,r=getComputedStyle(t);return i+=parseFloat(r.paddingLeft)+parseFloat(r.paddingRight),i}static width(t){let i=t.offsetWidth,r=getComputedStyle(t);return i-=parseFloat(r.paddingLeft)+parseFloat(r.paddingRight),i}static getInnerHeight(t){let i=t.offsetHeight,r=getComputedStyle(t);return i+=parseFloat(r.paddingTop)+parseFloat(r.paddingBottom),i}static getOuterHeight(t,i){let r=t.offsetHeight;if(i){let o=getComputedStyle(t);r+=parseFloat(o.marginTop)+parseFloat(o.marginBottom)}return r}static getHeight(t){let i=t.offsetHeight,r=getComputedStyle(t);return i-=parseFloat(r.paddingTop)+parseFloat(r.paddingBottom)+parseFloat(r.borderTopWidth)+parseFloat(r.borderBottomWidth),i}static getWidth(t){let i=t.offsetWidth,r=getComputedStyle(t);return i-=parseFloat(r.paddingLeft)+parseFloat(r.paddingRight)+parseFloat(r.borderLeftWidth)+parseFloat(r.borderRightWidth),i}static getViewport(){let t=window,i=document,r=i.documentElement,o=i.getElementsByTagName("body")[0],s=t.innerWidth||r.clientWidth||o.clientWidth,c=t.innerHeight||r.clientHeight||o.clientHeight;return{width:s,height:c}}static getOffset(t){var i=t.getBoundingClientRect();return{top:i.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:i.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}}static replaceElementWith(t,i){let r=t.parentNode;if(!r)throw"Can't replace element";return r.replaceChild(i,t)}static getUserAgent(){if(navigator&&this.isClient())return navigator.userAgent}static isIE(){var t=window.navigator.userAgent,i=t.indexOf("MSIE ");if(i>0)return!0;var r=t.indexOf("Trident/");if(r>0){var o=t.indexOf("rv:");return!0}var s=t.indexOf("Edge/");return s>0}static isIOS(){return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream}static isAndroid(){return/(android)/i.test(navigator.userAgent)}static isTouchDevice(){return"ontouchstart"in window||navigator.maxTouchPoints>0}static appendChild(t,i){if(this.isElement(i))i.appendChild(t);else if(i&&i.el&&i.el.nativeElement)i.el.nativeElement.appendChild(t);else throw"Cannot append "+i+" to "+t}static removeChild(t,i){if(this.isElement(i))i.removeChild(t);else if(i.el&&i.el.nativeElement)i.el.nativeElement.removeChild(t);else throw"Cannot remove "+t+" from "+i}static removeElement(t){"remove"in Element.prototype?t.remove():t.parentNode.removeChild(t)}static isElement(t){return typeof HTMLElement=="object"?t instanceof HTMLElement:t&&typeof t=="object"&&t!==null&&t.nodeType===1&&typeof t.nodeName=="string"}static calculateScrollbarWidth(t){if(t){let i=getComputedStyle(t);return t.offsetWidth-t.clientWidth-parseFloat(i.borderLeftWidth)-parseFloat(i.borderRightWidth)}else{if(this.calculatedScrollbarWidth!==null)return this.calculatedScrollbarWidth;let i=document.createElement("div");i.className="p-scrollbar-measure",document.body.appendChild(i);let r=i.offsetWidth-i.clientWidth;return document.body.removeChild(i),this.calculatedScrollbarWidth=r,r}}static calculateScrollbarHeight(){if(this.calculatedScrollbarHeight!==null)return this.calculatedScrollbarHeight;let t=document.createElement("div");t.className="p-scrollbar-measure",document.body.appendChild(t);let i=t.offsetHeight-t.clientHeight;return document.body.removeChild(t),this.calculatedScrollbarWidth=i,i}static invokeElementMethod(t,i,r){t[i].apply(t,r)}static clearSelection(){if(window.getSelection)window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().rangeCount>0&&window.getSelection().getRangeAt(0).getClientRects().length>0&&window.getSelection().removeAllRanges();else if(document.selection&&document.selection.empty)try{document.selection.empty()}catch{}}static getBrowser(){if(!this.browser){let t=this.resolveUserAgent();this.browser={},t.browser&&(this.browser[t.browser]=!0,this.browser.version=t.version),this.browser.chrome?this.browser.webkit=!0:this.browser.webkit&&(this.browser.safari=!0)}return this.browser}static resolveUserAgent(){let t=navigator.userAgent.toLowerCase(),i=/(chrome)[ \/]([\w.]+)/.exec(t)||/(webkit)[ \/]([\w.]+)/.exec(t)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(t)||/(msie) ([\w.]+)/.exec(t)||t.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(t)||[];return{browser:i[1]||"",version:i[2]||"0"}}static isInteger(t){return Number.isInteger?Number.isInteger(t):typeof t=="number"&&isFinite(t)&&Math.floor(t)===t}static isHidden(t){return!t||t.offsetParent===null}static isVisible(t){return t&&t.offsetParent!=null}static isExist(t){return t!==null&&typeof t<"u"&&t.nodeName&&t.parentNode}static focus(t,i){t&&document.activeElement!==t&&t.focus(i)}static getFocusableSelectorString(t=""){return`button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t}, [href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t}, input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t}, select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t}, textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t}, [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t}, [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t}, .p-inputtext:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t}, .p-button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t}`}static getFocusableElements(t,i=""){let r=this.find(t,this.getFocusableSelectorString(i)),o=[];for(let s of r){let c=getComputedStyle(s);this.isVisible(s)&&c.display!="none"&&c.visibility!="hidden"&&o.push(s)}return o}static getFocusableElement(t,i=""){let r=this.findSingle(t,this.getFocusableSelectorString(i));if(r){let o=getComputedStyle(r);if(this.isVisible(r)&&o.display!="none"&&o.visibility!="hidden")return r}return null}static getFirstFocusableElement(t,i=""){let r=this.getFocusableElements(t,i);return r.length>0?r[0]:null}static getLastFocusableElement(t,i){let r=this.getFocusableElements(t,i);return r.length>0?r[r.length-1]:null}static getNextFocusableElement(t,i=!1){let r=n.getFocusableElements(t),o=0;if(r&&r.length>0){let s=r.indexOf(r[0].ownerDocument.activeElement);i?s==-1||s===0?o=r.length-1:o=s-1:s!=-1&&s!==r.length-1&&(o=s+1)}return r[o]}static generateZIndex(){return this.zindex=this.zindex||999,++this.zindex}static getSelection(){return window.getSelection?window.getSelection().toString():document.getSelection?document.getSelection().toString():document.selection?document.selection.createRange().text:null}static getTargetElement(t,i){if(!t)return null;switch(t){case"document":return document;case"window":return window;case"@next":return i?.nextElementSibling;case"@prev":return i?.previousElementSibling;case"@parent":return i?.parentElement;case"@grandparent":return i?.parentElement.parentElement;default:let r=typeof t;if(r==="string")return document.querySelector(t);if(r==="object"&&t.hasOwnProperty("nativeElement"))return this.isExist(t.nativeElement)?t.nativeElement:void 0;let s=(c=>!!(c&&c.constructor&&c.call&&c.apply))(t)?t():t;return s&&s.nodeType===9||this.isExist(s)?s:null}}static isClient(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}static getAttribute(t,i){if(t){let r=t.getAttribute(i);return isNaN(r)?r==="true"||r==="false"?r==="true":r:+r}}static calculateBodyScrollbarWidth(){return window.innerWidth-document.documentElement.offsetWidth}static blockBodyScroll(t="p-overflow-hidden"){document.body.style.setProperty("--scrollbar-width",this.calculateBodyScrollbarWidth()+"px"),this.addClass(document.body,t)}static unblockBodyScroll(t="p-overflow-hidden"){document.body.style.removeProperty("--scrollbar-width"),this.removeClass(document.body,t)}static createElement(t,i={},...r){if(t){let o=document.createElement(t);return this.setAttributes(o,i),o.append(...r),o}}static setAttribute(t,i="",r){this.isElement(t)&&r!==null&&r!==void 0&&t.setAttribute(i,r)}static setAttributes(t,i={}){if(this.isElement(t)){let r=(o,s)=>{let c=t?.$attrs?.[o]?[t?.$attrs?.[o]]:[];return[s].flat().reduce((h,g)=>{if(g!=null){let x=typeof g;if(x==="string"||x==="number")h.push(g);else if(x==="object"){let C=Array.isArray(g)?r(o,g):Object.entries(g).map(([A,k])=>o==="style"&&(k||k===0)?`${A.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}:${k}`:k?A:void 0);h=C.length?h.concat(C.filter(A=>!!A)):h}}return h},c)};Object.entries(i).forEach(([o,s])=>{if(s!=null){let c=o.match(/^on(.+)/);c?t.addEventListener(c[1].toLowerCase(),s):o==="pBind"?this.setAttributes(t,s):(s=o==="class"?[...new Set(r("class",s))].join(" ").trim():o==="style"?r("style",s).join(";").trim():s,(t.$attrs=t.$attrs||{})&&(t.$attrs[o]=s),t.setAttribute(o,s))}})}}static isFocusableElement(t,i=""){return this.isElement(t)?t.matches(`button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${i}, [href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${i}, input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${i}, select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${i}, textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${i}, [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${i}, [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${i}`):!1}}return n})(),vC=class{element;listener;scrollableParents;constructor(e,t=()=>{}){this.element=e,this.listener=t}bindScrollListener(){this.scrollableParents=Ft.getScrollableParents(this.element);for(let e=0;e{class n{autofocus=!1;focused=!1;platformId=ai(va);document=ai(Ln);host=ai(Ai);ngAfterContentChecked(){this.autofocus===!1?this.host.nativeElement.removeAttribute("autofocus"):this.host.nativeElement.setAttribute("autofocus",!0),this.focused||this.autoFocus()}ngAfterViewChecked(){this.focused||this.autoFocus()}autoFocus(){hl(this.platformId)&&this.autofocus&&setTimeout(()=>{let t=Ft.getFocusableElements(this.host?.nativeElement);t.length===0&&this.host.nativeElement.focus(),t.length>0&&t[0].focus(),this.focused=!0})}static \u0275fac=function(i){return new(i||n)};static \u0275dir=Ki({type:n,selectors:[["","pAutoFocus",""]],hostAttrs:[1,"p-element"],inputs:{autofocus:[2,"autofocus","autofocus",Ht]},standalone:!0,features:[Ir]})}return n})(),tx=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275mod=Oi({type:n});static \u0275inj=Mi({})}return n})();var _kt=["*"],Po=(()=>{class n{label;spin=!1;styleClass;role;ariaLabel;ariaHidden;ngOnInit(){this.getAttributes()}getAttributes(){let t=Mn.isEmpty(this.label);this.role=t?void 0:"img",this.ariaLabel=t?void 0:this.label,this.ariaHidden=t}getClassNames(){return`p-icon ${this.styleClass?this.styleClass+" ":""}${this.spin?"p-icon-spin":""}`}static \u0275fac=function(i){return new(i||n)};static \u0275cmp=Ct({type:n,selectors:[["ng-component"]],hostAttrs:[1,"p-element","p-icon-wrapper"],inputs:{label:"label",spin:[2,"spin","spin",Ht],styleClass:"styleClass"},standalone:!0,features:[Ir,Ot],ngContentSelectors:_kt,decls:1,vars:0,template:function(i,r){i&1&&(Yr(),Gn(0))},encapsulation:2,changeDetection:0})}return n})();var XT=(()=>{class n extends Po{pathId;ngOnInit(){this.pathId="url(#"+rl()+")"}static \u0275fac=(()=>{let t;return function(r){return(t||(t=Qn(n)))(r||n)}})();static \u0275cmp=Ct({type:n,selectors:[["SpinnerIcon"]],standalone:!0,features:[Li,Ot],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M6.99701 14C5.85441 13.999 4.72939 13.7186 3.72012 13.1832C2.71084 12.6478 1.84795 11.8737 1.20673 10.9284C0.565504 9.98305 0.165424 8.89526 0.041387 7.75989C-0.0826496 6.62453 0.073125 5.47607 0.495122 4.4147C0.917119 3.35333 1.59252 2.4113 2.46241 1.67077C3.33229 0.930247 4.37024 0.413729 5.4857 0.166275C6.60117 -0.0811796 7.76026 -0.0520535 8.86188 0.251112C9.9635 0.554278 10.9742 1.12227 11.8057 1.90555C11.915 2.01493 11.9764 2.16319 11.9764 2.31778C11.9764 2.47236 11.915 2.62062 11.8057 2.73C11.7521 2.78503 11.688 2.82877 11.6171 2.85864C11.5463 2.8885 11.4702 2.90389 11.3933 2.90389C11.3165 2.90389 11.2404 2.8885 11.1695 2.85864C11.0987 2.82877 11.0346 2.78503 10.9809 2.73C9.9998 1.81273 8.73246 1.26138 7.39226 1.16876C6.05206 1.07615 4.72086 1.44794 3.62279 2.22152C2.52471 2.99511 1.72683 4.12325 1.36345 5.41602C1.00008 6.70879 1.09342 8.08723 1.62775 9.31926C2.16209 10.5513 3.10478 11.5617 4.29713 12.1803C5.48947 12.7989 6.85865 12.988 8.17414 12.7157C9.48963 12.4435 10.6711 11.7264 11.5196 10.6854C12.3681 9.64432 12.8319 8.34282 12.8328 7C12.8328 6.84529 12.8943 6.69692 13.0038 6.58752C13.1132 6.47812 13.2616 6.41667 13.4164 6.41667C13.5712 6.41667 13.7196 6.47812 13.8291 6.58752C13.9385 6.69692 14 6.84529 14 7C14 8.85651 13.2622 10.637 11.9489 11.9497C10.6356 13.2625 8.85432 14 6.99701 14Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(i,r){i&1&&(Rr(),se(0,"svg",0)(1,"g"),bt(2,"path",1),ce(),se(3,"defs")(4,"clipPath",2),bt(5,"rect",3),ce()()()),i&2&&(vn(r.getClassNames()),Et("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role),Z(),Et("clip-path",r.pathId),Z(3),J("id",r.pathId))},encapsulation:2})}return n})();var ix=(()=>{class n{document;platformId;renderer;el;zone;config;constructor(t,i,r,o,s,c){this.document=t,this.platformId=i,this.renderer=r,this.el=o,this.zone=s,this.config=c}animationListener;mouseDownListener;timeout;ngAfterViewInit(){hl(this.platformId)&&this.config&&this.config.ripple&&this.zone.runOutsideAngular(()=>{this.create(),this.mouseDownListener=this.renderer.listen(this.el.nativeElement,"mousedown",this.onMouseDown.bind(this))})}onMouseDown(t){let i=this.getInk();if(!i||this.document.defaultView?.getComputedStyle(i,null).display==="none")return;if(Ft.removeClass(i,"p-ink-active"),!Ft.getHeight(i)&&!Ft.getWidth(i)){let c=Math.max(Ft.getOuterWidth(this.el.nativeElement),Ft.getOuterHeight(this.el.nativeElement));i.style.height=c+"px",i.style.width=c+"px"}let r=Ft.getOffset(this.el.nativeElement),o=t.pageX-r.left+this.document.body.scrollTop-Ft.getWidth(i)/2,s=t.pageY-r.top+this.document.body.scrollLeft-Ft.getHeight(i)/2;this.renderer.setStyle(i,"top",s+"px"),this.renderer.setStyle(i,"left",o+"px"),Ft.addClass(i,"p-ink-active"),this.timeout=setTimeout(()=>{let c=this.getInk();c&&Ft.removeClass(c,"p-ink-active")},401)}getInk(){let t=this.el.nativeElement.children;for(let i=0;i{class n{static \u0275fac=function(i){return new(i||n)};static \u0275mod=Oi({type:n});static \u0275inj=Mi({})}return n})();var vkt=["*"],LGe=n=>({class:n});function ykt(n,e){n&1&&Pn(0)}function bkt(n,e){if(n&1&&bt(0,"span",8),n&2){let t=le(3);J("ngClass",t.iconClass()),Et("aria-hidden",!0)("data-pc-section","loadingicon")}}function xkt(n,e){if(n&1&&bt(0,"SpinnerIcon",9),n&2){let t=le(3);J("styleClass",t.spinnerIconClass())("spin",!0),Et("aria-hidden",!0)("data-pc-section","loadingicon")}}function wkt(n,e){if(n&1&&(er(0),Ne(1,bkt,1,3,"span",6)(2,xkt,1,4,"SpinnerIcon",7),tr()),n&2){let t=le(2);Z(),J("ngIf",t.loadingIcon),Z(),J("ngIf",!t.loadingIcon)}}function Ckt(n,e){}function Skt(n,e){if(n&1&&Ne(0,Ckt,0,0,"ng-template",10),n&2){let t=le(2);J("ngIf",t.loadingIconTemplate)}}function Ekt(n,e){if(n&1&&(er(0),Ne(1,wkt,3,2,"ng-container",2)(2,Skt,1,1,null,5),tr()),n&2){let t=le();Z(),J("ngIf",!t.loadingIconTemplate),Z(),J("ngTemplateOutlet",t.loadingIconTemplate)("ngTemplateOutletContext",Tr(3,LGe,t.iconClass()))}}function Ikt(n,e){if(n&1&&bt(0,"span",8),n&2){let t=le(2);J("ngClass",t.iconClass()),Et("data-pc-section","icon")}}function Tkt(n,e){}function Akt(n,e){if(n&1&&Ne(0,Tkt,0,0,"ng-template",10),n&2){let t=le(2);J("ngIf",!t.icon&&t.iconTemplate)}}function Dkt(n,e){if(n&1&&(er(0),Ne(1,Ikt,1,2,"span",6)(2,Akt,1,1,null,5),tr()),n&2){let t=le();Z(),J("ngIf",t.icon&&!t.iconTemplate),Z(),J("ngTemplateOutlet",t.iconTemplate)("ngTemplateOutletContext",Tr(3,LGe,t.iconClass()))}}function kkt(n,e){if(n&1&&(se(0,"span",11),yt(1),ce()),n&2){let t=le();Et("aria-hidden",t.icon&&!t.label)("data-pc-section","label"),Z(),jn(t.label)}}function Mkt(n,e){if(n&1&&(se(0,"span",8),yt(1),ce()),n&2){let t=le();vn(t.badgeClass),J("ngClass",t.badgeStyleClass()),Et("data-pc-section","badge"),Z(),jn(t.badge)}}var eA={button:"p-button",component:"p-component",iconOnly:"p-button-icon-only",disabled:"p-disabled",loading:"p-button-loading",labelOnly:"p-button-loading-label-only"},Jne=(()=>{class n{el;document;iconPos="left";loadingIcon;get label(){return this._label}set label(t){this._label=t,this.initialized&&(this.updateLabel(),this.updateIcon(),this.setStyleClass())}get icon(){return this._icon}set icon(t){this._icon=t,this.initialized&&(this.updateIcon(),this.setStyleClass())}get loading(){return this._loading}set loading(t){this._loading=t,this.initialized&&(this.updateIcon(),this.setStyleClass())}severity;raised=!1;rounded=!1;text=!1;outlined=!1;size=null;plain=!1;_label;_icon;_loading=!1;initialized;get htmlElement(){return this.el.nativeElement}_internalClasses=Object.values(eA);constructor(t,i){this.el=t,this.document=i}ngAfterViewInit(){Ft.addMultipleClasses(this.htmlElement,this.getStyleClass().join(" ")),this.createIcon(),this.createLabel(),this.initialized=!0}getStyleClass(){let t=[eA.button,eA.component];return this.icon&&!this.label&&Mn.isEmpty(this.htmlElement.textContent)&&t.push(eA.iconOnly),this.loading&&(t.push(eA.disabled,eA.loading),!this.icon&&this.label&&t.push(eA.labelOnly),this.icon&&!this.label&&!Mn.isEmpty(this.htmlElement.textContent)&&t.push(eA.iconOnly)),this.text&&t.push("p-button-text"),this.severity&&t.push(`p-button-${this.severity}`),this.plain&&t.push("p-button-plain"),this.raised&&t.push("p-button-raised"),this.size&&t.push(`p-button-${this.size}`),this.outlined&&t.push("p-button-outlined"),this.rounded&&t.push("p-button-rounded"),this.size==="small"&&t.push("p-button-sm"),this.size==="large"&&t.push("p-button-lg"),t}setStyleClass(){let t=this.getStyleClass();this.htmlElement.classList.remove(...this._internalClasses),this.htmlElement.classList.add(...t)}createLabel(){if(!Ft.findSingle(this.htmlElement,".p-button-label")&&this.label){let i=this.document.createElement("span");this.icon&&!this.label&&i.setAttribute("aria-hidden","true"),i.className="p-button-label",i.appendChild(this.document.createTextNode(this.label)),this.htmlElement.appendChild(i)}}createIcon(){if(!Ft.findSingle(this.htmlElement,".p-button-icon")&&(this.icon||this.loading)){let i=this.document.createElement("span");i.className="p-button-icon",i.setAttribute("aria-hidden","true");let r=this.label?"p-button-icon-"+this.iconPos:null;r&&Ft.addClass(i,r);let o=this.getIconClass();o&&Ft.addMultipleClasses(i,o),this.htmlElement.insertBefore(i,this.htmlElement.firstChild)}}updateLabel(){let t=Ft.findSingle(this.htmlElement,".p-button-label");if(!this.label){t&&this.htmlElement.removeChild(t);return}t?t.textContent=this.label:this.createLabel()}updateIcon(){let t=Ft.findSingle(this.htmlElement,".p-button-icon"),i=Ft.findSingle(this.htmlElement,".p-button-label");t?this.iconPos?t.className="p-button-icon "+(i?"p-button-icon-"+this.iconPos:"")+" "+this.getIconClass():t.className="p-button-icon "+this.getIconClass():this.createIcon()}getIconClass(){return this.loading?"p-button-loading-icon pi-spin "+(this.loadingIcon??"pi pi-spinner"):this.icon||"p-hidden"}ngOnDestroy(){this.initialized=!1}static \u0275fac=function(i){return new(i||n)(oe(Ai),oe(Ln))};static \u0275dir=Ki({type:n,selectors:[["","pButton",""]],hostAttrs:[1,"p-element"],inputs:{iconPos:"iconPos",loadingIcon:"loadingIcon",label:"label",icon:"icon",loading:"loading",severity:"severity",raised:[2,"raised","raised",Ht],rounded:[2,"rounded","rounded",Ht],text:[2,"text","text",Ht],outlined:[2,"outlined","outlined",Ht],size:"size",plain:[2,"plain","plain",Ht]},standalone:!0,features:[Ir]})}return n})(),Okt=(()=>{class n{el;type="button";iconPos="left";icon;badge;label;disabled;loading=!1;loadingIcon;raised=!1;rounded=!1;text=!1;plain=!1;severity;outlined=!1;link=!1;tabindex;size;style;styleClass;badgeClass;ariaLabel;autofocus;onClick=new Kt;onFocus=new Kt;onBlur=new Kt;contentTemplate;loadingIconTemplate;iconTemplate;templates;constructor(t){this.el=t}spinnerIconClass(){return Object.entries(this.iconClass()).filter(([,t])=>!!t).reduce((t,[i])=>t+` ${i}`,"p-button-loading-icon")}iconClass(){let t={"p-button-icon":!0,"p-button-icon-left":this.iconPos==="left"&&this.label,"p-button-icon-right":this.iconPos==="right"&&this.label,"p-button-icon-top":this.iconPos==="top"&&this.label,"p-button-icon-bottom":this.iconPos==="bottom"&&this.label};return this.loading?t[`p-button-loading-icon pi-spin ${this.loadingIcon??""}`]=!0:this.icon&&(t[this.icon]=!0),t}get buttonClass(){return{"p-button p-component":!0,"p-button-icon-only":(this.icon||this.iconTemplate||this.loadingIcon||this.loadingIconTemplate)&&!this.label,"p-button-vertical":(this.iconPos==="top"||this.iconPos==="bottom")&&this.label,"p-button-loading":this.loading,"p-button-loading-label-only":this.loading&&!this.icon&&this.label&&!this.loadingIcon&&this.iconPos==="left","p-button-link":this.link,[`p-button-${this.severity}`]:this.severity,"p-button-raised":this.raised,"p-button-rounded":this.rounded,"p-button-text":this.text,"p-button-outlined":this.outlined,"p-button-sm":this.size==="small","p-button-lg":this.size==="large","p-button-plain":this.plain,[`${this.styleClass}`]:this.styleClass}}ngAfterContentInit(){this.templates?.forEach(t=>{switch(t.getType()){case"content":this.contentTemplate=t.template;break;case"icon":this.iconTemplate=t.template;break;case"loadingicon":this.loadingIconTemplate=t.template;break;default:this.contentTemplate=t.template;break}})}badgeStyleClass(){return{"p-badge p-component":!0,"p-badge-no-gutter":this.badge&&String(this.badge).length===1}}focus(){this.el.nativeElement.firstChild.focus()}static \u0275fac=function(i){return new(i||n)(oe(Ai))};static \u0275cmp=Ct({type:n,selectors:[["p-button"]],contentQueries:function(i,r,o){if(i&1&&gr(o,Ra,4),i&2){let s;Di(s=ki())&&(r.templates=s)}},hostAttrs:[1,"p-element"],hostVars:2,hostBindings:function(i,r){i&2&&$n("p-disabled",r.disabled)},inputs:{type:"type",iconPos:"iconPos",icon:"icon",badge:"badge",label:"label",disabled:[2,"disabled","disabled",Ht],loading:[2,"loading","loading",Ht],loadingIcon:"loadingIcon",raised:[2,"raised","raised",Ht],rounded:[2,"rounded","rounded",Ht],text:[2,"text","text",Ht],plain:[2,"plain","plain",Ht],severity:"severity",outlined:[2,"outlined","outlined",Ht],link:[2,"link","link",Ht],tabindex:[2,"tabindex","tabindex",xr],size:"size",style:"style",styleClass:"styleClass",badgeClass:"badgeClass",ariaLabel:"ariaLabel",autofocus:[2,"autofocus","autofocus",Ht]},outputs:{onClick:"onClick",onFocus:"onFocus",onBlur:"onBlur"},standalone:!0,features:[Ir,Ot],ngContentSelectors:vkt,decls:7,vars:14,consts:[["pRipple","","pAutoFocus","",3,"click","focus","blur","ngStyle","disabled","ngClass","autofocus"],[4,"ngTemplateOutlet"],[4,"ngIf"],["class","p-button-label",4,"ngIf"],[3,"ngClass","class",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngClass",4,"ngIf"],[3,"styleClass","spin",4,"ngIf"],[3,"ngClass"],[3,"styleClass","spin"],[3,"ngIf"],[1,"p-button-label"]],template:function(i,r){i&1&&(Yr(),se(0,"button",0),At("click",function(s){return r.onClick.emit(s)})("focus",function(s){return r.onFocus.emit(s)})("blur",function(s){return r.onBlur.emit(s)}),Gn(1),Ne(2,ykt,1,0,"ng-container",1)(3,Ekt,3,5,"ng-container",2)(4,Dkt,3,5,"ng-container",2)(5,kkt,2,3,"span",3)(6,Mkt,2,5,"span",4),ce()),i&2&&(J("ngStyle",r.style)("disabled",r.disabled||r.loading)("ngClass",r.buttonClass)("autofocus",r.autofocus),Et("type",r.type)("aria-label",r.ariaLabel)("data-pc-name","button")("data-pc-section","root")("tabindex",r.tabindex),Z(2),J("ngTemplateOutlet",r.contentTemplate),Z(),J("ngIf",r.loading),Z(),J("ngIf",!r.loading),Z(),J("ngIf",!r.contentTemplate&&r.label),Z(),J("ngIf",!r.contentTemplate&&r.badge))},dependencies:[Ul,Rs,Zc,Xa,ix,N_,XT],encapsulation:2,changeDetection:0})}return n})(),bR=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275mod=Oi({type:n});static \u0275inj=Mi({imports:[Okt,Hl]})}return n})();var LEe=(()=>{class n extends Po{static \u0275fac=(()=>{let t;return function(r){return(t||(t=Qn(n)))(r||n)}})();static \u0275cmp=Ct({type:n,selectors:[["ChevronLeftIcon"]],standalone:!0,features:[Li,Ot],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M9.61296 13C9.50997 13.0005 9.40792 12.9804 9.3128 12.9409C9.21767 12.9014 9.13139 12.8433 9.05902 12.7701L3.83313 7.54416C3.68634 7.39718 3.60388 7.19795 3.60388 6.99022C3.60388 6.78249 3.68634 6.58325 3.83313 6.43628L9.05902 1.21039C9.20762 1.07192 9.40416 0.996539 9.60724 1.00012C9.81032 1.00371 10.0041 1.08597 10.1477 1.22959C10.2913 1.37322 10.3736 1.56698 10.3772 1.77005C10.3808 1.97313 10.3054 2.16968 10.1669 2.31827L5.49496 6.99022L10.1669 11.6622C10.3137 11.8091 10.3962 12.0084 10.3962 12.2161C10.3962 12.4238 10.3137 12.6231 10.1669 12.7701C10.0945 12.8433 10.0083 12.9014 9.91313 12.9409C9.81801 12.9804 9.71596 13.0005 9.61296 13Z","fill","currentColor"]],template:function(i,r){i&1&&(Rr(),se(0,"svg",0),bt(1,"path",1),ce()),i&2&&(vn(r.getClassNames()),Et("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role))},encapsulation:2})}return n})();var BEe=(()=>{class n extends Po{static \u0275fac=(()=>{let t;return function(r){return(t||(t=Qn(n)))(r||n)}})();static \u0275cmp=Ct({type:n,selectors:[["ChevronRightIcon"]],standalone:!0,features:[Li,Ot],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M4.38708 13C4.28408 13.0005 4.18203 12.9804 4.08691 12.9409C3.99178 12.9014 3.9055 12.8433 3.83313 12.7701C3.68634 12.6231 3.60388 12.4238 3.60388 12.2161C3.60388 12.0084 3.68634 11.8091 3.83313 11.6622L8.50507 6.99022L3.83313 2.31827C3.69467 2.16968 3.61928 1.97313 3.62287 1.77005C3.62645 1.56698 3.70872 1.37322 3.85234 1.22959C3.99596 1.08597 4.18972 1.00371 4.3928 1.00012C4.59588 0.996539 4.79242 1.07192 4.94102 1.21039L10.1669 6.43628C10.3137 6.58325 10.3962 6.78249 10.3962 6.99022C10.3962 7.19795 10.3137 7.39718 10.1669 7.54416L4.94102 12.7701C4.86865 12.8433 4.78237 12.9014 4.68724 12.9409C4.59212 12.9804 4.49007 13.0005 4.38708 13Z","fill","currentColor"]],template:function(i,r){i&1&&(Rr(),se(0,"svg",0),bt(1,"path",1),ce()),i&2&&(vn(r.getClassNames()),Et("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role))},encapsulation:2})}return n})();var zEe=(()=>{class n extends Po{static \u0275fac=(()=>{let t;return function(r){return(t||(t=Qn(n)))(r||n)}})();static \u0275cmp=Ct({type:n,selectors:[["ChevronUpIcon"]],standalone:!0,features:[Li,Ot],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M12.2097 10.4113C12.1057 10.4118 12.0027 10.3915 11.9067 10.3516C11.8107 10.3118 11.7237 10.2532 11.6506 10.1792L6.93602 5.46461L2.22139 10.1476C2.07272 10.244 1.89599 10.2877 1.71953 10.2717C1.54307 10.2556 1.3771 10.1808 1.24822 10.0593C1.11933 9.93766 1.035 9.77633 1.00874 9.6011C0.982477 9.42587 1.0158 9.2469 1.10338 9.09287L6.37701 3.81923C6.52533 3.6711 6.72639 3.58789 6.93602 3.58789C7.14565 3.58789 7.3467 3.6711 7.49502 3.81923L12.7687 9.09287C12.9168 9.24119 13 9.44225 13 9.65187C13 9.8615 12.9168 10.0626 12.7687 10.2109C12.616 10.3487 12.4151 10.4207 12.2097 10.4113Z","fill","currentColor"]],template:function(i,r){i&1&&(Rr(),se(0,"svg",0),bt(1,"path",1),ce()),i&2&&(vn(r.getClassNames()),Et("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role))},encapsulation:2})}return n})();var E3=(()=>{class n extends Po{static \u0275fac=(()=>{let t;return function(r){return(t||(t=Qn(n)))(r||n)}})();static \u0275cmp=Ct({type:n,selectors:[["ChevronDownIcon"]],standalone:!0,features:[Li,Ot],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M7.01744 10.398C6.91269 10.3985 6.8089 10.378 6.71215 10.3379C6.61541 10.2977 6.52766 10.2386 6.45405 10.1641L1.13907 4.84913C1.03306 4.69404 0.985221 4.5065 1.00399 4.31958C1.02276 4.13266 1.10693 3.95838 1.24166 3.82747C1.37639 3.69655 1.55301 3.61742 1.74039 3.60402C1.92777 3.59062 2.11386 3.64382 2.26584 3.75424L7.01744 8.47394L11.769 3.75424C11.9189 3.65709 12.097 3.61306 12.2748 3.62921C12.4527 3.64535 12.6199 3.72073 12.7498 3.84328C12.8797 3.96582 12.9647 4.12842 12.9912 4.30502C13.0177 4.48162 12.9841 4.662 12.8958 4.81724L7.58083 10.1322C7.50996 10.2125 7.42344 10.2775 7.32656 10.3232C7.22968 10.3689 7.12449 10.3944 7.01744 10.398Z","fill","currentColor"]],template:function(i,r){i&1&&(Rr(),se(0,"svg",0),bt(1,"path",1),ce()),i&2&&(vn(r.getClassNames()),Et("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role))},encapsulation:2})}return n})();var P_=(()=>{class n extends Po{static \u0275fac=(()=>{let t;return function(r){return(t||(t=Qn(n)))(r||n)}})();static \u0275cmp=Ct({type:n,selectors:[["TimesIcon"]],standalone:!0,features:[Li,Ot],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M8.01186 7.00933L12.27 2.75116C12.341 2.68501 12.398 2.60524 12.4375 2.51661C12.4769 2.42798 12.4982 2.3323 12.4999 2.23529C12.5016 2.13827 12.4838 2.0419 12.4474 1.95194C12.4111 1.86197 12.357 1.78024 12.2884 1.71163C12.2198 1.64302 12.138 1.58893 12.0481 1.55259C11.9581 1.51625 11.8617 1.4984 11.7647 1.50011C11.6677 1.50182 11.572 1.52306 11.4834 1.56255C11.3948 1.60204 11.315 1.65898 11.2488 1.72997L6.99067 5.98814L2.7325 1.72997C2.59553 1.60234 2.41437 1.53286 2.22718 1.53616C2.03999 1.53946 1.8614 1.61529 1.72901 1.74767C1.59663 1.88006 1.5208 2.05865 1.5175 2.24584C1.5142 2.43303 1.58368 2.61419 1.71131 2.75116L5.96948 7.00933L1.71131 11.2675C1.576 11.403 1.5 11.5866 1.5 11.7781C1.5 11.9696 1.576 12.1532 1.71131 12.2887C1.84679 12.424 2.03043 12.5 2.2219 12.5C2.41338 12.5 2.59702 12.424 2.7325 12.2887L6.99067 8.03052L11.2488 12.2887C11.3843 12.424 11.568 12.5 11.7594 12.5C11.9509 12.5 12.1346 12.424 12.27 12.2887C12.4053 12.1532 12.4813 11.9696 12.4813 11.7781C12.4813 11.5866 12.4053 11.403 12.27 11.2675L8.01186 7.00933Z","fill","currentColor"]],template:function(i,r){i&1&&(Rr(),se(0,"svg",0),bt(1,"path",1),ce()),i&2&&(vn(r.getClassNames()),Et("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role))},encapsulation:2})}return n})();var VEe=(()=>{class n extends Po{static \u0275fac=(()=>{let t;return function(r){return(t||(t=Qn(n)))(r||n)}})();static \u0275cmp=Ct({type:n,selectors:[["CalendarIcon"]],standalone:!0,features:[Li,Ot],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M10.7838 1.51351H9.83783V0.567568C9.83783 0.417039 9.77804 0.272676 9.6716 0.166237C9.56516 0.0597971 9.42079 0 9.27027 0C9.11974 0 8.97538 0.0597971 8.86894 0.166237C8.7625 0.272676 8.7027 0.417039 8.7027 0.567568V1.51351H5.29729V0.567568C5.29729 0.417039 5.2375 0.272676 5.13106 0.166237C5.02462 0.0597971 4.88025 0 4.72973 0C4.5792 0 4.43484 0.0597971 4.3284 0.166237C4.22196 0.272676 4.16216 0.417039 4.16216 0.567568V1.51351H3.21621C2.66428 1.51351 2.13494 1.73277 1.74467 2.12305C1.35439 2.51333 1.13513 3.04266 1.13513 3.59459V11.9189C1.13513 12.4709 1.35439 13.0002 1.74467 13.3905C2.13494 13.7807 2.66428 14 3.21621 14H10.7838C11.3357 14 11.865 13.7807 12.2553 13.3905C12.6456 13.0002 12.8649 12.4709 12.8649 11.9189V3.59459C12.8649 3.04266 12.6456 2.51333 12.2553 2.12305C11.865 1.73277 11.3357 1.51351 10.7838 1.51351ZM3.21621 2.64865H4.16216V3.59459C4.16216 3.74512 4.22196 3.88949 4.3284 3.99593C4.43484 4.10237 4.5792 4.16216 4.72973 4.16216C4.88025 4.16216 5.02462 4.10237 5.13106 3.99593C5.2375 3.88949 5.29729 3.74512 5.29729 3.59459V2.64865H8.7027V3.59459C8.7027 3.74512 8.7625 3.88949 8.86894 3.99593C8.97538 4.10237 9.11974 4.16216 9.27027 4.16216C9.42079 4.16216 9.56516 4.10237 9.6716 3.99593C9.77804 3.88949 9.83783 3.74512 9.83783 3.59459V2.64865H10.7838C11.0347 2.64865 11.2753 2.74831 11.4527 2.92571C11.6301 3.10311 11.7297 3.34371 11.7297 3.59459V5.67568H2.27027V3.59459C2.27027 3.34371 2.36993 3.10311 2.54733 2.92571C2.72473 2.74831 2.96533 2.64865 3.21621 2.64865ZM10.7838 12.8649H3.21621C2.96533 12.8649 2.72473 12.7652 2.54733 12.5878C2.36993 12.4104 2.27027 12.1698 2.27027 11.9189V6.81081H11.7297V11.9189C11.7297 12.1698 11.6301 12.4104 11.4527 12.5878C11.2753 12.7652 11.0347 12.8649 10.7838 12.8649Z","fill","currentColor"]],template:function(i,r){i&1&&(Rr(),se(0,"svg",0),bt(1,"path",1),ce()),i&2&&(vn(r.getClassNames()),Et("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role))},encapsulation:2})}return n})();var Rkt=["container"],Nkt=["inputfield"],Pkt=["contentWrapper"],Fkt=[[["p-header"]],[["p-footer"]]],Lkt=["p-header","p-footer"],Bkt=(n,e,t,i,r)=>({"p-calendar":!0,"p-input-icon-right":n,"p-calendar-w-btn":e,"p-calendar-timeonly":t,"p-calendar-disabled":i,"p-focus":r}),zkt=n=>({clickCallBack:n}),Vkt=n=>({"p-datepicker-icon":n}),Ukt=(n,e,t,i,r,o)=>({"p-datepicker p-component":!0,"p-datepicker-inline":n,"p-disabled":e,"p-datepicker-timeonly":t,"p-datepicker-multiple-month":i,"p-datepicker-monthpicker":r,"p-datepicker-touch-ui":o}),zGe=(n,e)=>({showTransitionParams:n,hideTransitionParams:e}),jkt=n=>({value:"visibleTouchUI",params:n}),Hkt=n=>({value:"visible",params:n}),UEe=n=>({$implicit:n}),Gkt=(n,e)=>({"p-datepicker-other-month":n,"p-datepicker-today":e}),Ykt=(n,e)=>({"p-highlight p-datepicker-current-day":n,"p-disabled":e}),UGe=(n,e)=>({"p-highlight":n,"p-disabled":e}),VGe=n=>[n];function qkt(n,e){if(n&1){let t=Fi();se(0,"TimesIcon",11),At("click",function(){ht(t);let r=le(3);return pt(r.clear())}),ce()}n&2&&J("styleClass","p-calendar-clear-icon")}function $kt(n,e){}function Kkt(n,e){n&1&&Ne(0,$kt,0,0,"ng-template")}function Wkt(n,e){if(n&1){let t=Fi();se(0,"span",12),At("click",function(){ht(t);let r=le(3);return pt(r.clear())}),Ne(1,Kkt,1,0,null,13),ce()}if(n&2){let t=le(3);Z(),J("ngTemplateOutlet",t.clearIconTemplate)}}function Zkt(n,e){if(n&1&&(er(0),Ne(1,qkt,1,1,"TimesIcon",9)(2,Wkt,2,1,"span",10),tr()),n&2){let t=le(2);Z(),J("ngIf",!t.clearIconTemplate),Z(),J("ngIf",t.clearIconTemplate)}}function Qkt(n,e){if(n&1&&bt(0,"span",16),n&2){let t=le(3);J("ngClass",t.icon)}}function Xkt(n,e){n&1&&bt(0,"CalendarIcon")}function Jkt(n,e){}function eMt(n,e){n&1&&Ne(0,Jkt,0,0,"ng-template")}function tMt(n,e){if(n&1&&(er(0),Ne(1,Xkt,1,0,"CalendarIcon",7)(2,eMt,1,0,null,13),tr()),n&2){let t=le(3);Z(),J("ngIf",!t.triggerIconTemplate),Z(),J("ngTemplateOutlet",t.triggerIconTemplate)}}function iMt(n,e){if(n&1){let t=Fi();se(0,"button",14),At("click",function(r){ht(t),le();let o=_r(1),s=le();return pt(s.onButtonClick(r,o))}),Ne(1,Qkt,1,1,"span",15)(2,tMt,3,2,"ng-container",7),ce()}if(n&2){let t,i=le(2);J("disabled",i.disabled),Et("aria-label",i.iconButtonAriaLabel)("aria-expanded",(t=i.overlayVisible)!==null&&t!==void 0?t:!1)("aria-controls",i.overlayVisible?i.panelId:null),Z(),J("ngIf",i.icon),Z(),J("ngIf",!i.icon)}}function nMt(n,e){if(n&1){let t=Fi();se(0,"CalendarIcon",19),At("click",function(r){ht(t);let o=le(3);return pt(o.onButtonClick(r))}),ce()}if(n&2){let t=le(3);J("ngClass",Tr(1,Vkt,t.showOnFocus))}}function rMt(n,e){n&1&&Pn(0)}function oMt(n,e){if(n&1&&(er(0),Ne(1,nMt,1,3,"CalendarIcon",17)(2,rMt,1,0,"ng-container",18),tr()),n&2){let t=le(2);Z(),J("ngIf",!t.inputIconTemplate),Z(),J("ngTemplateOutlet",t.inputIconTemplate)("ngTemplateOutletContext",Tr(3,zkt,t.onButtonClick.bind(t)))}}function sMt(n,e){if(n&1){let t=Fi();se(0,"input",6,1),At("focus",function(r){ht(t);let o=le();return pt(o.onInputFocus(r))})("keydown",function(r){ht(t);let o=le();return pt(o.onInputKeydown(r))})("click",function(){ht(t);let r=le();return pt(r.onInputClick())})("blur",function(r){ht(t);let o=le();return pt(o.onInputBlur(r))})("input",function(r){ht(t);let o=le();return pt(o.onUserInput(r))}),ce(),Ne(2,Zkt,3,2,"ng-container",7)(3,iMt,3,6,"button",8)(4,oMt,3,5,"ng-container",7)}if(n&2){let t,i=le();vn(i.inputStyleClass),J("value",i.inputFieldValue)("readonly",i.readonlyInput)("ngStyle",i.inputStyle)("placeholder",i.placeholder||"")("disabled",i.disabled)("ngClass",i.inputClass)("autofocus",i.autofocus),Et("id",i.inputId)("name",i.name)("required",i.required)("aria-required",i.required)("aria-expanded",(t=i.overlayVisible)!==null&&t!==void 0?t:!1)("aria-controls",i.overlayVisible?i.panelId:null)("aria-labelledby",i.ariaLabelledBy)("aria-label",i.ariaLabel)("tabindex",i.tabindex)("inputmode",i.touchUI?"off":null),Z(2),J("ngIf",i.showClear&&!i.disabled&&i.value!=null),Z(),J("ngIf",i.showIcon&&i.iconDisplay==="button"),Z(),J("ngIf",i.iconDisplay==="input"&&i.showIcon)}}function aMt(n,e){n&1&&Pn(0)}function lMt(n,e){n&1&&bt(0,"ChevronLeftIcon",40),n&2&&J("styleClass","p-datepicker-prev-icon")}function cMt(n,e){}function uMt(n,e){n&1&&Ne(0,cMt,0,0,"ng-template")}function dMt(n,e){if(n&1&&(se(0,"span",41),Ne(1,uMt,1,0,null,13),ce()),n&2){let t=le(5);Z(),J("ngTemplateOutlet",t.previousIconTemplate)}}function hMt(n,e){if(n&1){let t=Fi();se(0,"button",38),At("keydown",function(r){ht(t);let o=le(4);return pt(o.onContainerButtonKeydown(r))})("click",function(r){ht(t);let o=le(4);return pt(o.onPrevButtonClick(r))}),Ne(1,lMt,1,1,"ChevronLeftIcon",35)(2,dMt,2,1,"span",39),ce()}if(n&2){let t=le(4);Et("aria-label",t.prevIconAriaLabel),Z(),J("ngIf",!t.previousIconTemplate),Z(),J("ngIf",t.previousIconTemplate)}}function pMt(n,e){if(n&1){let t=Fi();se(0,"button",42),At("click",function(r){ht(t);let o=le(4);return pt(o.switchToMonthView(r))})("keydown",function(r){ht(t);let o=le(4);return pt(o.onContainerButtonKeydown(r))}),yt(1),ce()}if(n&2){let t=le().$implicit,i=le(3);J("disabled",i.switchViewButtonDisabled()),Et("aria-label",i.getTranslation("chooseMonth")),Z(),ps(" ",i.getMonthName(t.month)," ")}}function fMt(n,e){if(n&1){let t=Fi();se(0,"button",43),At("click",function(r){ht(t);let o=le(4);return pt(o.switchToYearView(r))})("keydown",function(r){ht(t);let o=le(4);return pt(o.onContainerButtonKeydown(r))}),yt(1),ce()}if(n&2){let t=le().$implicit,i=le(3);J("disabled",i.switchViewButtonDisabled()),Et("aria-label",i.getTranslation("chooseYear")),Z(),ps(" ",i.getYear(t)," ")}}function mMt(n,e){if(n&1&&(er(0),yt(1),tr()),n&2){let t=le(5);Z(),nH("",t.yearPickerValues()[0]," - ",t.yearPickerValues()[t.yearPickerValues().length-1],"")}}function gMt(n,e){n&1&&Pn(0)}function _Mt(n,e){if(n&1&&(se(0,"span",44),Ne(1,mMt,2,2,"ng-container",7)(2,gMt,1,0,"ng-container",18),ce()),n&2){let t=le(4);Z(),J("ngIf",!t.decadeTemplate),Z(),J("ngTemplateOutlet",t.decadeTemplate)("ngTemplateOutletContext",Tr(3,UEe,t.yearPickerValues))}}function vMt(n,e){n&1&&bt(0,"ChevronRightIcon",40),n&2&&J("styleClass","p-datepicker-next-icon")}function yMt(n,e){}function bMt(n,e){n&1&&Ne(0,yMt,0,0,"ng-template")}function xMt(n,e){if(n&1&&(se(0,"span",45),Ne(1,bMt,1,0,null,13),ce()),n&2){let t=le(4);Z(),J("ngTemplateOutlet",t.nextIconTemplate)}}function wMt(n,e){if(n&1&&(se(0,"th",51)(1,"span"),yt(2),ce()()),n&2){let t=le(5);Z(2),jn(t.getTranslation("weekHeader"))}}function CMt(n,e){if(n&1&&(se(0,"th",52)(1,"span"),yt(2),ce()()),n&2){let t=e.$implicit;Z(2),jn(t)}}function SMt(n,e){if(n&1&&(se(0,"td",55)(1,"span",56),yt(2),ce()()),n&2){let t=le().index,i=le(2).$implicit;Z(2),ps(" ",i.weekNumbers[t]," ")}}function EMt(n,e){if(n&1&&(er(0),yt(1),tr()),n&2){let t=le(2).$implicit;Z(),jn(t.day)}}function IMt(n,e){n&1&&Pn(0)}function TMt(n,e){if(n&1&&(er(0),Ne(1,IMt,1,0,"ng-container",18),tr()),n&2){let t=le(2).$implicit,i=le(6);Z(),J("ngTemplateOutlet",i.dateTemplate)("ngTemplateOutletContext",Tr(2,UEe,t))}}function AMt(n,e){n&1&&Pn(0)}function DMt(n,e){if(n&1&&(er(0),Ne(1,AMt,1,0,"ng-container",18),tr()),n&2){let t=le(2).$implicit,i=le(6);Z(),J("ngTemplateOutlet",i.disabledDateTemplate)("ngTemplateOutletContext",Tr(2,UEe,t))}}function kMt(n,e){if(n&1&&(se(0,"div",59),yt(1),ce()),n&2){let t=le(2).$implicit;Z(),ps(" ",t.day," ")}}function MMt(n,e){if(n&1){let t=Fi();er(0),se(1,"span",57),At("click",function(r){ht(t);let o=le().$implicit,s=le(6);return pt(s.onDateSelect(r,o))})("keydown",function(r){ht(t);let o=le().$implicit,s=le(3).index,c=le(3);return pt(c.onDateCellKeydown(r,o,s))}),Ne(2,EMt,2,1,"ng-container",7)(3,TMt,2,4,"ng-container",7)(4,DMt,2,4,"ng-container",7),ce(),Ne(5,kMt,2,1,"div",58),tr()}if(n&2){let t=le().$implicit,i=le(6);Z(),J("ngClass",ha(6,Ykt,i.isSelected(t)&&t.selectable,!t.selectable)),Et("data-date",i.formatDateKey(i.formatDateMetaToDate(t))),Z(),J("ngIf",!i.dateTemplate&&(t.selectable||!i.disabledDateTemplate)),Z(),J("ngIf",t.selectable||!i.disabledDateTemplate),Z(),J("ngIf",!t.selectable),Z(),J("ngIf",i.isSelected(t))}}function OMt(n,e){if(n&1&&(se(0,"td",16),Ne(1,MMt,6,9,"ng-container",7),ce()),n&2){let t=e.$implicit,i=le(6);J("ngClass",ha(3,Gkt,t.otherMonth,t.today)),Et("aria-label",t.day),Z(),J("ngIf",t.otherMonth?i.showOtherMonths:!0)}}function RMt(n,e){if(n&1&&(se(0,"tr"),Ne(1,SMt,3,1,"td",53)(2,OMt,2,6,"td",54),ce()),n&2){let t=e.$implicit,i=le(5);Z(),J("ngIf",i.showWeek),Z(),J("ngForOf",t)}}function NMt(n,e){if(n&1&&(se(0,"div",46)(1,"table",47)(2,"thead")(3,"tr"),Ne(4,wMt,3,1,"th",48)(5,CMt,3,1,"th",49),ce()(),se(6,"tbody"),Ne(7,RMt,3,2,"tr",50),ce()()()),n&2){let t=le().$implicit,i=le(3);Z(4),J("ngIf",i.showWeek),Z(),J("ngForOf",i.weekDays),Z(2),J("ngForOf",t.dates)}}function PMt(n,e){if(n&1){let t=Fi();se(0,"div",27)(1,"div",28),Ne(2,hMt,3,3,"button",29),se(3,"div",30),Ne(4,pMt,2,3,"button",31)(5,fMt,2,3,"button",32)(6,_Mt,3,5,"span",33),ce(),se(7,"button",34),At("keydown",function(r){ht(t);let o=le(3);return pt(o.onContainerButtonKeydown(r))})("click",function(r){ht(t);let o=le(3);return pt(o.onNextButtonClick(r))}),Ne(8,vMt,1,1,"ChevronRightIcon",35)(9,xMt,2,1,"span",36),ce()(),Ne(10,NMt,8,3,"div",37),ce()}if(n&2){let t=e.index,i=le(3);Z(2),J("ngIf",t===0),Z(2),J("ngIf",i.currentView==="date"),Z(),J("ngIf",i.currentView!=="year"),Z(),J("ngIf",i.currentView==="year"),Z(),ld("display",i.numberOfMonths===1||t===i.numberOfMonths-1?"inline-flex":"none"),Et("aria-label",i.nextIconAriaLabel),Z(),J("ngIf",!i.nextIconTemplate),Z(),J("ngIf",i.nextIconTemplate),Z(),J("ngIf",i.currentView==="date")}}function FMt(n,e){if(n&1&&(se(0,"div",59),yt(1),ce()),n&2){let t=le().$implicit;Z(),ps(" ",t," ")}}function LMt(n,e){if(n&1){let t=Fi();se(0,"span",62),At("click",function(r){let o=ht(t).index,s=le(4);return pt(s.onMonthSelect(r,o))})("keydown",function(r){let o=ht(t).index,s=le(4);return pt(s.onMonthCellKeydown(r,o))}),yt(1),Ne(2,FMt,2,1,"div",58),ce()}if(n&2){let t=e.$implicit,i=e.index,r=le(4);J("ngClass",ha(3,UGe,r.isMonthSelected(i),r.isMonthDisabled(i))),Z(),ps(" ",t," "),Z(),J("ngIf",r.isMonthSelected(i))}}function BMt(n,e){if(n&1&&(se(0,"div",60),Ne(1,LMt,3,6,"span",61),ce()),n&2){let t=le(3);Z(),J("ngForOf",t.monthPickerValues())}}function zMt(n,e){if(n&1&&(se(0,"div",59),yt(1),ce()),n&2){let t=le().$implicit;Z(),ps(" ",t," ")}}function VMt(n,e){if(n&1){let t=Fi();se(0,"span",65),At("click",function(r){let o=ht(t).$implicit,s=le(4);return pt(s.onYearSelect(r,o))})("keydown",function(r){let o=ht(t).$implicit,s=le(4);return pt(s.onYearCellKeydown(r,o))}),yt(1),Ne(2,zMt,2,1,"div",58),ce()}if(n&2){let t=e.$implicit,i=le(4);J("ngClass",ha(3,UGe,i.isYearSelected(t),i.isYearDisabled(t))),Z(),ps(" ",t," "),Z(),J("ngIf",i.isYearSelected(t))}}function UMt(n,e){if(n&1&&(se(0,"div",63),Ne(1,VMt,3,6,"span",64),ce()),n&2){let t=le(3);Z(),J("ngForOf",t.yearPickerValues())}}function jMt(n,e){if(n&1&&(er(0),se(1,"div",23),Ne(2,PMt,11,10,"div",24),ce(),Ne(3,BMt,2,1,"div",25)(4,UMt,2,1,"div",26),tr()),n&2){let t=le(2);Z(2),J("ngForOf",t.months),Z(),J("ngIf",t.currentView==="month"),Z(),J("ngIf",t.currentView==="year")}}function HMt(n,e){n&1&&bt(0,"ChevronUpIcon")}function GMt(n,e){}function YMt(n,e){n&1&&Ne(0,GMt,0,0,"ng-template")}function qMt(n,e){n&1&&(er(0),yt(1,"0"),tr())}function $Mt(n,e){n&1&&bt(0,"ChevronDownIcon")}function KMt(n,e){}function WMt(n,e){n&1&&Ne(0,KMt,0,0,"ng-template")}function ZMt(n,e){n&1&&bt(0,"ChevronUpIcon")}function QMt(n,e){}function XMt(n,e){n&1&&Ne(0,QMt,0,0,"ng-template")}function JMt(n,e){n&1&&(er(0),yt(1,"0"),tr())}function eOt(n,e){n&1&&bt(0,"ChevronDownIcon")}function tOt(n,e){}function iOt(n,e){n&1&&Ne(0,tOt,0,0,"ng-template")}function nOt(n,e){if(n&1&&(se(0,"div",69)(1,"span"),yt(2),ce()()),n&2){let t=le(3);Z(2),jn(t.timeSeparator)}}function rOt(n,e){n&1&&bt(0,"ChevronUpIcon")}function oOt(n,e){}function sOt(n,e){n&1&&Ne(0,oOt,0,0,"ng-template")}function aOt(n,e){n&1&&(er(0),yt(1,"0"),tr())}function lOt(n,e){n&1&&bt(0,"ChevronDownIcon")}function cOt(n,e){}function uOt(n,e){n&1&&Ne(0,cOt,0,0,"ng-template")}function dOt(n,e){if(n&1){let t=Fi();se(0,"div",74)(1,"button",68),At("keydown",function(r){ht(t);let o=le(3);return pt(o.onContainerButtonKeydown(r))})("keydown.enter",function(r){ht(t);let o=le(3);return pt(o.incrementSecond(r))})("keydown.space",function(r){ht(t);let o=le(3);return pt(o.incrementSecond(r))})("mousedown",function(r){ht(t);let o=le(3);return pt(o.onTimePickerElementMouseDown(r,2,1))})("mouseup",function(r){ht(t);let o=le(3);return pt(o.onTimePickerElementMouseUp(r))})("keyup.enter",function(r){ht(t);let o=le(3);return pt(o.onTimePickerElementMouseUp(r))})("keyup.space",function(r){ht(t);let o=le(3);return pt(o.onTimePickerElementMouseUp(r))})("mouseleave",function(){ht(t);let r=le(3);return pt(r.onTimePickerElementMouseLeave())}),Ne(2,rOt,1,0,"ChevronUpIcon",7)(3,sOt,1,0,null,13),ce(),se(4,"span"),Ne(5,aOt,2,0,"ng-container",7),yt(6),ce(),se(7,"button",68),At("keydown",function(r){ht(t);let o=le(3);return pt(o.onContainerButtonKeydown(r))})("keydown.enter",function(r){ht(t);let o=le(3);return pt(o.decrementSecond(r))})("keydown.space",function(r){ht(t);let o=le(3);return pt(o.decrementSecond(r))})("mousedown",function(r){ht(t);let o=le(3);return pt(o.onTimePickerElementMouseDown(r,2,-1))})("mouseup",function(r){ht(t);let o=le(3);return pt(o.onTimePickerElementMouseUp(r))})("keyup.enter",function(r){ht(t);let o=le(3);return pt(o.onTimePickerElementMouseUp(r))})("keyup.space",function(r){ht(t);let o=le(3);return pt(o.onTimePickerElementMouseUp(r))})("mouseleave",function(){ht(t);let r=le(3);return pt(r.onTimePickerElementMouseLeave())}),Ne(8,lOt,1,0,"ChevronDownIcon",7)(9,uOt,1,0,null,13),ce()()}if(n&2){let t=le(3);Z(),Et("aria-label",t.getTranslation("nextSecond")),Z(),J("ngIf",!t.incrementIconTemplate),Z(),J("ngTemplateOutlet",t.incrementIconTemplate),Z(2),J("ngIf",t.currentSecond<10),Z(),jn(t.currentSecond),Z(),Et("aria-label",t.getTranslation("prevSecond")),Z(),J("ngIf",!t.decrementIconTemplate),Z(),J("ngTemplateOutlet",t.decrementIconTemplate)}}function hOt(n,e){n&1&&bt(0,"ChevronUpIcon")}function pOt(n,e){}function fOt(n,e){n&1&&Ne(0,pOt,0,0,"ng-template")}function mOt(n,e){n&1&&bt(0,"ChevronDownIcon")}function gOt(n,e){}function _Ot(n,e){n&1&&Ne(0,gOt,0,0,"ng-template")}function vOt(n,e){if(n&1){let t=Fi();se(0,"div",75)(1,"button",76),At("keydown",function(r){ht(t);let o=le(3);return pt(o.onContainerButtonKeydown(r))})("click",function(r){ht(t);let o=le(3);return pt(o.toggleAMPM(r))})("keydown.enter",function(r){ht(t);let o=le(3);return pt(o.toggleAMPM(r))}),Ne(2,hOt,1,0,"ChevronUpIcon",7)(3,fOt,1,0,null,13),ce(),se(4,"span"),yt(5),ce(),se(6,"button",76),At("keydown",function(r){ht(t);let o=le(3);return pt(o.onContainerButtonKeydown(r))})("click",function(r){ht(t);let o=le(3);return pt(o.toggleAMPM(r))})("keydown.enter",function(r){ht(t);let o=le(3);return pt(o.toggleAMPM(r))}),Ne(7,mOt,1,0,"ChevronDownIcon",7)(8,_Ot,1,0,null,13),ce()()}if(n&2){let t=le(3);Z(),Et("aria-label",t.getTranslation("am")),Z(),J("ngIf",!t.incrementIconTemplate),Z(),J("ngTemplateOutlet",t.incrementIconTemplate),Z(2),jn(t.pm?"PM":"AM"),Z(),Et("aria-label",t.getTranslation("pm")),Z(),J("ngIf",!t.decrementIconTemplate),Z(),J("ngTemplateOutlet",t.decrementIconTemplate)}}function yOt(n,e){if(n&1){let t=Fi();se(0,"div",66)(1,"div",67)(2,"button",68),At("keydown",function(r){ht(t);let o=le(2);return pt(o.onContainerButtonKeydown(r))})("keydown.enter",function(r){ht(t);let o=le(2);return pt(o.incrementHour(r))})("keydown.space",function(r){ht(t);let o=le(2);return pt(o.incrementHour(r))})("mousedown",function(r){ht(t);let o=le(2);return pt(o.onTimePickerElementMouseDown(r,0,1))})("mouseup",function(r){ht(t);let o=le(2);return pt(o.onTimePickerElementMouseUp(r))})("keyup.enter",function(r){ht(t);let o=le(2);return pt(o.onTimePickerElementMouseUp(r))})("keyup.space",function(r){ht(t);let o=le(2);return pt(o.onTimePickerElementMouseUp(r))})("mouseleave",function(){ht(t);let r=le(2);return pt(r.onTimePickerElementMouseLeave())}),Ne(3,HMt,1,0,"ChevronUpIcon",7)(4,YMt,1,0,null,13),ce(),se(5,"span"),Ne(6,qMt,2,0,"ng-container",7),yt(7),ce(),se(8,"button",68),At("keydown",function(r){ht(t);let o=le(2);return pt(o.onContainerButtonKeydown(r))})("keydown.enter",function(r){ht(t);let o=le(2);return pt(o.decrementHour(r))})("keydown.space",function(r){ht(t);let o=le(2);return pt(o.decrementHour(r))})("mousedown",function(r){ht(t);let o=le(2);return pt(o.onTimePickerElementMouseDown(r,0,-1))})("mouseup",function(r){ht(t);let o=le(2);return pt(o.onTimePickerElementMouseUp(r))})("keyup.enter",function(r){ht(t);let o=le(2);return pt(o.onTimePickerElementMouseUp(r))})("keyup.space",function(r){ht(t);let o=le(2);return pt(o.onTimePickerElementMouseUp(r))})("mouseleave",function(){ht(t);let r=le(2);return pt(r.onTimePickerElementMouseLeave())}),Ne(9,$Mt,1,0,"ChevronDownIcon",7)(10,WMt,1,0,null,13),ce()(),se(11,"div",69)(12,"span"),yt(13),ce()(),se(14,"div",70)(15,"button",68),At("keydown",function(r){ht(t);let o=le(2);return pt(o.onContainerButtonKeydown(r))})("keydown.enter",function(r){ht(t);let o=le(2);return pt(o.incrementMinute(r))})("keydown.space",function(r){ht(t);let o=le(2);return pt(o.incrementMinute(r))})("mousedown",function(r){ht(t);let o=le(2);return pt(o.onTimePickerElementMouseDown(r,1,1))})("mouseup",function(r){ht(t);let o=le(2);return pt(o.onTimePickerElementMouseUp(r))})("keyup.enter",function(r){ht(t);let o=le(2);return pt(o.onTimePickerElementMouseUp(r))})("keyup.space",function(r){ht(t);let o=le(2);return pt(o.onTimePickerElementMouseUp(r))})("mouseleave",function(){ht(t);let r=le(2);return pt(r.onTimePickerElementMouseLeave())}),Ne(16,ZMt,1,0,"ChevronUpIcon",7)(17,XMt,1,0,null,13),ce(),se(18,"span"),Ne(19,JMt,2,0,"ng-container",7),yt(20),ce(),se(21,"button",68),At("keydown",function(r){ht(t);let o=le(2);return pt(o.onContainerButtonKeydown(r))})("keydown.enter",function(r){ht(t);let o=le(2);return pt(o.decrementMinute(r))})("keydown.space",function(r){ht(t);let o=le(2);return pt(o.decrementMinute(r))})("mousedown",function(r){ht(t);let o=le(2);return pt(o.onTimePickerElementMouseDown(r,1,-1))})("mouseup",function(r){ht(t);let o=le(2);return pt(o.onTimePickerElementMouseUp(r))})("keyup.enter",function(r){ht(t);let o=le(2);return pt(o.onTimePickerElementMouseUp(r))})("keyup.space",function(r){ht(t);let o=le(2);return pt(o.onTimePickerElementMouseUp(r))})("mouseleave",function(){ht(t);let r=le(2);return pt(r.onTimePickerElementMouseLeave())}),Ne(22,eOt,1,0,"ChevronDownIcon",7)(23,iOt,1,0,null,13),ce()(),Ne(24,nOt,3,1,"div",71)(25,dOt,10,8,"div",72)(26,vOt,9,7,"div",73),ce()}if(n&2){let t=le(2);Z(2),Et("aria-label",t.getTranslation("nextHour")),Z(),J("ngIf",!t.incrementIconTemplate),Z(),J("ngTemplateOutlet",t.incrementIconTemplate),Z(2),J("ngIf",t.currentHour<10),Z(),jn(t.currentHour),Z(),Et("aria-label",t.getTranslation("prevHour")),Z(),J("ngIf",!t.decrementIconTemplate),Z(),J("ngTemplateOutlet",t.decrementIconTemplate),Z(3),jn(t.timeSeparator),Z(2),Et("aria-label",t.getTranslation("nextMinute")),Z(),J("ngIf",!t.incrementIconTemplate),Z(),J("ngTemplateOutlet",t.incrementIconTemplate),Z(2),J("ngIf",t.currentMinute<10),Z(),jn(t.currentMinute),Z(),Et("aria-label",t.getTranslation("prevMinute")),Z(),J("ngIf",!t.decrementIconTemplate),Z(),J("ngTemplateOutlet",t.decrementIconTemplate),Z(),J("ngIf",t.showSeconds),Z(),J("ngIf",t.showSeconds),Z(),J("ngIf",t.hourFormat=="12")}}function bOt(n,e){if(n&1){let t=Fi();se(0,"div",77)(1,"button",78),At("keydown",function(r){ht(t);let o=le(2);return pt(o.onContainerButtonKeydown(r))})("click",function(r){ht(t);let o=le(2);return pt(o.onTodayButtonClick(r))}),ce(),se(2,"button",78),At("keydown",function(r){ht(t);let o=le(2);return pt(o.onContainerButtonKeydown(r))})("click",function(r){ht(t);let o=le(2);return pt(o.onClearButtonClick(r))}),ce()()}if(n&2){let t=le(2);Z(),J("label",t.getTranslation("today"))("ngClass",Tr(4,VGe,t.todayButtonStyleClass)),Z(),J("label",t.getTranslation("clear"))("ngClass",Tr(6,VGe,t.clearButtonStyleClass))}}function xOt(n,e){n&1&&Pn(0)}function wOt(n,e){if(n&1){let t=Fi();se(0,"div",20,2),At("@overlayAnimation.start",function(r){ht(t);let o=le();return pt(o.onOverlayAnimationStart(r))})("@overlayAnimation.done",function(r){ht(t);let o=le();return pt(o.onOverlayAnimationDone(r))})("click",function(r){ht(t);let o=le();return pt(o.onOverlayClick(r))}),Gn(2),Ne(3,aMt,1,0,"ng-container",13)(4,jMt,5,3,"ng-container",7)(5,yOt,27,20,"div",21)(6,bOt,3,8,"div",22),Gn(7,1),Ne(8,xOt,1,0,"ng-container",13),ce()}if(n&2){let t=le();vn(t.panelStyleClass),J("ngStyle",t.panelStyle)("ngClass",cO(15,Ukt,t.inline,t.disabled,t.timeOnly,t.numberOfMonths>1,t.view==="month",t.touchUI))("@overlayAnimation",t.touchUI?Tr(25,jkt,ha(22,zGe,t.showTransitionOptions,t.hideTransitionOptions)):Tr(30,Hkt,ha(27,zGe,t.showTransitionOptions,t.hideTransitionOptions)))("@.disabled",t.inline===!0),Et("id",t.panelId)("aria-label",t.getTranslation("chooseDate"))("role",t.inline?null:"dialog")("aria-modal",t.inline?null:"true"),Z(3),J("ngTemplateOutlet",t.headerTemplate),Z(),J("ngIf",!t.timeOnly),Z(),J("ngIf",(t.showTime||t.timeOnly)&&t.currentView==="date"),Z(),J("ngIf",t.showButtonBar),Z(2),J("ngTemplateOutlet",t.footerTemplate)}}var COt={provide:Bu,useExisting:ka(()=>SOt),multi:!0},SOt=(()=>{class n{document;el;renderer;cd;zone;config;overlayService;iconDisplay="button";style;styleClass;inputStyle;inputId;name;inputStyleClass;placeholder;ariaLabelledBy;ariaLabel;iconAriaLabel;disabled;dateFormat;multipleSeparator=",";rangeSeparator="-";inline=!1;showOtherMonths=!0;selectOtherMonths;showIcon;icon;appendTo;readonlyInput;shortYearCutoff="+10";monthNavigator;yearNavigator;hourFormat="24";timeOnly;stepYearPicker=10;stepHour=1;stepMinute=1;stepSecond=1;showSeconds=!1;required;showOnFocus=!0;showWeek=!1;startWeekFromFirstDayOfYear=!1;showClear=!1;dataType="date";selectionMode="single";maxDateCount;showButtonBar;todayButtonStyleClass="p-button-text";clearButtonStyleClass="p-button-text";autofocus;autoZIndex=!0;baseZIndex=0;panelStyleClass;panelStyle;keepInvalid=!1;hideOnDateTimeSelect=!0;touchUI;timeSeparator=":";focusTrap=!0;showTransitionOptions=".12s cubic-bezier(0, 0, 0.2, 1)";hideTransitionOptions=".1s linear";tabindex;variant="outlined";get minDate(){return this._minDate}set minDate(t){this._minDate=t,this.currentMonth!=null&&this.currentMonth!=null&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=t,this.currentMonth!=null&&this.currentMonth!=null&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get disabledDates(){return this._disabledDates}set disabledDates(t){this._disabledDates=t,this.currentMonth!=null&&this.currentMonth!=null&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get disabledDays(){return this._disabledDays}set disabledDays(t){this._disabledDays=t,this.currentMonth!=null&&this.currentMonth!=null&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get yearRange(){return this._yearRange}set yearRange(t){if(this._yearRange=t,t){let i=t.split(":"),r=parseInt(i[0]),o=parseInt(i[1]);this.populateYearOptions(r,o)}}get showTime(){return this._showTime}set showTime(t){this._showTime=t,this.currentHour===void 0&&this.initTime(this.value||new Date),this.updateInputfield()}get responsiveOptions(){return this._responsiveOptions}set responsiveOptions(t){this._responsiveOptions=t,this.destroyResponsiveStyleElement(),this.createResponsiveStyle()}get numberOfMonths(){return this._numberOfMonths}set numberOfMonths(t){this._numberOfMonths=t,this.destroyResponsiveStyleElement(),this.createResponsiveStyle()}get firstDayOfWeek(){return this._firstDayOfWeek}set firstDayOfWeek(t){this._firstDayOfWeek=t,this.createWeekDays()}set locale(t){console.warn("Locale property has no effect, use new i18n API instead.")}get view(){return this._view}set view(t){this._view=t,this.currentView=this._view}get defaultDate(){return this._defaultDate}set defaultDate(t){if(this._defaultDate=t,this.initialized){let i=t||new Date;this.currentMonth=i.getMonth(),this.currentYear=i.getFullYear(),this.initTime(i),this.createMonths(this.currentMonth,this.currentYear)}}get inputClass(){return{"p-inputtext p-component":!0,"p-variant-filled":this.variant==="filled"||this.config.inputStyle()==="filled"}}onFocus=new Kt;onBlur=new Kt;onClose=new Kt;onSelect=new Kt;onClear=new Kt;onInput=new Kt;onTodayClick=new Kt;onClearClick=new Kt;onMonthChange=new Kt;onYearChange=new Kt;onClickOutside=new Kt;onShow=new Kt;templates;containerViewChild;inputfieldViewChild;set content(t){this.contentViewChild=t,this.contentViewChild&&(this.isMonthNavigate?(Promise.resolve(null).then(()=>this.updateFocus()),this.isMonthNavigate=!1):!this.focus&&!this.inline&&this.initFocusableCell())}contentViewChild;value;dates;months;weekDays;currentMonth;currentYear;currentHour;currentMinute;currentSecond;pm;mask;maskClickListener;overlay;responsiveStyleElement;overlayVisible;onModelChange=()=>{};onModelTouched=()=>{};calendarElement;timePickerTimer;documentClickListener;animationEndListener;ticksTo1970;yearOptions;focus;isKeydown;filled;inputFieldValue=null;_minDate;_maxDate;_showTime;_yearRange;preventDocumentListener;dateTemplate;headerTemplate;footerTemplate;disabledDateTemplate;decadeTemplate;previousIconTemplate;nextIconTemplate;triggerIconTemplate;clearIconTemplate;decrementIconTemplate;incrementIconTemplate;inputIconTemplate;_disabledDates;_disabledDays;selectElement;todayElement;focusElement;scrollHandler;documentResizeListener;navigationState=null;isMonthNavigate;initialized;translationSubscription;_locale;_responsiveOptions;currentView;attributeSelector;panelId;_numberOfMonths=1;_firstDayOfWeek;_view="date";preventFocus;_defaultDate;_focusKey=null;window;get locale(){return this._locale}get iconButtonAriaLabel(){return this.iconAriaLabel?this.iconAriaLabel:this.getTranslation("chooseDate")}get prevIconAriaLabel(){return this.currentView==="year"?this.getTranslation("prevDecade"):this.currentView==="month"?this.getTranslation("prevYear"):this.getTranslation("prevMonth")}get nextIconAriaLabel(){return this.currentView==="year"?this.getTranslation("nextDecade"):this.currentView==="month"?this.getTranslation("nextYear"):this.getTranslation("nextMonth")}constructor(t,i,r,o,s,c,h){this.document=t,this.el=i,this.renderer=r,this.cd=o,this.zone=s,this.config=c,this.overlayService=h,this.window=this.document.defaultView}ngOnInit(){this.attributeSelector=rl(),this.panelId=this.attributeSelector+"_panel";let t=this.defaultDate||new Date;this.createResponsiveStyle(),this.currentMonth=t.getMonth(),this.currentYear=t.getFullYear(),this.yearOptions=[],this.currentView=this.view,this.view==="date"&&(this.createWeekDays(),this.initTime(t),this.createMonths(this.currentMonth,this.currentYear),this.ticksTo1970=(1969*365+Math.floor(1970/4)-Math.floor(1970/100)+Math.floor(1970/400))*24*60*60*1e7),this.translationSubscription=this.config.translationObserver.subscribe(()=>{this.createWeekDays(),this.cd.markForCheck()}),this.initialized=!0}ngAfterContentInit(){this.templates.forEach(t=>{switch(t.getType()){case"date":this.dateTemplate=t.template;break;case"decade":this.decadeTemplate=t.template;break;case"disabledDate":this.disabledDateTemplate=t.template;break;case"header":this.headerTemplate=t.template;break;case"inputicon":this.inputIconTemplate=t.template;break;case"previousicon":this.previousIconTemplate=t.template;break;case"nexticon":this.nextIconTemplate=t.template;break;case"triggericon":this.triggerIconTemplate=t.template;break;case"clearicon":this.clearIconTemplate=t.template;break;case"decrementicon":this.decrementIconTemplate=t.template;break;case"incrementicon":this.incrementIconTemplate=t.template;break;case"footer":this.footerTemplate=t.template;break;default:this.dateTemplate=t.template;break}})}ngAfterViewInit(){this.inline&&(this.contentViewChild&&this.contentViewChild.nativeElement.setAttribute(this.attributeSelector,""),!this.disabled&&!this.inline&&(this.initFocusableCell(),this.numberOfMonths===1&&this.contentViewChild&&this.contentViewChild.nativeElement&&(this.contentViewChild.nativeElement.style.width=Ft.getOuterWidth(this.containerViewChild?.nativeElement)+"px")))}getTranslation(t){return this.config.getTranslation(t)}populateYearOptions(t,i){this.yearOptions=[];for(let r=t;r<=i;r++)this.yearOptions.push(r)}createWeekDays(){this.weekDays=[];let t=this.getFirstDateOfWeek(),i=this.getTranslation(np.DAY_NAMES_MIN);for(let r=0;r<7;r++)this.weekDays.push(i[t]),t=t==6?0:++t}monthPickerValues(){let t=[];for(let i=0;i<=11;i++)t.push(this.config.getTranslation("monthNamesShort")[i]);return t}yearPickerValues(){let t=[],i=this.currentYear-this.currentYear%this.stepYearPicker;for(let r=0;r11&&(o=o%11-1,s=i+1),this.months.push(this.createMonth(o,s))}}getWeekNumber(t){let i=new Date(t.getTime());if(this.startWeekFromFirstDayOfYear){let o=+this.getFirstDateOfWeek();i.setDate(i.getDate()+6+o-i.getDay())}else i.setDate(i.getDate()+4-(i.getDay()||7));let r=i.getTime();return i.setMonth(0),i.setDate(1),Math.floor(Math.round((r-i.getTime())/864e5)/7)+1}createMonth(t,i){let r=[],o=this.getFirstDayOfMonthIndex(t,i),s=this.getDaysCountInMonth(t,i),c=this.getDaysCountInPrevMonth(t,i),h=1,g=new Date,x=[],C=Math.ceil((s+o)/7);for(let A=0;As){let F=this.getNextMonthAndYear(t,i);k.push({day:h-s,month:F.month,year:F.year,otherMonth:!0,today:this.isToday(g,h-s,F.month,F.year),selectable:this.isSelectable(h-s,F.month,F.year,!0)})}else k.push({day:h,month:t,year:i,today:this.isToday(g,h,t,i),selectable:this.isSelectable(h,t,i,!1)});h++}this.showWeek&&x.push(this.getWeekNumber(new Date(k[0].year,k[0].month,k[0].day))),r.push(k)}return{month:t,year:i,dates:r,weekNumbers:x}}initTime(t){this.pm=t.getHours()>11,this.showTime?(this.currentMinute=t.getMinutes(),this.currentSecond=t.getSeconds(),this.setCurrentHourPM(t.getHours())):this.timeOnly&&(this.currentMinute=0,this.currentHour=0,this.currentSecond=0)}navBackward(t){if(this.disabled){t.preventDefault();return}this.isMonthNavigate=!0,this.currentView==="month"?(this.decrementYear(),setTimeout(()=>{this.updateFocus()},1)):this.currentView==="year"?(this.decrementYearPickerStep(),setTimeout(()=>{this.updateFocus()},1)):(this.currentMonth===0?(this.currentMonth=11,this.decrementYear()):this.currentMonth--,this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}),this.createMonths(this.currentMonth,this.currentYear))}navForward(t){if(this.disabled){t.preventDefault();return}this.isMonthNavigate=!0,this.currentView==="month"?(this.incrementYear(),setTimeout(()=>{this.updateFocus()},1)):this.currentView==="year"?(this.incrementYearPickerStep(),setTimeout(()=>{this.updateFocus()},1)):(this.currentMonth===11?(this.currentMonth=0,this.incrementYear()):this.currentMonth++,this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}),this.createMonths(this.currentMonth,this.currentYear))}decrementYear(){this.currentYear--;let t=this.yearOptions;if(this.yearNavigator&&this.currentYeart[t.length-1]){let i=t[t.length-1]-t[0];this.populateYearOptions(t[0]+i,t[t.length-1]+i)}}switchToMonthView(t){this.setCurrentView("month"),t.preventDefault()}switchToYearView(t){this.setCurrentView("year"),t.preventDefault()}onDateSelect(t,i){if(this.disabled||!i.selectable){t.preventDefault();return}this.isMultipleSelection()&&this.isSelected(i)?(this.value=this.value.filter((r,o)=>!this.isDateEquals(r,i)),this.value.length===0&&(this.value=null),this.updateModel(this.value)):this.shouldSelectDate(i)&&this.selectDate(i),this.hideOnDateTimeSelect&&(this.isSingleSelection()||this.isRangeSelection()&&this.value[1])&&setTimeout(()=>{t.preventDefault(),this.hideOverlay(),this.mask&&this.disableModality(),this.cd.markForCheck()},150),this.updateInputfield(),t.preventDefault()}shouldSelectDate(t){return this.isMultipleSelection()&&this.maxDateCount!=null?this.maxDateCount>(this.value?this.value.length:0):!0}onMonthSelect(t,i){this.view==="month"?this.onDateSelect(t,{year:this.currentYear,month:i,day:1,selectable:!0}):(this.currentMonth=i,this.createMonths(this.currentMonth,this.currentYear),this.setCurrentView("date"),this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}))}onYearSelect(t,i){this.view==="year"?this.onDateSelect(t,{year:i,month:0,day:1,selectable:!0}):(this.currentYear=i,this.setCurrentView("month"),this.onYearChange.emit({month:this.currentMonth+1,year:this.currentYear}))}updateInputfield(){let t="";if(this.value){if(this.isSingleSelection())t=this.formatDateTime(this.value);else if(this.isMultipleSelection())for(let i=0;i11,t>=12?this.currentHour=t==12?12:t-12:this.currentHour=t==0?12:t):this.currentHour=t}setCurrentView(t){this.currentView=t,this.cd.detectChanges(),this.alignOverlay()}selectDate(t){let i=this.formatDateMetaToDate(t);if(this.showTime&&(this.hourFormat=="12"?this.currentHour===12?i.setHours(this.pm?12:0):i.setHours(this.pm?this.currentHour+12:this.currentHour):i.setHours(this.currentHour),i.setMinutes(this.currentMinute),i.setSeconds(this.currentSecond)),this.minDate&&this.minDate>i&&(i=this.minDate,this.setCurrentHourPM(i.getHours()),this.currentMinute=i.getMinutes(),this.currentSecond=i.getSeconds()),this.maxDate&&this.maxDate=r.getTime()?o=i:(r=i,o=null),this.updateModel([r,o])}else this.updateModel([i,null]);this.onSelect.emit(i)}updateModel(t){if(this.value=t,this.dataType=="date")this.onModelChange(this.value);else if(this.dataType=="string")if(this.isSingleSelection())this.onModelChange(this.formatDateTime(this.value));else{let i=null;Array.isArray(this.value)&&(i=this.value.map(r=>this.formatDateTime(r))),this.onModelChange(i)}}getFirstDayOfMonthIndex(t,i){let r=new Date;r.setDate(1),r.setMonth(t),r.setFullYear(i);let o=r.getDay()+this.getSundayIndex();return o>=7?o-7:o}getDaysCountInMonth(t,i){return 32-this.daylightSavingAdjust(new Date(i,t,32)).getDate()}getDaysCountInPrevMonth(t,i){let r=this.getPreviousMonthAndYear(t,i);return this.getDaysCountInMonth(r.month,r.year)}getPreviousMonthAndYear(t,i){let r,o;return t===0?(r=11,o=i-1):(r=t-1,o=i),{month:r,year:o}}getNextMonthAndYear(t,i){let r,o;return t===11?(r=0,o=i+1):(r=t+1,o=i),{month:r,year:o}}getSundayIndex(){let t=this.getFirstDateOfWeek();return t>0?7-t:0}isSelected(t){if(this.value){if(this.isSingleSelection())return this.isDateEquals(this.value,t);if(this.isMultipleSelection()){let i=!1;for(let r of this.value)if(i=this.isDateEquals(r,t),i)break;return i}else if(this.isRangeSelection())return this.value[1]?this.isDateEquals(this.value[0],t)||this.isDateEquals(this.value[1],t)||this.isDateBetween(this.value[0],this.value[1],t):this.isDateEquals(this.value[0],t)}else return!1}isComparable(){return this.value!=null&&typeof this.value!="string"}isMonthSelected(t){if(this.isComparable()&&!this.isMultipleSelection()){let[i,r]=this.isRangeSelection()?this.value:[this.value,this.value],o=new Date(this.currentYear,t,1);return o>=i&&o<=(r??i)}return!1}isMonthDisabled(t,i){let r=i??this.currentYear;for(let o=1;othis.isMonthDisabled(r,t))}isYearSelected(t){if(this.isComparable()){let i=this.isRangeSelection()?this.value[0]:this.value;return this.isMultipleSelection()?!1:i.getFullYear()===t}return!1}isDateEquals(t,i){return t&&Mn.isDate(t)?t.getDate()===i.day&&t.getMonth()===i.month&&t.getFullYear()===i.year:!1}isDateBetween(t,i,r){let o=!1;if(Mn.isDate(t)&&Mn.isDate(i)){let s=this.formatDateMetaToDate(r);return t.getTime()<=s.getTime()&&i.getTime()>=s.getTime()}return o}isSingleSelection(){return this.selectionMode==="single"}isRangeSelection(){return this.selectionMode==="range"}isMultipleSelection(){return this.selectionMode==="multiple"}isToday(t,i,r,o){return t.getDate()===i&&t.getMonth()===r&&t.getFullYear()===o}isSelectable(t,i,r,o){let s=!0,c=!0,h=!0,g=!0;return o&&!this.selectOtherMonths?!1:(this.minDate&&(this.minDate.getFullYear()>r||this.minDate.getFullYear()===r&&this.currentView!="year"&&(this.minDate.getMonth()>i||this.minDate.getMonth()===i&&this.minDate.getDate()>t))&&(s=!1),this.maxDate&&(this.maxDate.getFullYear()1||this.disabled}onPrevButtonClick(t){this.navigationState={backward:!0,button:!0},this.navBackward(t)}onNextButtonClick(t){this.navigationState={backward:!1,button:!0},this.navForward(t)}onContainerButtonKeydown(t){switch(t.which){case 9:if(this.inline||this.trapFocus(t),this.inline){let i=Ft.findSingle(this.containerViewChild?.nativeElement,".p-datepicker-header"),r=t.target;if(this.timeOnly)return;r==i.children[i?.children?.length-1]&&this.initFocusableCell()}break;case 27:this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,t.preventDefault();break;default:break}}onInputKeydown(t){this.isKeydown=!0,t.keyCode===40&&this.contentViewChild?this.trapFocus(t):t.keyCode===27?this.overlayVisible&&(this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,t.preventDefault()):t.keyCode===13?this.overlayVisible&&(this.overlayVisible=!1,t.preventDefault()):t.keyCode===9&&this.contentViewChild&&(Ft.getFocusableElements(this.contentViewChild.nativeElement).forEach(i=>i.tabIndex="-1"),this.overlayVisible&&(this.overlayVisible=!1))}onDateCellKeydown(t,i,r){let o=t.currentTarget,s=o.parentElement,c=this.formatDateMetaToDate(i);switch(t.which){case 40:{o.tabIndex="-1";let O=Ft.index(s),F=s.parentElement.nextElementSibling;if(F){let L=F.children[O].children[0];Ft.hasClass(L,"p-disabled")?(this.navigationState={backward:!1},this.navForward(t)):(F.children[O].children[0].tabIndex="0",F.children[O].children[0].focus())}else this.navigationState={backward:!1},this.navForward(t);t.preventDefault();break}case 38:{o.tabIndex="-1";let O=Ft.index(s),F=s.parentElement.previousElementSibling;if(F){let L=F.children[O].children[0];Ft.hasClass(L,"p-disabled")?(this.navigationState={backward:!0},this.navBackward(t)):(L.tabIndex="0",L.focus())}else this.navigationState={backward:!0},this.navBackward(t);t.preventDefault();break}case 37:{o.tabIndex="-1";let O=s.previousElementSibling;if(O){let F=O.children[0];Ft.hasClass(F,"p-disabled")||Ft.hasClass(F.parentElement,"p-datepicker-weeknumber")?this.navigateToMonth(!0,r):(F.tabIndex="0",F.focus())}else this.navigateToMonth(!0,r);t.preventDefault();break}case 39:{o.tabIndex="-1";let O=s.nextElementSibling;if(O){let F=O.children[0];Ft.hasClass(F,"p-disabled")?this.navigateToMonth(!1,r):(F.tabIndex="0",F.focus())}else this.navigateToMonth(!1,r);t.preventDefault();break}case 13:case 32:{this.onDateSelect(t,i),t.preventDefault();break}case 27:{this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,t.preventDefault();break}case 9:{this.inline||this.trapFocus(t);break}case 33:{o.tabIndex="-1";let O=new Date(c.getFullYear(),c.getMonth()-1,c.getDate()),F=this.formatDateKey(O);this.navigateToMonth(!0,r,`span[data-date='${F}']:not(.p-disabled):not(.p-ink)`),t.preventDefault();break}case 34:{o.tabIndex="-1";let O=new Date(c.getFullYear(),c.getMonth()+1,c.getDate()),F=this.formatDateKey(O);this.navigateToMonth(!1,r,`span[data-date='${F}']:not(.p-disabled):not(.p-ink)`),t.preventDefault();break}case 36:o.tabIndex="-1";let h=new Date(c.getFullYear(),c.getMonth(),1),g=this.formatDateKey(h),x=Ft.findSingle(o.offsetParent,`span[data-date='${g}']:not(.p-disabled):not(.p-ink)`);x&&(x.tabIndex="0",x.focus()),t.preventDefault();break;case 35:o.tabIndex="-1";let C=new Date(c.getFullYear(),c.getMonth()+1,0),A=this.formatDateKey(C),k=Ft.findSingle(o.offsetParent,`span[data-date='${A}']:not(.p-disabled):not(.p-ink)`);C&&(k.tabIndex="0",k.focus()),t.preventDefault();break;default:break}}onMonthCellKeydown(t,i){let r=t.currentTarget;switch(t.which){case 38:case 40:{r.tabIndex="-1";var o=r.parentElement.children,s=Ft.index(r);let c=o[t.which===40?s+3:s-3];c&&(c.tabIndex="0",c.focus()),t.preventDefault();break}case 37:{r.tabIndex="-1";let c=r.previousElementSibling;c?(c.tabIndex="0",c.focus()):(this.navigationState={backward:!0},this.navBackward(t)),t.preventDefault();break}case 39:{r.tabIndex="-1";let c=r.nextElementSibling;c?(c.tabIndex="0",c.focus()):(this.navigationState={backward:!1},this.navForward(t)),t.preventDefault();break}case 13:case 32:{this.onMonthSelect(t,i),t.preventDefault();break}case 27:{this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,t.preventDefault();break}case 9:{this.inline||this.trapFocus(t);break}default:break}}onYearCellKeydown(t,i){let r=t.currentTarget;switch(t.which){case 38:case 40:{r.tabIndex="-1";var o=r.parentElement.children,s=Ft.index(r);let c=o[t.which===40?s+2:s-2];c&&(c.tabIndex="0",c.focus()),t.preventDefault();break}case 37:{r.tabIndex="-1";let c=r.previousElementSibling;c?(c.tabIndex="0",c.focus()):(this.navigationState={backward:!0},this.navBackward(t)),t.preventDefault();break}case 39:{r.tabIndex="-1";let c=r.nextElementSibling;c?(c.tabIndex="0",c.focus()):(this.navigationState={backward:!1},this.navForward(t)),t.preventDefault();break}case 13:case 32:{this.onYearSelect(t,i),t.preventDefault();break}case 27:{this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,t.preventDefault();break}case 9:{this.trapFocus(t);break}default:break}}navigateToMonth(t,i,r){if(t)if(this.numberOfMonths===1||i===0)this.navigationState={backward:!0},this._focusKey=r,this.navBackward(event);else{let o=this.contentViewChild.nativeElement.children[i-1];if(r){let s=Ft.findSingle(o,r);s.tabIndex="0",s.focus()}else{let s=Ft.find(o,".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)"),c=s[s.length-1];c.tabIndex="0",c.focus()}}else if(this.numberOfMonths===1||i===this.numberOfMonths-1)this.navigationState={backward:!1},this._focusKey=r,this.navForward(event);else{let o=this.contentViewChild.nativeElement.children[i+1];if(r){let s=Ft.findSingle(o,r);s.tabIndex="0",s.focus()}else{let s=Ft.findSingle(o,".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)");s.tabIndex="0",s.focus()}}}updateFocus(){let t;if(this.navigationState){if(this.navigationState.button)this.initFocusableCell(),this.navigationState.backward?Ft.findSingle(this.contentViewChild.nativeElement,".p-datepicker-prev").focus():Ft.findSingle(this.contentViewChild.nativeElement,".p-datepicker-next").focus();else{if(this.navigationState.backward){let i;this.currentView==="month"?i=Ft.find(this.contentViewChild.nativeElement,".p-monthpicker .p-monthpicker-month:not(.p-disabled)"):this.currentView==="year"?i=Ft.find(this.contentViewChild.nativeElement,".p-yearpicker .p-yearpicker-year:not(.p-disabled)"):i=Ft.find(this.contentViewChild.nativeElement,this._focusKey||".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)"),i&&i.length>0&&(t=i[i.length-1])}else this.currentView==="month"?t=Ft.findSingle(this.contentViewChild.nativeElement,".p-monthpicker .p-monthpicker-month:not(.p-disabled)"):this.currentView==="year"?t=Ft.findSingle(this.contentViewChild.nativeElement,".p-yearpicker .p-yearpicker-year:not(.p-disabled)"):t=Ft.findSingle(this.contentViewChild.nativeElement,this._focusKey||".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)");t&&(t.tabIndex="0",t.focus())}this.navigationState=null,this._focusKey=null}else this.initFocusableCell();this.alignOverlay()}initFocusableCell(){let t=this.contentViewChild?.nativeElement,i;if(this.currentView==="month"){let r=Ft.find(t,".p-monthpicker .p-monthpicker-month:not(.p-disabled)"),o=Ft.findSingle(t,".p-monthpicker .p-monthpicker-month.p-highlight");r.forEach(s=>s.tabIndex=-1),i=o||r[0],r.length===0&&Ft.find(t,'.p-monthpicker .p-monthpicker-month.p-disabled[tabindex = "0"]').forEach(c=>c.tabIndex=-1)}else if(this.currentView==="year"){let r=Ft.find(t,".p-yearpicker .p-yearpicker-year:not(.p-disabled)"),o=Ft.findSingle(t,".p-yearpicker .p-yearpicker-year.p-highlight");r.forEach(s=>s.tabIndex=-1),i=o||r[0],r.length===0&&Ft.find(t,'.p-yearpicker .p-yearpicker-year.p-disabled[tabindex = "0"]').forEach(c=>c.tabIndex=-1)}else if(i=Ft.findSingle(t,"span.p-highlight"),!i){let r=Ft.findSingle(t,"td.p-datepicker-today span:not(.p-disabled):not(.p-ink)");r?i=r:i=Ft.findSingle(t,".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)")}i&&(i.tabIndex="0",!this.preventFocus&&(!this.navigationState||!this.navigationState.button)&&setTimeout(()=>{this.disabled||i.focus()},1),this.preventFocus=!1)}trapFocus(t){let i=Ft.getFocusableElements(this.contentViewChild.nativeElement);if(i&&i.length>0)if(!i[0].ownerDocument.activeElement)i[0].focus();else{let r=i.indexOf(i[0].ownerDocument.activeElement);if(t.shiftKey)if(r==-1||r===0)if(this.focusTrap)i[i.length-1].focus();else{if(r===-1)return this.hideOverlay();if(r===0)return}else i[r-1].focus();else if(r==-1)if(this.timeOnly)i[0].focus();else{let o=0;for(let s=0;s=12),!0){case(O&&c&&this.minDate.getHours()===12&&this.minDate.getHours()>g):s[0]=11;case(O&&this.minDate.getHours()===g&&this.minDate.getMinutes()>i):s[1]=this.minDate.getMinutes();case(O&&this.minDate.getHours()===g&&this.minDate.getMinutes()===i&&this.minDate.getSeconds()>r):s[2]=this.minDate.getSeconds();break;case(O&&!c&&this.minDate.getHours()-1===g&&this.minDate.getHours()>g):s[0]=11,this.pm=!0;case(O&&this.minDate.getHours()===g&&this.minDate.getMinutes()>i):s[1]=this.minDate.getMinutes();case(O&&this.minDate.getHours()===g&&this.minDate.getMinutes()===i&&this.minDate.getSeconds()>r):s[2]=this.minDate.getSeconds();break;case(O&&c&&this.minDate.getHours()>g&&g!==12):this.setCurrentHourPM(this.minDate.getHours()),s[0]=this.currentHour;case(O&&this.minDate.getHours()===g&&this.minDate.getMinutes()>i):s[1]=this.minDate.getMinutes();case(O&&this.minDate.getHours()===g&&this.minDate.getMinutes()===i&&this.minDate.getSeconds()>r):s[2]=this.minDate.getSeconds();break;case(O&&this.minDate.getHours()>g):s[0]=this.minDate.getHours();case(O&&this.minDate.getHours()===g&&this.minDate.getMinutes()>i):s[1]=this.minDate.getMinutes();case(O&&this.minDate.getHours()===g&&this.minDate.getMinutes()===i&&this.minDate.getSeconds()>r):s[2]=this.minDate.getSeconds();break;case(F&&this.maxDate.getHours()=24?r-24:r:this.hourFormat=="12"&&(i<12&&r>11&&(o=!this.pm),r=r>=13?r-12:r),this.toggleAMPMIfNotMinDate(o),[this.currentHour,this.currentMinute,this.currentSecond]=this.constrainTime(r,this.currentMinute,this.currentSecond,o),t.preventDefault()}toggleAMPMIfNotMinDate(t){let i=this.value;(this.selectionMode=="range"||this.selectionMode=="multiple")&&Array.isArray(i)&&i.length>0&&(i=i[i.length-1]);let r=i?i.toDateString():null;this.minDate&&r&&this.minDate.toDateString()===r&&this.minDate.getHours()>=12?this.pm=!0:this.pm=t}onTimePickerElementMouseDown(t,i,r){this.disabled||(this.repeat(t,null,i,r),t.preventDefault())}onTimePickerElementMouseUp(t){this.disabled||(this.clearTimePickerTimer(),this.updateTime())}onTimePickerElementMouseLeave(){!this.disabled&&this.timePickerTimer&&(this.clearTimePickerTimer(),this.updateTime())}repeat(t,i,r,o){let s=i||500;switch(this.clearTimePickerTimer(),this.timePickerTimer=setTimeout(()=>{this.repeat(t,100,r,o),this.cd.markForCheck()},s),r){case 0:o===1?this.incrementHour(t):this.decrementHour(t);break;case 1:o===1?this.incrementMinute(t):this.decrementMinute(t);break;case 2:o===1?this.incrementSecond(t):this.decrementSecond(t);break}this.updateInputfield()}clearTimePickerTimer(){this.timePickerTimer&&(clearTimeout(this.timePickerTimer),this.timePickerTimer=null)}decrementHour(t){let i=(this.currentHour??0)-this.stepHour,r=this.pm;this.hourFormat=="24"?i=i<0?24+i:i:this.hourFormat=="12"&&(this.currentHour===12&&(r=!this.pm),i=i<=0?12+i:i),this.toggleAMPMIfNotMinDate(r),[this.currentHour,this.currentMinute,this.currentSecond]=this.constrainTime(i,this.currentMinute,this.currentSecond,r),t.preventDefault()}incrementMinute(t){let i=(this.currentMinute??0)+this.stepMinute;i=i>59?i-60:i,[this.currentHour,this.currentMinute,this.currentSecond]=this.constrainTime(this.currentHour,i,this.currentSecond,this.pm),t.preventDefault()}decrementMinute(t){let i=(this.currentMinute??0)-this.stepMinute;i=i<0?60+i:i,[this.currentHour,this.currentMinute,this.currentSecond]=this.constrainTime(this.currentHour,i,this.currentSecond,this.pm),t.preventDefault()}incrementSecond(t){let i=this.currentSecond+this.stepSecond;i=i>59?i-60:i,[this.currentHour,this.currentMinute,this.currentSecond]=this.constrainTime(this.currentHour,this.currentMinute,i,this.pm),t.preventDefault()}decrementSecond(t){let i=this.currentSecond-this.stepSecond;i=i<0?60+i:i,[this.currentHour,this.currentMinute,this.currentSecond]=this.constrainTime(this.currentHour,this.currentMinute,i,this.pm),t.preventDefault()}updateTime(){let t=this.value;this.isRangeSelection()&&(t=this.value[1]||this.value[0]),this.isMultipleSelection()&&(t=this.value[this.value.length-1]),t=t?new Date(t.getTime()):new Date,this.hourFormat=="12"?this.currentHour===12?t.setHours(this.pm?12:0):t.setHours(this.pm?this.currentHour+12:this.currentHour):t.setHours(this.currentHour),t.setMinutes(this.currentMinute),t.setSeconds(this.currentSecond),this.isRangeSelection()&&(this.value[1]?t=[this.value[0],t]:t=[t,null]),this.isMultipleSelection()&&(t=[...this.value.slice(0,-1),t]),this.updateModel(t),this.onSelect.emit(t),this.updateInputfield()}toggleAMPM(t){let i=!this.pm;this.pm=i,[this.currentHour,this.currentMinute,this.currentSecond]=this.constrainTime(this.currentHour,this.currentMinute,this.currentSecond,i),this.updateTime(),t.preventDefault()}onUserInput(t){if(!this.isKeydown)return;this.isKeydown=!1;let i=t.target.value;try{let r=this.parseValueFromString(i);this.isValidSelection(r)?(this.updateModel(r),this.updateUI()):this.keepInvalid&&this.updateModel(r)}catch{let o=this.keepInvalid?i:null;this.updateModel(o)}this.filled=i!=null&&i.length,this.onInput.emit(t)}isValidSelection(t){if(this.isSingleSelection())return this.isSelectable(t.getDate(),t.getMonth(),t.getFullYear(),!1);let i=t.every(r=>this.isSelectable(r.getDate(),r.getMonth(),r.getFullYear(),!1));return i&&this.isRangeSelection()&&(i=t.length===1||t.length>1&&t[1]>=t[0]),i}parseValueFromString(t){if(!t||t.trim().length===0)return null;let i;if(this.isSingleSelection())i=this.parseDateTime(t);else if(this.isMultipleSelection()){let r=t.split(this.multipleSeparator);i=[];for(let o of r)i.push(this.parseDateTime(o.trim()))}else if(this.isRangeSelection()){let r=t.split(" "+this.rangeSeparator+" ");i=[];for(let o=0;o{this.disableModality(),this.overlayVisible=!1}),this.renderer.appendChild(this.document.body,this.mask),Ft.blockBodyScroll())}disableModality(){this.mask&&(Ft.addClass(this.mask,"p-component-overlay-leave"),this.animationEndListener||(this.animationEndListener=this.renderer.listen(this.mask,"animationend",this.destroyMask.bind(this))))}destroyMask(){if(!this.mask)return;this.renderer.removeChild(this.document.body,this.mask);let t=this.document.body.children,i;for(let r=0;r{let C=r+1{let k=""+C;if(o(x))for(;k.lengtho(x)?k[C]:A[C],h="",g=!1;if(t)for(r=0;r11&&r!=12&&(r-=12),this.hourFormat=="12"?i+=r===0?12:r<10?"0"+r:r:i+=r<10?"0"+r:r,i+=":",i+=o<10?"0"+o:o,this.showSeconds&&(i+=":",i+=s<10?"0"+s:s),this.hourFormat=="12"&&(i+=t.getHours()>11?" PM":" AM"),i}parseTime(t){let i=t.split(":"),r=this.showSeconds?3:2;if(i.length!==r)throw"Invalid time";let o=parseInt(i[0]),s=parseInt(i[1]),c=this.showSeconds?parseInt(i[2]):null;if(isNaN(o)||isNaN(s)||o>23||s>59||this.hourFormat=="12"&&o>12||this.showSeconds&&(isNaN(c)||c>59))throw"Invalid time";return this.hourFormat=="12"&&(o!==12&&this.pm?o+=12:!this.pm&&o===12&&(o-=12)),{hour:o,minute:s,second:c}}parseDate(t,i){if(i==null||t==null)throw"Invalid arguments";if(t=typeof t=="object"?t.toString():t+"",t==="")return null;let r,o,s,c=0,h=typeof this.shortYearCutoff!="string"?this.shortYearCutoff:new Date().getFullYear()%100+parseInt(this.shortYearCutoff,10),g=-1,x=-1,C=-1,A=-1,k=!1,O,F=K=>{let ee=r+1{let ee=F(K),ne=K==="@"?14:K==="!"?20:K==="y"&&ee?4:K==="o"?3:2,X=K==="y"?ne:1,q=new RegExp("^\\d{"+X+","+ne+"}"),fe=t.substring(c).match(q);if(!fe)throw"Missing number at position "+c;return c+=fe[0].length,parseInt(fe[0],10)},z=(K,ee,ne)=>{let X=-1,q=F(K)?ne:ee,fe=[];for(let Se=0;Se-(Se[1].length-pe[1].length));for(let Se=0;Se{if(t.charAt(c)!==i.charAt(r))throw"Unexpected literal at position "+c;c++};for(this.view==="month"&&(C=1),r=0;r-1){x=1,C=A;do{if(o=this.getDaysCountInMonth(g,x-1),C<=o)break;x++,C-=o}while(!0)}if(this.view==="year"&&(x=x===-1?1:x,C=C===-1?1:C),O=this.daylightSavingAdjust(new Date(g,x-1,C)),O.getFullYear()!==g||O.getMonth()+1!==x||O.getDate()!==C)throw"Invalid date";return O}daylightSavingAdjust(t){return t?(t.setHours(t.getHours()>12?t.getHours()+2:0),t):null}updateFilledState(){this.filled=this.inputFieldValue&&this.inputFieldValue!=""}isValidDateForTimeConstraints(t){return this.keepInvalid?!0:(!this.minDate||t>=this.minDate)&&(!this.maxDate||t<=this.maxDate)}onTodayButtonClick(t){let i=new Date,r={day:i.getDate(),month:i.getMonth(),year:i.getFullYear(),otherMonth:i.getMonth()!==this.currentMonth||i.getFullYear()!==this.currentYear,today:!0,selectable:!0};this.createMonths(i.getMonth(),i.getFullYear()),this.onDateSelect(t,r),this.onTodayClick.emit(i)}onClearButtonClick(t){this.updateModel(null),this.updateInputfield(),this.hideOverlay(),this.onClearClick.emit(t)}createResponsiveStyle(){if(this.numberOfMonths>1&&this.responsiveOptions){this.responsiveStyleElement||(this.responsiveStyleElement=this.renderer.createElement("style"),this.responsiveStyleElement.type="text/css",Ft.setAttribute(this.responsiveStyleElement,"nonce",this.config?.csp()?.nonce),this.renderer.appendChild(this.document.body,this.responsiveStyleElement));let t="";if(this.responsiveOptions){let i=[...this.responsiveOptions].filter(r=>!!(r.breakpoint&&r.numMonths)).sort((r,o)=>-1*r.breakpoint.localeCompare(o.breakpoint,void 0,{numeric:!0}));for(let r=0;r{let t=this.el?this.el.nativeElement.ownerDocument:this.document;this.documentClickListener=this.renderer.listen(t,"mousedown",i=>{this.isOutsideClicked(i)&&this.overlayVisible&&this.zone.run(()=>{this.hideOverlay(),this.onClickOutside.emit(i),this.cd.markForCheck()})})})}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null)}bindDocumentResizeListener(){!this.documentResizeListener&&!this.touchUI&&(this.documentResizeListener=this.renderer.listen(this.window,"resize",this.onWindowResize.bind(this)))}unbindDocumentResizeListener(){this.documentResizeListener&&(this.documentResizeListener(),this.documentResizeListener=null)}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new vC(this.containerViewChild?.nativeElement,()=>{this.overlayVisible&&this.hideOverlay()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}isOutsideClicked(t){return!(this.el.nativeElement.isSameNode(t.target)||this.isNavIconClicked(t)||this.el.nativeElement.contains(t.target)||this.overlay&&this.overlay.contains(t.target))}isNavIconClicked(t){return Ft.hasClass(t.target,"p-datepicker-prev")||Ft.hasClass(t.target,"p-datepicker-prev-icon")||Ft.hasClass(t.target,"p-datepicker-next")||Ft.hasClass(t.target,"p-datepicker-next-icon")}onWindowResize(){this.overlayVisible&&!Ft.isTouchDevice()&&this.hideOverlay()}onOverlayHide(){this.currentView=this.view,this.mask&&this.destroyMask(),this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.overlay=null}ngOnDestroy(){this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.translationSubscription&&this.translationSubscription.unsubscribe(),this.overlay&&this.autoZIndex&&Kf.clear(this.overlay),this.destroyResponsiveStyleElement(),this.clearTimePickerTimer(),this.restoreOverlayAppend(),this.onOverlayHide()}static \u0275fac=function(i){return new(i||n)(oe(Ln),oe(Ai),oe(Fl),oe(ur),oe(Zi),oe(zu),oe(S3))};static \u0275cmp=Ct({type:n,selectors:[["p-calendar"]],contentQueries:function(i,r,o){if(i&1&&gr(o,Ra,4),i&2){let s;Di(s=ki())&&(r.templates=s)}},viewQuery:function(i,r){if(i&1&&(Xn(Rkt,5),Xn(Nkt,5),Xn(Pkt,5)),i&2){let o;Di(o=ki())&&(r.containerViewChild=o.first),Di(o=ki())&&(r.inputfieldViewChild=o.first),Di(o=ki())&&(r.content=o.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:6,hostBindings:function(i,r){i&2&&$n("p-inputwrapper-filled",r.filled)("p-inputwrapper-focus",r.focus)("p-calendar-clearable",r.showClear&&!r.disabled)},inputs:{iconDisplay:"iconDisplay",style:"style",styleClass:"styleClass",inputStyle:"inputStyle",inputId:"inputId",name:"name",inputStyleClass:"inputStyleClass",placeholder:"placeholder",ariaLabelledBy:"ariaLabelledBy",ariaLabel:"ariaLabel",iconAriaLabel:"iconAriaLabel",disabled:[2,"disabled","disabled",Ht],dateFormat:"dateFormat",multipleSeparator:"multipleSeparator",rangeSeparator:"rangeSeparator",inline:[2,"inline","inline",Ht],showOtherMonths:[2,"showOtherMonths","showOtherMonths",Ht],selectOtherMonths:[2,"selectOtherMonths","selectOtherMonths",Ht],showIcon:[2,"showIcon","showIcon",Ht],icon:"icon",appendTo:"appendTo",readonlyInput:[2,"readonlyInput","readonlyInput",Ht],shortYearCutoff:"shortYearCutoff",monthNavigator:[2,"monthNavigator","monthNavigator",Ht],yearNavigator:[2,"yearNavigator","yearNavigator",Ht],hourFormat:"hourFormat",timeOnly:[2,"timeOnly","timeOnly",Ht],stepYearPicker:[2,"stepYearPicker","stepYearPicker",xr],stepHour:[2,"stepHour","stepHour",xr],stepMinute:[2,"stepMinute","stepMinute",xr],stepSecond:[2,"stepSecond","stepSecond",xr],showSeconds:[2,"showSeconds","showSeconds",Ht],required:[2,"required","required",Ht],showOnFocus:[2,"showOnFocus","showOnFocus",Ht],showWeek:[2,"showWeek","showWeek",Ht],startWeekFromFirstDayOfYear:"startWeekFromFirstDayOfYear",showClear:[2,"showClear","showClear",Ht],dataType:"dataType",selectionMode:"selectionMode",maxDateCount:[2,"maxDateCount","maxDateCount",xr],showButtonBar:[2,"showButtonBar","showButtonBar",Ht],todayButtonStyleClass:"todayButtonStyleClass",clearButtonStyleClass:"clearButtonStyleClass",autofocus:[2,"autofocus","autofocus",Ht],autoZIndex:[2,"autoZIndex","autoZIndex",Ht],baseZIndex:[2,"baseZIndex","baseZIndex",xr],panelStyleClass:"panelStyleClass",panelStyle:"panelStyle",keepInvalid:[2,"keepInvalid","keepInvalid",Ht],hideOnDateTimeSelect:[2,"hideOnDateTimeSelect","hideOnDateTimeSelect",Ht],touchUI:[2,"touchUI","touchUI",Ht],timeSeparator:"timeSeparator",focusTrap:[2,"focusTrap","focusTrap",Ht],showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",tabindex:[2,"tabindex","tabindex",xr],variant:"variant",minDate:"minDate",maxDate:"maxDate",disabledDates:"disabledDates",disabledDays:"disabledDays",yearRange:"yearRange",showTime:"showTime",responsiveOptions:"responsiveOptions",numberOfMonths:"numberOfMonths",firstDayOfWeek:"firstDayOfWeek",locale:"locale",view:"view",defaultDate:"defaultDate"},outputs:{onFocus:"onFocus",onBlur:"onBlur",onClose:"onClose",onSelect:"onSelect",onClear:"onClear",onInput:"onInput",onTodayClick:"onTodayClick",onClearClick:"onClearClick",onMonthChange:"onMonthChange",onYearChange:"onYearChange",onClickOutside:"onClickOutside",onShow:"onShow"},features:[Co([COt]),Ir],ngContentSelectors:Lkt,decls:4,vars:12,consts:[["container",""],["inputfield",""],["contentWrapper",""],[3,"ngClass","ngStyle"],[3,"ngIf"],[3,"class","ngStyle","ngClass","click",4,"ngIf"],["type","text","role","combobox","aria-autocomplete","none","aria-haspopup","dialog","autocomplete","off","pAutoFocus","",3,"focus","keydown","click","blur","input","value","readonly","ngStyle","placeholder","disabled","ngClass","autofocus"],[4,"ngIf"],["type","button","aria-haspopup","dialog","pButton","","pRipple","","class","p-datepicker-trigger p-button-icon-only","tabindex","0",3,"disabled","click",4,"ngIf"],[3,"styleClass","click",4,"ngIf"],["class","p-calendar-clear-icon",3,"click",4,"ngIf"],[3,"click","styleClass"],[1,"p-calendar-clear-icon",3,"click"],[4,"ngTemplateOutlet"],["type","button","aria-haspopup","dialog","pButton","","pRipple","","tabindex","0",1,"p-datepicker-trigger","p-button-icon-only",3,"click","disabled"],[3,"ngClass",4,"ngIf"],[3,"ngClass"],[3,"ngClass","click",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"click","ngClass"],[3,"click","ngStyle","ngClass"],["class","p-timepicker",4,"ngIf"],["class","p-datepicker-buttonbar",4,"ngIf"],[1,"p-datepicker-group-container"],["class","p-datepicker-group",4,"ngFor","ngForOf"],["class","p-monthpicker",4,"ngIf"],["class","p-yearpicker",4,"ngIf"],[1,"p-datepicker-group"],[1,"p-datepicker-header"],["class","p-datepicker-prev p-link","type","button","pRipple","",3,"keydown","click",4,"ngIf"],[1,"p-datepicker-title"],["type","button","class","p-datepicker-month p-link",3,"disabled","click","keydown",4,"ngIf"],["type","button","class","p-datepicker-year p-link",3,"disabled","click","keydown",4,"ngIf"],["class","p-datepicker-decade",4,"ngIf"],["type","button","pRipple","",1,"p-datepicker-next","p-link",3,"keydown","click"],[3,"styleClass",4,"ngIf"],["class","p-datepicker-next-icon",4,"ngIf"],["class","p-datepicker-calendar-container",4,"ngIf"],["type","button","pRipple","",1,"p-datepicker-prev","p-link",3,"keydown","click"],["class","p-datepicker-prev-icon",4,"ngIf"],[3,"styleClass"],[1,"p-datepicker-prev-icon"],["type","button",1,"p-datepicker-month","p-link",3,"click","keydown","disabled"],["type","button",1,"p-datepicker-year","p-link",3,"click","keydown","disabled"],[1,"p-datepicker-decade"],[1,"p-datepicker-next-icon"],[1,"p-datepicker-calendar-container"],["role","grid",1,"p-datepicker-calendar"],["class","p-datepicker-weekheader p-disabled",4,"ngIf"],["scope","col",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],[1,"p-datepicker-weekheader","p-disabled"],["scope","col"],["class","p-datepicker-weeknumber",4,"ngIf"],[3,"ngClass",4,"ngFor","ngForOf"],[1,"p-datepicker-weeknumber"],[1,"p-disabled"],["draggable","false","pRipple","",3,"click","keydown","ngClass"],["class","p-hidden-accessible","aria-live","polite",4,"ngIf"],["aria-live","polite",1,"p-hidden-accessible"],[1,"p-monthpicker"],["class","p-monthpicker-month","pRipple","",3,"ngClass","click","keydown",4,"ngFor","ngForOf"],["pRipple","",1,"p-monthpicker-month",3,"click","keydown","ngClass"],[1,"p-yearpicker"],["class","p-yearpicker-year","pRipple","",3,"ngClass","click","keydown",4,"ngFor","ngForOf"],["pRipple","",1,"p-yearpicker-year",3,"click","keydown","ngClass"],[1,"p-timepicker"],[1,"p-hour-picker"],["type","button","pRipple","",1,"p-link",3,"keydown","keydown.enter","keydown.space","mousedown","mouseup","keyup.enter","keyup.space","mouseleave"],[1,"p-separator"],[1,"p-minute-picker"],["class","p-separator",4,"ngIf"],["class","p-second-picker",4,"ngIf"],["class","p-ampm-picker",4,"ngIf"],[1,"p-second-picker"],[1,"p-ampm-picker"],["type","button","pRipple","",1,"p-link",3,"keydown","click","keydown.enter"],[1,"p-datepicker-buttonbar"],["type","button","pButton","","pRipple","",3,"keydown","click","label","ngClass"]],template:function(i,r){i&1&&(Yr(Fkt),se(0,"span",3,0),Ne(2,sMt,5,22,"ng-template",4)(3,wOt,9,32,"div",5),ce()),i&2&&(vn(r.styleClass),J("ngClass",DL(6,Bkt,r.showIcon&&r.iconDisplay==="input",r.showIcon&&r.iconDisplay==="button",r.timeOnly,r.disabled,r.focus||r.overlayVisible))("ngStyle",r.style),Z(2),J("ngIf",!r.inline),Z(),J("ngIf",r.inline||r.overlayVisible))},dependencies:()=>[Xa,Hf,Ul,Rs,Zc,Jne,ix,LEe,BEe,zEe,E3,P_,VEe,N_],styles:[`@layer primeng{.p-calendar{position:relative;display:inline-flex;max-width:100%}.p-calendar .p-inputtext{flex:1 1 auto;width:1%;text-overflow:ellipsis}.p-calendar-w-btn .p-inputtext{border-top-right-radius:0;border-bottom-right-radius:0}.p-calendar-w-btn .p-datepicker-trigger{border-top-left-radius:0;border-bottom-left-radius:0}.p-fluid .p-calendar{display:flex}.p-fluid .p-calendar .p-inputtext{width:1%}.p-calendar .p-datepicker{min-width:100%}.p-datepicker{width:auto;position:absolute;top:0;left:0}.p-datepicker-inline{display:inline-block;position:static;overflow-x:auto}.p-datepicker-header{display:flex;align-items:center;justify-content:space-between}.p-datepicker-header .p-datepicker-title{margin:0 auto}.p-datepicker-prev,.p-datepicker-next{cursor:pointer;display:inline-flex;justify-content:center;align-items:center;overflow:hidden;position:relative}.p-datepicker-multiple-month .p-datepicker-group-container .p-datepicker-group{flex:1 1 auto}.p-datepicker-multiple-month .p-datepicker-group-container{display:flex}.p-datepicker table{width:100%;border-collapse:collapse}.p-datepicker td>span{display:flex;justify-content:center;align-items:center;cursor:pointer;margin:0 auto;overflow:hidden;position:relative}.p-monthpicker-month{width:33.3%;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;position:relative}.p-datepicker-buttonbar{display:flex;justify-content:space-between;align-items:center}.p-timepicker{display:flex;justify-content:center;align-items:center}.p-timepicker button{display:flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;position:relative}.p-timepicker>div{display:flex;align-items:center;flex-direction:column}.p-datepicker-touch-ui,.p-calendar .p-datepicker-touch-ui{position:fixed;top:50%;left:50%;min-width:80vw;transform:translate(-50%,-50%)}.p-yearpicker-year{width:50%;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;position:relative}.p-calendar-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}.p-datepicker-icon{pointer-events:none}.p-calendar-clearable{position:relative}} `],encapsulation:2,data:{animation:[jl("overlayAnimation",[nl("visibleTouchUI",qr({transform:"translate(-50%,-50%)",opacity:1})),$s("void => visible",[qr({opacity:0,transform:"scaleY(0.8)"}),Ps("{{showTransitionParams}}",qr({opacity:1,transform:"*"}))]),$s("visible => void",[Ps("{{hideTransitionParams}}",qr({opacity:0}))]),$s("void => visibleTouchUI",[qr({opacity:0,transform:"translate3d(-50%, -40%, 0) scale(0.9)"}),Ps("{{showTransitionParams}}")]),$s("visibleTouchUI => void",[Ps("{{hideTransitionParams}}",qr({opacity:0,transform:"translate3d(-50%, -40%, 0) scale(0.9)"}))])])]},changeDetection:0})}return n})(),jGe=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275mod=Oi({type:n});static \u0275inj=Mi({imports:[os,bR,Hl,JT,LEe,BEe,zEe,E3,P_,VEe,tx,bR,Hl]})}return n})();var EOt=["overlay"],IOt=["content"],TOt=["*"],AOt=(n,e,t,i,r,o,s,c,h,g,x,C,A,k)=>({"p-overlay p-component":!0,"p-overlay-modal p-component-overlay p-component-overlay-enter":n,"p-overlay-center":e,"p-overlay-top":t,"p-overlay-top-start":i,"p-overlay-top-end":r,"p-overlay-bottom":o,"p-overlay-bottom-start":s,"p-overlay-bottom-end":c,"p-overlay-left":h,"p-overlay-left-start":g,"p-overlay-left-end":x,"p-overlay-right":C,"p-overlay-right-start":A,"p-overlay-right-end":k}),DOt=(n,e,t)=>({showTransitionParams:n,hideTransitionParams:e,transform:t}),kOt=n=>({value:"visible",params:n}),MOt=n=>({mode:n}),OOt=n=>({$implicit:n});function ROt(n,e){n&1&&Pn(0)}function NOt(n,e){if(n&1){let t=Fi();se(0,"div",3,1),At("click",function(r){ht(t);let o=le(2);return pt(o.onOverlayContentClick(r))})("@overlayContentAnimation.start",function(r){ht(t);let o=le(2);return pt(o.onOverlayContentAnimationStart(r))})("@overlayContentAnimation.done",function(r){ht(t);let o=le(2);return pt(o.onOverlayContentAnimationDone(r))}),Gn(2),Ne(3,ROt,1,0,"ng-container",4),ce()}if(n&2){let t=le(2);vn(t.contentStyleClass),J("ngStyle",t.contentStyle)("ngClass","p-overlay-content")("@overlayContentAnimation",Tr(11,kOt,gh(7,DOt,t.showTransitionOptions,t.hideTransitionOptions,t.transformOptions[t.modal?t.overlayResponsiveDirection:"default"]))),Z(3),J("ngTemplateOutlet",t.contentTemplate)("ngTemplateOutletContext",Tr(15,OOt,Tr(13,MOt,t.overlayMode)))}}function POt(n,e){if(n&1){let t=Fi();se(0,"div",3,0),At("click",function(){ht(t);let r=le();return pt(r.onOverlayClick())}),Ne(2,NOt,4,17,"div",2),ce()}if(n&2){let t=le();vn(t.styleClass),J("ngStyle",t.style)("ngClass",a1e(5,AOt,[t.modal,t.modal&&t.overlayResponsiveDirection==="center",t.modal&&t.overlayResponsiveDirection==="top",t.modal&&t.overlayResponsiveDirection==="top-start",t.modal&&t.overlayResponsiveDirection==="top-end",t.modal&&t.overlayResponsiveDirection==="bottom",t.modal&&t.overlayResponsiveDirection==="bottom-start",t.modal&&t.overlayResponsiveDirection==="bottom-end",t.modal&&t.overlayResponsiveDirection==="left",t.modal&&t.overlayResponsiveDirection==="left-start",t.modal&&t.overlayResponsiveDirection==="left-end",t.modal&&t.overlayResponsiveDirection==="right",t.modal&&t.overlayResponsiveDirection==="right-start",t.modal&&t.overlayResponsiveDirection==="right-end"])),Z(2),J("ngIf",t.visible)}}var FOt={provide:Bu,useExisting:ka(()=>jEe),multi:!0},LOt=fSe([qr({transform:"{{transform}}",opacity:0}),Ps("{{showTransitionParams}}")]),BOt=fSe([Ps("{{hideTransitionParams}}",qr({transform:"{{transform}}",opacity:0}))]),jEe=(()=>{class n{document;platformId;el;renderer;config;overlayService;cd;zone;get visible(){return this._visible}set visible(t){this._visible=t,this._visible&&!this.modalVisible&&(this.modalVisible=!0)}get mode(){return this._mode||this.overlayOptions?.mode}set mode(t){this._mode=t}get style(){return Mn.merge(this._style,this.modal?this.overlayResponsiveOptions?.style:this.overlayOptions?.style)}set style(t){this._style=t}get styleClass(){return Mn.merge(this._styleClass,this.modal?this.overlayResponsiveOptions?.styleClass:this.overlayOptions?.styleClass)}set styleClass(t){this._styleClass=t}get contentStyle(){return Mn.merge(this._contentStyle,this.modal?this.overlayResponsiveOptions?.contentStyle:this.overlayOptions?.contentStyle)}set contentStyle(t){this._contentStyle=t}get contentStyleClass(){return Mn.merge(this._contentStyleClass,this.modal?this.overlayResponsiveOptions?.contentStyleClass:this.overlayOptions?.contentStyleClass)}set contentStyleClass(t){this._contentStyleClass=t}get target(){let t=this._target||this.overlayOptions?.target;return t===void 0?"@prev":t}set target(t){this._target=t}get appendTo(){return this._appendTo||this.overlayOptions?.appendTo}set appendTo(t){this._appendTo=t}get autoZIndex(){let t=this._autoZIndex||this.overlayOptions?.autoZIndex;return t===void 0?!0:t}set autoZIndex(t){this._autoZIndex=t}get baseZIndex(){let t=this._baseZIndex||this.overlayOptions?.baseZIndex;return t===void 0?0:t}set baseZIndex(t){this._baseZIndex=t}get showTransitionOptions(){let t=this._showTransitionOptions||this.overlayOptions?.showTransitionOptions;return t===void 0?".12s cubic-bezier(0, 0, 0.2, 1)":t}set showTransitionOptions(t){this._showTransitionOptions=t}get hideTransitionOptions(){let t=this._hideTransitionOptions||this.overlayOptions?.hideTransitionOptions;return t===void 0?".1s linear":t}set hideTransitionOptions(t){this._hideTransitionOptions=t}get listener(){return this._listener||this.overlayOptions?.listener}set listener(t){this._listener=t}get responsive(){return this._responsive||this.overlayOptions?.responsive}set responsive(t){this._responsive=t}get options(){return this._options}set options(t){this._options=t}visibleChange=new Kt;onBeforeShow=new Kt;onShow=new Kt;onBeforeHide=new Kt;onHide=new Kt;onAnimationStart=new Kt;onAnimationDone=new Kt;templates;overlayViewChild;contentViewChild;contentTemplate;_visible=!1;_mode;_style;_styleClass;_contentStyle;_contentStyleClass;_target;_appendTo;_autoZIndex;_baseZIndex;_showTransitionOptions;_hideTransitionOptions;_listener;_responsive;_options;modalVisible=!1;isOverlayClicked=!1;isOverlayContentClicked=!1;scrollHandler;documentClickListener;documentResizeListener;documentKeyboardListener;window;transformOptions={default:"scaleY(0.8)",center:"scale(0.7)",top:"translate3d(0px, -100%, 0px)","top-start":"translate3d(0px, -100%, 0px)","top-end":"translate3d(0px, -100%, 0px)",bottom:"translate3d(0px, 100%, 0px)","bottom-start":"translate3d(0px, 100%, 0px)","bottom-end":"translate3d(0px, 100%, 0px)",left:"translate3d(-100%, 0px, 0px)","left-start":"translate3d(-100%, 0px, 0px)","left-end":"translate3d(-100%, 0px, 0px)",right:"translate3d(100%, 0px, 0px)","right-start":"translate3d(100%, 0px, 0px)","right-end":"translate3d(100%, 0px, 0px)"};get modal(){if(hl(this.platformId))return this.mode==="modal"||this.overlayResponsiveOptions&&this.window?.matchMedia(this.overlayResponsiveOptions.media?.replace("@media","")||`(max-width: ${this.overlayResponsiveOptions.breakpoint})`).matches}get overlayMode(){return this.mode||(this.modal?"modal":"overlay")}get overlayOptions(){return Ce(Ce({},this.config?.overlayOptions),this.options)}get overlayResponsiveOptions(){return Ce(Ce({},this.overlayOptions?.responsive),this.responsive)}get overlayResponsiveDirection(){return this.overlayResponsiveOptions?.direction||"center"}get overlayEl(){return this.overlayViewChild?.nativeElement}get contentEl(){return this.contentViewChild?.nativeElement}get targetEl(){return Ft.getTargetElement(this.target,this.el?.nativeElement)}constructor(t,i,r,o,s,c,h,g){this.document=t,this.platformId=i,this.el=r,this.renderer=o,this.config=s,this.overlayService=c,this.cd=h,this.zone=g,this.window=this.document.defaultView}ngAfterContentInit(){this.templates?.forEach(t=>{switch(t.getType()){case"content":this.contentTemplate=t.template;break;default:this.contentTemplate=t.template;break}})}show(t,i=!1){this.onVisibleChange(!0),this.handleEvents("onShow",{overlay:t||this.overlayEl,target:this.targetEl,mode:this.overlayMode}),i&&Ft.focus(this.targetEl),this.modal&&Ft.addClass(this.document?.body,"p-overflow-hidden")}hide(t,i=!1){if(this.visible)this.onVisibleChange(!1),this.handleEvents("onHide",{overlay:t||this.overlayEl,target:this.targetEl,mode:this.overlayMode}),i&&Ft.focus(this.targetEl),this.modal&&Ft.removeClass(this.document?.body,"p-overflow-hidden");else return}alignOverlay(){!this.modal&&Ft.alignOverlay(this.overlayEl,this.targetEl,this.appendTo)}onVisibleChange(t){this._visible=t,this.visibleChange.emit(t)}onOverlayClick(){this.isOverlayClicked=!0}onOverlayContentClick(t){this.overlayService.add({originalEvent:t,target:this.targetEl}),this.isOverlayContentClicked=!0}onOverlayContentAnimationStart(t){switch(t.toState){case"visible":this.handleEvents("onBeforeShow",{overlay:this.overlayEl,target:this.targetEl,mode:this.overlayMode}),this.autoZIndex&&Kf.set(this.overlayMode,this.overlayEl,this.baseZIndex+this.config?.zIndex[this.overlayMode]),Ft.appendOverlay(this.overlayEl,this.appendTo==="body"?this.document.body:this.appendTo,this.appendTo),this.alignOverlay();break;case"void":this.handleEvents("onBeforeHide",{overlay:this.overlayEl,target:this.targetEl,mode:this.overlayMode}),this.modal&&Ft.addClass(this.overlayEl,"p-component-overlay-leave");break}this.handleEvents("onAnimationStart",t)}onOverlayContentAnimationDone(t){let i=this.overlayEl||t.element.parentElement;switch(t.toState){case"visible":this.visible&&this.show(i,!0),this.bindListeners();break;case"void":if(!this.visible){this.hide(i,!0),this.modalVisible=!1,this.unbindListeners(),Ft.appendOverlay(this.overlayEl,this.targetEl,this.appendTo),Kf.clear(i),this.cd.markForCheck();break}}this.handleEvents("onAnimationDone",t)}handleEvents(t,i){this[t].emit(i),this.options&&this.options[t]&&this.options[t](i),this.config?.overlayOptions&&(this.config?.overlayOptions)[t]&&(this.config?.overlayOptions)[t](i)}bindListeners(){this.unbindListeners(),this.bindScrollListener(),this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindDocumentKeyboardListener()}unbindListeners(){this.unbindScrollListener(),this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindDocumentKeyboardListener()}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new vC(this.targetEl,t=>{(this.listener?this.listener(t,{type:"scroll",mode:this.overlayMode,valid:!0}):!0)&&this.hide(t,!0)})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}bindDocumentClickListener(){this.documentClickListener||(this.documentClickListener=this.renderer.listen(this.document,"click",t=>{let r=!(this.targetEl&&(this.targetEl.isSameNode(t.target)||!this.isOverlayClicked&&this.targetEl.contains(t.target)))&&!this.isOverlayContentClicked;(this.listener?this.listener(t,{type:"outside",mode:this.overlayMode,valid:t.which!==3&&r}):r)&&this.hide(t),this.isOverlayClicked=this.isOverlayContentClicked=!1}))}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null)}bindDocumentResizeListener(){this.documentResizeListener||(this.documentResizeListener=this.renderer.listen(this.window,"resize",t=>{(this.listener?this.listener(t,{type:"resize",mode:this.overlayMode,valid:!Ft.isTouchDevice()}):!Ft.isTouchDevice())&&this.hide(t,!0)}))}unbindDocumentResizeListener(){this.documentResizeListener&&(this.documentResizeListener(),this.documentResizeListener=null)}bindDocumentKeyboardListener(){this.documentKeyboardListener||this.zone.runOutsideAngular(()=>{this.documentKeyboardListener=this.renderer.listen(this.window,"keydown",t=>{if(this.overlayOptions.hideOnEscape===!1||t.code!=="Escape")return;(this.listener?this.listener(t,{type:"keydown",mode:this.overlayMode,valid:!Ft.isTouchDevice()}):!Ft.isTouchDevice())&&this.zone.run(()=>{this.hide(t,!0)})})})}unbindDocumentKeyboardListener(){this.documentKeyboardListener&&(this.documentKeyboardListener(),this.documentKeyboardListener=null)}ngOnDestroy(){this.hide(this.overlayEl,!0),this.overlayEl&&(Ft.appendOverlay(this.overlayEl,this.targetEl,this.appendTo),Kf.clear(this.overlayEl)),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.unbindListeners()}static \u0275fac=function(i){return new(i||n)(oe(Ln),oe(va),oe(Ai),oe(Fl),oe(zu),oe(S3),oe(ur),oe(Zi))};static \u0275cmp=Ct({type:n,selectors:[["p-overlay"]],contentQueries:function(i,r,o){if(i&1&&gr(o,Ra,4),i&2){let s;Di(s=ki())&&(r.templates=s)}},viewQuery:function(i,r){if(i&1&&(Xn(EOt,5),Xn(IOt,5)),i&2){let o;Di(o=ki())&&(r.overlayViewChild=o.first),Di(o=ki())&&(r.contentViewChild=o.first)}},hostAttrs:[1,"p-element"],inputs:{visible:"visible",mode:"mode",style:"style",styleClass:"styleClass",contentStyle:"contentStyle",contentStyleClass:"contentStyleClass",target:"target",appendTo:"appendTo",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",listener:"listener",responsive:"responsive",options:"options"},outputs:{visibleChange:"visibleChange",onBeforeShow:"onBeforeShow",onShow:"onShow",onBeforeHide:"onBeforeHide",onHide:"onHide",onAnimationStart:"onAnimationStart",onAnimationDone:"onAnimationDone"},features:[Co([FOt])],ngContentSelectors:TOt,decls:1,vars:1,consts:[["overlay",""],["content",""],[3,"ngStyle","class","ngClass","click",4,"ngIf"],[3,"click","ngStyle","ngClass"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(i,r){i&1&&(Yr(),Ne(0,POt,3,20,"div",2)),i&2&&J("ngIf",r.modalVisible)},dependencies:[Xa,Ul,Rs,Zc],styles:[`@layer primeng{.p-overlay{position:absolute;top:0;left:0}.p-overlay-modal{display:flex;align-items:center;justify-content:center;position:fixed;top:0;left:0;width:100%;height:100%}.p-overlay-content{transform-origin:inherit}.p-overlay-modal>.p-overlay-content{z-index:1;width:90%}.p-overlay-top{align-items:flex-start}.p-overlay-top-start{align-items:flex-start;justify-content:flex-start}.p-overlay-top-end{align-items:flex-start;justify-content:flex-end}.p-overlay-bottom{align-items:flex-end}.p-overlay-bottom-start{align-items:flex-end;justify-content:flex-start}.p-overlay-bottom-end{align-items:flex-end;justify-content:flex-end}.p-overlay-left{justify-content:flex-start}.p-overlay-left-start{justify-content:flex-start;align-items:flex-start}.p-overlay-left-end{justify-content:flex-start;align-items:flex-end}.p-overlay-right{justify-content:flex-end}.p-overlay-right-start{justify-content:flex-end;align-items:flex-start}.p-overlay-right-end{justify-content:flex-end;align-items:flex-end}} `],encapsulation:2,data:{animation:[jl("overlayContentAnimation",[$s(":enter",[mSe(LOt)]),$s(":leave",[mSe(BOt)])])]},changeDetection:0})}return n})(),HEe=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275mod=Oi({type:n});static \u0275inj=Mi({imports:[os,Hl,Hl]})}return n})();var VOt=["element"],UOt=["content"],jOt=["*"],HOt=(n,e,t)=>({"p-scroller":!0,"p-scroller-inline":n,"p-both-scroll":e,"p-horizontal-scroll":t}),GEe=(n,e)=>({$implicit:n,options:e}),GOt=n=>({"p-scroller-loading":n}),YOt=n=>({"p-component-overlay":n}),qOt=n=>({numCols:n}),HGe=n=>({options:n}),$Ot=()=>({styleClass:"p-scroller-loading-icon"}),KOt=(n,e)=>({rows:n,columns:e});function WOt(n,e){n&1&&Pn(0)}function ZOt(n,e){if(n&1&&(er(0),Ne(1,WOt,1,0,"ng-container",10),tr()),n&2){let t=le(2);Z(),J("ngTemplateOutlet",t.contentTemplate)("ngTemplateOutletContext",ha(2,GEe,t.loadedItems,t.getContentOptions()))}}function QOt(n,e){n&1&&Pn(0)}function XOt(n,e){if(n&1&&(er(0),Ne(1,QOt,1,0,"ng-container",10),tr()),n&2){let t=e.$implicit,i=e.index,r=le(3);Z(),J("ngTemplateOutlet",r.itemTemplate)("ngTemplateOutletContext",ha(2,GEe,t,r.getOptions(i)))}}function JOt(n,e){if(n&1&&(se(0,"div",11,3),Ne(2,XOt,2,5,"ng-container",12),ce()),n&2){let t=le(2);J("ngClass",Tr(5,GOt,t.d_loading))("ngStyle",t.contentStyle),Et("data-pc-section","content"),Z(2),J("ngForOf",t.loadedItems)("ngForTrackBy",t._trackBy||t.index)}}function eRt(n,e){if(n&1&&bt(0,"div",13),n&2){let t=le(2);J("ngStyle",t.spacerStyle),Et("data-pc-section","spacer")}}function tRt(n,e){n&1&&Pn(0)}function iRt(n,e){if(n&1&&(er(0),Ne(1,tRt,1,0,"ng-container",10),tr()),n&2){let t=e.index,i=le(4);Z(),J("ngTemplateOutlet",i.loaderTemplate)("ngTemplateOutletContext",Tr(4,HGe,i.getLoaderOptions(t,i.both&&Tr(2,qOt,i._numItemsInViewport.cols))))}}function nRt(n,e){if(n&1&&(er(0),Ne(1,iRt,2,6,"ng-container",15),tr()),n&2){let t=le(3);Z(),J("ngForOf",t.loaderArr)}}function rRt(n,e){n&1&&Pn(0)}function oRt(n,e){if(n&1&&(er(0),Ne(1,rRt,1,0,"ng-container",10),tr()),n&2){let t=le(4);Z(),J("ngTemplateOutlet",t.loaderIconTemplate)("ngTemplateOutletContext",Tr(3,HGe,Ll(2,$Ot)))}}function sRt(n,e){n&1&&bt(0,"SpinnerIcon",16),n&2&&(J("styleClass","p-scroller-loading-icon pi-spin"),Et("data-pc-section","loadingIcon"))}function aRt(n,e){if(n&1&&Ne(0,oRt,2,5,"ng-container",6)(1,sRt,1,2,"ng-template",null,5,ws),n&2){let t=_r(2),i=le(3);J("ngIf",i.loaderIconTemplate)("ngIfElse",t)}}function lRt(n,e){if(n&1&&(se(0,"div",14),Ne(1,nRt,2,1,"ng-container",6)(2,aRt,3,2,"ng-template",null,4,ws),ce()),n&2){let t=_r(3),i=le(2);J("ngClass",Tr(4,YOt,!i.loaderTemplate)),Et("data-pc-section","loader"),Z(),J("ngIf",i.loaderTemplate)("ngIfElse",t)}}function cRt(n,e){if(n&1){let t=Fi();er(0),se(1,"div",7,1),At("scroll",function(r){ht(t);let o=le();return pt(o.onContainerScroll(r))}),Ne(3,ZOt,2,5,"ng-container",6)(4,JOt,3,7,"ng-template",null,2,ws)(6,eRt,1,2,"div",8)(7,lRt,4,6,"div",9),ce(),tr()}if(n&2){let t=_r(5),i=le();Z(),vn(i._styleClass),J("ngStyle",i._style)("ngClass",gh(12,HOt,i.inline,i.both,i.horizontal)),Et("id",i._id)("tabindex",i.tabindex)("data-pc-name","scroller")("data-pc-section","root"),Z(2),J("ngIf",i.contentTemplate)("ngIfElse",t),Z(3),J("ngIf",i._showSpacer),Z(),J("ngIf",!i.loaderDisabled&&i._showLoader&&i.d_loading)}}function uRt(n,e){n&1&&Pn(0)}function dRt(n,e){if(n&1&&(er(0),Ne(1,uRt,1,0,"ng-container",10),tr()),n&2){let t=le(2);Z(),J("ngTemplateOutlet",t.contentTemplate)("ngTemplateOutletContext",ha(5,GEe,t.items,ha(2,KOt,t._items,t.loadedColumns)))}}function hRt(n,e){if(n&1&&(Gn(0),Ne(1,dRt,2,8,"ng-container",17)),n&2){let t=le();Z(),J("ngIf",t.contentTemplate)}}var ere=(()=>{class n{document;platformId;renderer;cd;zone;get id(){return this._id}set id(t){this._id=t}get style(){return this._style}set style(t){this._style=t}get styleClass(){return this._styleClass}set styleClass(t){this._styleClass=t}get tabindex(){return this._tabindex}set tabindex(t){this._tabindex=t}get items(){return this._items}set items(t){this._items=t}get itemSize(){return this._itemSize}set itemSize(t){this._itemSize=t}get scrollHeight(){return this._scrollHeight}set scrollHeight(t){this._scrollHeight=t}get scrollWidth(){return this._scrollWidth}set scrollWidth(t){this._scrollWidth=t}get orientation(){return this._orientation}set orientation(t){this._orientation=t}get step(){return this._step}set step(t){this._step=t}get delay(){return this._delay}set delay(t){this._delay=t}get resizeDelay(){return this._resizeDelay}set resizeDelay(t){this._resizeDelay=t}get appendOnly(){return this._appendOnly}set appendOnly(t){this._appendOnly=t}get inline(){return this._inline}set inline(t){this._inline=t}get lazy(){return this._lazy}set lazy(t){this._lazy=t}get disabled(){return this._disabled}set disabled(t){this._disabled=t}get loaderDisabled(){return this._loaderDisabled}set loaderDisabled(t){this._loaderDisabled=t}get columns(){return this._columns}set columns(t){this._columns=t}get showSpacer(){return this._showSpacer}set showSpacer(t){this._showSpacer=t}get showLoader(){return this._showLoader}set showLoader(t){this._showLoader=t}get numToleratedItems(){return this._numToleratedItems}set numToleratedItems(t){this._numToleratedItems=t}get loading(){return this._loading}set loading(t){this._loading=t}get autoSize(){return this._autoSize}set autoSize(t){this._autoSize=t}get trackBy(){return this._trackBy}set trackBy(t){this._trackBy=t}get options(){return this._options}set options(t){this._options=t,t&&typeof t=="object"&&Object.entries(t).forEach(([i,r])=>this[`_${i}`]!==r&&(this[`_${i}`]=r))}onLazyLoad=new Kt;onScroll=new Kt;onScrollIndexChange=new Kt;elementViewChild;contentViewChild;templates;_id;_style;_styleClass;_tabindex=0;_items;_itemSize=0;_scrollHeight;_scrollWidth;_orientation="vertical";_step=0;_delay=0;_resizeDelay=10;_appendOnly=!1;_inline=!1;_lazy=!1;_disabled=!1;_loaderDisabled=!1;_columns;_showSpacer=!0;_showLoader=!1;_numToleratedItems;_loading;_autoSize=!1;_trackBy;_options;d_loading=!1;d_numToleratedItems;contentEl;contentTemplate;itemTemplate;loaderTemplate;loaderIconTemplate;first=0;last=0;page=0;isRangeChanged=!1;numItemsInViewport=0;lastScrollPos=0;lazyLoadState={};loaderArr=[];spacerStyle={};contentStyle={};scrollTimeout;resizeTimeout;initialized=!1;windowResizeListener;defaultWidth;defaultHeight;defaultContentWidth;defaultContentHeight;get vertical(){return this._orientation==="vertical"}get horizontal(){return this._orientation==="horizontal"}get both(){return this._orientation==="both"}get loadedItems(){return this._items&&!this.d_loading?this.both?this._items.slice(this._appendOnly?0:this.first.rows,this.last.rows).map(t=>this._columns?t:t.slice(this._appendOnly?0:this.first.cols,this.last.cols)):this.horizontal&&this._columns?this._items:this._items.slice(this._appendOnly?0:this.first,this.last):[]}get loadedRows(){return this.d_loading?this._loaderDisabled?this.loaderArr:[]:this.loadedItems}get loadedColumns(){return this._columns&&(this.both||this.horizontal)?this.d_loading&&this._loaderDisabled?this.both?this.loaderArr[0]:this.loaderArr:this._columns.slice(this.both?this.first.cols:this.first,this.both?this.last.cols:this.last):this._columns}constructor(t,i,r,o,s){this.document=t,this.platformId=i,this.renderer=r,this.cd=o,this.zone=s}ngOnInit(){this.setInitialState()}ngOnChanges(t){let i=!1;if(t.loading){let{previousValue:r,currentValue:o}=t.loading;this.lazy&&r!==o&&o!==this.d_loading&&(this.d_loading=o,i=!0)}if(t.orientation&&(this.lastScrollPos=this.both?{top:0,left:0}:0),t.numToleratedItems){let{previousValue:r,currentValue:o}=t.numToleratedItems;r!==o&&o!==this.d_numToleratedItems&&(this.d_numToleratedItems=o)}if(t.options){let{previousValue:r,currentValue:o}=t.options;this.lazy&&r?.loading!==o?.loading&&o?.loading!==this.d_loading&&(this.d_loading=o.loading,i=!0),r?.numToleratedItems!==o?.numToleratedItems&&o?.numToleratedItems!==this.d_numToleratedItems&&(this.d_numToleratedItems=o.numToleratedItems)}this.initialized&&!i&&(t.items?.previousValue?.length!==t.items?.currentValue?.length||t.itemSize||t.scrollHeight||t.scrollWidth)&&(this.init(),this.calculateAutoSize())}ngAfterContentInit(){this.templates.forEach(t=>{switch(t.getType()){case"content":this.contentTemplate=t.template;break;case"item":this.itemTemplate=t.template;break;case"loader":this.loaderTemplate=t.template;break;case"loadericon":this.loaderIconTemplate=t.template;break;default:this.itemTemplate=t.template;break}})}ngAfterViewInit(){Promise.resolve().then(()=>{this.viewInit()})}ngAfterViewChecked(){this.initialized||this.viewInit()}ngOnDestroy(){this.unbindResizeListener(),this.contentEl=null,this.initialized=!1}viewInit(){hl(this.platformId)&&!this.initialized&&Ft.isVisible(this.elementViewChild?.nativeElement)&&(this.setInitialState(),this.setContentEl(this.contentEl),this.init(),this.calculateAutoSize(),this.defaultWidth=Ft.getWidth(this.elementViewChild?.nativeElement),this.defaultHeight=Ft.getHeight(this.elementViewChild?.nativeElement),this.defaultContentWidth=Ft.getWidth(this.contentEl),this.defaultContentHeight=Ft.getHeight(this.contentEl),this.initialized=!0)}init(){this._disabled||(this.setSize(),this.calculateOptions(),this.setSpacerSize(),this.bindResizeListener(),this.cd.detectChanges())}setContentEl(t){this.contentEl=t||this.contentViewChild?.nativeElement||Ft.findSingle(this.elementViewChild?.nativeElement,".p-scroller-content")}setInitialState(){this.first=this.both?{rows:0,cols:0}:0,this.last=this.both?{rows:0,cols:0}:0,this.numItemsInViewport=this.both?{rows:0,cols:0}:0,this.lastScrollPos=this.both?{top:0,left:0}:0,this.d_loading=this._loading||!1,this.d_numToleratedItems=this._numToleratedItems,this.loaderArr=[],this.spacerStyle={},this.contentStyle={}}getElementRef(){return this.elementViewChild}getPageByFirst(t){return Math.floor(((t??this.first)+this.d_numToleratedItems*4)/(this._step||1))}isPageChanged(t){return this._step?this.page!==this.getPageByFirst(t??this.first):!0}scrollTo(t){this.elementViewChild?.nativeElement?.scrollTo(t)}scrollToIndex(t,i="auto"){if(this.both?t.every(o=>o>-1):t>-1){let o=this.first,{scrollTop:s=0,scrollLeft:c=0}=this.elementViewChild?.nativeElement,{numToleratedItems:h}=this.calculateNumItems(),g=this.getContentPosition(),x=this.itemSize,C=(z=0,j)=>z<=j?0:z,A=(z,j,K)=>z*j+K,k=(z=0,j=0)=>this.scrollTo({left:z,top:j,behavior:i}),O=this.both?{rows:0,cols:0}:0,F=!1,L=!1;this.both?(O={rows:C(t[0],h[0]),cols:C(t[1],h[1])},k(A(O.cols,x[1],g.left),A(O.rows,x[0],g.top)),L=this.lastScrollPos.top!==s||this.lastScrollPos.left!==c,F=O.rows!==o.rows||O.cols!==o.cols):(O=C(t,h),this.horizontal?k(A(O,x,g.left),s):k(c,A(O,x,g.top)),L=this.lastScrollPos!==(this.horizontal?c:s),F=O!==o),this.isRangeChanged=F,L&&(this.first=O)}}scrollInView(t,i,r="auto"){if(i){let{first:o,viewport:s}=this.getRenderedRange(),c=(x=0,C=0)=>this.scrollTo({left:x,top:C,behavior:r}),h=i==="to-start",g=i==="to-end";if(h){if(this.both)s.first.rows-o.rows>t[0]?c(s.first.cols*this._itemSize[1],(s.first.rows-1)*this._itemSize[0]):s.first.cols-o.cols>t[1]&&c((s.first.cols-1)*this._itemSize[1],s.first.rows*this._itemSize[0]);else if(s.first-o>t){let x=(s.first-1)*this._itemSize;this.horizontal?c(x,0):c(0,x)}}else if(g){if(this.both)s.last.rows-o.rows<=t[0]+1?c(s.first.cols*this._itemSize[1],(s.first.rows+1)*this._itemSize[0]):s.last.cols-o.cols<=t[1]+1&&c((s.first.cols+1)*this._itemSize[1],s.first.rows*this._itemSize[0]);else if(s.last-o<=t+1){let x=(s.first+1)*this._itemSize;this.horizontal?c(x,0):c(0,x)}}}else this.scrollToIndex(t,r)}getRenderedRange(){let t=(o,s)=>s||o?Math.floor(o/(s||o)):0,i=this.first,r=0;if(this.elementViewChild?.nativeElement){let{scrollTop:o,scrollLeft:s}=this.elementViewChild.nativeElement;if(this.both)i={rows:t(o,this._itemSize[0]),cols:t(s,this._itemSize[1])},r={rows:i.rows+this.numItemsInViewport.rows,cols:i.cols+this.numItemsInViewport.cols};else{let c=this.horizontal?s:o;i=t(c,this._itemSize),r=i+this.numItemsInViewport}}return{first:this.first,last:this.last,viewport:{first:i,last:r}}}calculateNumItems(){let t=this.getContentPosition(),i=(this.elementViewChild?.nativeElement?this.elementViewChild.nativeElement.offsetWidth-t.left:0)||0,r=(this.elementViewChild?.nativeElement?this.elementViewChild.nativeElement.offsetHeight-t.top:0)||0,o=(g,x)=>x||g?Math.ceil(g/(x||g)):0,s=g=>Math.ceil(g/2),c=this.both?{rows:o(r,this._itemSize[0]),cols:o(i,this._itemSize[1])}:o(this.horizontal?i:r,this._itemSize),h=this.d_numToleratedItems||(this.both?[s(c.rows),s(c.cols)]:s(c));return{numItemsInViewport:c,numToleratedItems:h}}calculateOptions(){let{numItemsInViewport:t,numToleratedItems:i}=this.calculateNumItems(),r=(c,h,g,x=!1)=>this.getLast(c+h+(cArray.from({length:t.cols})):Array.from({length:t})),this._lazy&&Promise.resolve().then(()=>{this.lazyLoadState={first:this._step?this.both?{rows:0,cols:o.cols}:0:o,last:Math.min(this._step?this._step:this.last,this.items.length)},this.handleEvents("onLazyLoad",this.lazyLoadState)})}calculateAutoSize(){this._autoSize&&!this.d_loading&&Promise.resolve().then(()=>{if(this.contentEl){this.contentEl.style.minHeight=this.contentEl.style.minWidth="auto",this.contentEl.style.position="relative",this.elementViewChild.nativeElement.style.contain="none";let[t,i]=[Ft.getWidth(this.contentEl),Ft.getHeight(this.contentEl)];t!==this.defaultContentWidth&&(this.elementViewChild.nativeElement.style.width=""),i!==this.defaultContentHeight&&(this.elementViewChild.nativeElement.style.height="");let[r,o]=[Ft.getWidth(this.elementViewChild.nativeElement),Ft.getHeight(this.elementViewChild.nativeElement)];(this.both||this.horizontal)&&(this.elementViewChild.nativeElement.style.width=rthis.elementViewChild.nativeElement.style[s]=c;this.both||this.horizontal?(o("height",r),o("width",i)):o("height",r)}}setSpacerSize(){if(this._scrollHeight!=="100%"&&this._items){let t=this.getContentPosition(),i=(r,o,s,c=0)=>this.spacerStyle=wt(Ce({},this.spacerStyle),{[`${r}`]:(o||[]).length*s+c+"px"});this.both?(i("height",this._items,this._itemSize[0],t.y),i("width",this._columns||this._items[1],this._itemSize[1],t.x)):this.horizontal?i("width",this._columns||this._items,this._itemSize,t.x):i("height",this._items,this._itemSize,t.y)}}setContentPosition(t){if(this.contentEl&&!this._appendOnly){let i=t?t.first:this.first,r=(s,c)=>s*c,o=(s=0,c=0)=>this.contentStyle=wt(Ce({},this.contentStyle),{transform:`translate3d(${s}px, ${c}px, 0)`});if(this.both)o(r(i.cols,this._itemSize[1]),r(i.rows,this._itemSize[0]));else{let s=r(i,this._itemSize);this.horizontal?o(s,0):o(0,s)}}}onScrollPositionChange(t){let i=t.target,r=this.getContentPosition(),o=(L,z)=>L?L>z?L-z:L:0,s=(L,z)=>z||L?Math.floor(L/(z||L)):0,c=(L,z,j,K,ee,ne)=>L<=ee?ee:ne?j-K-ee:z+ee-1,h=(L,z,j,K,ee,ne,X)=>L<=ne?0:Math.max(0,X?Lz?j:L-2*ne),g=(L,z,j,K,ee,ne=!1)=>{let X=z+K+2*ee;return L>=ee&&(X+=ee+1),this.getLast(X,ne)},x=o(i.scrollTop,r.top),C=o(i.scrollLeft,r.left),A=this.both?{rows:0,cols:0}:0,k=this.last,O=!1,F=this.lastScrollPos;if(this.both){let L=this.lastScrollPos.top<=x,z=this.lastScrollPos.left<=C;if(!this._appendOnly||this._appendOnly&&(L||z)){let j={rows:s(x,this._itemSize[0]),cols:s(C,this._itemSize[1])},K={rows:c(j.rows,this.first.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0],L),cols:c(j.cols,this.first.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],z)};A={rows:h(j.rows,K.rows,this.first.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0],L),cols:h(j.cols,K.cols,this.first.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],z)},k={rows:g(j.rows,A.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0]),cols:g(j.cols,A.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],!0)},O=A.rows!==this.first.rows||k.rows!==this.last.rows||A.cols!==this.first.cols||k.cols!==this.last.cols||this.isRangeChanged,F={top:x,left:C}}}else{let L=this.horizontal?C:x,z=this.lastScrollPos<=L;if(!this._appendOnly||this._appendOnly&&z){let j=s(L,this._itemSize),K=c(j,this.first,this.last,this.numItemsInViewport,this.d_numToleratedItems,z);A=h(j,K,this.first,this.last,this.numItemsInViewport,this.d_numToleratedItems,z),k=g(j,A,this.last,this.numItemsInViewport,this.d_numToleratedItems),O=A!==this.first||k!==this.last||this.isRangeChanged,F=L}}return{first:A,last:k,isRangeChanged:O,scrollPos:F}}onScrollChange(t){let{first:i,last:r,isRangeChanged:o,scrollPos:s}=this.onScrollPositionChange(t);if(o){let c={first:i,last:r};if(this.setContentPosition(c),this.first=i,this.last=r,this.lastScrollPos=s,this.handleEvents("onScrollIndexChange",c),this._lazy&&this.isPageChanged(i)){let h={first:this._step?Math.min(this.getPageByFirst(i)*this._step,this.items.length-this._step):i,last:Math.min(this._step?(this.getPageByFirst(i)+1)*this._step:r,this.items.length)};(this.lazyLoadState.first!==h.first||this.lazyLoadState.last!==h.last)&&this.handleEvents("onLazyLoad",h),this.lazyLoadState=h}}}onContainerScroll(t){if(this.handleEvents("onScroll",{originalEvent:t}),this._delay&&this.isPageChanged()){if(this.scrollTimeout&&clearTimeout(this.scrollTimeout),!this.d_loading&&this.showLoader){let{isRangeChanged:i}=this.onScrollPositionChange(t);(i||(this._step?this.isPageChanged():!1))&&(this.d_loading=!0,this.cd.detectChanges())}this.scrollTimeout=setTimeout(()=>{this.onScrollChange(t),this.d_loading&&this.showLoader&&(!this._lazy||this._loading===void 0)&&(this.d_loading=!1,this.page=this.getPageByFirst(),this.cd.detectChanges())},this._delay)}else!this.d_loading&&this.onScrollChange(t)}bindResizeListener(){hl(this.platformId)&&(this.windowResizeListener||this.zone.runOutsideAngular(()=>{let t=this.document.defaultView,i=Ft.isTouchDevice()?"orientationchange":"resize";this.windowResizeListener=this.renderer.listen(t,i,this.onWindowResize.bind(this))}))}unbindResizeListener(){this.windowResizeListener&&(this.windowResizeListener(),this.windowResizeListener=null)}onWindowResize(){this.resizeTimeout&&clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(()=>{if(Ft.isVisible(this.elementViewChild?.nativeElement)){let[t,i]=[Ft.getWidth(this.elementViewChild?.nativeElement),Ft.getHeight(this.elementViewChild?.nativeElement)],[r,o]=[t!==this.defaultWidth,i!==this.defaultHeight];(this.both?r||o:this.horizontal?r:this.vertical?o:!1)&&this.zone.run(()=>{this.d_numToleratedItems=this._numToleratedItems,this.defaultWidth=t,this.defaultHeight=i,this.defaultContentWidth=Ft.getWidth(this.contentEl),this.defaultContentHeight=Ft.getHeight(this.contentEl),this.init(),this.calculateAutoSize()})}},this._resizeDelay)}handleEvents(t,i){return this.options&&this.options[t]?this.options[t](i):this[t].emit(i)}getContentOptions(){return{contentStyleClass:`p-scroller-content ${this.d_loading?"p-scroller-loading":""}`,items:this.loadedItems,getItemOptions:t=>this.getOptions(t),loading:this.d_loading,getLoaderOptions:(t,i)=>this.getLoaderOptions(t,i),itemSize:this._itemSize,rows:this.loadedRows,columns:this.loadedColumns,spacerStyle:this.spacerStyle,contentStyle:this.contentStyle,vertical:this.vertical,horizontal:this.horizontal,both:this.both}}getOptions(t){let i=(this._items||[]).length,r=this.both?this.first.rows+t:this.first+t;return{index:r,count:i,first:r===0,last:r===i-1,even:r%2===0,odd:r%2!==0}}getLoaderOptions(t,i){let r=this.loaderArr.length;return Ce({index:t,count:r,first:t===0,last:t===r-1,even:t%2===0,odd:t%2!==0},i)}static \u0275fac=function(i){return new(i||n)(oe(Ln),oe(va),oe(Fl),oe(ur),oe(Zi))};static \u0275cmp=Ct({type:n,selectors:[["p-scroller"]],contentQueries:function(i,r,o){if(i&1&&gr(o,Ra,4),i&2){let s;Di(s=ki())&&(r.templates=s)}},viewQuery:function(i,r){if(i&1&&(Xn(VOt,5),Xn(UOt,5)),i&2){let o;Di(o=ki())&&(r.elementViewChild=o.first),Di(o=ki())&&(r.contentViewChild=o.first)}},hostAttrs:[1,"p-scroller-viewport","p-element"],inputs:{id:"id",style:"style",styleClass:"styleClass",tabindex:"tabindex",items:"items",itemSize:"itemSize",scrollHeight:"scrollHeight",scrollWidth:"scrollWidth",orientation:"orientation",step:"step",delay:"delay",resizeDelay:"resizeDelay",appendOnly:"appendOnly",inline:"inline",lazy:"lazy",disabled:"disabled",loaderDisabled:"loaderDisabled",columns:"columns",showSpacer:"showSpacer",showLoader:"showLoader",numToleratedItems:"numToleratedItems",loading:"loading",autoSize:"autoSize",trackBy:"trackBy",options:"options"},outputs:{onLazyLoad:"onLazyLoad",onScroll:"onScroll",onScrollIndexChange:"onScrollIndexChange"},features:[eo],ngContentSelectors:jOt,decls:3,vars:2,consts:[["disabledContainer",""],["element",""],["buildInContent",""],["content",""],["buildInLoader",""],["buildInLoaderIcon",""],[4,"ngIf","ngIfElse"],[3,"scroll","ngStyle","ngClass"],["class","p-scroller-spacer",3,"ngStyle",4,"ngIf"],["class","p-scroller-loader",3,"ngClass",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"p-scroller-content",3,"ngClass","ngStyle"],[4,"ngFor","ngForOf","ngForTrackBy"],[1,"p-scroller-spacer",3,"ngStyle"],[1,"p-scroller-loader",3,"ngClass"],[4,"ngFor","ngForOf"],[3,"styleClass"],[4,"ngIf"]],template:function(i,r){if(i&1&&(Yr(),Ne(0,cRt,8,16,"ng-container",6)(1,hRt,2,1,"ng-template",null,0,ws)),i&2){let o=_r(2);J("ngIf",!r._disabled)("ngIfElse",o)}},dependencies:()=>[Xa,Hf,Ul,Rs,Zc,XT],styles:[`@layer primeng{p-scroller{flex:1;outline:0 none}.p-scroller{position:relative;overflow:auto;contain:strict;transform:translateZ(0);will-change:scroll-position;outline:0 none}.p-scroller-content{position:absolute;top:0;left:0;min-height:100%;min-width:100%;will-change:transform}.p-scroller-spacer{position:absolute;top:0;left:0;height:1px;width:1px;transform-origin:0 0;pointer-events:none}.p-scroller-loader{position:sticky;top:0;left:0;width:100%;height:100%}.p-scroller-loader.p-component-overlay{display:flex;align-items:center;justify-content:center}.p-scroller-loading-icon{scale:2}.p-scroller-inline .p-scroller-content{position:static}} `],encapsulation:2})}return n})(),I3=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275mod=Oi({type:n});static \u0275inj=Mi({imports:[os,Hl,XT,Hl]})}return n})();var YGe=(()=>{class n{platformId;el;zone;config;renderer;viewContainer;tooltipPosition;tooltipEvent="hover";appendTo;positionStyle;tooltipStyleClass;tooltipZIndex;escape=!0;showDelay;hideDelay;life;positionTop;positionLeft;autoHide=!0;fitContent=!0;hideOnEscape=!0;content;get disabled(){return this._disabled}set disabled(t){this._disabled=t,this.deactivate()}tooltipOptions;_tooltipOptions={tooltipLabel:null,tooltipPosition:"right",tooltipEvent:"hover",appendTo:"body",positionStyle:null,tooltipStyleClass:null,tooltipZIndex:"auto",escape:!0,disabled:null,showDelay:null,hideDelay:null,positionTop:null,positionLeft:null,life:null,autoHide:!0,hideOnEscape:!0,id:rl()+"_tooltip"};_disabled;container;styleClass;tooltipText;showTimeout;hideTimeout;active;mouseEnterListener;mouseLeaveListener;containerMouseleaveListener;clickListener;focusListener;blurListener;scrollHandler;resizeListener;interactionInProgress=!1;constructor(t,i,r,o,s,c){this.platformId=t,this.el=i,this.zone=r,this.config=o,this.renderer=s,this.viewContainer=c}ngAfterViewInit(){hl(this.platformId)&&this.zone.runOutsideAngular(()=>{let t=this.getOption("tooltipEvent");if((t==="hover"||t==="both")&&(this.mouseEnterListener=this.onMouseEnter.bind(this),this.mouseLeaveListener=this.onMouseLeave.bind(this),this.clickListener=this.onInputClick.bind(this),this.el.nativeElement.addEventListener("mouseenter",this.mouseEnterListener),this.el.nativeElement.addEventListener("click",this.clickListener),this.el.nativeElement.addEventListener("mouseleave",this.mouseLeaveListener)),t==="focus"||t==="both"){this.focusListener=this.onFocus.bind(this),this.blurListener=this.onBlur.bind(this);let i=this.getTarget(this.el.nativeElement);i.addEventListener("focus",this.focusListener),i.addEventListener("blur",this.blurListener)}})}ngOnChanges(t){t.tooltipPosition&&this.setOption({tooltipPosition:t.tooltipPosition.currentValue}),t.tooltipEvent&&this.setOption({tooltipEvent:t.tooltipEvent.currentValue}),t.appendTo&&this.setOption({appendTo:t.appendTo.currentValue}),t.positionStyle&&this.setOption({positionStyle:t.positionStyle.currentValue}),t.tooltipStyleClass&&this.setOption({tooltipStyleClass:t.tooltipStyleClass.currentValue}),t.tooltipZIndex&&this.setOption({tooltipZIndex:t.tooltipZIndex.currentValue}),t.escape&&this.setOption({escape:t.escape.currentValue}),t.showDelay&&this.setOption({showDelay:t.showDelay.currentValue}),t.hideDelay&&this.setOption({hideDelay:t.hideDelay.currentValue}),t.life&&this.setOption({life:t.life.currentValue}),t.positionTop&&this.setOption({positionTop:t.positionTop.currentValue}),t.positionLeft&&this.setOption({positionLeft:t.positionLeft.currentValue}),t.disabled&&this.setOption({disabled:t.disabled.currentValue}),t.content&&(this.setOption({tooltipLabel:t.content.currentValue}),this.active&&(t.content.currentValue?this.container&&this.container.offsetParent?(this.updateText(),this.align()):this.show():this.hide())),t.autoHide&&this.setOption({autoHide:t.autoHide.currentValue}),t.id&&this.setOption({id:t.id.currentValue}),t.tooltipOptions&&(this._tooltipOptions=Ce(Ce({},this._tooltipOptions),t.tooltipOptions.currentValue),this.deactivate(),this.active&&(this.getOption("tooltipLabel")?this.container&&this.container.offsetParent?(this.updateText(),this.align()):this.show():this.hide()))}isAutoHide(){return this.getOption("autoHide")}onMouseEnter(t){!this.container&&!this.showTimeout&&this.activate()}onMouseLeave(t){this.isAutoHide()?this.deactivate():!(Ft.hasClass(t.relatedTarget,"p-tooltip")||Ft.hasClass(t.relatedTarget,"p-tooltip-text")||Ft.hasClass(t.relatedTarget,"p-tooltip-arrow"))&&this.deactivate()}onFocus(t){this.activate()}onBlur(t){this.deactivate()}onInputClick(t){this.deactivate()}onPressEscape(){this.hideOnEscape&&this.deactivate()}activate(){if(!this.interactionInProgress&&(this.active=!0,this.clearHideTimeout(),this.getOption("showDelay")?this.showTimeout=setTimeout(()=>{this.show()},this.getOption("showDelay")):this.show(),this.getOption("life"))){let t=this.getOption("showDelay")?this.getOption("life")+this.getOption("showDelay"):this.getOption("life");this.hideTimeout=setTimeout(()=>{this.hide()},t)}this.interactionInProgress=!0}deactivate(){this.interactionInProgress=!1,this.active=!1,this.clearShowTimeout(),this.getOption("hideDelay")?(this.clearHideTimeout(),this.hideTimeout=setTimeout(()=>{this.hide()},this.getOption("hideDelay"))):this.hide()}create(){this.container&&(this.clearHideTimeout(),this.remove()),this.container=document.createElement("div"),this.container.setAttribute("id",this.getOption("id")),this.container.setAttribute("role","tooltip");let t=document.createElement("div");t.className="p-tooltip-arrow",this.container.appendChild(t),this.tooltipText=document.createElement("div"),this.tooltipText.className="p-tooltip-text",this.updateText(),this.getOption("positionStyle")&&(this.container.style.position=this.getOption("positionStyle")),this.container.appendChild(this.tooltipText),this.getOption("appendTo")==="body"?document.body.appendChild(this.container):this.getOption("appendTo")==="target"?Ft.appendChild(this.container,this.el.nativeElement):Ft.appendChild(this.container,this.getOption("appendTo")),this.container.style.display="inline-block",this.fitContent&&(this.container.style.width="fit-content"),this.isAutoHide()?this.container.style.pointerEvents="none":(this.container.style.pointerEvents="unset",this.bindContainerMouseleaveListener())}bindContainerMouseleaveListener(){if(!this.containerMouseleaveListener){let t=this.container??this.container.nativeElement;this.containerMouseleaveListener=this.renderer.listen(t,"mouseleave",i=>{this.deactivate()})}}unbindContainerMouseleaveListener(){this.containerMouseleaveListener&&(this.bindContainerMouseleaveListener(),this.containerMouseleaveListener=null)}show(){if(!this.getOption("tooltipLabel")||this.getOption("disabled"))return;this.create(),this.el.nativeElement.closest("p-dialog")?setTimeout(()=>{this.container&&this.align()},100):this.align(),Ft.fadeIn(this.container,250),this.getOption("tooltipZIndex")==="auto"?Kf.set("tooltip",this.container,this.config.zIndex.tooltip):this.container.style.zIndex=this.getOption("tooltipZIndex"),this.bindDocumentResizeListener(),this.bindScrollListener()}hide(){this.getOption("tooltipZIndex")==="auto"&&Kf.clear(this.container),this.remove()}updateText(){let t=this.getOption("tooltipLabel");if(t instanceof qa){let i=this.viewContainer.createEmbeddedView(t);i.detectChanges(),i.rootNodes.forEach(r=>this.tooltipText.appendChild(r))}else this.getOption("escape")?(this.tooltipText.innerHTML="",this.tooltipText.appendChild(document.createTextNode(t))):this.tooltipText.innerHTML=t}align(){switch(this.getOption("tooltipPosition")){case"top":this.alignTop(),this.isOutOfBounds()&&(this.alignBottom(),this.isOutOfBounds()&&(this.alignRight(),this.isOutOfBounds()&&this.alignLeft()));break;case"bottom":this.alignBottom(),this.isOutOfBounds()&&(this.alignTop(),this.isOutOfBounds()&&(this.alignRight(),this.isOutOfBounds()&&this.alignLeft()));break;case"left":this.alignLeft(),this.isOutOfBounds()&&(this.alignRight(),this.isOutOfBounds()&&(this.alignTop(),this.isOutOfBounds()&&this.alignBottom()));break;case"right":this.alignRight(),this.isOutOfBounds()&&(this.alignLeft(),this.isOutOfBounds()&&(this.alignTop(),this.isOutOfBounds()&&this.alignBottom()));break}}getHostOffset(){if(this.getOption("appendTo")==="body"||this.getOption("appendTo")==="target"){let t=this.el.nativeElement.getBoundingClientRect(),i=t.left+Ft.getWindowScrollLeft(),r=t.top+Ft.getWindowScrollTop();return{left:i,top:r}}else return{left:0,top:0}}alignRight(){this.preAlign("right");let t=this.activeElement,i=this.getHostOffset(),r=i.left+Ft.getOuterWidth(t),o=i.top+(Ft.getOuterHeight(t)-Ft.getOuterHeight(this.container))/2;this.container.style.left=r+this.getOption("positionLeft")+"px",this.container.style.top=o+this.getOption("positionTop")+"px"}get activeElement(){return this.el.nativeElement.nodeName.includes("P-")?Ft.findSingle(this.el.nativeElement,".p-component")||this.el.nativeElement:this.el.nativeElement}alignLeft(){this.preAlign("left");let t=this.getHostOffset(),i=t.left-Ft.getOuterWidth(this.container),r=t.top+(Ft.getOuterHeight(this.el.nativeElement)-Ft.getOuterHeight(this.container))/2;this.container.style.left=i+this.getOption("positionLeft")+"px",this.container.style.top=r+this.getOption("positionTop")+"px"}alignTop(){this.preAlign("top");let t=this.getHostOffset(),i=t.left+(Ft.getOuterWidth(this.el.nativeElement)-Ft.getOuterWidth(this.container))/2,r=t.top-Ft.getOuterHeight(this.container);this.container.style.left=i+this.getOption("positionLeft")+"px",this.container.style.top=r+this.getOption("positionTop")+"px"}alignBottom(){this.preAlign("bottom");let t=this.getHostOffset(),i=t.left+(Ft.getOuterWidth(this.el.nativeElement)-Ft.getOuterWidth(this.container))/2,r=t.top+Ft.getOuterHeight(this.el.nativeElement);this.container.style.left=i+this.getOption("positionLeft")+"px",this.container.style.top=r+this.getOption("positionTop")+"px"}setOption(t){this._tooltipOptions=Ce(Ce({},this._tooltipOptions),t)}getOption(t){return this._tooltipOptions[t]}getTarget(t){return Ft.hasClass(t,"p-inputwrapper")?Ft.findSingle(t,"input"):t.querySelector(".p-component")||t}preAlign(t){this.container.style.left="-999px",this.container.style.top="-999px";let i="p-tooltip p-component p-tooltip-"+t;this.container.className=this.getOption("tooltipStyleClass")?i+" "+this.getOption("tooltipStyleClass"):i}isOutOfBounds(){let t=this.container.getBoundingClientRect(),i=t.top,r=t.left,o=Ft.getOuterWidth(this.container),s=Ft.getOuterHeight(this.container),c=Ft.getViewport();return r+o>c.width||r<0||i<0||i+s>c.height}onWindowResize(t){this.hide()}bindDocumentResizeListener(){this.zone.runOutsideAngular(()=>{this.resizeListener=this.onWindowResize.bind(this),window.addEventListener("resize",this.resizeListener)})}unbindDocumentResizeListener(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new vC(this.el.nativeElement,()=>{this.container&&this.hide()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}unbindEvents(){let t=this.getOption("tooltipEvent");if((t==="hover"||t==="both")&&(this.el.nativeElement.removeEventListener("mouseenter",this.mouseEnterListener),this.el.nativeElement.removeEventListener("mouseleave",this.mouseLeaveListener),this.el.nativeElement.removeEventListener("click",this.clickListener)),t==="focus"||t==="both"){let i=this.getTarget(this.el.nativeElement);i.removeEventListener("focus",this.focusListener),i.removeEventListener("blur",this.blurListener)}this.unbindDocumentResizeListener()}remove(){this.container&&this.container.parentElement&&(this.getOption("appendTo")==="body"?document.body.removeChild(this.container):this.getOption("appendTo")==="target"?this.el.nativeElement.removeChild(this.container):Ft.removeChild(this.container,this.getOption("appendTo"))),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.unbindContainerMouseleaveListener(),this.clearTimeouts(),this.container=null,this.scrollHandler=null}clearShowTimeout(){this.showTimeout&&(clearTimeout(this.showTimeout),this.showTimeout=null)}clearHideTimeout(){this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=null)}clearTimeouts(){this.clearShowTimeout(),this.clearHideTimeout()}ngOnDestroy(){this.unbindEvents(),this.container&&Kf.clear(this.container),this.remove(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null)}static \u0275fac=function(i){return new(i||n)(oe(va),oe(Ai),oe(Zi),oe(zu),oe(Fl),oe(Sc))};static \u0275dir=Ki({type:n,selectors:[["","pTooltip",""]],hostAttrs:[1,"p-element"],hostBindings:function(i,r){i&1&&At("keydown.escape",function(s){return r.onPressEscape(s)},!1,xVe)},inputs:{tooltipPosition:"tooltipPosition",tooltipEvent:"tooltipEvent",appendTo:"appendTo",positionStyle:"positionStyle",tooltipStyleClass:"tooltipStyleClass",tooltipZIndex:"tooltipZIndex",escape:[2,"escape","escape",Ht],showDelay:[2,"showDelay","showDelay",xr],hideDelay:[2,"hideDelay","hideDelay",xr],life:[2,"life","life",xr],positionTop:[2,"positionTop","positionTop",xr],positionLeft:[2,"positionLeft","positionLeft",xr],autoHide:[2,"autoHide","autoHide",Ht],fitContent:[2,"fitContent","fitContent",Ht],hideOnEscape:[2,"hideOnEscape","hideOnEscape",Ht],content:[0,"pTooltip","content"],disabled:[0,"tooltipDisabled","disabled"],tooltipOptions:"tooltipOptions"},features:[Ir,eo]})}return n})(),qGe=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275mod=Oi({type:n});static \u0275inj=Mi({imports:[os]})}return n})();var tA=(()=>{class n extends Po{static \u0275fac=(()=>{let t;return function(r){return(t||(t=Qn(n)))(r||n)}})();static \u0275cmp=Ct({type:n,selectors:[["CheckIcon"]],standalone:!0,features:[Li,Ot],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M4.86199 11.5948C4.78717 11.5923 4.71366 11.5745 4.64596 11.5426C4.57826 11.5107 4.51779 11.4652 4.46827 11.4091L0.753985 7.69483C0.683167 7.64891 0.623706 7.58751 0.580092 7.51525C0.536478 7.44299 0.509851 7.36177 0.502221 7.27771C0.49459 7.19366 0.506156 7.10897 0.536046 7.03004C0.565935 6.95111 0.613367 6.88 0.674759 6.82208C0.736151 6.76416 0.8099 6.72095 0.890436 6.69571C0.970973 6.67046 1.05619 6.66385 1.13966 6.67635C1.22313 6.68886 1.30266 6.72017 1.37226 6.76792C1.44186 6.81567 1.4997 6.8786 1.54141 6.95197L4.86199 10.2503L12.6397 2.49483C12.7444 2.42694 12.8689 2.39617 12.9932 2.40745C13.1174 2.41873 13.2343 2.47141 13.3251 2.55705C13.4159 2.64268 13.4753 2.75632 13.4938 2.87973C13.5123 3.00315 13.4888 3.1292 13.4271 3.23768L5.2557 11.4091C5.20618 11.4652 5.14571 11.5107 5.07801 11.5426C5.01031 11.5745 4.9368 11.5923 4.86199 11.5948Z","fill","currentColor"]],template:function(i,r){i&1&&(Rr(),se(0,"svg",0),bt(1,"path",1),ce()),i&2&&(vn(r.getClassNames()),Et("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role))},encapsulation:2})}return n})();var YEe=(()=>{class n extends Po{static \u0275fac=(()=>{let t;return function(r){return(t||(t=Qn(n)))(r||n)}})();static \u0275cmp=Ct({type:n,selectors:[["BlankIcon"]],standalone:!0,features:[Li,Ot],decls:2,vars:0,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg","v-bind","pti()"],["width","1","height","1","fill","currentColor","fill-opacity","0"]],template:function(i,r){i&1&&(Rr(),se(0,"svg",0),bt(1,"rect",1),ce())},encapsulation:2})}return n})();var qEe=(()=>{class n extends Po{pathId;ngOnInit(){this.pathId="url(#"+rl()+")"}static \u0275fac=(()=>{let t;return function(r){return(t||(t=Qn(n)))(r||n)}})();static \u0275cmp=Ct({type:n,selectors:[["SearchIcon"]],standalone:!0,features:[Li,Ot],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M2.67602 11.0265C3.6661 11.688 4.83011 12.0411 6.02086 12.0411C6.81149 12.0411 7.59438 11.8854 8.32483 11.5828C8.87005 11.357 9.37808 11.0526 9.83317 10.6803L12.9769 13.8241C13.0323 13.8801 13.0983 13.9245 13.171 13.9548C13.2438 13.985 13.3219 14.0003 13.4007 14C13.4795 14.0003 13.5575 13.985 13.6303 13.9548C13.7031 13.9245 13.7691 13.8801 13.8244 13.8241C13.9367 13.7116 13.9998 13.5592 13.9998 13.4003C13.9998 13.2414 13.9367 13.089 13.8244 12.9765L10.6807 9.8328C11.053 9.37773 11.3573 8.86972 11.5831 8.32452C11.8857 7.59408 12.0414 6.81119 12.0414 6.02056C12.0414 4.8298 11.6883 3.66579 11.0268 2.67572C10.3652 1.68564 9.42494 0.913972 8.32483 0.45829C7.22472 0.00260857 6.01418 -0.116618 4.84631 0.115686C3.67844 0.34799 2.60568 0.921393 1.76369 1.76338C0.921698 2.60537 0.348296 3.67813 0.115991 4.84601C-0.116313 6.01388 0.00291375 7.22441 0.458595 8.32452C0.914277 9.42464 1.68595 10.3649 2.67602 11.0265ZM3.35565 2.0158C4.14456 1.48867 5.07206 1.20731 6.02086 1.20731C7.29317 1.20731 8.51338 1.71274 9.41304 2.6124C10.3127 3.51206 10.8181 4.73226 10.8181 6.00457C10.8181 6.95337 10.5368 7.88088 10.0096 8.66978C9.48251 9.45868 8.73328 10.0736 7.85669 10.4367C6.98011 10.7997 6.01554 10.8947 5.08496 10.7096C4.15439 10.5245 3.2996 10.0676 2.62869 9.39674C1.95778 8.72583 1.50089 7.87104 1.31579 6.94046C1.13068 6.00989 1.22568 5.04532 1.58878 4.16874C1.95187 3.29215 2.56675 2.54292 3.35565 2.0158Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(i,r){i&1&&(Rr(),se(0,"svg",0)(1,"g"),bt(2,"path",1),ce(),se(3,"defs")(4,"clipPath",2),bt(5,"rect",3),ce()()()),i&2&&(vn(r.getClassNames()),Et("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role),Z(),Et("clip-path",r.pathId),Z(3),J("id",r.pathId))},encapsulation:2})}return n})();var BG=n=>({height:n}),fRt=(n,e,t)=>({"p-dropdown-item":!0,"p-highlight":n,"p-disabled":e,"p-focus":t}),$Ee=n=>({$implicit:n});function mRt(n,e){n&1&&bt(0,"CheckIcon",4),n&2&&J("styleClass","p-dropdown-check-icon")}function gRt(n,e){n&1&&bt(0,"BlankIcon",4),n&2&&J("styleClass","p-dropdown-blank-icon")}function _Rt(n,e){if(n&1&&(er(0),Ne(1,mRt,1,1,"CheckIcon",3)(2,gRt,1,1,"BlankIcon",3),tr()),n&2){let t=le();Z(),J("ngIf",t.selected),Z(),J("ngIf",!t.selected)}}function vRt(n,e){if(n&1&&(se(0,"span"),yt(1),ce()),n&2){let t,i=le();Z(),jn((t=i.label)!==null&&t!==void 0?t:"empty")}}function yRt(n,e){n&1&&Pn(0)}var bRt=["container"],xRt=["filter"],wRt=["focusInput"],CRt=["editableInput"],SRt=["items"],ERt=["scroller"],IRt=["overlay"],TRt=["firstHiddenFocusableEl"],ARt=["lastHiddenFocusableEl"],DRt=n=>({"max-height":n}),$Ge=n=>({options:n}),kRt=n=>({"p-variant-filled":n}),KGe=(n,e)=>({$implicit:n,options:e}),MRt=()=>({});function ORt(n,e){if(n&1&&(er(0),yt(1),tr()),n&2){let t=le(2);Z(),jn(t.label()==="p-emptylabel"?"\xA0":t.label())}}function RRt(n,e){if(n&1&&Pn(0,25),n&2){let t=le(2);J("ngTemplateOutlet",t.selectedItemTemplate)("ngTemplateOutletContext",Tr(2,$Ee,t.selectedOption))}}function NRt(n,e){if(n&1&&(se(0,"span"),yt(1),ce()),n&2){let t=le(3);Z(),jn(t.label()==="p-emptylabel"?"\xA0":t.label())}}function PRt(n,e){if(n&1&&Ne(0,NRt,2,1,"span",18),n&2){let t=le(2);J("ngIf",t.isSelectedOptionEmpty())}}function FRt(n,e){if(n&1){let t=Fi();se(0,"span",23,3),At("focus",function(r){ht(t);let o=le();return pt(o.onInputFocus(r))})("blur",function(r){ht(t);let o=le();return pt(o.onInputBlur(r))})("keydown",function(r){ht(t);let o=le();return pt(o.onKeyDown(r))}),Ne(2,ORt,2,1,"ng-container",20)(3,RRt,1,4,"ng-container",24)(4,PRt,1,1,"ng-template",null,4,ws),ce()}if(n&2){let t,i=_r(5),r=le();J("ngClass",r.inputClass)("pTooltip",r.tooltip)("tooltipPosition",r.tooltipPosition)("positionStyle",r.tooltipPositionStyle)("tooltipStyleClass",r.tooltipStyleClass)("autofocus",r.autofocus),Et("aria-disabled",r.disabled)("id",r.inputId)("aria-label",r.ariaLabel||(r.label()==="p-emptylabel"?void 0:r.label()))("aria-labelledby",r.ariaLabelledBy)("aria-haspopup","listbox")("aria-expanded",(t=r.overlayVisible)!==null&&t!==void 0?t:!1)("aria-controls",r.overlayVisible?r.id+"_list":null)("tabindex",r.disabled?-1:r.tabindex)("aria-activedescendant",r.focused?r.focusedOptionId:void 0)("aria-required",r.required)("required",r.required),Z(2),J("ngIf",!r.selectedItemTemplate)("ngIfElse",i),Z(),J("ngIf",r.selectedItemTemplate&&!r.isSelectedOptionEmpty())}}function LRt(n,e){if(n&1){let t=Fi();se(0,"input",26,5),At("input",function(r){ht(t);let o=le();return pt(o.onEditableInput(r))})("keydown",function(r){ht(t);let o=le();return pt(o.onKeyDown(r))})("focus",function(r){ht(t);let o=le();return pt(o.onInputFocus(r))})("blur",function(r){ht(t);let o=le();return pt(o.onInputBlur(r))}),ce()}if(n&2){let t=le();J("ngClass",t.inputClass)("disabled",t.disabled)("autofocus",t.autofocus),Et("id",t.inputId)("maxlength",t.maxlength)("placeholder",t.modelValue()===void 0||t.modelValue()===null?t.placeholder():void 0)("aria-label",t.ariaLabel||(t.label()==="p-emptylabel"?void 0:t.label()))("aria-activedescendant",t.focused?t.focusedOptionId:void 0)}}function BRt(n,e){if(n&1){let t=Fi();se(0,"TimesIcon",29),At("click",function(r){ht(t);let o=le(2);return pt(o.clear(r))}),ce()}n&2&&(J("styleClass","p-dropdown-clear-icon"),Et("data-pc-section","clearicon"))}function zRt(n,e){}function VRt(n,e){n&1&&Ne(0,zRt,0,0,"ng-template")}function URt(n,e){if(n&1){let t=Fi();se(0,"span",30),At("click",function(r){ht(t);let o=le(2);return pt(o.clear(r))}),Ne(1,VRt,1,0,null,31),ce()}if(n&2){let t=le(2);Et("data-pc-section","clearicon"),Z(),J("ngTemplateOutlet",t.clearIconTemplate)}}function jRt(n,e){if(n&1&&(er(0),Ne(1,BRt,1,2,"TimesIcon",27)(2,URt,2,2,"span",28),tr()),n&2){let t=le();Z(),J("ngIf",!t.clearIconTemplate),Z(),J("ngIf",t.clearIconTemplate)}}function HRt(n,e){n&1&&Pn(0)}function GRt(n,e){if(n&1&&(er(0),Ne(1,HRt,1,0,"ng-container",31),tr()),n&2){let t=le(2);Z(),J("ngTemplateOutlet",t.loadingIconTemplate)}}function YRt(n,e){if(n&1&&bt(0,"span",34),n&2){let t=le(3);J("ngClass","p-dropdown-trigger-icon pi-spin "+t.loadingIcon)}}function qRt(n,e){n&1&&bt(0,"span",35),n&2&&vn("p-dropdown-trigger-icon pi pi-spinner pi-spin")}function $Rt(n,e){if(n&1&&(er(0),Ne(1,YRt,1,1,"span",32)(2,qRt,1,2,"span",33),tr()),n&2){let t=le(2);Z(),J("ngIf",t.loadingIcon),Z(),J("ngIf",!t.loadingIcon)}}function KRt(n,e){if(n&1&&(er(0),Ne(1,GRt,2,1,"ng-container",18)(2,$Rt,3,2,"ng-container",18),tr()),n&2){let t=le();Z(),J("ngIf",t.loadingIconTemplate),Z(),J("ngIf",!t.loadingIconTemplate)}}function WRt(n,e){if(n&1&&bt(0,"span",39),n&2){let t=le(3);J("ngClass",t.dropdownIcon)}}function ZRt(n,e){n&1&&bt(0,"ChevronDownIcon",40),n&2&&J("styleClass","p-dropdown-trigger-icon")}function QRt(n,e){if(n&1&&(er(0),Ne(1,WRt,1,1,"span",37)(2,ZRt,1,1,"ChevronDownIcon",38),tr()),n&2){let t=le(2);Z(),J("ngIf",t.dropdownIcon),Z(),J("ngIf",!t.dropdownIcon)}}function XRt(n,e){}function JRt(n,e){n&1&&Ne(0,XRt,0,0,"ng-template")}function e2t(n,e){if(n&1&&(se(0,"span",41),Ne(1,JRt,1,0,null,31),ce()),n&2){let t=le(2);Z(),J("ngTemplateOutlet",t.dropdownIconTemplate)}}function t2t(n,e){if(n&1&&Ne(0,QRt,3,2,"ng-container",18)(1,e2t,2,1,"span",36),n&2){let t=le();J("ngIf",!t.dropdownIconTemplate),Z(),J("ngIf",t.dropdownIconTemplate)}}function i2t(n,e){n&1&&Pn(0)}function n2t(n,e){n&1&&Pn(0)}function r2t(n,e){if(n&1&&(er(0),Ne(1,n2t,1,0,"ng-container",48),tr()),n&2){let t=le(3);Z(),J("ngTemplateOutlet",t.filterTemplate)("ngTemplateOutletContext",Tr(2,$Ge,t.filterOptions))}}function o2t(n,e){n&1&&bt(0,"SearchIcon",40),n&2&&J("styleClass","p-dropdown-filter-icon")}function s2t(n,e){}function a2t(n,e){n&1&&Ne(0,s2t,0,0,"ng-template")}function l2t(n,e){if(n&1&&(se(0,"span",52),Ne(1,a2t,1,0,null,31),ce()),n&2){let t=le(4);Z(),J("ngTemplateOutlet",t.filterIconTemplate)}}function c2t(n,e){if(n&1){let t=Fi();se(0,"div",49)(1,"input",50,10),At("input",function(r){ht(t);let o=le(3);return pt(o.onFilterInputChange(r))})("keydown",function(r){ht(t);let o=le(3);return pt(o.onFilterKeyDown(r))})("blur",function(r){ht(t);let o=le(3);return pt(o.onFilterBlur(r))}),ce(),Ne(3,o2t,1,1,"SearchIcon",38)(4,l2t,2,1,"span",51),ce()}if(n&2){let t=le(3);Z(),J("value",t._filterValue()||"")("ngClass",Tr(8,kRt,t.variant==="filled"||t.config.inputStyle()==="filled")),Et("placeholder",t.filterPlaceholder)("aria-owns",t.id+"_list")("aria-label",t.ariaFilterLabel)("aria-activedescendant",t.focusedOptionId),Z(2),J("ngIf",!t.filterIconTemplate),Z(),J("ngIf",t.filterIconTemplate)}}function u2t(n,e){if(n&1){let t=Fi();se(0,"div",47),At("click",function(r){return ht(t),pt(r.stopPropagation())}),Ne(1,r2t,2,4,"ng-container",20)(2,c2t,5,10,"ng-template",null,9,ws),ce()}if(n&2){let t=_r(3),i=le(2);Z(),J("ngIf",i.filterTemplate)("ngIfElse",t)}}function d2t(n,e){n&1&&Pn(0)}function h2t(n,e){if(n&1&&Ne(0,d2t,1,0,"ng-container",48),n&2){let t=e.$implicit,i=e.options;le(2);let r=_r(9);J("ngTemplateOutlet",r)("ngTemplateOutletContext",ha(2,KGe,t,i))}}function p2t(n,e){n&1&&Pn(0)}function f2t(n,e){if(n&1&&Ne(0,p2t,1,0,"ng-container",48),n&2){let t=e.options,i=le(4);J("ngTemplateOutlet",i.loaderTemplate)("ngTemplateOutletContext",Tr(2,$Ge,t))}}function m2t(n,e){n&1&&(er(0),Ne(1,f2t,1,4,"ng-template",54),tr())}function g2t(n,e){if(n&1){let t=Fi();se(0,"p-scroller",53,11),At("onLazyLoad",function(r){ht(t);let o=le(2);return pt(o.onLazyLoad.emit(r))}),Ne(2,h2t,1,5,"ng-template",22)(3,m2t,2,0,"ng-container",18),ce()}if(n&2){let t=le(2);xee(Tr(8,BG,t.scrollHeight)),J("items",t.visibleOptions())("itemSize",t.virtualScrollItemSize||t._itemSize)("autoSize",!0)("lazy",t.lazy)("options",t.virtualScrollOptions),Z(3),J("ngIf",t.loaderTemplate)}}function _2t(n,e){n&1&&Pn(0)}function v2t(n,e){if(n&1&&(er(0),Ne(1,_2t,1,0,"ng-container",48),tr()),n&2){le();let t=_r(9),i=le();Z(),J("ngTemplateOutlet",t)("ngTemplateOutletContext",ha(3,KGe,i.visibleOptions(),Ll(2,MRt)))}}function y2t(n,e){if(n&1&&(se(0,"span"),yt(1),ce()),n&2){let t=le(2).$implicit,i=le(3);Z(),jn(i.getOptionGroupLabel(t.optionGroup))}}function b2t(n,e){n&1&&Pn(0)}function x2t(n,e){if(n&1&&(er(0),se(1,"li",58),Ne(2,y2t,2,1,"span",18)(3,b2t,1,0,"ng-container",48),ce(),tr()),n&2){let t=le(),i=t.$implicit,r=t.index,o=le().options,s=le(2);Z(),J("ngStyle",Tr(5,BG,o.itemSize+"px")),Et("id",s.id+"_"+s.getOptionIndex(r,o)),Z(),J("ngIf",!s.groupTemplate),Z(),J("ngTemplateOutlet",s.groupTemplate)("ngTemplateOutletContext",Tr(7,$Ee,i.optionGroup))}}function w2t(n,e){if(n&1){let t=Fi();er(0),se(1,"p-dropdownItem",59),At("onClick",function(r){ht(t);let o=le().$implicit,s=le(3);return pt(s.onOptionSelect(r,o))})("onMouseEnter",function(r){ht(t);let o=le().index,s=le().options,c=le(2);return pt(c.onOptionMouseEnter(r,c.getOptionIndex(o,s)))}),ce(),tr()}if(n&2){let t=le(),i=t.$implicit,r=t.index,o=le().options,s=le(2);Z(),J("id",s.id+"_"+s.getOptionIndex(r,o))("option",i)("checkmark",s.checkmark)("selected",s.isSelected(i))("label",s.getOptionLabel(i))("disabled",s.isOptionDisabled(i))("template",s.itemTemplate)("focused",s.focusedOptionIndex()===s.getOptionIndex(r,o))("ariaPosInset",s.getAriaPosInset(s.getOptionIndex(r,o)))("ariaSetSize",s.ariaSetSize)}}function C2t(n,e){if(n&1&&Ne(0,x2t,4,9,"ng-container",18)(1,w2t,2,10,"ng-container",18),n&2){let t=e.$implicit,i=le(3);J("ngIf",i.isOptionGroup(t)),Z(),J("ngIf",!i.isOptionGroup(t))}}function S2t(n,e){if(n&1&&(er(0),yt(1),tr()),n&2){let t=le(4);Z(),ps(" ",t.emptyFilterMessageLabel," ")}}function E2t(n,e){n&1&&Pn(0,null,13)}function I2t(n,e){if(n&1&&(se(0,"li",60),Ne(1,S2t,2,1,"ng-container",20)(2,E2t,2,0,"ng-container",31),ce()),n&2){let t=le().options,i=le(2);J("ngStyle",Tr(4,BG,t.itemSize+"px")),Z(),J("ngIf",!i.emptyFilterTemplate&&!i.emptyTemplate)("ngIfElse",i.emptyFilter),Z(),J("ngTemplateOutlet",i.emptyFilterTemplate||i.emptyTemplate)}}function T2t(n,e){if(n&1&&(er(0),yt(1),tr()),n&2){let t=le(4);Z(),ps(" ",t.emptyMessageLabel," ")}}function A2t(n,e){n&1&&Pn(0,null,14)}function D2t(n,e){if(n&1&&(se(0,"li",60),Ne(1,T2t,2,1,"ng-container",20)(2,A2t,2,0,"ng-container",31),ce()),n&2){let t=le().options,i=le(2);J("ngStyle",Tr(4,BG,t.itemSize+"px")),Z(),J("ngIf",!i.emptyTemplate)("ngIfElse",i.empty),Z(),J("ngTemplateOutlet",i.emptyTemplate)}}function k2t(n,e){if(n&1&&(se(0,"ul",55,12),Ne(2,C2t,2,2,"ng-template",56)(3,I2t,3,6,"li",57)(4,D2t,3,6,"li",57),ce()),n&2){let t=e.$implicit,i=e.options,r=le(2);J("ngClass",i.contentStyleClass)("ngStyle",i.contentStyle),Et("id",r.id+"_list")("aria-label",r.listLabel),Z(2),J("ngForOf",t),Z(),J("ngIf",r.filterValue&&r.isEmpty()),Z(),J("ngIf",!r.filterValue&&r.isEmpty())}}function M2t(n,e){n&1&&Pn(0)}function O2t(n,e){if(n&1){let t=Fi();se(0,"div",42)(1,"span",43,6),At("focus",function(r){ht(t);let o=le();return pt(o.onFirstHiddenFocus(r))}),ce(),Ne(3,i2t,1,0,"ng-container",31)(4,u2t,4,2,"div",44),se(5,"div",45),Ne(6,g2t,4,10,"p-scroller",46)(7,v2t,2,6,"ng-container",18)(8,k2t,5,7,"ng-template",null,7,ws),ce(),Ne(10,M2t,1,0,"ng-container",31),se(11,"span",43,8),At("focus",function(r){ht(t);let o=le();return pt(o.onLastHiddenFocus(r))}),ce()()}if(n&2){let t=le();vn(t.panelStyleClass),J("ngClass","p-dropdown-panel p-component")("ngStyle",t.panelStyle),Z(),Et("tabindex",0)("data-p-hidden-accessible",!0)("data-p-hidden-focusable",!0),Z(2),J("ngTemplateOutlet",t.headerTemplate),Z(),J("ngIf",t.filter),Z(),J("ngStyle",Tr(16,DRt,t.virtualScroll?"auto":t.scrollHeight||"auto")),Z(),J("ngIf",t.virtualScroll),Z(),J("ngIf",!t.virtualScroll),Z(3),J("ngTemplateOutlet",t.footerTemplate),Z(),Et("tabindex",0)("data-p-hidden-accessible",!0)("data-p-hidden-focusable",!0)}}var R2t={provide:Bu,useExisting:ka(()=>zG),multi:!0},N2t=(()=>{class n{id;option;selected;focused;label;disabled;visible;itemSize;ariaPosInset;ariaSetSize;template;checkmark;onClick=new Kt;onMouseEnter=new Kt;ngOnInit(){}onOptionClick(t){this.onClick.emit(t)}onOptionMouseEnter(t){this.onMouseEnter.emit(t)}static \u0275fac=function(i){return new(i||n)};static \u0275cmp=Ct({type:n,selectors:[["p-dropdownItem"]],hostAttrs:[1,"p-element"],inputs:{id:"id",option:"option",selected:[2,"selected","selected",Ht],focused:[2,"focused","focused",Ht],label:"label",disabled:[2,"disabled","disabled",Ht],visible:[2,"visible","visible",Ht],itemSize:[2,"itemSize","itemSize",xr],ariaPosInset:"ariaPosInset",ariaSetSize:"ariaSetSize",template:"template",checkmark:[2,"checkmark","checkmark",Ht]},outputs:{onClick:"onClick",onMouseEnter:"onMouseEnter"},features:[Ir],decls:4,vars:22,consts:[["role","option","pRipple","",3,"click","mouseenter","id","ngStyle","ngClass"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"styleClass",4,"ngIf"],[3,"styleClass"]],template:function(i,r){i&1&&(se(0,"li",0),At("click",function(s){return r.onOptionClick(s)})("mouseenter",function(s){return r.onOptionMouseEnter(s)}),Ne(1,_Rt,3,2,"ng-container",1)(2,vRt,2,1,"span",1)(3,yRt,1,0,"ng-container",2),ce()),i&2&&(J("id",r.id)("ngStyle",Tr(14,BG,r.itemSize+"px"))("ngClass",gh(16,fRt,r.selected,r.disabled,r.focused)),Et("aria-label",r.label)("aria-setsize",r.ariaSetSize)("aria-posinset",r.ariaPosInset)("aria-selected",r.selected)("data-p-focused",r.focused)("data-p-highlight",r.selected)("data-p-disabled",r.disabled),Z(),J("ngIf",r.checkmark),Z(),J("ngIf",!r.template),Z(),J("ngTemplateOutlet",r.template)("ngTemplateOutletContext",Tr(20,$Ee,r.option)))},dependencies:()=>[Xa,Ul,Rs,Zc,ix,YEe,tA],encapsulation:2})}return n})(),zG=(()=>{class n{el;renderer;cd;zone;filterService;config;id;scrollHeight="200px";filter;name;style;panelStyle;styleClass;panelStyleClass;readonly;required;editable;appendTo;tabindex=0;set placeholder(t){this._placeholder.set(t)}get placeholder(){return this._placeholder.asReadonly()}loadingIcon;filterPlaceholder;filterLocale;variant="outlined";inputId;dataKey;filterBy;filterFields;autofocus;resetFilterOnHide=!1;checkmark=!1;dropdownIcon;loading=!1;optionLabel;optionValue;optionDisabled;optionGroupLabel="label";optionGroupChildren="items";autoDisplayFirst=!0;group;showClear;emptyFilterMessage="";emptyMessage="";lazy=!1;virtualScroll;virtualScrollItemSize;virtualScrollOptions;overlayOptions;ariaFilterLabel;ariaLabel;ariaLabelledBy;filterMatchMode="contains";maxlength;tooltip="";tooltipPosition="right";tooltipPositionStyle="absolute";tooltipStyleClass;focusOnHover=!1;selectOnFocus=!1;autoOptionFocus=!0;autofocusFilter=!0;get disabled(){return this._disabled}set disabled(t){t&&(this.focused=!1,this.overlayVisible&&this.hide()),this._disabled=t,this.cd.destroyed||this.cd.detectChanges()}get itemSize(){return this._itemSize}set itemSize(t){this._itemSize=t,console.warn("The itemSize property is deprecated, use virtualScrollItemSize property instead.")}_itemSize;get autoZIndex(){return this._autoZIndex}set autoZIndex(t){this._autoZIndex=t,console.warn("The autoZIndex property is deprecated since v14.2.0, use overlayOptions property instead.")}_autoZIndex;get baseZIndex(){return this._baseZIndex}set baseZIndex(t){this._baseZIndex=t,console.warn("The baseZIndex property is deprecated since v14.2.0, use overlayOptions property instead.")}_baseZIndex;get showTransitionOptions(){return this._showTransitionOptions}set showTransitionOptions(t){this._showTransitionOptions=t,console.warn("The showTransitionOptions property is deprecated since v14.2.0, use overlayOptions property instead.")}_showTransitionOptions;get hideTransitionOptions(){return this._hideTransitionOptions}set hideTransitionOptions(t){this._hideTransitionOptions=t,console.warn("The hideTransitionOptions property is deprecated since v14.2.0, use overlayOptions property instead.")}_hideTransitionOptions;get filterValue(){return this._filterValue()}set filterValue(t){setTimeout(()=>{this._filterValue.set(t)})}get options(){return this._options()}set options(t){Mn.deepEquals(t,this._options())||this._options.set(t)}onChange=new Kt;onFilter=new Kt;onFocus=new Kt;onBlur=new Kt;onClick=new Kt;onShow=new Kt;onHide=new Kt;onClear=new Kt;onLazyLoad=new Kt;containerViewChild;filterViewChild;focusInputViewChild;editableInputViewChild;itemsViewChild;scroller;overlayViewChild;firstHiddenFocusableElementOnOverlay;lastHiddenFocusableElementOnOverlay;templates;_disabled;itemsWrapper;itemTemplate;groupTemplate;loaderTemplate;selectedItemTemplate;headerTemplate;filterTemplate;footerTemplate;emptyFilterTemplate;emptyTemplate;dropdownIconTemplate;loadingIconTemplate;clearIconTemplate;filterIconTemplate;filterOptions;_options=Ab(null);_placeholder=Ab(void 0);modelValue=Ab(null);value;onModelChange=()=>{};onModelTouched=()=>{};hover;focused;overlayVisible;optionsChanged;panel;dimensionsUpdated;hoveredItem;selectedOptionUpdated;_filterValue=Ab(null);searchValue;searchIndex;searchTimeout;previousSearchChar;currentSearchChar;preventModelTouched;focusedOptionIndex=Ab(-1);labelId;listId;clicked=Ab(!1);get emptyMessageLabel(){return this.emptyMessage||this.config.getTranslation(np.EMPTY_MESSAGE)}get emptyFilterMessageLabel(){return this.emptyFilterMessage||this.config.getTranslation(np.EMPTY_FILTER_MESSAGE)}get isVisibleClearIcon(){return this.modelValue()!=null&&this.hasSelectedOption()&&this.showClear&&!this.disabled}get listLabel(){return this.config.getTranslation(np.ARIA).listLabel}get containerClass(){return{"p-dropdown p-component p-inputwrapper":!0,"p-disabled":this.disabled,"p-dropdown-clearable":this.showClear&&!this.disabled,"p-focus":this.focused,"p-inputwrapper-filled":this.modelValue()!==void 0&&this.modelValue()!==null&&!this.modelValue().length,"p-inputwrapper-focus":this.focused||this.overlayVisible,"p-variant-filled":this.variant==="filled"||this.config.inputStyle()==="filled","p-dropdown-open":this.overlayVisible}}get inputClass(){let t=this.label();return{"p-dropdown-label p-inputtext":!0,"p-placeholder":this.placeholder()&&t===this.placeholder(),"p-dropdown-label-empty":!this.editable&&!this.selectedItemTemplate&&(t==null||t==="p-emptylabel"||t.length===0)}}get panelClass(){return{"p-dropdown-panel p-component":!0,"p-input-filled":this.config.inputStyle()==="filled","p-ripple-disabled":this.config.ripple===!1}}get focusedOptionId(){return this.focusedOptionIndex()!==-1?`${this.id}_${this.focusedOptionIndex()}`:null}visibleOptions=aH(()=>{let t=this.getAllVisibleAndNonVisibleOptions();if(this._filterValue()){let r=!(this.filterBy||this.optionLabel)&&!this.filterFields&&!this.optionValue?this.options.filter(o=>o.label?o.label.toString().toLowerCase().indexOf(this._filterValue().toLowerCase().trim())!==-1:o.toString().toLowerCase().indexOf(this._filterValue().toLowerCase().trim())!==-1):this.filterService.filter(t,this.searchFields(),this._filterValue().trim(),this.filterMatchMode,this.filterLocale);if(this.group){let o=this.options||[],s=[];return o.forEach(c=>{let g=this.getOptionGroupChildren(c).filter(x=>r.includes(x));g.length>0&&s.push(wt(Ce({},c),{[typeof this.optionGroupChildren=="string"?this.optionGroupChildren:"items"]:[...g]}))}),this.flatOptions(s)}return r}return t});label=aH(()=>{let t=this.getAllVisibleAndNonVisibleOptions(),i=t.findIndex(r=>this.isOptionValueEqualsModelValue(r));return i!==-1?this.getOptionLabel(t[i]):this.placeholder()||"p-emptylabel"});filled=aH(()=>typeof this.modelValue()=="string"?!!this.modelValue():this.label()!=="p-emptylabel"&&this.modelValue()!==void 0&&this.modelValue()!==null);selectedOption;editableInputValue=aH(()=>this.getOptionLabel(this.selectedOption)||this.modelValue()||"");constructor(t,i,r,o,s,c){this.el=t,this.renderer=i,this.cd=r,this.zone=o,this.filterService=s,this.config=c,cH(()=>{let h=this.modelValue(),g=this.visibleOptions();if(g&&Mn.isNotEmpty(g)){let x=this.findSelectedOptionIndex();(x!==-1||h===void 0||typeof h=="string"&&h.length===0||this.isModelValueNotSet()||this.editable)&&(this.selectedOption=g[x])}Mn.isEmpty(g)&&(h===void 0||this.isModelValueNotSet())&&Mn.isNotEmpty(this.selectedOption)&&(this.selectedOption=null),h!==void 0&&this.editable&&this.updateEditableLabel(),this.cd.markForCheck()})}isModelValueNotSet(){return this.modelValue()===null&&!this.isOptionValueEqualsModelValue(this.selectedOption)}getAllVisibleAndNonVisibleOptions(){return this.group?this.flatOptions(this.options):this.options||[]}ngOnInit(){this.id=this.id||rl(),this.autoUpdateModel(),this.filterBy&&(this.filterOptions={filter:t=>this.onFilterInputChange(t),reset:()=>this.resetFilter()})}ngAfterViewChecked(){if(this.optionsChanged&&this.overlayVisible&&(this.optionsChanged=!1,this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.overlayViewChild&&this.overlayViewChild.alignOverlay()},1)})),this.selectedOptionUpdated&&this.itemsWrapper){let t=Ft.findSingle(this.overlayViewChild?.overlayViewChild?.nativeElement,"li.p-highlight");t&&Ft.scrollInView(this.itemsWrapper,t),this.selectedOptionUpdated=!1}}ngAfterContentInit(){this.templates.forEach(t=>{switch(t.getType()){case"item":this.itemTemplate=t.template;break;case"selectedItem":this.selectedItemTemplate=t.template;break;case"header":this.headerTemplate=t.template;break;case"filter":this.filterTemplate=t.template;break;case"footer":this.footerTemplate=t.template;break;case"emptyfilter":this.emptyFilterTemplate=t.template;break;case"empty":this.emptyTemplate=t.template;break;case"group":this.groupTemplate=t.template;break;case"loader":this.loaderTemplate=t.template;break;case"dropdownicon":this.dropdownIconTemplate=t.template;break;case"loadingicon":this.loadingIconTemplate=t.template;break;case"clearicon":this.clearIconTemplate=t.template;break;case"filtericon":this.filterIconTemplate=t.template;break;default:this.itemTemplate=t.template;break}})}flatOptions(t){return(t||[]).reduce((i,r,o)=>{i.push({optionGroup:r,group:!0,index:o});let s=this.getOptionGroupChildren(r);return s&&s.forEach(c=>i.push(c)),i},[])}autoUpdateModel(){if(this.selectOnFocus&&this.autoOptionFocus&&!this.hasSelectedOption()&&(this.focusedOptionIndex.set(this.findFirstFocusedOptionIndex()),this.onOptionSelect(null,this.visibleOptions()[this.focusedOptionIndex()],!1)),this.autoDisplayFirst&&(this.modelValue()===null||this.modelValue()===void 0)&&!this.placeholder()){let t=this.findFirstOptionIndex();this.onOptionSelect(null,this.visibleOptions()[t],!1,!0)}}onOptionSelect(t,i,r=!0,o=!1){if(!this.isSelected(i)){let s=this.getOptionValue(i);this.updateModel(s,t),this.focusedOptionIndex.set(this.findSelectedOptionIndex()),o===!1&&this.onChange.emit({originalEvent:t,value:s})}r&&this.hide(!0)}onOptionMouseEnter(t,i){this.focusOnHover&&this.changeFocusedOptionIndex(t,i)}updateModel(t,i){this.value=t,this.onModelChange(t),this.modelValue.set(t),this.selectedOptionUpdated=!0}writeValue(t){this.filter&&this.resetFilter(),this.value=t,this.allowModelChange()&&this.onModelChange(t),this.modelValue.set(this.value),this.updateEditableLabel(),this.cd.markForCheck()}allowModelChange(){return this.autoDisplayFirst&&!this.placeholder()&&(this.modelValue()===void 0||this.modelValue()===null)&&!this.editable&&this.options&&this.options.length}isSelectedOptionEmpty(){return Mn.isEmpty(this.selectedOption)}isSelected(t){return this.isValidOption(t)&&this.isOptionValueEqualsModelValue(t)}isOptionValueEqualsModelValue(t){return Mn.equals(this.modelValue(),this.getOptionValue(t),this.equalityKey())}ngAfterViewInit(){this.editable&&this.updateEditableLabel(),this.updatePlaceHolderForFloatingLabel()}updatePlaceHolderForFloatingLabel(){if(this._placeholder()!==null&&this._placeholder()!==void 0)return;let t=this.el.nativeElement.parentElement,i=t?.classList.contains("p-float-label");if(t&&i&&!this.selectedOption){let r=t.querySelector("label");r&&this._placeholder.set(r.textContent)}}updateEditableLabel(){this.editableInputViewChild&&(this.editableInputViewChild.nativeElement.value=this.getOptionLabel(this.selectedOption)||this.modelValue()||"")}clearEditableLabel(){this.editableInputViewChild&&(this.editableInputViewChild.nativeElement.value="")}getOptionIndex(t,i){return this.virtualScrollerDisabled?t:i&&i.getItemOptions(t).index}getOptionLabel(t){return this.optionLabel!==void 0&&this.optionLabel!==null?Mn.resolveFieldData(t,this.optionLabel):t&&t.label!==void 0?t.label:t}getOptionValue(t){return this.optionValue&&this.optionValue!==null?Mn.resolveFieldData(t,this.optionValue):!this.optionLabel&&t&&t.value!==void 0?t.value:t}isOptionDisabled(t){return this.getOptionValue(this.modelValue())===this.getOptionValue(t)||this.getOptionLabel(this.modelValue()===this.getOptionLabel(t))&&t.disabled===!1?!1:this.optionDisabled?Mn.resolveFieldData(t,this.optionDisabled):t&&t.disabled!==void 0?t.disabled:!1}getOptionGroupLabel(t){return this.optionGroupLabel!==void 0&&this.optionGroupLabel!==null?Mn.resolveFieldData(t,this.optionGroupLabel):t&&t.label!==void 0?t.label:t}getOptionGroupChildren(t){return this.optionGroupChildren!==void 0&&this.optionGroupChildren!==null?Mn.resolveFieldData(t,this.optionGroupChildren):t.items}getAriaPosInset(t){return(this.optionGroupLabel?t-this.visibleOptions().slice(0,t).filter(i=>this.isOptionGroup(i)).length:t)+1}get ariaSetSize(){return this.visibleOptions().filter(t=>!this.isOptionGroup(t)).length}resetFilter(){this._filterValue.set(null),this.filterViewChild&&this.filterViewChild.nativeElement&&(this.filterViewChild.nativeElement.value="")}registerOnChange(t){this.onModelChange=t}registerOnTouched(t){this.onModelTouched=t}setDisabledState(t){this.disabled=t,this.cd.markForCheck()}onContainerClick(t){this.disabled||this.readonly||this.loading||(this.focusInputViewChild?.nativeElement.focus({preventScroll:!0}),!(t.target.tagName==="INPUT"||t.target.getAttribute("data-pc-section")==="clearicon"||t.target.closest('[data-pc-section="clearicon"]'))&&((!this.overlayViewChild||!this.overlayViewChild.el.nativeElement.contains(t.target))&&(this.overlayVisible?this.hide(!0):this.show(!0)),this.onClick.emit(t),this.clicked.set(!0),this.cd.detectChanges()))}isEmpty(){return!this._options()||this.visibleOptions()&&this.visibleOptions().length===0}onEditableInput(t){let i=t.target.value;this.searchValue="",!this.searchOptions(t,i)&&this.focusedOptionIndex.set(-1),this.onModelChange(i),this.updateModel(i,t),setTimeout(()=>{this.onChange.emit({originalEvent:t,value:i})},1),!this.overlayVisible&&Mn.isNotEmpty(i)&&this.show()}show(t){this.overlayVisible=!0;let i=this.focusedOptionIndex()!==-1?this.focusedOptionIndex():this.autoOptionFocus?this.findFirstFocusedOptionIndex():this.editable?-1:this.findSelectedOptionIndex();this.focusedOptionIndex.set(i),t&&Ft.focus(this.focusInputViewChild?.nativeElement),this.cd.markForCheck()}onOverlayAnimationStart(t){if(t.toState==="visible"){if(this.itemsWrapper=Ft.findSingle(this.overlayViewChild?.overlayViewChild?.nativeElement,this.virtualScroll?".p-scroller":".p-dropdown-items-wrapper"),this.virtualScroll&&this.scroller?.setContentEl(this.itemsViewChild?.nativeElement),this.options&&this.options.length)if(this.virtualScroll){let i=this.modelValue()?this.focusedOptionIndex():-1;i!==-1&&this.scroller?.scrollToIndex(i)}else{let i=Ft.findSingle(this.itemsWrapper,".p-dropdown-item.p-highlight");i&&i.scrollIntoView({block:"nearest",inline:"nearest"})}this.filterViewChild&&this.filterViewChild.nativeElement&&(this.preventModelTouched=!0,this.autofocusFilter&&!this.editable&&this.filterViewChild.nativeElement.focus()),this.onShow.emit(t)}t.toState==="void"&&(this.itemsWrapper=null,this.onModelTouched(),this.onHide.emit(t))}hide(t){this.overlayVisible=!1,this.focusedOptionIndex.set(-1),this.clicked.set(!1),this.searchValue="",this.overlayOptions?.mode==="modal"&&Ft.unblockBodyScroll(),this.filter&&this.resetFilterOnHide&&this.resetFilter(),t&&(this.focusInputViewChild&&setTimeout(()=>{Ft.focus(this.focusInputViewChild?.nativeElement)}),this.editable&&this.editableInputViewChild&&setTimeout(()=>{Ft.focus(this.editableInputViewChild?.nativeElement)})),this.cd.markForCheck()}onInputFocus(t){if(this.disabled)return;this.focused=!0;let i=this.focusedOptionIndex()!==-1?this.focusedOptionIndex():this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(i),this.overlayVisible&&this.scrollInView(this.focusedOptionIndex()),this.onFocus.emit(t)}onInputBlur(t){this.focused=!1,this.onBlur.emit(t),this.preventModelTouched||this.onModelTouched(),this.preventModelTouched=!1}onMouseDown(t){t.preventDefault()}onKeyDown(t,i){if(!(this.disabled||this.readonly||this.loading)){switch(t.code){case"ArrowDown":this.onArrowDownKey(t);break;case"ArrowUp":this.onArrowUpKey(t,this.editable);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(t,this.editable);break;case"Delete":this.onDeleteKey(t);break;case"Home":this.onHomeKey(t,this.editable);break;case"End":this.onEndKey(t,this.editable);break;case"PageDown":this.onPageDownKey(t);break;case"PageUp":this.onPageUpKey(t);break;case"Space":this.onSpaceKey(t,i);break;case"Enter":case"NumpadEnter":this.onEnterKey(t);break;case"Escape":this.onEscapeKey(t);break;case"Tab":this.onTabKey(t);break;case"Backspace":this.onBackspaceKey(t,this.editable);break;case"ShiftLeft":case"ShiftRight":break;default:!t.metaKey&&Mn.isPrintableCharacter(t.key)&&(!this.overlayVisible&&this.show(),!this.editable&&this.searchOptions(t,t.key));break}this.clicked.set(!1)}}onFilterKeyDown(t){switch(t.code){case"ArrowDown":this.onArrowDownKey(t);break;case"ArrowUp":this.onArrowUpKey(t,!0);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(t,!0);break;case"Home":this.onHomeKey(t,!0);break;case"End":this.onEndKey(t,!0);break;case"Enter":case"NumpadEnter":this.onEnterKey(t,!0);break;case"Escape":this.onEscapeKey(t);break;case"Tab":this.onTabKey(t,!0);break;default:break}}onFilterBlur(t){this.focusedOptionIndex.set(-1)}onArrowDownKey(t){if(!this.overlayVisible)this.show(),this.editable&&this.changeFocusedOptionIndex(t,this.findSelectedOptionIndex());else{let i=this.focusedOptionIndex()!==-1?this.findNextOptionIndex(this.focusedOptionIndex()):this.clicked()?this.findFirstOptionIndex():this.findFirstFocusedOptionIndex();this.changeFocusedOptionIndex(t,i)}t.preventDefault(),t.stopPropagation()}changeFocusedOptionIndex(t,i){if(this.focusedOptionIndex()!==i&&(this.focusedOptionIndex.set(i),this.scrollInView(),this.selectOnFocus)){let r=this.visibleOptions()[i];this.onOptionSelect(t,r,!1)}}get virtualScrollerDisabled(){return!this.virtualScroll}scrollInView(t=-1){let i=t!==-1?`${this.id}_${t}`:this.focusedOptionId;if(this.itemsViewChild&&this.itemsViewChild.nativeElement){let r=Ft.findSingle(this.itemsViewChild.nativeElement,`li[id="${i}"]`);r?r.scrollIntoView&&r.scrollIntoView({block:"nearest",inline:"nearest"}):this.virtualScrollerDisabled||setTimeout(()=>{this.virtualScroll&&this.scroller?.scrollToIndex(t!==-1?t:this.focusedOptionIndex())},0)}}hasSelectedOption(){return this.modelValue()!==void 0}isValidSelectedOption(t){return this.isValidOption(t)&&this.isSelected(t)}equalityKey(){return this.optionValue?null:this.dataKey}findFirstFocusedOptionIndex(){let t=this.findSelectedOptionIndex();return t<0?this.findFirstOptionIndex():t}findFirstOptionIndex(){return this.visibleOptions().findIndex(t=>this.isValidOption(t))}findSelectedOptionIndex(){return this.hasSelectedOption()?this.visibleOptions().findIndex(t=>this.isValidSelectedOption(t)):-1}findNextOptionIndex(t){let i=tthis.isValidOption(r)):-1;return i>-1?i+t+1:t}findPrevOptionIndex(t){let i=t>0?Mn.findLastIndex(this.visibleOptions().slice(0,t),r=>this.isValidOption(r)):-1;return i>-1?i:t}findLastOptionIndex(){return Mn.findLastIndex(this.visibleOptions(),t=>this.isValidOption(t))}findLastFocusedOptionIndex(){let t=this.findSelectedOptionIndex();return t<0?this.findLastOptionIndex():t}isValidOption(t){return t!=null&&!(this.isOptionDisabled(t)||this.isOptionGroup(t))}isOptionGroup(t){return this.optionGroupLabel!==void 0&&this.optionGroupLabel!==null&&t.optionGroup!==void 0&&t.optionGroup!==null&&t.group}onArrowUpKey(t,i=!1){if(t.altKey&&!i){if(this.focusedOptionIndex()!==-1){let r=this.visibleOptions()[this.focusedOptionIndex()];this.onOptionSelect(t,r)}this.overlayVisible&&this.hide()}else{let r=this.focusedOptionIndex()!==-1?this.findPrevOptionIndex(this.focusedOptionIndex()):this.clicked()?this.findLastOptionIndex():this.findLastFocusedOptionIndex();this.changeFocusedOptionIndex(t,r),!this.overlayVisible&&this.show()}t.preventDefault(),t.stopPropagation()}onArrowLeftKey(t,i=!1){i&&this.focusedOptionIndex.set(-1)}onDeleteKey(t){this.showClear&&(this.clear(t),t.preventDefault())}onHomeKey(t,i=!1){if(i){let r=t.currentTarget;t.shiftKey?r.setSelectionRange(0,r.value.length):(r.setSelectionRange(0,0),this.focusedOptionIndex.set(-1))}else this.changeFocusedOptionIndex(t,this.findFirstOptionIndex()),!this.overlayVisible&&this.show();t.preventDefault()}onEndKey(t,i=!1){if(i){let r=t.currentTarget;if(t.shiftKey)r.setSelectionRange(0,r.value.length);else{let o=r.value.length;r.setSelectionRange(o,o),this.focusedOptionIndex.set(-1)}}else this.changeFocusedOptionIndex(t,this.findLastOptionIndex()),!this.overlayVisible&&this.show();t.preventDefault()}onPageDownKey(t){this.scrollInView(this.visibleOptions().length-1),t.preventDefault()}onPageUpKey(t){this.scrollInView(0),t.preventDefault()}onSpaceKey(t,i=!1){!this.editable&&!i&&this.onEnterKey(t)}onEnterKey(t,i=!1){if(!this.overlayVisible)this.focusedOptionIndex.set(-1),this.onArrowDownKey(t);else{if(this.focusedOptionIndex()!==-1){let r=this.visibleOptions()[this.focusedOptionIndex()];this.onOptionSelect(t,r)}!i&&this.hide()}t.preventDefault()}onEscapeKey(t){this.overlayVisible&&this.hide(!0),t.preventDefault()}onTabKey(t,i=!1){if(!i)if(this.overlayVisible&&this.hasFocusableElements())Ft.focus(t.shiftKey?this.lastHiddenFocusableElementOnOverlay.nativeElement:this.firstHiddenFocusableElementOnOverlay.nativeElement),t.preventDefault();else{if(this.focusedOptionIndex()!==-1&&this.overlayVisible){let r=this.visibleOptions()[this.focusedOptionIndex()];this.onOptionSelect(t,r)}this.overlayVisible&&this.hide(this.filter)}t.stopPropagation()}onFirstHiddenFocus(t){let i=t.relatedTarget===this.focusInputViewChild?.nativeElement?Ft.getFirstFocusableElement(this.overlayViewChild.el?.nativeElement,":not(.p-hidden-focusable)"):this.focusInputViewChild?.nativeElement;Ft.focus(i)}onLastHiddenFocus(t){let i=t.relatedTarget===this.focusInputViewChild?.nativeElement?Ft.getLastFocusableElement(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])'):this.focusInputViewChild?.nativeElement;Ft.focus(i)}hasFocusableElements(){return Ft.getFocusableElements(this.overlayViewChild.overlayViewChild.nativeElement,':not([data-p-hidden-focusable="true"]):not([class="p-dropdown-items-wrapper"])').length>0}onBackspaceKey(t,i=!1){i&&!this.overlayVisible&&this.show()}searchFields(){return this.filterBy?.split(",")||this.filterFields||[this.optionLabel]}searchOptions(t,i){this.searchValue=(this.searchValue||"")+i;let r=-1,o=!1;return this.focusedOptionIndex()!==-1?(r=this.visibleOptions().slice(this.focusedOptionIndex()).findIndex(s=>this.isOptionMatched(s)),r=r===-1?this.visibleOptions().slice(0,this.focusedOptionIndex()).findIndex(s=>this.isOptionMatched(s)):r+this.focusedOptionIndex()):r=this.visibleOptions().findIndex(s=>this.isOptionMatched(s)),r!==-1&&(o=!0),r===-1&&this.focusedOptionIndex()===-1&&(r=this.findFirstFocusedOptionIndex()),r!==-1&&this.changeFocusedOptionIndex(t,r),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(()=>{this.searchValue="",this.searchTimeout=null},500),o}isOptionMatched(t){return this.isValidOption(t)&&this.getOptionLabel(t).toString().toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale))}onFilterInputChange(t){let i=t.target.value;this._filterValue.set(i),this.focusedOptionIndex.set(-1),this.onFilter.emit({originalEvent:t,filter:this._filterValue()}),!this.virtualScrollerDisabled&&this.scroller.scrollToIndex(0),setTimeout(()=>{this.overlayViewChild.alignOverlay()}),this.cd.markForCheck()}applyFocus(){this.editable?Ft.findSingle(this.el.nativeElement,".p-dropdown-label.p-inputtext").focus():Ft.focus(this.focusInputViewChild?.nativeElement)}focus(){this.applyFocus()}clear(t){this.updateModel(null,t),this.clearEditableLabel(),this.onModelTouched(),this.onChange.emit({originalEvent:t,value:this.value}),this.onClear.emit(t),this.resetFilter()}static \u0275fac=function(i){return new(i||n)(oe(Ai),oe(Fl),oe(ur),oe(Zi),oe(Qne),oe(zu))};static \u0275cmp=Ct({type:n,selectors:[["p-dropdown"]],contentQueries:function(i,r,o){if(i&1&&gr(o,Ra,4),i&2){let s;Di(s=ki())&&(r.templates=s)}},viewQuery:function(i,r){if(i&1&&(Xn(bRt,5),Xn(xRt,5),Xn(wRt,5),Xn(CRt,5),Xn(SRt,5),Xn(ERt,5),Xn(IRt,5),Xn(TRt,5),Xn(ARt,5)),i&2){let o;Di(o=ki())&&(r.containerViewChild=o.first),Di(o=ki())&&(r.filterViewChild=o.first),Di(o=ki())&&(r.focusInputViewChild=o.first),Di(o=ki())&&(r.editableInputViewChild=o.first),Di(o=ki())&&(r.itemsViewChild=o.first),Di(o=ki())&&(r.scroller=o.first),Di(o=ki())&&(r.overlayViewChild=o.first),Di(o=ki())&&(r.firstHiddenFocusableElementOnOverlay=o.first),Di(o=ki())&&(r.lastHiddenFocusableElementOnOverlay=o.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:4,hostBindings:function(i,r){i&2&&$n("p-inputwrapper-filled",r.filled())("p-inputwrapper-focus",r.focused||r.overlayVisible)},inputs:{id:"id",scrollHeight:"scrollHeight",filter:[2,"filter","filter",Ht],name:"name",style:"style",panelStyle:"panelStyle",styleClass:"styleClass",panelStyleClass:"panelStyleClass",readonly:[2,"readonly","readonly",Ht],required:[2,"required","required",Ht],editable:[2,"editable","editable",Ht],appendTo:"appendTo",tabindex:[2,"tabindex","tabindex",xr],placeholder:"placeholder",loadingIcon:"loadingIcon",filterPlaceholder:"filterPlaceholder",filterLocale:"filterLocale",variant:"variant",inputId:"inputId",dataKey:"dataKey",filterBy:"filterBy",filterFields:"filterFields",autofocus:[2,"autofocus","autofocus",Ht],resetFilterOnHide:[2,"resetFilterOnHide","resetFilterOnHide",Ht],checkmark:[2,"checkmark","checkmark",Ht],dropdownIcon:"dropdownIcon",loading:[2,"loading","loading",Ht],optionLabel:"optionLabel",optionValue:"optionValue",optionDisabled:"optionDisabled",optionGroupLabel:"optionGroupLabel",optionGroupChildren:"optionGroupChildren",autoDisplayFirst:[2,"autoDisplayFirst","autoDisplayFirst",Ht],group:[2,"group","group",Ht],showClear:[2,"showClear","showClear",Ht],emptyFilterMessage:"emptyFilterMessage",emptyMessage:"emptyMessage",lazy:[2,"lazy","lazy",Ht],virtualScroll:[2,"virtualScroll","virtualScroll",Ht],virtualScrollItemSize:[2,"virtualScrollItemSize","virtualScrollItemSize",xr],virtualScrollOptions:"virtualScrollOptions",overlayOptions:"overlayOptions",ariaFilterLabel:"ariaFilterLabel",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",filterMatchMode:"filterMatchMode",maxlength:[2,"maxlength","maxlength",xr],tooltip:"tooltip",tooltipPosition:"tooltipPosition",tooltipPositionStyle:"tooltipPositionStyle",tooltipStyleClass:"tooltipStyleClass",focusOnHover:[2,"focusOnHover","focusOnHover",Ht],selectOnFocus:[2,"selectOnFocus","selectOnFocus",Ht],autoOptionFocus:[2,"autoOptionFocus","autoOptionFocus",Ht],autofocusFilter:[2,"autofocusFilter","autofocusFilter",Ht],disabled:"disabled",itemSize:"itemSize",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",filterValue:"filterValue",options:"options"},outputs:{onChange:"onChange",onFilter:"onFilter",onFocus:"onFocus",onBlur:"onBlur",onClick:"onClick",onShow:"onShow",onHide:"onHide",onClear:"onClear",onLazyLoad:"onLazyLoad"},features:[Co([R2t]),Ir],decls:12,vars:20,consts:[["container",""],["elseBlock",""],["overlay",""],["focusInput",""],["defaultPlaceholder",""],["editableInput",""],["firstHiddenFocusableEl",""],["buildInItems",""],["lastHiddenFocusableEl",""],["builtInFilterElement",""],["filter",""],["scroller",""],["items",""],["emptyFilter",""],["empty",""],[3,"click","ngClass","ngStyle"],["role","combobox","pAutoFocus","",3,"ngClass","pTooltip","tooltipPosition","positionStyle","tooltipStyleClass","autofocus","focus","blur","keydown",4,"ngIf"],["type","text","aria-haspopup","listbox","pAutoFocus","",3,"ngClass","disabled","autofocus","input","keydown","focus","blur",4,"ngIf"],[4,"ngIf"],["role","button","aria-label","dropdown trigger","aria-haspopup","listbox",1,"p-dropdown-trigger",3,"mousedown"],[4,"ngIf","ngIfElse"],[3,"visibleChange","onAnimationStart","onHide","visible","options","target","appendTo","autoZIndex","baseZIndex","showTransitionOptions","hideTransitionOptions"],["pTemplate","content"],["role","combobox","pAutoFocus","",3,"focus","blur","keydown","ngClass","pTooltip","tooltipPosition","positionStyle","tooltipStyleClass","autofocus"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["type","text","aria-haspopup","listbox","pAutoFocus","",3,"input","keydown","focus","blur","ngClass","disabled","autofocus"],[3,"styleClass","click",4,"ngIf"],["class","p-dropdown-clear-icon",3,"click",4,"ngIf"],[3,"click","styleClass"],[1,"p-dropdown-clear-icon",3,"click"],[4,"ngTemplateOutlet"],["aria-hidden","true",3,"ngClass",4,"ngIf"],["aria-hidden","true",3,"class",4,"ngIf"],["aria-hidden","true",3,"ngClass"],["aria-hidden","true"],["class","p-dropdown-trigger-icon",4,"ngIf"],["class","p-dropdown-trigger-icon",3,"ngClass",4,"ngIf"],[3,"styleClass",4,"ngIf"],[1,"p-dropdown-trigger-icon",3,"ngClass"],[3,"styleClass"],[1,"p-dropdown-trigger-icon"],[3,"ngClass","ngStyle"],["role","presentation",1,"p-hidden-accessible","p-hidden-focusable",3,"focus"],["class","p-dropdown-header",3,"click",4,"ngIf"],["tabindex","0",1,"p-dropdown-items-wrapper",3,"ngStyle"],[3,"items","style","itemSize","autoSize","lazy","options","onLazyLoad",4,"ngIf"],[1,"p-dropdown-header",3,"click"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"p-dropdown-filter-container"],["type","text","role","searchbox","autocomplete","off",1,"p-dropdown-filter","p-inputtext","p-component",3,"input","keydown","blur","value","ngClass"],["class","p-dropdown-filter-icon",4,"ngIf"],[1,"p-dropdown-filter-icon"],[3,"onLazyLoad","items","itemSize","autoSize","lazy","options"],["pTemplate","loader"],["role","listbox",1,"p-dropdown-items",3,"ngClass","ngStyle"],["ngFor","",3,"ngForOf"],["class","p-dropdown-empty-message","role","option",3,"ngStyle",4,"ngIf"],["role","option",1,"p-dropdown-item-group",3,"ngStyle"],[3,"onClick","onMouseEnter","id","option","checkmark","selected","label","disabled","template","focused","ariaPosInset","ariaSetSize"],["role","option",1,"p-dropdown-empty-message",3,"ngStyle"]],template:function(i,r){if(i&1){let o=Fi();se(0,"div",15,0),At("click",function(c){return ht(o),pt(r.onContainerClick(c))}),Ne(2,FRt,6,20,"span",16)(3,LRt,2,8,"input",17)(4,jRt,3,2,"ng-container",18),se(5,"div",19),At("mousedown",function(c){return ht(o),pt(r.onMouseDown(c))}),Ne(6,KRt,3,2,"ng-container",20)(7,t2t,2,2,"ng-template",null,1,ws),ce(),se(9,"p-overlay",21,2),Aw("visibleChange",function(c){return ht(o),LI(r.overlayVisible,c)||(r.overlayVisible=c),pt(c)}),At("onAnimationStart",function(c){return ht(o),pt(r.onOverlayAnimationStart(c))})("onHide",function(){return ht(o),pt(r.hide())}),Ne(11,O2t,13,18,"ng-template",22),ce()()}if(i&2){let o,s=_r(8);vn(r.styleClass),J("ngClass",r.containerClass)("ngStyle",r.style),Et("id",r.id),Z(2),J("ngIf",!r.editable),Z(),J("ngIf",r.editable),Z(),J("ngIf",r.isVisibleClearIcon),Z(),Et("aria-expanded",(o=r.overlayVisible)!==null&&o!==void 0?o:!1)("data-pc-section","trigger"),Z(),J("ngIf",r.loading)("ngIfElse",s),Z(3),Tw("visible",r.overlayVisible),J("options",r.overlayOptions)("target","@parent")("appendTo",r.appendTo)("autoZIndex",r.autoZIndex)("baseZIndex",r.baseZIndex)("showTransitionOptions",r.showTransitionOptions)("hideTransitionOptions",r.hideTransitionOptions)}},dependencies:()=>[Xa,Hf,Ul,Rs,Zc,jEe,Ra,YGe,ere,N_,P_,E3,qEe,N2t],styles:[`@layer primeng{.p-dropdown{display:inline-flex;cursor:pointer;position:relative;-webkit-user-select:none;user-select:none}.p-dropdown-clear-icon{position:absolute;top:50%;margin-top:-.5rem}.p-dropdown-trigger{display:flex;align-items:center;justify-content:center;flex-shrink:0}.p-dropdown-label{display:block;white-space:nowrap;overflow:hidden;flex:1 1 auto;width:1%;text-overflow:ellipsis;cursor:pointer}.p-dropdown-label-empty{overflow:hidden;opacity:0}input.p-dropdown-label{cursor:default}.p-dropdown .p-dropdown-panel{min-width:100%}.p-dropdown-items-wrapper{overflow:auto}.p-dropdown-item{cursor:pointer;font-weight:400;white-space:nowrap;position:relative;overflow:hidden}.p-dropdown-item-group{cursor:auto}.p-dropdown-items{margin:0;padding:0;list-style-type:none}.p-dropdown-filter{width:100%}.p-dropdown-filter-container{position:relative}.p-dropdown-filter-icon{position:absolute;top:50%;margin-top:-.5rem}.p-fluid .p-dropdown{display:flex}.p-fluid .p-dropdown .p-dropdown-label{width:1%}.p-float-label .p-dropdown .p-placeholder{opacity:0}} `],encapsulation:2,changeDetection:0})}return n})(),xR=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275mod=Oi({type:n});static \u0275inj=Mi({imports:[os,HEe,Hl,qGe,JT,I3,tx,P_,E3,qEe,YEe,tA,HEe,Hl,I3]})}return n})();var KEe=(()=>{class n extends Po{pathId;ngOnInit(){this.pathId="url(#"+rl()+")"}static \u0275fac=(()=>{let t;return function(r){return(t||(t=Qn(n)))(r||n)}})();static \u0275cmp=Ct({type:n,selectors:[["ArrowDownIcon"]],standalone:!0,features:[Li,Ot],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M6.99994 14C6.91097 14.0004 6.82281 13.983 6.74064 13.9489C6.65843 13.9148 6.58387 13.8646 6.52133 13.8013L1.10198 8.38193C0.982318 8.25351 0.917175 8.08367 0.920272 7.90817C0.923368 7.73267 0.994462 7.56523 1.11858 7.44111C1.24269 7.317 1.41014 7.2459 1.58563 7.2428C1.76113 7.23971 1.93098 7.30485 2.0594 7.42451L6.32263 11.6877V0.677419C6.32263 0.497756 6.394 0.325452 6.52104 0.198411C6.64808 0.0713706 6.82039 0 7.00005 0C7.17971 0 7.35202 0.0713706 7.47906 0.198411C7.6061 0.325452 7.67747 0.497756 7.67747 0.677419V11.6877L11.9407 7.42451C12.0691 7.30485 12.2389 7.23971 12.4144 7.2428C12.5899 7.2459 12.7574 7.317 12.8815 7.44111C13.0056 7.56523 13.0767 7.73267 13.0798 7.90817C13.0829 8.08367 13.0178 8.25351 12.8981 8.38193L7.47875 13.8013C7.41621 13.8646 7.34164 13.9148 7.25944 13.9489C7.17727 13.983 7.08912 14.0004 7.00015 14C7.00012 14 7.00009 14 7.00005 14C7.00001 14 6.99998 14 6.99994 14Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(i,r){i&1&&(Rr(),se(0,"svg",0)(1,"g"),bt(2,"path",1),ce(),se(3,"defs")(4,"clipPath",2),bt(5,"rect",3),ce()()()),i&2&&(vn(r.getClassNames()),Et("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role),Z(),Et("clip-path",r.pathId),Z(3),J("id",r.pathId))},encapsulation:2})}return n})();var WEe=(()=>{class n extends Po{pathId;ngOnInit(){this.pathId="url(#"+rl()+")"}static \u0275fac=(()=>{let t;return function(r){return(t||(t=Qn(n)))(r||n)}})();static \u0275cmp=Ct({type:n,selectors:[["ArrowUpIcon"]],standalone:!0,features:[Li,Ot],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M6.51551 13.799C6.64205 13.9255 6.813 13.9977 6.99193 14C7.17087 13.9977 7.34182 13.9255 7.46835 13.799C7.59489 13.6725 7.66701 13.5015 7.66935 13.3226V2.31233L11.9326 6.57554C11.9951 6.63887 12.0697 6.68907 12.1519 6.72319C12.2341 6.75731 12.3223 6.77467 12.4113 6.77425C12.5003 6.77467 12.5885 6.75731 12.6707 6.72319C12.7529 6.68907 12.8274 6.63887 12.89 6.57554C13.0168 6.44853 13.0881 6.27635 13.0881 6.09683C13.0881 5.91732 13.0168 5.74514 12.89 5.61812L7.48846 0.216594C7.48274 0.210436 7.4769 0.204374 7.47094 0.198411C7.3439 0.0713707 7.1716 0 6.99193 0C6.81227 0 6.63997 0.0713707 6.51293 0.198411C6.50704 0.204296 6.50128 0.210278 6.49563 0.216354L1.09386 5.61812C0.974201 5.74654 0.909057 5.91639 0.912154 6.09189C0.91525 6.26738 0.986345 6.43483 1.11046 6.55894C1.23457 6.68306 1.40202 6.75415 1.57752 6.75725C1.75302 6.76035 1.92286 6.6952 2.05128 6.57554L6.31451 2.31231V13.3226C6.31685 13.5015 6.38898 13.6725 6.51551 13.799Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(i,r){i&1&&(Rr(),se(0,"svg",0)(1,"g"),bt(2,"path",1),ce(),se(3,"defs")(4,"clipPath",2),bt(5,"rect",3),ce()()()),i&2&&(vn(r.getClassNames()),Et("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role),Z(),Et("clip-path",r.pathId),Z(3),J("id",r.pathId))},encapsulation:2})}return n})();var ZGe=(()=>{class n extends Po{pathId;ngOnInit(){this.pathId="url(#"+rl()+")"}static \u0275fac=(()=>{let t;return function(r){return(t||(t=Qn(n)))(r||n)}})();static \u0275cmp=Ct({type:n,selectors:[["FilterIcon"]],standalone:!0,features:[Li,Ot],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M8.64708 14H5.35296C5.18981 13.9979 5.03395 13.9321 4.91858 13.8167C4.8032 13.7014 4.73745 13.5455 4.73531 13.3824V7L0.329431 0.98C0.259794 0.889466 0.217389 0.780968 0.20718 0.667208C0.19697 0.553448 0.219379 0.439133 0.271783 0.337647C0.324282 0.236453 0.403423 0.151519 0.500663 0.0920138C0.597903 0.0325088 0.709548 0.000692754 0.823548 0H13.1765C13.2905 0.000692754 13.4021 0.0325088 13.4994 0.0920138C13.5966 0.151519 13.6758 0.236453 13.7283 0.337647C13.7807 0.439133 13.8031 0.553448 13.7929 0.667208C13.7826 0.780968 13.7402 0.889466 13.6706 0.98L9.26472 7V13.3824C9.26259 13.5455 9.19683 13.7014 9.08146 13.8167C8.96609 13.9321 8.81022 13.9979 8.64708 14ZM5.97061 12.7647H8.02943V6.79412C8.02878 6.66289 8.07229 6.53527 8.15296 6.43177L11.9412 1.23529H2.05884L5.86355 6.43177C5.94422 6.53527 5.98773 6.66289 5.98708 6.79412L5.97061 12.7647Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(i,r){i&1&&(Rr(),se(0,"svg",0)(1,"g"),bt(2,"path",1),ce(),se(3,"defs")(4,"clipPath",2),bt(5,"rect",3),ce()()()),i&2&&(vn(r.getClassNames()),Et("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role),Z(),Et("clip-path",r.pathId),Z(3),J("id",r.pathId))},encapsulation:2})}return n})();var QGe=(()=>{class n extends Po{pathId;ngOnInit(){this.pathId="url(#"+rl()+")"}static \u0275fac=(()=>{let t;return function(r){return(t||(t=Qn(n)))(r||n)}})();static \u0275cmp=Ct({type:n,selectors:[["FilterSlashIcon"]],standalone:!0,features:[Li,Ot],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M13.4994 0.0920138C13.5967 0.151519 13.6758 0.236453 13.7283 0.337647C13.7807 0.439133 13.8031 0.553448 13.7929 0.667208C13.7827 0.780968 13.7403 0.889466 13.6707 0.98L11.406 4.06823C11.3099 4.19928 11.1656 4.28679 11.005 4.3115C10.8444 4.33621 10.6805 4.2961 10.5495 4.2C10.4184 4.1039 10.3309 3.95967 10.3062 3.79905C10.2815 3.63843 10.3216 3.47458 10.4177 3.34353L11.9412 1.23529H7.41184C7.24803 1.23529 7.09093 1.17022 6.97509 1.05439C6.85926 0.938558 6.79419 0.781457 6.79419 0.617647C6.79419 0.453837 6.85926 0.296736 6.97509 0.180905C7.09093 0.0650733 7.24803 0 7.41184 0H13.1765C13.2905 0.000692754 13.4022 0.0325088 13.4994 0.0920138ZM4.20008 0.181168H4.24126L13.2013 9.03411C13.3169 9.14992 13.3819 9.3069 13.3819 9.47058C13.3819 9.63426 13.3169 9.79124 13.2013 9.90705C13.1445 9.96517 13.0766 10.0112 13.0016 10.0423C12.9266 10.0735 12.846 10.0891 12.7648 10.0882C12.6836 10.0886 12.6032 10.0728 12.5283 10.0417C12.4533 10.0106 12.3853 9.96479 12.3283 9.90705L9.3142 6.92587L9.26479 6.99999V13.3823C9.26265 13.5455 9.19689 13.7014 9.08152 13.8167C8.96615 13.9321 8.81029 13.9979 8.64714 14H5.35302C5.18987 13.9979 5.03401 13.9321 4.91864 13.8167C4.80327 13.7014 4.73751 13.5455 4.73537 13.3823V6.99999L0.329492 1.02117C0.259855 0.930634 0.21745 0.822137 0.207241 0.708376C0.197031 0.594616 0.21944 0.480301 0.271844 0.378815C0.324343 0.277621 0.403484 0.192687 0.500724 0.133182C0.597964 0.073677 0.709609 0.041861 0.823609 0.0411682H3.86243C3.92448 0.0461551 3.9855 0.060022 4.04361 0.0823446C4.10037 0.10735 4.15311 0.140655 4.20008 0.181168ZM8.02949 6.79411C8.02884 6.66289 8.07235 6.53526 8.15302 6.43176L8.42478 6.05293L3.55773 1.23529H2.0589L5.84714 6.43176C5.92781 6.53526 5.97132 6.66289 5.97067 6.79411V12.7647H8.02949V6.79411Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(i,r){i&1&&(Rr(),se(0,"svg",0)(1,"g"),bt(2,"path",1),ce(),se(3,"defs")(4,"clipPath",2),bt(5,"rect",3),ce()()()),i&2&&(vn(r.getClassNames()),Et("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role),Z(),Et("clip-path",r.pathId),Z(3),J("id",r.pathId))},encapsulation:2})}return n})();var XGe=(()=>{class n extends Po{pathId;ngOnInit(){this.pathId="url(#"+rl()+")"}static \u0275fac=(()=>{let t;return function(r){return(t||(t=Qn(n)))(r||n)}})();static \u0275cmp=Ct({type:n,selectors:[["PlusIcon"]],standalone:!0,features:[Li,Ot],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M7.67742 6.32258V0.677419C7.67742 0.497757 7.60605 0.325452 7.47901 0.198411C7.35197 0.0713707 7.17966 0 7 0C6.82034 0 6.64803 0.0713707 6.52099 0.198411C6.39395 0.325452 6.32258 0.497757 6.32258 0.677419V6.32258H0.677419C0.497757 6.32258 0.325452 6.39395 0.198411 6.52099C0.0713707 6.64803 0 6.82034 0 7C0 7.17966 0.0713707 7.35197 0.198411 7.47901C0.325452 7.60605 0.497757 7.67742 0.677419 7.67742H6.32258V13.3226C6.32492 13.5015 6.39704 13.6725 6.52358 13.799C6.65012 13.9255 6.82106 13.9977 7 14C7.17966 14 7.35197 13.9286 7.47901 13.8016C7.60605 13.6745 7.67742 13.5022 7.67742 13.3226V7.67742H13.3226C13.5022 7.67742 13.6745 7.60605 13.8016 7.47901C13.9286 7.35197 14 7.17966 14 7C13.9977 6.82106 13.9255 6.65012 13.799 6.52358C13.6725 6.39704 13.5015 6.32492 13.3226 6.32258H7.67742Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(i,r){i&1&&(Rr(),se(0,"svg",0)(1,"g"),bt(2,"path",1),ce(),se(3,"defs")(4,"clipPath",2),bt(5,"rect",3),ce()()()),i&2&&(vn(r.getClassNames()),Et("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role),Z(),Et("clip-path",r.pathId),Z(3),J("id",r.pathId))},encapsulation:2})}return n})();var ZEe=(()=>{class n extends Po{pathId;ngOnInit(){this.pathId="url(#"+rl()+")"}static \u0275fac=(()=>{let t;return function(r){return(t||(t=Qn(n)))(r||n)}})();static \u0275cmp=Ct({type:n,selectors:[["SortAltIcon"]],standalone:!0,features:[Li,Ot],decls:9,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M5.64515 3.61291C5.47353 3.61291 5.30192 3.54968 5.16644 3.4142L3.38708 1.63484L1.60773 3.4142C1.34579 3.67613 0.912244 3.67613 0.650309 3.4142C0.388374 3.15226 0.388374 2.71871 0.650309 2.45678L2.90837 0.198712C3.17031 -0.0632236 3.60386 -0.0632236 3.86579 0.198712L6.12386 2.45678C6.38579 2.71871 6.38579 3.15226 6.12386 3.4142C5.98837 3.54968 5.81676 3.61291 5.64515 3.61291Z","fill","currentColor"],["d","M3.38714 14C3.01681 14 2.70972 13.6929 2.70972 13.3226V0.677419C2.70972 0.307097 3.01681 0 3.38714 0C3.75746 0 4.06456 0.307097 4.06456 0.677419V13.3226C4.06456 13.6929 3.75746 14 3.38714 14Z","fill","currentColor"],["d","M10.6129 14C10.4413 14 10.2697 13.9368 10.1342 13.8013L7.87611 11.5432C7.61418 11.2813 7.61418 10.8477 7.87611 10.5858C8.13805 10.3239 8.5716 10.3239 8.83353 10.5858L10.6129 12.3652L12.3922 10.5858C12.6542 10.3239 13.0877 10.3239 13.3497 10.5858C13.6116 10.8477 13.6116 11.2813 13.3497 11.5432L11.0916 13.8013C10.9561 13.9368 10.7845 14 10.6129 14Z","fill","currentColor"],["d","M10.6129 14C10.2426 14 9.93552 13.6929 9.93552 13.3226V0.677419C9.93552 0.307097 10.2426 0 10.6129 0C10.9833 0 11.2904 0.307097 11.2904 0.677419V13.3226C11.2904 13.6929 10.9832 14 10.6129 14Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(i,r){i&1&&(Rr(),se(0,"svg",0)(1,"g"),bt(2,"path",1)(3,"path",2)(4,"path",3)(5,"path",4),ce(),se(6,"defs")(7,"clipPath",5),bt(8,"rect",6),ce()()()),i&2&&(vn(r.getClassNames()),Et("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role),Z(),Et("clip-path",r.pathId),Z(6),J("id",r.pathId))},encapsulation:2})}return n})();var QEe=(()=>{class n extends Po{pathId;ngOnInit(){this.pathId="url(#"+rl()+")"}static \u0275fac=(()=>{let t;return function(r){return(t||(t=Qn(n)))(r||n)}})();static \u0275cmp=Ct({type:n,selectors:[["SortAmountDownIcon"]],standalone:!0,features:[Li,Ot],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M4.93953 10.5858L3.83759 11.6877V0.677419C3.83759 0.307097 3.53049 0 3.16017 0C2.78985 0 2.48275 0.307097 2.48275 0.677419V11.6877L1.38082 10.5858C1.11888 10.3239 0.685331 10.3239 0.423396 10.5858C0.16146 10.8477 0.16146 11.2813 0.423396 11.5432L2.68146 13.8013C2.74469 13.8645 2.81694 13.9097 2.89823 13.9458C2.97952 13.9819 3.06985 14 3.16017 14C3.25049 14 3.33178 13.9819 3.42211 13.9458C3.5034 13.9097 3.57565 13.8645 3.63888 13.8013L5.89694 11.5432C6.15888 11.2813 6.15888 10.8477 5.89694 10.5858C5.63501 10.3239 5.20146 10.3239 4.93953 10.5858ZM13.0957 0H7.22468C6.85436 0 6.54726 0.307097 6.54726 0.677419C6.54726 1.04774 6.85436 1.35484 7.22468 1.35484H13.0957C13.466 1.35484 13.7731 1.04774 13.7731 0.677419C13.7731 0.307097 13.466 0 13.0957 0ZM7.22468 5.41935H9.48275C9.85307 5.41935 10.1602 5.72645 10.1602 6.09677C10.1602 6.4671 9.85307 6.77419 9.48275 6.77419H7.22468C6.85436 6.77419 6.54726 6.4671 6.54726 6.09677C6.54726 5.72645 6.85436 5.41935 7.22468 5.41935ZM7.6763 8.12903H7.22468C6.85436 8.12903 6.54726 8.43613 6.54726 8.80645C6.54726 9.17677 6.85436 9.48387 7.22468 9.48387H7.6763C8.04662 9.48387 8.35372 9.17677 8.35372 8.80645C8.35372 8.43613 8.04662 8.12903 7.6763 8.12903ZM7.22468 2.70968H11.2892C11.6595 2.70968 11.9666 3.01677 11.9666 3.3871C11.9666 3.75742 11.6595 4.06452 11.2892 4.06452H7.22468C6.85436 4.06452 6.54726 3.75742 6.54726 3.3871C6.54726 3.01677 6.85436 2.70968 7.22468 2.70968Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(i,r){i&1&&(Rr(),se(0,"svg",0)(1,"g"),bt(2,"path",1),ce(),se(3,"defs")(4,"clipPath",2),bt(5,"rect",3),ce()()()),i&2&&(vn(r.getClassNames()),Et("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role),Z(),Et("clip-path",r.pathId),Z(3),J("id",r.pathId))},encapsulation:2})}return n})();var XEe=(()=>{class n extends Po{pathId;ngOnInit(){this.pathId="url(#"+rl()+")"}static \u0275fac=(()=>{let t;return function(r){return(t||(t=Qn(n)))(r||n)}})();static \u0275cmp=Ct({type:n,selectors:[["SortAmountUpAltIcon"]],standalone:!0,features:[Li,Ot],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M3.63435 0.19871C3.57113 0.135484 3.49887 0.0903226 3.41758 0.0541935C3.255 -0.0180645 3.06532 -0.0180645 2.90274 0.0541935C2.82145 0.0903226 2.74919 0.135484 2.68597 0.19871L0.427901 2.45677C0.165965 2.71871 0.165965 3.15226 0.427901 3.41419C0.689836 3.67613 1.12338 3.67613 1.38532 3.41419L2.48726 2.31226V13.3226C2.48726 13.6929 2.79435 14 3.16467 14C3.535 14 3.84209 13.6929 3.84209 13.3226V2.31226L4.94403 3.41419C5.07951 3.54968 5.25113 3.6129 5.42274 3.6129C5.59435 3.6129 5.76597 3.54968 5.90145 3.41419C6.16338 3.15226 6.16338 2.71871 5.90145 2.45677L3.64338 0.19871H3.63435ZM13.7685 13.3226C13.7685 12.9523 13.4615 12.6452 13.0911 12.6452H7.22016C6.84984 12.6452 6.54274 12.9523 6.54274 13.3226C6.54274 13.6929 6.84984 14 7.22016 14H13.0911C13.4615 14 13.7685 13.6929 13.7685 13.3226ZM7.22016 8.58064C6.84984 8.58064 6.54274 8.27355 6.54274 7.90323C6.54274 7.5329 6.84984 7.22581 7.22016 7.22581H9.47823C9.84855 7.22581 10.1556 7.5329 10.1556 7.90323C10.1556 8.27355 9.84855 8.58064 9.47823 8.58064H7.22016ZM7.22016 5.87097H7.67177C8.0421 5.87097 8.34919 5.56387 8.34919 5.19355C8.34919 4.82323 8.0421 4.51613 7.67177 4.51613H7.22016C6.84984 4.51613 6.54274 4.82323 6.54274 5.19355C6.54274 5.56387 6.84984 5.87097 7.22016 5.87097ZM11.2847 11.2903H7.22016C6.84984 11.2903 6.54274 10.9832 6.54274 10.6129C6.54274 10.2426 6.84984 9.93548 7.22016 9.93548H11.2847C11.655 9.93548 11.9621 10.2426 11.9621 10.6129C11.9621 10.9832 11.655 11.2903 11.2847 11.2903Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(i,r){i&1&&(Rr(),se(0,"svg",0)(1,"g"),bt(2,"path",1),ce(),se(3,"defs")(4,"clipPath",2),bt(5,"rect",3),ce()()()),i&2&&(vn(r.getClassNames()),Et("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role),Z(),Et("clip-path",r.pathId),Z(3),J("id",r.pathId))},encapsulation:2})}return n})();var JGe=(()=>{class n extends Po{pathId;ngOnInit(){this.pathId="url(#"+rl()+")"}static \u0275fac=(()=>{let t;return function(r){return(t||(t=Qn(n)))(r||n)}})();static \u0275cmp=Ct({type:n,selectors:[["TrashIcon"]],standalone:!0,features:[Li,Ot],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M3.44802 13.9955H10.552C10.8056 14.0129 11.06 13.9797 11.3006 13.898C11.5412 13.8163 11.7632 13.6877 11.9537 13.5196C12.1442 13.3515 12.2995 13.1473 12.4104 12.9188C12.5213 12.6903 12.5858 12.442 12.6 12.1884V4.36041H13.4C13.5591 4.36041 13.7117 4.29722 13.8243 4.18476C13.9368 4.07229 14 3.91976 14 3.76071C14 3.60166 13.9368 3.44912 13.8243 3.33666C13.7117 3.22419 13.5591 3.16101 13.4 3.16101H12.0537C12.0203 3.1557 11.9863 3.15299 11.952 3.15299C11.9178 3.15299 11.8838 3.1557 11.8503 3.16101H11.2285C11.2421 3.10893 11.2487 3.05513 11.248 3.00106V1.80966C11.2171 1.30262 10.9871 0.828306 10.608 0.48989C10.229 0.151475 9.73159 -0.0236625 9.22402 0.00257442H4.77602C4.27251 -0.0171866 3.78126 0.160868 3.40746 0.498617C3.03365 0.836366 2.807 1.30697 2.77602 1.80966V3.00106C2.77602 3.0556 2.78346 3.10936 2.79776 3.16101H0.6C0.521207 3.16101 0.443185 3.17652 0.37039 3.20666C0.297595 3.2368 0.231451 3.28097 0.175736 3.33666C0.120021 3.39235 0.0758251 3.45846 0.0456722 3.53121C0.0155194 3.60397 0 3.68196 0 3.76071C0 3.83946 0.0155194 3.91744 0.0456722 3.9902C0.0758251 4.06296 0.120021 4.12907 0.175736 4.18476C0.231451 4.24045 0.297595 4.28462 0.37039 4.31476C0.443185 4.3449 0.521207 4.36041 0.6 4.36041H1.40002V12.1884C1.41426 12.442 1.47871 12.6903 1.58965 12.9188C1.7006 13.1473 1.85582 13.3515 2.04633 13.5196C2.23683 13.6877 2.45882 13.8163 2.69944 13.898C2.94005 13.9797 3.1945 14.0129 3.44802 13.9955ZM2.60002 4.36041H11.304V12.1884C11.304 12.5163 10.952 12.7961 10.504 12.7961H3.40002C2.97602 12.7961 2.60002 12.5163 2.60002 12.1884V4.36041ZM3.95429 3.16101C3.96859 3.10936 3.97602 3.0556 3.97602 3.00106V1.80966C3.97602 1.48183 4.33602 1.20197 4.77602 1.20197H9.24802C9.66403 1.20197 10.048 1.48183 10.048 1.80966V3.00106C10.0473 3.05515 10.054 3.10896 10.0678 3.16101H3.95429ZM5.57571 10.997C5.41731 10.995 5.26597 10.9311 5.15395 10.8191C5.04193 10.7071 4.97808 10.5558 4.97601 10.3973V6.77517C4.97601 6.61612 5.0392 6.46359 5.15166 6.35112C5.26413 6.23866 5.41666 6.17548 5.57571 6.17548C5.73476 6.17548 5.8873 6.23866 5.99976 6.35112C6.11223 6.46359 6.17541 6.61612 6.17541 6.77517V10.3894C6.17647 10.4688 6.16174 10.5476 6.13208 10.6213C6.10241 10.695 6.05841 10.762 6.00261 10.8186C5.94682 10.8751 5.88035 10.92 5.80707 10.9506C5.73378 10.9813 5.65514 10.9971 5.57571 10.997ZM7.99968 10.8214C8.11215 10.9339 8.26468 10.997 8.42373 10.997C8.58351 10.9949 8.73604 10.93 8.84828 10.8163C8.96052 10.7025 9.02345 10.5491 9.02343 10.3894V6.77517C9.02343 6.61612 8.96025 6.46359 8.84778 6.35112C8.73532 6.23866 8.58278 6.17548 8.42373 6.17548C8.26468 6.17548 8.11215 6.23866 7.99968 6.35112C7.88722 6.46359 7.82404 6.61612 7.82404 6.77517V10.3973C7.82404 10.5564 7.88722 10.7089 7.99968 10.8214Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(i,r){i&1&&(Rr(),se(0,"svg",0)(1,"g"),bt(2,"path",1),ce(),se(3,"defs")(4,"clipPath",2),bt(5,"rect",3),ce()()()),i&2&&(vn(r.getClassNames()),Et("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role),Z(),Et("clip-path",r.pathId),Z(3),J("id",r.pathId))},encapsulation:2})}return n})();var JEe=(()=>{class n extends Po{static \u0275fac=(()=>{let t;return function(r){return(t||(t=Qn(n)))(r||n)}})();static \u0275cmp=Ct({type:n,selectors:[["AngleDownIcon"]],standalone:!0,features:[Li,Ot],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M3.58659 4.5007C3.68513 4.50023 3.78277 4.51945 3.87379 4.55723C3.9648 4.59501 4.04735 4.65058 4.11659 4.7207L7.11659 7.7207L10.1166 4.7207C10.2619 4.65055 10.4259 4.62911 10.5843 4.65956C10.7427 4.69002 10.8871 4.77074 10.996 4.88976C11.1049 5.00877 11.1726 5.15973 11.1889 5.32022C11.2052 5.48072 11.1693 5.6422 11.0866 5.7807L7.58659 9.2807C7.44597 9.42115 7.25534 9.50004 7.05659 9.50004C6.85784 9.50004 6.66722 9.42115 6.52659 9.2807L3.02659 5.7807C2.88614 5.64007 2.80725 5.44945 2.80725 5.2507C2.80725 5.05195 2.88614 4.86132 3.02659 4.7207C3.09932 4.64685 3.18675 4.58911 3.28322 4.55121C3.37969 4.51331 3.48305 4.4961 3.58659 4.5007Z","fill","currentColor"]],template:function(i,r){i&1&&(Rr(),se(0,"svg",0),bt(1,"path",1),ce()),i&2&&(vn(r.getClassNames()),Et("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role))},encapsulation:2})}return n})();var eIe=(()=>{class n extends Po{static \u0275fac=(()=>{let t;return function(r){return(t||(t=Qn(n)))(r||n)}})();static \u0275cmp=Ct({type:n,selectors:[["AngleUpIcon"]],standalone:!0,features:[Li,Ot],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M10.4134 9.49931C10.3148 9.49977 10.2172 9.48055 10.1262 9.44278C10.0352 9.405 9.95263 9.34942 9.88338 9.27931L6.88338 6.27931L3.88338 9.27931C3.73811 9.34946 3.57409 9.3709 3.41567 9.34044C3.25724 9.30999 3.11286 9.22926 3.00395 9.11025C2.89504 8.99124 2.82741 8.84028 2.8111 8.67978C2.79478 8.51928 2.83065 8.35781 2.91338 8.21931L6.41338 4.71931C6.55401 4.57886 6.74463 4.49997 6.94338 4.49997C7.14213 4.49997 7.33276 4.57886 7.47338 4.71931L10.9734 8.21931C11.1138 8.35994 11.1927 8.55056 11.1927 8.74931C11.1927 8.94806 11.1138 9.13868 10.9734 9.27931C10.9007 9.35315 10.8132 9.41089 10.7168 9.44879C10.6203 9.48669 10.5169 9.5039 10.4134 9.49931Z","fill","currentColor"]],template:function(i,r){i&1&&(Rr(),se(0,"svg",0),bt(1,"path",1),ce()),i&2&&(vn(r.getClassNames()),Et("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role))},encapsulation:2})}return n})();var e9e=(()=>{class n{el;ngModel;cd;config;variant="outlined";filled;constructor(t,i,r,o){this.el=t,this.ngModel=i,this.cd=r,this.config=o}ngAfterViewInit(){this.updateFilledState(),this.cd.detectChanges()}ngDoCheck(){this.updateFilledState()}onInput(){this.updateFilledState()}updateFilledState(){this.filled=this.el.nativeElement.value&&this.el.nativeElement.value.length||this.ngModel&&this.ngModel.model}static \u0275fac=function(i){return new(i||n)(oe(Ai),oe(pR,8),oe(ur),oe(zu))};static \u0275dir=Ki({type:n,selectors:[["","pInputText",""]],hostAttrs:[1,"p-inputtext","p-component","p-element"],hostVars:4,hostBindings:function(i,r){i&1&&At("input",function(s){return r.onInput(s)}),i&2&&$n("p-filled",r.filled)("p-variant-filled",r.variant==="filled"||r.config.inputStyle()==="filled")},inputs:{variant:"variant"}})}return n})(),T3=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275mod=Oi({type:n});static \u0275inj=Mi({imports:[os]})}return n})();var F2t=["input"],L2t=(n,e,t)=>({"p-inputnumber p-component":!0,"p-inputnumber-buttons-stacked":n,"p-inputnumber-buttons-horizontal":e,"p-inputnumber-buttons-vertical":t}),t9e=()=>({"p-inputnumber-button p-inputnumber-button-up":!0}),i9e=()=>({"p-inputnumber-button p-inputnumber-button-down":!0});function B2t(n,e){if(n&1){let t=Fi();se(0,"TimesIcon",8),At("click",function(){ht(t);let r=le(2);return pt(r.clear())}),ce()}n&2&&(J("ngClass","p-inputnumber-clear-icon"),Et("data-pc-section","clearIcon"))}function z2t(n,e){}function V2t(n,e){n&1&&Ne(0,z2t,0,0,"ng-template")}function U2t(n,e){if(n&1){let t=Fi();se(0,"span",9),At("click",function(){ht(t);let r=le(2);return pt(r.clear())}),Ne(1,V2t,1,0,null,10),ce()}if(n&2){let t=le(2);Et("data-pc-section","clearIcon"),Z(),J("ngTemplateOutlet",t.clearIconTemplate)}}function j2t(n,e){if(n&1&&(er(0),Ne(1,B2t,1,2,"TimesIcon",6)(2,U2t,2,2,"span",7),tr()),n&2){let t=le();Z(),J("ngIf",!t.clearIconTemplate),Z(),J("ngIf",t.clearIconTemplate)}}function H2t(n,e){if(n&1&&bt(0,"span",14),n&2){let t=le(2);J("ngClass",t.incrementButtonIcon),Et("data-pc-section","incrementbuttonicon")}}function G2t(n,e){n&1&&bt(0,"AngleUpIcon"),n&2&&Et("data-pc-section","incrementbuttonicon")}function Y2t(n,e){}function q2t(n,e){n&1&&Ne(0,Y2t,0,0,"ng-template")}function $2t(n,e){if(n&1&&(er(0),Ne(1,G2t,1,1,"AngleUpIcon",3)(2,q2t,1,0,null,10),tr()),n&2){let t=le(2);Z(),J("ngIf",!t.incrementButtonIconTemplate),Z(),J("ngTemplateOutlet",t.incrementButtonIconTemplate)}}function K2t(n,e){if(n&1&&bt(0,"span",14),n&2){let t=le(2);J("ngClass",t.decrementButtonIcon),Et("data-pc-section","decrementbuttonicon")}}function W2t(n,e){n&1&&bt(0,"AngleDownIcon"),n&2&&Et("data-pc-section","decrementbuttonicon")}function Z2t(n,e){}function Q2t(n,e){n&1&&Ne(0,Z2t,0,0,"ng-template")}function X2t(n,e){if(n&1&&(er(0),Ne(1,W2t,1,1,"AngleDownIcon",3)(2,Q2t,1,0,null,10),tr()),n&2){let t=le(2);Z(),J("ngIf",!t.decrementButtonIconTemplate),Z(),J("ngTemplateOutlet",t.decrementButtonIconTemplate)}}function J2t(n,e){if(n&1){let t=Fi();se(0,"span",11)(1,"button",12),At("mousedown",function(r){ht(t);let o=le();return pt(o.onUpButtonMouseDown(r))})("mouseup",function(){ht(t);let r=le();return pt(r.onUpButtonMouseUp())})("mouseleave",function(){ht(t);let r=le();return pt(r.onUpButtonMouseLeave())})("keydown",function(r){ht(t);let o=le();return pt(o.onUpButtonKeyDown(r))})("keyup",function(){ht(t);let r=le();return pt(r.onUpButtonKeyUp())}),Ne(2,H2t,1,2,"span",13)(3,$2t,3,2,"ng-container",3),ce(),se(4,"button",12),At("mousedown",function(r){ht(t);let o=le();return pt(o.onDownButtonMouseDown(r))})("mouseup",function(){ht(t);let r=le();return pt(r.onDownButtonMouseUp())})("mouseleave",function(){ht(t);let r=le();return pt(r.onDownButtonMouseLeave())})("keydown",function(r){ht(t);let o=le();return pt(o.onDownButtonKeyDown(r))})("keyup",function(){ht(t);let r=le();return pt(r.onDownButtonKeyUp())}),Ne(5,K2t,1,2,"span",13)(6,X2t,3,2,"ng-container",3),ce()()}if(n&2){let t=le();Et("data-pc-section","buttonGroup"),Z(),vn(t.incrementButtonClass),J("ngClass",Ll(17,t9e))("disabled",t.disabled),Et("aria-hidden",!0)("data-pc-section","incrementbutton"),Z(),J("ngIf",t.incrementButtonIcon),Z(),J("ngIf",!t.incrementButtonIcon),Z(),vn(t.decrementButtonClass),J("ngClass",Ll(18,i9e))("disabled",t.disabled),Et("aria-hidden",!0)("data-pc-section",t.decrementbutton),Z(),J("ngIf",t.decrementButtonIcon),Z(),J("ngIf",!t.decrementButtonIcon)}}function eNt(n,e){if(n&1&&bt(0,"span",14),n&2){let t=le(2);J("ngClass",t.incrementButtonIcon),Et("data-pc-section","incrementbuttonicon")}}function tNt(n,e){n&1&&bt(0,"AngleUpIcon"),n&2&&Et("data-pc-section","incrementbuttonicon")}function iNt(n,e){}function nNt(n,e){n&1&&Ne(0,iNt,0,0,"ng-template")}function rNt(n,e){if(n&1&&(er(0),Ne(1,tNt,1,1,"AngleUpIcon",3)(2,nNt,1,0,null,10),tr()),n&2){let t=le(2);Z(),J("ngIf",!t.incrementButtonIconTemplate),Z(),J("ngTemplateOutlet",t.incrementButtonIconTemplate)}}function oNt(n,e){if(n&1){let t=Fi();se(0,"button",12),At("mousedown",function(r){ht(t);let o=le();return pt(o.onUpButtonMouseDown(r))})("mouseup",function(){ht(t);let r=le();return pt(r.onUpButtonMouseUp())})("mouseleave",function(){ht(t);let r=le();return pt(r.onUpButtonMouseLeave())})("keydown",function(r){ht(t);let o=le();return pt(o.onUpButtonKeyDown(r))})("keyup",function(){ht(t);let r=le();return pt(r.onUpButtonKeyUp())}),Ne(1,eNt,1,2,"span",13)(2,rNt,3,2,"ng-container",3),ce()}if(n&2){let t=le();vn(t.incrementButtonClass),J("ngClass",Ll(8,t9e))("disabled",t.disabled),Et("aria-hidden",!0)("data-pc-section","incrementbutton"),Z(),J("ngIf",t.incrementButtonIcon),Z(),J("ngIf",!t.incrementButtonIcon)}}function sNt(n,e){if(n&1&&bt(0,"span",14),n&2){let t=le(2);J("ngClass",t.decrementButtonIcon),Et("data-pc-section","decrementbuttonicon")}}function aNt(n,e){n&1&&bt(0,"AngleDownIcon"),n&2&&Et("data-pc-section","decrementbuttonicon")}function lNt(n,e){}function cNt(n,e){n&1&&Ne(0,lNt,0,0,"ng-template")}function uNt(n,e){if(n&1&&(er(0),Ne(1,aNt,1,1,"AngleDownIcon",3)(2,cNt,1,0,null,10),tr()),n&2){let t=le(2);Z(),J("ngIf",!t.decrementButtonIconTemplate),Z(),J("ngTemplateOutlet",t.decrementButtonIconTemplate)}}function dNt(n,e){if(n&1){let t=Fi();se(0,"button",12),At("mousedown",function(r){ht(t);let o=le();return pt(o.onDownButtonMouseDown(r))})("mouseup",function(){ht(t);let r=le();return pt(r.onDownButtonMouseUp())})("mouseleave",function(){ht(t);let r=le();return pt(r.onDownButtonMouseLeave())})("keydown",function(r){ht(t);let o=le();return pt(o.onDownButtonKeyDown(r))})("keyup",function(){ht(t);let r=le();return pt(r.onDownButtonKeyUp())}),Ne(1,sNt,1,2,"span",13)(2,uNt,3,2,"ng-container",3),ce()}if(n&2){let t=le();vn(t.decrementButtonClass),J("ngClass",Ll(8,i9e))("disabled",t.disabled),Et("aria-hidden",!0)("data-pc-section","decrementbutton"),Z(),J("ngIf",t.decrementButtonIcon),Z(),J("ngIf",!t.decrementButtonIcon)}}var hNt={provide:Bu,useExisting:ka(()=>tIe),multi:!0},tIe=(()=>{class n{document;el;cd;injector;config;showButtons=!1;format=!0;buttonLayout="stacked";inputId;styleClass;style;placeholder;size;maxlength;tabindex;title;ariaLabelledBy;ariaLabel;ariaRequired;name;required;autocomplete;min;max;incrementButtonClass;decrementButtonClass;incrementButtonIcon;decrementButtonIcon;readonly=!1;step=1;allowEmpty=!0;locale;localeMatcher;mode="decimal";currency;currencyDisplay;useGrouping=!0;variant="outlined";minFractionDigits;maxFractionDigits;prefix;suffix;inputStyle;inputStyleClass;showClear=!1;autofocus;get disabled(){return this._disabled}set disabled(t){t&&(this.focused=!1),this._disabled=t,this.timer&&this.clearTimer()}onInput=new Kt;onFocus=new Kt;onBlur=new Kt;onKeyDown=new Kt;onClear=new Kt;input;templates;clearIconTemplate;incrementButtonIconTemplate;decrementButtonIconTemplate;value;onModelChange=()=>{};onModelTouched=()=>{};focused;initialized;groupChar="";prefixChar="";suffixChar="";isSpecialChar;timer;lastValue;_numeral;numberFormat;_decimal;_decimalChar;_group;_minusSign;_currency;_prefix;_suffix;_index;_disabled;ngControl=null;constructor(t,i,r,o,s){this.document=t,this.el=i,this.cd=r,this.injector=o,this.config=s}ngOnChanges(t){["locale","localeMatcher","mode","currency","currencyDisplay","useGrouping","minFractionDigits","maxFractionDigits","prefix","suffix"].some(r=>!!t[r])&&this.updateConstructParser()}ngAfterContentInit(){this.templates.forEach(t=>{switch(t.getType()){case"clearicon":this.clearIconTemplate=t.template;break;case"incrementbuttonicon":this.incrementButtonIconTemplate=t.template;break;case"decrementbuttonicon":this.decrementButtonIconTemplate=t.template;break}})}ngOnInit(){this.ngControl=this.injector.get($p,null,{optional:!0}),this.constructParser(),this.initialized=!0}getOptions(){return{localeMatcher:this.localeMatcher,style:this.mode,currency:this.currency,currencyDisplay:this.currencyDisplay,useGrouping:this.useGrouping,minimumFractionDigits:this.minFractionDigits??void 0,maximumFractionDigits:this.maxFractionDigits??void 0}}constructParser(){this.numberFormat=new Intl.NumberFormat(this.locale,this.getOptions());let t=[...new Intl.NumberFormat(this.locale,{useGrouping:!1}).format(9876543210)].reverse(),i=new Map(t.map((r,o)=>[r,o]));this._numeral=new RegExp(`[${t.join("")}]`,"g"),this._group=this.getGroupingExpression(),this._minusSign=this.getMinusSignExpression(),this._currency=this.getCurrencyExpression(),this._decimal=this.getDecimalExpression(),this._decimalChar=this.getDecimalChar(),this._suffix=this.getSuffixExpression(),this._prefix=this.getPrefixExpression(),this._index=r=>i.get(r)}updateConstructParser(){this.initialized&&this.constructParser()}escapeRegExp(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}getDecimalExpression(){let t=this.getDecimalChar();return new RegExp(`[${t}]`,"g")}getDecimalChar(){return new Intl.NumberFormat(this.locale,wt(Ce({},this.getOptions()),{useGrouping:!1})).format(1.1).replace(this._currency,"").trim().replace(this._numeral,"")}getGroupingExpression(){let t=new Intl.NumberFormat(this.locale,{useGrouping:!0});return this.groupChar=t.format(1e6).trim().replace(this._numeral,"").charAt(0),new RegExp(`[${this.groupChar}]`,"g")}getMinusSignExpression(){let t=new Intl.NumberFormat(this.locale,{useGrouping:!1});return new RegExp(`[${t.format(-1).trim().replace(this._numeral,"")}]`,"g")}getCurrencyExpression(){if(this.currency){let t=new Intl.NumberFormat(this.locale,{style:"currency",currency:this.currency,currencyDisplay:this.currencyDisplay,minimumFractionDigits:0,maximumFractionDigits:0});return new RegExp(`[${t.format(1).replace(/\s/g,"").replace(this._numeral,"").replace(this._group,"")}]`,"g")}return new RegExp("[]","g")}getPrefixExpression(){if(this.prefix)this.prefixChar=this.prefix;else{let t=new Intl.NumberFormat(this.locale,{style:this.mode,currency:this.currency,currencyDisplay:this.currencyDisplay});this.prefixChar=t.format(1).split("1")[0]}return new RegExp(`${this.escapeRegExp(this.prefixChar||"")}`,"g")}getSuffixExpression(){if(this.suffix)this.suffixChar=this.suffix;else{let t=new Intl.NumberFormat(this.locale,{style:this.mode,currency:this.currency,currencyDisplay:this.currencyDisplay,minimumFractionDigits:0,maximumFractionDigits:0});this.suffixChar=t.format(1).split("1")[1]}return new RegExp(`${this.escapeRegExp(this.suffixChar||"")}`,"g")}get isBlurUpdateOnMode(){return this.ngControl?.control?.updateOn==="blur"}formatValue(t){if(t!=null){if(t==="-")return t;if(this.format){let r=new Intl.NumberFormat(this.locale,this.getOptions()).format(t);return this.prefix&&t!=this.prefix&&(r=this.prefix+r),this.suffix&&t!=this.suffix&&(r=r+this.suffix),r}return t.toString()}return""}parseValue(t){let i=new RegExp(this._suffix,""),r=new RegExp(this._prefix,""),o=new RegExp(this._currency,""),s=t.replace(i,"").replace(r,"").trim().replace(/\s/g,"").replace(o,"").replace(this._group,"").replace(this._minusSign,"-").replace(this._decimal,".").replace(this._numeral,this._index);if(s){if(s==="-")return s;let c=+s;return isNaN(c)?null:c}return null}repeat(t,i,r){if(this.readonly)return;let o=i||500;this.clearTimer(),this.timer=setTimeout(()=>{this.repeat(t,40,r)},o),this.spin(t,r)}spin(t,i){let r=this.step*i,o=this.parseValue(this.input?.nativeElement.value)||0,s=this.validateValue(o+r);this.maxlength&&this.maxlength=0;c--)if(this.isNumeralChar(o.charAt(c))){this.input.nativeElement.setSelectionRange(c,c);break}break;case"Tab":case"Enter":s=this.validateValue(this.parseValue(this.input.nativeElement.value)),this.input.nativeElement.value=this.formatValue(s),this.input.nativeElement.setAttribute("aria-valuenow",s),this.updateModel(t,s);break;case"Backspace":{if(t.preventDefault(),i===r){if(i==1&&this.prefix||i==o.length&&this.suffix)break;let c=o.charAt(i-1),{decimalCharIndex:h,decimalCharIndexWithoutPrefix:g}=this.getDecimalCharIndexes(o);if(this.isNumeralChar(c)){let x=this.getDecimalLength(o);if(this._group.test(c))this._group.lastIndex=0,s=o.slice(0,i-2)+o.slice(i-1);else if(this._decimal.test(c))this._decimal.lastIndex=0,x?this.input?.nativeElement.setSelectionRange(i-1,i-1):s=o.slice(0,i-1)+o.slice(i);else if(h>0&&i>h){let C=this.isDecimalMode()&&(this.minFractionDigits||0)0?s:""):s=o.slice(0,i-1)+o.slice(i)}else this.mode==="currency"&&c.search(this._currency)!=-1&&(s=o.slice(1));this.updateValue(t,s,null,"delete-single")}else s=this.deleteRange(o,i,r),this.updateValue(t,s,null,"delete-range");break}case"Delete":if(t.preventDefault(),i===r){if(i==0&&this.prefix||i==o.length-1&&this.suffix)break;let c=o.charAt(i),{decimalCharIndex:h,decimalCharIndexWithoutPrefix:g}=this.getDecimalCharIndexes(o);if(this.isNumeralChar(c)){let x=this.getDecimalLength(o);if(this._group.test(c))this._group.lastIndex=0,s=o.slice(0,i)+o.slice(i+2);else if(this._decimal.test(c))this._decimal.lastIndex=0,x?this.input?.nativeElement.setSelectionRange(i+1,i+1):s=o.slice(0,i)+o.slice(i+1);else if(h>0&&i>h){let C=this.isDecimalMode()&&(this.minFractionDigits||0)0?s:""):s=o.slice(0,i)+o.slice(i+1)}this.updateValue(t,s,null,"delete-back-single")}else s=this.deleteRange(o,i,r),this.updateValue(t,s,null,"delete-range");break;case"Home":this.min&&(this.updateModel(t,this.min),t.preventDefault());break;case"End":this.max&&(this.updateModel(t,this.max),t.preventDefault());break;default:break}this.onKeyDown.emit(t)}onInputKeyPress(t){if(this.readonly)return;let i=t.which||t.keyCode,r=String.fromCharCode(i),o=this.isDecimalSign(r),s=this.isMinusSign(r);i!=13&&t.preventDefault(),!o&&t.code==="NumpadDecimal"&&(o=!0,r=this._decimalChar,i=r.charCodeAt(0));let c=this.parseValue(this.input.nativeElement.value+r),h=c!=null?c.toString():"";if(this.maxlength&&this.getSelectedText()?.length==this.maxlength){this.insert(t,r,{isDecimalSign:o,isMinusSign:s});return}this.maxlength&&h.length>this.maxlength||(48<=i&&i<=57||s||o)&&this.insert(t,r,{isDecimalSign:o,isMinusSign:s})}getSelectedText(){return window?.getSelection()?.toString().replaceAll(/[^0-9']/g,"")||""}onPaste(t){if(!this.disabled&&!this.readonly){t.preventDefault();let i=(t.clipboardData||this.document.defaultView.clipboardData).getData("Text");if(i){this.maxlength&&(i=i.toString().substring(0,this.maxlength));let r=this.parseValue(i);r!=null&&this.insert(t,r.toString())}}}allowMinusSign(){return this.min==null||this.min<0}isMinusSign(t){return this._minusSign.test(t)||t==="-"?(this._minusSign.lastIndex=0,!0):!1}isDecimalSign(t){return this._decimal.test(t)?(this._decimal.lastIndex=0,!0):!1}isDecimalMode(){return this.mode==="decimal"}getDecimalCharIndexes(t){let i=t.search(this._decimal);this._decimal.lastIndex=0;let o=t.replace(this._prefix,"").trim().replace(/\s/g,"").replace(this._currency,"").search(this._decimal);return this._decimal.lastIndex=0,{decimalCharIndex:i,decimalCharIndexWithoutPrefix:o}}getCharIndexes(t){let i=t.search(this._decimal);this._decimal.lastIndex=0;let r=t.search(this._minusSign);this._minusSign.lastIndex=0;let o=t.search(this._suffix);this._suffix.lastIndex=0;let s=t.search(this._currency);return this._currency.lastIndex=0,{decimalCharIndex:i,minusCharIndex:r,suffixCharIndex:o,currencyCharIndex:s}}insert(t,i,r={isDecimalSign:!1,isMinusSign:!1}){let o=i.search(this._minusSign);if(this._minusSign.lastIndex=0,!this.allowMinusSign()&&o!==-1)return;let s=this.input?.nativeElement.selectionStart,c=this.input?.nativeElement.selectionEnd,h=this.input?.nativeElement.value.trim(),{decimalCharIndex:g,minusCharIndex:x,suffixCharIndex:C,currencyCharIndex:A}=this.getCharIndexes(h),k;if(r.isMinusSign)s===0&&(k=h,(x===-1||c!==0)&&(k=this.insertText(h,i,0,c)),this.updateValue(t,k,i,"insert"));else if(r.isDecimalSign)g>0&&s===g?this.updateValue(t,h,i,"insert"):g>s&&g0&&s>g){if(s+i.length-(g+1)<=O){let L=A>=s?A-1:C>=s?C:h.length;k=h.slice(0,s)+i+h.slice(s+i.length,L)+h.slice(L),this.updateValue(t,k,i,F)}}else k=this.insertText(h,i,s,c),this.updateValue(t,k,i,F)}}insertText(t,i,r,o){if((i==="."?i:i.split(".")).length===2){let c=t.slice(r,o).search(this._decimal);return this._decimal.lastIndex=0,c>0?t.slice(0,r)+this.formatValue(i)+t.slice(o):t||this.formatValue(i)}else return o-r===t.length?this.formatValue(i):r===0?i+t.slice(o):o===t.length?t.slice(0,r)+i:t.slice(0,r)+i+t.slice(o)}deleteRange(t,i,r){let o;return r-i===t.length?o="":i===0?o=t.slice(r):r===t.length?o=t.slice(0,i):o=t.slice(0,i)+t.slice(r),o}initCursor(){let t=this.input?.nativeElement.selectionStart,i=this.input?.nativeElement.selectionEnd,r=this.input?.nativeElement.value,o=r.length,s=null,c=(this.prefixChar||"").length;r=r.replace(this._prefix,""),(t===i||t!==0||i=0;)if(h=r.charAt(g),this.isNumeralChar(h)){s=g+c;break}else g--;if(s!==null)this.input?.nativeElement.setSelectionRange(s+1,s+1);else{for(g=t;gthis.max?this.max:t}updateInput(t,i,r,o){i=i||"";let s=this.input?.nativeElement.value,c=this.formatValue(t),h=s.length;if(c!==o&&(c=this.concatValues(c,o)),h===0){this.input.nativeElement.value=c,this.input.nativeElement.setSelectionRange(0,0);let x=this.initCursor()+i.length;this.input.nativeElement.setSelectionRange(x,x)}else{let g=this.input.nativeElement.selectionStart,x=this.input.nativeElement.selectionEnd;if(this.maxlength&&c.length>this.maxlength&&(c=c.slice(0,this.maxlength),g=Math.min(g,this.maxlength),x=Math.min(x,this.maxlength)),this.maxlength&&this.maxlength0}clearTimer(){this.timer&&clearInterval(this.timer)}static \u0275fac=function(i){return new(i||n)(oe(Ln),oe(Ai),oe(ur),oe(yo),oe(zu))};static \u0275cmp=Ct({type:n,selectors:[["p-inputNumber"]],contentQueries:function(i,r,o){if(i&1&&gr(o,Ra,4),i&2){let s;Di(s=ki())&&(r.templates=s)}},viewQuery:function(i,r){if(i&1&&Xn(F2t,5),i&2){let o;Di(o=ki())&&(r.input=o.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:6,hostBindings:function(i,r){i&2&&$n("p-inputwrapper-filled",r.filled)("p-inputwrapper-focus",r.focused)("p-inputnumber-clearable",r.showClear&&r.buttonLayout!="vertical")},inputs:{showButtons:[2,"showButtons","showButtons",Ht],format:[2,"format","format",Ht],buttonLayout:"buttonLayout",inputId:"inputId",styleClass:"styleClass",style:"style",placeholder:"placeholder",size:[2,"size","size",xr],maxlength:[2,"maxlength","maxlength",xr],tabindex:[2,"tabindex","tabindex",xr],title:"title",ariaLabelledBy:"ariaLabelledBy",ariaLabel:"ariaLabel",ariaRequired:[2,"ariaRequired","ariaRequired",Ht],name:"name",required:[2,"required","required",Ht],autocomplete:"autocomplete",min:[2,"min","min",xr],max:[2,"max","max",xr],incrementButtonClass:"incrementButtonClass",decrementButtonClass:"decrementButtonClass",incrementButtonIcon:"incrementButtonIcon",decrementButtonIcon:"decrementButtonIcon",readonly:[2,"readonly","readonly",Ht],step:[2,"step","step",xr],allowEmpty:[2,"allowEmpty","allowEmpty",Ht],locale:"locale",localeMatcher:"localeMatcher",mode:"mode",currency:"currency",currencyDisplay:"currencyDisplay",useGrouping:[2,"useGrouping","useGrouping",Ht],variant:"variant",minFractionDigits:[2,"minFractionDigits","minFractionDigits",t=>xr(t,null)],maxFractionDigits:[2,"maxFractionDigits","maxFractionDigits",t=>xr(t,null)],prefix:"prefix",suffix:"suffix",inputStyle:"inputStyle",inputStyleClass:"inputStyleClass",showClear:[2,"showClear","showClear",Ht],autofocus:[2,"autofocus","autofocus",Ht],disabled:"disabled"},outputs:{onInput:"onInput",onFocus:"onFocus",onBlur:"onBlur",onKeyDown:"onKeyDown",onClear:"onClear"},features:[Co([hNt]),Ir,eo],decls:7,vars:43,consts:[["input",""],[3,"ngClass","ngStyle"],["pInputText","","role","spinbutton","inputmode","decimal","pAutoFocus","",3,"input","keydown","keypress","paste","click","focus","blur","ngClass","ngStyle","value","disabled","readonly","autofocus"],[4,"ngIf"],["class","p-inputnumber-button-group",4,"ngIf"],["type","button","pButton","","class","p-button-icon-only","tabindex","-1",3,"ngClass","class","disabled","mousedown","mouseup","mouseleave","keydown","keyup",4,"ngIf"],[3,"ngClass","click",4,"ngIf"],["class","p-inputnumber-clear-icon",3,"click",4,"ngIf"],[3,"click","ngClass"],[1,"p-inputnumber-clear-icon",3,"click"],[4,"ngTemplateOutlet"],[1,"p-inputnumber-button-group"],["type","button","pButton","","tabindex","-1",1,"p-button-icon-only",3,"mousedown","mouseup","mouseleave","keydown","keyup","ngClass","disabled"],[3,"ngClass",4,"ngIf"],[3,"ngClass"]],template:function(i,r){if(i&1){let o=Fi();se(0,"span",1)(1,"input",2,0),At("input",function(c){return ht(o),pt(r.onUserInput(c))})("keydown",function(c){return ht(o),pt(r.onInputKeyDown(c))})("keypress",function(c){return ht(o),pt(r.onInputKeyPress(c))})("paste",function(c){return ht(o),pt(r.onPaste(c))})("click",function(){return ht(o),pt(r.onInputClick())})("focus",function(c){return ht(o),pt(r.onInputFocus(c))})("blur",function(c){return ht(o),pt(r.onInputBlur(c))}),ce(),Ne(3,j2t,3,2,"ng-container",3)(4,J2t,7,19,"span",4)(5,oNt,3,9,"button",5)(6,dNt,3,9,"button",5),ce()}i&2&&(vn(r.styleClass),J("ngClass",gh(39,L2t,r.showButtons&&r.buttonLayout==="stacked",r.showButtons&&r.buttonLayout==="horizontal",r.showButtons&&r.buttonLayout==="vertical"))("ngStyle",r.style),Et("data-pc-name","inputnumber")("data-pc-section","root"),Z(),vn(r.inputStyleClass),$n("p-variant-filled",r.variant==="filled"||r.config.inputStyle()==="filled"),J("ngClass","p-inputnumber-input")("ngStyle",r.inputStyle)("value",r.formattedValue())("disabled",r.disabled)("readonly",r.readonly)("autofocus",r.autofocus),Et("id",r.inputId)("variant",r.variant)("aria-valuemin",r.min)("aria-valuemax",r.max)("aria-valuenow",r.value)("placeholder",r.placeholder)("aria-label",r.ariaLabel)("aria-labelledby",r.ariaLabelledBy)("title",r.title)("size",r.size)("name",r.name)("autocomplete",r.autocomplete)("maxlength",r.maxlength)("tabindex",r.tabindex)("aria-required",r.ariaRequired)("required",r.required)("min",r.min)("max",r.max)("data-pc-section","input"),Z(2),J("ngIf",r.buttonLayout!="vertical"&&r.showClear&&r.value),Z(),J("ngIf",r.showButtons&&r.buttonLayout==="stacked"),Z(),J("ngIf",r.showButtons&&r.buttonLayout!=="stacked"),Z(),J("ngIf",r.showButtons&&r.buttonLayout!=="stacked"))},dependencies:()=>[Xa,Ul,Rs,Zc,e9e,Jne,N_,P_,eIe,JEe],styles:[`@layer primeng{p-inputnumber,.p-inputnumber{display:inline-flex}.p-inputnumber-button{display:flex;align-items:center;justify-content:center;flex:0 0 auto}.p-inputnumber-buttons-stacked .p-button.p-inputnumber-button .p-button-label,.p-inputnumber-buttons-horizontal .p-button.p-inputnumber-button .p-button-label{display:none}.p-inputnumber-buttons-stacked .p-button.p-inputnumber-button-up{border-top-left-radius:0;border-bottom-left-radius:0;border-bottom-right-radius:0;padding:0}.p-inputnumber-buttons-stacked .p-inputnumber-input{border-top-right-radius:0;border-bottom-right-radius:0}.p-inputnumber-buttons-stacked .p-button.p-inputnumber-button-down{border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:0;padding:0}.p-inputnumber-buttons-stacked .p-inputnumber-button-group{display:flex;flex-direction:column}.p-inputnumber-buttons-stacked .p-inputnumber-button-group .p-button.p-inputnumber-button{flex:1 1 auto}.p-inputnumber-buttons-horizontal .p-button.p-inputnumber-button-up{order:3;border-top-left-radius:0;border-bottom-left-radius:0}.p-inputnumber-buttons-horizontal .p-inputnumber-input{order:2;border-radius:0}.p-inputnumber-buttons-horizontal .p-button.p-inputnumber-button-down{order:1;border-top-right-radius:0;border-bottom-right-radius:0}.p-inputnumber-buttons-vertical{flex-direction:column}.p-inputnumber-buttons-vertical .p-button.p-inputnumber-button-up{order:1;border-bottom-left-radius:0;border-bottom-right-radius:0;width:100%}.p-inputnumber-buttons-vertical .p-inputnumber-input{order:2;border-radius:0;text-align:center}.p-inputnumber-buttons-vertical .p-button.p-inputnumber-button-down{order:3;border-top-left-radius:0;border-top-right-radius:0;width:100%}.p-inputnumber-input{flex:1 1 auto}.p-fluid p-inputnumber,.p-fluid .p-inputnumber{width:100%}.p-fluid .p-inputnumber .p-inputnumber-input{width:1%}.p-fluid .p-inputnumber-buttons-vertical .p-inputnumber-input{width:100%}.p-inputnumber-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}.p-inputnumber-clearable{position:relative}} `],encapsulation:2,changeDetection:0})}return n})(),VG=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275mod=Oi({type:n});static \u0275inj=Mi({imports:[os,T3,bR,tx,P_,eIe,JEe,Hl]})}return n})();var iIe=(()=>{class n extends Po{static \u0275fac=(()=>{let t;return function(r){return(t||(t=Qn(n)))(r||n)}})();static \u0275cmp=Ct({type:n,selectors:[["AngleDoubleLeftIcon"]],standalone:!0,features:[Li,Ot],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M5.71602 11.164C5.80782 11.2021 5.9063 11.2215 6.00569 11.221C6.20216 11.2301 6.39427 11.1612 6.54025 11.0294C6.68191 10.8875 6.76148 10.6953 6.76148 10.4948C6.76148 10.2943 6.68191 10.1021 6.54025 9.96024L3.51441 6.9344L6.54025 3.90855C6.624 3.76126 6.65587 3.59011 6.63076 3.42254C6.60564 3.25498 6.525 3.10069 6.40175 2.98442C6.2785 2.86815 6.11978 2.79662 5.95104 2.7813C5.78229 2.76598 5.61329 2.80776 5.47112 2.89994L1.97123 6.39983C1.82957 6.54167 1.75 6.73393 1.75 6.9344C1.75 7.13486 1.82957 7.32712 1.97123 7.46896L5.47112 10.9991C5.54096 11.0698 5.62422 11.1259 5.71602 11.164ZM11.0488 10.9689C11.1775 11.1156 11.3585 11.2061 11.5531 11.221C11.7477 11.2061 11.9288 11.1156 12.0574 10.9689C12.1815 10.8302 12.25 10.6506 12.25 10.4645C12.25 10.2785 12.1815 10.0989 12.0574 9.96024L9.03158 6.93439L12.0574 3.90855C12.1248 3.76739 12.1468 3.60881 12.1204 3.45463C12.0939 3.30045 12.0203 3.15826 11.9097 3.04765C11.7991 2.93703 11.6569 2.86343 11.5027 2.83698C11.3486 2.81053 11.19 2.83252 11.0488 2.89994L7.51865 6.36957C7.37699 6.51141 7.29742 6.70367 7.29742 6.90414C7.29742 7.1046 7.37699 7.29686 7.51865 7.4387L11.0488 10.9689Z","fill","currentColor"]],template:function(i,r){i&1&&(Rr(),se(0,"svg",0),bt(1,"path",1),ce()),i&2&&(vn(r.getClassNames()),Et("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role))},encapsulation:2})}return n})();var nIe=(()=>{class n extends Po{static \u0275fac=(()=>{let t;return function(r){return(t||(t=Qn(n)))(r||n)}})();static \u0275cmp=Ct({type:n,selectors:[["AngleDoubleRightIcon"]],standalone:!0,features:[Li,Ot],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M7.68757 11.1451C7.7791 11.1831 7.8773 11.2024 7.9764 11.2019C8.07769 11.1985 8.17721 11.1745 8.26886 11.1312C8.36052 11.088 8.44238 11.0265 8.50943 10.9505L12.0294 7.49085C12.1707 7.34942 12.25 7.15771 12.25 6.95782C12.25 6.75794 12.1707 6.56622 12.0294 6.42479L8.50943 2.90479C8.37014 2.82159 8.20774 2.78551 8.04633 2.80192C7.88491 2.81833 7.73309 2.88635 7.6134 2.99588C7.4937 3.10541 7.41252 3.25061 7.38189 3.40994C7.35126 3.56927 7.37282 3.73423 7.44337 3.88033L10.4605 6.89748L7.44337 9.91463C7.30212 10.0561 7.22278 10.2478 7.22278 10.4477C7.22278 10.6475 7.30212 10.8393 7.44337 10.9807C7.51301 11.0512 7.59603 11.1071 7.68757 11.1451ZM1.94207 10.9505C2.07037 11.0968 2.25089 11.1871 2.44493 11.2019C2.63898 11.1871 2.81949 11.0968 2.94779 10.9505L6.46779 7.49085C6.60905 7.34942 6.68839 7.15771 6.68839 6.95782C6.68839 6.75793 6.60905 6.56622 6.46779 6.42479L2.94779 2.90479C2.80704 2.83757 2.6489 2.81563 2.49517 2.84201C2.34143 2.86839 2.19965 2.94178 2.08936 3.05207C1.97906 3.16237 1.90567 3.30415 1.8793 3.45788C1.85292 3.61162 1.87485 3.76975 1.94207 3.9105L4.95922 6.92765L1.94207 9.9448C1.81838 10.0831 1.75 10.2621 1.75 10.4477C1.75 10.6332 1.81838 10.8122 1.94207 10.9505Z","fill","currentColor"]],template:function(i,r){i&1&&(Rr(),se(0,"svg",0),bt(1,"path",1),ce()),i&2&&(vn(r.getClassNames()),Et("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role))},encapsulation:2})}return n})();var rIe=(()=>{class n extends Po{static \u0275fac=(()=>{let t;return function(r){return(t||(t=Qn(n)))(r||n)}})();static \u0275cmp=Ct({type:n,selectors:[["AngleLeftIcon"]],standalone:!0,features:[Li,Ot],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M8.75 11.185C8.65146 11.1854 8.55381 11.1662 8.4628 11.1284C8.37179 11.0906 8.28924 11.0351 8.22 10.965L4.72 7.46496C4.57955 7.32433 4.50066 7.13371 4.50066 6.93496C4.50066 6.73621 4.57955 6.54558 4.72 6.40496L8.22 2.93496C8.36095 2.84357 8.52851 2.80215 8.69582 2.81733C8.86312 2.83252 9.02048 2.90344 9.14268 3.01872C9.26487 3.134 9.34483 3.28696 9.36973 3.4531C9.39463 3.61924 9.36303 3.78892 9.28 3.93496L6.28 6.93496L9.28 9.93496C9.42045 10.0756 9.49934 10.2662 9.49934 10.465C9.49934 10.6637 9.42045 10.8543 9.28 10.995C9.13526 11.1257 8.9448 11.1939 8.75 11.185Z","fill","currentColor"]],template:function(i,r){i&1&&(Rr(),se(0,"svg",0),bt(1,"path",1),ce()),i&2&&(vn(r.getClassNames()),Et("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role))},encapsulation:2})}return n})();var oIe=(()=>{class n extends Po{static \u0275fac=(()=>{let t;return function(r){return(t||(t=Qn(n)))(r||n)}})();static \u0275cmp=Ct({type:n,selectors:[["AngleRightIcon"]],standalone:!0,features:[Li,Ot],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M5.25 11.1728C5.14929 11.1694 5.05033 11.1455 4.9592 11.1025C4.86806 11.0595 4.78666 10.9984 4.72 10.9228C4.57955 10.7822 4.50066 10.5916 4.50066 10.3928C4.50066 10.1941 4.57955 10.0035 4.72 9.86283L7.72 6.86283L4.72 3.86283C4.66067 3.71882 4.64765 3.55991 4.68275 3.40816C4.71785 3.25642 4.79932 3.11936 4.91585 3.01602C5.03238 2.91268 5.17819 2.84819 5.33305 2.83149C5.4879 2.81479 5.64411 2.84671 5.78 2.92283L9.28 6.42283C9.42045 6.56346 9.49934 6.75408 9.49934 6.95283C9.49934 7.15158 9.42045 7.34221 9.28 7.48283L5.78 10.9228C5.71333 10.9984 5.63193 11.0595 5.5408 11.1025C5.44966 11.1455 5.35071 11.1694 5.25 11.1728Z","fill","currentColor"]],template:function(i,r){i&1&&(Rr(),se(0,"svg",0),bt(1,"path",1),ce()),i&2&&(vn(r.getClassNames()),Et("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role))},encapsulation:2})}return n})();var tre=n=>({"p-disabled":n}),ire=n=>({$implicit:n}),fNt=n=>({"p-highlight":n});function mNt(n,e){n&1&&Pn(0)}function gNt(n,e){if(n&1&&(se(0,"div",15),Ne(1,mNt,1,0,"ng-container",16),ce()),n&2){let t=le(2);Et("data-pc-section","start"),Z(),J("ngTemplateOutlet",t.templateLeft)("ngTemplateOutletContext",Tr(3,ire,t.paginatorState))}}function _Nt(n,e){if(n&1&&(se(0,"span",17),yt(1),ce()),n&2){let t=le(2);Z(),jn(t.currentPageReport)}}function vNt(n,e){n&1&&bt(0,"AngleDoubleLeftIcon",19),n&2&&J("styleClass","p-paginator-icon")}function yNt(n,e){}function bNt(n,e){n&1&&Ne(0,yNt,0,0,"ng-template")}function xNt(n,e){if(n&1&&(se(0,"span",20),Ne(1,bNt,1,0,null,21),ce()),n&2){let t=le(3);Z(),J("ngTemplateOutlet",t.firstPageLinkIconTemplate)}}function wNt(n,e){if(n&1){let t=Fi();se(0,"button",18),At("click",function(r){ht(t);let o=le(2);return pt(o.changePageToFirst(r))}),Ne(1,vNt,1,1,"AngleDoubleLeftIcon",6)(2,xNt,2,1,"span",7),ce()}if(n&2){let t=le(2);J("disabled",t.isFirstPage()||t.empty())("ngClass",Tr(5,tre,t.isFirstPage()||t.empty())),Et("aria-label",t.getAriaLabel("firstPageLabel")),Z(),J("ngIf",!t.firstPageLinkIconTemplate),Z(),J("ngIf",t.firstPageLinkIconTemplate)}}function CNt(n,e){n&1&&bt(0,"AngleLeftIcon",19),n&2&&J("styleClass","p-paginator-icon")}function SNt(n,e){}function ENt(n,e){n&1&&Ne(0,SNt,0,0,"ng-template")}function INt(n,e){if(n&1&&(se(0,"span",20),Ne(1,ENt,1,0,null,21),ce()),n&2){let t=le(2);Z(),J("ngTemplateOutlet",t.previousPageLinkIconTemplate)}}function TNt(n,e){if(n&1){let t=Fi();se(0,"button",24),At("click",function(r){let o=ht(t).$implicit,s=le(3);return pt(s.onPageLinkClick(r,o-1))}),yt(1),ce()}if(n&2){let t=e.$implicit,i=le(3);J("ngClass",Tr(4,fNt,t-1==i.getPage())),Et("aria-label",i.getPageAriaLabel(t))("aria-current",t-1==i.getPage()?"page":void 0),Z(),ps(" ",i.getLocalization(t)," ")}}function ANt(n,e){if(n&1&&(se(0,"span",22),Ne(1,TNt,2,6,"button",23),ce()),n&2){let t=le(2);Z(),J("ngForOf",t.pageLinks)}}function DNt(n,e){if(n&1&&yt(0),n&2){let t=le(3);jn(t.currentPageReport)}}function kNt(n,e){n&1&&Pn(0)}function MNt(n,e){if(n&1&&Ne(0,kNt,1,0,"ng-container",16),n&2){let t=e.$implicit,i=le(4);J("ngTemplateOutlet",i.jumpToPageItemTemplate)("ngTemplateOutletContext",Tr(2,ire,t))}}function ONt(n,e){n&1&&(er(0),Ne(1,MNt,1,4,"ng-template",28),tr())}function RNt(n,e){n&1&&Pn(0)}function NNt(n,e){if(n&1&&Ne(0,RNt,1,0,"ng-container",21),n&2){let t=le(4);J("ngTemplateOutlet",t.dropdownIconTemplate)}}function PNt(n,e){n&1&&Ne(0,NNt,1,1,"ng-template",29)}function FNt(n,e){if(n&1){let t=Fi();se(0,"p-dropdown",25),At("onChange",function(r){ht(t);let o=le(2);return pt(o.onPageDropdownChange(r))}),Ne(1,DNt,1,1,"ng-template",26)(2,ONt,2,0,"ng-container",27)(3,PNt,1,0,null,27),ce()}if(n&2){let t=le(2);J("options",t.pageItems)("ngModel",t.getPage())("disabled",t.empty())("appendTo",t.dropdownAppendTo)("scrollHeight",t.dropdownScrollHeight),Et("aria-label",t.getAriaLabel("jumpToPageDropdownLabel")),Z(2),J("ngIf",t.jumpToPageItemTemplate),Z(),J("ngIf",t.dropdownIconTemplate)}}function LNt(n,e){n&1&&bt(0,"AngleRightIcon",19),n&2&&J("styleClass","p-paginator-icon")}function BNt(n,e){}function zNt(n,e){n&1&&Ne(0,BNt,0,0,"ng-template")}function VNt(n,e){if(n&1&&(se(0,"span",20),Ne(1,zNt,1,0,null,21),ce()),n&2){let t=le(2);Z(),J("ngTemplateOutlet",t.nextPageLinkIconTemplate)}}function UNt(n,e){n&1&&bt(0,"AngleDoubleRightIcon",19),n&2&&J("styleClass","p-paginator-icon")}function jNt(n,e){}function HNt(n,e){n&1&&Ne(0,jNt,0,0,"ng-template")}function GNt(n,e){if(n&1&&(se(0,"span",20),Ne(1,HNt,1,0,null,21),ce()),n&2){let t=le(3);Z(),J("ngTemplateOutlet",t.lastPageLinkIconTemplate)}}function YNt(n,e){if(n&1){let t=Fi();se(0,"button",30),At("click",function(r){ht(t);let o=le(2);return pt(o.changePageToLast(r))}),Ne(1,UNt,1,1,"AngleDoubleRightIcon",6)(2,GNt,2,1,"span",7),ce()}if(n&2){let t=le(2);J("disabled",t.isLastPage()||t.empty())("ngClass",Tr(5,tre,t.isLastPage()||t.empty())),Et("aria-label",t.getAriaLabel("lastPageLabel")),Z(),J("ngIf",!t.lastPageLinkIconTemplate),Z(),J("ngIf",t.lastPageLinkIconTemplate)}}function qNt(n,e){if(n&1){let t=Fi();se(0,"p-inputNumber",31),At("ngModelChange",function(r){ht(t);let o=le(2);return pt(o.changePage(r-1))}),ce()}if(n&2){let t=le(2);J("ngModel",t.currentPage())("disabled",t.empty())}}function $Nt(n,e){n&1&&Pn(0)}function KNt(n,e){if(n&1&&Ne(0,$Nt,1,0,"ng-container",16),n&2){let t=e.$implicit,i=le(4);J("ngTemplateOutlet",i.dropdownItemTemplate)("ngTemplateOutletContext",Tr(2,ire,t))}}function WNt(n,e){n&1&&(er(0),Ne(1,KNt,1,4,"ng-template",28),tr())}function ZNt(n,e){n&1&&Pn(0)}function QNt(n,e){if(n&1&&Ne(0,ZNt,1,0,"ng-container",21),n&2){let t=le(4);J("ngTemplateOutlet",t.dropdownIconTemplate)}}function XNt(n,e){n&1&&Ne(0,QNt,1,1,"ng-template",29)}function JNt(n,e){if(n&1){let t=Fi();se(0,"p-dropdown",32),Aw("ngModelChange",function(r){ht(t);let o=le(2);return LI(o.rows,r)||(o.rows=r),pt(r)}),At("onChange",function(r){ht(t);let o=le(2);return pt(o.onRppChange(r))}),Ne(1,WNt,2,0,"ng-container",27)(2,XNt,1,0,null,27),ce()}if(n&2){let t=le(2);J("options",t.rowsPerPageItems),Tw("ngModel",t.rows),J("disabled",t.empty())("appendTo",t.dropdownAppendTo)("scrollHeight",t.dropdownScrollHeight)("ariaLabel",t.getAriaLabel("rowsPerPageLabel")),Z(),J("ngIf",t.dropdownItemTemplate),Z(),J("ngIf",t.dropdownIconTemplate)}}function ePt(n,e){n&1&&Pn(0)}function tPt(n,e){if(n&1&&(se(0,"div",33),Ne(1,ePt,1,0,"ng-container",16),ce()),n&2){let t=le(2);Et("data-pc-section","end"),Z(),J("ngTemplateOutlet",t.templateRight)("ngTemplateOutletContext",Tr(3,ire,t.paginatorState))}}function iPt(n,e){if(n&1){let t=Fi();se(0,"div",1),Ne(1,gNt,2,5,"div",2)(2,_Nt,2,1,"span",3)(3,wNt,3,7,"button",4),se(4,"button",5),At("click",function(r){ht(t);let o=le();return pt(o.changePageToPrev(r))}),Ne(5,CNt,1,1,"AngleLeftIcon",6)(6,INt,2,1,"span",7),ce(),Ne(7,ANt,2,1,"span",8)(8,FNt,4,8,"p-dropdown",9),se(9,"button",10),At("click",function(r){ht(t);let o=le();return pt(o.changePageToNext(r))}),Ne(10,LNt,1,1,"AngleRightIcon",6)(11,VNt,2,1,"span",7),ce(),Ne(12,YNt,3,7,"button",11)(13,qNt,1,2,"p-inputNumber",12)(14,JNt,3,8,"p-dropdown",13)(15,tPt,2,5,"div",14),ce()}if(n&2){let t=le();vn(t.styleClass),J("ngStyle",t.style)("ngClass","p-paginator p-component"),Et("data-pc-section","paginator")("data-pc-section","root"),Z(),J("ngIf",t.templateLeft),Z(),J("ngIf",t.showCurrentPageReport),Z(),J("ngIf",t.showFirstLastIcon),Z(),J("disabled",t.isFirstPage()||t.empty())("ngClass",Tr(25,tre,t.isFirstPage()||t.empty())),Et("aria-label",t.getAriaLabel("prevPageLabel")),Z(),J("ngIf",!t.previousPageLinkIconTemplate),Z(),J("ngIf",t.previousPageLinkIconTemplate),Z(),J("ngIf",t.showPageLinks),Z(),J("ngIf",t.showJumpToPageDropdown),Z(),J("disabled",t.isLastPage()||t.empty())("ngClass",Tr(27,tre,t.isLastPage()||t.empty())),Et("aria-label",t.getAriaLabel("nextPageLabel")),Z(),J("ngIf",!t.nextPageLinkIconTemplate),Z(),J("ngIf",t.nextPageLinkIconTemplate),Z(),J("ngIf",t.showFirstLastIcon),Z(),J("ngIf",t.showJumpToPageInput),Z(),J("ngIf",t.rowsPerPageOptions),Z(),J("ngIf",t.templateRight)}}var n9e=(()=>{class n{cd;config;pageLinkSize=5;style;styleClass;alwaysShow=!0;dropdownAppendTo;templateLeft;templateRight;appendTo;dropdownScrollHeight="200px";currentPageReportTemplate="{currentPage} of {totalPages}";showCurrentPageReport;showFirstLastIcon=!0;totalRecords=0;rows=0;rowsPerPageOptions;showJumpToPageDropdown;showJumpToPageInput;jumpToPageItemTemplate;showPageLinks=!0;locale;dropdownItemTemplate;get first(){return this._first}set first(t){this._first=t}onPageChange=new Kt;templates;dropdownIconTemplate;firstPageLinkIconTemplate;previousPageLinkIconTemplate;lastPageLinkIconTemplate;nextPageLinkIconTemplate;pageLinks;pageItems;rowsPerPageItems;paginatorState;_first=0;_page=0;constructor(t,i){this.cd=t,this.config=i}ngOnInit(){this.updatePaginatorState()}getAriaLabel(t){return this.config.translation.aria?this.config.translation.aria[t]:void 0}getPageAriaLabel(t){return this.config.translation.aria?this.config.translation.aria.pageLabel.replace(/{page}/g,`${t}`):void 0}getLocalization(t){let i=[...new Intl.NumberFormat(this.locale,{useGrouping:!1}).format(9876543210)].reverse(),r=new Map(i.map((o,s)=>[s,o]));return t>9?String(t).split("").map(s=>r.get(Number(s))).join(""):r.get(t)}ngAfterContentInit(){this.templates.forEach(t=>{switch(t.getType()){case"dropdownicon":this.dropdownIconTemplate=t.template;break;case"firstpagelinkicon":this.firstPageLinkIconTemplate=t.template;break;case"previouspagelinkicon":this.previousPageLinkIconTemplate=t.template;break;case"lastpagelinkicon":this.lastPageLinkIconTemplate=t.template;break;case"nextpagelinkicon":this.nextPageLinkIconTemplate=t.template;break}})}ngOnChanges(t){t.totalRecords&&(this.updatePageLinks(),this.updatePaginatorState(),this.updateFirst(),this.updateRowsPerPageOptions()),t.first&&(this._first=t.first.currentValue,this.updatePageLinks(),this.updatePaginatorState()),t.rows&&(this.updatePageLinks(),this.updatePaginatorState()),t.rowsPerPageOptions&&this.updateRowsPerPageOptions(),t.pageLinkSize&&this.updatePageLinks()}updateRowsPerPageOptions(){if(this.rowsPerPageOptions){this.rowsPerPageItems=[];for(let t of this.rowsPerPageOptions)typeof t=="object"&&t.showAll?this.rowsPerPageItems.unshift({label:t.showAll,value:this.totalRecords}):this.rowsPerPageItems.push({label:String(this.getLocalization(t)),value:t})}}isFirstPage(){return this.getPage()===0}isLastPage(){return this.getPage()===this.getPageCount()-1}getPageCount(){return Math.ceil(this.totalRecords/this.rows)}calculatePageLinkBoundaries(){let t=this.getPageCount(),i=Math.min(this.pageLinkSize,t),r=Math.max(0,Math.ceil(this.getPage()-i/2)),o=Math.min(t-1,r+i-1);var s=this.pageLinkSize-(o-r+1);return r=Math.max(0,r-s),[r,o]}updatePageLinks(){this.pageLinks=[];let t=this.calculatePageLinkBoundaries(),i=t[0],r=t[1];for(let o=i;o<=r;o++)this.pageLinks.push(o+1);if(this.showJumpToPageDropdown){this.pageItems=[];for(let o=0;o=0&&t0&&this.totalRecords&&this.first>=this.totalRecords&&Promise.resolve(null).then(()=>this.changePage(t-1))}getPage(){return Math.floor(this.first/this.rows)}changePageToFirst(t){this.isFirstPage()||this.changePage(0),t.preventDefault()}changePageToPrev(t){this.changePage(this.getPage()-1),t.preventDefault()}changePageToNext(t){this.changePage(this.getPage()+1),t.preventDefault()}changePageToLast(t){this.isLastPage()||this.changePage(this.getPageCount()-1),t.preventDefault()}onPageLinkClick(t,i){this.changePage(i),t.preventDefault()}onRppChange(t){this.changePage(this.getPage())}onPageDropdownChange(t){this.changePage(t.value)}updatePaginatorState(){this.paginatorState={page:this.getPage(),pageCount:this.getPageCount(),rows:this.rows,first:this.first,totalRecords:this.totalRecords}}empty(){return this.getPageCount()===0}currentPage(){return this.getPageCount()>0?this.getPage()+1:0}get currentPageReport(){return this.currentPageReportTemplate.replace("{currentPage}",String(this.currentPage())).replace("{totalPages}",String(this.getPageCount())).replace("{first}",String(this.totalRecords>0?this._first+1:0)).replace("{last}",String(Math.min(this._first+this.rows,this.totalRecords))).replace("{rows}",String(this.rows)).replace("{totalRecords}",String(this.totalRecords))}static \u0275fac=function(i){return new(i||n)(oe(ur),oe(zu))};static \u0275cmp=Ct({type:n,selectors:[["p-paginator"]],contentQueries:function(i,r,o){if(i&1&&gr(o,Ra,4),i&2){let s;Di(s=ki())&&(r.templates=s)}},hostAttrs:[1,"p-element"],inputs:{pageLinkSize:[2,"pageLinkSize","pageLinkSize",xr],style:"style",styleClass:"styleClass",alwaysShow:[2,"alwaysShow","alwaysShow",Ht],dropdownAppendTo:"dropdownAppendTo",templateLeft:"templateLeft",templateRight:"templateRight",appendTo:"appendTo",dropdownScrollHeight:"dropdownScrollHeight",currentPageReportTemplate:"currentPageReportTemplate",showCurrentPageReport:[2,"showCurrentPageReport","showCurrentPageReport",Ht],showFirstLastIcon:[2,"showFirstLastIcon","showFirstLastIcon",Ht],totalRecords:[2,"totalRecords","totalRecords",xr],rows:[2,"rows","rows",xr],rowsPerPageOptions:"rowsPerPageOptions",showJumpToPageDropdown:[2,"showJumpToPageDropdown","showJumpToPageDropdown",Ht],showJumpToPageInput:[2,"showJumpToPageInput","showJumpToPageInput",Ht],jumpToPageItemTemplate:"jumpToPageItemTemplate",showPageLinks:[2,"showPageLinks","showPageLinks",Ht],locale:"locale",dropdownItemTemplate:"dropdownItemTemplate",first:"first"},outputs:{onPageChange:"onPageChange"},features:[Ir,eo],decls:1,vars:1,consts:[[3,"class","ngStyle","ngClass",4,"ngIf"],[3,"ngStyle","ngClass"],["class","p-paginator-left-content",4,"ngIf"],["class","p-paginator-current",4,"ngIf"],["type","button","pRipple","","class","p-paginator-first p-paginator-element p-link",3,"disabled","ngClass","click",4,"ngIf"],["type","button","pRipple","",1,"p-paginator-prev","p-paginator-element","p-link",3,"click","disabled","ngClass"],[3,"styleClass",4,"ngIf"],["class","p-paginator-icon",4,"ngIf"],["class","p-paginator-pages",4,"ngIf"],["styleClass","p-paginator-page-options",3,"options","ngModel","disabled","appendTo","scrollHeight","onChange",4,"ngIf"],["type","button","pRipple","",1,"p-paginator-next","p-paginator-element","p-link",3,"click","disabled","ngClass"],["type","button","pRipple","","class","p-paginator-last p-paginator-element p-link",3,"disabled","ngClass","click",4,"ngIf"],["class","p-paginator-page-input",3,"ngModel","disabled","ngModelChange",4,"ngIf"],["styleClass","p-paginator-rpp-options",3,"options","ngModel","disabled","appendTo","scrollHeight","ariaLabel","ngModelChange","onChange",4,"ngIf"],["class","p-paginator-right-content",4,"ngIf"],[1,"p-paginator-left-content"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"p-paginator-current"],["type","button","pRipple","",1,"p-paginator-first","p-paginator-element","p-link",3,"click","disabled","ngClass"],[3,"styleClass"],[1,"p-paginator-icon"],[4,"ngTemplateOutlet"],[1,"p-paginator-pages"],["type","button","class","p-paginator-page p-paginator-element p-link","pRipple","",3,"ngClass","click",4,"ngFor","ngForOf"],["type","button","pRipple","",1,"p-paginator-page","p-paginator-element","p-link",3,"click","ngClass"],["styleClass","p-paginator-page-options",3,"onChange","options","ngModel","disabled","appendTo","scrollHeight"],["pTemplate","selectedItem"],[4,"ngIf"],["pTemplate","item"],["pTemplate","dropdownicon"],["type","button","pRipple","",1,"p-paginator-last","p-paginator-element","p-link",3,"click","disabled","ngClass"],[1,"p-paginator-page-input",3,"ngModelChange","ngModel","disabled"],["styleClass","p-paginator-rpp-options",3,"ngModelChange","onChange","options","ngModel","disabled","appendTo","scrollHeight","ariaLabel"],[1,"p-paginator-right-content"]],template:function(i,r){i&1&&Ne(0,iPt,16,29,"div",0),i&2&&J("ngIf",r.alwaysShow?!0:r.pageLinks&&r.pageLinks.length>1)},dependencies:()=>[Xa,Hf,Ul,Rs,Zc,zG,Ra,tIe,LT,pR,ix,iIe,nIe,rIe,oIe],styles:[`@layer primeng{.p-paginator{display:flex;align-items:center;justify-content:center;flex-wrap:wrap}.p-paginator-left-content{margin-right:auto}.p-paginator-right-content{margin-left:auto}.p-paginator-page,.p-paginator-next,.p-paginator-last,.p-paginator-first,.p-paginator-prev,.p-paginator-current{cursor:pointer;display:inline-flex;align-items:center;justify-content:center;line-height:1;-webkit-user-select:none;user-select:none;overflow:hidden;position:relative}.p-paginator-element:focus{z-index:1;position:relative}} `],encapsulation:2,changeDetection:0})}return n})(),nre=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275mod=Oi({type:n});static \u0275inj=Mi({imports:[os,xR,VG,dC,Hl,JT,iIe,nIe,rIe,oIe,xR,VG,dC,Hl]})}return n})();var rPt=["container"],oPt=(n,e,t)=>({"p-highlight":n,"p-disabled":e,"p-button-icon-only":t}),sPt=(n,e)=>({$implicit:n,index:e});function aPt(n,e){if(n&1&&bt(0,"span",8),n&2){let t=le(2).$implicit;vn(t.icon),J("ngClass","p-button-icon p-button-icon-left"),Et("data-pc-section","icon")}}function lPt(n,e){if(n&1&&(er(0),Ne(1,aPt,1,4,"span",6),se(2,"span",7),yt(3),ce(),tr()),n&2){let t=le().$implicit,i=le();Z(),J("ngIf",t.icon),Z(),Et("data-pc-section","label"),Z(),jn(i.getOptionLabel(t))}}function cPt(n,e){n&1&&Pn(0)}function uPt(n,e){if(n&1&&Ne(0,cPt,1,0,"ng-container",9),n&2){let t=le(),i=t.$implicit,r=t.index,o=le();J("ngTemplateOutlet",o.selectButtonTemplate)("ngTemplateOutletContext",ha(2,sPt,i,r))}}function dPt(n,e){if(n&1){let t=Fi();se(0,"div",4),At("click",function(r){let o=ht(t),s=o.$implicit,c=o.index,h=le();return pt(h.onOptionSelect(r,s,c))})("keydown",function(r){let o=ht(t),s=o.$implicit,c=o.index,h=le();return pt(h.onKeyDown(r,s,c))})("focus",function(r){let o=ht(t).index,s=le();return pt(s.onFocus(r,o))})("blur",function(){ht(t);let r=le();return pt(r.onBlur())}),Ne(1,lPt,4,3,"ng-container",5)(2,uPt,1,5,"ng-template",null,1,ws),ce()}if(n&2){let t=e.$implicit,i=e.index,r=_r(3),o=le();vn(t.styleClass),J("role",o.multiple?"checkbox":"radio")("ngClass",gh(14,oPt,o.isSelected(t),o.disabled||o.isOptionDisabled(t),t.icon&&!o.getOptionLabel(t)))("autofocus",o.autofocus),Et("tabindex",i===o.focusedIndex?"0":"-1")("aria-label",t.label)("aria-checked",o.isSelected(t))("aria-disabled",o.optionDisabled)("title",t.title)("aria-labelledby",o.getOptionLabel(t))("data-pc-section","button"),Z(),J("ngIf",!o.itemTemplate)("ngIfElse",r)}}var hPt={provide:Bu,useExisting:ka(()=>pPt),multi:!0},pPt=(()=>{class n{cd;options;optionLabel;optionValue;optionDisabled;unselectable=!1;tabindex=0;multiple;allowEmpty=!0;style;styleClass;ariaLabelledBy;disabled;dataKey;autofocus;onOptionClick=new Kt;onChange=new Kt;container;itemTemplate;get selectButtonTemplate(){return this.itemTemplate?.template}get equalityKey(){return this.optionValue?null:this.dataKey}value;onModelChange=()=>{};onModelTouched=()=>{};focusedIndex=0;constructor(t){this.cd=t}getOptionLabel(t){return this.optionLabel?Mn.resolveFieldData(t,this.optionLabel):t.label!=null?t.label:t}getOptionValue(t){return this.optionValue?Mn.resolveFieldData(t,this.optionValue):this.optionLabel||t.value===void 0?t:t.value}isOptionDisabled(t){return this.optionDisabled?Mn.resolveFieldData(t,this.optionDisabled):t.disabled!==void 0?t.disabled:!1}writeValue(t){this.value=t,this.cd.markForCheck()}registerOnChange(t){this.onModelChange=t}registerOnTouched(t){this.onModelTouched=t}setDisabledState(t){this.disabled=t,this.cd.markForCheck()}onOptionSelect(t,i,r){if(this.disabled||this.isOptionDisabled(i))return;let o=this.isSelected(i);if(o&&this.unselectable)return;let s=this.getOptionValue(i),c;if(this.multiple)o?c=this.value.filter(h=>!Mn.equals(h,s,this.equalityKey)):c=this.value?[...this.value,s]:[s];else{if(o&&!this.allowEmpty)return;c=o?null:s}this.focusedIndex=r,this.value=c,this.onModelChange(this.value),this.onChange.emit({originalEvent:t,value:this.value}),this.onOptionClick.emit({originalEvent:t,option:i,index:r})}onKeyDown(t,i,r){switch(t.code){case"Space":{this.onOptionSelect(t,i,r),t.preventDefault();break}case"ArrowDown":case"ArrowRight":{this.changeTabIndexes(t,"next"),t.preventDefault();break}case"ArrowUp":case"ArrowLeft":{this.changeTabIndexes(t,"prev"),t.preventDefault();break}default:break}}changeTabIndexes(t,i){let r,o;for(let s=0;s<=this.container.nativeElement.children.length-1;s++)this.container.nativeElement.children[s].getAttribute("tabindex")==="0"&&(r={elem:this.container.nativeElement.children[s],index:s});i==="prev"?r.index===0?o=this.container.nativeElement.children.length-1:o=r.index-1:r.index===this.container.nativeElement.children.length-1?o=0:o=r.index+1,this.focusedIndex=o,this.container.nativeElement.children[o].focus()}onFocus(t,i){this.focusedIndex=i}onBlur(){this.onModelTouched()}removeOption(t){this.value=this.value.filter(i=>!Mn.equals(i,this.getOptionValue(t),this.dataKey))}isSelected(t){let i=!1,r=this.getOptionValue(t);if(this.multiple){if(this.value&&Array.isArray(this.value)){for(let o of this.value)if(Mn.equals(o,r,this.dataKey)){i=!0;break}}}else i=Mn.equals(this.getOptionValue(t),this.value,this.equalityKey);return i}static \u0275fac=function(i){return new(i||n)(oe(ur))};static \u0275cmp=Ct({type:n,selectors:[["p-selectButton"]],contentQueries:function(i,r,o){if(i&1&&gr(o,Ra,5),i&2){let s;Di(s=ki())&&(r.itemTemplate=s.first)}},viewQuery:function(i,r){if(i&1&&Xn(rPt,5),i&2){let o;Di(o=ki())&&(r.container=o.first)}},hostAttrs:[1,"p-element"],inputs:{options:"options",optionLabel:"optionLabel",optionValue:"optionValue",optionDisabled:"optionDisabled",unselectable:[2,"unselectable","unselectable",Ht],tabindex:[2,"tabindex","tabindex",xr],multiple:[2,"multiple","multiple",Ht],allowEmpty:[2,"allowEmpty","allowEmpty",Ht],style:"style",styleClass:"styleClass",ariaLabelledBy:"ariaLabelledBy",disabled:[2,"disabled","disabled",Ht],dataKey:"dataKey",autofocus:[2,"autofocus","autofocus",Ht]},outputs:{onOptionClick:"onOptionClick",onChange:"onChange"},features:[Co([hPt]),Ir],decls:3,vars:8,consts:[["container",""],["customcontent",""],["role","group",3,"ngClass","ngStyle"],["pRipple","","class","p-button p-component","pAutoFocus","",3,"role","class","ngClass","autofocus","click","keydown","focus","blur",4,"ngFor","ngForOf"],["pRipple","","pAutoFocus","",1,"p-button","p-component",3,"click","keydown","focus","blur","role","ngClass","autofocus"],[4,"ngIf","ngIfElse"],[3,"ngClass","class",4,"ngIf"],[1,"p-button-label"],[3,"ngClass"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(i,r){i&1&&(se(0,"div",2,0),Ne(2,dPt,4,18,"div",3),ce()),i&2&&(vn(r.styleClass),J("ngClass","p-selectbutton p-buttonset p-component")("ngStyle",r.style),Et("aria-labelledby",r.ariaLabelledBy)("data-pc-name","selectbutton")("data-pc-section","root"),Z(2),J("ngForOf",r.options))},dependencies:[Xa,Hf,Ul,Rs,Zc,ix,N_],styles:[`@layer primeng{.p-button{margin:0;display:inline-flex;cursor:pointer;-webkit-user-select:none;user-select:none;align-items:center;vertical-align:bottom;text-align:center;overflow:hidden;position:relative}.p-button-label{flex:1 1 auto}.p-button-icon-right{order:1}.p-button:disabled{cursor:default;pointer-events:none}.p-button-icon-only{justify-content:center}.p-button-icon-only:after{content:"p";visibility:hidden;clip:rect(0 0 0 0);width:0}.p-button-vertical{flex-direction:column}.p-button-icon-bottom{order:2}.p-button-group .p-button{margin:0}.p-button-group .p-button:focus,.p-button-group p-button:focus .p-button,.p-buttonset .p-button:focus,.p-buttonset p-button:focus .p-button{position:relative;z-index:1}.p-button-group .p-button:not(:last-child),.p-button-group .p-button:not(:last-child):hover,.p-button-group p-button:not(:last-child) .p-button,.p-button-group p-button:not(:last-child) .p-button:hover,.p-buttonset .p-button:not(:last-child),.p-buttonset .p-button:not(:last-child):hover,.p-buttonset p-button:not(:last-child) .p-button,.p-buttonset p-button:not(:last-child) .p-button:hover{border-right:0 none}.p-button-group .p-button:not(:first-of-type):not(:last-of-type),.p-button-group p-button:not(:first-of-type):not(:last-of-type) .p-button,.p-buttonset .p-button:not(:first-of-type):not(:last-of-type),.p-buttonset p-button:not(:first-of-type):not(:last-of-type) .p-button{border-radius:0}.p-button-group .p-button:first-of-type:not(:only-of-type),.p-button-group p-button:first-of-type:not(:only-of-type) .p-button,.p-buttonset .p-button:first-of-type:not(:only-of-type),.p-buttonset p-button:first-of-type:not(:only-of-type) .p-button{border-top-right-radius:0;border-bottom-right-radius:0}.p-button-group .p-button:last-of-type:not(:only-of-type),.p-button-group p-button:last-of-type:not(:only-of-type) .p-button,.p-buttonset .p-button:last-of-type:not(:only-of-type),.p-buttonset p-button:last-of-type:not(:only-of-type) .p-button{border-top-left-radius:0;border-bottom-left-radius:0}p-button[iconpos=right] spinnericon{order:1}} `],encapsulation:2,changeDetection:0})}return n})(),r9e=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275mod=Oi({type:n});static \u0275inj=Mi({imports:[os,JT,Hl,tx,Hl]})}return n})();var fPt=(n,e,t)=>({"p-checkbox p-component":!0,"p-checkbox-disabled":n,"p-checkbox-focused":e,"p-variant-filled":t}),mPt=(n,e,t)=>({"p-highlight":n,"p-disabled":e,"p-focus":t}),gPt=(n,e,t)=>({"p-checkbox-label-active":n,"p-disabled":e,"p-checkbox-label-focus":t});function _Pt(n,e){if(n&1&&bt(0,"span",8),n&2){let t=le(2);J("ngClass",t.checkboxTrueIcon),Et("data-pc-section","checkIcon")}}function vPt(n,e){n&1&&bt(0,"CheckIcon",11),n&2&&(J("styleClass","p-checkbox-icon"),Et("data-pc-section","checkIcon"))}function yPt(n,e){}function bPt(n,e){n&1&&Ne(0,yPt,0,0,"ng-template")}function xPt(n,e){if(n&1&&(se(0,"span",12),Ne(1,bPt,1,0,null,13),ce()),n&2){let t=le(3);Et("data-pc-section","checkIcon"),Z(),J("ngTemplateOutlet",t.checkIconTemplate)}}function wPt(n,e){if(n&1&&(er(0),Ne(1,vPt,1,2,"CheckIcon",9)(2,xPt,2,2,"span",10),tr()),n&2){let t=le(2);Z(),J("ngIf",!t.checkIconTemplate),Z(),J("ngIf",t.checkIconTemplate)}}function CPt(n,e){if(n&1&&(er(0),Ne(1,_Pt,1,2,"span",7)(2,wPt,3,2,"ng-container",5),tr()),n&2){let t=le();Z(),J("ngIf",t.checkboxTrueIcon),Z(),J("ngIf",!t.checkboxTrueIcon)}}function SPt(n,e){if(n&1&&bt(0,"span",8),n&2){let t=le(2);J("ngClass",t.checkboxFalseIcon),Et("data-pc-section","uncheckIcon")}}function EPt(n,e){n&1&&bt(0,"TimesIcon",11),n&2&&(J("styleClass","p-checkbox-icon"),Et("data-pc-section","uncheckIcon"))}function IPt(n,e){}function TPt(n,e){n&1&&Ne(0,IPt,0,0,"ng-template")}function APt(n,e){if(n&1&&(se(0,"span",12),Ne(1,TPt,1,0,null,13),ce()),n&2){let t=le(3);Et("data-pc-section","uncheckIcon"),Z(),J("ngTemplateOutlet",t.uncheckIconTemplate)}}function DPt(n,e){if(n&1&&(er(0),Ne(1,EPt,1,2,"TimesIcon",9)(2,APt,2,2,"span",10),tr()),n&2){let t=le(2);Z(),J("ngIf",!t.uncheckIconTemplate),Z(),J("ngIf",t.uncheckIconTemplate)}}function kPt(n,e){if(n&1&&(er(0),Ne(1,SPt,1,2,"span",7)(2,DPt,3,2,"ng-container",5),tr()),n&2){let t=le();Z(),J("ngIf",t.checkboxFalseIcon),Z(),J("ngIf",!t.checkboxFalseIcon)}}function MPt(n,e){if(n&1){let t=Fi();se(0,"label",14),At("click",function(r){ht(t);let o=le(),s=_r(3);return pt(o.onClick(r,s))}),yt(1),ce()}if(n&2){let t=le();J("ngClass",gh(3,gPt,t.value!=null,t.disabled,t.focused)),Et("for",t.inputId),Z(),jn(t.label)}}var OPt={provide:Bu,useExisting:ka(()=>RPt),multi:!0},RPt=(()=>{class n{cd;config;constructor(t,i){this.cd=t,this.config=i}disabled;name;ariaLabel;ariaLabelledBy;variant="outlined";tabindex;inputId;style;styleClass;label;readonly;checkboxTrueIcon;checkboxFalseIcon;autofocus;onChange=new Kt;templates;checkIconTemplate;uncheckIconTemplate;focused;value;onModelChange=()=>{};onModelTouched=()=>{};onClick(t,i){!this.disabled&&!this.readonly&&(this.toggle(t),this.focused=!0,i.focus())}onKeyDown(t){t.key==="Enter"&&(this.toggle(t),t.preventDefault())}toggle(t){this.value==null||this.value==null?this.value=!0:this.value==!0?this.value=!1:this.value==!1&&(this.value=null),this.onModelChange(this.value),this.onChange.emit({originalEvent:t,value:this.value})}ngAfterContentInit(){this.templates.forEach(t=>{switch(t.getType()){case"checkicon":this.checkIconTemplate=t.template;break;case"uncheckicon":this.uncheckIconTemplate=t.template;break}})}onFocus(){this.focused=!0}onBlur(){this.focused=!1,this.onModelTouched()}registerOnChange(t){this.onModelChange=t}registerOnTouched(t){this.onModelTouched=t}writeValue(t){this.value=t,this.cd.markForCheck()}setDisabledState(t){this.disabled=t,this.cd.markForCheck()}static \u0275fac=function(i){return new(i||n)(oe(ur),oe(zu))};static \u0275cmp=Ct({type:n,selectors:[["p-triStateCheckbox"]],contentQueries:function(i,r,o){if(i&1&&gr(o,Ra,4),i&2){let s;Di(s=ki())&&(r.templates=s)}},hostAttrs:[1,"p-element"],inputs:{disabled:[2,"disabled","disabled",Ht],name:"name",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",variant:"variant",tabindex:[2,"tabindex","tabindex",xr],inputId:"inputId",style:"style",styleClass:"styleClass",label:"label",readonly:[2,"readonly","readonly",Ht],checkboxTrueIcon:"checkboxTrueIcon",checkboxFalseIcon:"checkboxFalseIcon",autofocus:[2,"autofocus","autofocus",Ht]},outputs:{onChange:"onChange"},features:[Co([OPt]),Ir],decls:8,vars:28,consts:[["input",""],[3,"click","ngStyle","ngClass"],[1,"p-hidden-accessible"],["type","checkbox","inputmode","none","pAutoFocus","",3,"keydown","focus","blur","name","readonly","disabled","autofocus"],["role","checkbox",1,"p-checkbox-box",3,"ngClass"],[4,"ngIf"],["class","p-checkbox-label",3,"ngClass","click",4,"ngIf"],["class","p-checkbox-icon",3,"ngClass",4,"ngIf"],[1,"p-checkbox-icon",3,"ngClass"],[3,"styleClass",4,"ngIf"],["class","p-checkbox-icon",4,"ngIf"],[3,"styleClass"],[1,"p-checkbox-icon"],[4,"ngTemplateOutlet"],[1,"p-checkbox-label",3,"click","ngClass"]],template:function(i,r){if(i&1){let o=Fi();se(0,"div",1),At("click",function(c){ht(o);let h=_r(3);return pt(r.onClick(c,h))}),se(1,"div",2)(2,"input",3,0),At("keydown",function(c){return ht(o),pt(r.onKeyDown(c))})("focus",function(){return ht(o),pt(r.onFocus())})("blur",function(){return ht(o),pt(r.onBlur())}),ce()(),se(4,"div",4),Ne(5,CPt,3,2,"ng-container",5)(6,kPt,3,2,"ng-container",5),ce()(),Ne(7,MPt,2,7,"label",6)}i&2&&(vn(r.styleClass),J("ngStyle",r.style)("ngClass",gh(20,fPt,r.disabled,r.focused,r.variant==="filled"||r.config.inputStyle()==="filled")),Et("data-pc-name","tristatecheckbox")("data-pc-section","root"),Z(2),J("name",r.name)("readonly",r.readonly)("disabled",r.disabled)("autofocus",r.autofocus),Et("id",r.inputId)("tabindex",r.tabindex)("aria-labelledby",r.ariaLabelledBy)("aria-label",r.ariaLabel)("data-pc-section","hiddenInput"),Z(2),J("ngClass",gh(24,mPt,r.value!=null,r.disabled,r.focused)),Et("aria-checked",r.value===!0),Z(),J("ngIf",r.value===!0),Z(),J("ngIf",r.value===!1),Z(),J("ngIf",r.label))},dependencies:()=>[Xa,Ul,Rs,Zc,N_,tA,P_],encapsulation:2,changeDetection:0})}return n})(),o9e=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275mod=Oi({type:n});static \u0275inj=Mi({imports:[os,Hl,tx,tA,P_,Hl]})}return n})();var NPt=["container"],PPt=["resizeHelper"],FPt=["reorderIndicatorUp"],LPt=["reorderIndicatorDown"],BPt=["wrapper"],zPt=["table"],VPt=["thead"],UPt=["tfoot"],jPt=["scroller"],HPt=(n,e,t)=>({"p-datatable p-component":!0,"p-datatable-hoverable-rows":n,"p-datatable-scrollable":e,"p-datatable-flex-scrollable":t}),GPt=n=>({maxHeight:n}),s9e=n=>({height:n}),a9e=(n,e)=>({$implicit:n,options:e}),YPt=n=>({columns:n}),qPt=(n,e,t)=>({"p-datatable-table":!0,"p-datatable-scrollable-table":n,"p-datatable-resizable-table":e,"p-datatable-resizable-table-fit":t}),rre=n=>({$implicit:n}),sIe=()=>({display:"none"});function $Pt(n,e){if(n&1&&bt(0,"i"),n&2){let t=le(2);vn("p-datatable-loading-icon "+t.loadingIcon)}}function KPt(n,e){n&1&&bt(0,"SpinnerIcon",25),n&2&&J("spin",!0)("styleClass","p-datatable-loading-icon")}function WPt(n,e){}function ZPt(n,e){n&1&&Ne(0,WPt,0,0,"ng-template")}function QPt(n,e){if(n&1&&(se(0,"span",26),Ne(1,ZPt,1,0,null,27),ce()),n&2){let t=le(3);Z(),J("ngTemplateOutlet",t.loadingIconTemplate)}}function XPt(n,e){if(n&1&&(er(0),Ne(1,KPt,1,2,"SpinnerIcon",23)(2,QPt,2,1,"span",24),tr()),n&2){let t=le(2);Z(),J("ngIf",!t.loadingIconTemplate),Z(),J("ngIf",t.loadingIconTemplate)}}function JPt(n,e){if(n&1&&(se(0,"div",21),Ne(1,$Pt,1,2,"i",22)(2,XPt,3,2,"ng-container",16),ce()),n&2){let t=le();Z(),J("ngIf",t.loadingIcon),Z(),J("ngIf",!t.loadingIcon)}}function eFt(n,e){n&1&&Pn(0)}function tFt(n,e){if(n&1&&(se(0,"div",28),Ne(1,eFt,1,0,"ng-container",27),ce()),n&2){let t=le();Z(),J("ngTemplateOutlet",t.captionTemplate)}}function iFt(n,e){n&1&&Pn(0)}function nFt(n,e){if(n&1&&Ne(0,iFt,1,0,"ng-container",27),n&2){let t=le(3);J("ngTemplateOutlet",t.paginatorDropdownIconTemplate)}}function rFt(n,e){n&1&&Ne(0,nFt,1,1,"ng-template",30)}function oFt(n,e){n&1&&Pn(0)}function sFt(n,e){if(n&1&&Ne(0,oFt,1,0,"ng-container",27),n&2){let t=le(3);J("ngTemplateOutlet",t.paginatorFirstPageLinkIconTemplate)}}function aFt(n,e){n&1&&Ne(0,sFt,1,1,"ng-template",31)}function lFt(n,e){n&1&&Pn(0)}function cFt(n,e){if(n&1&&Ne(0,lFt,1,0,"ng-container",27),n&2){let t=le(3);J("ngTemplateOutlet",t.paginatorPreviousPageLinkIconTemplate)}}function uFt(n,e){n&1&&Ne(0,cFt,1,1,"ng-template",32)}function dFt(n,e){n&1&&Pn(0)}function hFt(n,e){if(n&1&&Ne(0,dFt,1,0,"ng-container",27),n&2){let t=le(3);J("ngTemplateOutlet",t.paginatorLastPageLinkIconTemplate)}}function pFt(n,e){n&1&&Ne(0,hFt,1,1,"ng-template",33)}function fFt(n,e){n&1&&Pn(0)}function mFt(n,e){if(n&1&&Ne(0,fFt,1,0,"ng-container",27),n&2){let t=le(3);J("ngTemplateOutlet",t.paginatorNextPageLinkIconTemplate)}}function gFt(n,e){n&1&&Ne(0,mFt,1,1,"ng-template",34)}function _Ft(n,e){if(n&1){let t=Fi();se(0,"p-paginator",29),At("onPageChange",function(r){ht(t);let o=le();return pt(o.onPageChange(r))}),Ne(1,rFt,1,0,null,16)(2,aFt,1,0,null,16)(3,uFt,1,0,null,16)(4,pFt,1,0,null,16)(5,gFt,1,0,null,16),ce()}if(n&2){let t=le();J("rows",t.rows)("first",t.first)("totalRecords",t.totalRecords)("pageLinkSize",t.pageLinks)("alwaysShow",t.alwaysShowPaginator)("rowsPerPageOptions",t.rowsPerPageOptions)("templateLeft",t.paginatorLeftTemplate)("templateRight",t.paginatorRightTemplate)("dropdownAppendTo",t.paginatorDropdownAppendTo)("dropdownScrollHeight",t.paginatorDropdownScrollHeight)("currentPageReportTemplate",t.currentPageReportTemplate)("showFirstLastIcon",t.showFirstLastIcon)("dropdownItemTemplate",t.paginatorDropdownItemTemplate)("showCurrentPageReport",t.showCurrentPageReport)("showJumpToPageDropdown",t.showJumpToPageDropdown)("showJumpToPageInput",t.showJumpToPageInput)("showPageLinks",t.showPageLinks)("styleClass",t.getPaginatorStyleClasses("p-paginator-top"))("locale",t.paginatorLocale),Z(),J("ngIf",t.paginatorDropdownIconTemplate),Z(),J("ngIf",t.paginatorFirstPageLinkIconTemplate),Z(),J("ngIf",t.paginatorPreviousPageLinkIconTemplate),Z(),J("ngIf",t.paginatorLastPageLinkIconTemplate),Z(),J("ngIf",t.paginatorNextPageLinkIconTemplate)}}function vFt(n,e){n&1&&Pn(0)}function yFt(n,e){if(n&1&&Ne(0,vFt,1,0,"ng-container",37),n&2){let t=e.$implicit,i=e.options;le(2);let r=_r(10);J("ngTemplateOutlet",r)("ngTemplateOutletContext",ha(2,a9e,t,i))}}function bFt(n,e){if(n&1){let t=Fi();se(0,"p-scroller",35,3),At("onLazyLoad",function(r){ht(t);let o=le();return pt(o.onLazyItemLoad(r))}),Ne(2,yFt,1,5,"ng-template",36),ce()}if(n&2){let t=le();xee(Tr(15,s9e,t.scrollHeight!=="flex"?t.scrollHeight:void 0)),J("items",t.processedData)("columns",t.columns)("scrollHeight",t.scrollHeight!=="flex"?void 0:"100%")("itemSize",t.virtualScrollItemSize||t._virtualRowHeight)("step",t.rows)("delay",t.lazy?t.virtualScrollDelay:0)("inline",!0)("lazy",t.lazy)("loaderDisabled",!0)("showSpacer",!1)("showLoader",t.loadingBodyTemplate)("options",t.virtualScrollOptions)("autoSize",!0)}}function xFt(n,e){n&1&&Pn(0)}function wFt(n,e){if(n&1&&(er(0),Ne(1,xFt,1,0,"ng-container",37),tr()),n&2){let t=le(),i=_r(10);Z(),J("ngTemplateOutlet",i)("ngTemplateOutletContext",ha(4,a9e,t.processedData,Tr(2,YPt,t.columns)))}}function CFt(n,e){n&1&&Pn(0)}function SFt(n,e){n&1&&Pn(0)}function EFt(n,e){if(n&1&&bt(0,"tbody",44),n&2){let t=le().options,i=le();J("value",i.frozenValue)("frozenRows",!0)("pTableBody",t.columns)("pTableBodyTemplate",i.frozenBodyTemplate)("frozen",!0)}}function IFt(n,e){if(n&1&&bt(0,"tbody",45),n&2){let t=le().options;J("ngStyle",Tr(1,s9e,"calc("+t.spacerStyle.height+" - "+t.rows.length*t.itemSize+"px)"))}}function TFt(n,e){n&1&&Pn(0)}function AFt(n,e){if(n&1&&(se(0,"tfoot",46,6),Ne(2,TFt,1,0,"ng-container",37),ce()),n&2){let t=le().options,i=le();Z(2),J("ngTemplateOutlet",i.footerGroupedTemplate||i.footerTemplate)("ngTemplateOutletContext",Tr(2,rre,t.columns))}}function DFt(n,e){if(n&1&&(se(0,"table",38,4),Ne(2,CFt,1,0,"ng-container",37),se(3,"thead",39,5),Ne(5,SFt,1,0,"ng-container",37),ce(),Ne(6,EFt,1,5,"tbody",40),bt(7,"tbody",41),Ne(8,IFt,1,3,"tbody",42)(9,AFt,3,4,"tfoot",43),ce()),n&2){let t=e.options,i=le();vn(i.tableStyleClass),J("ngClass",gh(18,qPt,i.scrollable,i.resizableColumns,i.resizableColumns&&i.columnResizeMode==="fit"))("ngStyle",i.tableStyle),Et("id",i.id+"-table"),Z(2),J("ngTemplateOutlet",i.colGroupTemplate)("ngTemplateOutletContext",Tr(22,rre,t.columns)),Z(3),J("ngTemplateOutlet",i.headerGroupedTemplate||i.headerTemplate)("ngTemplateOutletContext",Tr(24,rre,t.columns)),Z(),J("ngIf",i.frozenValue||i.frozenBodyTemplate),Z(),J("ngClass",t.contentStyleClass)("ngStyle",t.contentStyle)("value",i.dataToRender(t.rows))("pTableBody",t.columns)("pTableBodyTemplate",i.bodyTemplate)("scrollerOptions",t),Z(),J("ngIf",t.spacerStyle),Z(),J("ngIf",i.footerGroupedTemplate||i.footerTemplate)}}function kFt(n,e){n&1&&Pn(0)}function MFt(n,e){if(n&1&&Ne(0,kFt,1,0,"ng-container",27),n&2){let t=le(3);J("ngTemplateOutlet",t.paginatorDropdownIconTemplate)}}function OFt(n,e){n&1&&Ne(0,MFt,1,1,"ng-template",30)}function RFt(n,e){n&1&&Pn(0)}function NFt(n,e){if(n&1&&Ne(0,RFt,1,0,"ng-container",27),n&2){let t=le(3);J("ngTemplateOutlet",t.paginatorFirstPageLinkIconTemplate)}}function PFt(n,e){n&1&&Ne(0,NFt,1,1,"ng-template",31)}function FFt(n,e){n&1&&Pn(0)}function LFt(n,e){if(n&1&&Ne(0,FFt,1,0,"ng-container",27),n&2){let t=le(3);J("ngTemplateOutlet",t.paginatorPreviousPageLinkIconTemplate)}}function BFt(n,e){n&1&&Ne(0,LFt,1,1,"ng-template",32)}function zFt(n,e){n&1&&Pn(0)}function VFt(n,e){if(n&1&&Ne(0,zFt,1,0,"ng-container",27),n&2){let t=le(3);J("ngTemplateOutlet",t.paginatorLastPageLinkIconTemplate)}}function UFt(n,e){n&1&&Ne(0,VFt,1,1,"ng-template",33)}function jFt(n,e){n&1&&Pn(0)}function HFt(n,e){if(n&1&&Ne(0,jFt,1,0,"ng-container",27),n&2){let t=le(3);J("ngTemplateOutlet",t.paginatorNextPageLinkIconTemplate)}}function GFt(n,e){n&1&&Ne(0,HFt,1,1,"ng-template",34)}function YFt(n,e){if(n&1){let t=Fi();se(0,"p-paginator",29),At("onPageChange",function(r){ht(t);let o=le();return pt(o.onPageChange(r))}),Ne(1,OFt,1,0,null,16)(2,PFt,1,0,null,16)(3,BFt,1,0,null,16)(4,UFt,1,0,null,16)(5,GFt,1,0,null,16),ce()}if(n&2){let t=le();J("rows",t.rows)("first",t.first)("totalRecords",t.totalRecords)("pageLinkSize",t.pageLinks)("alwaysShow",t.alwaysShowPaginator)("rowsPerPageOptions",t.rowsPerPageOptions)("templateLeft",t.paginatorLeftTemplate)("templateRight",t.paginatorRightTemplate)("dropdownAppendTo",t.paginatorDropdownAppendTo)("dropdownScrollHeight",t.paginatorDropdownScrollHeight)("currentPageReportTemplate",t.currentPageReportTemplate)("showFirstLastIcon",t.showFirstLastIcon)("dropdownItemTemplate",t.paginatorDropdownItemTemplate)("showCurrentPageReport",t.showCurrentPageReport)("showJumpToPageDropdown",t.showJumpToPageDropdown)("showJumpToPageInput",t.showJumpToPageInput)("showPageLinks",t.showPageLinks)("styleClass",t.getPaginatorStyleClasses("p-paginator-bottom"))("locale",t.paginatorLocale),Z(),J("ngIf",t.paginatorDropdownIconTemplate),Z(),J("ngIf",t.paginatorFirstPageLinkIconTemplate),Z(),J("ngIf",t.paginatorPreviousPageLinkIconTemplate),Z(),J("ngIf",t.paginatorLastPageLinkIconTemplate),Z(),J("ngIf",t.paginatorNextPageLinkIconTemplate)}}function qFt(n,e){n&1&&Pn(0)}function $Ft(n,e){if(n&1&&(se(0,"div",47),Ne(1,qFt,1,0,"ng-container",27),ce()),n&2){let t=le();Z(),J("ngTemplateOutlet",t.summaryTemplate)}}function KFt(n,e){n&1&&bt(0,"div",48,7),n&2&&J("ngStyle",Ll(1,sIe))}function WFt(n,e){n&1&&bt(0,"ArrowDownIcon")}function ZFt(n,e){}function QFt(n,e){n&1&&Ne(0,ZFt,0,0,"ng-template")}function XFt(n,e){if(n&1&&(se(0,"span",49,8),Ne(2,WFt,1,0,"ArrowDownIcon",16)(3,QFt,1,0,null,27),ce()),n&2){let t=le();J("ngStyle",Ll(3,sIe)),Z(2),J("ngIf",!t.reorderIndicatorUpIconTemplate),Z(),J("ngTemplateOutlet",t.reorderIndicatorUpIconTemplate)}}function JFt(n,e){n&1&&bt(0,"ArrowUpIcon")}function eLt(n,e){}function tLt(n,e){n&1&&Ne(0,eLt,0,0,"ng-template")}function iLt(n,e){if(n&1&&(se(0,"span",50,9),Ne(2,JFt,1,0,"ArrowUpIcon",16)(3,tLt,1,0,null,27),ce()),n&2){let t=le();J("ngStyle",Ll(3,sIe)),Z(2),J("ngIf",!t.reorderIndicatorDownIconTemplate),Z(),J("ngTemplateOutlet",t.reorderIndicatorDownIconTemplate)}}var nLt=["pTableBody",""],aIe=(n,e,t,i,r)=>({$implicit:n,rowIndex:e,columns:t,editing:i,frozen:r}),rLt=(n,e,t,i,r,o,s)=>({$implicit:n,rowIndex:e,columns:t,editing:i,frozen:r,rowgroup:o,rowspan:s}),sre=(n,e,t,i,r,o)=>({$implicit:n,rowIndex:e,columns:t,expanded:i,editing:r,frozen:o}),l9e=(n,e,t,i)=>({$implicit:n,rowIndex:e,columns:t,frozen:i}),c9e=(n,e)=>({$implicit:n,frozen:e});function oLt(n,e){n&1&&Pn(0)}function sLt(n,e){if(n&1&&(er(0,3),Ne(1,oLt,1,0,"ng-container",4),tr()),n&2){let t=le(),i=t.$implicit,r=t.index,o=le(2);Z(),J("ngTemplateOutlet",o.dt.groupHeaderTemplate)("ngTemplateOutletContext",DL(2,aIe,i,o.getRowIndex(r),o.columns,o.dt.editMode==="row"&&o.dt.isRowEditing(i),o.frozen))}}function aLt(n,e){n&1&&Pn(0)}function lLt(n,e){if(n&1&&(er(0),Ne(1,aLt,1,0,"ng-container",4),tr()),n&2){let t=le(),i=t.$implicit,r=t.index,o=le(2);Z(),J("ngTemplateOutlet",i?o.template:o.dt.loadingBodyTemplate)("ngTemplateOutletContext",DL(2,aIe,i,o.getRowIndex(r),o.columns,o.dt.editMode==="row"&&o.dt.isRowEditing(i),o.frozen))}}function cLt(n,e){n&1&&Pn(0)}function uLt(n,e){if(n&1&&(er(0),Ne(1,cLt,1,0,"ng-container",4),tr()),n&2){let t=le(),i=t.$implicit,r=t.index,o=le(2);Z(),J("ngTemplateOutlet",i?o.template:o.dt.loadingBodyTemplate)("ngTemplateOutletContext",D4e(2,rLt,i,o.getRowIndex(r),o.columns,o.dt.editMode==="row"&&o.dt.isRowEditing(i),o.frozen,o.shouldRenderRowspan(o.value,i,r),o.calculateRowGroupSize(o.value,i,r)))}}function dLt(n,e){n&1&&Pn(0)}function hLt(n,e){if(n&1&&(er(0,3),Ne(1,dLt,1,0,"ng-container",4),tr()),n&2){let t=le(),i=t.$implicit,r=t.index,o=le(2);Z(),J("ngTemplateOutlet",o.dt.groupFooterTemplate)("ngTemplateOutletContext",DL(2,aIe,i,o.getRowIndex(r),o.columns,o.dt.editMode==="row"&&o.dt.isRowEditing(i),o.frozen))}}function pLt(n,e){if(n&1&&Ne(0,sLt,2,8,"ng-container",2)(1,lLt,2,8,"ng-container",0)(2,uLt,2,10,"ng-container",0)(3,hLt,2,8,"ng-container",2),n&2){let t=e.$implicit,i=e.index,r=le(2);J("ngIf",r.dt.groupHeaderTemplate&&!r.dt.virtualScroll&&r.dt.rowGroupMode==="subheader"&&r.shouldRenderRowGroupHeader(r.value,t,i)),Z(),J("ngIf",r.dt.rowGroupMode!=="rowspan"),Z(),J("ngIf",r.dt.rowGroupMode==="rowspan"),Z(),J("ngIf",r.dt.groupFooterTemplate&&!r.dt.virtualScroll&&r.dt.rowGroupMode==="subheader"&&r.shouldRenderRowGroupFooter(r.value,t,i))}}function fLt(n,e){if(n&1&&(er(0),Ne(1,pLt,4,4,"ng-template",1),tr()),n&2){let t=le();Z(),J("ngForOf",t.value)("ngForTrackBy",t.dt.rowTrackBy)}}function mLt(n,e){n&1&&Pn(0)}function gLt(n,e){if(n&1&&(er(0),Ne(1,mLt,1,0,"ng-container",4),tr()),n&2){let t=le(),i=t.$implicit,r=t.index,o=le(2);Z(),J("ngTemplateOutlet",o.template)("ngTemplateOutletContext",cO(2,sre,i,o.getRowIndex(r),o.columns,o.dt.isRowExpanded(i),o.dt.editMode==="row"&&o.dt.isRowEditing(i),o.frozen))}}function _Lt(n,e){n&1&&Pn(0)}function vLt(n,e){if(n&1&&(er(0,3),Ne(1,_Lt,1,0,"ng-container",4),tr()),n&2){let t=le(),i=t.$implicit,r=t.index,o=le(2);Z(),J("ngTemplateOutlet",o.dt.groupHeaderTemplate)("ngTemplateOutletContext",cO(2,sre,i,o.getRowIndex(r),o.columns,o.dt.isRowExpanded(i),o.dt.editMode==="row"&&o.dt.isRowEditing(i),o.frozen))}}function yLt(n,e){n&1&&Pn(0)}function bLt(n,e){n&1&&Pn(0)}function xLt(n,e){if(n&1&&(er(0,3),Ne(1,bLt,1,0,"ng-container",4),tr()),n&2){let t=le(2),i=t.$implicit,r=t.index,o=le(2);Z(),J("ngTemplateOutlet",o.dt.groupFooterTemplate)("ngTemplateOutletContext",cO(2,sre,i,o.getRowIndex(r),o.columns,o.dt.isRowExpanded(i),o.dt.editMode==="row"&&o.dt.isRowEditing(i),o.frozen))}}function wLt(n,e){if(n&1&&(er(0),Ne(1,yLt,1,0,"ng-container",4)(2,xLt,2,9,"ng-container",2),tr()),n&2){let t=le(),i=t.$implicit,r=t.index,o=le(2);Z(),J("ngTemplateOutlet",o.dt.expandedRowTemplate)("ngTemplateOutletContext",s1e(3,l9e,i,o.getRowIndex(r),o.columns,o.frozen)),Z(),J("ngIf",o.dt.groupFooterTemplate&&o.dt.rowGroupMode==="subheader"&&o.shouldRenderRowGroupFooter(o.value,i,o.getRowIndex(r)))}}function CLt(n,e){if(n&1&&Ne(0,gLt,2,9,"ng-container",0)(1,vLt,2,9,"ng-container",2)(2,wLt,3,8,"ng-container",0),n&2){let t=e.$implicit,i=e.index,r=le(2);J("ngIf",!r.dt.groupHeaderTemplate),Z(),J("ngIf",r.dt.groupHeaderTemplate&&r.dt.rowGroupMode==="subheader"&&r.shouldRenderRowGroupHeader(r.value,t,r.getRowIndex(i))),Z(),J("ngIf",r.dt.isRowExpanded(t))}}function SLt(n,e){if(n&1&&(er(0),Ne(1,CLt,3,3,"ng-template",1),tr()),n&2){let t=le();Z(),J("ngForOf",t.value)("ngForTrackBy",t.dt.rowTrackBy)}}function ELt(n,e){n&1&&Pn(0)}function ILt(n,e){n&1&&Pn(0)}function TLt(n,e){if(n&1&&(er(0),Ne(1,ILt,1,0,"ng-container",4),tr()),n&2){let t=le(),i=t.$implicit,r=t.index,o=le(2);Z(),J("ngTemplateOutlet",o.dt.frozenExpandedRowTemplate)("ngTemplateOutletContext",s1e(2,l9e,i,o.getRowIndex(r),o.columns,o.frozen))}}function ALt(n,e){if(n&1&&Ne(0,ELt,1,0,"ng-container",4)(1,TLt,2,7,"ng-container",0),n&2){let t=e.$implicit,i=e.index,r=le(2);J("ngTemplateOutlet",r.template)("ngTemplateOutletContext",cO(3,sre,t,r.getRowIndex(i),r.columns,r.dt.isRowExpanded(t),r.dt.editMode==="row"&&r.dt.isRowEditing(t),r.frozen)),Z(),J("ngIf",r.dt.isRowExpanded(t))}}function DLt(n,e){if(n&1&&(er(0),Ne(1,ALt,2,10,"ng-template",1),tr()),n&2){let t=le();Z(),J("ngForOf",t.value)("ngForTrackBy",t.dt.rowTrackBy)}}function kLt(n,e){n&1&&Pn(0)}function MLt(n,e){if(n&1&&(er(0),Ne(1,kLt,1,0,"ng-container",4),tr()),n&2){let t=le();Z(),J("ngTemplateOutlet",t.dt.loadingBodyTemplate)("ngTemplateOutletContext",ha(2,c9e,t.columns,t.frozen))}}function OLt(n,e){n&1&&Pn(0)}function RLt(n,e){if(n&1&&(er(0),Ne(1,OLt,1,0,"ng-container",4),tr()),n&2){let t=le();Z(),J("ngTemplateOutlet",t.dt.emptyMessageTemplate)("ngTemplateOutletContext",ha(2,c9e,t.columns,t.frozen))}}function NLt(n,e){n&1&&bt(0,"SortAltIcon",4),n&2&&J("styleClass","p-sortable-column-icon")}function PLt(n,e){n&1&&bt(0,"SortAmountUpAltIcon",4),n&2&&J("styleClass","p-sortable-column-icon")}function FLt(n,e){n&1&&bt(0,"SortAmountDownIcon",4),n&2&&J("styleClass","p-sortable-column-icon")}function LLt(n,e){if(n&1&&(er(0),Ne(1,NLt,1,1,"SortAltIcon",3)(2,PLt,1,1,"SortAmountUpAltIcon",3)(3,FLt,1,1,"SortAmountDownIcon",3),tr()),n&2){let t=le();Z(),J("ngIf",t.sortOrder===0),Z(),J("ngIf",t.sortOrder===1),Z(),J("ngIf",t.sortOrder===-1)}}function BLt(n,e){}function zLt(n,e){n&1&&Ne(0,BLt,0,0,"ng-template")}function VLt(n,e){if(n&1&&(se(0,"span",5),Ne(1,zLt,1,0,null,6),ce()),n&2){let t=le();Z(),J("ngTemplateOutlet",t.dt.sortIconTemplate)("ngTemplateOutletContext",Tr(2,rre,t.sortOrder))}}function ULt(n,e){if(n&1&&(se(0,"span",7),yt(1),ce()),n&2){let t=le();Z(),jn(t.getBadgeValue())}}var ore=(()=>{class n{sortSource=new mi;selectionSource=new mi;contextMenuSource=new mi;valueSource=new mi;totalRecordsSource=new mi;columnsSource=new mi;sortSource$=this.sortSource.asObservable();selectionSource$=this.selectionSource.asObservable();contextMenuSource$=this.contextMenuSource.asObservable();valueSource$=this.valueSource.asObservable();totalRecordsSource$=this.totalRecordsSource.asObservable();columnsSource$=this.columnsSource.asObservable();onSort(t){this.sortSource.next(t)}onSelectionChange(){this.selectionSource.next(null)}onContextMenu(t){this.contextMenuSource.next(t)}onValueChange(t){this.valueSource.next(t)}onTotalRecordsChange(t){this.totalRecordsSource.next(t)}onColumnsChange(t){this.columnsSource.next(t)}static \u0275fac=function(i){return new(i||n)};static \u0275prov=It({token:n,factory:n.\u0275fac})}return n})(),iA=(()=>{class n{document;platformId;renderer;el;zone;tableService;cd;filterService;overlayService;config;frozenColumns;frozenValue;style;styleClass;tableStyle;tableStyleClass;paginator;pageLinks=5;rowsPerPageOptions;alwaysShowPaginator=!0;paginatorPosition="bottom";paginatorStyleClass;paginatorDropdownAppendTo;paginatorDropdownScrollHeight="200px";currentPageReportTemplate="{currentPage} of {totalPages}";showCurrentPageReport;showJumpToPageDropdown;showJumpToPageInput;showFirstLastIcon=!0;showPageLinks=!0;defaultSortOrder=1;sortMode="single";resetPageOnSort=!0;selectionMode;selectionPageOnly;contextMenuSelection;contextMenuSelectionChange=new Kt;contextMenuSelectionMode="separate";dataKey;metaKeySelection=!1;rowSelectable;rowTrackBy=(t,i)=>i;lazy=!1;lazyLoadOnInit=!0;compareSelectionBy="deepEquals";csvSeparator=",";exportFilename="download";filters={};globalFilterFields;filterDelay=300;filterLocale;expandedRowKeys={};editingRowKeys={};rowExpandMode="multiple";scrollable;scrollDirection="vertical";rowGroupMode;scrollHeight;virtualScroll;virtualScrollItemSize;virtualScrollOptions;virtualScrollDelay=250;frozenWidth;get responsive(){return this._responsive}set responsive(t){this._responsive=t,console.warn("responsive property is deprecated as table is always responsive with scrollable behavior.")}_responsive;contextMenu;resizableColumns;columnResizeMode="fit";reorderableColumns;loading;loadingIcon;showLoader=!0;rowHover;customSort;showInitialSortBadge=!0;autoLayout;exportFunction;exportHeader;stateKey;stateStorage="session";editMode="cell";groupRowsBy;groupRowsByOrder=1;responsiveLayout="scroll";breakpoint="960px";paginatorLocale;get value(){return this._value}set value(t){this._value=t}get columns(){return this._columns}set columns(t){this._columns=t}get first(){return this._first}set first(t){this._first=t}get rows(){return this._rows}set rows(t){this._rows=t}get totalRecords(){return this._totalRecords}set totalRecords(t){this._totalRecords=t,this.tableService.onTotalRecordsChange(this._totalRecords)}get sortField(){return this._sortField}set sortField(t){this._sortField=t}get sortOrder(){return this._sortOrder}set sortOrder(t){this._sortOrder=t}get multiSortMeta(){return this._multiSortMeta}set multiSortMeta(t){this._multiSortMeta=t}get selection(){return this._selection}set selection(t){this._selection=t}get selectAll(){return this._selection}set selectAll(t){this._selection=t}selectAllChange=new Kt;selectionChange=new Kt;onRowSelect=new Kt;onRowUnselect=new Kt;onPage=new Kt;onSort=new Kt;onFilter=new Kt;onLazyLoad=new Kt;onRowExpand=new Kt;onRowCollapse=new Kt;onContextMenuSelect=new Kt;onColResize=new Kt;onColReorder=new Kt;onRowReorder=new Kt;onEditInit=new Kt;onEditComplete=new Kt;onEditCancel=new Kt;onHeaderCheckboxToggle=new Kt;sortFunction=new Kt;firstChange=new Kt;rowsChange=new Kt;onStateSave=new Kt;onStateRestore=new Kt;containerViewChild;resizeHelperViewChild;reorderIndicatorUpViewChild;reorderIndicatorDownViewChild;wrapperViewChild;tableViewChild;tableHeaderViewChild;tableFooterViewChild;scroller;templates;get virtualRowHeight(){return this._virtualRowHeight}set virtualRowHeight(t){this._virtualRowHeight=t,console.warn("The virtualRowHeight property is deprecated.")}_virtualRowHeight=28;_value=[];_columns;_totalRecords=0;_first=0;_rows;filteredValue;headerTemplate;headerGroupedTemplate;bodyTemplate;loadingBodyTemplate;captionTemplate;footerTemplate;footerGroupedTemplate;summaryTemplate;colGroupTemplate;expandedRowTemplate;groupHeaderTemplate;groupFooterTemplate;frozenExpandedRowTemplate;frozenHeaderTemplate;frozenBodyTemplate;frozenFooterTemplate;frozenColGroupTemplate;emptyMessageTemplate;paginatorLeftTemplate;paginatorRightTemplate;paginatorDropdownItemTemplate;loadingIconTemplate;reorderIndicatorUpIconTemplate;reorderIndicatorDownIconTemplate;sortIconTemplate;checkboxIconTemplate;headerCheckboxIconTemplate;paginatorDropdownIconTemplate;paginatorFirstPageLinkIconTemplate;paginatorLastPageLinkIconTemplate;paginatorPreviousPageLinkIconTemplate;paginatorNextPageLinkIconTemplate;selectionKeys={};lastResizerHelperX;reorderIconWidth;reorderIconHeight;draggedColumn;draggedRowIndex;droppedRowIndex;rowDragging;dropPosition;editingCell;editingCellData;editingCellField;editingCellRowIndex;selfClick;documentEditListener;_multiSortMeta;_sortField;_sortOrder=1;preventSelectionSetterPropagation;_selection;_selectAll=null;anchorRowIndex;rangeRowIndex;filterTimeout;initialized;rowTouched;restoringSort;restoringFilter;stateRestored;columnOrderStateRestored;columnWidthsState;tableWidthState;overlaySubscription;resizeColumnElement;columnResizing=!1;rowGroupHeaderStyleObject={};id=rl();styleElement;responsiveStyleElement;window;constructor(t,i,r,o,s,c,h,g,x,C){this.document=t,this.platformId=i,this.renderer=r,this.el=o,this.zone=s,this.tableService=c,this.cd=h,this.filterService=g,this.overlayService=x,this.config=C,this.window=this.document.defaultView}ngOnInit(){this.lazy&&this.lazyLoadOnInit&&(this.virtualScroll||this.onLazyLoad.emit(this.createLazyLoadMetadata()),this.restoringFilter&&(this.restoringFilter=!1)),this.responsiveLayout==="stack"&&this.createResponsiveStyle(),this.initialized=!0}ngAfterContentInit(){this.templates.forEach(t=>{switch(t.getType()){case"caption":this.captionTemplate=t.template;break;case"header":this.headerTemplate=t.template;break;case"headergrouped":this.headerGroupedTemplate=t.template;break;case"body":this.bodyTemplate=t.template;break;case"loadingbody":this.loadingBodyTemplate=t.template;break;case"footer":this.footerTemplate=t.template;break;case"footergrouped":this.footerGroupedTemplate=t.template;break;case"summary":this.summaryTemplate=t.template;break;case"colgroup":this.colGroupTemplate=t.template;break;case"rowexpansion":this.expandedRowTemplate=t.template;break;case"groupheader":this.groupHeaderTemplate=t.template;break;case"groupfooter":this.groupFooterTemplate=t.template;break;case"frozenheader":this.frozenHeaderTemplate=t.template;break;case"frozenbody":this.frozenBodyTemplate=t.template;break;case"frozenfooter":this.frozenFooterTemplate=t.template;break;case"frozencolgroup":this.frozenColGroupTemplate=t.template;break;case"frozenrowexpansion":this.frozenExpandedRowTemplate=t.template;break;case"emptymessage":this.emptyMessageTemplate=t.template;break;case"paginatorleft":this.paginatorLeftTemplate=t.template;break;case"paginatorright":this.paginatorRightTemplate=t.template;break;case"paginatordropdownicon":this.paginatorDropdownIconTemplate=t.template;break;case"paginatordropdownitem":this.paginatorDropdownItemTemplate=t.template;break;case"paginatorfirstpagelinkicon":this.paginatorFirstPageLinkIconTemplate=t.template;break;case"paginatorlastpagelinkicon":this.paginatorLastPageLinkIconTemplate=t.template;break;case"paginatorpreviouspagelinkicon":this.paginatorPreviousPageLinkIconTemplate=t.template;break;case"paginatornextpagelinkicon":this.paginatorNextPageLinkIconTemplate=t.template;break;case"loadingicon":this.loadingIconTemplate=t.template;break;case"reorderindicatorupicon":this.reorderIndicatorUpIconTemplate=t.template;break;case"reorderindicatordownicon":this.reorderIndicatorDownIconTemplate=t.template;break;case"sorticon":this.sortIconTemplate=t.template;break;case"checkboxicon":this.checkboxIconTemplate=t.template;break;case"headercheckboxicon":this.headerCheckboxIconTemplate=t.template;break}})}ngAfterViewInit(){hl(this.platformId)&&this.isStateful()&&this.resizableColumns&&this.restoreColumnWidths()}ngOnChanges(t){t.value&&(this.isStateful()&&!this.stateRestored&&hl(this.platformId)&&this.restoreState(),this._value=t.value.currentValue,this.lazy||(this.totalRecords=this._value?this._value.length:0,this.sortMode=="single"&&(this.sortField||this.groupRowsBy)?this.sortSingle():this.sortMode=="multiple"&&(this.multiSortMeta||this.groupRowsBy)?this.sortMultiple():this.hasFilter()&&this._filter()),this.tableService.onValueChange(t.value.currentValue)),t.columns&&(this.isStateful()||(this._columns=t.columns.currentValue,this.tableService.onColumnsChange(t.columns.currentValue)),this._columns&&this.isStateful()&&this.reorderableColumns&&!this.columnOrderStateRestored&&(this.restoreColumnOrder(),this.tableService.onColumnsChange(this._columns))),t.sortField&&(this._sortField=t.sortField.currentValue,(!this.lazy||this.initialized)&&this.sortMode==="single"&&this.sortSingle()),t.groupRowsBy&&(!this.lazy||this.initialized)&&this.sortMode==="single"&&this.sortSingle(),t.sortOrder&&(this._sortOrder=t.sortOrder.currentValue,(!this.lazy||this.initialized)&&this.sortMode==="single"&&this.sortSingle()),t.groupRowsByOrder&&(!this.lazy||this.initialized)&&this.sortMode==="single"&&this.sortSingle(),t.multiSortMeta&&(this._multiSortMeta=t.multiSortMeta.currentValue,this.sortMode==="multiple"&&(this.initialized||!this.lazy&&!this.virtualScroll)&&this.sortMultiple()),t.selection&&(this._selection=t.selection.currentValue,this.preventSelectionSetterPropagation||(this.updateSelectionKeys(),this.tableService.onSelectionChange()),this.preventSelectionSetterPropagation=!1),t.selectAll&&(this._selectAll=t.selectAll.currentValue,this.preventSelectionSetterPropagation||(this.updateSelectionKeys(),this.tableService.onSelectionChange(),this.isStateful()&&this.saveState()),this.preventSelectionSetterPropagation=!1)}get processedData(){return this.filteredValue||this.value||[]}_initialColWidths;dataToRender(t){let i=t||this.processedData;if(i&&this.paginator){let r=this.lazy?0:this.first;return i.slice(r,r+this.rows)}return i}updateSelectionKeys(){if(this.dataKey&&this._selection)if(this.selectionKeys={},Array.isArray(this._selection))for(let t of this._selection)this.selectionKeys[String(Mn.resolveFieldData(t,this.dataKey))]=1;else this.selectionKeys[String(Mn.resolveFieldData(this._selection,this.dataKey))]=1}onPageChange(t){this.first=t.first,this.rows=t.rows,this.onPage.emit({first:this.first,rows:this.rows}),this.lazy&&this.onLazyLoad.emit(this.createLazyLoadMetadata()),this.firstChange.emit(this.first),this.rowsChange.emit(this.rows),this.tableService.onValueChange(this.value),this.isStateful()&&this.saveState(),this.anchorRowIndex=null,this.scrollable&&this.resetScrollTop()}sort(t){let i=t.originalEvent;if(this.sortMode==="single"&&(this._sortOrder=this.sortField===t.field?this.sortOrder*-1:this.defaultSortOrder,this._sortField=t.field,this.resetPageOnSort&&(this._first=0,this.firstChange.emit(this._first),this.scrollable&&this.resetScrollTop()),this.sortSingle()),this.sortMode==="multiple"){let r=i.metaKey||i.ctrlKey,o=this.getSortMeta(t.field);o?r?o.order=o.order*-1:(this._multiSortMeta=[{field:t.field,order:o.order*-1}],this.resetPageOnSort&&(this._first=0,this.firstChange.emit(this._first),this.scrollable&&this.resetScrollTop())):((!r||!this.multiSortMeta)&&(this._multiSortMeta=[],this.resetPageOnSort&&(this._first=0,this.firstChange.emit(this._first))),this._multiSortMeta.push({field:t.field,order:this.defaultSortOrder})),this.sortMultiple()}this.isStateful()&&this.saveState(),this.anchorRowIndex=null}sortSingle(){let t=this.sortField||this.groupRowsBy,i=this.sortField?this.sortOrder:this.groupRowsByOrder;if(this.groupRowsBy&&this.sortField&&this.groupRowsBy!==this.sortField){this._multiSortMeta=[this.getGroupRowsMeta(),{field:this.sortField,order:this.sortOrder}],this.sortMultiple();return}if(t&&i){this.restoringSort&&(this.restoringSort=!1),this.lazy&&this.onLazyLoad.emit(this.createLazyLoadMetadata()),this.value&&(this.customSort?this.sortFunction.emit({data:this.value,mode:this.sortMode,field:t,order:i}):this.lazy||(this.value.sort((o,s)=>{let c=Mn.resolveFieldData(o,t),h=Mn.resolveFieldData(s,t),g=null;return c==null&&h!=null?g=-1:c!=null&&h==null?g=1:c==null&&h==null?g=0:typeof c=="string"&&typeof h=="string"?g=c.localeCompare(h):g=ch?1:0,i*g}),this._value=[...this.value]),(!this.lazy||this.customSort)&&this.hasFilter()&&this._filter());let r={field:t,order:i};this.onSort.emit(r),this.tableService.onSort(r)}}sortMultiple(){this.groupRowsBy&&(this._multiSortMeta?this.multiSortMeta[0].field!==this.groupRowsBy&&(this._multiSortMeta=[this.getGroupRowsMeta(),...this._multiSortMeta]):this._multiSortMeta=[this.getGroupRowsMeta()]),this.multiSortMeta&&(this.lazy&&this.onLazyLoad.emit(this.createLazyLoadMetadata()),this.value&&(this.customSort?this.sortFunction.emit({data:this.value,mode:this.sortMode,multiSortMeta:this.multiSortMeta}):this.lazy||(this.value.sort((t,i)=>this.multisortField(t,i,this.multiSortMeta,0)),this._value=[...this.value]),(!this.lazy||this.customSort)&&this.hasFilter()&&this._filter()),this.onSort.emit({multisortmeta:this.multiSortMeta}),this.tableService.onSort(this.multiSortMeta))}multisortField(t,i,r,o){let s=Mn.resolveFieldData(t,r[o].field),c=Mn.resolveFieldData(i,r[o].field);return Mn.compare(s,c,this.filterLocale)===0?r.length-1>o?this.multisortField(t,i,r,o+1):0:this.compareValuesOnSort(s,c,r[o].order)}compareValuesOnSort(t,i,r){return Mn.sort(t,i,r,this.filterLocale,this.sortOrder)}getSortMeta(t){if(this.multiSortMeta&&this.multiSortMeta.length){for(let i=0;iO!=A),this.selectionChange.emit(this.selection),x&&delete this.selectionKeys[x]}this.onRowUnselect.emit({originalEvent:t.originalEvent,data:s,type:"row"})}else this.isSingleSelectionMode()?(this._selection=s,this.selectionChange.emit(s),x&&(this.selectionKeys={},this.selectionKeys[x]=1)):this.isMultipleSelectionMode()&&(C?this._selection=this.selection||[]:(this._selection=[],this.selectionKeys={}),this._selection=[...this.selection,s],this.selectionChange.emit(this.selection),x&&(this.selectionKeys[x]=1)),this.onRowSelect.emit({originalEvent:t.originalEvent,data:s,type:"row",index:c})}else if(this.selectionMode==="single")h?(this._selection=null,this.selectionKeys={},this.selectionChange.emit(this.selection),this.onRowUnselect.emit({originalEvent:t.originalEvent,data:s,type:"row",index:c})):(this._selection=s,this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:t.originalEvent,data:s,type:"row",index:c}),x&&(this.selectionKeys={},this.selectionKeys[x]=1));else if(this.selectionMode==="multiple")if(h){let C=this.findIndexInSelection(s);this._selection=this.selection.filter((A,k)=>k!=C),this.selectionChange.emit(this.selection),this.onRowUnselect.emit({originalEvent:t.originalEvent,data:s,type:"row",index:c}),x&&delete this.selectionKeys[x]}else this._selection=this.selection?[...this.selection,s]:[s],this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:t.originalEvent,data:s,type:"row",index:c}),x&&(this.selectionKeys[x]=1)}this.tableService.onSelectionChange(),this.isStateful()&&this.saveState()}this.rowTouched=!1}}handleRowTouchEnd(t){this.rowTouched=!0}handleRowRightClick(t){if(this.contextMenu){let i=t.rowData,r=t.rowIndex;if(this.contextMenuSelectionMode==="separate")this.contextMenuSelection=i,this.contextMenuSelectionChange.emit(i),this.onContextMenuSelect.emit({originalEvent:t.originalEvent,data:i,index:t.rowIndex}),this.contextMenu.show(t.originalEvent),this.tableService.onContextMenu(i);else if(this.contextMenuSelectionMode==="joint"){this.preventSelectionSetterPropagation=!0;let o=this.isSelected(i),s=this.dataKey?String(Mn.resolveFieldData(i,this.dataKey)):null;if(!o){if(!this.isRowSelectable(i,r))return;this.isSingleSelectionMode()?(this.selection=i,this.selectionChange.emit(i),s&&(this.selectionKeys={},this.selectionKeys[s]=1)):this.isMultipleSelectionMode()&&(this._selection=this.selection?[...this.selection,i]:[i],this.selectionChange.emit(this.selection),s&&(this.selectionKeys[s]=1))}this.tableService.onSelectionChange(),this.contextMenu.show(t.originalEvent),this.onContextMenuSelect.emit({originalEvent:t,data:i,index:t.rowIndex})}}}selectRange(t,i,r){let o,s;this.anchorRowIndex>i?(o=i,s=this.anchorRowIndex):this.anchorRowIndexs?(i=this.anchorRowIndex,r=this.rangeRowIndex):oA!=g);let x=this.dataKey?String(Mn.resolveFieldData(h,this.dataKey)):null;x&&delete this.selectionKeys[x],this.onRowUnselect.emit({originalEvent:t,data:h,type:"row"})}}isSelected(t){return t&&this.selection?this.dataKey?this.selectionKeys[Mn.resolveFieldData(t,this.dataKey)]!==void 0:Array.isArray(this.selection)?this.findIndexInSelection(t)>-1:this.equals(t,this.selection):!1}findIndexInSelection(t){let i=-1;if(this.selection&&this.selection.length){for(let r=0;rh!=s),this.selectionChange.emit(this.selection),this.onRowUnselect.emit({originalEvent:t.originalEvent,index:t.rowIndex,data:i,type:"checkbox"}),o&&delete this.selectionKeys[o]}else{if(!this.isRowSelectable(i,t.rowIndex))return;this._selection=this.selection?[...this.selection,i]:[i],this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:t.originalEvent,index:t.rowIndex,data:i,type:"checkbox"}),o&&(this.selectionKeys[o]=1)}this.tableService.onSelectionChange(),this.isStateful()&&this.saveState()}toggleRowsWithCheckbox(t,i){if(this._selectAll!==null)this.selectAllChange.emit({originalEvent:t,checked:i});else{let r=this.selectionPageOnly?this.dataToRender(this.processedData):this.processedData,o=this.selectionPageOnly&&this._selection?this._selection.filter(s=>!r.some(c=>this.equals(s,c))):[];i&&(o=this.frozenValue?[...o,...this.frozenValue,...r]:[...o,...r],o=this.rowSelectable?o.filter((s,c)=>this.rowSelectable({data:s,index:c})):o),this._selection=o,this.preventSelectionSetterPropagation=!0,this.updateSelectionKeys(),this.selectionChange.emit(this._selection),this.tableService.onSelectionChange(),this.onHeaderCheckboxToggle.emit({originalEvent:t,checked:i}),this.isStateful()&&this.saveState()}}equals(t,i){return this.compareSelectionBy==="equals"?t===i:Mn.equals(t,i,this.dataKey)}filter(t,i,r){this.filterTimeout&&clearTimeout(this.filterTimeout),this.isFilterBlank(t)?this.filters[i]&&delete this.filters[i]:this.filters[i]={value:t,matchMode:r},this.filterTimeout=setTimeout(()=>{this._filter(),this.filterTimeout=null},this.filterDelay),this.anchorRowIndex=null}filterGlobal(t,i){this.filter(t,"global",i)}isFilterBlank(t){return t!=null?!!(typeof t=="string"&&t.trim().length==0||Array.isArray(t)&&t.length==0):!0}_filter(){if(this.restoringFilter||(this.first=0,this.firstChange.emit(this.first)),this.lazy)this.onLazyLoad.emit(this.createLazyLoadMetadata());else{if(!this.value)return;if(!this.hasFilter())this.filteredValue=null,this.paginator&&(this.totalRecords=this.value?this.value.length:0);else{let t;if(this.filters.global){if(!this.columns&&!this.globalFilterFields)throw new Error("Global filtering requires dynamic columns or globalFilterFields to be defined.");t=this.globalFilterFields||this.columns}this.filteredValue=[];for(let i=0;ithis.cd.detectChanges()}}clear(){this._sortField=null,this._sortOrder=this.defaultSortOrder,this._multiSortMeta=null,this.tableService.onSort(null),this.clearFilterValues(),this.filteredValue=null,this.first=0,this.firstChange.emit(this.first),this.lazy?this.onLazyLoad.emit(this.createLazyLoadMetadata()):this.totalRecords=this._value?this._value.length:0}clearFilterValues(){for(let[,t]of Object.entries(this.filters))if(Array.isArray(t))for(let i of t)i.value=null;else t&&(t.value=null)}reset(){this.clear()}getExportHeader(t){return t[this.exportHeader]||t.header||t.field}exportCSV(t){let i,r="",o=this.columns;t&&t.selectionOnly?i=this.selection||[]:t&&t.allValues?i=this.value||[]:(i=this.filteredValue||this.value,this.frozenValue&&(i=i?[...this.frozenValue,...i]:this.frozenValue));let s=o.filter(x=>x.exportable!==!1&&x.field);r+=s.map(x=>'"'+this.getExportHeader(x)+'"').join(this.csvSeparator);let c=i.map(x=>s.map(C=>{let A=Mn.resolveFieldData(x,C.field);return A!=null?this.exportFunction?A=this.exportFunction({data:A,field:C.field}):A=String(A).replace(/"/g,'""'):A="",'"'+A+'"'}).join(this.csvSeparator)).join(` `);c.length&&(r+=` `+c);let h=new Blob([new Uint8Array([239,187,191]),r],{type:"text/csv;charset=utf-8;"}),g=this.renderer.createElement("a");g.style.display="none",this.renderer.appendChild(this.document.body,g),g.download!==void 0?(g.setAttribute("href",URL.createObjectURL(h)),g.setAttribute("download",this.exportFilename+".csv"),g.click()):(r="data:text/csv;charset=utf-8,"+r,this.window.open(encodeURI(r))),this.renderer.removeChild(this.document.body,g)}onLazyItemLoad(t){this.onLazyLoad.emit(wt(Ce(Ce({},this.createLazyLoadMetadata()),t),{rows:t.last-t.first}))}resetScrollTop(){this.virtualScroll?this.scrollToVirtualIndex(0):this.scrollTo({top:0})}scrollToVirtualIndex(t){this.scroller&&this.scroller.scrollToIndex(t)}scrollTo(t){this.virtualScroll?this.scroller?.scrollTo(t):this.wrapperViewChild&&this.wrapperViewChild.nativeElement&&(this.wrapperViewChild.nativeElement.scrollTo?this.wrapperViewChild.nativeElement.scrollTo(t):(this.wrapperViewChild.nativeElement.scrollLeft=t.left,this.wrapperViewChild.nativeElement.scrollTop=t.top))}updateEditingCell(t,i,r,o){this.editingCell=t,this.editingCellData=i,this.editingCellField=r,this.editingCellRowIndex=o,this.bindDocumentEditListener()}isEditingCellValid(){return this.editingCell&&Ft.find(this.editingCell,".ng-invalid.ng-dirty").length===0}bindDocumentEditListener(){this.documentEditListener||(this.documentEditListener=this.renderer.listen(this.document,"click",t=>{this.editingCell&&!this.selfClick&&this.isEditingCellValid()&&(Ft.removeClass(this.editingCell,"p-cell-editing"),this.editingCell=null,this.onEditComplete.emit({field:this.editingCellField,data:this.editingCellData,originalEvent:t,index:this.editingCellRowIndex}),this.editingCellField=null,this.editingCellData=null,this.editingCellRowIndex=null,this.unbindDocumentEditListener(),this.cd.markForCheck(),this.overlaySubscription&&this.overlaySubscription.unsubscribe()),this.selfClick=!1}))}unbindDocumentEditListener(){this.documentEditListener&&(this.documentEditListener(),this.documentEditListener=null)}initRowEdit(t){let i=String(Mn.resolveFieldData(t,this.dataKey));this.editingRowKeys[i]=!0}saveRowEdit(t,i){if(Ft.find(i,".ng-invalid.ng-dirty").length===0){let r=String(Mn.resolveFieldData(t,this.dataKey));delete this.editingRowKeys[r]}}cancelRowEdit(t){let i=String(Mn.resolveFieldData(t,this.dataKey));delete this.editingRowKeys[i]}toggleRow(t,i){if(!this.dataKey&&!this.groupRowsBy)throw new Error("dataKey or groupRowsBy must be defined to use row expansion");let r=this.groupRowsBy?String(Mn.resolveFieldData(t,this.groupRowsBy)):String(Mn.resolveFieldData(t,this.dataKey));this.expandedRowKeys[r]!=null?(delete this.expandedRowKeys[r],this.onRowCollapse.emit({originalEvent:i,data:t})):(this.rowExpandMode==="single"&&(this.expandedRowKeys={}),this.expandedRowKeys[r]=!0,this.onRowExpand.emit({originalEvent:i,data:t})),i&&i.preventDefault(),this.isStateful()&&this.saveState()}isRowExpanded(t){return this.groupRowsBy?this.expandedRowKeys[String(Mn.resolveFieldData(t,this.groupRowsBy))]===!0:this.expandedRowKeys[String(Mn.resolveFieldData(t,this.dataKey))]===!0}isRowEditing(t){return this.editingRowKeys[String(Mn.resolveFieldData(t,this.dataKey))]===!0}isSingleSelectionMode(){return this.selectionMode==="single"}isMultipleSelectionMode(){return this.selectionMode==="multiple"}onColumnResizeBegin(t){let i=Ft.getOffset(this.containerViewChild?.nativeElement).left;this.resizeColumnElement=t.target.parentElement,this.columnResizing=!0,t.type=="touchstart"?this.lastResizerHelperX=t.changedTouches[0].clientX-i+this.containerViewChild?.nativeElement.scrollLeft:this.lastResizerHelperX=t.pageX-i+this.containerViewChild?.nativeElement.scrollLeft,this.onColumnResize(t),t.preventDefault()}onColumnResize(t){let i=Ft.getOffset(this.containerViewChild?.nativeElement).left;Ft.addClass(this.containerViewChild?.nativeElement,"p-unselectable-text"),this.resizeHelperViewChild.nativeElement.style.height=this.containerViewChild?.nativeElement.offsetHeight+"px",this.resizeHelperViewChild.nativeElement.style.top="0px",t.type=="touchmove"?this.resizeHelperViewChild.nativeElement.style.left=t.changedTouches[0].clientX-i+this.containerViewChild?.nativeElement.scrollLeft+"px":this.resizeHelperViewChild.nativeElement.style.left=t.pageX-i+this.containerViewChild?.nativeElement.scrollLeft+"px",this.resizeHelperViewChild.nativeElement.style.display="block"}onColumnResizeEnd(){let t=this.resizeHelperViewChild?.nativeElement.offsetLeft-this.lastResizerHelperX,r=this.resizeColumnElement.offsetWidth+t,o=this.resizeColumnElement.style.minWidth.replace(/[^\d.]/g,"")||15;if(r>=o){if(this.columnResizeMode==="fit"){let c=this.resizeColumnElement.nextElementSibling.offsetWidth-t;r>15&&c>15&&this.resizeTableCells(r,c)}else if(this.columnResizeMode==="expand"){this._initialColWidths=this._totalTableWidth();let s=this.tableViewChild?.nativeElement.offsetWidth+t;this.setResizeTableWidth(s+"px"),this.resizeTableCells(r,null)}this.onColResize.emit({element:this.resizeColumnElement,delta:t}),this.isStateful()&&this.saveState()}this.resizeHelperViewChild.nativeElement.style.display="none",Ft.removeClass(this.containerViewChild?.nativeElement,"p-unselectable-text")}_totalTableWidth(){let t=[],i=Ft.findSingle(this.containerViewChild.nativeElement,".p-datatable-thead");return Ft.find(i,"tr > th").forEach(o=>t.push(Ft.getOuterWidth(o))),t}onColumnDragStart(t,i){this.reorderIconWidth=Ft.getHiddenElementOuterWidth(this.reorderIndicatorUpViewChild?.nativeElement),this.reorderIconHeight=Ft.getHiddenElementOuterHeight(this.reorderIndicatorDownViewChild?.nativeElement),this.draggedColumn=i,t.dataTransfer.setData("text","b")}onColumnDragEnter(t,i){if(this.reorderableColumns&&this.draggedColumn&&i){t.preventDefault();let r=Ft.getOffset(this.containerViewChild?.nativeElement),o=Ft.getOffset(i);if(this.draggedColumn!=i){let s=Ft.indexWithinGroup(this.draggedColumn,"preorderablecolumn"),c=Ft.indexWithinGroup(i,"preorderablecolumn"),h=o.left-r.left,g=r.top-o.top,x=o.left+i.offsetWidth/2;this.reorderIndicatorUpViewChild.nativeElement.style.top=o.top-r.top-(this.reorderIconHeight-1)+"px",this.reorderIndicatorDownViewChild.nativeElement.style.top=o.top-r.top+i.offsetHeight+"px",t.pageX>x?(this.reorderIndicatorUpViewChild.nativeElement.style.left=h+i.offsetWidth-Math.ceil(this.reorderIconWidth/2)+"px",this.reorderIndicatorDownViewChild.nativeElement.style.left=h+i.offsetWidth-Math.ceil(this.reorderIconWidth/2)+"px",this.dropPosition=1):(this.reorderIndicatorUpViewChild.nativeElement.style.left=h-Math.ceil(this.reorderIconWidth/2)+"px",this.reorderIndicatorDownViewChild.nativeElement.style.left=h-Math.ceil(this.reorderIconWidth/2)+"px",this.dropPosition=-1),this.reorderIndicatorUpViewChild.nativeElement.style.display="block",this.reorderIndicatorDownViewChild.nativeElement.style.display="block"}else t.dataTransfer.dropEffect="none"}}onColumnDragLeave(t){this.reorderableColumns&&this.draggedColumn&&t.preventDefault()}onColumnDrop(t,i){if(t.preventDefault(),this.draggedColumn){let r=Ft.indexWithinGroup(this.draggedColumn,"preorderablecolumn"),o=Ft.indexWithinGroup(i,"preorderablecolumn"),s=r!=o;if(s&&(o-r==1&&this.dropPosition===-1||r-o==1&&this.dropPosition===1)&&(s=!1),s&&or&&this.dropPosition===-1&&(o=o-1),s&&(Mn.reorderArray(this.columns,r,o),this.onColReorder.emit({dragIndex:r,dropIndex:o,columns:this.columns}),this.isStateful()&&this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.saveState()})})),this.resizableColumns&&this.resizeColumnElement){let c=this.columnResizeMode==="expand"?this._initialColWidths:this._totalTableWidth();Mn.reorderArray(c,r+1,o+1),this.updateStyleElement(c,r,null,null)}this.reorderIndicatorUpViewChild.nativeElement.style.display="none",this.reorderIndicatorDownViewChild.nativeElement.style.display="none",this.draggedColumn.draggable=!1,this.draggedColumn=null,this.dropPosition=null}}resizeTableCells(t,i){let r=Ft.index(this.resizeColumnElement),o=this.columnResizeMode==="expand"?this._initialColWidths:this._totalTableWidth();this.updateStyleElement(o,r,t,i)}updateStyleElement(t,i,r,o){this.destroyStyleElement(),this.createStyleElement();let s="";t.forEach((c,h)=>{let g=h===i?r:o&&h===i+1?o:c,x=`width: ${g}px !important; max-width: ${g}px !important;`;s+=` #${this.id}-table > .p-datatable-thead > tr > th:nth-child(${h+1}), #${this.id}-table > .p-datatable-tbody > tr > td:nth-child(${h+1}), #${this.id}-table > .p-datatable-tfoot > tr > td:nth-child(${h+1}) { ${x} } `}),this.renderer.setProperty(this.styleElement,"textContent",s)}onRowDragStart(t,i){this.rowDragging=!0,this.draggedRowIndex=i,t.dataTransfer.setData("text","b")}onRowDragOver(t,i,r){if(this.rowDragging&&this.draggedRowIndex!==i){let o=Ft.getOffset(r).top,s=t.pageY,c=o+Ft.getOuterHeight(r)/2,h=r.previousElementSibling;sthis.droppedRowIndex?this.droppedRowIndex:this.droppedRowIndex===0?0:this.droppedRowIndex-1;Mn.reorderArray(this.value,this.draggedRowIndex,r),this.virtualScroll&&(this._value=[...this._value]),this.onRowReorder.emit({dragIndex:this.draggedRowIndex,dropIndex:r})}this.onRowDragLeave(t,i),this.onRowDragEnd(t)}isEmpty(){let t=this.filteredValue||this.value;return t==null||t.length==0}getBlockableElement(){return this.el.nativeElement.children[0]}getStorage(){if(hl(this.platformId))switch(this.stateStorage){case"local":return window.localStorage;case"session":return window.sessionStorage;default:throw new Error(this.stateStorage+' is not a valid value for the state storage, supported values are "local" and "session".')}else throw new Error("Browser storage is not available in the server side.")}isStateful(){return this.stateKey!=null}saveState(){let t=this.getStorage(),i={};this.paginator&&(i.first=this.first,i.rows=this.rows),this.sortField&&(i.sortField=this.sortField,i.sortOrder=this.sortOrder),this.multiSortMeta&&(i.multiSortMeta=this.multiSortMeta),this.hasFilter()&&(i.filters=this.filters),this.resizableColumns&&this.saveColumnWidths(i),this.reorderableColumns&&this.saveColumnOrder(i),this.selection&&(i.selection=this.selection),Object.keys(this.expandedRowKeys).length&&(i.expandedRowKeys=this.expandedRowKeys),t.setItem(this.stateKey,JSON.stringify(i)),this.onStateSave.emit(i)}clearState(){let t=this.getStorage();this.stateKey&&t.removeItem(this.stateKey)}restoreState(){let i=this.getStorage().getItem(this.stateKey),r=/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z/,o=function(s,c){return typeof c=="string"&&r.test(c)?new Date(c):c};if(i){let s=JSON.parse(i,o);this.paginator&&(this.first!==void 0&&(this.first=s.first,this.firstChange.emit(this.first)),this.rows!==void 0&&(this.rows=s.rows,this.rowsChange.emit(this.rows))),s.sortField&&(this.restoringSort=!0,this._sortField=s.sortField,this._sortOrder=s.sortOrder),s.multiSortMeta&&(this.restoringSort=!0,this._multiSortMeta=s.multiSortMeta),s.filters&&(this.restoringFilter=!0,this.filters=s.filters),this.resizableColumns&&(this.columnWidthsState=s.columnWidths,this.tableWidthState=s.tableWidth),s.expandedRowKeys&&(this.expandedRowKeys=s.expandedRowKeys),s.selection&&Promise.resolve(null).then(()=>this.selectionChange.emit(s.selection)),this.stateRestored=!0,this.onStateRestore.emit(s)}}saveColumnWidths(t){let i=[];Ft.find(this.containerViewChild?.nativeElement,".p-datatable-thead > tr > th").forEach(o=>i.push(Ft.getOuterWidth(o))),t.columnWidths=i.join(","),this.columnResizeMode==="expand"&&(t.tableWidth=Ft.getOuterWidth(this.tableViewChild?.nativeElement))}setResizeTableWidth(t){this.tableViewChild.nativeElement.style.width=t,this.tableViewChild.nativeElement.style.minWidth=t}restoreColumnWidths(){if(this.columnWidthsState){let t=this.columnWidthsState.split(",");if(this.columnResizeMode==="expand"&&this.tableWidthState&&this.setResizeTableWidth(this.tableWidthState+"px"),Mn.isNotEmpty(t)){this.createStyleElement();let i="";t.forEach((r,o)=>{let s=`width: ${r}px !important; max-width: ${r}px !important`;i+=` #${this.id}-table > .p-datatable-thead > tr > th:nth-child(${o+1}), #${this.id}-table > .p-datatable-tbody > tr > td:nth-child(${o+1}), #${this.id}-table > .p-datatable-tfoot > tr > td:nth-child(${o+1}) { ${s} } `}),this.styleElement.textContent=i}}}saveColumnOrder(t){if(this.columns){let i=[];this.columns.map(r=>{i.push(r.field||r.key)}),t.columnOrder=i}}restoreColumnOrder(){let i=this.getStorage().getItem(this.stateKey);if(i){let o=JSON.parse(i).columnOrder;if(o){let s=[];o.map(c=>{let h=this.findColumnByKey(c);h&&s.push(h)}),this.columnOrderStateRestored=!0,this.columns=s}}}findColumnByKey(t){if(this.columns){for(let i of this.columns)if(i.key===t||i.field===t)return i}else return null}createStyleElement(){this.styleElement=this.renderer.createElement("style"),this.styleElement.type="text/css",Ft.setAttribute(this.styleElement,"nonce",this.config?.csp()?.nonce),this.renderer.appendChild(this.document.head,this.styleElement)}getGroupRowsMeta(){return{field:this.groupRowsBy,order:this.groupRowsByOrder}}createResponsiveStyle(){if(hl(this.platformId)&&!this.responsiveStyleElement){this.responsiveStyleElement=this.renderer.createElement("style"),this.responsiveStyleElement.type="text/css",Ft.setAttribute(this.responsiveStyleElement,"nonce",this.config?.csp()?.nonce),this.renderer.appendChild(this.document.head,this.responsiveStyleElement);let t=` @media screen and (max-width: ${this.breakpoint}) { #${this.id}-table > .p-datatable-thead > tr > th, #${this.id}-table > .p-datatable-tfoot > tr > td { display: none !important; } #${this.id}-table > .p-datatable-tbody > tr > td { display: flex; width: 100% !important; align-items: center; justify-content: space-between; } #${this.id}-table > .p-datatable-tbody > tr > td:not(:last-child) { border: 0 none; } #${this.id}.p-datatable-gridlines > .p-datatable-wrapper > .p-datatable-table > .p-datatable-tbody > tr > td:last-child { border-top: 0; border-right: 0; border-left: 0; } #${this.id}-table > .p-datatable-tbody > tr > td > .p-column-title { display: block; } } `;this.renderer.setProperty(this.responsiveStyleElement,"textContent",t)}}destroyResponsiveStyle(){this.responsiveStyleElement&&(this.renderer.removeChild(this.document.head,this.responsiveStyleElement),this.responsiveStyleElement=null)}destroyStyleElement(){this.styleElement&&(this.renderer.removeChild(this.document.head,this.styleElement),this.styleElement=null)}ngOnDestroy(){this.unbindDocumentEditListener(),this.editingCell=null,this.initialized=null,this.destroyStyleElement(),this.destroyResponsiveStyle()}getPaginatorStyleClasses(t){return[this.paginatorStyleClass,t].filter(i=>!!i).join(" ").trim()}static \u0275fac=function(i){return new(i||n)(oe(Ln),oe(va),oe(Fl),oe(Ai),oe(Zi),oe(ore),oe(ur),oe(Qne),oe(S3),oe(zu))};static \u0275cmp=Ct({type:n,selectors:[["p-table"]],contentQueries:function(i,r,o){if(i&1&&gr(o,Ra,4),i&2){let s;Di(s=ki())&&(r.templates=s)}},viewQuery:function(i,r){if(i&1&&(Xn(NPt,5),Xn(PPt,5),Xn(FPt,5),Xn(LPt,5),Xn(BPt,5),Xn(zPt,5),Xn(VPt,5),Xn(UPt,5),Xn(jPt,5)),i&2){let o;Di(o=ki())&&(r.containerViewChild=o.first),Di(o=ki())&&(r.resizeHelperViewChild=o.first),Di(o=ki())&&(r.reorderIndicatorUpViewChild=o.first),Di(o=ki())&&(r.reorderIndicatorDownViewChild=o.first),Di(o=ki())&&(r.wrapperViewChild=o.first),Di(o=ki())&&(r.tableViewChild=o.first),Di(o=ki())&&(r.tableHeaderViewChild=o.first),Di(o=ki())&&(r.tableFooterViewChild=o.first),Di(o=ki())&&(r.scroller=o.first)}},hostAttrs:[1,"p-element"],inputs:{frozenColumns:"frozenColumns",frozenValue:"frozenValue",style:"style",styleClass:"styleClass",tableStyle:"tableStyle",tableStyleClass:"tableStyleClass",paginator:[2,"paginator","paginator",Ht],pageLinks:[2,"pageLinks","pageLinks",xr],rowsPerPageOptions:"rowsPerPageOptions",alwaysShowPaginator:[2,"alwaysShowPaginator","alwaysShowPaginator",Ht],paginatorPosition:"paginatorPosition",paginatorStyleClass:"paginatorStyleClass",paginatorDropdownAppendTo:"paginatorDropdownAppendTo",paginatorDropdownScrollHeight:"paginatorDropdownScrollHeight",currentPageReportTemplate:"currentPageReportTemplate",showCurrentPageReport:[2,"showCurrentPageReport","showCurrentPageReport",Ht],showJumpToPageDropdown:[2,"showJumpToPageDropdown","showJumpToPageDropdown",Ht],showJumpToPageInput:[2,"showJumpToPageInput","showJumpToPageInput",Ht],showFirstLastIcon:[2,"showFirstLastIcon","showFirstLastIcon",Ht],showPageLinks:[2,"showPageLinks","showPageLinks",Ht],defaultSortOrder:[2,"defaultSortOrder","defaultSortOrder",xr],sortMode:"sortMode",resetPageOnSort:[2,"resetPageOnSort","resetPageOnSort",Ht],selectionMode:"selectionMode",selectionPageOnly:[2,"selectionPageOnly","selectionPageOnly",Ht],contextMenuSelection:"contextMenuSelection",contextMenuSelectionMode:"contextMenuSelectionMode",dataKey:"dataKey",metaKeySelection:[2,"metaKeySelection","metaKeySelection",Ht],rowSelectable:"rowSelectable",rowTrackBy:"rowTrackBy",lazy:[2,"lazy","lazy",Ht],lazyLoadOnInit:[2,"lazyLoadOnInit","lazyLoadOnInit",Ht],compareSelectionBy:"compareSelectionBy",csvSeparator:"csvSeparator",exportFilename:"exportFilename",filters:"filters",globalFilterFields:"globalFilterFields",filterDelay:[2,"filterDelay","filterDelay",xr],filterLocale:"filterLocale",expandedRowKeys:"expandedRowKeys",editingRowKeys:"editingRowKeys",rowExpandMode:"rowExpandMode",scrollable:[2,"scrollable","scrollable",Ht],scrollDirection:"scrollDirection",rowGroupMode:"rowGroupMode",scrollHeight:"scrollHeight",virtualScroll:[2,"virtualScroll","virtualScroll",Ht],virtualScrollItemSize:[2,"virtualScrollItemSize","virtualScrollItemSize",xr],virtualScrollOptions:"virtualScrollOptions",virtualScrollDelay:[2,"virtualScrollDelay","virtualScrollDelay",xr],frozenWidth:"frozenWidth",responsive:"responsive",contextMenu:"contextMenu",resizableColumns:[2,"resizableColumns","resizableColumns",Ht],columnResizeMode:"columnResizeMode",reorderableColumns:[2,"reorderableColumns","reorderableColumns",Ht],loading:[2,"loading","loading",Ht],loadingIcon:"loadingIcon",showLoader:[2,"showLoader","showLoader",Ht],rowHover:[2,"rowHover","rowHover",Ht],customSort:[2,"customSort","customSort",Ht],showInitialSortBadge:[2,"showInitialSortBadge","showInitialSortBadge",Ht],autoLayout:[2,"autoLayout","autoLayout",Ht],exportFunction:"exportFunction",exportHeader:"exportHeader",stateKey:"stateKey",stateStorage:"stateStorage",editMode:"editMode",groupRowsBy:"groupRowsBy",groupRowsByOrder:[2,"groupRowsByOrder","groupRowsByOrder",xr],responsiveLayout:"responsiveLayout",breakpoint:"breakpoint",paginatorLocale:"paginatorLocale",value:"value",columns:"columns",first:"first",rows:"rows",totalRecords:"totalRecords",sortField:"sortField",sortOrder:"sortOrder",multiSortMeta:"multiSortMeta",selection:"selection",selectAll:"selectAll",virtualRowHeight:"virtualRowHeight"},outputs:{contextMenuSelectionChange:"contextMenuSelectionChange",selectAllChange:"selectAllChange",selectionChange:"selectionChange",onRowSelect:"onRowSelect",onRowUnselect:"onRowUnselect",onPage:"onPage",onSort:"onSort",onFilter:"onFilter",onLazyLoad:"onLazyLoad",onRowExpand:"onRowExpand",onRowCollapse:"onRowCollapse",onContextMenuSelect:"onContextMenuSelect",onColResize:"onColResize",onColReorder:"onColReorder",onRowReorder:"onRowReorder",onEditInit:"onEditInit",onEditComplete:"onEditComplete",onEditCancel:"onEditCancel",onHeaderCheckboxToggle:"onHeaderCheckboxToggle",sortFunction:"sortFunction",firstChange:"firstChange",rowsChange:"rowsChange",onStateSave:"onStateSave",onStateRestore:"onStateRestore"},features:[Co([ore]),Ir,eo],decls:16,vars:22,consts:[["container",""],["wrapper",""],["buildInTable",""],["scroller",""],["table",""],["thead",""],["tfoot",""],["resizeHelper",""],["reorderIndicatorUp",""],["reorderIndicatorDown",""],[3,"ngStyle","ngClass"],["class","p-datatable-loading-overlay p-component-overlay",4,"ngIf"],["class","p-datatable-header",4,"ngIf"],[3,"rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","templateLeft","templateRight","dropdownAppendTo","dropdownScrollHeight","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showJumpToPageInput","showPageLinks","styleClass","locale","onPageChange",4,"ngIf"],[1,"p-datatable-wrapper",3,"ngStyle"],[3,"items","columns","style","scrollHeight","itemSize","step","delay","inline","lazy","loaderDisabled","showSpacer","showLoader","options","autoSize","onLazyLoad",4,"ngIf"],[4,"ngIf"],["class","p-datatable-footer",4,"ngIf"],["class","p-column-resizer-helper",3,"ngStyle",4,"ngIf"],["class","p-datatable-reorder-indicator-up",3,"ngStyle",4,"ngIf"],["class","p-datatable-reorder-indicator-down",3,"ngStyle",4,"ngIf"],[1,"p-datatable-loading-overlay","p-component-overlay"],[3,"class",4,"ngIf"],[3,"spin","styleClass",4,"ngIf"],["class","p-datatable-loading-icon",4,"ngIf"],[3,"spin","styleClass"],[1,"p-datatable-loading-icon"],[4,"ngTemplateOutlet"],[1,"p-datatable-header"],[3,"onPageChange","rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","templateLeft","templateRight","dropdownAppendTo","dropdownScrollHeight","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showJumpToPageInput","showPageLinks","styleClass","locale"],["pTemplate","dropdownicon"],["pTemplate","firstpagelinkicon"],["pTemplate","previouspagelinkicon"],["pTemplate","lastpagelinkicon"],["pTemplate","nextpagelinkicon"],[3,"onLazyLoad","items","columns","scrollHeight","itemSize","step","delay","inline","lazy","loaderDisabled","showSpacer","showLoader","options","autoSize"],["pTemplate","content"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["role","table",3,"ngClass","ngStyle"],["role","rowgroup",1,"p-datatable-thead"],["role","rowgroup","class","p-datatable-tbody p-datatable-frozen-tbody",3,"value","frozenRows","pTableBody","pTableBodyTemplate","frozen",4,"ngIf"],["role","rowgroup",1,"p-datatable-tbody",3,"ngClass","ngStyle","value","pTableBody","pTableBodyTemplate","scrollerOptions"],["role","rowgroup","class","p-datatable-scroller-spacer",3,"ngStyle",4,"ngIf"],["role","rowgroup","class","p-datatable-tfoot",4,"ngIf"],["role","rowgroup",1,"p-datatable-tbody","p-datatable-frozen-tbody",3,"value","frozenRows","pTableBody","pTableBodyTemplate","frozen"],["role","rowgroup",1,"p-datatable-scroller-spacer",3,"ngStyle"],["role","rowgroup",1,"p-datatable-tfoot"],[1,"p-datatable-footer"],[1,"p-column-resizer-helper",3,"ngStyle"],[1,"p-datatable-reorder-indicator-up",3,"ngStyle"],[1,"p-datatable-reorder-indicator-down",3,"ngStyle"]],template:function(i,r){i&1&&(se(0,"div",10,0),Ne(2,JPt,3,2,"div",11)(3,tFt,2,1,"div",12)(4,_Ft,6,24,"p-paginator",13),se(5,"div",14,1),Ne(7,bFt,3,17,"p-scroller",15)(8,wFt,2,7,"ng-container",16)(9,DFt,10,26,"ng-template",null,2,ws),ce(),Ne(11,YFt,6,24,"p-paginator",13)(12,$Ft,2,1,"div",17)(13,KFt,2,2,"div",18)(14,XFt,4,4,"span",19)(15,iLt,4,4,"span",20),ce()),i&2&&(vn(r.styleClass),J("ngStyle",r.style)("ngClass",gh(16,HPt,r.rowHover||r.selectionMode,r.scrollable,r.scrollable&&r.scrollHeight==="flex")),Et("id",r.id),Z(2),J("ngIf",r.loading&&r.showLoader),Z(),J("ngIf",r.captionTemplate),Z(),J("ngIf",r.paginator&&(r.paginatorPosition==="top"||r.paginatorPosition=="both")),Z(),J("ngStyle",Tr(20,GPt,r.virtualScroll?"":r.scrollHeight)),Z(2),J("ngIf",r.virtualScroll),Z(),J("ngIf",!r.virtualScroll),Z(3),J("ngIf",r.paginator&&(r.paginatorPosition==="bottom"||r.paginatorPosition=="both")),Z(),J("ngIf",r.summaryTemplate),Z(),J("ngIf",r.resizableColumns),Z(),J("ngIf",r.reorderableColumns),Z(),J("ngIf",r.reorderableColumns))},dependencies:()=>[Xa,Ul,Rs,Zc,n9e,Ra,ere,KEe,WEe,XT,jLt],styles:[`@layer primeng{.p-datatable{position:relative}.p-datatable>.p-datatable-wrapper{overflow:auto}.p-datatable-table{border-spacing:0px;width:100%}.p-datatable .p-sortable-column{cursor:pointer;-webkit-user-select:none;user-select:none}.p-datatable .p-sortable-column .p-column-title,.p-datatable .p-sortable-column .p-sortable-column-icon,.p-datatable .p-sortable-column .p-sortable-column-badge{vertical-align:middle}.p-datatable .p-sortable-column .p-icon-wrapper{display:inline}.p-datatable .p-sortable-column .p-sortable-column-badge{display:inline-flex;align-items:center;justify-content:center}.p-datatable-hoverable-rows .p-selectable-row{cursor:pointer}.p-datatable-scrollable>.p-datatable-wrapper{position:relative}.p-datatable-scrollable-table>.p-datatable-thead{position:sticky;top:0;z-index:2}.p-datatable-scrollable-table>.p-datatable-frozen-tbody{position:sticky;z-index:1}.p-datatable-scrollable-table>.p-datatable-tfoot{position:sticky;bottom:0;z-index:1}.p-datatable-scrollable .p-frozen-column{position:sticky;background:inherit;z-index:1}.p-datatable-scrollable th.p-frozen-column{z-index:1}.p-datatable-flex-scrollable{display:flex;flex-direction:column;height:100%}.p-datatable-flex-scrollable>.p-datatable-wrapper{display:flex;flex-direction:column;flex:1;height:100%}.p-datatable-scrollable-table>.p-datatable-tbody>.p-rowgroup-header{position:sticky;z-index:2}.p-datatable-resizable-table>.p-datatable-thead>tr>th,.p-datatable-resizable-table>.p-datatable-tfoot>tr>td,.p-datatable-resizable-table>.p-datatable-tbody>tr>td{overflow:hidden;white-space:nowrap}.p-datatable-resizable-table>.p-datatable-thead>tr>th.p-resizable-column:not(.p-frozen-column){background-clip:padding-box;position:relative}.p-datatable-resizable-table-fit>.p-datatable-thead>tr>th.p-resizable-column:last-child .p-column-resizer{display:none}.p-datatable .p-column-resizer{display:block;position:absolute!important;top:0;right:0;margin:0;width:.5rem;height:100%;padding:0;cursor:col-resize;border:1px solid transparent}.p-datatable .p-column-resizer-helper{width:1px;position:absolute;z-index:10;display:none}.p-datatable .p-row-editor-init,.p-datatable .p-row-editor-save,.p-datatable .p-row-editor-cancel,.p-datatable .p-row-toggler{display:inline-flex;align-items:center;justify-content:center;overflow:hidden;position:relative}.p-datatable-reorder-indicator-up,.p-datatable-reorder-indicator-down{position:absolute}.p-datatable-reorderablerow-handle,[pReorderableColumn]{cursor:move}.p-datatable .p-datatable-loading-overlay{position:absolute;display:flex;align-items:center;justify-content:center;z-index:3}.p-column-filter-row{display:flex;align-items:center;width:100%}.p-column-filter-menu{display:inline-flex}.p-column-filter-row p-columnfilterformelement{flex:1 1 auto;width:1%}.p-column-filter-menu-button,.p-column-filter-clear-button{display:inline-flex;justify-content:center;align-items:center;cursor:pointer;text-decoration:none;overflow:hidden;position:relative}.p-column-filter-overlay{position:absolute;top:0;left:0}.p-column-filter-row-items{margin:0;padding:0;list-style:none}.p-column-filter-row-item{cursor:pointer}.p-column-filter-add-button,.p-column-filter-remove-button{justify-content:center}.p-column-filter-add-button .p-button-label,.p-column-filter-remove-button .p-button-label{flex-grow:0}.p-column-filter-buttonbar{display:flex;align-items:center;justify-content:space-between}.p-column-filter-buttonbar .p-button{width:auto}.p-datatable-tbody>tr>td>.p-column-title{display:none}.p-datatable-scroller-spacer{display:flex}.p-datatable .p-scroller .p-scroller-loading{transform:none!important;min-height:0;position:sticky;top:0;left:0}} `],encapsulation:2})}return n})(),jLt=(()=>{class n{dt;tableService;cd;el;columns;template;get value(){return this._value}set value(t){this._value=t,this.frozenRows&&this.updateFrozenRowStickyPosition(),this.dt.scrollable&&this.dt.rowGroupMode==="subheader"&&this.updateFrozenRowGroupHeaderStickyPosition()}frozen;frozenRows;scrollerOptions;subscription;_value;ngAfterViewInit(){this.frozenRows&&this.updateFrozenRowStickyPosition(),this.dt.scrollable&&this.dt.rowGroupMode==="subheader"&&this.updateFrozenRowGroupHeaderStickyPosition()}constructor(t,i,r,o){this.dt=t,this.tableService=i,this.cd=r,this.el=o,this.subscription=this.dt.tableService.valueSource$.subscribe(()=>{this.dt.virtualScroll&&this.cd.detectChanges()})}shouldRenderRowGroupHeader(t,i,r){let o=Mn.resolveFieldData(i,this.dt.groupRowsBy),s=t[r-(1+this.dt._first)];if(s){let c=Mn.resolveFieldData(s,this.dt.groupRowsBy);return o!==c}else return!0}shouldRenderRowGroupFooter(t,i,r){let o=Mn.resolveFieldData(i,this.dt.groupRowsBy),s=t[r+(1+this.dt._first)];if(s){let c=Mn.resolveFieldData(s,this.dt.groupRowsBy);return o!==c}else return!0}shouldRenderRowspan(t,i,r){let o=Mn.resolveFieldData(i,this.dt.groupRowsBy),s=t[r-1];if(s){let c=Mn.resolveFieldData(s,this.dt.groupRowsBy);return o!==c}else return!0}calculateRowGroupSize(t,i,r){let o=Mn.resolveFieldData(i,this.dt.groupRowsBy),s=o,c=0;for(;o===s;){c++;let h=t[++r];if(h)s=Mn.resolveFieldData(h,this.dt.groupRowsBy);else break}return c===1?null:c}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}updateFrozenRowStickyPosition(){this.el.nativeElement.style.top=Ft.getOuterHeight(this.el.nativeElement.previousElementSibling)+"px"}updateFrozenRowGroupHeaderStickyPosition(){if(this.el.nativeElement.previousElementSibling){let t=Ft.getOuterHeight(this.el.nativeElement.previousElementSibling);this.dt.rowGroupHeaderStyleObject.top=t+"px"}}getScrollerOption(t,i){return this.dt.virtualScroll?(i=i||this.scrollerOptions,i?i[t]:null):null}getRowIndex(t){let i=this.dt.paginator?this.dt.first+t:t,r=this.getScrollerOption("getItemOptions");return r?r(i).index:i}static \u0275fac=function(i){return new(i||n)(oe(iA),oe(ore),oe(ur),oe(Ai))};static \u0275cmp=Ct({type:n,selectors:[["","pTableBody",""]],hostAttrs:[1,"p-element"],inputs:{columns:[0,"pTableBody","columns"],template:[0,"pTableBodyTemplate","template"],value:"value",frozen:[2,"frozen","frozen",Ht],frozenRows:[2,"frozenRows","frozenRows",Ht],scrollerOptions:"scrollerOptions"},features:[Ir],attrs:nLt,decls:5,vars:5,consts:[[4,"ngIf"],["ngFor","",3,"ngForOf","ngForTrackBy"],["role","row",4,"ngIf"],["role","row"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(i,r){i&1&&Ne(0,fLt,2,2,"ng-container",0)(1,SLt,2,2,"ng-container",0)(2,DLt,2,2,"ng-container",0)(3,MLt,2,5,"ng-container",0)(4,RLt,2,5,"ng-container",0),i&2&&(J("ngIf",!r.dt.expandedRowTemplate),Z(),J("ngIf",r.dt.expandedRowTemplate&&!(r.frozen&&r.dt.frozenExpandedRowTemplate)),Z(),J("ngIf",r.dt.frozenExpandedRowTemplate&&r.frozen),Z(),J("ngIf",r.dt.loading),Z(),J("ngIf",r.dt.isEmpty()&&!r.dt.loading))},dependencies:[Hf,Ul,Rs],encapsulation:2})}return n})();var are=(()=>{class n{dt;field;pSortableColumnDisabled;sorted;sortOrder;subscription;constructor(t){this.dt=t,this.isEnabled()&&(this.subscription=this.dt.tableService.sortSource$.subscribe(i=>{this.updateSortState()}))}ngOnInit(){this.isEnabled()&&this.updateSortState()}updateSortState(){this.sorted=this.dt.isSorted(this.field),this.sortOrder=this.sorted?this.dt.sortOrder===1?"ascending":"descending":"none"}onClick(t){this.isEnabled()&&!this.isFilterElement(t.target)&&(this.updateSortState(),this.dt.sort({originalEvent:t,field:this.field}),Ft.clearSelection())}onEnterKey(t){this.onClick(t),t.preventDefault()}isEnabled(){return this.pSortableColumnDisabled!==!0}isFilterElement(t){return this.isFilterElementIconOrButton(t)||this.isFilterElementIconOrButton(t?.parentElement?.parentElement)}isFilterElementIconOrButton(t){return Ft.hasClass(t,"pi-filter-icon")||Ft.hasClass(t,"p-column-filter-menu-button")}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}static \u0275fac=function(i){return new(i||n)(oe(iA))};static \u0275dir=Ki({type:n,selectors:[["","pSortableColumn",""]],hostAttrs:[1,"p-element"],hostVars:7,hostBindings:function(i,r){i&1&&At("click",function(s){return r.onClick(s)})("keydown.space",function(s){return r.onEnterKey(s)})("keydown.enter",function(s){return r.onEnterKey(s)}),i&2&&(Et("tabindex",r.isEnabled()?"0":null)("role","columnheader")("aria-sort",r.sortOrder),$n("p-sortable-column",r.isEnabled())("p-highlight",r.sorted))},inputs:{field:[0,"pSortableColumn","field"],pSortableColumnDisabled:[2,"pSortableColumnDisabled","pSortableColumnDisabled",Ht]},features:[Ir]})}return n})(),lre=(()=>{class n{dt;cd;field;subscription;sortOrder;constructor(t,i){this.dt=t,this.cd=i,this.subscription=this.dt.tableService.sortSource$.subscribe(r=>{this.updateSortState()})}ngOnInit(){this.updateSortState()}onClick(t){t.preventDefault()}updateSortState(){if(this.dt.sortMode==="single")this.sortOrder=this.dt.isSorted(this.field)?this.dt.sortOrder:0;else if(this.dt.sortMode==="multiple"){let t=this.dt.getSortMeta(this.field);this.sortOrder=t?t.order:0}this.cd.markForCheck()}getMultiSortMetaIndex(){let t=this.dt._multiSortMeta,i=-1;if(t&&this.dt.sortMode==="multiple"&&this.dt.showInitialSortBadge&&t.length>1)for(let r=0;r-1?t:t+1}isMultiSorted(){return this.dt.sortMode==="multiple"&&this.getMultiSortMetaIndex()>-1}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}static \u0275fac=function(i){return new(i||n)(oe(iA),oe(ur))};static \u0275cmp=Ct({type:n,selectors:[["p-sortIcon"]],hostAttrs:[1,"p-element"],inputs:{field:"field"},decls:3,vars:3,consts:[[4,"ngIf"],["class","p-sortable-column-icon",4,"ngIf"],["class","p-sortable-column-badge",4,"ngIf"],[3,"styleClass",4,"ngIf"],[3,"styleClass"],[1,"p-sortable-column-icon"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"p-sortable-column-badge"]],template:function(i,r){i&1&&Ne(0,LLt,4,3,"ng-container",0)(1,VLt,2,4,"span",1)(2,ULt,2,1,"span",2),i&2&&(J("ngIf",!r.dt.sortIconTemplate),Z(),J("ngIf",r.dt.sortIconTemplate),Z(),J("ngIf",r.isMultiSorted()))},dependencies:()=>[Ul,Rs,ZEe,XEe,QEe],encapsulation:2,changeDetection:0})}return n})(),cre=(()=>{class n{dt;tableService;el;data;index;pSelectableRowDisabled;selected;subscription;constructor(t,i,r){this.dt=t,this.tableService=i,this.el=r,this.isEnabled()&&(this.subscription=this.dt.tableService.selectionSource$.subscribe(()=>{this.selected=this.dt.isSelected(this.data)}))}setRowTabIndex(){if(this.dt.selectionMode==="single"||this.dt.selectionMode==="multiple")return this.dt.selection?this.dt.anchorRowIndex===this.index?0:-1:0}ngOnInit(){this.isEnabled()&&(this.selected=this.dt.isSelected(this.data))}onClick(t){this.isEnabled()&&this.dt.handleRowClick({originalEvent:t,rowData:this.data,rowIndex:this.index})}onTouchEnd(t){this.isEnabled()&&this.dt.handleRowTouchEnd(t)}onKeyDown(t){switch(t.code){case"ArrowDown":this.onArrowDownKey(t);break;case"ArrowUp":this.onArrowUpKey(t);break;case"Home":this.onHomeKey(t);break;case"End":this.onEndKey(t);break;case"Space":this.onSpaceKey(t);break;case"Enter":this.onEnterKey(t);break;default:if(t.code==="KeyA"&&(t.metaKey||t.ctrlKey)&&this.dt.selectionMode==="multiple"){let i=this.dt.dataToRender(this.dt.processedData);this.dt.selection=[...i],this.dt.selectRange(t,i.length-1,!0),t.preventDefault()}break}}onArrowDownKey(t){if(!this.isEnabled())return;let i=t.currentTarget,r=this.findNextSelectableRow(i);r&&r.focus(),t.preventDefault()}onArrowUpKey(t){if(!this.isEnabled())return;let i=t.currentTarget,r=this.findPrevSelectableRow(i);r&&r.focus(),t.preventDefault()}onEnterKey(t){this.isEnabled()&&this.dt.handleRowClick({originalEvent:t,rowData:this.data,rowIndex:this.index})}onEndKey(t){let i=this.findLastSelectableRow();if(i&&this.focusRowChange(this.el.nativeElement,i),t.ctrlKey&&t.shiftKey){let r=this.dt.dataToRender(this.dt.rows),o=Ft.getAttribute(i,"index");this.dt.anchorRowIndex=o,this.dt.selection=r.slice(this.index,r.length),this.dt.selectRange(t,this.index)}t.preventDefault()}onHomeKey(t){let i=this.findFirstSelectableRow();if(i&&this.focusRowChange(this.el.nativeElement,i),t.ctrlKey&&t.shiftKey){let r=this.dt.dataToRender(this.dt.rows),o=Ft.getAttribute(i,"index");this.dt.anchorRowIndex=this.dt.anchorRowIndex||o,this.dt.selection=r.slice(0,this.index+1),this.dt.selectRange(t,this.index)}t.preventDefault()}onSpaceKey(t){if(!(t.target instanceof HTMLInputElement||t.target instanceof HTMLSelectElement||t.target instanceof HTMLTextAreaElement)){if(this.onEnterKey(t),t.shiftKey&&this.dt.selection!==null){let r=this.dt.dataToRender(this.dt.rows),o;if(Mn.isNotEmpty(this.dt.selection)&&this.dt.selection.length>0){let s,c;s=Mn.findIndexInList(this.dt.selection[0],r),c=Mn.findIndexInList(this.dt.selection[this.dt.selection.length-1],r),o=this.index<=s?c:s}else o=Mn.findIndexInList(this.dt.selection,r);this.dt.anchorRowIndex=o,this.dt.selection=o!==this.index?r.slice(Math.min(o,this.index),Math.max(o,this.index)+1):[this.data],this.dt.selectRange(t,this.index)}t.preventDefault()}}focusRowChange(t,i){t.tabIndex="-1",i.tabIndex="0",Ft.focus(i)}findLastSelectableRow(){let t=Ft.find(this.dt.el.nativeElement,".p-selectable-row");return t?t[t.length-1]:null}findFirstSelectableRow(){return Ft.findSingle(this.dt.el.nativeElement,".p-selectable-row")}findNextSelectableRow(t){let i=t.nextElementSibling;return i?Ft.hasClass(i,"p-selectable-row")?i:this.findNextSelectableRow(i):null}findPrevSelectableRow(t){let i=t.previousElementSibling;return i?Ft.hasClass(i,"p-selectable-row")?i:this.findPrevSelectableRow(i):null}isEnabled(){return this.pSelectableRowDisabled!==!0}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}static \u0275fac=function(i){return new(i||n)(oe(iA),oe(ore),oe(Ai))};static \u0275dir=Ki({type:n,selectors:[["","pSelectableRow",""]],hostAttrs:[1,"p-element"],hostVars:7,hostBindings:function(i,r){i&1&&At("click",function(s){return r.onClick(s)})("touchend",function(s){return r.onTouchEnd(s)})("keydown",function(s){return r.onKeyDown(s)}),i&2&&(Et("tabindex",r.setRowTabIndex())("data-p-highlight",r.selected)("data-p-selectable-row",!0),$n("p-selectable-row",r.isEnabled())("p-highlight",r.selected))},inputs:{data:[0,"pSelectableRow","data"],index:[0,"pSelectableRowIndex","index"],pSelectableRowDisabled:[2,"pSelectableRowDisabled","pSelectableRowDisabled",Ht]},features:[Ir]})}return n})();var ure=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275mod=Oi({type:n});static \u0275inj=Mi({imports:[os,nre,T3,xR,dC,bR,r9e,jGe,VG,o9e,I3,KEe,WEe,XT,ZEe,XEe,QEe,tA,ZGe,QGe,XGe,JGe,Hl,I3]})}return n})();var HLt=()=>[25,50,100],GLt=()=>["name","labels","modifiedDate"];function YLt(n,e){if(n&1){let t=Fi();se(0,"div")(1,"mat-form-field")(2,"input",6),At("input",function(r){ht(t),le();let o=_r(1);return pt(o.filterGlobal(r.target.value,"contains"))}),ce()()()}}function qLt(n,e){n&1&&(se(0,"th",9),yt(1,"Labels"),ce())}function $Lt(n,e){if(n&1&&(se(0,"tr")(1,"th",7),yt(2," Name "),bt(3,"p-sortIcon",8),ce(),Ne(4,qLt,2,0,"th",9),se(5,"th"),yt(6,"Berechtigung"),ce(),se(7,"th",10),yt(8," Letzte \xC4nderung "),bt(9,"p-sortIcon",11),ce(),se(10,"th"),yt(11,"Link"),ce()()),n&2){let t=le();Z(4),Hi(t.options.showLabelsColumn?4:-1)}}function KLt(n,e){if(n&1&&(se(0,"td"),yt(1),ce()),n&2){let t=le().$implicit;Z(),ps(" ",t.labels&&t.labels.length>0?t.labels.join(", "):""," ")}}function WLt(n,e){if(n&1&&(se(0,"tr",12)(1,"td"),yt(2),ce(),Ne(3,KLt,2,1,"td"),se(4,"td"),yt(5),ce(),se(6,"td"),yt(7),Ym(8,"date"),ce(),se(9,"td")(10,"a",13)(11,"mat-icon"),yt(12,"open_in_new"),ce()()()()),n&2){let t=e.$implicit,i=le();J("pSelectableRow",t)("pSelectableRowDisabled",i.options.disableFnc(t)),Z(2),jn(t.name),Z(),Hi(i.options.showLabelsColumn?3:-1),Z(2),ps(" ",i.BD_SHARE_PERMISSION_DISPLAY_NAME[t.highestPermission]," "),Z(2),jn(i0(8,8,t.modifiedDate,"short")),Z(3),J("routerLink",i.options.detailLinkFnc(t))("disabled",i.options.disableFnc(t))}}function ZLt(n,e){if(n&1&&(se(0,"tr")(1,"td",14),yt(2),ce()()),n&2){let t=le();Z(2),jn(t.options.emptyResourcesText)}}var d9e=(()=>{let e=class e extends PG{constructor(i){super(),this._router=i,this.options=C3,this.resources=[],this.BD_SHARE_PERMISSION_DISPLAY_NAME=Pne}ngOnChanges(i){i.resources?.currentValue&&i.resources.currentValue.length>0&&this.init(this.resources)}onRowSelect(i){let r=this.options.detailLinkFnc(i);this._router.navigate(r)}};e.\u0275fac=function(r){return new(r||e)(oe(el))},e.\u0275cmp=Ct({type:e,selectors:[["bd-resources-list"]],inputs:{options:"options",resources:"resources"},standalone:!0,features:[Li,eo,Ot],decls:6,vars:10,consts:[["resourcesTable",""],["selectionMode","single","dataKey","id","styleClass","p-datatable-sm",3,"selectionChange","value","paginator","rows","sortField","sortOrder","rowsPerPageOptions","globalFilterFields","autoLayout"],["pTemplate","caption"],["pTemplate","header"],["pTemplate","body"],["pTemplate","emptymessage"],["matInput","","placeholder","Suchen",3,"input"],["pSortableColumn","name"],["field","name"],[2,"width","20%"],["pSortableColumn","modifiedDate"],["field","modifiedDate"],[3,"pSelectableRow","pSelectableRowDisabled"],["mat-icon-button","","color","accent",3,"routerLink","disabled"],["colspan","4"]],template:function(r,o){if(r&1){let s=Fi();se(0,"p-table",1,0),At("selectionChange",function(h){return ht(s),pt(o.onRowSelect(h))}),Ne(2,YLt,3,0,"ng-template",2)(3,$Lt,12,1,"ng-template",3)(4,WLt,13,11,"ng-template",4)(5,ZLt,3,1,"ng-template",5),ce()}r&2&&J("value",o.resourceOptions.data)("paginator",!0)("rows",25)("sortField","modifiedDate")("sortOrder",-1)("rowsPerPageOptions",Ll(8,HLt))("globalFilterFields",Ll(9,GLt))("autoLayout",!0)},dependencies:[Ys,p0,$b,k8e,ure,iA,Ra,are,cre,lre,gs,Xje,qs,zs,dT,T3,mne,fne,zT,Wh],encapsulation:2});let n=e;return n})();var dre=class{constructor(e){this._environmentService=e}crud(){return`${this._environmentService.load("AYS_BENCHMARKING_GROUP_RESOURCE_URL")}/`}findAll(){return`${this.crud()}all`}findById(e){return`${this.crud()}${e}`}};var hre=class{constructor(e){this._environmentService=e}crud(){return`${this._environmentService.load("AYS_CLINIC_FILTER_STORAGE_URL")}/`}findById(e){return`${this.crud()}${e}`}};var pre=class{constructor(e){this._environmentService=e}crud(){return`${this._environmentService.load("AYS_CODE_SPECTRUM_STORAGE_URL")}`}byId(e){return`${this.crud()}/${e}`}codes(e){return`${this.byId(e)}/codes`}codesByCodingSystem(e,t){return`${this.byId(e)}/codes/${t}`}};var fre=class{constructor(e){this._environmentService=e}base(){return`${this._environmentService.load("CUBE_DASHBOARD_URL")}/dashboards/user-defined`}byId(e){return`${this._environmentService.load("CUBE_DASHBOARD_URL")}/dashboards/user-defined/${e}`}children(e){return`${this.byId(e)}/relationships/children`}};var mre=class{constructor(e){this._environmentService=e}crud(){return`${this._environmentService.load("BD_FILES_RESOURCE_URL")}/`}};var gre=class{constructor(e){this._environmentService=e}index(){return`${this._environmentService.load("AYS_MARKET_STORAGE_URL")}/markets`}byMarketId(e){return`${this.index()}/${e}`}};var _re=class{constructor(e){this._environmentService=e}userDefinedGroups(){return`${this._environmentService.load("AYS_OPERATING_NUMBER_GROUPS_URL")}/operating-number-groups/clinic/user-defined`}userDefinedGroup(e){return`${this.userDefinedGroups()}/${e}`}};var vre=class{constructor(e){this._environmentService=e}p21(){return`${this._environmentService.load("AYS_VIRTUAL_CLINIC_P21_IMPORT_RESOURCE_URL")}/p21-imports/`}p21byId(e){return`${this.p21()}${e}`}};var yre=class{constructor(e){this._environmentService=e}virtualClinicReferralsImports(){return`${this._basePath()}/`}virtualClinicReferralsImportDetail(e){return`${this._basePath()}/${e}`}_basePath(){return this._environmentService.load("AYS_VIRTUAL_CLINIC_REFERRAL_IMPORT_RESOURCE_URL")+"/referral-imports"}};var wR=class{constructor(e){this._environmentService=e}crud(){return`${this._environmentService.load("AYS_VIRTUAL_CLINIC_RESOURCE_URL")}/`}crudClinic(e){return`${this.crud()}${e}/`}specialtyDepartments(e){return`${this.crudClinic(e)}specialty-departments/`}specialtyDepartment(e,t){return`${this.specialtyDepartments(e)}${t}/`}};var bre=class{constructor(e){this._environmentService=e}crud(){return`${this._baseUrl()}/scenarios/openclose/`}findOne(e){return`${this._baseUrl()}/scenarios/openclose/${e}/`}serviceGroups(){return`${this._baseUrl()}/leistungsgruppen/`}vv(){return`${this._baseUrl()}/vorhalteverguetung`}soll1Mindestfallzahl(e){return`${this.serviceGroups()}${e}/soll1-mindestfallzahl/`}_baseUrl(){return this._environmentService.load("BMG_DEMAND_ANALYSIS_URL")}};var ol=class{constructor(){this._cache={},zm(6e4*3600,6e4*3600).subscribe(e=>this._cache={})}hasByKey(e){return!!this._cache[e]}getByKey(e){return this._cache[e].pipe(ri(t=>t.clone()))}deleteCacheForKey(e){delete this._cache[e]}};var CR=class n{static fromObj(e){return new n(e.id,e.name,e.createdDate,e.modifiedDate,e.highestPermission,e.criteria?e.criteria.clinicSizes:null,e.criteria?e.criteria.medicalCareLevels:null,e.criteria?e.criteria.clinicTypes:null,e.criteria?e.criteria.virtualClinicIds:null,e.criteria?e.criteria.universityType:null)}constructor(e,t,i,r,o,s=null,c=null,h=null,g=null,x=null){this.id=e,this.name=t,this.createdDate=i,this.modifiedDate=r,this.highestPermission=o,this.clinicSizes=s,this.medicalCareLevels=c,this.clinicTypes=h,this.virtualClinicIds=g,this.universityType=x,this.resourceName=Bn.VIRTUAL_CLINIC_BENCHMARKING_GROUP}clone(){return new n(this.id,this.name,this.createdDate,this.modifiedDate,this.highestPermission,this.clinicSizes?.slice(),this.medicalCareLevels?.slice(),this.clinicTypes?.slice(),this.virtualClinicIds?.slice(),this.universityType)}toJson(){return{id:this.id,name:this.name,createdDate:this.createdDate,modifiedDate:this.modifiedDate,criteria:{clinicSizes:this.clinicSizes,medicalCareLevels:this.medicalCareLevels,clinicTypes:this.clinicTypes,universityType:this.universityType,virtualClinicIds:this.virtualClinicIds}}}};var h9e=(()=>{let e=class e extends ol{constructor(i,r,o){super(),this._httpClient=i,this._environmentService=r,this._permissionService=o,this._store=new dre(this._environmentService)}create(i){let r=this._store.crud(),o=i.toJson();return this._httpClient.post(r,o).pipe(ri(s=>CR.fromObj(s)))}findAll(i,r){let o=this._store.findAll(),s=new Bs;return i&&(s=s.append("minPermission",i)),r&&(s=s.append("maxPermission",r)),this._httpClient.get(o,{params:s}).pipe(ri(c=>c.map(h=>CR.fromObj(h))))}findById(i){if(this.hasByKey(i)===!1){let r=this._store.findById(i);this._cache[i]=this._httpClient.get(r).pipe(ri(o=>CR.fromObj(o)),dl(1))}return this.getByKey(i)}update(i){this.deleteCacheForKey(i.id);let r=this._store.findById(i.id),o=i.toJson();return this._httpClient.post(r,o).pipe(ri(s=>CR.fromObj(s)),ri(s=>null))}};e.\u0275fac=function(r){return new(r||e)(Ke(ms),Ke(dr),Ke(qd))},e.\u0275prov=It({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var xh=class n{static fromString(e){let t=e.split("_"),i=t[2]?parseInt(t[2],10):void 0;return new n(t[0],t[1],i)}static fromObj(e={}){return new n(e.ik.toString(),e.sn.toString(),e.year)}constructor(e,t,i){this.ik=e,this.sn=t,this.year=i}toString(){let e=null;return this.ik&&this.sn!==null&&this.sn!==void 0&&(e=`${this.ik}_${this.sn}`,this.year&&(e=`${e}_${this.year}`)),e}clone(){return new n(this.ik,this.sn,this.year)}equals(e){return!!this&&!!e&&this.toString()===e.toString()}equalsByIkAndSn(e){return sr.equals(this.ik,e.ik)&&sr.equals(this.sn,e.sn)}};var p9e=2022;var A3=function(n){return n.WITH_UNIVERSITIES="WITH_UNIVERSITIES",n.WITHOUT_UNIVERSITIES="WITHOUT_UNIVERSITIES",n.ONLY_UNIVERSITIES="ONLY_UNIVERSITIES",n}(A3||{}),_Ji={[A3.WITH_UNIVERSITIES]:"Mit Universit\xE4ts-Kliniken",[A3.WITHOUT_UNIVERSITIES]:"Ohne Universit\xE4ts-Kliniken",[A3.ONLY_UNIVERSITIES]:"Nur Universit\xE4ts-Kliniken"};function HG(n){return n+.5|0}var nA=(n,e,t)=>Math.max(Math.min(n,t),e);function UG(n){return nA(HG(n*2.55),0,255)}function rA(n){return nA(HG(n*255),0,255)}function yC(n){return nA(HG(n/2.55)/100,0,1)}function f9e(n){return nA(HG(n*100),0,100)}var F_={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},cIe=[..."0123456789ABCDEF"],JLt=n=>cIe[n&15],eBt=n=>cIe[(n&240)>>4]+cIe[n&15],xre=n=>(n&240)>>4===(n&15),tBt=n=>xre(n.r)&&xre(n.g)&&xre(n.b)&&xre(n.a);function iBt(n){var e=n.length,t;return n[0]==="#"&&(e===4||e===5?t={r:255&F_[n[1]]*17,g:255&F_[n[2]]*17,b:255&F_[n[3]]*17,a:e===5?F_[n[4]]*17:255}:(e===7||e===9)&&(t={r:F_[n[1]]<<4|F_[n[2]],g:F_[n[3]]<<4|F_[n[4]],b:F_[n[5]]<<4|F_[n[6]],a:e===9?F_[n[7]]<<4|F_[n[8]]:255})),t}var nBt=(n,e)=>n<255?e(n):"";function rBt(n){var e=tBt(n)?JLt:eBt;return n?"#"+e(n.r)+e(n.g)+e(n.b)+nBt(n.a,e):void 0}var oBt=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function v9e(n,e,t){let i=e*Math.min(t,1-t),r=(o,s=(o+n/30)%12)=>t-i*Math.max(Math.min(s-3,9-s,1),-1);return[r(0),r(8),r(4)]}function sBt(n,e,t){let i=(r,o=(r+n/60)%6)=>t-t*e*Math.max(Math.min(o,4-o,1),0);return[i(5),i(3),i(1)]}function aBt(n,e,t){let i=v9e(n,1,.5),r;for(e+t>1&&(r=1/(e+t),e*=r,t*=r),r=0;r<3;r++)i[r]*=1-e-t,i[r]+=e;return i}function lBt(n,e,t,i,r){return n===r?(e-t)/i+(e.5?x/(2-o-s):x/(o+s),h=lBt(t,i,r,x,o),h=h*60+.5),[h|0,g||0,c]}function dIe(n,e,t,i){return(Array.isArray(e)?n(e[0],e[1],e[2]):n(e,t,i)).map(rA)}function hIe(n,e,t){return dIe(v9e,n,e,t)}function cBt(n,e,t){return dIe(aBt,n,e,t)}function uBt(n,e,t){return dIe(sBt,n,e,t)}function y9e(n){return(n%360+360)%360}function dBt(n){let e=oBt.exec(n),t=255,i;if(!e)return;e[5]!==i&&(t=e[6]?UG(+e[5]):rA(+e[5]));let r=y9e(+e[2]),o=+e[3]/100,s=+e[4]/100;return e[1]==="hwb"?i=cBt(r,o,s):e[1]==="hsv"?i=uBt(r,o,s):i=hIe(r,o,s),{r:i[0],g:i[1],b:i[2],a:t}}function hBt(n,e){var t=uIe(n);t[0]=y9e(t[0]+e),t=hIe(t),n.r=t[0],n.g=t[1],n.b=t[2]}function pBt(n){if(!n)return;let e=uIe(n),t=e[0],i=f9e(e[1]),r=f9e(e[2]);return n.a<255?`hsla(${t}, ${i}%, ${r}%, ${yC(n.a)})`:`hsl(${t}, ${i}%, ${r}%)`}var m9e={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},g9e={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function fBt(){let n={},e=Object.keys(g9e),t=Object.keys(m9e),i,r,o,s,c;for(i=0;i>16&255,o>>8&255,o&255]}return n}var wre;function mBt(n){wre||(wre=fBt(),wre.transparent=[0,0,0,0]);let e=wre[n.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:e.length===4?e[3]:255}}var gBt=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function _Bt(n){let e=gBt.exec(n),t=255,i,r,o;if(e){if(e[7]!==i){let s=+e[7];t=e[8]?UG(s):nA(s*255,0,255)}return i=+e[1],r=+e[3],o=+e[5],i=255&(e[2]?UG(i):nA(i,0,255)),r=255&(e[4]?UG(r):nA(r,0,255)),o=255&(e[6]?UG(o):nA(o,0,255)),{r:i,g:r,b:o,a:t}}}function vBt(n){return n&&(n.a<255?`rgba(${n.r}, ${n.g}, ${n.b}, ${yC(n.a)})`:`rgb(${n.r}, ${n.g}, ${n.b})`)}var lIe=n=>n<=.0031308?n*12.92:Math.pow(n,1/2.4)*1.055-.055,D3=n=>n<=.04045?n/12.92:Math.pow((n+.055)/1.055,2.4);function yBt(n,e,t){let i=D3(yC(n.r)),r=D3(yC(n.g)),o=D3(yC(n.b));return{r:rA(lIe(i+t*(D3(yC(e.r))-i))),g:rA(lIe(r+t*(D3(yC(e.g))-r))),b:rA(lIe(o+t*(D3(yC(e.b))-o))),a:n.a+t*(e.a-n.a)}}function Cre(n,e,t){if(n){let i=uIe(n);i[e]=Math.max(0,Math.min(i[e]+i[e]*t,e===0?360:1)),i=hIe(i),n.r=i[0],n.g=i[1],n.b=i[2]}}function b9e(n,e){return n&&Object.assign(e||{},n)}function _9e(n){var e={r:0,g:0,b:0,a:255};return Array.isArray(n)?n.length>=3&&(e={r:n[0],g:n[1],b:n[2],a:255},n.length>3&&(e.a=rA(n[3]))):(e=b9e(n,{r:0,g:0,b:0,a:1}),e.a=rA(e.a)),e}function bBt(n){return n.charAt(0)==="r"?_Bt(n):dBt(n)}var jG=class n{constructor(e){if(e instanceof n)return e;let t=typeof e,i;t==="object"?i=_9e(e):t==="string"&&(i=iBt(e)||mBt(e)||bBt(e)),this._rgb=i,this._valid=!!i}get valid(){return this._valid}get rgb(){var e=b9e(this._rgb);return e&&(e.a=yC(e.a)),e}set rgb(e){this._rgb=_9e(e)}rgbString(){return this._valid?vBt(this._rgb):void 0}hexString(){return this._valid?rBt(this._rgb):void 0}hslString(){return this._valid?pBt(this._rgb):void 0}mix(e,t){if(e){let i=this.rgb,r=e.rgb,o,s=t===o?.5:t,c=2*s-1,h=i.a-r.a,g=((c*h===-1?c:(c+h)/(1+c*h))+1)/2;o=1-g,i.r=255&g*i.r+o*r.r+.5,i.g=255&g*i.g+o*r.g+.5,i.b=255&g*i.b+o*r.b+.5,i.a=s*i.a+(1-s)*r.a,this.rgb=i}return this}interpolate(e,t){return e&&(this._rgb=yBt(this._rgb,e._rgb,t)),this}clone(){return new n(this.rgb)}alpha(e){return this._rgb.a=rA(e),this}clearer(e){let t=this._rgb;return t.a*=1-e,this}greyscale(){let e=this._rgb,t=HG(e.r*.3+e.g*.59+e.b*.11);return e.r=e.g=e.b=t,this}opaquer(e){let t=this._rgb;return t.a*=1+e,this}negate(){let e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}lighten(e){return Cre(this._rgb,2,e),this}darken(e){return Cre(this._rgb,2,-e),this}saturate(e){return Cre(this._rgb,1,e),this}desaturate(e){return Cre(this._rgb,1,-e),this}rotate(e){return hBt(this._rgb,e),this}};var gIe=(()=>{let n=0;return()=>n++})();function Gl(n){return n===null||typeof n>"u"}function Bc(n){if(Array.isArray&&Array.isArray(n))return!0;let e=Object.prototype.toString.call(n);return e.slice(0,7)==="[object"&&e.slice(-6)==="Array]"}function xa(n){return n!==null&&Object.prototype.toString.call(n)==="[object Object]"}function Uu(n){return(typeof n=="number"||n instanceof Number)&&isFinite(+n)}function Zp(n,e){return Uu(n)?n:e}function tc(n,e){return typeof n>"u"?e:n}var _Ie=(n,e)=>typeof n=="string"&&n.endsWith("%")?parseFloat(n)/100*e:+n;function ic(n,e,t){if(n&&typeof n.call=="function")return n.apply(t,e)}function gd(n,e,t,i){let r,o,s;if(Bc(n))if(o=n.length,i)for(r=o-1;r>=0;r--)e.call(t,n[r],r);else for(r=0;rn,x:n=>n.x,y:n=>n.y};function k9e(n){let e=n.split("."),t=[],i="";for(let r of e)i+=r,i.endsWith("\\")?i=i.slice(0,-1)+".":(t.push(i),i="");return t}function xBt(n){let e=k9e(n);return t=>{for(let i of e){if(i==="")break;t=t&&t[i]}return t}}function M3(n,e){return(x9e[e]||(x9e[e]=xBt(e)))(n)}function $G(n){return n.charAt(0).toUpperCase()+n.slice(1)}var O3=n=>typeof n<"u",rx=n=>typeof n=="function",Dre=(n,e)=>{if(n.size!==e.size)return!1;for(let t of n)if(!e.has(t))return!1;return!0};function vIe(n){return n.type==="mouseup"||n.type==="click"||n.type==="contextmenu"}var gu=Math.PI,Vu=2*gu,wBt=Vu+gu,qG=Number.POSITIVE_INFINITY,M9e=gu/180,mu=gu/2,oA=gu/4,fIe=gu*2/3,ox=Math.log10,R3=Math.sign;function N3(n,e,t){return Math.abs(n-e)r-o).pop(),e}function P3(n){return!isNaN(parseFloat(n))&&isFinite(n)}function bIe(n,e){let t=Math.round(n);return t-e<=n&&t+e>=n}function Mre(n,e,t){let i,r,o;for(i=0,r=n.length;ih&&g=Math.min(e,t)-i&&n<=Math.max(e,t)+i}function ZG(n,e,t){t=t||(s=>n[s]1;)o=r+i>>1,t(o)?r=o:i=o;return{lo:r,hi:i}}var QG=(n,e,t,i)=>ZG(n,t,i?r=>{let o=n[r][e];return on[r][e]ZG(n,t,i=>n[i][e]>=t);function CIe(n,e,t){let i=0,r=n.length;for(;ii&&n[r-1]>t;)r--;return i>0||r{let i="_onData"+$G(t),r=n[t];Object.defineProperty(n,t,{configurable:!0,enumerable:!1,value(...o){let s=r.apply(this,o);return n._chartjs.listeners.forEach(c=>{typeof c[i]=="function"&&c[i](...o)}),s}})})}function Pre(n,e){let t=n._chartjs;if(!t)return;let i=t.listeners,r=i.indexOf(e);r!==-1&&i.splice(r,1),!(i.length>0)&&(O9e.forEach(o=>{delete n[o]}),delete n._chartjs)}function EIe(n){let e=new Set(n);return e.size===n.length?n:Array.from(e)}var Fre=function(){return typeof window>"u"?function(n){return n()}:window.requestAnimationFrame}();function Lre(n,e){let t=[],i=!1;return function(...r){t=r,i||(i=!0,Fre.call(window,()=>{i=!1,n.apply(e,t)}))}}function IIe(n,e){let t;return function(...i){return e?(clearTimeout(t),t=setTimeout(n,e,i)):n.apply(this,i),e}}var TIe=n=>n==="start"?"left":n==="end"?"right":"center",Bre=(n,e,t)=>n==="start"?e:n==="end"?t:(e+t)/2;var Sre=n=>n===0||n===1,w9e=(n,e,t)=>-(Math.pow(2,10*(n-=1))*Math.sin((n-e)*Vu/t)),C9e=(n,e,t)=>Math.pow(2,-10*n)*Math.sin((n-e)*Vu/t)+1,SR={linear:n=>n,easeInQuad:n=>n*n,easeOutQuad:n=>-n*(n-2),easeInOutQuad:n=>(n/=.5)<1?.5*n*n:-.5*(--n*(n-2)-1),easeInCubic:n=>n*n*n,easeOutCubic:n=>(n-=1)*n*n+1,easeInOutCubic:n=>(n/=.5)<1?.5*n*n*n:.5*((n-=2)*n*n+2),easeInQuart:n=>n*n*n*n,easeOutQuart:n=>-((n-=1)*n*n*n-1),easeInOutQuart:n=>(n/=.5)<1?.5*n*n*n*n:-.5*((n-=2)*n*n*n-2),easeInQuint:n=>n*n*n*n*n,easeOutQuint:n=>(n-=1)*n*n*n*n+1,easeInOutQuint:n=>(n/=.5)<1?.5*n*n*n*n*n:.5*((n-=2)*n*n*n*n+2),easeInSine:n=>-Math.cos(n*mu)+1,easeOutSine:n=>Math.sin(n*mu),easeInOutSine:n=>-.5*(Math.cos(gu*n)-1),easeInExpo:n=>n===0?0:Math.pow(2,10*(n-1)),easeOutExpo:n=>n===1?1:-Math.pow(2,-10*n)+1,easeInOutExpo:n=>Sre(n)?n:n<.5?.5*Math.pow(2,10*(n*2-1)):.5*(-Math.pow(2,-10*(n*2-1))+2),easeInCirc:n=>n>=1?n:-(Math.sqrt(1-n*n)-1),easeOutCirc:n=>Math.sqrt(1-(n-=1)*n),easeInOutCirc:n=>(n/=.5)<1?-.5*(Math.sqrt(1-n*n)-1):.5*(Math.sqrt(1-(n-=2)*n)+1),easeInElastic:n=>Sre(n)?n:w9e(n,.075,.3),easeOutElastic:n=>Sre(n)?n:C9e(n,.075,.3),easeInOutElastic(n){return Sre(n)?n:n<.5?.5*w9e(n*2,.1125,.45):.5+.5*C9e(n*2-1,.1125,.45)},easeInBack(n){return n*n*((1.70158+1)*n-1.70158)},easeOutBack(n){return(n-=1)*n*((1.70158+1)*n+1.70158)+1},easeInOutBack(n){let e=1.70158;return(n/=.5)<1?.5*(n*n*(((e*=1.525)+1)*n-e)):.5*((n-=2)*n*(((e*=1.525)+1)*n+e)+2)},easeInBounce:n=>1-SR.easeOutBounce(1-n),easeOutBounce(n){return n<1/2.75?7.5625*n*n:n<2/2.75?7.5625*(n-=1.5/2.75)*n+.75:n<2.5/2.75?7.5625*(n-=2.25/2.75)*n+.9375:7.5625*(n-=2.625/2.75)*n+.984375},easeInOutBounce:n=>n<.5?SR.easeInBounce(n*2)*.5:SR.easeOutBounce(n*2-1)*.5+.5};function AIe(n){if(n&&typeof n=="object"){let e=n.toString();return e==="[object CanvasPattern]"||e==="[object CanvasGradient]"}return!1}function zre(n){return AIe(n)?n:new jG(n)}function Ire(n){return AIe(n)?n:new jG(n).saturate(.5).darken(.1).hexString()}var CBt=["x","y","borderWidth","radius","tension"],SBt=["color","borderColor","backgroundColor"];function EBt(n){n.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),n.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:e=>e!=="onProgress"&&e!=="onComplete"&&e!=="fn"}),n.set("animations",{colors:{type:"color",properties:SBt},numbers:{type:"number",properties:CBt}}),n.describe("animations",{_fallback:"animation"}),n.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:e=>e|0}}}})}function IBt(n){n.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}var S9e=new Map;function TBt(n,e){e=e||{};let t=n+JSON.stringify(e),i=S9e.get(t);return i||(i=new Intl.NumberFormat(n,e),S9e.set(t,i)),i}function XG(n,e,t){return TBt(e,t).format(n)}var R9e={values(n){return Bc(n)?n:""+n},numeric(n,e,t){if(n===0)return"0";let i=this.chart.options.locale,r,o=n;if(t.length>1){let g=Math.max(Math.abs(t[0].value),Math.abs(t[t.length-1].value));(g<1e-4||g>1e15)&&(r="scientific"),o=ABt(n,t)}let s=ox(Math.abs(o)),c=isNaN(s)?1:Math.max(Math.min(-1*Math.floor(s),20),0),h={notation:r,minimumFractionDigits:c,maximumFractionDigits:c};return Object.assign(h,this.options.ticks.format),XG(n,i,h)},logarithmic(n,e,t){if(n===0)return"0";let i=t[e].significand||n/Math.pow(10,Math.floor(ox(n)));return[1,2,3,5,10,15].includes(i)||e>.8*t.length?R9e.numeric.call(this,n,e,t):""}};function ABt(n,e){let t=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;return Math.abs(t)>=1&&n!==Math.floor(n)&&(t=n-Math.floor(n)),t}var JG={formatters:R9e};function DBt(n){n.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(e,t)=>t.lineWidth,tickColor:(e,t)=>t.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:JG.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),n.route("scale.ticks","color","","color"),n.route("scale.grid","color","","borderColor"),n.route("scale.border","color","","borderColor"),n.route("scale.title","color","","color"),n.describe("scale",{_fallback:!1,_scriptable:e=>!e.startsWith("before")&&!e.startsWith("after")&&e!=="callback"&&e!=="parser",_indexable:e=>e!=="borderDash"&&e!=="tickBorderDash"&&e!=="dash"}),n.describe("scales",{_fallback:"scale"}),n.describe("scale.ticks",{_scriptable:e=>e!=="backdropPadding"&&e!=="callback",_indexable:e=>e!=="backdropPadding"})}var aA=Object.create(null),Vre=Object.create(null);function GG(n,e){if(!e)return n;let t=e.split(".");for(let i=0,r=t.length;ii.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(i,r)=>Ire(r.backgroundColor),this.hoverBorderColor=(i,r)=>Ire(r.borderColor),this.hoverColor=(i,r)=>Ire(r.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(e),this.apply(t)}set(e,t){return pIe(this,e,t)}get(e){return GG(this,e)}describe(e,t){return pIe(Vre,e,t)}override(e,t){return pIe(aA,e,t)}route(e,t,i,r){let o=GG(this,e),s=GG(this,i),c="_"+t;Object.defineProperties(o,{[c]:{value:o[t],writable:!0},[t]:{enumerable:!0,get(){let h=this[c],g=s[r];return xa(h)?Object.assign({},g,h):tc(h,g)},set(h){this[c]=h}}})}apply(e){e.forEach(t=>t(this))}},kc=new mIe({_scriptable:n=>!n.startsWith("on"),_indexable:n=>n!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[EBt,IBt,DBt]);function N9e(n){return!n||Gl(n.size)||Gl(n.family)?null:(n.style?n.style+" ":"")+(n.weight?n.weight+" ":"")+n.size+"px "+n.family}function k3(n,e,t,i,r){let o=e[r];return o||(o=e[r]=n.measureText(r).width,t.push(r)),o>i&&(i=o),i}function DIe(n,e,t,i){i=i||{};let r=i.data=i.data||{},o=i.garbageCollect=i.garbageCollect||[];i.font!==e&&(r=i.data={},o=i.garbageCollect=[],i.font=e),n.save(),n.font=e;let s=0,c=t.length,h,g,x,C,A;for(h=0;ht.length){for(h=0;h0&&n.stroke()}}function xC(n,e,t){return t=t||.5,!e||n&&n.x>e.left-t&&n.xe.top-t&&n.y0&&o.strokeColor!=="",h,g;for(n.save(),n.font=r.string,kBt(n,o),h=0;h+n||0;function e9(n,e){let t={},i=xa(e),r=i?Object.keys(e):e,o=xa(n)?i?s=>tc(n[s],n[e[s]]):s=>n[s]:()=>n;for(let s of r)t[s]=PBt(o(s));return t}function Yre(n){return e9(n,{top:"y",right:"x",bottom:"y",left:"x"})}function qre(n){return e9(n,["topLeft","topRight","bottomLeft","bottomRight"])}function ag(n){let e=Yre(n);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function ax(n,e){n=n||{},e=e||kc.font;let t=tc(n.size,e.size);typeof t=="string"&&(t=parseInt(t,10));let i=tc(n.style,e.style);i&&!(""+i).match(NBt)&&(console.warn('Invalid font style specified: "'+i+'"'),i=void 0);let r={family:tc(n.family,e.family),lineHeight:P9e(tc(n.lineHeight,e.lineHeight),t),size:t,style:i,weight:tc(n.weight,e.weight),string:""};return r.string=N9e(r),r}function Yl(n,e,t,i){let r=!0,o,s,c;for(o=0,s=n.length;ot&&c===0?0:c+h;return{min:s(i,-Math.abs(o)),max:s(r,o)}}function lA(n,e){return Object.assign(Object.create(n),e)}function t9(n,e=[""],t,i,r=()=>n[0]){let o=t||n;typeof i>"u"&&(i=B9e("_fallback",n));let s={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:n,_rootScopes:o,_fallback:i,_getTarget:r,override:c=>t9([c,...n],e,o,i)};return new Proxy(s,{deleteProperty(c,h){return delete c[h],delete c._keys,delete n[0][h],!0},get(c,h){return F9e(c,h,()=>HBt(h,e,n,c))},getOwnPropertyDescriptor(c,h){return Reflect.getOwnPropertyDescriptor(c._scopes[0],h)},getPrototypeOf(){return Reflect.getPrototypeOf(n[0])},has(c,h){return I9e(c).includes(h)},ownKeys(c){return I9e(c)},set(c,h,g){let x=c._storage||(c._storage=r());return c[h]=x[h]=g,delete c._keys,!0}})}function sA(n,e,t,i){let r={_cacheable:!1,_proxy:n,_context:e,_subProxy:t,_stack:new Set,_descriptors:$re(n,i),setContext:o=>sA(n,o,t,i),override:o=>sA(n.override(o),e,t,i)};return new Proxy(r,{deleteProperty(o,s){return delete o[s],delete n[s],!0},get(o,s,c){return F9e(o,s,()=>LBt(o,s,c))},getOwnPropertyDescriptor(o,s){return o._descriptors.allKeys?Reflect.has(n,s)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(n,s)},getPrototypeOf(){return Reflect.getPrototypeOf(n)},has(o,s){return Reflect.has(n,s)},ownKeys(){return Reflect.ownKeys(n)},set(o,s,c){return n[s]=c,delete o[s],!0}})}function $re(n,e={scriptable:!0,indexable:!0}){let{_scriptable:t=e.scriptable,_indexable:i=e.indexable,_allKeys:r=e.allKeys}=n;return{allKeys:r,scriptable:t,indexable:i,isScriptable:rx(t)?t:()=>t,isIndexable:rx(i)?i:()=>i}}var FBt=(n,e)=>n?n+$G(e):e,RIe=(n,e)=>xa(e)&&n!=="adapters"&&(Object.getPrototypeOf(e)===null||e.constructor===Object);function F9e(n,e,t){if(Object.prototype.hasOwnProperty.call(n,e)||e==="constructor")return n[e];let i=t();return n[e]=i,i}function LBt(n,e,t){let{_proxy:i,_context:r,_subProxy:o,_descriptors:s}=n,c=i[e];return rx(c)&&s.isScriptable(e)&&(c=BBt(e,c,n,t)),Bc(c)&&c.length&&(c=zBt(e,c,n,s.isIndexable)),RIe(e,c)&&(c=sA(c,r,o&&o[e],s)),c}function BBt(n,e,t,i){let{_proxy:r,_context:o,_subProxy:s,_stack:c}=t;if(c.has(n))throw new Error("Recursion detected: "+Array.from(c).join("->")+"->"+n);c.add(n);let h=e(o,s||i);return c.delete(n),RIe(n,h)&&(h=NIe(r._scopes,r,n,h)),h}function zBt(n,e,t,i){let{_proxy:r,_context:o,_subProxy:s,_descriptors:c}=t;if(typeof o.index<"u"&&i(n))return e[o.index%e.length];if(xa(e[0])){let h=e,g=r._scopes.filter(x=>x!==h);e=[];for(let x of h){let C=NIe(g,r,n,x);e.push(sA(C,o,s&&s[n],c))}}return e}function L9e(n,e,t){return rx(n)?n(e,t):n}var VBt=(n,e)=>n===!0?e:typeof n=="string"?M3(e,n):void 0;function UBt(n,e,t,i,r){for(let o of e){let s=VBt(t,o);if(s){n.add(s);let c=L9e(s._fallback,t,r);if(typeof c<"u"&&c!==t&&c!==i)return c}else if(s===!1&&typeof i<"u"&&t!==i)return null}return!1}function NIe(n,e,t,i){let r=e._rootScopes,o=L9e(e._fallback,t,i),s=[...n,...r],c=new Set;c.add(i);let h=E9e(c,s,t,o||t,i);return h===null||typeof o<"u"&&o!==t&&(h=E9e(c,s,o,h,i),h===null)?!1:t9(Array.from(c),[""],r,o,()=>jBt(e,t,i))}function E9e(n,e,t,i,r){for(;t;)t=UBt(n,e,t,i,r);return t}function jBt(n,e,t){let i=n._getTarget();e in i||(i[e]={});let r=i[e];return Bc(r)&&xa(t)?t:r||{}}function HBt(n,e,t,i){let r;for(let o of e)if(r=B9e(FBt(o,n),t),typeof r<"u")return RIe(n,r)?NIe(t,i,n,r):r}function B9e(n,e){for(let t of e){if(!t)continue;let i=t[n];if(typeof i<"u")return i}}function I9e(n){let e=n._keys;return e||(e=n._keys=GBt(n._scopes)),e}function GBt(n){let e=new Set;for(let t of n)for(let i of Object.keys(t).filter(r=>!r.startsWith("_")))e.add(i);return Array.from(e)}var UJi=Number.EPSILON||1e-14;function i9(){return typeof window<"u"&&typeof document<"u"}function n9(n){let e=n.parentNode;return e&&e.toString()==="[object ShadowRoot]"&&(e=e.host),e}function Tre(n,e,t){let i;return typeof n=="string"?(i=parseInt(n,10),n.indexOf("%")!==-1&&(i=i/100*e.parentNode[t])):i=n,i}var Kre=n=>n.ownerDocument.defaultView.getComputedStyle(n,null);function z9e(n,e){return Kre(n).getPropertyValue(e)}var YBt=["top","right","bottom","left"];function ER(n,e,t){let i={};t=t?"-"+t:"";for(let r=0;r<4;r++){let o=YBt[r];i[o]=parseFloat(n[e+"-"+o+t])||0}return i.width=i.left+i.right,i.height=i.top+i.bottom,i}var qBt=(n,e,t)=>(n>0||e>0)&&(!t||!t.shadowRoot);function $Bt(n,e){let t=n.touches,i=t&&t.length?t[0]:n,{offsetX:r,offsetY:o}=i,s=!1,c,h;if(qBt(r,o,n.target))c=r,h=o;else{let g=e.getBoundingClientRect();c=i.clientX-g.left,h=i.clientY-g.top,s=!0}return{x:c,y:h,box:s}}function wC(n,e){if("native"in n)return n;let{canvas:t,currentDevicePixelRatio:i}=e,r=Kre(t),o=r.boxSizing==="border-box",s=ER(r,"padding"),c=ER(r,"border","width"),{x:h,y:g,box:x}=$Bt(n,t),C=s.left+(x&&c.left),A=s.top+(x&&c.top),{width:k,height:O}=e;return o&&(k-=s.width+c.width,O-=s.height+c.height),{x:Math.round((h-C)/k*t.width/i),y:Math.round((g-A)/O*t.height/i)}}function KBt(n,e,t){let i,r;if(e===void 0||t===void 0){let o=n&&n9(n);if(!o)e=n.clientWidth,t=n.clientHeight;else{let s=o.getBoundingClientRect(),c=Kre(o),h=ER(c,"border","width"),g=ER(c,"padding");e=s.width-g.width-h.width,t=s.height-g.height-h.height,i=Tre(c.maxWidth,o,"clientWidth"),r=Tre(c.maxHeight,o,"clientHeight")}}return{width:e,height:t,maxWidth:i||qG,maxHeight:r||qG}}var Ere=n=>Math.round(n*10)/10;function PIe(n,e,t,i){let r=Kre(n),o=ER(r,"margin"),s=Tre(r.maxWidth,n,"clientWidth")||qG,c=Tre(r.maxHeight,n,"clientHeight")||qG,h=KBt(n,e,t),{width:g,height:x}=h;if(r.boxSizing==="content-box"){let A=ER(r,"border","width"),k=ER(r,"padding");g-=k.width+A.width,x-=k.height+A.height}return g=Math.max(0,g-o.width),x=Math.max(0,i?g/i:x-o.height),g=Ere(Math.min(g,s,h.maxWidth)),x=Ere(Math.min(x,c,h.maxHeight)),g&&!x&&(x=Ere(g/2)),(e!==void 0||t!==void 0)&&i&&h.height&&x>h.height&&(x=h.height,g=Ere(Math.floor(x*i))),{width:g,height:x}}function Wre(n,e,t){let i=e||1,r=Math.floor(n.height*i),o=Math.floor(n.width*i);n.height=Math.floor(n.height),n.width=Math.floor(n.width);let s=n.canvas;return s.style&&(t||!s.style.height&&!s.style.width)&&(s.style.height=`${n.height}px`,s.style.width=`${n.width}px`),n.currentDevicePixelRatio!==i||s.height!==r||s.width!==o?(n.currentDevicePixelRatio=i,s.height=r,s.width=o,n.ctx.setTransform(i,0,0,i,0,0),!0):!1}var FIe=function(){let n=!1;try{let e={get passive(){return n=!0,!1}};i9()&&(window.addEventListener("test",null,e),window.removeEventListener("test",null,e))}catch{}return n}();function Zre(n,e){let t=z9e(n,e),i=t&&t.match(/^(\d+)(\.\d+)?px$/);return i?+i[1]:void 0}var GIe=class{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(e,t,i,r){let o=t.listeners[r],s=t.duration;o.forEach(c=>c({chart:e,initial:t.initial,numSteps:s,currentStep:Math.min(i-t.start,s)}))}_refresh(){this._request||(this._running=!0,this._request=Fre.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(e=Date.now()){let t=0;this._charts.forEach((i,r)=>{if(!i.running||!i.items.length)return;let o=i.items,s=o.length-1,c=!1,h;for(;s>=0;--s)h=o[s],h._active?(h._total>i.duration&&(i.duration=h._total),h.tick(e),c=!0):(o[s]=o[o.length-1],o.pop());c&&(r.draw(),this._notify(r,i,e,"progress")),o.length||(i.running=!1,this._notify(r,i,e,"complete"),i.initial=!1),t+=o.length}),this._lastDate=e,t===0&&(this._running=!1)}_getAnims(e){let t=this._charts,i=t.get(e);return i||(i={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},t.set(e,i)),i}listen(e,t,i){this._getAnims(e).listeners[t].push(i)}add(e,t){!t||!t.length||this._getAnims(e).items.push(...t)}has(e){return this._getAnims(e).items.length>0}start(e){let t=this._charts.get(e);t&&(t.running=!0,t.start=Date.now(),t.duration=t.items.reduce((i,r)=>Math.max(i,r._duration),0),this._refresh())}running(e){if(!this._running)return!1;let t=this._charts.get(e);return!(!t||!t.running||!t.items.length)}stop(e){let t=this._charts.get(e);if(!t||!t.items.length)return;let i=t.items,r=i.length-1;for(;r>=0;--r)i[r].cancel();t.items=[],this._notify(e,t,Date.now(),"complete")}remove(e){return this._charts.delete(e)}},CC=new GIe,V9e="transparent",f3t={boolean(n,e,t){return t>.5?e:n},color(n,e,t){let i=zre(n||V9e),r=i.valid&&zre(e||V9e);return r&&r.valid?r.mix(i,t).hexString():e},number(n,e,t){return n+(e-n)*t}},YIe=class{constructor(e,t,i,r){let o=t[i];r=Yl([e.to,r,o,e.from]);let s=Yl([e.from,o,r]);this._active=!0,this._fn=e.fn||f3t[e.type||typeof s],this._easing=SR[e.easing]||SR.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=t,this._prop=i,this._from=s,this._to=r,this._promises=void 0}active(){return this._active}update(e,t,i){if(this._active){this._notify(!1);let r=this._target[this._prop],o=i-this._start,s=this._duration-o;this._start=i,this._duration=Math.floor(Math.max(s,e.duration)),this._total+=o,this._loop=!!e.loop,this._to=Yl([e.to,t,r,e.from]),this._from=Yl([e.from,r,t])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(e){let t=e-this._start,i=this._duration,r=this._prop,o=this._from,s=this._loop,c=this._to,h;if(this._active=o!==c&&(s||t1?2-h:h,h=this._easing(Math.min(1,Math.max(0,h))),this._target[r]=this._fn(o,c,h)}wait(){let e=this._promises||(this._promises=[]);return new Promise((t,i)=>{e.push({res:t,rej:i})})}_notify(e){let t=e?"res":"rej",i=this._promises||[];for(let r=0;r{let o=e[r];if(!xa(o))return;let s={};for(let c of t)s[c]=o[c];(Bc(o.properties)&&o.properties||[r]).forEach(c=>{(c===r||!i.has(c))&&i.set(c,s)})})}_animateOptions(e,t){let i=t.options,r=g3t(e,i);if(!r)return[];let o=this._createAnimations(r,i);return i.$shared&&m3t(e.options.$animations,i).then(()=>{e.options=i},()=>{}),o}_createAnimations(e,t){let i=this._properties,r=[],o=e.$animations||(e.$animations={}),s=Object.keys(t),c=Date.now(),h;for(h=s.length-1;h>=0;--h){let g=s[h];if(g.charAt(0)==="$")continue;if(g==="options"){r.push(...this._animateOptions(e,t));continue}let x=t[g],C=o[g],A=i.get(g);if(C)if(A&&C.active()){C.update(A,x,c);continue}else C.cancel();if(!A||!A.duration){e[g]=x;continue}o[g]=C=new YIe(A,e,g,x),r.push(C)}return r}update(e,t){if(this._properties.size===0){Object.assign(e,t);return}let i=this._createAnimations(e,t);if(i.length)return CC.add(this._chart,i),!0}};function m3t(n,e){let t=[],i=Object.keys(e);for(let r=0;r0||!t&&o<0)return r.index}return null}function Y9e(n,e){let{chart:t,_cachedMeta:i}=n,r=t._stacks||(t._stacks={}),{iScale:o,vScale:s,index:c}=i,h=o.axis,g=s.axis,x=b3t(o,s,i),C=e.length,A;for(let k=0;kt[i].axis===e).shift()}function C3t(n,e){return lA(n,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}function S3t(n,e,t){return lA(n,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:t,index:e,mode:"default",type:"data"})}function r9(n,e){let t=n.controller.index,i=n.vScale&&n.vScale.axis;if(i){e=e||n._parsed;for(let r of e){let o=r._stacks;if(!o||o[i]===void 0||o[i][t]===void 0)return;delete o[i][t],o[i]._visualValues!==void 0&&o[i]._visualValues[t]!==void 0&&delete o[i]._visualValues[t]}}}var BIe=n=>n==="reset"||n==="none",q9e=(n,e)=>e?n:Object.assign({},n),E3t=(n,e,t)=>n&&!e.hidden&&e._stacked&&{keys:T7e(t,!0),values:null},I3t=(()=>{class n{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(t,i){this.chart=t,this._ctx=t.ctx,this.index=i,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){let t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=H9e(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&r9(this._cachedMeta),this.index=t}linkScales(){let t=this.chart,i=this._cachedMeta,r=this.getDataset(),o=(A,k,O,F)=>A==="x"?k:A==="r"?F:O,s=i.xAxisID=tc(r.xAxisID,LIe(t,"x")),c=i.yAxisID=tc(r.yAxisID,LIe(t,"y")),h=i.rAxisID=tc(r.rAxisID,LIe(t,"r")),g=i.indexAxis,x=i.iAxisID=o(g,s,c,h),C=i.vAxisID=o(g,c,s,h);i.xScale=this.getScaleForId(s),i.yScale=this.getScaleForId(c),i.rScale=this.getScaleForId(h),i.iScale=this.getScaleForId(x),i.vScale=this.getScaleForId(C)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){let i=this._cachedMeta;return t===i.iScale?i.vScale:i.iScale}reset(){this._update("reset")}_destroy(){let t=this._cachedMeta;this._data&&Pre(this._data,this),t._stacked&&r9(t)}_dataCheck(){let t=this.getDataset(),i=t.data||(t.data=[]),r=this._data;if(xa(i)){let o=this._cachedMeta;this._data=y3t(i,o)}else if(r!==i){if(r){Pre(r,this);let o=this._cachedMeta;r9(o),o._parsed=[]}i&&Object.isExtensible(i)&&SIe(i,this),this._syncList=[],this._data=i}}addElements(){let t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){let i=this._cachedMeta,r=this.getDataset(),o=!1;this._dataCheck();let s=i._stacked;i._stacked=H9e(i.vScale,i),i.stack!==r.stack&&(o=!0,r9(i),i.stack=r.stack),this._resyncElements(t),(o||s!==i._stacked)&&Y9e(this,i._parsed)}configure(){let t=this.chart.config,i=t.datasetScopeKeys(this._type),r=t.getOptionScopes(this.getDataset(),i,!0);this.options=t.createResolver(r,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,i){let{_cachedMeta:r,_data:o}=this,{iScale:s,_stacked:c}=r,h=s.axis,g=t===0&&i===o.length?!0:r._sorted,x=t>0&&r._parsed[t-1],C,A,k;if(this._parsing===!1)r._parsed=o,r._sorted=!0,k=o;else{Bc(o[t])?k=this.parseArrayData(r,o,t,i):xa(o[t])?k=this.parseObjectData(r,o,t,i):k=this.parsePrimitiveData(r,o,t,i);let O=()=>A[h]===null||x&&A[h]L||A=0;--k)if(!F()){this.updateRangeFromParsed(x,t,O,g);break}}return x}getAllParsedValues(t){let i=this._cachedMeta._parsed,r=[],o,s,c;for(o=0,s=i.length;o=0&&tthis.getContext(r,o,i),L=x.resolveNamedOptions(k,O,F,A);return L.$shared&&(L.$shared=g,s[c]=Object.freeze(q9e(L,g))),L}_resolveAnimations(t,i,r){let o=this.chart,s=this._cachedDataOpts,c=`animation-${i}`,h=s[c];if(h)return h;let g;if(o.options.animation!==!1){let C=this.chart.config,A=C.datasetAnimationScopeKeys(this._type,i),k=C.getOptionScopes(this.getDataset(),A);g=C.createResolver(k,this.getContext(t,r,i))}let x=new qIe(o,g&&g.animations);return g&&g._cacheable&&(s[c]=Object.freeze(x)),x}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,i){return!i||BIe(t)||this.chart._animationsDisabled}_getSharedOptions(t,i){let r=this.resolveDataElementOptions(t,i),o=this._sharedOptions,s=this.getSharedOptions(r),c=this.includeOptions(i,s)||s!==o;return this.updateSharedOptions(s,i,r),{sharedOptions:s,includeOptions:c}}updateElement(t,i,r,o){BIe(o)?Object.assign(t,r):this._resolveAnimations(i,o).update(t,r)}updateSharedOptions(t,i,r){t&&!BIe(i)&&this._resolveAnimations(void 0,i).update(t,r)}_setStyle(t,i,r,o){t.active=o;let s=this.getStyle(i,o);this._resolveAnimations(i,r,o).update(t,{options:!o&&this.getSharedOptions(s)||s})}removeHoverStyle(t,i,r){this._setStyle(t,r,"active",!1)}setHoverStyle(t,i,r){this._setStyle(t,r,"active",!0)}_removeDatasetHoverStyle(){let t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){let t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){let i=this._data,r=this._cachedMeta.data;for(let[h,g,x]of this._syncList)this[h](g,x);this._syncList=[];let o=r.length,s=i.length,c=Math.min(s,o);c&&this.parse(0,c),s>o?this._insertElements(o,s-o,t):s{for(x.length+=i,h=x.length-1;h>=c;h--)x[h]=x[h-i]};for(g(s),h=t;h{h[s](e[t],r)&&(o.push({element:h,datasetIndex:g,index:x}),c=c||h.inRange(e.x,e.y,r))}),i&&!c?[]:o}var O3t={evaluateInteractionItems:h9,modes:{index(n,e,t,i){let r=wC(e,n),o=t.axis||"x",s=t.includeInvisible||!1,c=t.intersect?zIe(n,r,o,i,s):VIe(n,r,o,!1,i,s),h=[];return c.length?(n.getSortedVisibleDatasetMetas().forEach(g=>{let x=c[0].index,C=g.data[x];C&&!C.skip&&h.push({element:C,datasetIndex:g.index,index:x})}),h):[]},dataset(n,e,t,i){let r=wC(e,n),o=t.axis||"xy",s=t.includeInvisible||!1,c=t.intersect?zIe(n,r,o,i,s):VIe(n,r,o,!1,i,s);if(c.length>0){let h=c[0].datasetIndex,g=n.getDatasetMeta(h).data;c=[];for(let x=0;xt.pos===e)}function K9e(n,e){return n.filter(t=>A7e.indexOf(t.pos)===-1&&t.box.axis===e)}function s9(n,e){return n.sort((t,i)=>{let r=e?i:t,o=e?t:i;return r.weight===o.weight?r.index-o.index:r.weight-o.weight})}function R3t(n){let e=[],t,i,r,o,s,c;for(t=0,i=(n||[]).length;tg.box.fullSize),!0),i=s9(o9(e,"left"),!0),r=s9(o9(e,"right")),o=s9(o9(e,"top"),!0),s=s9(o9(e,"bottom")),c=K9e(e,"x"),h=K9e(e,"y");return{fullSize:t,leftAndTop:i.concat(o),rightAndBottom:r.concat(h).concat(s).concat(c),chartArea:o9(e,"chartArea"),vertical:i.concat(r).concat(h),horizontal:o.concat(s).concat(c)}}function W9e(n,e,t,i){return Math.max(n[t],e[t])+Math.max(n[i],e[i])}function D7e(n,e){n.top=Math.max(n.top,e.top),n.left=Math.max(n.left,e.left),n.bottom=Math.max(n.bottom,e.bottom),n.right=Math.max(n.right,e.right)}function L3t(n,e,t,i){let{pos:r,box:o}=t,s=n.maxPadding;if(!xa(r)){t.size&&(n[r]-=t.size);let C=i[t.stack]||{size:0,count:1};C.size=Math.max(C.size,t.horizontal?o.height:o.width),t.size=C.size/C.count,n[r]+=t.size}o.getPadding&&D7e(s,o.getPadding());let c=Math.max(0,e.outerWidth-W9e(s,n,"left","right")),h=Math.max(0,e.outerHeight-W9e(s,n,"top","bottom")),g=c!==n.w,x=h!==n.h;return n.w=c,n.h=h,t.horizontal?{same:g,other:x}:{same:x,other:g}}function B3t(n){let e=n.maxPadding;function t(i){let r=Math.max(e[i]-n[i],0);return n[i]+=r,r}n.y+=t("top"),n.x+=t("left"),t("right"),t("bottom")}function z3t(n,e){let t=e.maxPadding;function i(r){let o={left:0,top:0,right:0,bottom:0};return r.forEach(s=>{o[s]=Math.max(e[s],t[s])}),o}return i(n?["left","right"]:["top","bottom"])}function c9(n,e,t,i){let r=[],o,s,c,h,g,x;for(o=0,s=n.length,g=0;o{typeof F.beforeLayout=="function"&&F.beforeLayout()});let x=h.reduce((F,L)=>L.box.options&&L.box.options.display===!1?F:F+1,0)||1,C=Object.freeze({outerWidth:e,outerHeight:t,padding:r,availableWidth:o,availableHeight:s,vBoxMaxWidth:o/2/x,hBoxMaxHeight:s/2}),A=Object.assign({},r);D7e(A,ag(i));let k=Object.assign({maxPadding:A,w:o,h:s,x:r.left,y:r.top},r),O=P3t(h.concat(g),C);c9(c.fullSize,k,C,O),c9(h,k,C,O),c9(g,k,C,O)&&c9(h,k,C,O),B3t(k),Z9e(c.leftAndTop,k,C,O),k.x+=k.w,k.y+=k.h,Z9e(c.rightAndBottom,k,C,O),n.chartArea={left:k.left,top:k.top,right:k.left+k.w,bottom:k.top+k.h,height:k.h,width:k.w},gd(c.chartArea,F=>{let L=F.box;Object.assign(L,n.chartArea),L.update(k.w,k.h,{left:0,top:0,right:0,bottom:0})})}},ooe=class{acquireContext(e,t){}releaseContext(e){return!1}addEventListener(e,t,i){}removeEventListener(e,t,i){}getDevicePixelRatio(){return 1}getMaximumSize(e,t,i,r){return t=Math.max(0,t||e.width),i=i||e.height,{width:t,height:Math.max(0,r?Math.floor(t/r):i)}}isAttached(e){return!0}updateConfig(e){}},KIe=class extends ooe{acquireContext(e){return e&&e.getContext&&e.getContext("2d")||null}updateConfig(e){e.options.animation=!1}},noe="$chartjs",V3t={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Q9e=n=>n===null||n==="";function U3t(n,e){let t=n.style,i=n.getAttribute("height"),r=n.getAttribute("width");if(n[noe]={initial:{height:i,width:r,style:{display:t.display,height:t.height,width:t.width}}},t.display=t.display||"block",t.boxSizing=t.boxSizing||"border-box",Q9e(r)){let o=Zre(n,"width");o!==void 0&&(n.width=o)}if(Q9e(i))if(n.style.height==="")n.height=n.width/(e||2);else{let o=Zre(n,"height");o!==void 0&&(n.height=o)}return n}var k7e=FIe?{passive:!0}:!1;function j3t(n,e,t){n&&n.addEventListener(e,t,k7e)}function H3t(n,e,t){n&&n.canvas&&n.canvas.removeEventListener(e,t,k7e)}function G3t(n,e){let t=V3t[n.type]||n.type,{x:i,y:r}=wC(n,e);return{type:t,chart:e,native:n,x:i!==void 0?i:null,y:r!==void 0?r:null}}function soe(n,e){for(let t of n)if(t===e||t.contains(e))return!0}function Y3t(n,e,t){let i=n.canvas,r=new MutationObserver(o=>{let s=!1;for(let c of o)s=s||soe(c.addedNodes,i),s=s&&!soe(c.removedNodes,i);s&&t()});return r.observe(document,{childList:!0,subtree:!0}),r}function q3t(n,e,t){let i=n.canvas,r=new MutationObserver(o=>{let s=!1;for(let c of o)s=s||soe(c.removedNodes,i),s=s&&!soe(c.addedNodes,i);s&&t()});return r.observe(document,{childList:!0,subtree:!0}),r}var u9=new Map,X9e=0;function M7e(){let n=window.devicePixelRatio;n!==X9e&&(X9e=n,u9.forEach((e,t)=>{t.currentDevicePixelRatio!==n&&e()}))}function $3t(n,e){u9.size||window.addEventListener("resize",M7e),u9.set(n,e)}function K3t(n){u9.delete(n),u9.size||window.removeEventListener("resize",M7e)}function W3t(n,e,t){let i=n.canvas,r=i&&n9(i);if(!r)return;let o=Lre((c,h)=>{let g=r.clientWidth;t(c,h),g{let h=c[0],g=h.contentRect.width,x=h.contentRect.height;g===0&&x===0||o(g,x)});return s.observe(r),$3t(n,o),s}function UIe(n,e,t){t&&t.disconnect(),e==="resize"&&K3t(n)}function Z3t(n,e,t){let i=n.canvas,r=Lre(o=>{n.ctx!==null&&t(G3t(o,n))},n);return j3t(i,e,r),r}var WIe=class extends ooe{acquireContext(e,t){let i=e&&e.getContext&&e.getContext("2d");return i&&i.canvas===e?(U3t(e,t),i):null}releaseContext(e){let t=e.canvas;if(!t[noe])return!1;let i=t[noe].initial;["height","width"].forEach(o=>{let s=i[o];Gl(s)?t.removeAttribute(o):t.setAttribute(o,s)});let r=i.style||{};return Object.keys(r).forEach(o=>{t.style[o]=r[o]}),t.width=t.width,delete t[noe],!0}addEventListener(e,t,i){this.removeEventListener(e,t);let r=e.$proxies||(e.$proxies={}),s={attach:Y3t,detach:q3t,resize:W3t}[t]||Z3t;r[t]=s(e,t,i)}removeEventListener(e,t){let i=e.$proxies||(e.$proxies={}),r=i[t];if(!r)return;({attach:UIe,detach:UIe,resize:UIe}[t]||H3t)(e,t,r),i[t]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,t,i,r){return PIe(e,t,i,r)}isAttached(e){let t=e&&n9(e);return!!(t&&t.isConnected)}};function Q3t(n){return!i9()||typeof OffscreenCanvas<"u"&&n instanceof OffscreenCanvas?KIe:WIe}var DR=class{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(e){let{x:t,y:i}=this.getProps(["x","y"],e);return{x:t,y:i}}hasValue(){return P3(this.x)&&P3(this.y)}getProps(e,t){let i=this.$animations;if(!t||!i)return this;let r={};return e.forEach(o=>{r[o]=i[o]&&i[o].active()?i[o]._to:this[o]}),r}};function X3t(n,e){let t=n.options.ticks,i=J3t(n),r=Math.min(t.maxTicksLimit||i,i),o=t.major.enabled?tzt(e):[],s=o.length,c=o[0],h=o[s-1],g=[];if(s>r)return izt(e,g,o,s/r),g;let x=ezt(o,e,r);if(s>0){let C,A,k=s>1?Math.round((h-c)/(s-1)):null;for(Jre(e,g,x,Gl(k)?0:c-k,c),C=0,A=s-1;Cr)return h}return Math.max(r,1)}function tzt(n){let e=[],t,i;for(t=0,i=n.length;tn==="left"?"right":n==="right"?"left":n,J9e=(n,e,t)=>e==="top"||e==="left"?n[e]+t:n[e]-t,e7e=(n,e)=>Math.min(e||n,n);function t7e(n,e){let t=[],i=n.length/e,r=n.length,o=0;for(;os+c)))return h}function szt(n,e){gd(n,t=>{let i=t.gc,r=i.length/2,o;if(r>e){for(o=0;oi?i:t,i=r&&t>i?t:i,{min:Zp(t,Zp(i,t)),max:Zp(i,Zp(t,i))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){let e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]}getLabelItems(e=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(e))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){ic(this.options.beforeUpdate,[this])}update(e,t,i){let{beginAtZero:r,grace:o,ticks:s}=this.options,c=s.sampleSize;this.beforeUpdate(),this.maxWidth=e,this.maxHeight=t,this._margins=i=Object.assign({left:0,right:0,top:0,bottom:0},i),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+i.left+i.right:this.height+i.top+i.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=OIe(this,o,r),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();let h=c=o||i<=1||!this.isHorizontal()){this.labelRotation=r;return}let x=this._getLabelSizes(),C=x.widest.width,A=x.highest.height,k=sg(this.chart.width-C,0,this.maxWidth);c=e.offset?this.maxWidth/i:k/(i-1),C+6>c&&(c=k/(i-(e.offset?.5:1)),h=this.maxHeight-a9(e.grid)-t.padding-i7e(e.title,this.chart.options.font),g=Math.sqrt(C*C+A*A),s=KG(Math.min(Math.asin(sg((x.highest.height+6)/c,-1,1)),Math.asin(sg(h/g,-1,1))-Math.asin(sg(A/g,-1,1)))),s=Math.max(r,Math.min(o,s))),this.labelRotation=s}afterCalculateLabelRotation(){ic(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){ic(this.options.beforeFit,[this])}fit(){let e={width:0,height:0},{chart:t,options:{ticks:i,title:r,grid:o}}=this,s=this._isVisible(),c=this.isHorizontal();if(s){let h=i7e(r,t.options.font);if(c?(e.width=this.maxWidth,e.height=a9(o)+h):(e.height=this.maxHeight,e.width=a9(o)+h),i.display&&this.ticks.length){let{first:g,last:x,widest:C,highest:A}=this._getLabelSizes(),k=i.padding*2,O=sx(this.labelRotation),F=Math.cos(O),L=Math.sin(O);if(c){let z=i.mirror?0:L*C.width+F*A.height;e.height=Math.min(this.maxHeight,e.height+z+k)}else{let z=i.mirror?0:F*C.width+L*A.height;e.width=Math.min(this.maxWidth,e.width+z+k)}this._calculatePadding(g,x,L,F)}}this._handleMargins(),c?(this.width=this._length=t.width-this._margins.left-this._margins.right,this.height=e.height):(this.width=e.width,this.height=this._length=t.height-this._margins.top-this._margins.bottom)}_calculatePadding(e,t,i,r){let{ticks:{align:o,padding:s},position:c}=this.options,h=this.labelRotation!==0,g=c!=="top"&&this.axis==="x";if(this.isHorizontal()){let x=this.getPixelForTick(0)-this.left,C=this.right-this.getPixelForTick(this.ticks.length-1),A=0,k=0;h?g?(A=r*e.width,k=i*t.height):(A=i*e.height,k=r*t.width):o==="start"?k=t.width:o==="end"?A=e.width:o!=="inner"&&(A=e.width/2,k=t.width/2),this.paddingLeft=Math.max((A-x+s)*this.width/(this.width-x),0),this.paddingRight=Math.max((k-C+s)*this.width/(this.width-C),0)}else{let x=t.height/2,C=e.height/2;o==="start"?(x=0,C=e.height):o==="end"&&(x=t.height,C=0),this.paddingTop=x+s,this.paddingBottom=C+s}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){ic(this.options.afterFit,[this])}isHorizontal(){let{axis:e,position:t}=this.options;return t==="top"||t==="bottom"||e==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(e){this.beforeTickToLabelConversion(),this.generateTickLabels(e);let t,i;for(t=0,i=e.length;t({width:s[Se]||0,height:c[Se]||0});return{first:fe(0),last:fe(t-1),widest:fe(X),highest:fe(q),widths:s,heights:c}}getLabelForValue(e){return e}getPixelForValue(e,t){return NaN}getValueForPixel(e){}getPixelForTick(e){let t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e].value)}getPixelForDecimal(e){this._reversePixels&&(e=1-e);let t=this._startPixel+e*this._length;return xIe(this._alignToPixels?bC(this.chart,t,0):t)}getDecimalForPixel(e){let t=(e-this._startPixel)/this._length;return this._reversePixels?1-t:t}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){let{min:e,max:t}=this;return e<0&&t<0?t:e>0&&t>0?e:0}getContext(e){let t=this.ticks||[];if(e>=0&&ec*r?c/i:h/r:h*r0}_computeGridLineItems(e){let t=this.axis,i=this.chart,r=this.options,{grid:o,position:s,border:c}=r,h=o.offset,g=this.isHorizontal(),C=this.ticks.length+(h?1:0),A=a9(o),k=[],O=c.setContext(this.getContext()),F=O.display?O.width:0,L=F/2,z=function(We){return bC(i,We,F)},j,K,ee,ne,X,q,fe,Se,pe,Me,ie,Re;if(s==="top")j=z(this.bottom),q=this.bottom-A,Se=j-L,Me=z(e.top)+L,Re=e.bottom;else if(s==="bottom")j=z(this.top),Me=e.top,Re=z(e.bottom)-L,q=j+L,Se=this.top+A;else if(s==="left")j=z(this.right),X=this.right-A,fe=j-L,pe=z(e.left)+L,ie=e.right;else if(s==="right")j=z(this.left),pe=e.left,ie=z(e.right)-L,X=j+L,fe=this.left+A;else if(t==="x"){if(s==="center")j=z((e.top+e.bottom)/2+.5);else if(xa(s)){let We=Object.keys(s)[0],Ie=s[We];j=z(this.chart.scales[We].getPixelForValue(Ie))}Me=e.top,Re=e.bottom,q=j+L,Se=q+A}else if(t==="y"){if(s==="center")j=z((e.left+e.right)/2);else if(xa(s)){let We=Object.keys(s)[0],Ie=s[We];j=z(this.chart.scales[We].getPixelForValue(Ie))}X=j-L,fe=X-A,pe=e.left,ie=e.right}let Ue=tc(r.ticks.maxTicksLimit,C),Ee=Math.max(1,Math.ceil(C/Ue));for(K=0;K0&&(Ii-=et/2);break}Fe={left:Ii,top:Pt,width:et+Xe.width,height:ze+Xe.height,color:Ee.backdropColor}}L.push({label:ee,font:Se,textOffset:ie,options:{rotation:F,color:Ie,strokeColor:Be,strokeWidth:Ve,textAlign:$e,textBaseline:Re,translation:[ne,X],backdrop:Fe}})}return L}_getXAxisLabelAlignment(){let{position:e,ticks:t}=this.options;if(-sx(this.labelRotation))return e==="top"?"left":"right";let r="center";return t.align==="start"?r="left":t.align==="end"?r="right":t.align==="inner"&&(r="inner"),r}_getYAxisLabelAlignment(e){let{position:t,ticks:{crossAlign:i,mirror:r,padding:o}}=this.options,s=this._getLabelSizes(),c=e+o,h=s.widest.width,g,x;return t==="left"?r?(x=this.right+o,i==="near"?g="left":i==="center"?(g="center",x+=h/2):(g="right",x+=h)):(x=this.right-c,i==="near"?g="right":i==="center"?(g="center",x-=h/2):(g="left",x=this.left)):t==="right"?r?(x=this.left+o,i==="near"?g="right":i==="center"?(g="center",x-=h/2):(g="left",x-=h)):(x=this.left+c,i==="near"?g="left":i==="center"?(g="center",x+=h/2):(g="right",x=this.right)):g="right",{textAlign:g,x}}_computeLabelArea(){if(this.options.ticks.mirror)return;let e=this.chart,t=this.options.position;if(t==="left"||t==="right")return{top:0,left:this.left,bottom:e.height,right:this.right};if(t==="top"||t==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:e.width}}drawBackground(){let{ctx:e,options:{backgroundColor:t},left:i,top:r,width:o,height:s}=this;t&&(e.save(),e.fillStyle=t,e.fillRect(i,r,o,s),e.restore())}getLineWidthForValue(e){let t=this.options.grid;if(!this._isVisible()||!t.display)return 0;let r=this.ticks.findIndex(o=>o.value===e);return r>=0?t.setContext(this.getContext(r)).lineWidth:0}drawGrid(e){let t=this.options.grid,i=this.ctx,r=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(e)),o,s,c=(h,g,x)=>{!x.width||!x.color||(i.save(),i.lineWidth=x.width,i.strokeStyle=x.color,i.setLineDash(x.borderDash||[]),i.lineDashOffset=x.borderDashOffset,i.beginPath(),i.moveTo(h.x,h.y),i.lineTo(g.x,g.y),i.stroke(),i.restore())};if(t.display)for(o=0,s=r.length;o{this.draw(o)}}]:[{z:i,draw:o=>{this.drawBackground(),this.drawGrid(o),this.drawTitle()}},{z:r,draw:()=>{this.drawBorder()}},{z:t,draw:o=>{this.drawLabels(o)}}]}getMatchingVisibleMetas(e){let t=this.chart.getSortedVisibleDatasetMetas(),i=this.axis+"AxisID",r=[],o,s;for(o=0,s=t.length;o{let i=t.split("."),r=i.pop(),o=[n].concat(i).join("."),s=e[t].split("."),c=s.pop(),h=s.join(".");kc.route(o,r,h,c)})}function pzt(n){return"id"in n&&"defaults"in n}var ZIe=class{constructor(){this.controllers=new B3(I3t,"datasets",!0),this.elements=new B3(DR,"elements"),this.plugins=new B3(Object,"plugins"),this.scales=new B3(z3,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...e){this._each("register",e)}remove(...e){this._each("unregister",e)}addControllers(...e){this._each("register",e,this.controllers)}addElements(...e){this._each("register",e,this.elements)}addPlugins(...e){this._each("register",e,this.plugins)}addScales(...e){this._each("register",e,this.scales)}getController(e){return this._get(e,this.controllers,"controller")}getElement(e){return this._get(e,this.elements,"element")}getPlugin(e){return this._get(e,this.plugins,"plugin")}getScale(e){return this._get(e,this.scales,"scale")}removeControllers(...e){this._each("unregister",e,this.controllers)}removeElements(...e){this._each("unregister",e,this.elements)}removePlugins(...e){this._each("unregister",e,this.plugins)}removeScales(...e){this._each("unregister",e,this.scales)}_each(e,t,i){[...t].forEach(r=>{let o=i||this._getRegistryForType(r);i||o.isForType(r)||o===this.plugins&&r.id?this._exec(e,o,r):gd(r,s=>{let c=i||this._getRegistryForType(s);this._exec(e,c,s)})})}_exec(e,t,i){let r=$G(e);ic(i["before"+r],[],i),t[e](i),ic(i["after"+r],[],i)}_getRegistryForType(e){for(let t=0;to.filter(c=>!s.some(h=>c.plugin.id===h.plugin.id));this._notify(r(t,i),e,"stop"),this._notify(r(i,t),e,"start")}};function fzt(n){let e={},t=[],i=Object.keys(lx.plugins.items);for(let o=0;o1&&n7e(n[0].toLowerCase());if(i)return i}throw new Error(`Cannot determine type of '${n}' axis. Please provide 'axis' or 'position' option.`)}function r7e(n,e,t){if(t[e+"AxisID"]===n)return{axis:e}}function xzt(n,e){if(e.data&&e.data.datasets){let t=e.data.datasets.filter(i=>i.xAxisID===n||i.yAxisID===n);if(t.length)return r7e(n,"x",t[0])||r7e(n,"y",t[0])}return{}}function wzt(n,e){let t=aA[n.type]||{scales:{}},i=e.scales||{},r=XIe(n.type,e),o=Object.create(null);return Object.keys(i).forEach(s=>{let c=i[s];if(!xa(c))return console.error(`Invalid scale configuration for scale: ${s}`);if(c._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${s}`);let h=JIe(s,c,xzt(s,n),kc.scales[c.type]),g=yzt(h,r),x=t.scales||{};o[s]=IR(Object.create(null),[{axis:h},c,x[h],x[g]])}),n.data.datasets.forEach(s=>{let c=s.type||n.type,h=s.indexAxis||XIe(c,e),x=(aA[c]||{}).scales||{};Object.keys(x).forEach(C=>{let A=vzt(C,h),k=s[A+"AxisID"]||A;o[k]=o[k]||Object.create(null),IR(o[k],[{axis:A},i[k],x[C]])})}),Object.keys(o).forEach(s=>{let c=o[s];IR(c,[kc.scales[c.type],kc.scale])}),o}function O7e(n){let e=n.options||(n.options={});e.plugins=tc(e.plugins,{}),e.scales=wzt(n,e)}function R7e(n){return n=n||{},n.datasets=n.datasets||[],n.labels=n.labels||[],n}function Czt(n){return n=n||{},n.data=R7e(n.data),O7e(n),n}var o7e=new Map,N7e=new Set;function eoe(n,e){let t=o7e.get(n);return t||(t=e(),o7e.set(n,t),N7e.add(t)),t}var l9=(n,e,t)=>{let i=M3(e,t);i!==void 0&&n.add(i)},eTe=class{constructor(e){this._config=Czt(e),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(e){this._config.type=e}get data(){return this._config.data}set data(e){this._config.data=R7e(e)}get options(){return this._config.options}set options(e){this._config.options=e}get plugins(){return this._config.plugins}update(){let e=this._config;this.clearCache(),O7e(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return eoe(e,()=>[[`datasets.${e}`,""]])}datasetAnimationScopeKeys(e,t){return eoe(`${e}.transition.${t}`,()=>[[`datasets.${e}.transitions.${t}`,`transitions.${t}`],[`datasets.${e}`,""]])}datasetElementScopeKeys(e,t){return eoe(`${e}-${t}`,()=>[[`datasets.${e}.elements.${t}`,`datasets.${e}`,`elements.${t}`,""]])}pluginScopeKeys(e){let t=e.id,i=this.type;return eoe(`${i}-plugin-${t}`,()=>[[`plugins.${t}`,...e.additionalOptionScopes||[]]])}_cachedScopes(e,t){let i=this._scopeCache,r=i.get(e);return(!r||t)&&(r=new Map,i.set(e,r)),r}getOptionScopes(e,t,i){let{options:r,type:o}=this,s=this._cachedScopes(e,i),c=s.get(t);if(c)return c;let h=new Set;t.forEach(x=>{e&&(h.add(e),x.forEach(C=>l9(h,e,C))),x.forEach(C=>l9(h,r,C)),x.forEach(C=>l9(h,aA[o]||{},C)),x.forEach(C=>l9(h,kc,C)),x.forEach(C=>l9(h,Vre,C))});let g=Array.from(h);return g.length===0&&g.push(Object.create(null)),N7e.has(t)&&s.set(t,g),g}chartOptionScopes(){let{options:e,type:t}=this;return[e,aA[t]||{},kc.datasets[t]||{},{type:t},kc,Vre]}resolveNamedOptions(e,t,i,r=[""]){let o={$shared:!0},{resolver:s,subPrefixes:c}=s7e(this._resolverCache,e,r),h=s;if(Ezt(s,t)){o.$shared=!1,i=rx(i)?i():i;let g=this.createResolver(e,i,c);h=sA(s,i,g)}for(let g of t)o[g]=h[g];return o}createResolver(e,t,i=[""],r){let{resolver:o}=s7e(this._resolverCache,e,i);return xa(t)?sA(o,t,void 0,r):o}};function s7e(n,e,t){let i=n.get(e);i||(i=new Map,n.set(e,i));let r=t.join(),o=i.get(r);return o||(o={resolver:t9(e,t),subPrefixes:t.filter(c=>!c.toLowerCase().includes("hover"))},i.set(r,o)),o}var Szt=n=>xa(n)&&Object.getOwnPropertyNames(n).some(e=>rx(n[e]));function Ezt(n,e){let{isScriptable:t,isIndexable:i}=$re(n);for(let r of e){let o=t(r),s=i(r),c=(s||o)&&n[r];if(o&&(rx(c)||Szt(c))||s&&Bc(c))return!0}return!1}var Izt="4.4.3",Tzt=["top","bottom","left","right","chartArea"];function a7e(n,e){return n==="top"||n==="bottom"||Tzt.indexOf(n)===-1&&e==="x"}function l7e(n,e){return function(t,i){return t[n]===i[n]?t[e]-i[e]:t[n]-i[n]}}function c7e(n){let e=n.chart,t=e.options.animation;e.notifyPlugins("afterRender"),ic(t&&t.onComplete,[n],e)}function Azt(n){let e=n.chart,t=e.options.animation;ic(t&&t.onProgress,[n],e)}function P7e(n){return i9()&&typeof n=="string"?n=document.getElementById(n):n&&n.length&&(n=n[0]),n&&n.canvas&&(n=n.canvas),n}var roe={},u7e=n=>{let e=P7e(n);return Object.values(roe).filter(t=>t.canvas===e).pop()};function Dzt(n,e,t){let i=Object.keys(n);for(let r of i){let o=+r;if(o>=e){let s=n[r];delete n[r],(t>0||o>e)&&(n[o+t]=s)}}}function kzt(n,e,t,i){return!t||n.type==="mouseout"?null:i?e:n}function toe(n,e,t){return n.options.clip?n[t]:e[t]}function Mzt(n,e){let{xScale:t,yScale:i}=n;return t&&i?{left:toe(t,e,"left"),right:toe(t,e,"right"),top:toe(i,e,"top"),bottom:toe(i,e,"bottom")}:e}var uA=(()=>{class n{static defaults=kc;static instances=roe;static overrides=aA;static registry=lx;static version=Izt;static getChart=u7e;static register(...t){lx.add(...t),d7e()}static unregister(...t){lx.remove(...t),d7e()}constructor(t,i){let r=this.config=new eTe(i),o=P7e(t),s=u7e(o);if(s)throw new Error("Canvas is already in use. Chart with ID '"+s.id+"' must be destroyed before the canvas with ID '"+s.canvas.id+"' can be reused.");let c=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||Q3t(o)),this.platform.updateConfig(r);let h=this.platform.acquireContext(o,c.aspectRatio),g=h&&h.canvas,x=g&&g.height,C=g&&g.width;if(this.id=gIe(),this.ctx=h,this.canvas=g,this.width=C,this.height=x,this._options=c,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new QIe,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=IIe(A=>this.update(A),c.resizeDelay||0),this._dataChanges=[],roe[this.id]=this,!h||!g){console.error("Failed to create chart: can't acquire context from the given item");return}CC.listen(this,"complete",c7e),CC.listen(this,"progress",Azt),this._initialize(),this.attached&&this.update()}get aspectRatio(){let{options:{aspectRatio:t,maintainAspectRatio:i},width:r,height:o,_aspectRatio:s}=this;return Gl(t)?i&&s?s:o?r/o:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return lx}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Wre(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return Ure(this.canvas,this.ctx),this}stop(){return CC.stop(this),this}resize(t,i){CC.running(this)?this._resizeBeforeDraw={width:t,height:i}:this._resize(t,i)}_resize(t,i){let r=this.options,o=this.canvas,s=r.maintainAspectRatio&&this.aspectRatio,c=this.platform.getMaximumSize(o,t,i,s),h=r.devicePixelRatio||this.platform.getDevicePixelRatio(),g=this.width?"resize":"attach";this.width=c.width,this.height=c.height,this._aspectRatio=this.aspectRatio,Wre(this,h,!0)&&(this.notifyPlugins("resize",{size:c}),ic(r.onResize,[this,c],this),this.attached&&this._doResize(g)&&this.render())}ensureScalesHaveIDs(){let i=this.options.scales||{};gd(i,(r,o)=>{r.id=o})}buildOrUpdateScales(){let t=this.options,i=t.scales,r=this.scales,o=Object.keys(r).reduce((c,h)=>(c[h]=!1,c),{}),s=[];i&&(s=s.concat(Object.keys(i).map(c=>{let h=i[c],g=JIe(c,h),x=g==="r",C=g==="x";return{options:h,dposition:x?"chartArea":C?"bottom":"left",dtype:x?"radialLinear":C?"category":"linear"}}))),gd(s,c=>{let h=c.options,g=h.id,x=JIe(g,h),C=tc(h.type,c.dtype);(h.position===void 0||a7e(h.position,x)!==a7e(c.dposition))&&(h.position=c.dposition),o[g]=!0;let A=null;if(g in r&&r[g].type===C)A=r[g];else{let k=lx.getScale(C);A=new k({id:g,type:C,ctx:this.ctx,chart:this}),r[A.id]=A}A.init(h,t)}),gd(o,(c,h)=>{c||delete r[h]}),gd(r,c=>{Xre.configure(this,c,c.options),Xre.addBox(this,c)})}_updateMetasets(){let t=this._metasets,i=this.data.datasets.length,r=t.length;if(t.sort((o,s)=>o.index-s.index),r>i){for(let o=i;oi.length&&delete this._stacks,t.forEach((r,o)=>{i.filter(s=>s===r._dataset).length===0&&this._destroyDatasetMeta(o)})}buildOrUpdateControllers(){let t=[],i=this.data.datasets,r,o;for(this._removeUnreferencedMetasets(),r=0,o=i.length;r{this.getDatasetMeta(i).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){let i=this.config;i.update();let r=this._options=i.createResolver(i.chartOptionScopes(),this.getContext()),o=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;let s=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let c=0;for(let x=0,C=this.data.datasets.length;x{x.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(l7e("z","_idx"));let{_active:h,_lastEvent:g}=this;g?this._eventHandler(g,!0):h.length&&this._updateHoverStyles(h,h,!0),this.render()}_updateScales(){gd(this.scales,t=>{Xre.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){let t=this.options,i=new Set(Object.keys(this._listeners)),r=new Set(t.events);(!Dre(i,r)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){let{_hiddenIndices:t}=this,i=this._getUniformDataChanges()||[];for(let{method:r,start:o,count:s}of i){let c=r==="_removeElements"?-s:s;Dzt(t,o,c)}}_getUniformDataChanges(){let t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];let i=this.data.datasets.length,r=s=>new Set(t.filter(c=>c[0]===s).map((c,h)=>h+","+c.splice(1).join(","))),o=r(0);for(let s=1;ss.split(",")).map(s=>({method:s[1],start:+s[2],count:+s[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;Xre.update(this,this.width,this.height,t);let i=this.chartArea,r=i.width<=0||i.height<=0;this._layers=[],gd(this.boxes,o=>{r&&o.position==="chartArea"||(o.configure&&o.configure(),this._layers.push(...o._layers()))},this),this._layers.forEach((o,s)=>{o._idx=s}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let i=0,r=this.data.datasets.length;i=0;--i)this._drawDataset(t[i]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){let i=this.ctx,r=t._clip,o=!r.disabled,s=Mzt(t,this.chartArea),c={meta:t,index:t.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",c)!==!1&&(o&&jre(i,{left:r.left===!1?0:s.left-r.left,right:r.right===!1?this.width:s.right+r.right,top:r.top===!1?0:s.top-r.top,bottom:r.bottom===!1?this.height:s.bottom+r.bottom}),t.controller.draw(),o&&Hre(i),c.cancelable=!1,this.notifyPlugins("afterDatasetDraw",c))}isPointInArea(t){return xC(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,i,r,o){let s=O3t.modes[i];return typeof s=="function"?s(this,t,r,o):[]}getDatasetMeta(t){let i=this.data.datasets[t],r=this._metasets,o=r.filter(s=>s&&s._dataset===i).pop();return o||(o={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:i&&i.order||0,index:t,_dataset:i,_parsed:[],_sorted:!1},r.push(o)),o}getContext(){return this.$context||(this.$context=lA(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){let i=this.data.datasets[t];if(!i)return!1;let r=this.getDatasetMeta(t);return typeof r.hidden=="boolean"?!r.hidden:!i.hidden}setDatasetVisibility(t,i){let r=this.getDatasetMeta(t);r.hidden=!i}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,i,r){let o=r?"show":"hide",s=this.getDatasetMeta(t),c=s.controller._resolveAnimations(void 0,o);O3(i)?(s.data[i].hidden=!r,this.update()):(this.setDatasetVisibility(t,r),c.update(s,{visible:r}),this.update(h=>h.datasetIndex===t?o:void 0))}hide(t,i){this._updateVisibility(t,i,!1)}show(t,i){this._updateVisibility(t,i,!0)}_destroyDatasetMeta(t){let i=this._metasets[t];i&&i.controller&&i.controller._destroy(),delete this._metasets[t]}_stop(){let t,i;for(this.stop(),CC.remove(this),t=0,i=this.data.datasets.length;t{i.addEventListener(this,s,c),t[s]=c},o=(s,c,h)=>{s.offsetX=c,s.offsetY=h,this._eventHandler(s)};gd(this.options.events,s=>r(s,o))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});let t=this._responsiveListeners,i=this.platform,r=(g,x)=>{i.addEventListener(this,g,x),t[g]=x},o=(g,x)=>{t[g]&&(i.removeEventListener(this,g,x),delete t[g])},s=(g,x)=>{this.canvas&&this.resize(g,x)},c,h=()=>{o("attach",h),this.attached=!0,this.resize(),r("resize",s),r("detach",c)};c=()=>{this.attached=!1,o("resize",s),this._stop(),this._resize(0,0),r("attach",h)},i.isAttached(this.canvas)?h():c()}unbindEvents(){gd(this._listeners,(t,i)=>{this.platform.removeEventListener(this,i,t)}),this._listeners={},gd(this._responsiveListeners,(t,i)=>{this.platform.removeEventListener(this,i,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,i,r){let o=r?"set":"remove",s,c,h,g;for(i==="dataset"&&(s=this.getDatasetMeta(t[0].datasetIndex),s.controller["_"+o+"DatasetHoverStyle"]()),h=0,g=t.length;h{let h=this.getDatasetMeta(s);if(!h)throw new Error("No dataset found at index "+s);return{datasetIndex:s,element:h.data[c],index:c}});!Are(r,i)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,i))}notifyPlugins(t,i,r){return this._plugins.notify(this,t,i,r)}isPluginEnabled(t){return this._plugins._cache.filter(i=>i.plugin.id===t).length===1}_updateHoverStyles(t,i,r){let o=this.options.hover,s=(g,x)=>g.filter(C=>!x.some(A=>C.datasetIndex===A.datasetIndex&&C.index===A.index)),c=s(i,t),h=r?t:s(t,i);c.length&&this.updateHoverStyle(c,o.mode,!1),h.length&&o.mode&&this.updateHoverStyle(h,o.mode,!0)}_eventHandler(t,i){let r={event:t,replay:i,cancelable:!0,inChartArea:this.isPointInArea(t)},o=c=>(c.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",r,o)===!1)return;let s=this._handleEvent(t,i,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,o),(s||r.changed)&&this.render(),this}_handleEvent(t,i,r){let{_active:o=[],options:s}=this,c=i,h=this._getActiveElements(t,o,r,c),g=vIe(t),x=kzt(t,this._lastEvent,r,g);r&&(this._lastEvent=null,ic(s.onHover,[t,h,this],this),g&&ic(s.onClick,[t,h,this],this));let C=!Are(h,o);return(C||i)&&(this._active=h,this._updateHoverStyles(h,o,i)),this._lastEvent=x,C}_getActiveElements(t,i,r,o){if(t.type==="mouseout")return[];if(!r)return i;let s=this.options.hover;return this.getElementsAtEventForMode(t,s.mode,s,o)}}return n})();function d7e(){return gd(uA.instances,n=>n._plugins.invalidate())}function Ozt(n,e,t){let{startAngle:i,pixelMargin:r,x:o,y:s,outerRadius:c,innerRadius:h}=e,g=r/c;n.beginPath(),n.arc(o,s,c,i-g,t+g),h>r?(g=r/h,n.arc(o,s,h,t+g,i-g,!0)):n.arc(o,s,r,t+mu,i-mu),n.closePath(),n.clip()}function Rzt(n){return e9(n,["outerStart","outerEnd","innerStart","innerEnd"])}function Nzt(n,e,t,i){let r=Rzt(n.options.borderRadius),o=(t-e)/2,s=Math.min(o,i*e/2),c=h=>{let g=(t-Math.min(o,h))*i/2;return sg(h,0,Math.min(o,g))};return{outerStart:c(r.outerStart),outerEnd:c(r.outerEnd),innerStart:sg(r.innerStart,0,s),innerEnd:sg(r.innerEnd,0,s)}}function L3(n,e,t,i){return{x:t+n*Math.cos(e),y:i+n*Math.sin(e)}}function aoe(n,e,t,i,r,o){let{x:s,y:c,startAngle:h,pixelMargin:g,innerRadius:x}=e,C=Math.max(e.outerRadius+i+t-g,0),A=x>0?x+i+t+g:0,k=0,O=r-h;if(i){let Ee=x>0?x-i:0,We=C>0?C-i:0,Ie=(Ee+We)/2,Be=Ie!==0?O*Ie/(Ie+i):O;k=(O-Be)/2}let F=Math.max(.001,O*C-t/gu)/C,L=(O-F)/2,z=h+L+k,j=r-L-k,{outerStart:K,outerEnd:ee,innerStart:ne,innerEnd:X}=Nzt(e,A,C,j-z),q=C-K,fe=C-ee,Se=z+K/q,pe=j-ee/fe,Me=A+ne,ie=A+X,Re=z+ne/Me,Ue=j-X/ie;if(n.beginPath(),o){let Ee=(Se+pe)/2;if(n.arc(s,c,C,Se,Ee),n.arc(s,c,C,Ee,pe),ee>0){let Ve=L3(fe,pe,s,c);n.arc(Ve.x,Ve.y,ee,pe,j+mu)}let We=L3(ie,j,s,c);if(n.lineTo(We.x,We.y),X>0){let Ve=L3(ie,Ue,s,c);n.arc(Ve.x,Ve.y,X,j+mu,Ue+Math.PI)}let Ie=(j-X/A+(z+ne/A))/2;if(n.arc(s,c,A,j-X/A,Ie,!0),n.arc(s,c,A,Ie,z+ne/A,!0),ne>0){let Ve=L3(Me,Re,s,c);n.arc(Ve.x,Ve.y,ne,Re+Math.PI,z-mu)}let Be=L3(q,z,s,c);if(n.lineTo(Be.x,Be.y),K>0){let Ve=L3(q,Se,s,c);n.arc(Ve.x,Ve.y,K,z-mu,Se)}}else{n.moveTo(s,c);let Ee=Math.cos(Se)*C+s,We=Math.sin(Se)*C+c;n.lineTo(Ee,We);let Ie=Math.cos(pe)*C+s,Be=Math.sin(pe)*C+c;n.lineTo(Ie,Be)}n.closePath()}function Pzt(n,e,t,i,r){let{fullCircles:o,startAngle:s,circumference:c}=e,h=e.endAngle;if(o){aoe(n,e,t,i,h,r);for(let g=0;ge!=="borderDash"};circumference;endAngle;fullCircles;innerRadius;outerRadius;pixelMargin;startAngle;constructor(e){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,e&&Object.assign(this,e)}inRange(e,t,i){let r=this.getProps(["x","y"],i),{angle:o,distance:s}=Rre(r,{x:e,y:t}),{startAngle:c,endAngle:h,innerRadius:g,outerRadius:x,circumference:C}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],i),A=(this.options.spacing+this.options.borderWidth)/2,O=tc(C,h-c)>=Vu||Nre(o,c,h),F=WG(s,g+A,x+A);return O&&F}getCenterPoint(e){let{x:t,y:i,startAngle:r,endAngle:o,innerRadius:s,outerRadius:c}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],e),{offset:h,spacing:g}=this.options,x=(r+o)/2,C=(s+c+g+h)/2;return{x:t+Math.cos(x)*C,y:i+Math.sin(x)*C}}tooltipPosition(e){return this.getCenterPoint(e)}draw(e){let{options:t,circumference:i}=this,r=(t.offset||0)/4,o=(t.spacing||0)/2,s=t.circular;if(this.pixelMargin=t.borderAlign==="inner"?.33:0,this.fullCircles=i>Vu?Math.floor(i/Vu):0,i===0||this.innerRadius<0||this.outerRadius<0)return;e.save();let c=(this.startAngle+this.endAngle)/2;e.translate(Math.cos(c)*r,Math.sin(c)*r);let h=1-Math.sin(Math.min(gu,i||0)),g=r*h;e.fillStyle=t.backgroundColor,e.strokeStyle=t.borderColor,Pzt(e,this,g,o,s),Fzt(e,this,g,o,s),e.restore()}};function h7e(n,e,t,i){let r=n.options,{[t]:o}=n.getProps([t],i);return Math.abs(e-o){class n extends DR{static id="point";parsed;skip;stop;static defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(t){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,t&&Object.assign(this,t)}inRange(t,i,r){let o=this.options,{x:s,y:c}=this.getProps(["x","y"],r);return Math.pow(t-s,2)+Math.pow(i-c,2)O&&(ne=kre(Se*ne/O/k)*k),Gl(h)||(X=Math.pow(10,h),ne=Math.ceil(ne*X)/X),r==="ticks"?(q=Math.floor(F/ne)*ne,fe=Math.ceil(L/ne)*ne):(q=F,fe=L),z&&j&&o&&bIe((c-s)/o,ne/1e3)?(Se=Math.round(Math.min((c-s)/ne,x)),ne=(c-s)/Se,q=s,fe=c):K?(q=z?s:q,fe=j?c:fe,Se=g-1,ne=(fe-q)/Se):(Se=(fe-q)/ne,N3(Se,Math.round(Se),ne/1e3)?Se=Math.round(Se):Se=Math.ceil(Se));let pe=Math.max(Ore(ne),Ore(q));X=Math.pow(10,Gl(h)?pe:h),q=Math.round(q*X)/X,fe=Math.round(fe*X)/X;let Me=0;for(z&&(A&&q!==s?(t.push({value:s}),qc)break;t.push({value:ie})}return j&&A&&fe!==c?t.length&&N3(t[t.length-1].value,c,p7e(c,ee,n))?t[t.length-1].value=c:t.push({value:c}):(!j||fe===c)&&t.push({value:fe}),t}function p7e(n,e,{horizontal:t,minRotation:i}){let r=sx(i),o=(t?Math.sin(r):Math.cos(r))||.001,s=.75*e*(""+n).length;return Math.min(e/o,s)}var V3=class extends z3{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(e,t){return Gl(e)||(typeof e=="number"||e instanceof Number)&&!isFinite(+e)?null:+e}handleTickRangeOptions(){let{beginAtZero:e}=this.options,{minDefined:t,maxDefined:i}=this.getUserBounds(),{min:r,max:o}=this,s=h=>r=t?r:h,c=h=>o=i?o:h;if(e){let h=R3(r),g=R3(o);h<0&&g<0?c(0):h>0&&g>0&&s(0)}if(r===o){let h=o===0?1:Math.abs(o*.05);c(o+h),e||s(r-h)}this.min=r,this.max=o}getTickLimit(){let e=this.options.ticks,{maxTicksLimit:t,stepSize:i}=e,r;return i?(r=Math.ceil(this.max/i)-Math.floor(this.min/i)+1,r>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${i} would result generating up to ${r} ticks. Limiting to 1000.`),r=1e3)):(r=this.computeTickLimit(),t=t||11),t&&(r=Math.min(t,r)),r}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){let e=this.options,t=e.ticks,i=this.getTickLimit();i=Math.max(2,i);let r={maxTicks:i,bounds:e.bounds,min:e.min,max:e.max,precision:t.precision,step:t.stepSize,count:t.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:t.minRotation||0,includeBounds:t.includeBounds!==!1},o=this._range||this,s=jzt(r,o);return e.bounds==="ticks"&&Mre(s,this,"value"),e.reverse?(s.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),s}configure(){let e=this.ticks,t=this.min,i=this.max;if(super.configure(),this.options.offset&&e.length){let r=(i-t)/Math.max(e.length-1,1)/2;t-=r,i+=r}this._startValue=t,this._endValue=i,this._valueRange=i-t}getLabelForValue(e){return XG(e,this.chart.options.locale,this.options.ticks.format)}},f7e=class extends V3{static id="linear";static defaults={ticks:{callback:JG.formatters.numeric}};determineDataLimits(){let{min:e,max:t}=this.getMinMax(!0);this.min=Uu(e)?e:0,this.max=Uu(t)?t:1,this.handleTickRangeOptions()}computeTickLimit(){let e=this.isHorizontal(),t=e?this.width:this.height,i=sx(this.options.ticks.minRotation),r=(e?Math.sin(i):Math.cos(i))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(t/Math.min(40,o.lineHeight/r))}getPixelForValue(e){return e===null?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getValueForPixel(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange}},d9=n=>Math.floor(ox(n)),AR=(n,e)=>Math.pow(10,d9(n)+e);function m7e(n){return n/Math.pow(10,d9(n))===1}function g7e(n,e,t){let i=Math.pow(10,t),r=Math.floor(n/i);return Math.ceil(e/i)-r}function Hzt(n,e){let t=e-n,i=d9(t);for(;g7e(n,e,i)>10;)i++;for(;g7e(n,e,i)<10;)i--;return Math.min(i,d9(n))}function Gzt(n,{min:e,max:t}){e=Zp(n.min,e);let i=[],r=d9(e),o=Hzt(e,t),s=o<0?Math.pow(10,Math.abs(o)):1,c=Math.pow(10,o),h=r>o?Math.pow(10,r):0,g=Math.round((e-h)*s)/s,x=Math.floor((e-h)/c/10)*c*10,C=Math.floor((g-x)/Math.pow(10,o)),A=Zp(n.min,Math.round((h+x+C*Math.pow(10,o))*s)/s);for(;A=10?C=C<15?15:20:C++,C>=20&&(o++,C=2,s=o>=0?1:s),A=Math.round((h+x+C*Math.pow(10,o))*s)/s;let k=Zp(n.max,A);return i.push({value:k,major:m7e(k),significand:C}),i}var _7e=class extends z3{static id="logarithmic";static defaults={ticks:{callback:JG.formatters.logarithmic,major:{enabled:!0}}};constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(e,t){let i=V3.prototype.parse.apply(this,[e,t]);if(i===0){this._zero=!0;return}return Uu(i)&&i>0?i:null}determineDataLimits(){let{min:e,max:t}=this.getMinMax(!0);this.min=Uu(e)?Math.max(0,e):null,this.max=Uu(t)?Math.max(0,t):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!Uu(this._userMin)&&(this.min=e===AR(this.min,0)?AR(this.min,-1):AR(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){let{minDefined:e,maxDefined:t}=this.getUserBounds(),i=this.min,r=this.max,o=c=>i=e?i:c,s=c=>r=t?r:c;i===r&&(i<=0?(o(1),s(10)):(o(AR(i,-1)),s(AR(r,1)))),i<=0&&o(AR(r,-1)),r<=0&&s(AR(i,1)),this.min=i,this.max=r}buildTicks(){let e=this.options,t={min:this._userMin,max:this._userMax},i=Gzt(t,this);return e.bounds==="ticks"&&Mre(i,this,"value"),e.reverse?(i.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),i}getLabelForValue(e){return e===void 0?"0":XG(e,this.chart.options.locale,this.options.ticks.format)}configure(){let e=this.min;super.configure(),this._startValue=ox(e),this._valueRange=ox(this.max)-ox(e)}getPixelForValue(e){return(e===void 0||e===0)&&(e=this.min),e===null||isNaN(e)?NaN:this.getPixelForDecimal(e===this.min?0:(ox(e)-this._startValue)/this._valueRange)}getValueForPixel(e){let t=this.getDecimalForPixel(e);return Math.pow(10,this._startValue+t*this._valueRange)}};function tTe(n){let e=n.ticks;if(e.display&&n.display){let t=ag(e.backdropPadding);return tc(e.font&&e.font.size,kc.font.size)+t.height}return 0}function Yzt(n,e,t){return t=Bc(t)?t:[t],{w:DIe(n,e.string,t),h:t.length*e.lineHeight}}function v7e(n,e,t,i,r){return n===i||n===r?{start:e-t/2,end:e+t/2}:nr?{start:e-t,end:e}:{start:e,end:e+t}}function qzt(n){let e={l:n.left+n._padding.left,r:n.right-n._padding.right,t:n.top+n._padding.top,b:n.bottom-n._padding.bottom},t=Object.assign({},e),i=[],r=[],o=n._pointLabels.length,s=n.options.pointLabels,c=s.centerPointLabels?gu/o:0;for(let h=0;he.r&&(c=(i.end-e.r)/o,n.r=Math.max(n.r,e.r+c)),r.starte.b&&(h=(r.end-e.b)/s,n.b=Math.max(n.b,e.b+h))}function Kzt(n,e,t){let i=n.drawingArea,{extra:r,additionalAngle:o,padding:s,size:c}=t,h=n.getPointPosition(e,i+r+s,o),g=Math.round(KG(L_(h.angle+mu))),x=Jzt(h.y,c.h,g),C=Qzt(g),A=Xzt(h.x,c.w,C);return{visible:!0,x:h.x,y:x,textAlign:C,left:A,top:x,right:A+c.w,bottom:x+c.h}}function Wzt(n,e){if(!e)return!0;let{left:t,top:i,right:r,bottom:o}=n;return!(xC({x:t,y:i},e)||xC({x:t,y:o},e)||xC({x:r,y:i},e)||xC({x:r,y:o},e))}function Zzt(n,e,t){let i=[],r=n._pointLabels.length,o=n.options,{centerPointLabels:s,display:c}=o.pointLabels,h={extra:tTe(o)/2,additionalAngle:s?gu/r:0},g;for(let x=0;x270||t<90)&&(n-=e),n}function eVt(n,e,t){let{left:i,top:r,right:o,bottom:s}=t,{backdropColor:c}=e;if(!Gl(c)){let h=qre(e.borderRadius),g=ag(e.backdropPadding);n.fillStyle=c;let x=i-g.left,C=r-g.top,A=o-i+g.width,k=s-r+g.height;Object.values(h).some(O=>O!==0)?(n.beginPath(),Gre(n,{x,y:C,w:A,h:k,radius:h}),n.fill()):n.fillRect(x,C,A,k)}}function tVt(n,e){let{ctx:t,options:{pointLabels:i}}=n;for(let r=e-1;r>=0;r--){let o=n._pointLabelItems[r];if(!o.visible)continue;let s=i.setContext(n.getPointLabelContext(r));eVt(t,s,o);let c=ax(s.font),{x:h,y:g,textAlign:x}=o;F3(t,n._pointLabels[r],h,g+c.lineHeight/2,c,{color:s.color,textAlign:x,textBaseline:"middle"})}}function B7e(n,e,t,i){let{ctx:r}=n;if(t)r.arc(n.xCenter,n.yCenter,e,0,Vu);else{let o=n.getPointPosition(0,e);r.moveTo(o.x,o.y);for(let s=1;s{let r=ic(this.options.pointLabels.callback,[t,i],this);return r||r===0?r:""}).filter((t,i)=>this.chart.getDataVisibility(i))}fit(){let e=this.options;e.display&&e.pointLabels.display?qzt(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(e,t,i,r){this.xCenter+=Math.floor((e-t)/2),this.yCenter+=Math.floor((i-r)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(e,t,i,r))}getIndexAngle(e){let t=Vu/(this._pointLabels.length||1),i=this.options.startAngle||0;return L_(e*t+sx(i))}getDistanceFromCenterForValue(e){if(Gl(e))return NaN;let t=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-e)*t:(e-this.min)*t}getValueForDistanceFromCenter(e){if(Gl(e))return NaN;let t=e/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-t:this.min+t}getPointLabelContext(e){let t=this._pointLabels||[];if(e>=0&&e{if(C!==0||C===0&&this.min<0){h=this.getDistanceFromCenterForValue(x.value);let A=this.getContext(C),k=r.setContext(A),O=o.setContext(A);iVt(this,k,h,s,O)}}),i.display){for(e.save(),c=s-1;c>=0;c--){let x=i.setContext(this.getPointLabelContext(c)),{color:C,lineWidth:A}=x;!A||!C||(e.lineWidth=A,e.strokeStyle=C,e.setLineDash(x.borderDash),e.lineDashOffset=x.borderDashOffset,h=this.getDistanceFromCenterForValue(t.ticks.reverse?this.min:this.max),g=this.getPointPosition(c,h),e.beginPath(),e.moveTo(this.xCenter,this.yCenter),e.lineTo(g.x,g.y),e.stroke())}e.restore()}}drawBorder(){}drawLabels(){let e=this.ctx,t=this.options,i=t.ticks;if(!i.display)return;let r=this.getIndexAngle(0),o,s;e.save(),e.translate(this.xCenter,this.yCenter),e.rotate(r),e.textAlign="center",e.textBaseline="middle",this.ticks.forEach((c,h)=>{if(h===0&&this.min>=0&&!t.reverse)return;let g=i.setContext(this.getContext(h)),x=ax(g.font);if(o=this.getDistanceFromCenterForValue(this.ticks[h].value),g.showLabelBackdrop){e.font=x.string,s=e.measureText(c.label).width,e.fillStyle=g.backdropColor;let C=ag(g.backdropPadding);e.fillRect(-s/2-C.left,-o-x.size/2-C.top,s+C.width,x.size+C.height)}F3(e,c.label,0,-o,x,{color:g.color,strokeColor:g.textStrokeColor,strokeWidth:g.textStrokeWidth})}),e.restore()}drawTitle(){}},uoe={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},Wf=Object.keys(uoe);function b7e(n,e){return n-e}function x7e(n,e){if(Gl(e))return null;let t=n._adapter,{parser:i,round:r,isoWeekday:o}=n._parseOpts,s=e;return typeof i=="function"&&(s=i(s)),Uu(s)||(s=typeof i=="string"?t.parse(s,i):t.parse(s)),s===null?null:(r&&(s=r==="week"&&(P3(o)||o===!0)?t.startOf(s,"isoWeek",o):t.startOf(s,r)),+s)}function w7e(n,e,t,i){let r=Wf.length;for(let o=Wf.indexOf(n);o=Wf.indexOf(t);o--){let s=Wf[o];if(uoe[s].common&&n._adapter.diff(r,i,s)>=e-1)return s}return Wf[t?Wf.indexOf(t):0]}function oVt(n){for(let e=Wf.indexOf(n)+1,t=Wf.length;e=e?t[i]:t[r];n[o]=!0}}function sVt(n,e,t,i){let r=n._adapter,o=+r.startOf(e[0].value,i),s=e[e.length-1].value,c,h;for(c=o;c<=s;c=+r.add(c,1,i))h=t[c],h>=0&&(e[h].major=!0);return e}function S7e(n,e,t){let i=[],r={},o=e.length,s,c;for(s=0;s{class n extends z3{static id="time";static defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}};constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,i={}){let r=t.time||(t.time={}),o=this._adapter=new T3t._date(t.adapters.date);o.init(i),IR(r.displayFormats,o.formats()),this._parseOpts={parser:r.parser,round:r.round,isoWeekday:r.isoWeekday},super.init(t),this._normalized=i.normalized}parse(t,i){return t===void 0?null:x7e(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){let t=this.options,i=this._adapter,r=t.time.unit||"day",{min:o,max:s,minDefined:c,maxDefined:h}=this.getUserBounds();function g(x){!c&&!isNaN(x.min)&&(o=Math.min(o,x.min)),!h&&!isNaN(x.max)&&(s=Math.max(s,x.max))}(!c||!h)&&(g(this._getLabelBounds()),(t.bounds!=="ticks"||t.ticks.source!=="labels")&&g(this.getMinMax(!1))),o=Uu(o)&&!isNaN(o)?o:+i.startOf(Date.now(),r),s=Uu(s)&&!isNaN(s)?s:+i.endOf(Date.now(),r)+1,this.min=Math.min(o,s-1),this.max=Math.max(o+1,s)}_getLabelBounds(){let t=this.getLabelTimestamps(),i=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;return t.length&&(i=t[0],r=t[t.length-1]),{min:i,max:r}}buildTicks(){let t=this.options,i=t.time,r=t.ticks,o=r.source==="labels"?this.getLabelTimestamps():this._generate();t.bounds==="ticks"&&o.length&&(this.min=this._userMin||o[0],this.max=this._userMax||o[o.length-1]);let s=this.min,c=this.max,h=CIe(o,s,c);return this._unit=i.unit||(r.autoSkip?w7e(i.minUnit,this.min,this.max,this._getLabelCapacity(s)):rVt(this,h.length,i.minUnit,this.min,this.max)),this._majorUnit=!r.major.enabled||this._unit==="year"?void 0:oVt(this._unit),this.initOffsets(o),t.reverse&&h.reverse(),S7e(this,h,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t=[]){let i=0,r=0,o,s;this.options.offset&&t.length&&(o=this.getDecimalForValue(t[0]),t.length===1?i=1-o:i=(this.getDecimalForValue(t[1])-o)/2,s=this.getDecimalForValue(t[t.length-1]),t.length===1?r=s:r=(s-this.getDecimalForValue(t[t.length-2]))/2);let c=t.length<3?.5:.25;i=sg(i,0,c),r=sg(r,0,c),this._offsets={start:i,end:r,factor:1/(i+1+r)}}_generate(){let t=this._adapter,i=this.min,r=this.max,o=this.options,s=o.time,c=s.unit||w7e(s.minUnit,i,r,this._getLabelCapacity(i)),h=tc(o.ticks.stepSize,1),g=c==="week"?s.isoWeekday:!1,x=P3(g)||g===!0,C={},A=i,k,O;if(x&&(A=+t.startOf(A,"isoWeek",g)),A=+t.startOf(A,x?"day":c),t.diff(r,i,c)>1e5*h)throw new Error(i+" and "+r+" are too far apart with stepSize of "+h+" "+c);let F=o.ticks.source==="data"&&this.getDataTimestamps();for(k=A,O=0;k+L)}getLabelForValue(t){let i=this._adapter,r=this.options.time;return r.tooltipFormat?i.format(t,r.tooltipFormat):i.format(t,r.displayFormats.datetime)}format(t,i){let o=this.options.time.displayFormats,s=this._unit,c=i||o[s];return this._adapter.format(t,c)}_tickFormatFunction(t,i,r,o){let s=this.options,c=s.ticks.callback;if(c)return ic(c,[t,i,r],this);let h=s.time.displayFormats,g=this._unit,x=this._majorUnit,C=g&&h[g],A=x&&h[x],k=r[i],O=x&&A&&k&&k.major;return this._adapter.format(t,o||(O?A:C))}generateTickLabels(t){let i,r,o;for(i=0,r=t.length;i0?h:1}getDataTimestamps(){let t=this._cache.data||[],i,r;if(t.length)return t;let o=this.getMatchingVisibleMetas();if(this._normalized&&o.length)return this._cache.data=o[0].controller.getAllParsedValues(this);for(i=0,r=o.length;i=n[i].pos&&e<=n[r].pos&&({lo:i,hi:r}=QG(n,"pos",e)),{pos:o,time:c}=n[i],{pos:s,time:h}=n[r]):(e>=n[i].time&&e<=n[r].time&&({lo:i,hi:r}=QG(n,"time",e)),{time:o,pos:c}=n[i],{time:s,pos:h}=n[r]);let g=s-o;return g?c+(h-c)*(e-o)/g:c}var I7e=class extends E7e{static id="timeseries";static defaults=E7e.defaults;constructor(e){super(e),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){let e=this._getTimestampsForTable(),t=this._table=this.buildLookupTable(e);this._minPos=ioe(t,this.min),this._tableRange=ioe(t,this.max)-this._minPos,super.initOffsets(e)}buildLookupTable(e){let{min:t,max:i}=this,r=[],o=[],s,c,h,g,x;for(s=0,c=e.length;s=t&&g<=i&&r.push(g);if(r.length<2)return[{time:t,pos:0},{time:i,pos:1}];for(s=0,c=r.length;sr-o)}_getTimestampsForTable(){let e=this._cache.all||[];if(e.length)return e;let t=this.getDataTimestamps(),i=this.getLabelTimestamps();return t.length&&i.length?e=this.normalize(t.concat(i)):e=t.length?t:i,e=this._cache.all=e,e}getDecimalForValue(e){return(ioe(this._table,e)-this._minPos)/this._tableRange}getValueForPixel(e){let t=this._offsets,i=this.getDecimalForPixel(e)/t.factor-t.end;return ioe(this._table,i*this._tableRange+this._minPos,!0)}};var Zf=wt(Ce({},uA.defaults.plugins.tooltip),{backgroundColor:"rgb(255,255,255)",titleFont:{family:"Roboto, sans-serif",size:12,style:"normal",lineHeight:uA.defaults.font.lineHeight,weight:uA.defaults.font.weight},bodyFont:{family:"Roboto, sans-serif",size:14,style:uA.defaults.font.style,lineHeight:uA.defaults.font.lineHeight,weight:uA.defaults.font.weight},titleColor:"rgba(0,0,0,0.84)",bodyColor:"rgba(0,0,0,0.84)",titleSpacing:8,padding:12,cornerRadius:2,borderWidth:1,borderColor:"rgba(0,0,1,0.15)",titleMarginBottom:6});var doe=class n{static fromObj(e){let t=e.createdDate?new Date(e.createdDate):null,i=e.modifiedDate?new Date(e.modifiedDate):null;return new n(e.id,e.name,t,i,e.highestPermission,e.operatingNumberIds)}constructor(e,t,i,r,o,s=[]){this.id=e,this.name=t,this.createdDate=i,this.modifiedDate=r,this.highestPermission=o,this.operatingNumberIds=s,this.resourceName=Bn.CLINIC_OPERATING_NUMBER_GROUP}clone(){return new n(this.id,this.name,this.createdDate,this.modifiedDate,this.highestPermission,this.operatingNumberIds.slice())}hasErrors(){return this.name?null:"Bitte geben Sie einen Namen f\xFCr Ihre Kennzahlengruppe an."}};var U3=class n extends doe{static fromObj(e){let t=e.createdDate?new Date(e.createdDate):null,i=e.modifiedDate?new Date(e.modifiedDate):null;return new n(e.id,e.name,t,i,e.highestPermission,e.operatingNumberIds,e.type)}constructor(e,t,i,r,o,s=[],c="pre-defined"){super(e,t,i,r,o,s),this.type=c}clone(){return new n(this.id,this.name,this.createdDate,this.modifiedDate,this.highestPermission,this.operatingNumberIds.slice(),this.type)}};var Fs=class{constructor(e){this.id=e}},B_=function(n){return n.LESS_OR_EQUAL="LESS_OR_EQUAL",n.GREATER_OR_EQUAL="GREATER_OR_EQUAL",n}(B_||{}),dA=function(n){return n[n.LEGACY=0]="LEGACY",n[n.AS_NULL=1]="AS_NULL",n}(dA||{}),Vn=class extends Fs{constructor(e,t=[],i=[],r=dA.AS_NULL){super(e),this.includes=t,this.excludes=i,this._emptyArrayStrategy=r}toJSON(){return{[this.id]:{includes:this._arrayToJson(this.includes,this._emptyArrayStrategy),excludes:this._arrayToJson(this.excludes,this._emptyArrayStrategy)}}}isValid(){return!!this.includes&&this.includes.length>0||!!this.excludes&&this.excludes.length>0}_arrayToJson(e,t=dA.AS_NULL){return t===dA.LEGACY||e?.length>0?e:null}};var aVt="administrativeDistrictId",hA=class extends Vn{constructor(e,t){super(aVt,e,t)}toJSON(){return{[this.id]:{includes:this._transformAdministrativeDistrictIds(this.includes),excludes:this._transformAdministrativeDistrictIds(this.excludes)}}}_transformAdministrativeDistrictIds(e){let t=this._arrayToJson(e);return t?t.map(i=>i.getNumericValue()):null}};var lVt="administrativeRegion",hoe=class extends Vn{constructor(e,t){super(lVt,e,t)}};var cVt="admissionCause",poe=class extends Vn{constructor(e,t){super(cVt,e,t)}};var uVt="admissionReason",foe=class extends Vn{constructor(e,t){super(uVt,e,t)}};var dVt="agmId",moe=class extends Vn{constructor(e,t){super(dVt,e,t)}};var hVt="aop",goe=class extends Fs{constructor(e,t,i,r,o,s,c,h,g,x,C,A,k){super(hVt),this._aopVersionYear=e,this._abschnitt1=t,this._abschnitt2=i,this._abschnitt1Oder2=r,this._icdNichtAmbulant=o,this._opsStationaer=s,this._funktionseinschraenkungen=c,this._pflegegrad=h,this._beatmung=g,this._altersgrenze=x,this._beidseitig=C,this._ophthalm=A,this._aop=k}isValid(){return!0}toJSON(){return{[this.id]:{aopVersionYear:this._aopVersionYear,abschnitt1:this._abschnitt1,abschnitt2:this._abschnitt2,abschnitt1Oder2:this._abschnitt1Oder2,icdNichtAmbulant:this._icdNichtAmbulant,opsStationaer:this._opsStationaer,funktionseinschraenkungen:this._funktionseinschraenkungen,pflegegrad:this._pflegegrad,beatmung:this._beatmung,altersgrenze:this._altersgrenze,beidseitig:this._beidseitig,ophthalm:this._ophthalm,aop:this._aop}}}};var z7e="artificialRespirationHours",p9=class extends Fs{constructor(e,t){super(z7e),this.value=e,this.comparison=t}toJSON(){return{[z7e]:{value:this.value,comparison:this.comparison}}}isValid(){return!!this.comparison&&!!this.value}};var pVt="admissionType1AT",_oe=class extends Vn{constructor(e,t){super(pVt,e,t)}};var fVt="admissionType2AT",voe=class extends Vn{constructor(e,t){super(fVt,e,t)}};var mVt="dismissalTypeAT",yoe=class extends Vn{constructor(e,t){super(mVt,e,t)}};var gVt="fondsrelevanzAT",boe=class extends Vn{constructor(e,t){super(gVt,e,t)}};var Qf=class extends Vn{constructor(e,t=[],i=[],r,o=dA.AS_NULL){super(e,t,i,o),this.numberOfDigits=r}toJSON(){let e=super.toJSON(),t=Object.keys(e)[0];return this.numberOfDigits&&(e[t].numberOfDigits=this.numberOfDigits),e}};var _Vt="procedureAT",vVt="procedureATLeftAnchored",xoe=class extends Vn{constructor(e,t){super(_Vt,e,t)}},woe=class extends Qf{constructor(e,t,i){super(vVt,e,t,i)}};var yVt="treatmentTypeAT",Coe=class extends Vn{constructor(e,t){super(yVt,e,t)}};var Soe=class extends Fs{constructor(e,t){super(e),this.bool=t}isValid(){return!0}toJSON(){return{[this.id]:{flag:this.bool}}}};var bVt="careServiceArea",Eoe=class extends Vn{constructor(e,t){super(bVt,e,t)}};var xVt="chargeRealm",Ioe=class extends Vn{constructor(e,t){super(xVt,e,t)}};var j3=class extends Fs{constructor(e,t=null,i=null){super(e),this.from=t,this.to=i}toJSON(){return{[this.id]:{from:this.from,to:this.to}}}isValid(){return this.from!=null&&this.to!=null}};var wVt="clinicBeds",Toe=class extends j3{constructor(e,t){super(wVt,e,t)}isValid(){return!0}};var CVt="deviceProvision",Aoe=class extends Fs{constructor(e,t){super(CVt),this.nrwServiceGroupId=e,this.qualification=t}toJSON(){return{[this.id]:{lgNr:this.nrwServiceGroupId,flag:this.qualification}}}isValid(){return!!this.nrwServiceGroupId&&this.qualification}};var SVt="clinicId",H3=class extends Vn{constructor(e,t){super(SVt,e,t)}};var EVt="clinicLevel",Doe=class extends Vn{constructor(e,t){super(EVt,e,t)}};var IVt="physicianRequirements",koe=class extends Fs{constructor(e,t,i){super(IVt),this.nrwServiceGroupId=e,this.qualification=t,this.availability=i}toJSON(){return{[this.id]:{lgNr:this.nrwServiceGroupId,qualification:this.qualification,availability:this.availability}}}isValid(){return!!this.nrwServiceGroupId&&this.qualification&&this.availability}};var TVt="clinicSize",Moe=class extends Vn{constructor(e,t){super(TVt,e,t)}};var AVt="clinicSn",Ooe=class extends Vn{constructor(e,t){super(AVt,e,t)}};var DVt="clinicType",Roe=class extends Vn{constructor(e,t){super(DVt,e,t)}};var kVt=["mainDiagnosis","secondaryDiagnosis","skCode"],MVt=["opsCode","mainProcedure"],OVt=["mainDiagnosis","secondaryDiagnosis"],RVt=["procedure"];var Etn={"ICD-10-GM":kVt.map(n=>n),"ICD-10-AT":OVt.map(n=>n),OPS:MVt.map(n=>n),"PROCEDURE-AT":RVt.map(n=>n),"G-DRG":[]};var qt=class n{static validateCodeName(e,t){let i;switch(t){case"OPS":i=!!e.match(/^[0-9]-\S{2,3}(\.\S{1,2})?$/);break;case"ICD-10-GM":case"ICD-10-AT":i=!!e.match(/^[A-Z]\d{2}(\.\d{1,2})?(\+)?$/);break;case"G-DRG":i=!!e.match(/^[0-9A-Z][0-9][0-9][A-Z]$/);break;default:i=!0}return i}static of(e,t){let i;switch(t){case"DRG":case"OPS":case"ICD":{i="specific";break}default:{i="group";break}}return new n(e,void 0,t,i,this.codingSystem(t))}static fromObject(e){let t;switch(e.type){case"DRG":case"OPS":case"ICD":{t="specific";break}default:{t="group";break}}return new n(e.name,e.description,e.type,e?.hierarchyElementType??t,e?.codingSystem??this.codingSystem(e.type),e.year)}static codingSystem(e){switch(e){case"DRG":case"drg-mdc":return"G-DRG";case"ICD":case"icd-chapter":case"icd-block":return"ICD-10-GM";case"OPS":case"ops-chapter":case"ops-block":return"OPS";case"procedures":return"PROCEDURE-AT"}}constructor(e,t,i,r,o,s){this.name=e,this.description=t,this.type=i,this.hierarchyElementType=r,this.codingSystem=o,this.year=s}clone(){return new n(this.name,this.description,this.type,this.hierarchyElementType,this.codingSystem,this.year)}numberOfDigits(){switch(this.type){case"ops-chapter":case"drg-mdc":case"icd-chapter":return 1;case"icd-block":case"ops-block":return;case"DRG":return 3;case"ICD":return this._cleanName(this.name).length;case"OPS":return this._cleanName(this.name).length;case"procedures":return this._cleanName(this.name).length}}toJSON(){return{name:this.name,type:this.type,codingSystem:this.codingSystem,hierarchyElementType:this.hierarchyElementType,year:this.year}}_cleanName(e){let t=new RegExp("[-+.!*]");return e.match(t)?this._cleanName(e.replace(t,"")):e}};var V7e=["MEDICAL_SERVICE","NURSING_SERVICE","MEDTECH_SERVICE","DRUGS_OVERHEAD","DRUGS_SINGLE","IMPLANTS","MEDICAL_SUPPLIES_OVERHEAD","MEDICAL_SUPPLIES_SINGLE","MEDICAL_SUPPLIES_EXTERNAL","INFRASTRUCTURE_MEDICAL","INFRASTRUCTURE_NON_MEDICAL"];var U7e=2024;var Noe=class n{constructor(e){this.data=e,this.departments=Object.keys(this.data),this._calculateDepartmentSums(),this._calculateSectionSums(),this._calculateTopSectionSums(),this._calculateTotal()}isEmpty(){return Object.keys(this.data).length===0}clone(){return new n(JSON.parse(JSON.stringify(this.data)))}_calculateDepartmentSums(){let e={};this.departments.forEach(t=>{let i=Object.keys(this.data[t]),r=0;this.data[t]&&i.forEach(o=>{this.data[t][o]&&(r=r+this.data[t][o])}),e[t]=r}),this.departmentSums=e}_calculateTopSectionSums(){let e=this.sectionSums.MEDICAL_SERVICE+this.sectionSums.MEDTECH_SERVICE+this.sectionSums.NURSING_SERVICE,t=this.sectionSums.DRUGS_OVERHEAD+this.sectionSums.DRUGS_SINGLE,i=this.sectionSums.IMPLANTS,r=this.sectionSums.MEDICAL_SUPPLIES_OVERHEAD+this.sectionSums.MEDICAL_SUPPLIES_SINGLE+this.sectionSums.MEDICAL_SUPPLIES_EXTERNAL,o=this.sectionSums.INFRASTRUCTURE_MEDICAL+this.sectionSums.INFRASTRUCTURE_NON_MEDICAL,s={STAFF:e,DRUGS:t,IMPLANTS:i,MEDICAL_SUPPLIES:r,INFRASTRUCTURE:o};this.topSectionSums=s}_calculateSectionSums(){let e={};V7e.forEach(t=>{let i=0;this.departments.forEach(r=>{i=i+this.data[r][t]}),e[t]=i}),this.sectionSums=e}_calculateTotal(){let e=(t,i)=>t+this.departmentSums[i];this.total=this.departments.reduce(e,0)}};var Poe=class n extends qt{static fromObject(e){let t=[],i=[],r=null;return e.mainDiagnoses&&(t=e.mainDiagnoses.map(o=>({code:qt.fromObject(o.code),percentage:o.percentage}))),e.procedures&&(i=e.procedures.map(o=>({code:qt.fromObject(o.code),percentage:o.percentage}))),e.costTable&&(r=new Noe(e.costTable)),new n(e.name,e.description,e.year,e.mainDepartment,t,i,r)}constructor(e,t,i,r,o,s,c){super(e,t,"DRG","specific","G-DRG",i),this.mainDepartment=r,this.mainDiagnoses=o,this.procedures=s,this.costTable=c}clone(){return new n(this.name,this.description,this.year,this.mainDepartment?JSON.parse(JSON.stringify(this.mainDepartment)):void 0,this.mainDiagnoses?[...this.mainDiagnoses.map(e=>({code:e.code.clone(),percentage:e.percentage}))]:void 0,this.procedures?[...this.procedures.map(e=>({code:e.code.clone(),percentage:e.percentage}))]:void 0,this.costTable?this.costTable.clone():void 0)}};var Foe=class n extends qt{static fromObject(e){return new n(e.name,e.description,e.year,e.content,e.ansteckend,e.ebmlabor,e.rare,e.age,e.agereject,e.morbodity,e.mortalities,e.paragraph295,e.paragraph301,e.sexcode,e.sexreject)}constructor(e,t,i,r,o,s,c,h,g,x,C,A,k,O,F){super(e,t,"ICD","specific","ICD-10-GM",i),this.content=r,this.ansteckend=o,this.ebmlabor=s,this.rare=c,this.age=h,this.agereject=g,this.morbodity=x,this.mortalities=C,this.paragraph295=A,this.paragraph301=k,this.sexcode=O,this.sexreject=F}clone(){return new n(this.name,this.description,this.year,this.content,this.ansteckend,this.ebmlabor,this.rare,this.age?JSON.parse(JSON.stringify(this.age)):void 0,this.agereject?JSON.parse(JSON.stringify(this.agereject)):void 0,this.morbodity?JSON.parse(JSON.stringify(this.morbodity)):void 0,this.mortalities?JSON.parse(JSON.stringify(this.mortalities)):void 0,this.paragraph295?JSON.parse(JSON.stringify(this.paragraph295)):void 0,this.paragraph301?JSON.parse(JSON.stringify(this.paragraph301)):void 0,this.sexcode?JSON.parse(JSON.stringify(this.sexcode)):void 0,this.sexreject?JSON.parse(JSON.stringify(this.sexreject)):void 0)}};var f9=class{static summary(e,t){if(t.length===0)return`Alle ${e} Kapitel`;function i(s){switch(s.type){case"drg-mdc":case"icd-chapter":case"ops-chapter":return"Kapitel";case"icd-block":case"ops-block":return"Gruppe";default:return""}}function r(s){switch(s.type){case"drg-mdc":case"icd-chapter":case"ops-chapter":return 3;case"icd-block":case"ops-block":return 2;default:return 1}}if(t.length===1)return`${i(t[0])} ${t[0].name}`;let o=t.sort((s,c)=>r(c)-r(s))[0];return`${i(o)} ${o.name} + ${t.length-1} weitere`}static fromObject(e){let t;switch(e.type){case"DRG":t=Poe.fromObject(e);break;case"ICD":t=Foe.fromObject(e);break;case"icd-chapter":case"drg-mdc":case"ops-chapter":t=Xf.fromObject(e);break;default:t=qt.fromObject(e)}return t}};var Xf=class n extends qt{static fromObject(e){return new n(e.name,e.description,e.type,e.hierarchyElementType,e.codingSystem,e.shortName,e.longName,e.start?f9.fromObject(e.start):void 0,e.end?f9.fromObject(e.end):void 0)}constructor(e,t,i,r,o,s,c,h,g){super(e,t,i,r,o),this.shortName=s,this.longName=c,this.chapterStart=h,this.chapterEnd=g}clone(){return new n(this.name,this.description,this.type,this.hierarchyElementType,this.codingSystem,this.shortName,this.longName,this.chapterStart?this.chapterStart.clone():void 0,this.chapterEnd?this.chapterEnd.clone():void 0)}};var j7e="opsCode",NVt="opsChapter",PVt="opsGroup",FVt="opsCodeLeftAnchored",SC=class extends Vn{constructor(e,t){super(j7e,e,t)}},Loe=class extends Vn{constructor(e,t){super(NVt,e,t)}},Boe=class extends Vn{constructor(e,t){super(PVt,e,t)}},zoe=class extends Qf{constructor(e,t,i){super(FVt,e,t,i)}};var G3=class extends Fs{constructor(e,t){super(e),this.conditions=t}toJSON(){let e=[];return this.conditions.forEach(t=>{t.isValid()?e.push(t.toJSON()):console.warn("skipping invalid condition",t)}),{[this.id]:{conditions:e}}}isValid(){return!!this.conditions&&this.conditions.length>0}};var H7e="and",Kd=class extends G3{constructor(e=[]){super(H7e,e)}};var G7e="fabKey",m9=class extends Vn{constructor(e,t){super(G7e,e,t)}};var iTe="dismissalDateTime",Y3=class extends Fs{constructor(e,t){super(iTe),this.value=e,this.comparison=t}toJSON(){return{[iTe]:{value:this.value.toJSON(),comparison:this.comparison}}}isValid(){return!!this.comparison&&!!this.value&&Object.prototype.toString.call(this.value)==="[object Date]"}};var LVt="dismissalReason",Voe=class extends Vn{constructor(e,t){super(LVt,e,t)}};var BVt="drgCode",zVt="additionalGrouperVersionDrgCode",kR=class extends Vn{constructor(e,t){super(BVt,e,t)}},g9=class extends Vn{constructor(e,t,i){super(zVt,t,i),this.grouperVersionYear=e}toJSON(){return{[this.id]:{grouperVersionYear:this.grouperVersionYear,includes:this._arrayToJson(this.includes,this._emptyArrayStrategy),excludes:this._arrayToJson(this.excludes,this._emptyArrayStrategy)}}}};var VVt="drgCodeExists",Uoe=class extends Fs{constructor(e){super(VVt),this._isNotNull=e}isValid(){return this._isNotNull!==null&&this._isNotNull!==void 0}toJSON(){return{[this.id]:{isNotNull:this._isNotNull}}}};var UVt="drgMdc",joe=class extends Vn{constructor(e,t){super(UVt,e,t)}};var jVt="drivingTime",MR=class extends Fs{constructor(e,t){super(jVt),this.value=e,this.comparison=t}toJSON(){return{[this.id]:{value:this.value,comparison:this.comparison}}}isValid(){return this.value!==void 0&&!!this.comparison}};var q3=class extends Fs{constructor(e,t=null){super(e),this.equals=t}toJSON(){return{[this.id]:{equals:this.equals}}}isValid(){return!!this.equals}};var HVt="fullyInpatientCases",Hoe=class extends j3{constructor(e,t){super(HVt,e,t)}isValid(){return!0}};var GVt="hybridDrg",Goe=class extends Fs{constructor(e,t=null,i=null,r=null,o=null,s=null,c=null,h=null,g=null,x=null,C=null,A=null){super(GVt),this._ops_p115f_a1_s1_n2_sgb=e,this._icdNichtAmbulant=t,this._opsStationaer=i,this._funktionseinschraenkungen=r,this._pflegegrad=o,this._beatmung=s,this._altersgrenze=c,this._beidseitig=h,this._ophthalm=g,this._belegungstage_lt_2=x,this._pccl_lt_3=C,this._keine_neubildungen=A}isValid(){return!0}toJSON(){return{[this.id]:{ops_p115f_a1_s1_n2_sgb:this._ops_p115f_a1_s1_n2_sgb,icdNichtAmbulant:this._icdNichtAmbulant,opsStationaer:this._opsStationaer,funktionseinschraenkungen:this._funktionseinschraenkungen,pflegegrad:this._pflegegrad,beatmung:this._beatmung,altersgrenze:this._altersgrenze,beidseitig:this._beidseitig,ophthalm:this._ophthalm,belegungstage_lt_2:this._belegungstage_lt_2,pccl_lt_3:this._pccl_lt_3,keine_neubildungen:this._keine_neubildungen}}}};var YVt="icdCode",qVt="icdChapter",$Vt="icdGroup",Yoe=class extends Vn{constructor(e,t){super(YVt,e,t)}},qoe=class extends Vn{constructor(e,t){super(qVt,e,t)}},$oe=class extends Vn{constructor(e,t){super($Vt,e,t)}};var KVt="iges",Koe=class extends Fs{constructor(e,t,i,r,o,s,c,h,g,x){super(KVt),this._einschlussKriterien=e,this._k1DrgStationaer=t,this._k2OpsStationaer=i,this._k3StationaereBehandlungBeatmung=r,this._k5IcdBetreuungsbedarf=o,this._k6IcdStationaer=s,this._k6sErhoehterAufwand=c,this._k7Pccl=h,this._k8Pflegegrade=g,this._kSharpAlter=x}isValid(){return!0}toJSON(){return{[this.id]:{einschlussKriterien:this._einschlussKriterien,k1DrgStationaer:this._k1DrgStationaer,k2OpsStationaer:this._k2OpsStationaer,k3StationaereBehandlungBeatmung:this._k3StationaereBehandlungBeatmung,k6IcdStationaer:this._k6IcdStationaer,k5IcdBetreuungsbedarf:this._k5IcdBetreuungsbedarf,k8Pflegegrade:this._k8Pflegegrade,k6sErhoehterAufwand:this._k6sErhoehterAufwand,k7Pccl:this._k7Pccl,kSharpAlter:this._kSharpAlter}}}};var WVt="inekCalculationLocation",Woe=class extends Soe{constructor(e){super(WVt,e)}};var ZVt="inlierType",$3=class extends q3{constructor(e){super(ZVt,e)}};var QVt="insuranceType",Zoe=class extends q3{constructor(e){super(QVt,e)}};var XVt="dateInterval",EC=class extends Fs{constructor(e){super(XVt),this.interval=e}toJSON(){return this._transform().toJSON()}isValid(){return!!this.interval&&this.interval.isValid()}_transform(){return new Kd([new Y3(this.interval.start,B_.GREATER_OR_EQUAL),new Y3(this.interval.end,B_.LESS_OR_EQUAL)])}};var JVt="mainDiagnosis",e4t="mainDiagnosisLeftAnchored",K3=class extends Vn{constructor(e,t){super(JVt,e,t)}},W3=class extends Qf{constructor(e,t,i){super(e4t,e,t,i)}};var t4t="mainProcedure",i4t="mainProcedureLeftAnchored",Qoe=class extends Vn{constructor(e,t){super(t4t,e,t)}},Xoe=class extends Qf{constructor(e,t,i){super(i4t,e,t,i)}};var Joe=class extends Vn{constructor(e,t){super("marketId",e,t)}};var n4t="medicalCareLevel",ese=class extends Vn{constructor(e,t){super(n4t,e,t)}};var r4t="nrwServiceArea",o4t="nrwServiceGroup",tse=class extends Vn{constructor(e,t=[]){super(o4t,e,t)}},ise=class extends Vn{constructor(e,t=[]){super(r4t,e,t)}};var nse=class extends Fs{constructor(e,t,i){super("fullyInpatientCaseOperatingNumberValue"),this.operatingNumberId=e,this.value=t,this.comparison=i}toJSON(){return{[this.id]:{operatingNumberId:this.operatingNumberId,value:this.value.toString().replace(",","."),comparison:this.comparison}}}isValid(){return!!this.operatingNumberId&&(!!this.value||this.value===0)&&!!this.comparison}};var s4t="pccl",rse=class extends Vn{constructor(e,t){super(s4t,e,t)}};var a4t="postalCode",pA=class extends Vn{constructor(e,t){super(a4t,e,t)}};var l4t="relativeInterval",Z3=class extends Fs{constructor(e){super(l4t),this.intervalRelative=e}toJSON(){return this._unitToCondition().toJSON()}isValid(){return!!this.intervalRelative}_unitToCondition(){let e=new ep(this.intervalRelative.startDate,this.intervalRelative.endDate);return new EC(e)}};var c4t="skCode",u4t="skCodeLeftAnchored",ose=class extends Vn{constructor(e,t){super(c4t,e,t)}},sse=class extends Qf{constructor(e,t,i){super(u4t,e,t,i)}};var d4t="secondaryDiagnosis",h4t="secondaryDiagnosisLeftAnchored",Q3=class extends Vn{constructor(e,t){super(d4t,e,t)}},X3=class extends Qf{constructor(e,t,i){super(h4t,e,t,i)}};var p4t="specialtyDepartmentId",ase=class extends Vn{constructor(e=[],t=[]){super(p4t,e,t)}};var f4t="stateId",fA=class extends Vn{constructor(e,t){super(f4t,e,t)}};var Y7e="true",mA=class extends Fs{constructor(){super(Y7e)}toJSON(){return{[Y7e]:{}}}isValid(){return!0}};var m4t="university",lse=class extends Fs{constructor(e){super(m4t),this.flag=e}isValid(){return!!this.flag}toJSON(){return{[this.id]:{flag:this.flag}}}};var g4t="virtualClinicBenchmarkingGroupIds",cse=class extends Vn{constructor(e=[],t=[]){super(g4t,e,t)}};var _4t="year",gA=class extends Vn{constructor(e,t){super(_4t,e,t)}};var v4t="or",_A=class extends G3{constructor(e=[]){super(v4t,e)}};var la=class n{static create(e){let t=typeof e,i=null;if(t==="string")i=n.createFromString(e);else if(t==="number")i=n.createFromNumber(e);else if(!e)i=null;else throw new Error("Invalid administrative district id type.");return i}static createFromNumber(e){let t=e.toString(10);return n.createFromString(t)}static createFromString(e){return e.length===4&&(e=`0${e}`),new n(e)}constructor(e){this.value=e}getNumericValue(){return parseInt(this.value,10)}getStateId(){return parseInt(this.value.substring(0,2),10)}clone(){return new n(this.value)}};var q7e=[{id:8,name:"Baden-W\xFCrttemberg"},{id:9,name:"Bayern"},{id:11,name:"Berlin"},{id:12,name:"Brandenburg"},{id:4,name:"Bremen"},{id:2,name:"Hamburg"},{id:6,name:"Hessen"},{id:13,name:"Mecklenburg-Vorpommern"},{id:3,name:"Niedersachsen"},{id:5,name:"Nordrhein-Westfalen"},{id:7,name:"Rheinland-Pfalz"},{id:10,name:"Saarland"},{id:14,name:"Sachsen"},{id:15,name:"Sachsen-Anhalt"},{id:1,name:"Schleswig-Holstein"},{id:16,name:"Th\xFCringen"}],y4t=[{id:-1,name:"Bund"},...q7e];var b4t="states",$7e={id:b4t,type:"fill",source:"states","source-layer":"states",paint:{"fill-outline-color":"rgba(0,0,0,0.3)","fill-color":"rgba(0,0,0,0.1)"}},K7e={id:"states",type:"vector",url:"mapbox://sseemann.at-states-dev"};var x4t="municipalities",W7e={id:x4t,type:"fill",source:"municipalities","source-layer":"gemeinden",paint:{"fill-outline-color":"rgba(0,0,0,0.3)","fill-color":"rgba(0,0,0,0.1)"}},Z7e={id:"municipalities",type:"vector",url:"mapbox://sseemann.at-gemeinden-dev"};var w4t="bezirk",Q7e={id:w4t,type:"fill",source:"bezirk","source-layer":"municipalities",paint:{"fill-outline-color":"rgba(0,0,0,0.3)","fill-color":"rgba(0,0,0,0.1)"}},X7e={id:"bezirk",type:"vector",url:"mapbox://sseemann.at-municipalities-dev"};var IC=[[15.0169958839,47.3024876979],[5.98865807458,54.983104153]];var J7e=[[9.49,46.41],[17.18,49.04]];var Qp=63710088e-1,C4t={centimeters:Qp*100,centimetres:Qp*100,degrees:Qp/111325,feet:Qp*3.28084,inches:Qp*39.37,kilometers:Qp/1e3,kilometres:Qp/1e3,meters:Qp,metres:Qp,miles:Qp/1609.344,millimeters:Qp*1e3,millimetres:Qp*1e3,nauticalmiles:Qp/1852,radians:1,yards:Qp*1.0936},Lsn={centimeters:100,centimetres:100,degrees:1/111325,feet:3.28084,inches:39.37,kilometers:1/1e3,kilometres:1/1e3,meters:1,metres:1,miles:1/1609.344,millimeters:1e3,millimetres:1e3,nauticalmiles:1/1852,radians:1/Qp,yards:1.0936133};function E0(n,e,t){t===void 0&&(t={});var i={type:"Feature"};return(t.id===0||t.id)&&(i.id=t.id),t.bbox&&(i.bbox=t.bbox),i.properties=e||{},i.geometry=n,i}function lg(n,e,t){if(t===void 0&&(t={}),!n)throw new Error("coordinates is required");if(!Array.isArray(n))throw new Error("coordinates must be an Array");if(n.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!nTe(n[0])||!nTe(n[1]))throw new Error("coordinates must contain numbers");var i={type:"Point",coordinates:n};return E0(i,e,t)}function rTe(n,e,t){t===void 0&&(t={});for(var i=0,r=n;i{let o=e.isStyleLoaded();return console.debug(`checking layer loaded ${r}/10`,t.id,o),o}),Um(r=>r),ri(()=>t)))}static addSaveSource(e,t,i){return this.hasResource(e,t,"source")?kn(i):(e=e.addSource(t,i),lJ(500).pipe(kr(10),ri(r=>{let o=e.isSourceLoaded(t);return console.debug(`checking source loaded ${r}/10`,t,o),o}),Um(r=>r),ri(()=>i)))}static hasResource(e,t,i){return i==="layer"?!!e.getLayer(t):!!e.getSource(t)}};var vA=class{constructor(e,t){this.layerControlId=e,this.config=t,this.visible="visible",this.active=!0,this.legend={showInLegend:!0},this.initDone=!1,this.popupImpl=void 0,this._bounds=new ea(IC),this._legendRef=new Yo(1),this.legendRef=this._legendRef.asObservable(),this.visible=t.visible??this.visible,this.active=t.active??this.active,this.zIndex=t.zIndex,this.displayName=t.displayName,this.legend=Ce(Ce({},this.legend),t.legend)}initBounds(){this.bounds=this._bounds.asObservable()}initImage(e){return this.image()&&!e.hasImage(this.image()?.imageName)?(console.debug("loading image",this.image()?.url),Vye(e.loadImage).bind(e)(this.image()?.url).pipe(ri(i=>{if(i[0])throw i[0];return e.addImage(this.image().imageName,i[1],{sdf:this.image().sdfMode}),e}))):kn(e)}initSource(e){if(console.debug("init source",this.source()),this.source()){if(!this.source().sourceId)throw new Error("missing source id");return _9.addSaveSource(e,this.source().sourceId,this.source().sourceData)}else return kn(null)}initLayer(e,t){this.mapRef=e,this.popupControlRef=t;let i=kn();return this.layer()&&(console.debug("init layer",this.layer().id),i=kn(this.layer()).pipe(ri(r=>(r.layout?r.layout.visibility="none":r.layout={visibility:"none"},r)),lr(r=>_9.addSaveLayer(e,r)))),i.pipe(vs(()=>this.initDone=!0),vs(()=>this.afterInit(e,t)))}onRedraw(e){switch(e.action){case"SHOW":{this._show();break}case"UPDATE-DATA":{this._update(e.data);break}case"UPDATE-BY-COMMAND":{let t=e.data;this.updateByCommand(t);break}case"HIDE":{this._hide();break}}}destroyLayer(e){this.popupControlRef.onDestroy(),this.layer()&&(this.hidePopup(this.layer()?.id),e.removeLayer(this.layer().id))}destroySource(e){this.source()&&e.removeSource(this.source()?.sourceId),this.image()&&e.removeImage(this.image()?.url)}afterInit(e,t){this.initBounds()}hide(){console.debug(`[${this.layer()?.id}] set layout.visibility = none`),this.mapRef.setLayoutProperty(this.layer().id,"visibility","none")}show(){console.debug(`[${this.layer()?.id}] set layout.visibility = visible`),this.mapRef.setLayoutProperty(this.layer().id,"visibility","visible")}update(e){console.debug("no update method impl!")}updateByCommand(e){let t=e.options.find(i=>i.key===e.currentValueKey);e.commandFn(this.mapRef,t.value)}hidePopup(e){this.popupControlRef.deregisterHandler(e),this.popupImpl=void 0,this._popupSubscription&&this._popupSubscription.unsubscribe()}showPopup(e){this.popupImpl=new lTe(this.mapRef,e,t=>this.popupContent(t,{})),this.popupControlRef.registerHandler(this.popupImpl,e)}image(){}popupContent(e,t){if(this.config.popup==="customPopupContent")return null;let i=this.config.popup.titleFnc(e,t),r=`
${i}
`;if(this.config.popup.messageFnc){let o=this.config.popup.messageFnc(e,t);o&&(r=`
${i}
${this.config.popup.messagePrefix} ${o}
`)}return r}_show(){this.initDone&&this.layer()&&(this.show(),this.config.popup&&this.showPopup(this.layer().id))}_update(e){this.initDone&&this.layer()&&this.update(e)}_hide(){this.initDone&&this.layer()&&(this.hidePopup(this.layer().id),this.hide())}},lTe=class extends J3{constructor(e,t,i){super(e,t),this.contentFn=i}content(e){return this.contentFn({id:e.id,properties:e.properties,geometry:e.geometry?{type:e.geometry.type,bbox:e.geometry.bbox,coordinates:void 0}:void 0,bbox:e.bbox,type:e.type})}};var hse=class{static getDataMaxValue(e,t){let i=0;return e.forEach(r=>{i=i>=t[r]?i:t[r]}),console.log(i),i}static getDataExtremeValues(e,t){let i=null,r=null;return e.forEach(o=>{i!==null?i=i>=t[o]?i:t[o]:i=t[o],r!==null?r=r<=t[o]?r:t[o]:r=t[o]}),{min:r,max:i}}};function ez(n,e,t){if(n!==null)for(var i,r,o,s,c,h,g,x=0,C=0,A,k=n.type,O=k==="FeatureCollection",F=k==="Feature",L=O?n.features.length:1,z=0;zt[0]&&(e[0]=t[0]),e[1]>t[1]&&(e[1]=t[1]),e[2]this._legendRef.next(this.updateLegendRef(i,{min:null,max:null}))),Zv([this.data$,this.colorFactory$]).subscribe(i=>this.updateSource(i[0],void 0,i[1]))}showPopup(e){this._popupSubscription=this.data$.subscribe(t=>{this.popupImpl=new uTe(this.mapRef,e,(i,r)=>this.popupContent(i,r),t),this.popupControlRef.registerHandler(this.popupImpl,e)})}updateSource(e,t=hse.getDataExtremeValues(Object.keys(e),e),i){console.debug(this.layerControlId,"updateSource",e),this._legendRef.next(this.updateLegendRef(i,t));let r=Object.keys(e),o,s;r.length>0?(o=this.getFillColorExpression(r,e,t,i),s=this.getFillOpacityExpression(e),this.popupImpl&&(this.popupImpl.data=e)):(o=this.getFillColorFallback(),s=.7),this.mapRef.setPaintProperty(this.layer().id,"fill-color",o),this.mapRef.setPaintProperty(this.layer().id,"fill-opacity",s)}getFillColorExpression(e,t,i,r){let o=this.getFillColorFallback(),s=JSON.parse(JSON.stringify(this.baseFilterExpression()));return e.forEach(function(c){let h=r.getColorForValue(t[c],i.min,i.max)??new is(o);s.push(c,h.toHslString())}),s.push(o),s}baseFilterExpression(e){return["match",["get",this.config.geoJsonPropertiesKey]]}getFillColorFallback(){return"rgba(0,0,0,0)"}getFillOpacityExpression(e){let t=JSON.parse(JSON.stringify(this.baseFilterExpression()));return Object.keys(e).forEach(i=>{t.push(i,.7)}),t.push(0),t}updateLegendRef(e,t){return console.debug(this.config.layerId,"updateLegendRef"),new yA(this.layerControlId,this.displayName,e,t.min,t.max)}initBounds(){this.bounds=this.data$.pipe(vs(()=>this.mapRef.fitBounds(this.defaultBounds)),lr(e=>wc(this.mapRef,"idle").pipe(kr(1),ri(()=>e))),ri(e=>{let t=[];if(Object.keys(e).length>250)return this.defaultBounds;if(Object.keys(e).forEach(i=>{let r=["in",i,["get",this.config.geoJsonPropertiesKey]],o=this.mapRef.querySourceFeatures(this.config.sourceId,{filter:r,sourceLayer:this.layer()["source-layer"]});o.length>0&&o.forEach(s=>{t.push(E0({type:s.geometry.type,bbox:s.geometry.bbox,coordinates:s.geometry.coordinates},s.properties))})}),t.length>0){let i=Jc(t);return cx.fromBbox(AC(i),i).bounds}else return this.defaultBounds}),vs(e=>console.debug(this.config.sourceId,"updateBounds",e)))}},uTe=class extends J3{constructor(e,t,i,r={}){super(e,t),this.contentFn=i,this.data=r}content(e){return this.contentFn({type:e.type,bbox:e.bbox,id:e.id,properties:e.properties,geometry:e.geometry?{type:e.geometry?.type,bbox:e.geometry?.bbox,coordinates:void 0}:void 0},this.data)}};var z_=class extends vA{constructor(e,t){super(e,t),this.config=t,this.data$=new Yo(1)}initBounds(){this.bounds=this.data$.asObservable().pipe(vs(()=>console.debug(this.config.sourceId,"updateBounds")),ri(e=>e.features.length>0?cx.fromBbox(AC(e),e).bounds:IC))}updateData(e){this.data$.next(e)}afterInit(e,t){super.afterInit(e,t),this._legendRef.next(this.updateLegendRef(null)),this.data$.subscribe(i=>this.updateSource(i))}update(e){this.data$.next(e)}updateByCommand(e){super.updateByCommand(e),this.data$.subscribe(i=>this._legendRef.next(this.updateLegendRef(i))).unsubscribe()}updateSource(e){if(console.debug(this.source()?.sourceId,"updateSource"),this.mapRef&&this.source()){let t={type:"FeatureCollection",features:e.features.map(i=>({type:"Feature",id:i.id,properties:i.properties,geometry:i.geometry,bbox:i.bbox}))};this._legendRef.next(this.updateLegendRef(e)),this.mapRef.getSource(this.source().sourceId).setData(t)}}updateLegendRef(e){return new wh(this.layerControlId,this.config.displayName,"public")}};var v9=class extends z_{constructor(e,t){super(e,t),this.config=t}updateLegendRef(e){let t=new pse(this.layerControlId,this.config.displayName,this.image()?.url);return this.applyLegendConfig(t,e),t}afterInit(e,t){super.afterInit(e,t),this.data$.subscribe(i=>this.updateSource(i))}layer(){return{id:this._layerId(),type:"symbol",source:this.config.sourceId,layout:Ce({"icon-image":"geo","icon-size":1.5,"icon-ignore-placement":!0,"icon-allow-overlap":!0,"text-allow-overlap":!0,"text-ignore-placement":!0,"text-anchor":"top-left"},this.config.layout),filter:["==",["get","itemActive"],!0],paint:Ce({"icon-color":["get","colorAsHex"],"icon-halo-blur":5},this.config.paint)}}source(){return{sourceId:this.config.sourceId,sourceData:{type:"geojson",data:Jc([])}}}image(){return{imageName:"geo",sdfMode:!0,url:"https://analyticsassets.z6.web.core.windows.net/img/geo-alt-fill.png"}}applyLegendConfig(e,t){this.config.legend?.action&&(e.legend={action:{component:this.config.legend.action.component,data:this.config.legend.action.dataFn(t),commands:[{commandId:"text-field",displayName:"Anzeige",currentValueKey:this.mapRef.getLayoutProperty(this.layer().id,"text-field")?"ja":"nein",options:[{key:"ja",value:["get","itemName"],displayName:"Text und Symbol anzeigen"},{key:"nein",value:void 0,displayName:"Kein Text, nur Symbol anzeigen"}],commandFn:(i,r)=>i.setLayoutProperty(this._layerId(),"text-field",r)},{commandId:"text-size",displayName:"Text Gr\xF6\xDFe",currentValueKey:this.mapRef.getLayoutProperty(this.layer().id,"text-size")?this.mapRef.getLayoutProperty(this.layer().id,"text-size").toString():"0",options:[{key:"0",value:0,displayName:"Nicht sichtbar"},{key:"5",value:5,displayName:"Klein"},{key:"10",value:10,displayName:"Normal"},{key:"15",value:15,displayName:"Gro\xDF"},{key:"20",value:20,displayName:"Sehr gro\xDF"}],commandFn:(i,r)=>i.setLayoutProperty(this._layerId(),"text-size",r)},{commandId:"text-anchor",displayName:"Text Position",currentValueKey:this.mapRef.getLayoutProperty(this.layer().id,"text-anchor")&&typeof this.mapRef.getLayoutProperty(this.layer().id,"text-anchor")=="string"?this.mapRef.getLayoutProperty(this.layer().id,"text-anchor"):"top-left",options:[{key:"center",value:"center",displayName:"Text und Symbol mittig"},{key:"left",value:"left",displayName:"Symbol links vom Text"},{key:"right",value:"right",displayName:"Symbol rechts vom Text"},{key:"top",value:"top",displayName:"Text unter Symbol"},{key:"bottom",value:"bottom",displayName:"Text \xFCber Symbol"},{key:"top-left",value:"top-left",displayName:"Symbol oben links vom Text"},{key:"top-right",value:"top-right",displayName:"Symbol oben rechts vom Text"},{key:"bottom-left",value:"bottom-left",displayName:"Symbol unten links vom Text"},{key:"bottom-right",value:"bottom-right",displayName:"Symbol unten rechts vom Text"}],commandFn:(i,r)=>i.setLayoutProperty(this._layerId(),"text-anchor",r)}]}})}_layerId(){return this.config.layerId??this.layerControlId}};var tz=class n{static fromObj(e,t){if(e){let i=e.includes,r=e.excludes;return t&&(i=i?.map(o=>t(o)),r=r?.map(o=>t(o))),new n(i,r,e.conjunction)}else return null}constructor(e,t,i){this.includes=e,this.excludes=t,this.conjunction=i}isValid(){return T4t(this)}clone(e=t=>t){let t=this.includes?this.includes.map(r=>e(r)):null,i=this.excludes?this.excludes.map(r=>e(r)):null;return new n(t,i,this.conjunction)}},T4t=n=>!!n?.conjunction&&(!!n?.includes&&n?.includes.length>=0||!!n?.excludes&&n?.excludes.length>=0);var y9=class n{static fromObj(e,t=i=>la.createFromString(i.value)){return e?new n(e.coordinate,e.value,e.description,e.administrativeDistrictIds?e.administrativeDistrictIds.map(i=>t(i)):null,e.postalCodes,e.conjunction):null}constructor(e,t,i,r,o,s){this.coordinate=e,this.value=t,this.description=i,this.administrativeDistrictIds=r,this.postalCodes=o,this.conjunction=s}isValid(){return A4t(this)}},A4t=n=>!!n?.conjunction&&!!n?.coordinate&&n?.value!==null,iz=class n extends tz{static fromObj(e,t=r=>r,i=r=>la.createFromString(r.value)){return new n(e.includes?e.includes.map(r=>t(r)):null,e.excludes?e.excludes.map(r=>t(r)):null,e.administrativeDistrictIds?e.administrativeDistrictIds.map(r=>i(r)):null,e.postalCodes,e.conjunction)}constructor(e,t,i,r,o){super(e,t,o),this.administrativeDistrictIds=i,this.postalCodes=r}};var Gi=class{static fromObject(e){throw new Error}static new(){throw new Error}constructor(e){this.type=e}equals(e){return!!e&&this.type===e.type}hasRelativeTimeSelection(){return!1}getChildResources(){return{}}overrideClone(e){return this.clone()}getOverrideProperties(e,t){return[]}};var oYe={type:"codes-at",category:"case",displayName:{de:"Ziffer-Spektra"},sortingIndex:8,occurrence:"multiple"},b9=(()=>{let e=class e extends Gi{static fromObject(i){let r=i.codingSystem||"ICD-10-AT",o=i.matching||"exact",s;return i.codeTypeSpecification?s=i.codeTypeSpecification:r==="ICD-10-AT"&&(s="mainDiagnosis"),Promise.resolve(new e(i.codeSpectrumIds||[],r,s,o,i.includes))}static new(){return Promise.resolve(new e([],"ICD-10-AT"))}constructor(i,r,o,s="exact",c=!0,h=[]){super(oYe.type),this.codeSpectrumIds=i,this.codingSystem=r,this.codeTypeSpecification=o,this.matching=s,this.includes=c,this.codes=h}clone(){return new e([...this.codeSpectrumIds],this.codingSystem,this.codeTypeSpecification,this.matching,this.includes,this.codes?[...this.codes.map(i=>i.clone())]:null)}equals(i){return super.equals(i)&&hn.equals(this.codeSpectrumIds,i.codeSpectrumIds)&&sr.equals(this.codingSystem,i.codingSystem)&&sr.equals(this.codeTypeSpecification,i.codeTypeSpecification)&&sr.equals(this.matching,i.matching)&&sr.equals(this.includes,i.includes)}getChildResources(){let i=[];return this.codeSpectrumIds.forEach(r=>{i.indexOf(r)===-1&&i.push(r)}),{[Bn.AT_CODE_SPECTRUM]:i}}toText(){return this.codeSpectrumIds.length===1?"ein Ziffer-Spektrum":`${this.codeSpectrumIds.length} Ziffer-Spektra`}toJSON(){return{type:this.type,codingSystem:this.codingSystem,codeSpectrumIds:this.codeSpectrumIds,codeTypeSpecification:this.codeTypeSpecification,matching:this.matching,includes:this.includes}}toValue(){return this}toCondition(i){if(!i.codeSpectraAt)throw new Error("Missing dependency resolver: CODE_SPECTRA_AT");return i.codeSpectraAt.resolve({codeSpectrumIds:this.codeSpectrumIds,codingSystem:this.codingSystem}).then(o=>{this.codes=o;let s=null;switch(this.codingSystem){case"ICD-10-AT":s=this._toIcd10AtCondition();break;case"PROCEDURE-AT":s=this._toProcedureAtCondition();break;default:throw new Error(`Invalid coding system: ${this.codingSystem}`)}return s})}_toIcd10AtCondition(){let i=this.codeTypeSpecification,r;switch(i){case"secondaryDiagnosis":{r=this._toSecondaryDiagnosisCondition();break}default:{r=this._toMainDiagnosisCondition();break}}return this.includes?r.includes=this.codes:r.excludes=this.codes,r}_toMainDiagnosisCondition(){return this.matching==="exact"?new K3([],[]):new W3([],[])}_toSecondaryDiagnosisCondition(){return this.matching==="exact"?new Q3([],[]):new X3([],[])}_toProcedureAtCondition(){let i=this.matching==="exact"?new xoe([],[]):new woe([],[]);return this.includes?i.includes=this.codes:i.excludes=this.codes,i}};e.TYPE=oYe;let n=e;return n})();var sYe={type:"fondsrelevanzAT",category:"case",displayName:{de:"Fondsrelevanz"},sortingIndex:11,occurrence:"multiple"},x9=(()=>{let e=class e extends Gi{static fromObject(i){return Promise.resolve(new e(i.fondsrelevanz))}static new(){return Promise.resolve(new e([]))}constructor(i){super(sYe.type),this._fondsrelevanz=i}toCondition(){return Promise.resolve(new boe(this._fondsrelevanz,[]))}toJSON(){return{type:this.type,fondsrelevanz:this._fondsrelevanz}}toText(){return"Fondsrelevanz"}toValue(){return this._fondsrelevanz}equals(i){return super.equals(i)&&hn.equals(this._fondsrelevanz,i._fondsrelevanz)}clone(){return new e(this._fondsrelevanz)}};e.TYPE=sYe;let n=e;return n})();var aYe={type:"admissionType1",category:"case",displayName:{de:"Aufnahmeart 1"},sortingIndex:2,occurrence:"single"},w9=(()=>{let e=class e extends Gi{static fromObject(i){return Promise.resolve(new e(i.admissionType1))}static new(){return Promise.resolve(new e([]))}constructor(i){super(aYe.type),this._admissionType1=i}clone(){return new e([...this._admissionType1])}equals(i){return super.equals(i)&&hn.equals(this._admissionType1,i._admissionType1)}toCondition(){return Promise.resolve(new _oe(this._admissionType1,[]))}toText(){return this._admissionType1.length===1?"eine Aufnahmeart 1":`${this._admissionType1.length} Aufnahmearten 1`}toJSON(){return{type:this.type,admissionType1:this._admissionType1}}toValue(){return this._admissionType1}};e.TYPE=aYe;let n=e;return n})();var lYe={type:"admissionType2",category:"case",displayName:{de:"Aufnahmeart 2"},sortingIndex:3,occurrence:"single"},C9=(()=>{let e=class e extends Gi{static fromObject(i){return Promise.resolve(new e(i.admissionType2))}static new(){return Promise.resolve(new e([]))}constructor(i){super(lYe.type),this._admissionType2=i}clone(){return new e([...this._admissionType2])}equals(i){return super.equals(i)&&hn.equals(this._admissionType2,i._admissionType2)}toCondition(){return Promise.resolve(new voe(this._admissionType2,[]))}toText(){return this._admissionType2.length===2?"eine Aufnahmeart 2":`${this._admissionType2.length} Aufnahmearten 2`}toJSON(){return{type:this.type,admissionType2:this._admissionType2}}toValue(){return this._admissionType2}};e.TYPE=lYe;let n=e;return n})();var cYe={type:"dismissalType",category:"case",displayName:{de:"Entlassart"},sortingIndex:9,occurrence:"single"},S9=(()=>{let e=class e extends Gi{static fromObject(i){return Promise.resolve(new e(i.dismissalType))}static new(){return Promise.resolve(new e([]))}constructor(i){super(cYe.type),this._dismissalType=i}clone(){return new e([...this._dismissalType])}equals(i){return super.equals(i)&&hn.equals(this._dismissalType,i._dismissalType)}toCondition(){return Promise.resolve(new yoe(this._dismissalType,[]))}toText(){return this._dismissalType.length===2?"eine Entlassart":`${this._dismissalType.length} Entlassarten`}toJSON(){return{type:this.type,dismissalType:this._dismissalType}}toValue(){return this._dismissalType}};e.TYPE=cYe;let n=e;return n})();var uYe={type:"treatmentType",category:"case",displayName:{de:"Behandlungsart"},sortingIndex:1,occurrence:"single"},E9=(()=>{let e=class e extends Gi{static fromObject(i){return Promise.resolve(new e(i.treatmentType))}static new(){return Promise.resolve(new e([]))}constructor(i){super(uYe.type),this._treatmentType=i}clone(){return new e([...this._treatmentType])}equals(i){return super.equals(i)&&hn.equals(this._treatmentType,i._treatmentType)}toCondition(){return Promise.resolve(new Coe(this._treatmentType,[]))}toText(){return this._treatmentType.length===2?"eine Behandlungsart":`${this._treatmentType.length} Behandlungsarten`}toJSON(){return{type:this.type,treatmentType:this._treatmentType}}toValue(){return this._treatmentType}};e.TYPE=uYe;let n=e;return n})();var fse=class{static fromObject(e,t){switch(e.kind){case"AND":return nz.fromObject(e,t);case"OR":return I9.fromObject(e,t);default:throw new Error(`Missing implementation for FilterConditionCombinations.fromObject for input[${JSON.stringify(e)}]`)}}},mse=class{static fromObject(e,t){throw new Error}constructor(e){this.expression=e,this.type="combination"}equals(e){return sr.equals(this,e,(t,i)=>t.type===i.type)&&sr.equals(this.kind,e.kind)&&sr.equals(this.expression,e.expression,(t,i)=>t.length===i.length)&&this.expression.every((t,i)=>ta.equals(t,e.expression.at(i)))}getChildResources(){return this.expression.map(e=>e.getChildResources()).reduce((e,t)=>El.merge(e,t),{})}getOverrideProperties(e,t){return this.expression.map(i=>i.getOverrideProperties(e,t)).reduce((i,r)=>[...i,...r],[])}hasRelativeTimeSelection(){return this.expression.some(e=>e.hasRelativeTimeSelection())}toJSON(){return{type:this.type,kind:this.kind,expression:this.expression.filter(e=>!!e).map(e=>e.toJSON())}}toText(){return this.expression.filter(e=>!!e).map(e=>e.type==="combination"?`( ${e.toText()} )`:e.toText()).join(` ${this.kindToText()} `)}},nz=class n extends mse{static fromObject(e,t){return Promise.all(e.expression.map(i=>ta.fromObject(i,t))).then(i=>new n(i))}constructor(e){super(e),this.kind="AND"}clone(){return new n([...this.expression.map(e=>e.clone())])}overrideClone(e){return new n(this.expression.map(t=>t.overrideClone(e)).filter(t=>!!t))}toCondition(e){return Promise.all(this.expression.map(t=>t.toCondition(e))).then(t=>new Kd(t))}kindToText(){return"und"}},I9=class n extends mse{static fromObject(e,t){return Promise.all(e.expression.map(i=>ta.fromObject(i,t))).then(i=>new n(i))}constructor(e){super(e),this.kind="OR"}clone(){return new n([...this.expression.map(e=>e.clone())])}overrideClone(e){return new n(this.expression.map(t=>t.overrideClone(e)).filter(t=>!!t))}toCondition(e){return Promise.all(this.expression.map(t=>t.toCondition(e))).then(t=>new _A(t))}kindToText(){return"oder"}};var ta=class n{static EMPTY(){return new nz([])}static equals(e,t){return sr.equals(e,t,()=>{if(e.type!==t.type)return!1;switch(e.type){case"combination":return e.equals(t);default:return e.equals(t)}})}static fromObject(e,t){if(!e.type)throw new Error(`${n.name}.fromObject not possible for input [${JSON.stringify(e)}]`);switch(e.type){case"combination":return fse.fromObject(e,t);default:return t(e)}}static withoutType(e,t){switch(e.type){case"combination":{let i=e;return i.expression=i.expression.map(r=>n.withoutType(r,t)).filter(r=>!!r),i}default:return e.type===t.type?null:e}}static findAll(e,t){switch(t.type){case"combination":return t.expression.map(i=>this.findAll(e,i)).flat();case e.type:return[t];default:return[]}}static and(e,t){return e.type==="combination"&&e.kind==="AND"?(e.expression.push(t),e):t.type==="combination"&&t.kind==="AND"?(t.expression.push(e),t):new nz([e,t])}static or(e,t){return e.type==="combination"&&e.kind==="OR"?(e.expression.push(t),e):t.type==="combination"&&t.kind==="OR"?(t.expression.push(e),t):new I9([e,t])}static formatter(e){switch(e.type){case"combination":{let t=e.kindToText();return e.expression.map(i=>({kind:t,expressionText:this.formatter(i)}))}default:return e.toText()}}};var gse={type:"administrativeDistrictIds",category:"person",displayName:{de:"Landkreise"},sortingIndex:4,occurrence:"single"},Xp=(()=>{let e=class e extends Gi{static fromObject(i){return Promise.resolve(new e(i.administrativeDistrictIds.map(r=>la.create(r))))}static new(){return Promise.resolve(new e([]))}constructor(i){super(gse.type),this.administrativeDistrictIds=i}clone(){return new e([...this.administrativeDistrictIds.map(i=>i.clone())])}equals(i){return super.equals(i)&&hn.equals(this.administrativeDistrictIds,i.administrativeDistrictIds,(r,o)=>r.value===o.value)}toCondition(){return Promise.resolve(new hA(this.administrativeDistrictIds,[]))}toJSON(){return{type:this.type,administrativeDistrictIds:this.administrativeDistrictIds.map(i=>i.getNumericValue())}}toText(){return this.administrativeDistrictIds.length===1?"ein Landkreis":`${this.administrativeDistrictIds.length} Landkreise`}toValue(){return this.administrativeDistrictIds}};e.TYPE=gse;let n=e;return n})();var _se={type:"administrativeRegionIds",category:"person",displayName:{de:"Regierungsbezirke"},sortingIndex:2,occurrence:"single"},cg=(()=>{let e=class e extends Gi{static fromObject(i){return Promise.resolve(new e(i.administrativeRegionIds))}static new(){return Promise.resolve(new e([]))}constructor(i){super(_se.type),this.administrativeRegionIds=i}clone(){return new e([...this.administrativeRegionIds])}equals(i){return super.equals(i)&&hn.equals(this.administrativeRegionIds,i.administrativeRegionIds)}toCondition(){return Promise.resolve(new hoe(this.administrativeRegionIds,[]))}toJSON(){return{type:this.type,administrativeRegionIds:this.administrativeRegionIds}}toText(){return this.administrativeRegionIds.length===1?"ein Regierungsbezirk":`${this.administrativeRegionIds.length} Regierungsbezirke`}toValue(){return this.administrativeRegionIds}};e.TYPE=_se;let n=e;return n})();var dYe={type:"admissionCauses",category:"case",displayName:{de:"Aufnahmeanlass"},sortingIndex:8,occurrence:"single"},RR=(()=>{let e=class e extends Gi{static fromObject(i){return Promise.resolve(new e(i.admissionCauses))}static new(){return Promise.resolve(new e([]))}constructor(i){super(dYe.type),this.admissionCauses=i}clone(){return new e([...this.admissionCauses.slice()])}equals(i){return super.equals(i)&&hn.equals(this.admissionCauses,i.admissionCauses)}toCondition(){return Promise.resolve(new poe(this.admissionCauses,[]))}toJSON(){return{type:this.type,admissionCauses:this.admissionCauses}}toText(){return this.admissionCauses.length===1?"ein Aufnahmeanlass":`${this.admissionCauses.length} Aufnahmeanl\xE4sse`}toValue(){return this.admissionCauses}};e.TYPE=dYe;let n=e;return n})();var hYe={type:"admissionDate",category:"case",displayName:{de:"Aufnahmedatum"},sortingIndex:8,occurrence:"multiple"},T9=(()=>{let e=class e extends Gi{static fromObject(i){return Promise.resolve(new e($T.fromObject(i.timeSelection)))}static new(){return Promise.resolve(new e(new Xb(new ep(new Date,new Date))))}constructor(i){super(hYe.type),this.timeSelection=i}hasRelativeTimeSelection(){return this.timeSelection.type==="relative"}toCondition(){switch(this.timeSelection.type){case"relative":{let i=this.timeSelection;return Promise.resolve(new Z3(i.intervalRelative))}default:{let i=this.timeSelection;return Promise.resolve(new EC(i.interval))}}}toJSON(){return{type:this.type,timeSelection:this.timeSelection.toJSON()}}toText(){return"Aufnahmedatum"}toValue(){return this.timeSelection}getOverrideProperties(i,r){return[new Jl(i,"admissionDate",this.timeSelection,this.timeSelection,"possible",void 0,(o,s)=>o.equals(s),o=>o.clone())]}overrideClone(i){let r=ec.overrideProperty(this.timeSelection,"admissionDate",i,o=>o.clone());return r?new e(r):null}equals(i){return super.equals(i)&&this.timeSelection.equals(i.timeSelection)}clone(){return new e(this.timeSelection.clone())}};e.TYPE=hYe;let n=e;return n})();var pYe={type:"admissionReasons",category:"case",displayName:{de:"Aufnahmegrund"},sortingIndex:8,occurrence:"single"},NR=(()=>{let e=class e extends Gi{static fromObject(i){return Promise.resolve(new e(i.admissionReasons))}static new(){return Promise.resolve(new e([]))}constructor(i){super(pYe.type),this.admissionReasons=i}clone(){return new e([...this.admissionReasons])}equals(i){return super.equals(i)&&hn.equals(this.admissionReasons,i.admissionReasons)}toCondition(){return Promise.resolve(new foe(this.admissionReasons,[]))}toJSON(){return{type:this.type,admissionReasons:this.admissionReasons}}toText(){return this.admissionReasons.length===1?"ein Aufnahmegrund":`${this.admissionReasons.length} Aufnahmegr\xFCnde`}toValue(){return this.admissionReasons}};e.TYPE=pYe;let n=e;return n})();var vse={type:"ageGroups",category:"person",displayName:{de:"Altersgruppen"},sortingIndex:8,occurrence:"single"},ug=(()=>{let e=class e extends Gi{static fromObject(i){return Promise.resolve(new e(i.agm))}static new(){return Promise.resolve(new e([]))}constructor(i){super(vse.type),this.agm=i}clone(){return new e([...this.agm])}equals(i){return super.equals(i)&&hn.equals(this.agm,i.agm)}toCondition(){return Promise.resolve(new moe(this.agm,[]))}toJSON(){return{type:this.type,agm:this.agm}}toText(){return this.agm.length===1?"eine Altersgruppe":`${this.agm.length} Altersgruppen`}toValue(){return this.agm}};e.TYPE=vse;let n=e;return n})();var D4t=["1","1.1","2","2.1","3","3.1","4","4.1","5","5.1","6","6.1","7","7.1","7.2","8","8.1","8.2","8.3","8.4","9","9.1","10","10.1","11","11.1","12","12.1","12.2","12.3","13","13.1","13.2","14","14.1","14.2","14.3","14.4","14.5","15","15.1","16","16.1","16.2","16.3","16.4","16.5","17","17.1","18","18.1","19","19.1","20","20.1","21","21.1","21.2","21.3","21.4","22","22.1","22.2","22.3","23","23.1","23.2","23.3","24","24.1","24.2","25","25.1","26","26.1","26.2","26.3","27","27.1","28","28.1","29","29.1","30","30.1","30.2","30.3","30.4","30.5","30.6","31","31.1","31.2","32","32.1","32.2"],dTe=class{constructor(e,t){this.id=e,this.name=t}parent(){if(this.isLeistungsgruppe()){let e=this.id.slice(0,this.id.indexOf("."));return fYe.find(t=>t.id===e)}else return}children(){return this.isLeistungsbereich()?fYe.filter(e=>e.isLeistungsgruppe()).filter(e=>e.parent()?.id===this.id):[]}isLeistungsbereich(){return!this.id.includes(".")}isLeistungsgruppe(){return this.id.includes(".")}},k4t={1:"Allgemeine Innere Medizin","1.1":"Allgemeine Innere Medizin",2:"Endokrinologie und Diabetologie","2.1":"Komplexe Endokrinologie und Diabetologie",3:"Gastroenterologie","3.1":"Komplexe Gastroenterologie",4:"Nephrologie","4.1":"Komplexe Nephrologie",5:"Pneumologie","5.1":"Komplexe Pneumologie",6:"Rheumatologie","6.1":"Komplexe Rheumatologie",7:"H\xE4matologie und Onkologie","7.1":"Stammzelltransplantation","7.2":"Leuk\xE4mie und Lymphome",8:"Kardiologie","8.1":"EPU/Ablation","8.2":"Interventionelle Kardiologie","8.3":"Kardiale Devices","8.4":"Minimalinvasive Herzklappeninvervention",9:"Allgemeine Chirurgie","9.1":"Allgemeine Chirurgie",10:"Kinder- und Jugendchirurgie","10.1":"Kinder- und Jugendchirurgie",11:"Plastische und Rekonstruktive Chirurgie","11.1":"Plastische und Rekonstruktive Chirurgie",12:"Gef\xE4\xDFmedizin","12.1":"Bauchaortenaneurysma","12.2":"Carotis operativ/ interventionell","12.3":"Komplexe periphere arterielle Gef\xE4\xDFe",13:"Herzchirurgie","13.1":"Herzchirurgie","13.2":"Herzchirurgie - Kinder und Jugendliche",14:"Orthop\xE4die und Unfallchirurgie","14.1":"Endoprothetik H\xFCfte","14.2":"Endoprothetik Knie","14.3":"Revision H\xFCftendoprothese","14.4":"Revision Knieendoprothese","14.5":"Wirbels\xE4uleneingriffe",15:"Thoraxchirurgie","15.1":"Thoraxchirurgie",16:"Viszeralchirurgie","16.1":"Bariatrische Chirurgie","16.2":"Lebereingriffe","16.3":"\xD6sophaguseingriffe","16.4":"Pankreaseingriffe","16.5":"Tiefe Rektumeingriffe",17:"Augenheilkunde","17.1":"Augenheilkunde",18:"Haut- und Geschlechtskrankheiten","18.1":"Haut- und Geschlechtskrankheiten",19:"MKG","19.1":"MKG",20:"Urologie","20.1":"Urologie",21:"Frauenheilkunde und Geburtshilfe","21.1":"Allgemeine Frauenheilkunde","21.2":"Ovarial-CA","21.3":"Senologie","21.4":"Geburten",22:"Neonatologie","22.1":"Perinataler Schwerpunkt","22.2":"Perinatalzentrum Level 1","22.3":"Perinatalzentrum Level 2",23:"Kinder- und Jugendmedizin","23.1":"Allgemeine Kinder- und Jugendmedizin","23.2":"Kinder-H\xE4matologie und -Onkologie - Stammzelltransplantation","23.3":"Kinder-H\xE4matologie und -Onkologie - Leuk\xE4mie und Lymphome",24:"HNO","24.1":"HNO","24.2":"Cochleaimplantate",25:"Neurochirurgie","25.1":"Neurochirurgie",26:"Neurologie","26.1":"Allgemeine Neurologie","26.2":"Stroke Unit","26.3":"Neuro-Fr\xFChreha (NNF, Phase B)",27:"Geriatrie","27.1":"Geriatrie",28:"Intensivmedizin","28.1":"Intensivmedizin",29:"Palliativmedizin","29.1":"Palliativmedizin",30:"Transplantation solider Organe","30.1":"Darmtransplantation","30.2":"Herztransplantation","30.3":"Lebertransplantation","30.4":"Lungentransplantation","30.5":"Nierentransplantation","30.6":"Pankreastransplantation",31:"Psychiatrie und Psychotherapie und Psychosomatische Medizin und Psychotherapie","31.1":"Psychiatrie und Psychotherapie und Psychosomatische Medizin und Psychotherapie - vollstation\xE4r","31.2":"Psychiatrie und Psychotherapie und Psychosomatische Medizin und Psychotherapie - teilstation\xE4r",32:"Kinder- und Jugendpsychiatrie und -psychotherapie","32.1":"Kinder- und Jugendpsychiatrie und -psychotherapie - vollstation\xE4r","32.2":"Kinder- und Jugend-psychiatrie und -psychotherapie - teilstation\xE4r"},fYe=D4t.map(n=>new dTe(n,k4t[n]));var rz=class n{static fromObj(e){let t=e.modifiedDate?this.fixUTC(new Date(e.modifiedDate)):null,i=e.createdDate?this.fixUTC(new Date(e.createdDate)):null;return new n(e.id,e.originalFileName,e.errorRecipientEmailAddress,e.recipientEmailAddress,e.fabSelectionStrategy,e.status,e.virtualClinicId,e.blobReference,i,t)}static fixUTC(e){return e.setHours(e.getHours()+2),e}constructor(e,t,i,r,o,s,c,h,g,x){this.id=e,this.name=t,this.errorRecipientEmailAddress=i,this.recipientEmailAddress=r,this.fabSelectionStrategy=o,this.status=s,this.virtualClinicId=c,this.blobReference=h,this.createdDate=g,this.modifiedDate=x,this.resourceName=Bn.VIRTUAL_CLINIC_P21_IMPORT}clone(){return new n(this.id,this.name,this.errorRecipientEmailAddress,this.recipientEmailAddress,this.fabSelectionStrategy,this.status,this.virtualClinicId,Ce({},this.blobReference),this.createdDate,this.modifiedDate)}};var A9=class n{static fromObj(e){return new n(e.id,e.originalFileName,e.importCaseCount,e.relevantCaseCount,e.errorRecipientEmailAddress,e.recipientEmailAddress,e.status,e.virtualClinicId,e.blobReference,e.createdDate,e.modifiedDate,e.year)}constructor(e,t,i,r,o,s,c,h,g,x,C,A){this.id=e,this.name=t,this.importCaseCount=i,this.relevantCaseCount=r,this.errorRecipientEmailAddress=o,this.recipientEmailAddress=s,this.status=c,this.virtualClinicId=h,this.blobReference=g,this.createdDate=x,this.modifiedDate=C,this.year=A,this.resourceName=Bn.VIRTUAL_CLINIC_REFERRAL_IMPORT}clone(){return new n(this.id,this.name,this.importCaseCount,this.relevantCaseCount,this.errorRecipientEmailAddress,this.recipientEmailAddress,this.status,this.virtualClinicId,Ce({},this.blobReference),this.createdDate,this.modifiedDate,this.year)}};var PR=class n{constructor(e,t,i,r,o){this.fabKey=e,this.id=t,this.virtualClinicId=i,this.name=r,this.fabIntern=o}static fromObj(e){return new n(e.fabKey,e.id,e.virtualClinicId,e.name,e.fabIntern)}static fromObjArr(e){return e.map(n.fromObj)}};var ux=class n{static fromObj(e){let t=null,i=null,r;e.createdDate&&(t=new Date(e.createdDate)),e.modifiedDate&&(i=new Date(e.modifiedDate)),e.administrativeDistrictId!==0&&e.address&&e.address.city&&(r=yse.fromObject(e.address));let o=e.clinicInformation?hTe.fromObject(e.clinicInformation):void 0;return new n(e.id,e.name,t,i,e.highestPermission,r,o,e.benchmarkable,void 0)}static fromObjArr(e){return e.map(n.fromObj)}constructor(e,t,i,r,o,s,c,h,g,x){this.id=e,this.name=t,this.createdDate=i,this.modifiedDate=r,this.highestPermission=o,this.address=s,this.clinicInformation=c,this.benchmarkable=h,this.hasError=g,this.labels=x,this.resourceName=Bn.VIRTUAL_CLINIC}clone(){return new n(this.id,this.name,this.createdDate,this.modifiedDate,this.highestPermission,this.address?.clone(),this.clinicInformation?.clone(),this.benchmarkable,this.hasError,this.labels?[...this.labels]:void 0)}},hTe=class n{static fromObject(e){let t;return e&&e.dismissalDateRange&&(t=new ep(new Date(e.dismissalDateRange.from),new Date(e.dismissalDateRange.to))),new n(e.origin,e.costDataExists,e.postalCodeExists,e.referralDataExists,t)}constructor(e,t,i,r,o){this.origin=e,this.costDataExists=t,this.postalCodeExists=i,this.referralDataExists=r,this.dismissalDateRange=o}clone(...e){return new n(JSON.parse(JSON.stringify(this.origin)),this.costDataExists,this.postalCodeExists,this.referralDataExists,this.dismissalDateRange?this.dismissalDateRange.clone():void 0)}toLabels(){let e=[];return this.postalCodeExists&&e.push("PLZ-Analyse"),this.costDataExists&&e.push("Kosten-Daten"),this.referralDataExists&&e.push("Einweiser-Daten"),e}},yse=class n{static fromObject(e){return new n(e.street,e.houseNumber,e.postalCode,e.city,e.country,e.location,e.administrativeDistrictId?la.create(e.administrativeDistrictId):null)}constructor(e,t,i,r,o,s,c){this.street=e,this.houseNumber=t,this.postalCode=i,this.city=r,this.country=o,this.location=s,this.administrativeDistrictId=c}isEmpty(){return this.street===void 0&&this.houseNumber===void 0&&this.city===void 0&&this.postalCode===void 0}toString(){return`${this.street} ${this.houseNumber}, ${this.postalCode} ${this.city}`}clone(){return new n(this.street,this.houseNumber,this.postalCode,this.city,this.country,this.location,this.administrativeDistrictId?.clone())}};var D9=class n{static fromObject(e={}){return new n(e.from,e.to)}constructor(e,t){this.from=e,this.to=t}equals(e){return this.to===e.to&&this.from===e.from}clone(){return new n(this.from,this.to)}};var mYe={type:"artificialRespirationHours",category:"case",displayName:{de:"K\xFCnstliche Beatmung"},sortingIndex:8,occurrence:"single"},FR=(()=>{let e=class e extends Gi{static fromObject(i){return Promise.resolve(new e(D9.fromObject(i.artificialRespirationHours)))}static new(){return Promise.resolve(new e(new D9(null,null)))}constructor(i){super(mYe.type),this.artificialRespirationHours=i}clone(){return new e(this.artificialRespirationHours.clone())}equals(i){return super.equals(i)&&sr.equals(this.artificialRespirationHours,i.artificialRespirationHours,(r,o)=>r.equals(o))}toCondition(){let i=new Kd;return(this.artificialRespirationHours.from||this.artificialRespirationHours.from===0)&&i.conditions.push(new p9(this.artificialRespirationHours.from,B_.GREATER_OR_EQUAL)),(this.artificialRespirationHours.to||this.artificialRespirationHours.to===0)&&i.conditions.push(new p9(this.artificialRespirationHours.to,B_.LESS_OR_EQUAL)),Promise.resolve(i)}toJSON(){return{type:this.type,artificialRespirationHours:this.artificialRespirationHours}}toText(){return"Kriterien f\xFCr k\xFCnstliche Beatmung"}toValue(){return this.artificialRespirationHours}};e.TYPE=mYe;let n=e;return n})();var bse={type:"careServiceAreaIds",category:"person",displayName:{de:"Versorgungsgebiete"},sortingIndex:3,occurrence:"single"},dg=(()=>{let e=class e extends Gi{static fromObject(i){return Promise.resolve(new e(i.careServiceAreaIds))}static new(){return Promise.resolve(new e([]))}constructor(i){super(bse.type),this.careServiceAreaIds=i}clone(){return new e([...this.careServiceAreaIds])}equals(i){return super.equals(i)&&hn.equals(this.careServiceAreaIds,i.careServiceAreaIds)}toCondition(){return Promise.resolve(new Eoe(this.careServiceAreaIds,[]))}toJSON(){return{type:this.type,careServiceAreaIds:this.careServiceAreaIds}}toText(){return this.careServiceAreaIds.length===1?"ein Versorgungsgebiet":`${this.careServiceAreaIds.length} Versorgungsgebiete`}toValue(){return this.careServiceAreaIds}};e.TYPE=bse;let n=e;return n})();var gYe={type:"chargeRealm",category:"case",displayName:{de:"Entgeltbereich"},sortingIndex:8,occurrence:"multiple"},LR=(()=>{let e=class e extends Gi{static fromObject(i){return Promise.resolve(new e(i.includes))}static new(){return Promise.resolve(new e([]))}constructor(i){super(gYe.type),this.includes=i}clone(){return new e([...this.includes])}equals(i){return super.equals(i)&&hn.equals(this.includes,i.includes)}toCondition(){return Promise.resolve(new Ioe(this.includes,[]))}toJSON(){return{type:this.type,includes:this.includes}}toText(){return this.includes.length===0?"alle Entgeltbereiche":this.includes.length===1?"ein Entgeltbereich":`${this.includes.length} Entgeltbereiche`}toValue(){return this.includes}};e.TYPE=gYe;let n=e;return n})();var _Ye={type:"clinicBeds",category:"clinic",displayName:{de:"Klinik-Betten"},sortingIndex:8,occurrence:"single"},BR=(()=>{let e=class e extends Gi{static fromObject(i){return Promise.resolve(new e(i.from,i.to))}static new(){return Promise.resolve(new e(null,null))}constructor(i,r){super(_Ye.type),this.from=i,this.to=r}clone(){return new e(this.from,this.to)}equals(i){return super.equals(i)&&sr.equals(this.from,i.from)&&sr.equals(this.to,i.to)}toCondition(){return Promise.resolve(new Toe(this.from,this.to))}toJSON(){return{type:this.type,from:this.from,to:this.to}}toText(){return this.from!=null||this.from!=null?this.to!=null||this.to!=null?`Kliniken zwischen ${Lc.format(this.from)} und ${Lc.format(this.to)} Betten`:`Kliniken ab ${Lc.format(this.from)} Betten`:`Kliniken bis ${Lc.format(this.to)} Betten`}toValue(){return{from:this.from,to:this.to}}};e.TYPE=_Ye;let n=e;return n})();var vYe={type:"clinicDeviceProvision",category:"clinic",displayName:{de:"Qualit\xE4tskriterien - Ger\xE4tevorhaltung"},sortingIndex:8,occurrence:"multiple"},zR=(()=>{let e=class e extends Gi{static fromObject(i){return Promise.resolve(new e(i.nrwServiceGroupId,i.qualification))}static new(){return Promise.resolve(new e(null,null))}constructor(i,r){super(vYe.type),this.nrwServiceGroupId=i,this.qualification=r}clone(){return new e(this.nrwServiceGroupId,this.qualification)}equals(i){return super.equals(i)&&sr.equals(this.nrwServiceGroupId,i.nrwServiceGroupId)&&sr.equals(this.qualification,i.qualification)}toCondition(){return Promise.resolve(new Aoe(this.nrwServiceGroupId,this.qualification))}toJSON(){return{type:this.type,nrwServiceGroupId:this.nrwServiceGroupId,qualification:this.qualification}}toText(){return"Qualit\xE4tskriterien - Ger\xE4tevorhaltung"}toValue(){return{nrwServiceGroupId:this.nrwServiceGroupId,qualification:this.qualification}}};e.TYPE=vYe;let n=e;return n})();var yYe={type:"clinicLevels",category:"clinic",displayName:{de:"Versorgungslevel"},sortingIndex:8,occurrence:"single"},VR=(()=>{let e=class e extends Gi{static fromObject(i){return Promise.resolve(new e(i.includes))}static new(){return Promise.resolve(new e([]))}constructor(i){super(yYe.type),this.includes=i}clone(){return new e([...this.includes])}equals(i){return super.equals(i)&&hn.equals(this.includes,i.includes)}toCondition(){return Promise.resolve(new Doe(this.includes,[]))}toJSON(){return{type:this.type,includes:this.includes}}toText(){return this.includes.length===1?"ein Versorgungslevel":`${this.includes.length} Versorgungslevel`}toValue(){return{includes:this.includes}}};e.TYPE=yYe;let n=e;return n})();var bYe={type:"medicalCareLevels",category:"clinic",displayName:{de:"Versorgungsstufe"},sortingIndex:8,occurrence:"single"},k9=(()=>{let e=class e extends Gi{static fromObject(i){return Promise.resolve(new e(i.medicalCareLevels))}static new(){return Promise.resolve(new e([]))}constructor(i){super(bYe.type),this.medicalCareLevels=i}clone(){return new e([...this.medicalCareLevels])}equals(i){return super.equals(i)&&hn.equals(this.medicalCareLevels,i.medicalCareLevels)}toCondition(){return Promise.resolve(new ese(this.medicalCareLevels,[]))}toJSON(){return{type:this.type,medicalCareLevels:this.medicalCareLevels}}toText(){return this.medicalCareLevels.length===1?"eine Versorgungsstufe":`${this.medicalCareLevels.length} Versorgungsstufen`}toValue(){return this.medicalCareLevels}};e.TYPE=bYe;let n=e;return n})();var xYe={type:"clinicPhysicianRequirements",category:"clinic",displayName:{de:"Qualit\xE4tskriterien - Fach\xE4rtzliche Vorgaben"},sortingIndex:8,occurrence:"multiple"},UR=(()=>{let e=class e extends Gi{static fromObject(i){return Promise.resolve(new e(i.nrwServiceGroupId,i.qualification,i.availability))}static new(){return Promise.resolve(new e(null,null,null))}constructor(i,r,o){super(xYe.type),this.nrwServiceGroupId=i,this.qualification=r,this.availability=o}clone(){return new e(this.nrwServiceGroupId,this.qualification,this.availability)}equals(i){return super.equals(i)&&sr.equals(this.nrwServiceGroupId,i.nrwServiceGroupId)&&sr.equals(this.availability,i.availability)&&sr.equals(this.qualification,i.qualification)}toCondition(){return Promise.resolve(new koe(this.nrwServiceGroupId,this.qualification,this.availability))}toJSON(){return{type:this.type,nrwServiceGroupId:this.nrwServiceGroupId,availability:this.availability,qualification:this.qualification}}toText(){return"Qualit\xE4tskriterien - Fach\xE4rtzliche Vorgaben"}toValue(){return{nrwServiceGroupId:this.nrwServiceGroupId,qualification:this.qualification,availability:this.availability}}};e.TYPE=xYe;let n=e;return n})();var wYe={type:"clinicSizes",category:"clinic",displayName:{de:"Klinik-Gr\xF6\xDFe"},sortingIndex:8,occurrence:"single"},jR=(()=>{let e=class e extends Gi{static fromObject(i){return Promise.resolve(new e(i.clinicSizes))}static new(){return Promise.resolve(new e([]))}constructor(i){super(wYe.type),this.clinicSizes=i}clone(){return new e([...this.clinicSizes])}equals(i){return super.equals(i)&&hn.equals(this.clinicSizes,i.clinicSizes)}toCondition(){return Promise.resolve(new Moe(this.clinicSizes,[]))}toJSON(){return{type:this.type,clinicSizes:this.clinicSizes}}toText(){return this.clinicSizes.length===1?"eine Klinik-Gr\xF6\xDFe":`${this.clinicSizes.length} Klinik-Gr\xF6\xDFen`}toValue(){return this.clinicSizes}};e.TYPE=wYe;let n=e;return n})();var CYe={type:"clinicSn",category:"clinic",displayName:{de:"Klinik-Standort"},sortingIndex:8,occurrence:"single"},HR=(()=>{let e=class e extends Gi{static fromObject(i){return Promise.resolve(new e(i.excludes))}static new(){return Promise.resolve(new e([99]))}constructor(i){super(CYe.type),this.excludes=i}clone(){return new e([...this.excludes])}equals(i){return super.equals(i)&&hn.equals(this.excludes,i.excludes)}toCondition(){return Promise.resolve(new Ooe([],this.excludes))}toJSON(){return{type:this.type,excludes:this.excludes}}toText(){return this.excludes.length===1?`ohne Klinik-Standort ${this.excludes[0]}`:`ohne ${this.excludes.length} Klinik-Standorte`}toValue(){return{excludes:this.excludes}}};e.TYPE=CYe;let n=e;return n})();var SYe={type:"clinicTypes",category:"clinic",displayName:{de:"Tr\xE4gerart"},sortingIndex:8,occurrence:"single"},DC=(()=>{let e=class e extends Gi{static fromObject(i){return Promise.resolve(new e(i.clinicTypes))}static new(){return Promise.resolve(new e([]))}constructor(i){super(SYe.type),this.clinicTypes=i}clone(){return new e([...this.clinicTypes])}equals(i){return super.equals(i)&&hn.equals(this.clinicTypes,i.clinicTypes)}toCondition(){return Promise.resolve(new Roe(this.clinicTypes,[]))}toJSON(){return{type:this.type,clinicTypes:this.clinicTypes}}toText(){return this.clinicTypes.length===1?"eine Tr\xE4gerart":`${this.clinicTypes.length} Tr\xE4gerarten`}toValue(){return this.clinicTypes}};e.TYPE=SYe;let n=e;return n})();var EYe={type:"universityType",category:"clinic",displayName:{de:"Universit\xE4tskliniken"},sortingIndex:8,occurrence:"single"},GR=(()=>{let e=class e extends Gi{static fromObject(i){return Promise.resolve(new e(i.universityType))}static new(){return Promise.resolve(new e(A3.WITH_UNIVERSITIES))}constructor(i){super(EYe.type),this.universityType=i}clone(){return new e(this.universityType)}toCondition(){return Promise.resolve(new lse(this.universityType))}toJSON(){return{type:this.type,universityType:this.universityType}}toText(){return"Universit\xE4tskliniken"}toValue(){return this.universityType}};e.TYPE=EYe;let n=e;return n})();var IYe={type:"codes",category:"case",displayName:{de:"Ziffer-Spektra"},sortingIndex:8,occurrence:"multiple"},YR=(()=>{let e=class e extends Gi{static fromObject(i){let r=i.codeType||"ICD",o=i.matching||"exact",s;return i.codeTypeSpecification?s=i.codeTypeSpecification:r==="ICD"&&(s="mainDiagnosis"),Promise.resolve(new e(i.codeSpectrumIds||[],r,o,s,i.codeTypeClassification,i.includes,i.grouperVersionYear))}static new(){return Promise.resolve(new e([],"OPS"))}constructor(i,r,o="exact",s,c,h=!0,g,x=[]){super(IYe.type),this.codeSpectrumIds=i,this.codeType=r,this.matching=o,this.codeTypeSpecification=s,this.codeTypeClassification=c,this.includes=h,this.grouperVersionYear=g,this.codes=x}clone(){return new e([...this.codeSpectrumIds],this.codeType?JSON.parse(JSON.stringify(this.codeType)):null,this.matching?JSON.parse(JSON.stringify(this.matching)):null,this.codeTypeSpecification?JSON.parse(JSON.stringify(this.codeTypeSpecification)):null,this.codeTypeClassification?JSON.parse(JSON.stringify(this.codeTypeClassification)):null,this.includes,this.grouperVersionYear,this.codes?[...this.codes.map(i=>i.clone())]:null)}equals(i){return super.equals(i)&&hn.equals(this.codeSpectrumIds,i.codeSpectrumIds)&&sr.equals(this.codeType,i.codeType)&&sr.equals(this.matching,i.matching)&&sr.equals(this.codeTypeClassification,i.codeTypeClassification,(r,o)=>sr.equals(r?.name,o?.name)&&sr.equals(r?.numberOfDigit,o?.numberOfDigit))&&sr.equals(this.codeTypeSpecification,i.codeTypeSpecification,(r,o)=>JSON.stringify(r)===JSON.stringify(o))&&sr.equals(this.includes,i.includes)&&sr.equals(this.grouperVersionYear,i.grouperVersionYear)}getChildResources(){let i=[];return this.codeSpectrumIds.forEach(r=>{i.indexOf(r)===-1&&i.push(r)}),{[Bn.CODE_SPECTRUM]:i}}toText(){return this.codeSpectrumIds.length===1?"ein Ziffer-Spektrum":`${this.codeSpectrumIds.length} Ziffer-Spektra`}toJSON(){return{type:this.type,codeSpectrumIds:this.codeSpectrumIds,codeType:this.codeType,codeTypeSpecification:this.codeTypeSpecification,codeTypeClassification:this.codeTypeClassification,matching:this.matching,includes:this.includes,grouperVersionYear:this.grouperVersionYear}}toValue(){return this}toCondition(i){if(!i.codeSpectra)throw new Error("Missing dependency resolver: codeSpectra");return i.codeSpectra.resolve({codeSpectrumIds:this.codeSpectrumIds,codeType:this.codeType}).then(o=>{this.codes=o;let s=null;switch(this.codeType){case"ICD":s=this._toIcdCondition();break;case"OPS":s=this._toOpsCondition();break;case"DRG":this.grouperVersionYear?s=this.includes?new g9(this.grouperVersionYear,this.codes,[]):new g9(this.grouperVersionYear,[],this.codes):s=this.includes?new kR(this.codes,[]):new kR([],this.codes);break;default:throw new Error(`Invalid codeType: ${this.codeType}`)}return s})}_toIcdCondition(){let i=this.codeTypeSpecification,r;switch(i){case"secondaryDiagnosis":{r=this._toSecondaryDiagnosisCondition();break}case"skCode":{r=this._toIcdSecondaryCode();break}default:{r=this._toMainDiagnosisCondition();break}}return this.includes?r.includes=this.codes:r.excludes=this.codes,r}_toMainDiagnosisCondition(){return this.matching==="exact"?new K3([],[]):new W3([],[],this.codeTypeClassification?this.codeTypeClassification.numberOfDigit:null)}_toSecondaryDiagnosisCondition(){return this.matching==="exact"?new Q3([],[]):new X3([],[],this.codeTypeClassification?this.codeTypeClassification.numberOfDigit:null)}_toOpsCondition(){let i=this.codeTypeSpecification,r;switch(i){case"mainProcedure":{r=this._toOpsMainProcedure();break}default:{r=this._toOpsCode();break}}return this.includes?r.includes=this.codes:r.excludes=this.codes,r}_toOpsMainProcedure(){return this.matching==="exact"?new Qoe([],[]):new Xoe([],[],this.codeTypeClassification?this.codeTypeClassification.numberOfDigit:null)}_toIcdSecondaryCode(){return this.matching==="exact"?new ose([],[]):new sse([],[],this.codeTypeClassification?this.codeTypeClassification.numberOfDigit:null)}_toOpsCode(){return this.matching==="exact"?new SC([],[]):new zoe([],[],this.codeTypeClassification?this.codeTypeClassification.numberOfDigit:null)}};e.TYPE=IYe;let n=e;return n})();var TYe={type:"dismissalDate",category:"case",displayName:{de:"Entlass-Datum"},sortingIndex:8,occurrence:"multiple"},kC=(()=>{let e=class e extends Gi{static fromObject(i){return Promise.resolve(new e($T.fromObject(i.timeSelection)))}static new(){return Promise.resolve(new e(new Xb(new ep(new Date,new Date))))}constructor(i){super(TYe.type),this.timeSelection=i}hasRelativeTimeSelection(){return this.timeSelection.type==="relative"}toCondition(){switch(this.timeSelection.type){case"relative":{let i=this.timeSelection;return Promise.resolve(new Z3(i.intervalRelative))}default:{let i=this.timeSelection;return Promise.resolve(new EC(i.interval))}}}toJSON(){return{type:this.type,timeSelection:this.timeSelection.toJSON()}}toText(){return"Entlass-Datum"}toValue(){return this.timeSelection}getOverrideProperties(i,r){return[new Jl(i,"dismissalDate",this.timeSelection,this.timeSelection,"possible",void 0,(o,s)=>o.equals(s),o=>o.clone())]}overrideClone(i){let r=ec.overrideProperty(this.timeSelection,"dismissalDate",i,o=>o.clone());return r?new e(r):null}equals(i){return super.equals(i)&&this.timeSelection.equals(i.timeSelection)}clone(){return new e(this.timeSelection.clone())}};e.TYPE=TYe;let n=e;return n})();var AYe={type:"dismissalYear",category:"case",displayName:{de:"Entlass Jahr"},sortingIndex:8,occurrence:"multiple"},qR=(()=>{let e=class e extends Gi{static fromObject(i){return Promise.resolve(new e(i.year))}static new(){return Promise.resolve(new e(new Date().getFullYear()))}constructor(i){super(AYe.type),this.year=i}clone(){return new e(this.year)}equals(i){return super.equals(i)&&sr.equals(this.year,i.year)}toCondition(){return Promise.resolve(new gA([this.year],[]))}toJSON(){return{type:this.type,year:this.year}}toText(){return"Entlass-Jahr"}toValue(){return this.year}};e.TYPE=AYe;let n=e;return n})();var DYe={type:"dismissalYears",category:"case",displayName:{de:"Entlass Jahr"},sortingIndex:8,occurrence:"single"},M9=(()=>{let e=class e extends Gi{static fromObject(i){return Promise.resolve(new e(i.years))}static new(){return Promise.resolve(new e([]))}constructor(i){super(DYe.type),this.years=i}clone(){return new e([...this.years])}equals(i){return super.equals(i)&&hn.equals(this.years,i.years)}toCondition(){return Promise.resolve(new gA(this.years,[]))}toJSON(){return{type:this.type,years:this.years}}toText(){return"Entlass-Jahr"}toValue(){return this.years}};e.TYPE=DYe;let n=e;return n})();var kYe={type:"dismissionCauses",category:"case",displayName:{de:"Entlassgrund"},sortingIndex:8,occurrence:"single"},$R=(()=>{let e=class e extends Gi{static fromObject(i){return Promise.resolve(new e(i.dismissionCauses))}static new(){return Promise.resolve(new e([]))}constructor(i){super(kYe.type),this.dismissionCauses=i}clone(){return new e([...this.dismissionCauses])}equals(i){return super.equals(i)&&hn.equals(this.dismissionCauses,i.dismissionCauses)}toCondition(){return Promise.resolve(new Voe(this.dismissionCauses,[]))}toJSON(){return{type:this.type,dismissionCauses:this.dismissionCauses}}toText(){return this.dismissionCauses.length===1?"einen Entlassgrund":`${this.dismissionCauses.length} Entlassgr\xFCnde`}toValue(){return this.dismissionCauses}};e.TYPE=kYe;let n=e;return n})();var MYe={type:"drgCodeExists",category:"case",displayName:{de:"DRG vorhanden"},sortingIndex:11,occurrence:"multiple"},KR=(()=>{let e=class e extends Gi{static fromObject(i){return Promise.resolve(new e(i.isNotNull??i._isNotNull))}static new(){return Promise.resolve(new e(!0))}constructor(i){super(MYe.type),this._isNotNull=i}toCondition(){return Promise.resolve(new Uoe(this._isNotNull))}toJSON(){return{type:this.type,isNotNull:this._isNotNull}}toText(){return"DRG vorhanden"}toValue(){return this._isNotNull}equals(i){return super.equals(i)&&this._isNotNull===i._isNotNull}clone(){return new e(this._isNotNull)}};e.TYPE=MYe;let n=e;return n})();var xse={type:"drgCode",category:"case",displayName:{de:"DRG-Ziffer"},sortingIndex:10,occurrence:"single"},I0=(()=>{let e=class e extends Gi{static fromObject(i){return Promise.resolve(new e(i.codes.map(r=>qt.fromObject(r))))}static new(){return Promise.resolve(new e([]))}constructor(i){super(xse.type),this.codes=i}clone(){return new e([...this.codes.map(i=>i.clone())])}equals(i){return super.equals(i)&&hn.equals(this.codes,i.codes,(r,o)=>r.name===o.name&&r.type===o.type)}toCondition(){return Promise.resolve(new kR(this.codes,[]))}toJSON(){return{type:this.type,codes:this.codes}}toText(){return"DRG-Ziffer"}toValue(){return this.codes}};e.TYPE=xse;let n=e;return n})();var wse={type:"drgMdc",category:"case",displayName:{de:"DRG-Kapitel"},sortingIndex:10,occurrence:"single"},T0=(()=>{let e=class e extends Gi{static fromObject(i){return Promise.resolve(new e(i.codes.map(r=>qt.fromObject(r))))}static new(){return Promise.resolve(new e([]))}constructor(i){super(wse.type),this.codes=i}clone(){return new e([...this.codes.map(i=>i.clone())])}equals(i){return super.equals(i)&&hn.equals(this.codes,i.codes,(r,o)=>r.name===o.name&&r.type===o.type)}toCondition(){return Promise.resolve(new joe(this.codes,[]))}toJSON(){return{type:this.type,codes:this.codes}}toText(){return"DRG-Kapitel"}toValue(){return this.codes}};e.TYPE=wse;let n=e;return n})();var OYe={type:"drivingTime",category:"case",displayName:{de:"Erreichbarkeit innerhalb Fahrzeit"},sortingIndex:8,occurrence:"multiple"},WR=(()=>{let e=class e extends Gi{static fromObject(i){return Promise.resolve(new e(i.includeRanges))}static new(){return Promise.resolve(new e([]))}constructor(i){super(OYe.type),this.includeRanges=i}toCondition(){return this.includeRanges&&this.includeRanges.length===1?Promise.resolve(this._rangeToCondition(this.includeRanges[0])):this.includeRanges&&this.includeRanges.length>1?Promise.resolve(new _A(this.includeRanges.map(i=>this._rangeToCondition(i)))):Promise.resolve(new mA)}toJSON(){return{type:this.type,includeRanges:this.includeRanges}}toText(){return"Erreichbarkeit innerhalb einer Fahrzeit"}toValue(){return this.includeRanges}equals(i){return super.equals(i)&&hn.equals(this.includeRanges,i.includeRanges,(r,o)=>sr.equals(r.min,o.min)&&sr.equals(r.max,o.max))}clone(){return new e(this.includeRanges.map(i=>JSON.parse(JSON.stringify(i))))}_rangeToCondition(i){return i.min!==void 0&&i.max!==void 0?new Kd([new MR(i.min,B_.GREATER_OR_EQUAL),new MR(i.max,B_.LESS_OR_EQUAL)]):i.min!==void 0?new MR(i.min,B_.GREATER_OR_EQUAL):new MR(i.max,B_.LESS_OR_EQUAL)}};e.TYPE=OYe;let n=e;return n})();var Cse={type:"fabKeys",category:"case",displayName:{de:"\xA7301 Fachabteilungsschl\xFCssel"},sortingIndex:8,occurrence:"single"},Jp=(()=>{let e=class e extends Gi{static fromObject(i){return Promise.resolve(new e(i.fabKeys))}static new(){return Promise.resolve(new e([]))}constructor(i){super(Cse.type),this.fabKeys=i}clone(){return new e([...this.fabKeys])}equals(i){return super.equals(i)&&hn.equals(this.fabKeys,i.fabKeys)}overrideClone(i){let r=this.fabKeys?ec.overrideProperties(this.fabKeys,"fabKey",i,o=>o):null;return new e(r)}getOverrideProperties(i,r){return this.fabKeys.map(o=>new Jl(i,"fabKey",o,o,"possible",r))}toCondition(){return Promise.resolve(new m9(this.fabKeys,[]))}toText(){return this.fabKeys.length===1?"einen \xA7301 Fachabteilungsschl\xFCssel":`${this.fabKeys.length} \xA7301 Fachabteilungsschl\xFCssel`}toJSON(){return{type:this.type,fabKeys:this.fabKeys}}toValue(){return this.fabKeys}};e.TYPE=Cse;let n=e;return n})();var RYe={type:"fullyInpatientCases",category:"clinic",displayName:{de:"Fallzahl"},sortingIndex:8,occurrence:"multiple"},ZR=(()=>{let e=class e extends Gi{static fromObject(i){return Promise.resolve(new e(i.from,i.to))}static new(){return Promise.resolve(new e(null,null))}constructor(i,r){super(RYe.type),this.from=i,this.to=r}clone(){return new e(this.from,this.to)}equals(i){return super.equals(i)&&sr.equals(this.from,i.from)&&sr.equals(this.to,i.to)}toCondition(){return Promise.resolve(new Hoe(this.from,this.to))}toJSON(){return{type:this.type,from:this.from,to:this.to}}toText(){return this.from!=null||this.from!=null?this.to!=null||this.to!=null?`Kliniken zwischen ${Lc.format(this.from)} und ${Lc.format(this.to)} F\xE4lle`:`Kliniken ab ${Lc.format(this.from)} F\xE4lle`:`Kliniken bis ${Lc.format(this.to)} F\xE4lle`}toValue(){return{from:this.from,to:this.to}}};e.TYPE=RYe;let n=e;return n})();var Sse={type:"icdChapter",category:"case",displayName:{de:"ICD-Kapitel"},sortingIndex:8,occurrence:"single"},A0=(()=>{let e=class e extends Gi{static fromObject(i){return Promise.resolve(new e(i.chapters.map(r=>Xf.fromObject(r))))}static new(){return Promise.resolve(new e([]))}constructor(i){super(Sse.type),this.chapters=i}clone(){return new e([...this.chapters.map(i=>i.clone())])}equals(i){return super.equals(i)&&hn.equals(this.chapters,i.chapters,(r,o)=>r.name===o.name&&r.type===o.type)}toCondition(){return Promise.resolve(new qoe(this.chapters,[]))}toJSON(){return{type:this.type,chapters:this.chapters}}toText(){return"ICD-Kapitel"}toValue(){return this.chapters}};e.TYPE=Sse;let n=e;return n})();var Ese={type:"icdGroup",category:"case",displayName:{de:"ICD-Gruppe"},sortingIndex:9,occurrence:"single"},D0=(()=>{let e=class e extends Gi{static fromObject(i){return Promise.resolve(new e(i.groups.map(r=>Xf.fromObject(r))))}static new(){return Promise.resolve(new e([]))}constructor(i){super(Ese.type),this.groups=i}clone(){return new e([...this.groups.map(i=>i.clone())])}equals(i){return super.equals(i)&&hn.equals(this.groups,i.groups,(r,o)=>r.name===o.name&&r.type===o.type)}toCondition(){return Promise.resolve(new $oe(this.groups,[]))}toJSON(){return{type:this.type,groups:this.groups}}toText(){return"ICD-Gruppe"}toValue(){return this.groups}};e.TYPE=Ese;let n=e;return n})();var Ise={type:"icdCode",category:"case",displayName:{de:"ICD-Ziffer"},sortingIndex:10,occurrence:"single"},k0=(()=>{let e=class e extends Gi{static fromObject(i){return Promise.resolve(new e(i.codes.map(r=>qt.fromObject(r))))}static new(){return Promise.resolve(new e([]))}constructor(i){super(Ise.type),this.codes=i}clone(){return new e([...this.codes.map(i=>i.clone())])}equals(i){return super.equals(i)&&hn.equals(this.codes,i.codes,(r,o)=>r.name===o.name&&r.type===o.type)}toCondition(){return Promise.resolve(new Yoe(this.codes,[]))}toJSON(){return{type:this.type,codes:this.codes}}toText(){return"ICD-Ziffer"}toValue(){return this.codes}};e.TYPE=Ise;let n=e;return n})();var NYe={type:"inekCalculationLocation",category:"clinic",displayName:{de:"InEK Kalkulationskrankenh\xE4user"},sortingIndex:8,occurrence:"single"},QR=(()=>{let e=class e extends Gi{static fromObject(i){return Promise.resolve(new e(i.inekCalculationLocation))}static new(){return Promise.resolve(new e(!0))}constructor(i){super(NYe.type),this.bool=i}clone(){return new e(this.bool)}equals(i){return super.equals(i)&&sr.equals(this.bool,i.bool)}toCondition(){return Promise.resolve(new Woe(this.bool))}toJSON(){return{type:this.type,inekCalculationLocation:this.bool}}toText(){return this.bool?"mit InEK Kalkulationskrankenh\xE4user":"ohne InEK Kalkulationskrankenh\xE4user"}toValue(){return this.bool}};e.TYPE=NYe;let n=e;return n})();var PYe={type:"inlierType",category:"case",displayName:{de:"Verweildauer"},sortingIndex:8,occurrence:"single"},O9=(()=>{let e=class e extends Gi{static fromObject(i){return Promise.resolve(new e(i.inlierType))}static new(){return Promise.resolve(new e("INLIER"))}constructor(i){super(PYe.type),this.inlierType=i}clone(){return new e(this.inlierType)}equals(i){return super.equals(i)&&sr.equals(this.inlierType,i.inlierType)}toCondition(){return this.inlierType?Promise.resolve(new $3(this.inlierType)):null}toJSON(){return{type:this.type,inlierType:this.inlierType}}toText(){return"ein Typ der Verweildauer"}toValue(){return this.inlierType}};e.TYPE=PYe;let n=e;return n})();var FYe={type:"inlierTypes",category:"case",displayName:{de:"Verweildauer"},sortingIndex:8,occurrence:"single"},XR=(()=>{let e=class e extends Gi{static fromObject(i){return Promise.resolve(new e(i.inlierTypes))}static new(){return Promise.resolve(new e([]))}constructor(i){super(FYe.type),this.inlierTypes=i}clone(){return new e([...this.inlierTypes])}equals(i){return super.equals(i)&&hn.equals(this.inlierTypes,i.inlierTypes)}toCondition(){return this.inlierTypes&&this.inlierTypes.length>0?Promise.resolve(new _A(this.inlierTypes.map(i=>new $3(i)))):null}toJSON(){return{type:this.type,inlierTypes:this.inlierTypes}}toText(){return this.inlierTypes.length===1?"ein Typ der Verweildauer":`${this.inlierTypes.length} Typen der Verweildauer`}toValue(){return this.inlierTypes}};e.TYPE=FYe;let n=e;return n})();var LYe={type:"insuranceType",category:"person",displayName:{de:"Versicherungsart"},sortingIndex:8,occurrence:"single"},JR=(()=>{let e=class e extends Gi{static fromObject(i){return Promise.resolve(new e(i.insuranceType))}static new(){return Promise.resolve(new e(null))}constructor(i){super(LYe.type),this.insuranceType=i}clone(){return new e(this.insuranceType)}equals(i){return super.equals(i)&&sr.equals(this.insuranceType,i.insuranceType)}toCondition(){return Promise.resolve(new Zoe(this.insuranceType))}toJSON(){return{type:this.type,insuranceType:this.insuranceType}}toText(){return"Versicherungsart"}toValue(){return this.insuranceType}};e.TYPE=LYe;let n=e;return n})();var Tse={type:"marketsSelection",category:"person",displayName:{de:"M\xE4rkte"},sortingIndex:8,occurrence:"single"},M0=(()=>{let e=class e extends Gi{static fromObject(i){return Promise.resolve(new e(i.marketIds,i.stateIds,i.administrativeDistrictIds?i.administrativeDistrictIds.map(r=>la.create(r)):[],i.postalCodes))}static new(){return Promise.resolve(new e)}constructor(i=[],r=[],o=[],s=[]){super(Tse.type),this.marketIds=i,this.stateIds=r,this.administrativeDistrictIds=o,this.postalCodes=s}clone(){return new e(this.marketIds?[...this.marketIds]:void 0,this.stateIds?[...this.stateIds]:void 0,this.administrativeDistrictIds?[...this.administrativeDistrictIds.map(i=>i.clone())].slice():void 0,this.postalCodes?[...this.postalCodes]:void 0)}equals(i){return super.equals(i)&&hn.equals(this.marketIds,i.marketIds)&&hn.equals(this.stateIds,i.stateIds)&&hn.equals(this.administrativeDistrictIds,i.administrativeDistrictIds,(r,o)=>r.value===o.value)&&hn.equals(this.postalCodes,i.postalCodes)}getChildResources(){return{[Bn.MARKET]:this.marketIds}}toCondition(i){if(this.stateIds||this.administrativeDistrictIds||this.postalCodes)return Promise.resolve(this._propsToCondition(this.stateIds,this.administrativeDistrictIds,this.postalCodes));if(this.marketIds){let r=i.markets;return r.resolve(this.marketIds).then(o=>r.transform(o,[{value:"stateId"},{value:"administrativeDistrictId"},{value:"stateId"}])).then(o=>Object.values(o)).then(o=>new Kd(o.map(s=>this._propsToCondition(s.map(c=>c.label).map(c=>parseInt(c,10)),s.map(c=>c.children??[]).flat().map(c=>la.create(c.label)),s.map(c=>c.children??[]).flat().map(c=>c.children??[]).flat().map(c=>c.label)))))}else return Promise.resolve(new mA)}toJSON(){return{type:this.type,marketIds:this.marketIds,stateIds:this.stateIds,administrativeDistrictIds:this.administrativeDistrictIds.map(i=>i.getNumericValue()),postalCodes:this.postalCodes}}toText(){let i="";return(this.stateIds?.length>0||this.administrativeDistrictIds?.length>0||this.postalCodes?.length>0)&&(i="und Teile eines Marktes"),this.marketIds.length===1?`ein Markt ${i}`:`${this.marketIds.length} M\xE4rkte ${i}`}toValue(){return{administrativeDistrictIds:this.administrativeDistrictIds,marketIds:this.marketIds,postalCodes:this.postalCodes,stateIds:this.stateIds}}_propsToCondition(i,r,o){let s=[];return i?.length>0&&s.push(new fA(i,[])),r?.length>0&&s.push(new hA(r,[])),o?.length>0&&s.push(new pA(o,[])),s.length===1?s[0]:new Kd(s)}};e.TYPE=Tse;let n=e;return n})();var BYe={type:"markets",category:"person",displayName:{de:"M\xE4rkte"},sortingIndex:8,occurrence:"single"},e2=(()=>{let e=class e extends Gi{static fromObject(i){return Promise.resolve(new e(i.marketIds))}static new(){return Promise.resolve(new e([]))}constructor(i){super(BYe.type),this.marketIds=i}clone(){return new e([...this.marketIds])}equals(i){return super.equals(i)&&hn.equals(this.marketIds,i.marketIds)}overrideClone(i){return new e(this.marketIds?ec.overrideProperties(this.marketIds,"market",i,r=>r):[])}getOverrideProperties(i,r){return this.marketIds.map(o=>new Jl(i,"market",o,o,"possible"))}getChildResources(){return{[Bn.MARKET]:this.marketIds}}toCondition(i){if(!i.markets)throw new Error("Missing dependency resolver: markets");let r=i.markets;return r.resolve([...this.marketIds]).then(o=>r.transform(o,[{value:"stateId"},{value:"administrativeDistrictId"},{value:"postalCode"}])).then(o=>{let s=[],c=Object.values(o).flat().map(x=>parseInt(x.label,10));c.length>0&&s.push(new fA(c,[]));let h=Object.values(o).flat().map(x=>x.children??[]).flat().map(x=>la.create(x.label));h.length>0&&s.push(new hA(h,[]));let g=Object.values(o).flat().map(x=>x.children??[]).flat().map(x=>x.children??[]).flat().map(x=>x.label);return g.length>0&&s.push(new pA(g,[])),new Kd(s)})}toJSON(){return{type:this.type,marketIds:this.marketIds}}toText(){return this.marketIds.length===1?"ein Markt":`${this.marketIds.length} M\xE4rkte`}toValue(){return this.marketIds}};e.TYPE=BYe;let n=e;return n})();var zYe={type:"marketIds",category:"person",displayName:{de:"M\xE4rkte"},sortingIndex:8,occurrence:"single"},R9=(()=>{let e=class e extends Gi{static fromObject(i){return Promise.resolve(new e(i.marketIds))}static new(){return Promise.resolve(new e([]))}constructor(i){super(zYe.type),this.marketIds=i}clone(){return new e([...this.marketIds])}equals(i){return super.equals(i)&&hn.equals(this.marketIds,i.marketIds)}overrideClone(i){return new e(this.marketIds?ec.overrideProperties(this.marketIds,"market",i,r=>r):[])}getOverrideProperties(i,r){return this.marketIds.map(o=>new Jl(i,"market",o,o,"possible"))}getChildResources(){return{[Bn.MARKET]:this.marketIds}}toCondition(){return Promise.resolve(new Joe(this.marketIds,[]))}toJSON(){return{type:this.type,marketIds:this.marketIds}}toText(){return this.marketIds.length===1?"ein Markt":`${this.marketIds.length} M\xE4rkte`}toValue(){return this.marketIds}};e.TYPE=zYe;let n=e;return n})();var pTe={type:"nrwServiceArea",category:"case",displayName:{de:"NRW Leistungsbereiche"},sortingIndex:6,occurrence:"single"},xA=(()=>{let e=class e extends Gi{static fromObject(i){return Promise.resolve(new e(i.nrwServiceGroupIds))}static new(){return Promise.resolve(new e([]))}constructor(i){super(pTe.type),this.nrwServiceGroupIds=i}clone(){return new e([...this.nrwServiceGroupIds])}equals(i){return super.equals(i)&&hn.equals(this.nrwServiceGroupIds,i.nrwServiceGroupIds)}toCondition(){return Promise.resolve(new ise(this.nrwServiceGroupIds,[]))}toJSON(){return{type:this.type,nrwServiceGroupIds:this.nrwServiceGroupIds}}toText(){return this.nrwServiceGroupIds.length===1?"ein NRW Leistungsbereich":`${this.nrwServiceGroupIds.length} NRW Leistungsbereiche`}toValue(){return this.nrwServiceGroupIds}};e.TYPE=pTe;let n=e;return n})();var fTe={type:"nrwServiceGroups",category:"case",displayName:{de:"NRW Leistungsgruppen"},sortingIndex:7,occurrence:"single"},dx=(()=>{let e=class e extends Gi{static fromObject(i){return Promise.resolve(new e(i.nrwServiceGroupIds))}static new(){return Promise.resolve(new e([]))}constructor(i){super(fTe.type),this.nrwServiceGroupIds=i}clone(){return new e([...this.nrwServiceGroupIds])}equals(i){return super.equals(i)&&hn.equals(this.nrwServiceGroupIds,i.nrwServiceGroupIds)}toCondition(){return Promise.resolve(new tse(this.nrwServiceGroupIds,[]))}toJSON(){return{type:this.type,nrwServiceGroupIds:this.nrwServiceGroupIds}}toText(){return this.nrwServiceGroupIds.length===1?"eine NRW Leistungsgruppe":`${this.nrwServiceGroupIds.length} NRW Leistungsgruppen`}toValue(){return this.nrwServiceGroupIds}};e.TYPE=fTe;let n=e;return n})();var Ase={type:"opsChapter",category:"case",displayName:{de:"OPS-Kapitel"},sortingIndex:8,occurrence:"single"},O0=(()=>{let e=class e extends Gi{static fromObject(i){return Promise.resolve(new e(i.chapters.map(r=>Xf.fromObject(r))))}static new(){return Promise.resolve(new e([]))}constructor(i){super(Ase.type),this.chapters=i}clone(){return new e([...this.chapters.map(i=>i.clone())])}equals(i){return super.equals(i)&&hn.equals(this.chapters,i.chapters,(r,o)=>r.name===o.name&&r.type===o.type)}toCondition(){return Promise.resolve(new Loe(this.chapters,[]))}toJSON(){return{type:this.type,chapters:this.chapters}}toText(){return"OPS-Kapitel"}toValue(){return this.chapters}};e.TYPE=Ase;let n=e;return n})();var Dse={type:"fourDigitOpsCode",category:"case",displayName:{de:"OPS-Ziffer 4-Steller"},sortingIndex:11,occurrence:"single"},R0=(()=>{let e=class e extends Gi{static fromObject(i){return Promise.resolve(new e(i.codes.map(r=>qt.fromObject(r))))}static new(){return Promise.resolve(new e([]))}constructor(i){super(Dse.type),this.codes=i}clone(){return new e([...this.codes.map(i=>i.clone())])}equals(i){return super.equals(i)&&hn.equals(this.codes,i.codes,(r,o)=>r.name===o.name&&r.type===o.type)}toCondition(){return Promise.resolve(new SC(this.codes,[]))}toJSON(){return{type:this.type,codes:this.codes}}toText(){return"OPS-Ziffer 4-Steller"}toValue(){return this.codes}};e.TYPE=Dse;let n=e;return n})();var kse={type:"opsGroup",category:"case",displayName:{de:"OPS-Gruppe"},sortingIndex:9,occurrence:"single"},N0=(()=>{let e=class e extends Gi{static fromObject(i){return Promise.resolve(new e(i.groups.map(r=>Xf.fromObject(r))))}static new(){return Promise.resolve(new e([]))}constructor(i){super(kse.type),this.groups=i}clone(){return new e([...this.groups.map(i=>i.clone())])}equals(i){return super.equals(i)&&hn.equals(this.groups,i.groups,(r,o)=>r.name===o.name&&r.type===o.type)}toCondition(){return Promise.resolve(new Boe(this.groups,[]))}toJSON(){return{type:this.type,groups:this.groups}}toText(){return"OPS-Gruppe"}toValue(){return this.groups}};e.TYPE=kse;let n=e;return n})();var Mse={type:"threeDigitOpsCode",category:"case",displayName:{de:"OPS-Ziffer 3-Steller"},sortingIndex:10,occurrence:"single"},P0=(()=>{let e=class e extends Gi{static fromObject(i){return Promise.resolve(new e(i.codes.map(r=>qt.fromObject(r))))}static new(){return Promise.resolve(new e([]))}constructor(i){super(Mse.type),this.codes=i}clone(){return new e([...this.codes.map(i=>i.clone())])}equals(i){return super.equals(i)&&hn.equals(this.codes,i.codes,(r,o)=>r.name===o.name&&r.type===o.type)}toCondition(){return Promise.resolve(new SC(this.codes,[]))}toJSON(){return{type:this.type,codes:this.codes}}toText(){return"OPS-Ziffer 3-Steller"}toValue(){return this.codes}};e.TYPE=Mse;let n=e;return n})();var Ose={type:"postalCodes",category:"person",displayName:{de:"Postleitzahlen"},sortingIndex:5,occurrence:"single"},ef=(()=>{let e=class e extends Gi{static fromObject(i){return Promise.resolve(new e(i.postalCodes))}static new(){return Promise.resolve(new e([]))}constructor(i){super(Ose.type),this.postalCodes=i}clone(){return new e([...this.postalCodes])}equals(i){return super.equals(i)&&hn.equals(this.postalCodes,i.postalCodes)}toCondition(){return Promise.resolve(new pA(this.postalCodes,[]))}toJSON(){return{type:this.type,postalCodes:this.postalCodes}}toText(){return this.postalCodes.length===1?"eine Postleitzahl":`${this.postalCodes.length} Postleitzahlen`}toValue(){return this.postalCodes}};e.TYPE=Ose;let n=e;return n})();var Rse={type:"stateIds",category:"person",displayName:{de:"Bundesland"},sortingIndex:1,occurrence:"single"},tf=(()=>{let e=class e extends Gi{static fromObject(i){return Promise.resolve(new e(i.stateIds))}static new(){return Promise.resolve(new e([]))}constructor(i){super(Rse.type),this.stateIds=i}clone(){return new e([...this.stateIds])}equals(i){return super.equals(i)&&hn.equals(this.stateIds,i.stateIds)}toCondition(){return Promise.resolve(new fA(this.stateIds,[]))}toJSON(){return{type:this.type,stateIds:this.stateIds}}toText(){return this.stateIds.length===1?"ein Bundesland":`${this.stateIds.length} Bundesl\xE4nder`}toValue(){return this.stateIds}};e.TYPE=Rse;let n=e;return n})();var VYe={type:"virtualBenchmarkingGroupIds",category:"clinic",displayName:{de:"Benchmarking Gruppe"},sortingIndex:8,occurrence:"single"},t2=(()=>{let e=class e extends Gi{static fromObject(i){return Promise.resolve(new e(i.virtualBenchmarkingGroupIds))}static new(){return Promise.resolve(new e([]))}constructor(i){super(VYe.type),this.virtualBenchmarkingGroupIds=i}clone(){return new e([...this.virtualBenchmarkingGroupIds])}equals(i){return super.equals(i)&&hn.equals(this.virtualBenchmarkingGroupIds,i.virtualBenchmarkingGroupIds)}getChildResources(){let i={};return i[Bn.VIRTUAL_CLINIC_BENCHMARKING_GROUP]=this.virtualBenchmarkingGroupIds,i}getOverrideProperties(i,r){let o=[];return this.virtualBenchmarkingGroupIds&&this.virtualBenchmarkingGroupIds.length>0&&this.virtualBenchmarkingGroupIds.forEach(s=>{o.push(new Jl(i,"virtualBenchmarkingGroupId",s,s,"possible",void 0))}),o}overrideClone(i){let r=this.virtualBenchmarkingGroupIds?ec.overrideProperties(this.virtualBenchmarkingGroupIds,"virtualBenchmarkingGroupId",i,o=>o):[];return new e(r)}toCondition(){return Promise.resolve(new cse(this.virtualBenchmarkingGroupIds))}toJSON(){return{type:this.type,virtualBenchmarkingGroupIds:this.virtualBenchmarkingGroupIds}}toText(){return this.virtualBenchmarkingGroupIds.length===1?"eine Benchmarking Gruppe":`${this.virtualBenchmarkingGroupIds.length} Benchmarking Gruppen`}toValue(){return this.virtualBenchmarkingGroupIds}};e.TYPE=VYe;let n=e;return n})();var MC={type:"specialtyDepartmentIds",category:"case",displayName:{de:"Fachabteilung"},sortingIndex:8,occurrence:"single"},wA=(()=>{let e=class e extends Gi{static fromObject(i){return Promise.resolve(new e(i.specialtyDepartmentIds))}static new(){return Promise.resolve(new e([]))}constructor(i){super(MC.type),this.specialtyDepartmentIds=i}clone(){return new e([...this.specialtyDepartmentIds])}equals(i){return super.equals(i)&&hn.equals(this.specialtyDepartmentIds,i.specialtyDepartmentIds)}getOverrideProperties(i,r){return this.specialtyDepartmentIds.map(o=>new Jl(i,"specialtyDepartmentId",o,o,"possible",r))}overrideClone(i){let r=ec.overrideProperties(this.specialtyDepartmentIds,"specialtyDepartmentId",i,o=>o);return new e(r)}toCondition(){return Promise.resolve(new ase(this.specialtyDepartmentIds))}toJSON(){return{type:this.type,specialtyDepartmentIds:this.specialtyDepartmentIds}}toText(){return this.specialtyDepartmentIds.length===1?"eine Fachabteilung":`${this.specialtyDepartmentIds.length} Fachabteilungen`}toValue(){return this.specialtyDepartmentIds}};e.TYPE=MC;let n=e;return n})();var _d=class{static fromObject(e){switch(e.type){case Xp.TYPE.type:return Xp.fromObject(e);case cg.TYPE.type:return cg.fromObject(e);case ug.TYPE.type:return ug.fromObject(e);case dg.TYPE.type:return dg.fromObject(e);case YR.TYPE.type:return YR.fromObject(e);case ef.TYPE.type:return ef.fromObject(e);case tf.TYPE.type:return tf.fromObject(e);case qR.TYPE.type:return qR.fromObject(e);case M9.TYPE.type:return M9.fromObject(e);case Jp.TYPE.type:return Jp.fromObject(e);case RR.TYPE.type:return RR.fromObject(e);case NR.TYPE.type:return NR.fromObject(e);case jR.TYPE.type:return jR.fromObject(e);case DC.TYPE.type:return DC.fromObject(e);case GR.TYPE.type:return GR.fromObject(e);case kC.TYPE.type:return kC.fromObject(e);case O9.TYPE.type:return O9.fromObject(e);case XR.TYPE.type:return XR.fromObject(e);case JR.TYPE.type:return JR.fromObject(e);case FR.TYPE.type:return FR.fromObject(e);case k9.TYPE.type:return k9.fromObject(e);case $R.TYPE.type:return $R.fromObject(e);case dx.TYPE.type:return dx.fromObject(e);case xA.TYPE.type:return xA.fromObject(e);case wA.TYPE.type:return wA.fromObject(e);case t2.TYPE.type:return t2.fromObject(e);case P0.TYPE.type:return P0.fromObject(e);case R0.TYPE.type:return R0.fromObject(e);case O0.TYPE.type:return O0.fromObject(e);case N0.TYPE.type:return N0.fromObject(e);case I0.TYPE.type:return I0.fromObject(e);case T0.TYPE.type:return T0.fromObject(e);case A0.TYPE.type:return A0.fromObject(e);case D0.TYPE.type:return D0.fromObject(e);case k0.TYPE.type:return k0.fromObject(e);case e2.TYPE.type:return e2.fromObject(e);case R9.TYPE.type:return R9.fromObject(e);case M0.TYPE.type:return M0.fromObject(e);case VR.TYPE.type:return VR.fromObject(e);case HR.TYPE.type:return HR.fromObject(e);case QR.TYPE.type:return QR.fromObject(e);case ZR.TYPE.type:return ZR.fromObject(e);case BR.TYPE.type:return BR.fromObject(e);case UR.TYPE.type:return UR.fromObject(e);case zR.TYPE.type:return zR.fromObject(e);case WR.TYPE.type:return WR.fromObject(e);case LR.TYPE.type:return LR.fromObject(e);case KR.TYPE.type:return KR.fromObject(e);case w9.TYPE.type:return w9.fromObject(e);case C9.TYPE.type:return C9.fromObject(e);case T9.TYPE.type:return T9.fromObject(e);case E9.TYPE.type:return E9.fromObject(e);case S9.TYPE.type:return S9.fromObject(e);case x9.TYPE.type:return x9.fromObject(e);case b9.TYPE.type:return b9.fromObject(e);default:throw new Error(`Missing FilterConditionPlugins.fromObject impl for ${e.type}`)}}static new(e){switch(e){case Xp.TYPE.type:return Xp.new();case cg.TYPE.type:return cg.new();case ug.TYPE.type:return ug.new();case dg.TYPE.type:return dg.new();case YR.TYPE.type:return YR.new();case ef.TYPE.type:return ef.new();case tf.TYPE.type:return tf.new();case qR.TYPE.type:return qR.new();case M9.TYPE.type:return M9.new();case Jp.TYPE.type:return Jp.new();case RR.TYPE.type:return RR.new();case NR.TYPE.type:return NR.new();case jR.TYPE.type:return jR.new();case DC.TYPE.type:return DC.new();case GR.TYPE.type:return GR.new();case kC.TYPE.type:return kC.new();case O9.TYPE.type:return O9.new();case XR.TYPE.type:return XR.new();case JR.TYPE.type:return JR.new();case FR.TYPE.type:return FR.new();case k9.TYPE.type:return k9.new();case $R.TYPE.type:return $R.new();case dx.TYPE.type:return dx.new();case xA.TYPE.type:return xA.new();case wA.TYPE.type:return wA.new();case t2.TYPE.type:return t2.new();case P0.TYPE.type:return P0.new();case R0.TYPE.type:return R0.new();case O0.TYPE.type:return O0.new();case N0.TYPE.type:return N0.new();case I0.TYPE.type:return I0.new();case T0.TYPE.type:return T0.new();case A0.TYPE.type:return A0.new();case D0.TYPE.type:return D0.new();case k0.TYPE.type:return k0.new();case e2.TYPE.type:return e2.new();case R9.TYPE.type:return R9.new();case M0.TYPE.type:return M0.new();case VR.TYPE.type:return VR.new();case HR.TYPE.type:return HR.new();case QR.TYPE.type:return QR.new();case ZR.TYPE.type:return ZR.new();case BR.TYPE.type:return BR.new();case UR.TYPE.type:return UR.new();case zR.TYPE.type:return zR.new();case WR.TYPE.type:return WR.new();case LR.TYPE.type:return LR.new();case KR.TYPE.type:return KR.new();case w9.TYPE.type:return w9.new();case C9.TYPE.type:return C9.new();case T9.TYPE.type:return T9.new();case E9.TYPE.type:return E9.new();case S9.TYPE.type:return S9.new();case x9.TYPE.type:return x9.new();case b9.TYPE.type:return b9.new();default:throw new Error(`Missing FilterConditionPlugins.new impl for ${e}`)}}};var V_=class{constructor(e,t){this.type=e,this.expression=t}getOverrideProperties(e,t){return[...this.expression.getOverrideProperties(e,t)]}toJSON(){return{type:this.type,expression:this.expression.toJSON()}}getChildResources(){return this.expression.getChildResources()}toRequestBody(e){return this.expression.toCondition(e)}equals(e){return sr.equals(this.type,e.type)&&ta.equals(this.expression,e.expression)}};var UYe={type:"clinicIds",category:"clinic",displayName:{de:"Kliniken"},sortingIndex:8,occurrence:"single"},oz=(()=>{let e=class e extends Gi{static fromObject(i){let r=null,o=null;return i.includes&&(r=i.includes.map(s=>xh.fromString(s))),i.excludes&&(o=i.excludes.map(s=>xh.fromString(s))),Promise.resolve(new e(r,o))}static new(){return Promise.resolve(new e([]))}constructor(i,r=null){super(UYe.type),this.includes=i,this.excludes=r}clone(){return new e(this.includes?[...this.includes.map(i=>i.clone())]:null,this.excludes?[...this.excludes.map(i=>i.clone())]:null)}equals(i){return super.equals(i)&&hn.equals(this.includes,i.includes,(r,o)=>r.equals(o))&&hn.equals(this.excludes,i.excludes,(r,o)=>r.equals(o))}toCondition(i){if(i&&i.clinicIds){let r=this.includes?this.includes.map(s=>i.clinicIds.resolve(s)):[],o=this.excludes?this.excludes.map(s=>i.clinicIds.resolve(s)):[];return Promise.all(r).then(s=>Promise.all(o).then(c=>({includes:s,excludes:c}))).then(s=>new H3(s.includes,s.excludes))}else return Promise.resolve(new H3(this.includes,this.excludes))}toJSON(){return{type:this.type,includes:this.includes?this.includes.map(i=>i.toString()):null,excludes:this.excludes?this.excludes.map(i=>i.toString()):null}}toText(){let i="alle Kliniken werden als Basismenge genutzt";if(this.includes&&this.includes.length>0)switch(this.includes.length){case 0:i="alle Kliniken werden als Basismenge genutzt";break;case 1:i="1 Klinik wird als Basismenge genutzt";break;default:i=`eine von ${this.includes.length} Kliniken`;break}if(this.excludes&&this.excludes.length>0)switch(this.includes.length>0&&(i=i+", aber"),this.excludes.length){case 0:break;case 1:i=i+" 1 Klinik ausgeschlossen";break;default:i=i+` ${this.excludes.length} Kliniken ausgeschlossen`;break}return i}toValue(){return{includes:this.includes,excludes:this.excludes}}};e.TYPE=UYe;let n=e;return n})();var i2=class i2 extends V_{static fromObj(e){let t=null,i=null;e.createdDate&&(t=new Date(e.createdDate)),e.modifiedDate&&(i=new Date(e.modifiedDate));let r=Promise.resolve(ta.EMPTY());return e.expression&&(r=ta.fromObject(e.expression,i2.expressionFromObject)),r.then(o=>new i2(e.id,e.name,t,i,e.highestPermission,o))}static expressionFromObject(e){switch(e.type){case oz.TYPE.type:return oz.fromObject(e);default:return _d.fromObject(e)}}static newPlugin(e){switch(e){case oz.TYPE.type:return oz.new();default:return _d.new(e)}}constructor(e,t,i,r,o,s=ta.EMPTY()){super("clinics-filter",s),this.id=e,this.name=t,this.createdDate=i,this.modifiedDate=r,this.highestPermission=o,this.resourceName=Bn.CLINICS_FILTER}toJSON(){return wt(Ce({},super.toJSON()),{id:this.id,name:this.name,createdDate:this.createdDate,modifiedDate:this.modifiedDate,highestPermission:this.highestPermission})}clone(){return new i2(this.id,this.name,this.createdDate,this.modifiedDate,this.highestPermission,this.expression)}overrideClone(e){return new i2(this.id,this.name,this.createdDate,this.modifiedDate,this.highestPermission,this.expression.overrideClone(e))}};i2.TYPES=[{plugin:tf.TYPE,needsAuthentication:!1},{plugin:Xp.TYPE,needsAuthentication:!1},{plugin:cg.TYPE,needsAuthentication:!1},{plugin:dg.TYPE,needsAuthentication:!1},{plugin:ef.TYPE,needsAuthentication:!1},{plugin:oz.TYPE,needsAuthentication:!0},{plugin:Jp.TYPE,needsAuthentication:!1},{plugin:VR.TYPE,needsAuthentication:!1},{plugin:DC.TYPE,needsAuthentication:!1},{plugin:HR.TYPE,needsAuthentication:!1},{plugin:QR.TYPE,needsAuthentication:!1},{plugin:ZR.TYPE,needsAuthentication:!1},{plugin:BR.TYPE,needsAuthentication:!1},{plugin:UR.TYPE,needsAuthentication:!1},{plugin:zR.TYPE,needsAuthentication:!1}];var sz=i2;var jYe=(()=>{let e=class e extends ol{constructor(i,r,o){super(),this._httpClient=i,this._permissionService=r,this._environmentService=o,this._store=new hre(this._environmentService)}findAll(i,r){let o=this._store.crud(),s=new Bs;return i&&(s=s.append("minPermission",i)),r&&(s=s.append("maxPermission",r)),this._httpClient.get(o,{params:s}).pipe(lr(c=>{let h=c.map(sz.fromObj);return wo(Promise.all(h))}))}findById(i){if(this.hasByKey(i)===!1){let r=this._store.findById(i);this._cache[i]=this._httpClient.get(r).pipe(lr(sz.fromObj),dl(1))}return this.getByKey(i)}create(i){let r=this._store.crud();return this._httpClient.post(r,i).pipe(lr(sz.fromObj))}update(i){this.deleteCacheForKey(i.id);let r=this._store.crud();return this._httpClient.put(r,i).pipe(ri(()=>null))}};e.\u0275fac=function(r){return new(r||e)(Ke(ms),Ke(qd),Ke(dr))},e.\u0275prov=It({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var az=class n extends qt{static fromObject(e){return new n(e.name,e.description,e.type,e.hierarchyElementType,e.codingSystem,e.year,e.codeSpectrumId,e.weight)}constructor(e,t,i,r,o,s,c,h){super(e,t,i,r,o,s),this.codeSpectrumId=c,this.weight=h}clone(){return new n(this.name,this.description,this.type,this.hierarchyElementType,this.codingSystem,this.year,this.codeSpectrumId,this.weight)}toJSON(){return wt(Ce({},super.toJSON()),{codeSpectrumId:this.codeSpectrumId,weight:this.weight})}};var hx=class n{static fromObject(e){let t=e.createdDate?new Date(e.createdDate):null,i=e.modifiedDate?new Date(e.modifiedDate):null;return new n(e.id,e.name,t,i,e.highestPermission)}constructor(e,t,i,r,o){this.id=e,this.name=t,this.createdDate=i,this.modifiedDate=r,this.highestPermission=o,this.resourceName=Bn.CODE_SPECTRUM}isValid(){return!!this.name}clone(){return new n(this.id,this.name,this.createdDate,this.modifiedDate,this.highestPermission)}};var HYe=(()=>{let e=class e extends ol{constructor(i,r){super(),this._http=i,this._environmentService=r,this._store=new pre(this._environmentService)}findAll(i,r){let o=this._store.crud(),s=new Bs;return i&&(s=s.append("minPermission",i)),r&&(s=s.append("maxPermission",r)),this._http.get(o,{params:s}).pipe(ri(c=>c.map(h=>hx.fromObject(h))))}create(i){let r=this._store.crud();return this._http.post(r,i).pipe(ri(hx.fromObject))}update(i){this.deleteCacheForKey(i.id);let r=this._store.crud();return this._http.put(r,i)}findById(i){if(!this.hasByKey(i)){let r=this._store.byId(i);this._cache[i]=this._http.get(r).pipe(ri(hx.fromObject),dl(1))}return this.getByKey(i)}findByIds(i){let r=i.map(o=>this.findById(o));return dh(r)}getCodesAll(i,r,o=!0){let s=`${this._store.codesByCodingSystem(i,r)}/all`,c=new Bs;return c=c.set("sorted",o),this._http.get(s,{params:c}).pipe(kr(1),ri(h=>h.map(az.fromObject)))}};e.\u0275fac=function(r){return new(r||e)(Ke(ms),Ke(dr))},e.\u0275prov=It({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var Nse,R4t=new Uint8Array(16);function gTe(){if(!Nse&&(Nse=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!Nse))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Nse(R4t)}var GYe=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function N4t(n){return typeof n=="string"&&GYe.test(n)}var YYe=N4t;var Ch=[];for(Pse=0;Pse<256;++Pse)Ch.push((Pse+256).toString(16).substr(1));var Pse;function P4t(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=(Ch[n[e+0]]+Ch[n[e+1]]+Ch[n[e+2]]+Ch[n[e+3]]+"-"+Ch[n[e+4]]+Ch[n[e+5]]+"-"+Ch[n[e+6]]+Ch[n[e+7]]+"-"+Ch[n[e+8]]+Ch[n[e+9]]+"-"+Ch[n[e+10]]+Ch[n[e+11]]+Ch[n[e+12]]+Ch[n[e+13]]+Ch[n[e+14]]+Ch[n[e+15]]).toLowerCase();if(!YYe(t))throw TypeError("Stringified UUID is invalid");return t}var qYe=P4t;function F4t(n,e,t){n=n||{};var i=n.random||(n.rng||gTe)();if(i[6]=i[6]&15|64,i[8]=i[8]&63|128,e){t=t||0;for(var r=0;r<16;++r)e[t+r]=i[r];return e}return qYe(i)}var Cs=F4t;var Jf=class{static create(e){let t=e.map(i=>Promise.resolve(i.validationStepValid).then(r=>({stepDescription:i.stepDescription,validationStepValid:r,showValidationStep:i.showValidationStep})));return Promise.all(t).then(i=>({valid:i.every(r=>r.validationStepValid),validationSteps:i.filter(r=>{if(r.showValidationStep)switch(r.showValidationStep){case"ONLY_ON_ERROR":return!r.validationStepValid;default:return!0}else return!0})}))}};var em=class{constructor(e,t=1,i,r){this.id=e,this._colspan=t,this._displayName=i,this.note=r,this.update$=new Yo,this.id=this.id?this.id:Cs()}isValid(){return Jf.create(this.validationSteps())}toJSON(){return{id:this.id,type:this.type,colspan:this._colspan,displayName:this._displayName,note:this.note}}validationSteps(){return[{validationStepValid:!!this.type,stepDescription:"Eigenschaften ausgew\xE4hlt",showValidationStep:"ONLY_ON_ERROR"},{validationStepValid:!!this._colspan&&this._colspan>0,stepDescription:"Breite f\xFCr Kachel",showValidationStep:"ONLY_ON_ERROR"}]}parseResponseAndWriteErrors(e){let t={},i={};function r(o,s,c){i[o]?c.forEach(h=>i[o].push({errorType:s,text:h.text})):i[o]=c.map(h=>({text:h.text,errorType:s}))}return Object.keys(e).forEach(o=>{e[o].errors?r(o,"ERROR",e[o].errors):e[o].warning?r(o,"WARNING",e[o].warning):t[o]=e[o]}),this.errors=i,t}get displayName(){return this._displayName}set displayName(e){this._displayName=e,this._update({eventType:"redraw",fieldName:"displayName",fieldValue:e})}get colspan(){return this._colspan}set colspan(e){this._colspan=e,this._update({eventType:"redraw",fieldName:"colspan",fieldValue:e})}};var Fse="static-image",N9=class n extends em{constructor(e,t,i,r,o,s=!0){super(e,t,i,r),this._image=o,this._fitToTile=s,this.type=Fse}clone(){return new n(this.id,this.colspan,this.displayName,this.note,this._image,this._fitToTile)}overrideClone(){return new n(null,this.colspan,this.displayName,this.note,this._image,this._fitToTile)}getChildResources(){return{}}getDataTabular(){return{columns:[],content:[]}}toPrecalculatedTileRequest(){return Promise.resolve([])}getOverrideProperties(){return[]}isLoaded(){return!0}isValid(){return Jf.create([...super.validationSteps(),{validationStepValid:!!this._image,stepDescription:"Ein Bild gespeichert"}])}toJSON(){return wt(Ce({},super.toJSON()),{image:this._image,fitToTile:this._fitToTile})}_update(){this.isValid().then(e=>{this.update$.next({eventType:"redraw",tileValid:e.valid})})}get image(){return this._image}set image(e){this._image=e,this._update()}get fitToTile(){return this._fitToTile}set fitToTile(e){this._fitToTile=e}};var Lse="static-text",P9=class n extends em{constructor(e,t,i,r,o){super(e,t,i,r),this._text=o,this.type=Lse}clone(){return new n(this.id,this.colspan,this._displayName,this.note,this._text)}overrideClone(){return new n(null,this.colspan,this._displayName,this.note,this._text)}getChildResources(){return{}}getOverrideProperties(){return[]}toPrecalculatedTileRequest(){return Promise.resolve([])}isLoaded(){return!0}isValid(){return Jf.create([...super.validationSteps()])}toJSON(){return wt(Ce({},super.toJSON()),{text:this._text})}_update(e){this.isValid().then(t=>{this.update$.next(wt(Ce({},e),{tileValid:t.valid}))})}get text(){return this._text}set text(e){this._text=e,this._update({eventType:"redraw",fieldName:"text",fieldValue:e})}};var lz=class{constructor(e){this._term=e}toJSON(){return{type:this.type,term:this.term?this._term.toJSON():null}}getChildResources(){let e={};return this._term&&(e=El.merge(e,this._term.getChildResources())),e}isValid(){return!!this._term&&this._term.isValid()}getOverrideProperties(e,t=void 0){let i=[];return this._term&&i.push(...this._term.getOverrideProperties(e,t)),i}get term(){return this._term}set term(e){this._term=e}};var cz=class n extends lz{constructor(e,t){super(e),this._virtualClinicId=t,this.type="single-virtual-clinic"}updateVirtualClinicId(e){this._virtualClinicId=e,this.term.onUpdateVirtualClinicId(e)}isValid(){return super.isValid()&&!!this._virtualClinicId}toJSON(){return wt(Ce({},super.toJSON()),{virtualClinicId:this._virtualClinicId})}getChildResources(){let e=super.getChildResources();return this._virtualClinicId&&(e=El.merge(e,{[Bn.VIRTUAL_CLINIC]:[this._virtualClinicId]})),e}getOverrideProperties(e){let t=super.getOverrideProperties(e,this._virtualClinicId);return this._virtualClinicId&&t.push(new Jl(e,"virtualClinicId",this._virtualClinicId,this._virtualClinicId,"not-possible",void 0)),t}clone(){return new n(this._term.clone(),this._virtualClinicId)}overrideClone(e){return new n(this._term.overrideClone(e),ec.overrideProperty(this._virtualClinicId,"virtualClinicId",e,t=>t))}toRequestPart(e){return this.isValid()?this._term.toRequestPart(e).then(t=>({type:"VirtualClinicOperatingNumberSingle",term:t,virtualClinicId:this._virtualClinicId})):Promise.resolve(null)}get virtualClinicId(){return this._virtualClinicId}set virtualClinicId(e){this._virtualClinicId=e}};var Bse=class n extends lz{constructor(e,t){super(e),this._clinicsFilter=t,this.type="benchmarking"}clone(){return new n(this._term.clone(),this._clinicsFilter.clone())}overrideClone(e){return new n(this._term.overrideClone(e),this._clinicsFilter.overrideClone(e))}getChildResources(){let e=super.getChildResources();return this._clinicsFilter&&(e=El.merge(e,this._clinicsFilter.getChildResources())),e}getOverrideProperties(e){let t=super.getOverrideProperties(e,void 0);return this._clinicsFilter&&t.push(...this._clinicsFilter.getOverrideProperties(e,void 0)),t}toJSON(){return wt(Ce({},super.toJSON()),{clinicsFilter:this._clinicsFilter?this._clinicsFilter.toJSON():null})}toRequestPart(e){return this.isValid()?Promise.all([this._term.toRequestPart(e),this._clinicsFilter?this._clinicsFilter.toRequestBody(e):Promise.resolve(null)]).then(t=>{let i={type:"VirtualClinicOperatingNumberBenchmark",term:t[0]};return this._clinicsFilter&&(i.benchmark={virtualClinicCondition:t[1]}),i}):Promise.resolve(null)}get clinicsFilter(){return this._clinicsFilter}set clinicsFilter(e){this._clinicsFilter=e}};var px=class{constructor(e){this.type=e}getIncludedTypes(){return[this.type]}};var zse=class n extends px{static fromObject(e={}){return new n(e.value)}constructor(e){super("constant"),this.value=e}clone(){return new n(this.value)}overrideClone(e){return new n(this.value)}getChildResources(){return{}}getFullyInpatientCasesFilters(){return[]}getOverrideProperties(e,t){return[]}isValid(){return Number.isFinite(this.value)}toJSON(){return{type:this.type,value:this.value}}toRequestPart(){return Promise.resolve({type:this.type,value:this.value})}onUpdateVirtualClinicId(e){}};var $Ye={type:"aop",category:"case",displayName:{de:"AOP Kriterien"},sortingIndex:8,occurrence:"multiple"},uz=(()=>{let e=class e extends Gi{static fromObject(i){return Promise.resolve(new e(i.aopVersionYear,i.abschnitt1??null,i.abschnitt2??null,i.abschnitt1Oder2??null,i.icdNichtAmbulant??null,i.opsStationaer??null,i.funktionseinschraenkungen??null,i.pflegegrad??null,i.beatmung??null,i.altersgrenze??null,i.beidseitig??null,i.ophthalm??null,i.aop??null))}static new(){return Promise.resolve(new e(2024))}constructor(i,r=null,o=null,s=null,c=null,h=null,g=null,x=null,C=null,A=null,k=null,O=null,F=null){super($Ye.type),this._aopVersionYear=i,this._abschnitt1=r,this._abschnitt2=o,this._abschnitt1Oder2=s,this._icdNichtAmbulant=c,this._opsStationaer=h,this._funktionseinschraenkungen=g,this._pflegegrad=x,this._beatmung=C,this._altersgrenze=A,this._beidseitig=k,this._ophthalm=O,this._aop=F}clone(){return new e(this._aopVersionYear,this._abschnitt1,this._abschnitt2,this._abschnitt1Oder2,this._icdNichtAmbulant,this._opsStationaer,this._funktionseinschraenkungen,this._pflegegrad,this._beatmung,this._altersgrenze,this._beidseitig,this._ophthalm,this._aop)}equals(i){return super.equals(i)&&this._aopVersionYear===i._aopVersionYear&&this._abschnitt1===i.abschnitt1&&this._abschnitt2===i.abschnitt2&&this._abschnitt1Oder2===i.abschnitt1Oder2&&this._icdNichtAmbulant===i.icdNichtAmbulant&&this._opsStationaer===i.opsStationaer&&this._funktionseinschraenkungen===i.funktionseinschraenkungen&&this._pflegegrad===i.pflegegrad&&this._beatmung===i.beatmung&&this._altersgrenze===i.altersgrenze&&this._beidseitig===i.beidseitig&&this._ophthalm===i.ophthalm&&this._aop===i.aop}toCondition(){return Promise.resolve(new goe(this._aopVersionYear,this._abschnitt1,this._abschnitt2,this._abschnitt1Oder2,this._icdNichtAmbulant,this._opsStationaer,this._funktionseinschraenkungen,this._pflegegrad,this._beatmung,this._altersgrenze,this._beidseitig,this._ophthalm,this._aop))}toJSON(){return{type:this.type,aopVersionYear:this._aopVersionYear,abschnitt1:this._abschnitt1,abschnitt2:this._abschnitt2,abschnitt1Oder2:this._abschnitt1Oder2,icdNichtAmbulant:this._icdNichtAmbulant,opsStationaer:this._opsStationaer,funktionseinschraenkungen:this._funktionseinschraenkungen,pflegegrad:this._pflegegrad,beatmung:this._beatmung,altersgrenze:this._altersgrenze,beidseitig:this._beidseitig,ophthalm:this._ophthalm,aop:this._aop}}toText(){return"AOP Kriterien"}toValue(){return this}get abschnitt1(){return this._abschnitt1}set abschnitt1(i){this._abschnitt1=i}get abschnitt2(){return this._abschnitt2}set abschnitt2(i){this._abschnitt2=i}get icdNichtAmbulant(){return this._icdNichtAmbulant}set icdNichtAmbulant(i){this._icdNichtAmbulant=i}get opsStationaer(){return this._opsStationaer}set opsStationaer(i){this._opsStationaer=i}get funktionseinschraenkungen(){return this._funktionseinschraenkungen}set funktionseinschraenkungen(i){this._funktionseinschraenkungen=i}get pflegegrad(){return this._pflegegrad}set pflegegrad(i){this._pflegegrad=i}get beatmung(){return this._beatmung}set beatmung(i){this._beatmung=i}get altersgrenze(){return this._altersgrenze}set altersgrenze(i){this._altersgrenze=i}get beidseitig(){return this._beidseitig}set beidseitig(i){this._beidseitig=i}get ophthalm(){return this._ophthalm}set ophthalm(i){this._ophthalm=i}get aopVersionYear(){return this._aopVersionYear}set aopVersionYear(i){this._aopVersionYear=i}get abschnitt1Oder2(){return this._abschnitt1Oder2}set abschnitt1Oder2(i){this._abschnitt1Oder2=i}get aop(){return this._aop}set aop(i){this._aop=i}};e.TYPE=$Ye;let n=e;return n})();var KYe=function(){if(typeof window<"u"){if(window.devicePixelRatio)return window.devicePixelRatio;var n=window.screen;if(n)return(n.deviceXDPI||1)/(n.logicalXDPI||1)}return 1}(),Gse={toTextLines:function(n){var e=[],t;for(n=[].concat(n);n.length;)t=n.pop(),typeof t=="string"?e.unshift.apply(e,t.split(` `)):Array.isArray(t)?n.push.apply(n,t):Gl(n)||e.unshift(""+t);return e},textSize:function(n,e,t){var i=[].concat(e),r=i.length,o=n.font,s=0,c;for(n.font=t.string,c=0;ct.right&&(i|=QYe),et.bottom&&(i|=XYe),i}function z4t(n,e){for(var t=n.x0,i=n.y0,r=n.x1,o=n.y1,s=Vse(t,i,e),c=Vse(r,o,e),h,g,x;!(!(s|c)||s&c);)h=s||c,h&JYe?(g=t+(r-t)*(e.top-i)/(o-i),x=e.top):h&XYe?(g=t+(r-t)*(e.bottom-i)/(o-i),x=e.bottom):h&QYe?(x=i+(o-i)*(e.right-t)/(r-t),g=e.right):h&ZYe&&(x=i+(o-i)*(e.left-t)/(r-t),g=e.left),h===s?(t=g,i=x,s=Vse(t,i,e)):(r=g,o=x,c=Vse(r,o,e));return{x0:t,x1:r,y0:i,y1:o}}function Use(n,e){var t=e.anchor,i=n,r,o;return e.clamp&&(i=z4t(i,e.area)),t==="start"?(r=i.x0,o=i.y0):t==="end"?(r=i.x1,o=i.y1):(r=(i.x0+i.x1)/2,o=(i.y0+i.y1)/2),L4t(r,o,n.vx,n.vy,e.align)}var jse={arc:function(n,e){var t=(n.startAngle+n.endAngle)/2,i=Math.cos(t),r=Math.sin(t),o=n.innerRadius,s=n.outerRadius;return Use({x0:n.x+i*o,y0:n.y+r*o,x1:n.x+i*s,y1:n.y+r*s,vx:i,vy:r},e)},point:function(n,e){var t=_Te(n,e.origin),i=t.x*n.options.radius,r=t.y*n.options.radius;return Use({x0:n.x-i,y0:n.y-r,x1:n.x+i,y1:n.y+r,vx:t.x,vy:t.y},e)},bar:function(n,e){var t=_Te(n,e.origin),i=n.x,r=n.y,o=0,s=0;return n.horizontal?(i=Math.min(n.x,n.base),o=Math.abs(n.base-n.x)):(r=Math.min(n.y,n.base),s=Math.abs(n.base-n.y)),Use({x0:i,y0:r+s,x1:i+o,y1:r,vx:t.x,vy:t.y},e)},fallback:function(n,e){var t=_Te(n,e.origin);return Use({x0:n.x,y0:n.y,x1:n.x+(n.width||0),y1:n.y+(n.height||0),vx:t.x,vy:t.y},e)}},OC=Gse.rasterize;function V4t(n){var e=n.borderWidth||0,t=n.padding,i=n.size.height,r=n.size.width,o=-r/2,s=-i/2;return{frame:{x:o-t.left-e,y:s-t.top-e,w:r+t.width+e*2,h:i+t.height+e*2},text:{x:o,y:s,w:r,h:i}}}function U4t(n,e){var t=e.chart.getDatasetMeta(e.datasetIndex).vScale;if(!t)return null;if(t.xCenter!==void 0&&t.yCenter!==void 0)return{x:t.xCenter,y:t.yCenter};var i=t.getBasePixel();return n.horizontal?{x:i,y:null}:{x:null,y:i}}function j4t(n){return n instanceof loe?jse.arc:n instanceof F7e?jse.point:n instanceof coe?jse.bar:jse.fallback}function H4t(n,e,t,i,r,o){var s=Math.PI/2;if(o){var c=Math.min(o,r/2,i/2),h=e+c,g=t+c,x=e+i-c,C=t+r-c;n.moveTo(e,g),hi.x+i.w+t*2||n.y>i.y+i.h+t*2)},intersects:function(n){var e=this._points(),t=n._points(),i=[Hse(e[0],e[1]),Hse(e[0],e[3])],r,o,s;for(this._rotation!==n._rotation&&i.push(Hse(t[0],t[1]),Hse(t[0],t[3])),r=0;rt.id)}constructor(e,t){super("hartmannGroup",e,t,dA.AS_NULL)}};var iqe={type:"hartmannCodeGroupIds",category:"case",displayName:{de:"Hartmann Gruppen"},sortingIndex:8,occurrence:"single"},dz=(()=>{let e=class e extends Gi{static fromObject(i){return Promise.resolve(new e(i.hartmannCodeGroupIds))}static new(){return Promise.resolve(new e([]))}constructor(i){super(iqe.type),this.hartmannCodeGroupIds=i}clone(){return new e([...this.hartmannCodeGroupIds])}equals(i){return super.equals(i)&&hn.equals(this.hartmannCodeGroupIds,i.hartmannCodeGroupIds)}toCondition(){return Promise.resolve(new Yse(this.hartmannCodeGroupIds,[]))}toJSON(){return{type:this.type,hartmannCodeGroupIds:this.hartmannCodeGroupIds}}toText(){return this.hartmannCodeGroupIds.length===1?"eine Hartmann Gruppe":`${this.hartmannCodeGroupIds.length} Hartmann Gruppen`}toValue(){return this.hartmannCodeGroupIds}};e.TYPE=iqe;let n=e;return n})();var qse=class n{static fromObject(e={}){return new n(e.einschlussKriterien??null,e.k1DrgStationaer??null,e.k2OpsStationaer??null,e.k3StationaereBehandlungBeatmung??null,e.k5IcdBetreuungsbedarf??null,e.k6IcdStationaer??null,e.k6sErhoehterAufwand??null,e.k7Pccl??null,e.k8Pflegegrade??null,e.kSharpAlter??null)}constructor(e,t,i,r,o,s,c,h,g,x){this._einschlussKriterien=e,this._k1DrgStationaer=t,this._k2OpsStationaer=i,this._k3StationaereBehandlungBeatmung=r,this._k5IcdBetreuungsbedarf=o,this._k6IcdStationaer=s,this._k6sErhoehterAufwand=c,this._k7Pccl=h,this._k8Pflegegrade=g,this._kSharpAlter=x}clone(){return new n(this._einschlussKriterien,this._k1DrgStationaer,this._k2OpsStationaer,this._k3StationaereBehandlungBeatmung,this._k5IcdBetreuungsbedarf,this._k6IcdStationaer,this._k6sErhoehterAufwand,this._k7Pccl,this._k8Pflegegrade,this._kSharpAlter)}equals(e){return!!e&&this._einschlussKriterien===e._einschlussKriterien&&this._k1DrgStationaer===e.k1DrgStationaer&&this._k2OpsStationaer===e.k2OpsStationaer&&this._k3StationaereBehandlungBeatmung===e.k3StationaereBehandlungBeatmung&&this._k5IcdBetreuungsbedarf===e.k5IcdBetreuungsbedarf&&this._k6IcdStationaer===e.k6IcdStationaer&&this._k6sErhoehterAufwand===e.k6sErhoehterAufwand&&this._k7Pccl===e.k7Pccl&&this._k8Pflegegrade===e.k8Pflegegrade&&this._kSharpAlter===e.kSharpAlter}toJSON(){return{einschlussKriterien:this._einschlussKriterien,k1DrgStationaer:this._k1DrgStationaer,k2OpsStationaer:this._k2OpsStationaer,k3StationaereBehandlungBeatmung:this._k3StationaereBehandlungBeatmung,k5IcdBetreuungsbedarf:this._k5IcdBetreuungsbedarf,k6IcdStationaer:this._k6IcdStationaer,k6sErhoehterAufwand:this._k6sErhoehterAufwand,k7Pccl:this._k7Pccl,k8Pflegegrade:this._k8Pflegegrade,kSharpAlter:this._kSharpAlter}}set einschlussKriterien(e){this._einschlussKriterien=e}set k1DrgStationaer(e){this._k1DrgStationaer=e}set k2OpsStationaer(e){this._k2OpsStationaer=e}set k3StationaereBehandlungBeatmung(e){this._k3StationaereBehandlungBeatmung=e}set k6IcdStationaer(e){this._k6IcdStationaer=e}set k5IcdBetreuungsbedarf(e){this._k5IcdBetreuungsbedarf=e}set k8Pflegegrade(e){this._k8Pflegegrade=e}set k6sErhoehterAufwand(e){this._k6sErhoehterAufwand=e}get einschlussKriterien(){return this._einschlussKriterien}get k1DrgStationaer(){return this._k1DrgStationaer}get k2OpsStationaer(){return this._k2OpsStationaer}get k3StationaereBehandlungBeatmung(){return this._k3StationaereBehandlungBeatmung}get k6IcdStationaer(){return this._k6IcdStationaer}get k5IcdBetreuungsbedarf(){return this._k5IcdBetreuungsbedarf}get k8Pflegegrade(){return this._k8Pflegegrade}get k6sErhoehterAufwand(){return this._k6sErhoehterAufwand}get kSharpAlter(){return this._kSharpAlter}set kSharpAlter(e){this._kSharpAlter=e}get k7Pccl(){return this._k7Pccl}set k7Pccl(e){this._k7Pccl=e}};var nqe={type:"iges",category:"case",displayName:{de:"IGES Kriterien"},sortingIndex:8,occurrence:"single"},hz=(()=>{let e=class e extends Gi{static fromObject(i){return Promise.resolve(new e(qse.fromObject(i.iges)))}static new(){return Promise.resolve(new e(null))}constructor(i){super(nqe.type),this._iges=i}clone(){let i=this._iges?this._iges.clone():null;return new e(i)}equals(i){return super.equals(i)&&sr.equals(this._iges,i._iges,(r,o)=>r.equals(o))}toCondition(){return Promise.resolve(new Koe(this._iges.einschlussKriterien,this._iges.k1DrgStationaer,this._iges.k2OpsStationaer,this._iges.k3StationaereBehandlungBeatmung,this._iges.k5IcdBetreuungsbedarf,this._iges.k6IcdStationaer,this._iges.k6sErhoehterAufwand,this._iges.k7Pccl,this._iges.k8Pflegegrade,this._iges.kSharpAlter))}toJSON(){return{type:this.type,iges:this._iges}}toText(){return"IGES Kriterien"}toValue(){return this._iges}};e.TYPE=nqe;let n=e;return n})();var rqe={type:"pccl",category:"case",displayName:{de:"PCCL Kriterium"},sortingIndex:8,occurrence:"single"},pz=(()=>{let e=class e extends Gi{static fromObject(i){return Promise.resolve(new e(i.pccl))}static new(){return Promise.resolve(new e([]))}constructor(i){super(rqe.type),this.pccl=i}clone(){return new e([...this.pccl])}equals(i){return super.equals(i)&&hn.equals(this.pccl,i.pccl)}toCondition(){return Promise.resolve(new rse(this.pccl,[]))}toJSON(){return{type:this.type,pccl:this.pccl}}toText(){return this.pccl.length===1?"ein PCCL Kriterium":`${this.pccl.length} PCCL Kriterien`}toValue(){return this.pccl}};e.TYPE=rqe;let n=e;return n})();var oqe={type:"operatingNumberFilter",category:"case",displayName:{de:"Kennzahl-Filter"},sortingIndex:9,occurrence:"multiple"},fz=(()=>{let e=class e extends Gi{static fromObject(i){return Promise.resolve(new e(i.operatingNumberId,i.value,i.comparison))}static new(){return Promise.resolve(new e("counts",0,"EQUAL"))}constructor(i,r,o){super(oqe.type),this.operatingNumberId=i,this.value=r,this.comparison=o}clone(){return new e(this.operatingNumberId,this.value,this.comparison)}equals(i){return super.equals(i)&&sr.equals(this.value,i.value)&&sr.equals(this.operatingNumberId,i.operatingNumberId)&&sr.equals(this.comparison,i.comparison)}toCondition(){return Promise.resolve(new nse(this.operatingNumberId,this.value,this.comparison))}toJSON(){return{type:this.type,comparison:this.comparison,value:this.value,operatingNumberId:this.operatingNumberId}}toText(){let i;switch(this.comparison){case"EQUAL":{i="gleich";break}case"GREATER":{i="gr\xF6\xDFer als";break}case"GREATER_OR_EQUAL":{i="gr\xF6\xDFer oder gleich";break}case"LESS":{i="kleiner als";break}case"LESS_OR_EQUAL":{i="kleiner oder gleich";break}}return`Kennzahl ist ${i} ${this.value}`}toValue(){return{comparison:this.comparison,operatingNumberId:this.operatingNumberId,value:this.value}}};e.TYPE=oqe;let n=e;return n})();var L9=class n{static fromObject(e={}){return new n(e.ops_p115f_a1_s1_n2_sgb??null,e.icdNichtAmbulant??null,e.opsStationaer??null,e.funktionseinschraenkungen??null,e.pflegegrad??null,e.beatmung??null,e.altersgrenze??null,e.beidseitig??null,e.ophthalm??null,e.belegungstage_lt_2??null,e.pccl_lt_3??null,e.keine_neubildungen??null)}constructor(e=null,t=null,i=null,r=null,o=null,s=null,c=null,h=null,g=null,x=null,C=null,A=null){this._ops_p115f_a1_s1_n2_sgb=e,this._icdNichtAmbulant=t,this._opsStationaer=i,this._funktionseinschraenkungen=r,this._pflegegrad=o,this._beatmung=s,this._altersgrenze=c,this._beidseitig=h,this._ophthalm=g,this._belegungstage_lt_2=x,this._pccl_lt_3=C,this._keine_neubildungen=A}clone(){return new n(this._ops_p115f_a1_s1_n2_sgb,this._icdNichtAmbulant,this._opsStationaer,this._funktionseinschraenkungen,this._pflegegrad,this._beatmung,this._altersgrenze,this._beidseitig,this._ophthalm,this._belegungstage_lt_2,this._pccl_lt_3,this._keine_neubildungen)}equals(e){return!!e&&this._ops_p115f_a1_s1_n2_sgb===e._ops_p115f_a1_s1_n2_sgb&&this._icdNichtAmbulant===e.icdNichtAmbulant&&this._opsStationaer===e.opsStationaer&&this._funktionseinschraenkungen===e.funktionseinschraenkungen&&this._pflegegrad===e.pflegegrad&&this._beatmung===e.beatmung&&this._altersgrenze===e.altersgrenze&&this._beidseitig===e.beidseitig&&this._ophthalm===e.ophthalm&&this._belegungstage_lt_2===e.belegungstage_lt_2&&this._pccl_lt_3===e.pccl_lt_3&&this._keine_neubildungen===e.keine_neubildungen}toJSON(){return{ops_p115f_a1_s1_n2_sgb:this._ops_p115f_a1_s1_n2_sgb,icdNichtAmbulant:this._icdNichtAmbulant,opsStationaer:this._opsStationaer,funktionseinschraenkungen:this._funktionseinschraenkungen,pflegegrad:this._pflegegrad,beatmung:this._beatmung,altersgrenze:this._altersgrenze,beidseitig:this._beidseitig,ophthalm:this._ophthalm,belegungstage_lt_2:this._belegungstage_lt_2,pccl_lt_3:this._pccl_lt_3,keine_neubildungen:this._keine_neubildungen}}get ops_p115f_a1_s1_n2_sgb(){return this._ops_p115f_a1_s1_n2_sgb}set ops_p115f_a1_s1_n2_sgb(e){this._ops_p115f_a1_s1_n2_sgb=e}get icdNichtAmbulant(){return this._icdNichtAmbulant}set icdNichtAmbulant(e){this._icdNichtAmbulant=e}get opsStationaer(){return this._opsStationaer}set opsStationaer(e){this._opsStationaer=e}get funktionseinschraenkungen(){return this._funktionseinschraenkungen}set funktionseinschraenkungen(e){this._funktionseinschraenkungen=e}get pflegegrad(){return this._pflegegrad}set pflegegrad(e){this._pflegegrad=e}get beatmung(){return this._beatmung}set beatmung(e){this._beatmung=e}get altersgrenze(){return this._altersgrenze}set altersgrenze(e){this._altersgrenze=e}get beidseitig(){return this._beidseitig}set beidseitig(e){this._beidseitig=e}get ophthalm(){return this._ophthalm}set ophthalm(e){this._ophthalm=e}get belegungstage_lt_2(){return this._belegungstage_lt_2}set belegungstage_lt_2(e){this._belegungstage_lt_2=e}get pccl_lt_3(){return this._pccl_lt_3}set pccl_lt_3(e){this._pccl_lt_3=e}get keine_neubildungen(){return this._keine_neubildungen}set keine_neubildungen(e){this._keine_neubildungen=e}};var sqe={type:"hybridDrg",category:"case",displayName:{de:"Hybrid DRG"},sortingIndex:10,occurrence:"single"},mz=(()=>{let e=class e extends Gi{static fromObject(i){return Promise.resolve(new e(L9.fromObject(i.hybridDrg)))}static new(){return Promise.resolve(new e(new L9))}constructor(i){super(sqe.type),this._hybridDrg=i}clone(){let i=this._hybridDrg?this._hybridDrg.clone():null;return new e(i)}equals(i){return i&&super.equals(i)&&this._hybridDrg.equals(i._hybridDrg)}toCondition(){return Promise.resolve(new Goe(this._hybridDrg.ops_p115f_a1_s1_n2_sgb,this._hybridDrg.icdNichtAmbulant,this._hybridDrg.opsStationaer,this._hybridDrg.funktionseinschraenkungen,this._hybridDrg.pflegegrad,this._hybridDrg.beatmung,this._hybridDrg.altersgrenze,this._hybridDrg.beidseitig,this._hybridDrg.ophthalm,this._hybridDrg.belegungstage_lt_2,this._hybridDrg.pccl_lt_3,this._hybridDrg.keine_neubildungen))}toJSON(){return{type:this.type,hybridDrg:this._hybridDrg.toJSON()}}toText(){return"Hybrid DRG Kriterien"}toValue(){return this._hybridDrg}};e.TYPE=sqe;let n=e;return n})();var r2=class r2 extends V_{static fromObject(e){return ct(this,null,function*(){return ta.fromObject(e.expression,r2.expressionFromObject).then(t=>new r2(t))})}static expressionFromObject(e){switch(e.type){case uz.TYPE.type:return uz.fromObject(e);case dz.TYPE.type:return dz.fromObject(e);case hz.TYPE.type:return hz.fromObject(e);case pz.TYPE.type:return pz.fromObject(e);case fz.TYPE.type:return fz.fromObject(e);case mz.TYPE.type:return mz.fromObject(e);default:return _d.fromObject(e)}}static new(e){switch(e){case pz.TYPE.type:return pz.new();case hz.TYPE.type:return hz.new();case dz.TYPE.type:return dz.new();case uz.TYPE.type:return uz.new();case fz.TYPE.type:return fz.new();case mz.TYPE.type:return mz.new();default:return _d.new(e)}}constructor(e=ta.EMPTY()){super("fully-inpatient-cases-filter",e)}clone(){return new r2(this.expression.clone())}overrideClone(e){return new r2(this.expression.overrideClone(e))}onUpdateVirtualClinicId(e){this.expression=ta.withoutType(this.expression,MC)}};r2.TYPES=[{plugin:e2.TYPE},{plugin:uz.TYPE},{plugin:dz.TYPE,permissions:["HARTMANN_VIRTUAL_CLINIC_ANALYSIS:BASE"]},{plugin:hz.TYPE},{plugin:mz.TYPE},{plugin:pz.TYPE},{plugin:Xp.TYPE},{plugin:ug.TYPE},{plugin:YR.TYPE},{plugin:ef.TYPE},{plugin:tf.TYPE},{plugin:Jp.TYPE},{plugin:RR.TYPE},{plugin:NR.TYPE},{plugin:kC.TYPE},{plugin:XR.TYPE},{plugin:JR.TYPE},{plugin:FR.TYPE},{plugin:$R.TYPE},{plugin:dx.TYPE},{plugin:wA.TYPE},{plugin:fz.TYPE},{plugin:WR.TYPE},{plugin:LR.TYPE},{plugin:KR.TYPE}];var gz=r2;var _z=class n extends px{static fromObject(){return ct(this,arguments,function*(e={}){let t=yield gz.fromObject(e.fullyInpatientCasesFilter);return new n(e.operatingNumberId,t)})}constructor(e,t){super("fullyInpatientCaseOperatingNumber"),this.operatingNumberId=e,this.fullyInpatientCasesFilter=t}clone(){return new n(this.operatingNumberId,this.fullyInpatientCasesFilter.clone())}overrideClone(e){return new n(this.operatingNumberId,this.fullyInpatientCasesFilter.overrideClone(e))}getChildResources(){return this.fullyInpatientCasesFilter.getChildResources()}getFullyInpatientCasesFilters(){return[this.fullyInpatientCasesFilter]}getOverrideProperties(e,t){return[...this.fullyInpatientCasesFilter.getOverrideProperties(e,t)]}isValid(){return!!this.operatingNumberId&&!!this.fullyInpatientCasesFilter}toRequestPart(e){return this.fullyInpatientCasesFilter.expression.toCondition(e)?.then(t=>({type:this.type,operatingNumberId:this.operatingNumberId,condition:t}))}toJSON(){return{type:this.type,operatingNumberId:this.operatingNumberId,fullyInpatientCasesFilter:this.fullyInpatientCasesFilter.toJSON()}}onUpdateVirtualClinicId(e){this.fullyInpatientCasesFilter.onUpdateVirtualClinicId(e)}};var $se=class n{static fromObject(e={}){return new n(e.years)}constructor(e=null){this.years=e}clone(){let e=this.years?this.years.slice():null;return new n(e)}toCondition(){return new gA(this.years,[])}toJSON(){return{years:this.years}}};var Kse=class n extends px{static fromObject(){return ct(this,arguments,function*(e={}){let t=$se.fromObject(e.virtualClinicFilter);return new n(e.operatingNumberId,t)})}constructor(e,t){super("virtualClinicOperatingNumber"),this.operatingNumberId=e,this.virtualClinicFilter=t}clone(){let e=this.virtualClinicFilter?this.virtualClinicFilter.clone():null;return new n(this.operatingNumberId,e)}overrideClone(e){let t=this.virtualClinicFilter?this.virtualClinicFilter.clone():null;return new n(this.operatingNumberId,t)}getChildResources(){return{}}getFullyInpatientCasesFilters(){return[]}getOverrideProperties(e,t){return[]}isValid(){return!!this.operatingNumberId}toRequestPart(){return Promise.resolve({type:this.type,operatingNumberId:this.operatingNumberId,condition:this.virtualClinicFilter.toCondition()})}toJSON(){return{type:this.type,operatingNumberId:this.operatingNumberId,virtualClinicFilter:this.virtualClinicFilter.toJSON()}}onUpdateVirtualClinicId(e){}};var CA=class{static fromObject(){return ct(this,arguments,function*(e={}){let t=null;switch(e=e??{},e.type){case"fullyInpatientCaseOperatingNumber":t=yield _z.fromObject(e);break;case"constant":t=Promise.resolve(zse.fromObject(e));break;case"function":t=yield Wse.fromObject(e);break;case"virtualClinicOperatingNumber":t=Promise.resolve(Kse.fromObject(e));break}return t})}};var Wse=class n extends px{static fromObject(){return ct(this,arguments,function*(e={}){let t=yield CA.fromObject(e.leftOperand),i=yield CA.fromObject(e.rightOperand);return new n(t,i,e.operation)})}constructor(e,t,i){super("function"),this.leftOperand=e,this.rightOperand=t,this.operation=i}clone(){return new n(this.leftOperand?this.leftOperand.clone():null,this.rightOperand?this.rightOperand.clone():null,this.operation)}overrideClone(e){return new n(this.leftOperand.overrideClone(e),this.rightOperand.overrideClone(e),this.operation)}getChildResources(){return El.merge(this.leftOperand.getChildResources(),this.rightOperand.getChildResources())}getFullyInpatientCasesFilters(){let e=[];return this.leftOperand&&e.push(...this.leftOperand.getFullyInpatientCasesFilters()),this.rightOperand&&e.push(...this.rightOperand.getFullyInpatientCasesFilters()),e}getOverrideProperties(e,t){return[...this.leftOperand.getOverrideProperties(e,t),...this.rightOperand.getOverrideProperties(e,t)]}getIncludedTypes(){let e=this.leftOperand?this.leftOperand.getIncludedTypes():[],t=this.rightOperand?this.rightOperand.getIncludedTypes():[],i=[...e,...t,this.type];return i.filter((r,o)=>i.indexOf(r)===o)}isValid(){return!!this.leftOperand&&this.leftOperand.isValid()&&!!this.rightOperand&&this.rightOperand.isValid()&&!!this.operation}toRequestPart(e){return this.isValid()?Promise.all([this.leftOperand.toRequestPart(e),this.rightOperand.toRequestPart(e)]).then(t=>({type:this.type,leftOperand:t[0],rightOperand:t[1],operation:this.operation})):null}toJSON(){return{type:this.type,leftOperand:this.leftOperand?this.leftOperand.toJSON():null,rightOperand:this.rightOperand?this.rightOperand.toJSON():null,operation:this.operation}}onUpdateVirtualClinicId(e){this.leftOperand.onUpdateVirtualClinicId(e),this.rightOperand.onUpdateVirtualClinicId(e)}};var vz=class vz extends V_{static fromObject(e){return ta.fromObject(e.expression,_d.fromObject).then(t=>new vz(t))}constructor(e=ta.EMPTY()){super("clinics-filter",e)}clone(){return new vz(this.expression.clone())}overrideClone(e){return new vz(this.expression.overrideClone(e))}};vz.TYPES=[{plugin:qR.TYPE},{plugin:t2.TYPE},{plugin:GR.TYPE},{plugin:DC.TYPE},{plugin:jR.TYPE}];var Zse=vz;var U_=class{static fromObject(e){return ct(this,null,function*(){switch(e.type){case"single-virtual-clinic":return CA.fromObject(e.term).then(t=>new cz(t,e.virtualClinicId));case"benchmarking":return Promise.all([CA.fromObject(e.term),e.clinicsFilter?Zse.fromObject(e.clinicsFilter):Promise.resolve(null)]).then(t=>new Bse(t[0],t[1]));default:throw new Error(`Unknown calculation type: ${e.type}`)}})}};var F0=class{static fromObject(e={}){let t=null;switch(e.type){case"percent":t=new yTe(e.format);break;case"currency":t=new vTe(e.format);break;case"manual":t=new B9(e.format,e.label)}return t}},B9=class{constructor(e,t){this.format=e,this.label=t,this.type="manual"}value(e){return e}formatFnc(e,t=!1){let i=null;return t&&this.label?i=`${Lc.format(e,this.format)} ${this.label}`:i=Lc.format(e,this.format),i}clone(){return F0.fromObject({type:this.type,format:JSON.parse(JSON.stringify(this.format)),label:this.label})}},vTe=class extends B9{constructor(e={minimumFractionDigits:2,maximumFractionDigits:2}){super(e,"\u20AC"),this.type="currency"}},yTe=class extends B9{constructor(e={minimumFractionDigits:0,maximumFractionDigits:0}){super(e,"%"),this.type="percent"}value(e){return super.value(e*100)}formatFnc(e,t=!1){let i=this.value(e);return super.formatFnc(i,t)}formatPercentValueFnc(e,t=!1){return super.formatFnc(e,t)}};var _u=class{static createDictionary(e){let t={fieldNames:{},parameters:{},parameterValues:{},aggregations:{},categories:{}};return e.forEach(i=>{t.fieldNames[i.fieldName]=i.displayName,i.possibleParameters.forEach(r=>{t.parameters[r.name]=r.displayName,(r.possibleValues||[]).forEach(o=>{t.parameterValues[o.value]=o.displayName})}),i.possibleAggregations.forEach(r=>{t.aggregations[r.name]=r.displayName}),t.categories[i.category?.id]=i.category?.displayName}),t}static normalize(e){let t=i=>Array.isArray(i)?i.map(r=>r&&typeof r=="object"?t(r):r).filter(r=>r!=null):Object.entries(i).map(([r,o])=>[r,o&&typeof o=="object"?t(o):o]).reduce((r,[o,s])=>(s==null||typeof s=="object"&&Object.keys(s).length===0||(r[o]=s),r),{});return t(e)}static valid(e){let t=!!e.aggregation&&!!e.aggregation.name;return!!e.fieldName&&t}static toRequestData(e){return e?e.map(t=>Ce({},this.normalize(t))):null}};var Qse=class{static getSortByGroupLabelFnc(e,t){let i;return["admissionDateTime","dismissalDateTime"].includes(e.fieldName)?i=this._getSortByTimeUnitGroupLabelFnc(e,t):e.fieldName==="agmId"?i=this._getSortAgeGroupLabelFnc(e,t):e.fieldName==="drivingTime"&&(i=this._getSortDrivingTimeLabelFnc(e,t)),i??this._getDefaultSortByGroupLabelFnc(t)}static _getSortDrivingTimeLabelFnc(e,t){return(r,o)=>{let s={"0-10":10,"10-20":20,"20-30":30,"30-40":40,"40-50":50,"50-60":60,"60-70":70,"70-80":80,"80-90":90,"90-100":100,"100-110":110,">250":250};return t*(s[r.label.key]-s[o.label.key])}}static _getSortAgeGroupLabelFnc(e,t){return(r,o)=>{let s={"00 - < 01":0,"01 - < 05":1,"05 - < 10":2,"10 - < 15":3,"15 - < 20":4,"20 - < 25":5,"25 - < 30":6,"30 - < 35":7,"35 - < 40":8,"40 - < 45":9,"45 - < 50":10,"50 - < 55":11,"55 - < 60":12,"60 - < 65":13,"65 - < 70":14,"70 - < 75":15,"75 - < 80":16,"80 - < 85":17,"85 - < 90":18,"90 - < 95":19,"> 95":20,unbekannt:21};return t*(s[r.label.shortDisplayName]-s[o.label.shortDisplayName])}}static _getSortByTimeUnitGroupLabelFnc(e,t){let i=e.parameters?.map(o=>o.value),r;return i.includes("dayOfWeek")&&(r=(o,s)=>{let c={Montag:1,Dienstag:2,Mittwoch:3,Donnerstag:4,Freitag:5,Samstag:6,Sonntag:7};return t*(c[o.label.shortDisplayName]-c[s.label.shortDisplayName])}),r}static _getDefaultSortByGroupLabelFnc(e){return(t,i)=>e*t.label.shortDisplayName.localeCompare(i.label.shortDisplayName)}};var yz=class{static createOperatingNumberDataNodes(e,t,i,r){let o={aggregatedRoots:{},nodes:[],dictionary:{}},s=[];for(let c of e){let h=t[c.id];if(h){o.aggregatedRoots[c.id]=h.aggregatedValue;let g=this._groupedValuesToOperatingNumberDataNodes(c.id,h.groupedValues);s=this._mergeOperatingNumberDataNode(c.id,g,s)}}return o.nodes=this._sortOperatingNumberDataNodes(e.map(c=>c.id),s,i,r),o.dictionary=this._getDataNodeLabels(o.nodes),o}static _getDataNodeLabels(e,t={}){return e.forEach(i=>{i.children&&(t=this._getDataNodeLabels(i.children,t)),t[i.label.shortDisplayName]||(t[i.label.shortDisplayName]={shortDisplayName:i.label.shortDisplayName,longDisplayName:i.label.longDisplayName})}),t}static _sortOperatingNumberDataNodes(e,t,i,r,o=0){let s=t,c=i[o],h=c.sort?.direction==="DESC"?-1:1;r?s=this._sortOperatingNumberDataNodesByResultSetOperation(r,t):!c.sort||c.sort?.sortBy==="LABEL"?s=this._sortOperatingNumberDataNodesByLabel(c,t,h):c.sort?.sortBy==="VALUE"&&(s=this._sortOperatingNumberDataNodesByValue(e,t,h));for(let g of s)g.children&&(g.children=this._sortOperatingNumberDataNodes(e,g.children,i,r,o+1));return s}static _sortOperatingNumberDataNodesByResultSetOperation(e,t){let i=(r,o)=>{let s={"Unteres Quartil":0,Median:1,"Oberes Quartil":2};return s[r.label.shortDisplayName]-s[o.label.shortDisplayName]};return t.sort(i)}static _sortOperatingNumberDataNodesByLabel(e,t,i){let r=Qse.getSortByGroupLabelFnc(e,i);return t.sort(r)}static _sortOperatingNumberDataNodesByValue(e,t,i){return((o,s)=>{let c=(h,g,x)=>Math.sign(h-g)?i*Math.sign(h-g):0;return o.sort((h,g)=>s.map((x,C)=>c(h.values[x],g.values[x],C)).filter(x=>x!==0)[0])})(t,e)}static _groupedValuesToOperatingNumberDataNodes(e,t){return t.map(i=>{let r=i.type==="node"?i.aggregated:i.value,o={label:i.label,values:{[e]:r}};return i.type==="node"&&(o.children=this._groupedValuesToOperatingNumberDataNodes(e,i.groupedValues)),o})}static _mergeOperatingNumberDataNode(e,t,i=[]){for(let r of t){let o=i.findIndex(s=>s.label.key===r.label.key);o===-1?i.push(r):o>-1&&(i[o].values=Ce(Ce({},i[o].values),r.values),r.children&&(i[o].children=this._mergeOperatingNumberDataNode(e,r.children,i[o].children)))}return i}};var j_=class{static calculationsToRequest(e,t,i){return ct(this,null,function*(){let r=this.resultSetOperationToRequestFormat(i),o=e.filter(c=>c.calculation.type==="benchmarking"),s=e.filter(c=>c.calculation.type==="single-virtual-clinic");return Promise.all([this._benchmarkVirtualClinicCalculationsToRequest(o,t,r,"merged"),this._singleVirtualClinicCalculationsToRequest(s,t,r)]).then(c=>[...c[0],...c[1]])})}static _singleVirtualClinicCalculationsToRequest(e,t,i){let r=e.reduce((o,s)=>(o[s.calculation.virtualClinicId]?o[s.calculation.virtualClinicId][s.id]={calculation:s.calculation,groupBy:_u.toRequestData(s.groupBy)}:o[s.calculation.virtualClinicId]={[s.id]:{calculation:s.calculation,groupBy:_u.toRequestData(s.groupBy)}},o),{});return Promise.all(e.map(o=>o.calculation.toRequestPart(t).then(s=>({requestPart:s,partId:o.id})))).then(o=>Object.keys(r).map(s=>Object.keys(r[s]).reduce((c,h)=>{let g=wt(Ce({type:"VirtualClinicOperatingNumberSingle",term:null},o.find(x=>x.partId===h).requestPart),{groupBy:r[s][h].groupBy,virtualClinicId:s});return i&&(g.resultSetOperation=i),c[h]=g,c},{})))}static _benchmarkVirtualClinicCalculationsToRequest(e,t,i,r="single"){let o=(c,h,g)=>c.toRequestPart(t).then(x=>{let C=wt(Ce({},x),{groupBy:_u.toRequestData(h)});return g&&(C.resultSetOperation=g),C}),s=e.map(c=>o(c.calculation,c.groupBy,i).then(h=>({requestPart:h,id:c.id})));return r==="single"?Promise.all(s).then(c=>[c.reduce((h,g)=>h[g.id]=g.requestPart,{})]):Promise.all(s).then(c=>c.map(h=>{let g={};return g[h.id]=h.requestPart,g}))}static resultSetOperationToRequestFormat(e){let t=null;return e&&(t={name:e.fieldName,parameters:e.parameters.map(i=>i.name)}),t}};var o2=class{static clone(e){let t=this.toJSON(e);return this.fromObject(t)}static fromObject(e){let i={color:e.color.map(r=>r&&Kp(r)?new is(r):new is(ZSe[0]))};switch(e.chartOptionsType){case"cartesian":i.chartOptionsType="cartesian",i.type=e.type;break;case"radar":i.chartOptionsType="radar",i.fill=e.fill;break;case"polarArea":i.chartOptionsType="polarArea";break;case"pie":i.chartOptionsType="pie";break;case"doughnut":i.chartOptionsType="doughnut";break}return i}static toJSON(e){let i={color:e.color.map(r=>r.toHexString())};switch(e.chartOptionsType){case"cartesian":i.chartOptionsType="cartesian",i.type=e.type;break;case"radar":i.chartOptionsType="radar",i.fill=e.fill;break;case"polarArea":i.chartOptionsType="polarArea";break;case"pie":i.chartOptionsType="pie";break;case"doughnut":i.chartOptionsType="doughnut";break}return i}};var Xse=class n{static fromObject(e){return ct(this,null,function*(){let t=e.calculation?yield U_.fromObject(e.calculation):null,i=o2.fromObject(e.chartOptions),r=e.formatting?F0.fromObject(e.formatting):null;return new n(e.id,e.displayName,t,i,r)})}constructor(e,t,i,r,o){this._id=e,this._displayName=t,this._calculation=i,this._chartOptions=r,this._formatting=o,this._id||(this._id=Cs())}clone(){let e=this._calculation.clone(),t=o2.clone(this._chartOptions),i=this._formatting.clone();return new n(this._id,this._displayName,e,t,i)}overrideClone(e){let t=this._calculation.overrideClone(e),i=o2.clone(this._chartOptions),r=this._formatting.clone();return new n(null,this._displayName,t,i,r)}getOverrideProperties(e){return this._calculation.getOverrideProperties(e,void 0)}toJSON(){let e=o2.toJSON(this._chartOptions);return{id:this._id,displayName:this._displayName,calculation:this._calculation.toJSON(),chartOptions:e,formatting:this._formatting}}toPrecalculatedTileRequest(e,t,i,r){return this.calculation.toRequestPart(r).then(o=>o?{tileId:e,calculationId:this._id,calculationInput:wt(Ce({},o),{groupBy:t,resultSetOperation:i?j_.resultSetOperationToRequestFormat(i):null})}:null)}isValid(){return this.displayName&&this._calculation&&this._calculation.isValid()&&!!this._chartOptions}get calculation(){return this._calculation}set calculation(e){this._calculation=e}get chartOptions(){return this._chartOptions}set chartOptions(e){this._chartOptions=e}get displayName(){return this._displayName}set displayName(e){this._displayName=e}get id(){return this._id}get formatting(){return this._formatting}set formatting(e){this._formatting=e}};var bz=class{constructor(e,t,i,r,o){this.chartOptions=e,this.chartParts=t,this.responses=i,this.groupBy=r,this.resultSetOperation=o,this._aggregatedRoots={},this._init()}_init(){let e=yz.createOperatingNumberDataNodes(this.chartParts,this.responses,this.groupBy,this.resultSetOperation);this._aggregatedRoots=e.aggregatedRoots,this._operatingNumberDataNodes=e.nodes,this._labelDictionary=e.dictionary}_getValueScaleOptions(e){return e.type==="manual"?{min:e.min,max:e.max}:e.type==="auto"&&e.beginAtZero?{beginAtZero:!0}:{beginAtZero:!1}}get operatingNumberDataNodes(){return this._operatingNumberDataNodes}get labelDictionary(){return this._labelDictionary}};var z9=class{static findLongestLabelLength(e){if(e.length){let t=e[0].label.length;for(let i of e)i.children&&(t=Math.max(t,this.findLongestLabelLength(i.children)));return t}else return 0}static interaction(e){return e==="x"?{intersect:!1,mode:"nearest",axis:"xy",includeInvisible:!1}:{intersect:!1,mode:"nearest",axis:"y",includeInvisible:!1}}static calculatePaddingByLongestLabel(e,t,i,r=30){return{left:e==="x"?0:t*(i+r)*1.2,bottom:e==="x"?t*r:0}}};var Jse=class extends bz{constructor(e,t,i,r,o){super(e,t,i,r,o),this.chartOptions=e}getChartConfiguration(){let e=this._getHierarchicalLabels(this._operatingNumberDataNodes),t=this._getDatasets(),i=this.chartParts.map(s=>s.formatting),r=z9.findLongestLabelLength(e),o=this._getChartOptions(this.chartOptions,i,this.groupBy,r);return{type:null,data:{labels:e,datasets:t},options:o}}_getChartOptions(e,t,i,r){let s={layout:{padding:z9.calculatePaddingByLongestLabel(this.chartOptions.indexAxis,i.length,r)},plugins:{tooltip:wt(Ce({},Zf),{callbacks:{label(c){let h=t[c.datasetIndex];return h.type==="percent"?h.formatPercentValueFnc(c.raw,!0):h.formatFnc(c.raw,!0)},title:c=>{let h=c[0].label;return this.labelDictionary[h].longDisplayName}}})}};return s=this._addScaleOptions(e.indexAxis,s,r),s}_addScaleOptions(e,t,i,r){t.indexAxis=e;let o={type:"hierarchical",reverseOrder:!0,hierarchyGroupLabelPosition:"center",hierarchyBoxLineHeight:e==="x"?30:i,hierarchyLabelPosition:"above",attributes:{}},s=this._getValueScaleOptions(this.chartOptions.axes.value.scaleRange);return e==="x"?t.scales={x:o,y:s}:t.scales={y:o,x:s},t}_getDatasets(){let e=this._getDataSetValueTrees();return this.chartParts.map((t,i)=>{let r;switch(t.chartOptions.type){case"bar":r=this._getBarDataset(t,e[t.id]);break;case"line":r=this._getLineDataset(t,e[t.id]);break}return r.order=i+1,r})}_getLineDataset(e,t){let i=e.chartOptions.color.map(r=>r.toHexString());return{type:e.chartOptions.type,label:e.displayName,tree:t,backgroundColor:i,borderColor:i}}_getBarDataset(e,t){let i=e.chartOptions.color.map(r=>r.toHexString());return{type:e.chartOptions.type,label:e.displayName,tree:t,backgroundColor:i,borderColor:i}}_getDataSetValueTrees(){let e={};return this.chartParts.forEach(t=>{e[t.id]=this._getDataSetValueTree(t,this._operatingNumberDataNodes)}),e}_getDataSetValueTree(e,t){return t.map(i=>{let r;if(i.children){let o=null;e.formatting&&e.formatting.type==="percent"?o=i.values[e.id]*100||null:o=i.values[e.id]||null,r={value:o,children:this._getDataSetValueTree(e,i.children)}}else e.formatting&&e.formatting.type==="percent"?r=i.values[e.id]*100||null:r=i.values[e.id]||null;return r})}_getHierarchicalLabels(e){return e.map(t=>{let i={label:t.label.shortDisplayName,tooltipText:t.label.longDisplayName};return t.children&&(i.children=this._getHierarchicalLabels(t.children)),i})}get hierarchicalLabels(){return this._hierarchicalLabels}};var fx=class extends bz{constructor(e,t,i,r){super(e,t,i,r),this.chartOptions=e}_getLabels(){return this._operatingNumberDataNodes.map(e=>e.label.shortDisplayName)}_getLabelsForAggregatedValues(){return this.chartParts.map(e=>e.displayName)}_getDatasetsWithAggregatedValues(){return this.chartParts.map(e=>({label:e.displayName,data:[this._aggregatedRoots[e.id]]}))}_getDatasets(){return this.chartParts.map((e,t)=>{let i=this._operatingNumberDataNodes.map(o=>o.values[e.id]?o.values[e.id]:null),r=e.chartOptions.color.map(o=>o.toHexString());return{label:e.displayName,data:i,order:t,fill:e.chartOptions.fill,backgroundColor:r,borderColor:r}})}};var eae=class extends fx{constructor(e,t,i,r){super(e,t,i,r)}getChartConfiguration(){let e=this._getLabels(),t=this._getDatasets(),i=this.chartParts.map(r=>r.formatting);return{type:"radar",data:{labels:e,datasets:t},options:{scales:{r:this._getValueScaleOptions(this.chartOptions.axes.value.scaleRange)},plugins:{tooltip:wt(Ce({},Zf),{callbacks:{label(r){let o=i[r.datasetIndex];return o.type==="percent"?o.formatPercentValueFnc(r.raw,!0):o.formatFnc(r.raw,!0)},title:r=>this.labelDictionary[r[0].label].longDisplayName}})}}}}};var tae=class extends fx{getChartConfiguration(){let e=this._getLabels(),t=this._getDatasets(),i=this.chartParts.map(r=>r.formatting);return{type:"polarArea",data:{labels:e,datasets:t},options:{scales:{r:this._getValueScaleOptions(this.chartOptions.axes.value.scaleRange)},plugins:{tooltip:wt(Ce({},Zf),{callbacks:{label(r){let o=i[r.datasetIndex];return o.type==="percent"?o.formatPercentValueFnc(r.raw,!0):o.formatFnc(r.raw,!0)},title(r){let o=r[0].label;return r[0].dataset[o]}}})}}}}};var iae=class extends fx{constructor(e,t,i,r){super(e,t,i,r)}getChartConfiguration(){let e=this._getLabelsForAggregatedValues(),t=this._getDatasetsWithAggregatedValues(),i=this.chartParts.map(r=>r.formatting);return{type:"pie",data:{labels:e,datasets:t},options:{scales:{},plugins:{tooltip:wt(Ce({},Zf),{callbacks:{label(r){let o=i[r.datasetIndex];return o.type==="percent"?o.formatPercentValueFnc(r.raw,!0):o.formatFnc(r.raw,!0)},title(r){let o=r[0].label;return r[0].dataset[o]}}})}}}}};var nae=class extends fx{constructor(e,t,i,r){super(e,t,i,r),this._responsesAggregatedValueSum=this.chartParts.reduce((o,s)=>o+this.responses[s.id].aggregatedValue,0)}getChartConfiguration(){let e=this._getData(),t=this._getOptions();return{type:"doughnut",data:e,options:t}}_getData(){let e=[];this.chartParts.forEach(r=>{let o=r.chartOptions.color[0].toHexString();e.push(o)});let t=this.chartParts.map(r=>this.responses[r.id].aggregatedValue),i=this.chartParts.map(r=>r.displayName);return this.chartOptions.axes.value.scaleRange.type==="auto"||this._responsesAggregatedValueSum>this.chartOptions.axes.value.scaleRange.max?{labels:i,datasets:[{data:t,backgroundColor:e}]}:{labels:i.concat(["n/a"]),datasets:[{data:t.concat([this.chartOptions.axes.value.scaleRange.max-this._responsesAggregatedValueSum]),backgroundColor:e.concat(["rgba(0, 0, 0, 0.3)"])}]}}_getOptions(){let e=null;this.chartOptions.axes.value.scaleRange.max?e=this.chartOptions.axes.value.scaleRange.max:this._responsesAggregatedValueSum&&(e=this._responsesAggregatedValueSum);let t={id:"text-in-center",type:"label",content:e?`${Math.round(this._responsesAggregatedValueSum)} / ${Math.round(e)}`:`${Math.round(this._responsesAggregatedValueSum)}`,color:"#000000",xValue:2.5,yValue:60,xScaleID:null,yScaleID:null,font:{size:18,style:"normal",weight:null,family:"Roboto",lineHeight:null}};return{maintainAspectRatio:!1,scales:{},cutout:"75%",plugins:{tooltip:wt(Ce({},Zf),{callbacks:{label(i){return(i.raw/e*100).toFixed(2)+"%"}}}),legend:{display:!1},annotation:{annotations:[t]}}}}};var rae=class{static get(e,t,i,r,o){let s=null,c=t.filter(g=>!!i[g.id]);if(e.coordinateSystem==="cartesian")s=new Jse(e,c,i,r,o).getChartConfiguration();else if(e.coordinateSystem==="radial")switch(e.chartType){case"radar":s=new eae(e,c,i,r).getChartConfiguration();break;case"polarArea":s=new tae(e,c,i,r).getChartConfiguration();break;case"pie":s=new iae(e,c,i,r).getChartConfiguration();break;case"doughnut":s=new nae(e,c,i,r).getChartConfiguration();break}let h={responsive:!0,maintainAspectRatio:!1};return s.options=Ce(Ce({},h),s.options),s}};var SA="chart",V9=class n extends em{static fromObject(){return ct(this,arguments,function*(e={chartParts:[]}){let t=(e.chartParts||[]).map(r=>Xse.fromObject(r)),i=yield Promise.all(t);return new n(e.id,e.colspan,e.displayName,e.note,e.chartOptions,i,e.groupBys,e.resultSetOperation)})}constructor(e,t,i,r,o,s,c,h){super(e,t,i,r),this._chartOptions=o,this._chartParts=s,this._groupBys=c,this._resultSetOperation=h,this.type=SA,this.update$.pipe(Wn(g=>g.eventType==="redraw")).subscribe(()=>this._updateChartConfiguration())}clone(){let e=this._chartParts.map(s=>s.clone()),t=this.note?JSON.parse(JSON.stringify(this.note)):null,i=this._chartOptions?JSON.parse(JSON.stringify(this._chartOptions)):null,r=this._groupBys?JSON.parse(JSON.stringify(this._groupBys)):null,o=this._resultSetOperation?JSON.parse(JSON.stringify(this._resultSetOperation)):null;return new n(this.id,this.colspan,this.displayName,t,i,e,r,o)}overrideClone(e){let t=this._chartParts.map(c=>c.overrideClone(e)),i=this.note?JSON.parse(JSON.stringify(this.note)):null,r=this._chartOptions?JSON.parse(JSON.stringify(this._chartOptions)):null,o=this._groupBys?JSON.parse(JSON.stringify(this._groupBys)):null,s=this._resultSetOperation?JSON.parse(JSON.stringify(this._resultSetOperation)):null;return new n(null,this.colspan,this.displayName,i,r,t,o,s)}toRequests(e){return j_.calculationsToRequest(this._chartParts.map(t=>({id:t.id,calculation:t.calculation,groupBy:this._groupBys.map(i=>_u.normalize(i))})),e,this._resultSetOperation)}toJSON(){return wt(Ce({},super.toJSON()),{chartOptions:this._chartOptions,chartParts:this._chartParts.map(e=>e.toJSON()),groupBys:this._groupBys,resultSetOperation:this._resultSetOperation})}getChildResources(){let e={};return this._chartParts.map(t=>{let i=t.calculation.getChildResources();e=El.merge(e,i)}),e}isLoaded(){return!!this._responses&&Object.keys(this._responses).length>0}isValid(){return Jf.create([...super.validationSteps(),{validationStepValid:!!this._chartParts&&this._chartParts.length>0,stepDescription:"Min. ein Chart-Teil ausgew\xE4hlt"},{validationStepValid:this._chartParts.every(e=>e.isValid()),stepDescription:"Alle Chart-Teile korrekt",showValidationStep:"ONLY_ON_ERROR"},{validationStepValid:this._groupBys&&this._groupBys.length>0,stepDescription:"Min. eine Gruppierung ausgew\xE4hlt"},...this._validationStepsBenchmarking()])}getOverrideProperties(){let e=[];return this._chartParts.forEach(t=>{e.push(...t.getOverrideProperties(this.id))}),e}toPrecalculatedTileRequest(e,t){let i=this._chartParts.map(r=>r.toPrecalculatedTileRequest(this.id,this._groupBys.map(o=>_u.normalize(o)),this._resultSetOperation,e));return Promise.all(i).then(r=>(t&&r.filter(o=>o).forEach(o=>{this._responses&&this._responses[o.calculationId]&&(o.response=this._responses[o.calculationId])}),console.debug(r),r))}_update(e){e.eventType==="resolve"&&(this._responses=null),this.isValid().then(t=>{this.update$.next(wt(Ce({},e),{tileValid:t.valid}))})}_updateChartConfiguration(){this._chartConfiguration=rae.get(this._chartOptions,this._chartParts,this._responses,this._groupBys,this._resultSetOperation)}_onChartOptionChange(){this._chartParts=this._chartParts.map(e=>{if(e=e.clone(),this.chartOptions.coordinateSystem==="cartesian"&&e.chartOptions.chartOptionsType!=="cartesian")e.chartOptions={chartOptionsType:"cartesian",type:"bar",color:e.chartOptions.color};else if(this.chartOptions.coordinateSystem==="radial"&&e.chartOptions.chartOptionsType==="cartesian")switch(this.chartOptions.chartType){case"radar":e.chartOptions={chartOptionsType:"radar",color:e.chartOptions.color,fill:!1};break;case"pie":e.chartOptions={chartOptionsType:"pie",color:e.chartOptions.color};break;case"doughnut":e.chartOptions={chartOptionsType:"doughnut",color:e.chartOptions.color};break;case"polarArea":e.chartOptions={chartOptionsType:"polarArea",color:e.chartOptions.color};break}return e})}_validationStepsBenchmarking(){let e=this._chartParts.some(r=>r.calculation.type==="benchmarking"),t=this._groupBys.some(r=>r.fieldName==="specialtyDepartment"),i=this._chartParts.map(r=>r.calculation.term.getFullyInpatientCasesFilters()).flat().map(r=>r.expression).some(r=>ta.findAll(MC,r).length>0);return[{validationStepValid:e?!t:!0,stepDescription:"Gruppierung nach Fachabteilung in Benchmarking Kachel nicht m\xF6glich",showValidationStep:"ONLY_ON_ERROR"},{validationStepValid:e?!i:!0,stepDescription:"Filter mit interner Fachabteilung in Benchmarking Kachel nicht m\xF6glich",showValidationStep:"ONLY_ON_ERROR"}]}get chartOptions(){return this._chartOptions}set chartOptions(e){this._chartOptions=e,this._onChartOptionChange(),this._update({eventType:"redraw"})}get chartParts(){return this._chartParts}set chartParts(e){this._chartParts=e,this._update({eventType:"resolve"})}get groupBys(){return this._groupBys}set groupBys(e){this._groupBys=e,this._update({eventType:"resolve"})}get resultSetOperation(){return this._resultSetOperation}set resultSetOperation(e){this._resultSetOperation=e,this._update({eventType:"resolve"})}get chartConfiguration(){return this._chartConfiguration}get responses(){return this._responses}set responses(e){this._responses=this.parseResponseAndWriteErrors(e),this.update$.next({eventType:"redraw"})}};var e5t="marker-layer",oae=class n extends v9{constructor(e=Cs(),t,i,r,o={displayName:t,sourceId:`market-source-${Cs()}`,popup:{messagePrefix:"",titleFnc:s=>s.properties.itemName}}){super(e,o),this.id=e,this.layerDisplayName=t,this.layerOptions=i,this.inputSource=r,this.config=o,this.layerType=e5t,this.tileResponse$=new Yo(1),this.colorAsHex="#000000",this.layerOptions&&this.layerOptions.paint["icon-color"]&&typeof this.layerOptions.paint["icon-color"]=="string"&&(this.colorAsHex=this.layerOptions.paint["icon-color"])}afterInit(e,t){super.afterInit(e,t),this.tileResponse$.asObservable().subscribe(i=>{this.transformData(i)})}updateLegendRef(e){let t=new wh(this.layerControlId,this.config.displayName,"location_on",this.colorAsHex);return this.applyLegendConfig(t,e),t}clone(){return new n(this.id,this.layerDisplayName,this.layerOptions?Ce({},this.layerOptions):null,this.inputSource?this.inputSource.clone():null,this.config)}overrideClone(e){return new n(Cs(),this.layerDisplayName,this.layerOptions?Ce({},this.layerOptions):null,this.inputSource?this.inputSource.overrideClone(e):null,this.config)}getOverrideProperties(e){return this.inputSource.getOverrideProperties(e)}transformData(e){switch(this.inputSource.sourceType){case"virtual-clinic-source":{let i=e.value.map(r=>E0({type:"Point",coordinates:r.address?.location},{itemKey:r.id?.toString(),itemName:r.name,itemActive:!0,colorAsHex:this.colorAsHex}));this.data$.next(Jc(i));break}case"clinics-filter-source":{let i=e.value.map(r=>E0({type:"Point",coordinates:r.clinic.address.location},{itemKey:r.clinic.id?.toString(),itemName:r.clinic.name,itemActive:!0,colorAsHex:this.colorAsHex}));this.data$.next(Jc(i))}}}valid(){return!!this.layerDisplayName&&!!this.inputSource&&this.inputSource.valid()}toJSON(){return{layerType:this.layerType,id:this.id,layerDisplayName:this.layerDisplayName,layerOptions:this.layerOptions,inputSource:this.inputSource}}};function sae(n){if(!n)throw new Error("coord is required");if(!Array.isArray(n)){if(n.type==="Feature"&&n.geometry!==null&&n.geometry.type==="Point")return n.geometry.coordinates;if(n.type==="Point")return n.coordinates}if(Array.isArray(n)&&n.length>=2&&!Array.isArray(n[0])&&!Array.isArray(n[1]))return n;throw new Error("coord must be GeoJSON Point or an Array of numbers")}function bTe(n,e,t,i){i===void 0&&(i={});var r=sae(n),o=use(r[0]),s=use(r[1]),c=use(t),h=eYe(e,i.units),g=Math.asin(Math.sin(s)*Math.cos(h)+Math.cos(s)*Math.sin(h)*Math.cos(c)),x=o+Math.atan2(Math.sin(c)*Math.sin(h)*Math.cos(s),Math.cos(h)-Math.sin(s)*Math.sin(g)),C=oTe(x),A=oTe(g);return lg([C,A],i.properties)}function t5t(n,e,t){t===void 0&&(t={});for(var i=t.steps||64,r=t.properties?t.properties:!Array.isArray(n)&&n.type==="Feature"&&n.properties?n.properties:{},o=[],s=0;sthis.transformData(i))}layer(){return wt(Ce({},this.layerOptions),{type:"line",id:this.layerId,source:this.sourceId})}source(){return{sourceId:this.sourceId,sourceData:{type:"geojson",data:null}}}updateLegendRef(e){return new wh(this.id,this.layerDisplayName,"filter_tilt_shift",this.layerOptions?.paint?.["line-color"]??"#3FB1CE")}clone(){return new n(this.id,this.layerDisplayName,this.layerOptions?Ce({},this.layerOptions):null,this.inputSource?this.inputSource.clone():null,this.config)}overrideClone(e){return new n(Cs(),this.layerDisplayName,this.layerOptions?Ce({},this.layerOptions):null,this.inputSource?this.inputSource.overrideClone(e):null,this.config)}getOverrideProperties(e){return this.inputSource.getOverrideProperties(e)}transformData(e){let t=Jc(this.inputSource.transformResponse(e).features.map(i=>U9(i.geometry.coordinates,this.layerOptions.radius,{units:this.layerOptions.radiusUnit})));this.updateSource(t)}valid(){return!!this.layerOptions?.radius&&!!this.layerOptions?.radiusUnit&&!!this.layerDisplayName&&!!this.inputSource&&this.inputSource.valid()}toJSON(){return{layerType:this.layerType,id:this.id,layerDisplayName:this.layerDisplayName,layerOptions:this.layerOptions,inputSource:this.inputSource}}};var n5t="circle-layer",lae=class n extends z_{constructor(e=Cs(),t,i,r,o={displayName:t,sourceId:`market-source-${Cs()}`}){super(e,o),this.id=e,this.layerDisplayName=t,this.layerOptions=i,this.inputSource=r,this.config=o,this.layerType=n5t,this.tileResponse$=new Yo(1),this.layerId=`custom-layer-${Cs()}`,this.sourceId=o.sourceId}layer(){return wt(Ce({},this.layerOptions),{type:"circle",id:this.layerId,source:this.sourceId})}source(){return{sourceId:this.sourceId,sourceData:{type:"geojson",data:null}}}updateLegendRef(e){return new wh(this.layerControlId,this.config.displayName,"trip_origin",this.layerOptions?.paint?.["circle-color"]??"#000000")}clone(){return new n(this.id,this.layerDisplayName,this.layerOptions?Ce({},this.layerOptions):null,this.inputSource?this.inputSource.clone():null)}overrideClone(e){return new n(Cs(),this.layerDisplayName,this.layerOptions?Ce({},this.layerOptions):null,this.inputSource?this.inputSource.overrideClone(e):null)}getOverrideProperties(e){return this.inputSource.getOverrideProperties(e)}transformData(e){this.updateSource(this.inputSource.transformResponse(e))}valid(){return!!this.layerDisplayName&&!!this.inputSource&&this.inputSource.valid()}toJSON(){return{layerType:this.layerType,id:this.id,layerDisplayName:this.layerDisplayName,layerOptions:this.layerOptions,inputSource:this.inputSource}}};var H_=class{constructor(e,t){this.layerId=e,this.requestParams=t}};var xz=class{constructor(e,t){this.summary=e,this.source=t}valid(){return!!this.summary}};var cae="virtual-clinic-source",j9=class n extends xz{constructor(e,t){super(e,t),this.sourceType=cae}clone(){return new n(this.summary,this.source?[...this.source]:null)}overrideClone(e){return new n(this.summary,this.source?ec.overrideProperties(this.source,"virtualClinicId",e,t=>t):[])}toRequest(e){let t={};return this.source.forEach(i=>t[i]=[i]),Promise.resolve(new H_(e,t))}transformResponse(e){return Jc(e.value.map(t=>lg(t.address?.location,{displayName:t.name})))}getOverrideProperties(e){return this.source.map(t=>new Jl(e,"virtualClinicId",t,t,"possible",void 0))}getChildResources(){return{[Bn.VIRTUAL_CLINIC]:this.source}}valid(){return super.valid()&&!!this.source&&this.source.length>0}};var aqe="clinics-filter-source",H9=class n extends xz{constructor(e,t){super(e,t),this.sourceType=aqe}clone(){return new n(this.summary,[...this.source])}overrideClone(e){return new n(this.summary,this.source?ec.overrideProperties(this.source,"clinicsFilterId",e,t=>t):[])}toRequest(e){let t={};return this.source.forEach(i=>{t[i]=[i,p9e]}),Promise.resolve(new H_(e,t))}transformResponse(e){return Jc(e.value.map(t=>lg(t.clinic.address.location,{displayName:t.clinic.name})))}getOverrideProperties(e){return this.source.map(t=>new Jl(e,"clinicsFilterId",t,t,"possible",void 0))}getChildResources(){return{[Bn.CLINICS_FILTER]:this.source}}valid(){return super.valid()&&!!this.source&&this.source.length>0}};var uae="calculation",G9=class n{constructor(e,t,i,r){this.summary=e,this.source=t,this.groupBys=i,this.resultSetOperation=r,this.sourceType=uae}clone(){return new n(this.summary,this.source?this.source.clone():null,this.groupBys?[...this.groupBys]:null,this.resultSetOperation?Ce({},this.resultSetOperation):null)}overrideClone(e){return new n(this.summary,this.source?this.source.overrideClone(e):null,this.groupBys?[...this.groupBys]:null,this.resultSetOperation?Ce({},this.resultSetOperation):null)}toRequest(e,t){return j_.calculationsToRequest([{id:e,calculation:this.source,groupBy:this.groupBys}],t,this.resultSetOperation).then(i=>i[0]).then(i=>new H_(e,{0:[i]}))}toPrecalculatedTileRequest(e,t,i){return this.valid()?this.source.toRequestPart(i).then(r=>({tileId:e,calculationId:t,calculationInput:wt(Ce({},r),{groupBy:this.groupBys.map(o=>_u.normalize(o)),resultSetOperation:this.resultSetOperation})})):null}valid(){return!!this.summary&&!!this.source&&this.source.isValid()&&!!this.groupBys}getOverrideProperties(e){return this.source.getOverrideProperties(e)}getChildResources(){return this.source.getChildResources()}};var lqe="market-source",Y9=class n{constructor(e,t,i){this.summary=e,this.source=t,this.marketGranularity=i,this.sourceType=lqe}clone(){return new n(this.summary,this.source?[...this.source]:null,this.marketGranularity)}getChildResources(){return{[Bn.MARKET]:this.source}}getOverrideProperties(e){return this.source.map(t=>new Jl(e,"market",t,t,"possible",void 0))}overrideClone(e){return new n(this.summary,this.source?ec.overrideProperties(this.source,"market",e,t=>t):[],this.marketGranularity)}toRequest(e){let t={},i=[];switch(this.marketGranularity){case"postalCodes":{i=[{value:"postalCode"}];break}case"administrativeDistricts":{i=[{value:"administrativeDistrictId"}];break}}return this.source.forEach(r=>t[r]=[r,i]),Promise.resolve(new H_(e,t))}valid(){return!!this.summary&&!!this.source&&this.source.length>0}};var dae="isochrone-source",q9=class n{constructor(e,t,i){this.summary=e,this.source=t,this.distanceInMinutes=i,this.sourceType=dae}clone(){return new n(this.summary,this.source,this.distanceInMinutes)}getChildResources(){return this.source.type==="virtualClinic"?{[Bn.VIRTUAL_CLINIC]:[this.source.value]}:{}}getOverrideProperties(e){return this.source.type==="virtualClinic"?[new Jl(e,"virtualClinicId",this.source.value,this.source.value,"not-possible",void 0)]:[]}overrideClone(e){let t=this.source.value;return this.source.type==="virtualClinic"&&(t=ec.overrideProperty(this.source.value,"virtualClinicId",e,i=>i)),new n(this.summary,{value:t,type:this.source.type},this.distanceInMinutes)}toRequest(e){let t={};return t[1]=[this.source.type,this.source.value],t[2]=[this.distanceInMinutes],Promise.resolve(new H_(e,t))}valid(){return!!this.summary&&!!this.source&&!!this.source.type&&!!this.source.value&&!!this.distanceInMinutes}};var s2=class{static defaultLayerOptions(e){switch(e){case"isochrone-source":return{color:new is("#3FB1CE"),formatting:{type:"manual",format:{minimumFractionDigits:0,maximumFractionDigits:2}},paint:{"fill-opacity":.9}};case"calculation":return{colorFactory:new R_,formatting:{type:"manual",format:{minimumFractionDigits:0,maximumFractionDigits:2}}};case"market-source":return{color:new is("#3FB1CE"),formatting:{type:"manual",format:{minimumFractionDigits:0,maximumFractionDigits:2}},paint:{"fill-opacity":.9}};default:return null}}static of(e,t){switch(e){case"virtual-clinic-source":return new j9("Virtual Klinik Werte",[]);case"clinics-filter-source":return new H9("Klinik-Filter Werte",[]);case"market-source":return new Y9("M\xE4rkte",[],"postalCodes");case"isochrone-source":return new q9("Fahrzeit",null,20);case"calculation":return new G9("Neue Berechnung",new cz(new _z("counts",new gz),null),[{fieldName:t,aggregation:{name:"SUM"}}],null)}}static fromObject(e){return ct(this,null,function*(){switch(e.sourceType){case"calculation":return U_.fromObject(e.source).then(t=>new G9(e.summary,t,e.groupBys,e.resultSetOperation));case"virtual-clinic-source":return Promise.resolve(new j9(e.summary,e.source));case"clinics-filter-source":return Promise.resolve(new H9(e.summary,e.source));case"market-source":return Promise.resolve(new Y9(e.summary,e.source,e.marketGranularity));case"isochrone-source":return Promise.resolve(new q9(e.summary,e.source,e.distanceInMinutes));default:throw new Error(`${e.sourceType} is not implemented !`)}})}};var wz={"virtual-clinic-source":"Virtuelle Klinik","clinics-filter-source":"Klinik-Filter","market-source":"M\xE4rkte",calculation:"Berechnung","isochrone-source":"Fahrzeit"};var cqe="fill-layer",hg=class{static cloneOptions(e){return e?wt(Ce({},e),{colorFactory:e.colorFactory?.clone(),color:e?.color?.clone()}):null}static heatmapControlLayerConfig(e,t,i,r){let o="";switch(t.sourceType){case"calculation":{o=t.groupBys.slice().pop().fieldName;break}case"market-source":switch(t.marketGranularity){case"postalCodes":{o="postalCode";break}case"administrativeDistricts":{o="administrativeDistrict";break}default:{o=t.marketGranularity;break}}}let s=r.sourceMapping[o].geoJsonPropertiesKey,c=F0.fromObject(i.formatting);return{displayName:e,layerId:r.layerMapping[o].id,sourceId:r.sourceMapping[o].id,geoJsonPropertiesKey:s,popup:{titleFnc:r.sourceMapping[o].popupConfig.titleFn,messageFnc:(h,g)=>g?c.formatFnc(g[h.properties[s]]):null,messagePrefix:c.type==="manual"&&c?.label||""},visible:"visible"}}};var hae=class n extends z_{constructor(e=Cs(),t,i,r,o={displayName:t,sourceId:`isochrome-source-${Cs()}`}){super(e,o),this.id=e,this.layerDisplayName=t,this.layerOptions=i,this.inputSource=r,this.config=o,this.layerType=cqe,this.tileResponse$=new Yo(1),this.layerId=`isochrome-layer-${Cs()}`,this.sourceId=this.config.sourceId}afterInit(e,t){super.afterInit(e,t),this.tileResponse$.asObservable().subscribe(i=>this.transformData(i))}layer(){let e=this.layerOptions.color?this.layerOptions.color.toString():this.layerOptions.colorFactory.getColorForValue(0,0,0)?.toString()??"#000000";return wt(Ce({},this.layerOptions),{type:"fill",id:this.layerId,source:this.sourceId,paint:wt(Ce({},this.layerOptions.paint),{"fill-color":e})})}source(){return{sourceId:this.sourceId,sourceData:{type:"geojson",data:null}}}clone(){return new n(this.id,this.layerDisplayName,hg.cloneOptions(this.layerOptions),this.inputSource?this.inputSource.clone():null,this.config)}overrideClone(e){return new n(Cs(),this.layerDisplayName,hg.cloneOptions(this.layerOptions),this.inputSource?this.inputSource.overrideClone(e):null,this.config)}transformData(e){this.updateSource(e.value)}updateLegendRef(e){return this.layerOptions.color?new wh(this.id,this.layerDisplayName,"public",this.layerOptions.color.toString()):new yA(this.id,this.layerDisplayName,this.layerOptions.colorFactory,null,null)}valid(){let e=!!this.layerOptions.colorFactory||!!this.layerOptions.color;return!!this.layerDisplayName&&!!this.inputSource&&this.inputSource.valid()&&e}toJSON(){return{layerType:this.layerType,id:this.id,layerDisplayName:this.layerDisplayName,inputSource:this.inputSource,layerOptions:wt(Ce({},this.layerOptions),{color:this.layerOptions?.color?.toString()??void 0})}}getOverrideProperties(e){return this.inputSource.getOverrideProperties(e)}};var pae=class n extends bA{constructor(e=Cs(),t,i,r,o,s=hg.heatmapControlLayerConfig(t,r,i,o)){super(e,s),this.id=e,this.layerDisplayName=t,this.layerOptions=i,this.inputSource=r,this.cubeMapFeatureConfig=o,this.config=s,this.layerType="fill-layer",this.tileResponse$=new Yo(1),this.currentGroupBy=this.inputSource.groupBys.slice().pop(),this.defaultBounds=this.cubeMapFeatureConfig.mapOptions.bounds,this.layerOptions.colorFactory&&this.colorFactory$.next(this.layerOptions.colorFactory)}afterInit(e,t){super.afterInit(e,t),this.tileResponse$.asObservable().subscribe(i=>this.transformData(i))}clone(){return new n(this.id,this.layerDisplayName,hg.cloneOptions(this.layerOptions),this.inputSource?this.inputSource.clone():null,this.cubeMapFeatureConfig,this.config)}overrideClone(e){return new n(Cs(),this.layerDisplayName,hg.cloneOptions(this.layerOptions),this.inputSource?this.inputSource.overrideClone(e):null,this.cubeMapFeatureConfig,this.config)}layer(){if(this.cubeMapFeatureConfig.layerMapping[this.currentGroupBy.fieldName])return wt(Ce({},this.cubeMapFeatureConfig.layerMapping[this.currentGroupBy.fieldName]),{id:`${this.layerControlId}_${this.config.layerId}`,source:this.config.sourceId});console.error(`unknown layerMapping: ${this.currentGroupBy.fieldName}`)}source(){if(this.cubeMapFeatureConfig.sourceMapping[this.currentGroupBy.fieldName])return{sourceId:this.config.sourceId,sourceData:Ce({},this.cubeMapFeatureConfig.sourceMapping[this.currentGroupBy.fieldName])};console.error(`unknown sourceMapping: ${this.currentGroupBy.fieldName}`)}transformData(e){let t=this._heatmapData(e,this.inputSource.groupBys);this.data$.next(t)}_heatmapData(e,t){let i=e.groupedValues||[],r={};return i.forEach(o=>{let s=t.some(c=>c.fieldName==="administrativeDistrict")?la.create(o.label.key)?.value:o.label.key;r[s]=o.value}),delete r[0],r}getOverrideProperties(e){return this.inputSource.getOverrideProperties(e)}toJSON(){return{layerType:this.layerType,id:this.id,layerDisplayName:this.layerDisplayName,layerOptions:this.layerOptions,inputSource:wt(Ce({},this.inputSource),{color:this.layerOptions?.color?.toString()??void 0})}}valid(){return!!this.layerDisplayName&&!!this.inputSource&&this.inputSource.valid()}};var fae=class n extends bA{constructor(e=Cs(),t,i,r,o,s=hg.heatmapControlLayerConfig(t,r,i,o)){super(e,s),this.id=e,this.layerDisplayName=t,this.layerOptions=i,this.inputSource=r,this.cubeMapFeatureConfig=o,this.config=s,this.layerType="fill-layer",this.tileResponse$=new Yo(1),this.layerId=`market-layer-${Cs()}`}afterInit(e,t){super.afterInit(e,t),this.tileResponse$.asObservable().subscribe(i=>this.transformData(i))}layer(){if(this.cubeMapFeatureConfig.layerMapping[this.inputSource.marketGranularity])return wt(Ce(Ce({},this.cubeMapFeatureConfig.layerMapping[this.inputSource.marketGranularity]),this.layerOptions),{type:"fill",id:this.layerId,paint:wt(Ce({},this.layerOptions.paint),{"fill-color":"rgba(0,0,0,0.0)","fill-outline-color":"rgba(0,0,0,0.0)"})});console.error(`unknown layerMapping: ${this.inputSource.marketGranularity}`)}source(){if(this.cubeMapFeatureConfig.sourceMapping[this.inputSource.marketGranularity])return{sourceId:this.cubeMapFeatureConfig.sourceMapping[this.inputSource.marketGranularity].id,sourceData:Ce({},this.cubeMapFeatureConfig.sourceMapping[this.inputSource.marketGranularity])};console.error(`unknown sourceMapping: ${this.inputSource.marketGranularity}`)}clone(){return new n(this.id,this.layerDisplayName,hg.cloneOptions(this.layerOptions),this.inputSource?this.inputSource.clone():null,this.cubeMapFeatureConfig,this.config)}overrideClone(e){return new n(Cs(),this.layerDisplayName,hg.cloneOptions(this.layerOptions),this.inputSource?this.inputSource.overrideClone(e):null,this.cubeMapFeatureConfig,this.config)}transformData(e){let t="rgba(0,0,0,0.0)",i=this.layerOptions.color?this.layerOptions.color.toString():this.layerOptions.colorFactory.getColorForValue(0,0,0)?.toString()??"#000000";switch(this.inputSource.marketGranularity){case"postalCodes":{let r=new Set(e.value.map(o=>o.label));if(r.size>0){t=["match",["get","plz"]];for(let o of r.values())t.push(o,i);t.push("rgba(0,0,0,0)")}break}case"administrativeDistricts":{let r=e.value.map(o=>o.label).map(o=>la.create(o));r.length>0&&(t=["match",["get","AGS"]],hn.unique(r,o=>o.value).forEach(o=>{t.push(o.value,i)}),t.push("rgba(0,0,0,0)"));break}}this.mapRef.setPaintProperty(this.layerId,"fill-color",t)}updateLegendRef(e,t){return this.layerOptions.color?new wh(this.id,this.layerDisplayName,"public",this.layerOptions.color.toString()):new yA(this.id,this.layerDisplayName,this.layerOptions.colorFactory,t.min,t.max)}getOverrideProperties(e){return this.inputSource.getOverrideProperties(e)}toJSON(){return{layerType:this.layerType,id:this.id,layerDisplayName:this.layerDisplayName,layerOptions:this.layerOptions,inputSource:wt(Ce({},this.inputSource),{color:this.layerOptions?.color?.toString()??void 0})}}valid(){return!!this.layerDisplayName&&!!this.inputSource&&this.inputSource.valid()}};var mae=class{static possibleSourceTypes(e){switch(e){case"fill-layer":return[{sourceType:"calculation",displayName:wz.calculation},{sourceType:"market-source",displayName:wz["market-source"]},{sourceType:"isochrone-source",displayName:wz["isochrone-source"]}];case"marker-layer":case"circle-layer":case"line-layer":return[{sourceType:"virtual-clinic-source",displayName:wz["virtual-clinic-source"]},{sourceType:"clinics-filter-source",displayName:wz["clinics-filter-source"]}]}}static fromObject(e,t){return ct(this,null,function*(){switch(e.layerType){case"marker-layer":return s2.fromObject(e.inputSource).then(i=>new oae(e.id,e.layerDisplayName,this.layerOptionsFromObject(e.layerType,e.layerOptions),i));case"line-layer":return s2.fromObject(e.inputSource).then(i=>new aae(e.id,e.layerDisplayName,this.layerOptionsFromObject(e.layerType,e.layerOptions),i));case"circle-layer":return s2.fromObject(e.inputSource).then(i=>new lae(e.id,e.layerDisplayName,this.layerOptionsFromObject(e.layerType,e.layerOptions),i));case"fill-layer":return s2.fromObject(e.inputSource).then(i=>{switch(i.sourceType){case"isochrone-source":return new hae(e.id,e.layerDisplayName,this.layerOptionsFromObject(e.layerType,e.layerOptions),i);case"calculation":return new pae(e.id,e.layerDisplayName,this.layerOptionsFromObject(e.layerType,e.layerOptions),i,t);case"market-source":return new fae(e.id,e.layerDisplayName,this.layerOptionsFromObject(e.layerType,e.layerOptions),i,t);default:throw Error(`${i.sourceType} not implemented for AysTileMapFillLayer`)}})}})}static layerOptionsFromObject(e,t){switch(e){case"fill-layer":return wt(Ce({},t),{colorFactory:t.colorFactory?m3.fromObject(t.colorFactory):new R_,color:t.color?new is(t.color):null});case"circle-layer":case"line-layer":case"marker-layer":return t}}};var EA="map",$9=class n extends em{static fromObject(e,t){return ct(this,null,function*(){let i=Promise.resolve(null);return e.mapboxLayers&&(i=Promise.all(e.mapboxLayers.map(r=>mae.fromObject(r,t)))),i.then(r=>new n(e.id,e.colspan,e.displayName,e.note,e.mapboxOptions,r))})}constructor(e,t,i,r,o,s){super(e,t,i,r),this._mapboxOptions=o,this._mapboxLayers=s,this.type=EA}clone(){return new n(this.id,this.colspan,this.displayName,JSON.parse(JSON.stringify(this.note)),Ce({},this.mapboxOptions),[...this._mapboxLayers.map(e=>e.clone())])}toRequests(e){let t={calculation:[],"clinics-filter-source":[],"virtual-clinic-source":[],"market-source":[],"isochrone-source":[]};if(!this._mapboxLayers||this._mapboxLayers?.length===0)return Promise.resolve(t);let i=this._mapboxLayers.map(r=>r.inputSource.toRequest(r.id,e).then(o=>({request:o,sourceType:r.inputSource.sourceType})));return Promise.all(i).then(r=>(r.forEach(o=>{t[o.sourceType].push(o.request)}),t))}overrideClone(e){let t=this._mapboxLayers?this._mapboxLayers.map(i=>i.overrideClone(e)):null;return new n(Cs(),this.colspan,this.displayName,JSON.parse(JSON.stringify(this.note)),Ce({},this.mapboxOptions),t)}isLoaded(){return!!this._responses&&Object.keys(this._responses).length>0}getChildResources(){let e={};return this._mapboxLayers.map(t=>t.inputSource).map(t=>{let i=t.getChildResources();e=El.merge(e,i)}),e}getOverrideProperties(){let e=[];return this._mapboxLayers.forEach(t=>e.push(...t.getOverrideProperties(this.id))),e}toPrecalculatedTileRequest(e,t){let i=this._mapboxLayers.filter(r=>r.inputSource.sourceType==="calculation").map(r=>r.inputSource.toPrecalculatedTileRequest(this.id,r.id,e));return Promise.all(i).then(r=>(t&&r.forEach(o=>{this._responses[o.calculationId]&&(o.response=this._responses[o.calculationId])}),r))}toJSON(){return wt(Ce({},super.toJSON()),{mapboxOptions:this._mapboxOptions,mapboxLayers:this._mapboxLayers})}_update(e){this.isValid().then(t=>{let i=wt(Ce({},e),{tileValid:t.valid});e.eventType==="resolve"&&(this._responses=null),this.update$.next(i)})}get responses(){return this._responses}set responses(e){this._responses=this.parseResponseAndWriteErrors(e),this._update({eventType:"redraw"})}get mapboxOptions(){return this._mapboxOptions}set mapboxOptions(e){this._mapboxOptions=e;let t=this._mapboxLayers.some(i=>i.layerType==="fill-layer")?"resolve":"redraw";this._update({eventType:t,fieldName:"mapboxOptions",fieldValue:e})}get mapboxLayers(){return this._mapboxLayers}set mapboxLayers(e){this._mapboxLayers=[...e.map(t=>t.clone())],this._update({eventType:"resolve",fieldName:"mapboxLayers",fieldValue:e})}};var gae=class n{static fromObject(e){return ct(this,null,function*(){let t=e.calculation?yield U_.fromObject(e.calculation):null,i=e.formatting?F0.fromObject(e.formatting):null;return new n(e.id,e.displayName,t,e.groupBy,i)})}constructor(e,t,i,r,o){this._id=e,this._displayName=t,this._calculation=i,this._groupBy=r,this._formatting=o,this._id||(this._id=Cs())}isValid(){return!!this._calculation&&this._calculation.isValid()&&_u.valid(this._groupBy)}toJSON(){return{id:this._id,displayName:this._displayName,calculation:this._calculation.toJSON(),groupBy:this._groupBy,formatting:this._formatting}}clone(){let e=this._calculation.clone(),t=JSON.parse(JSON.stringify(this._groupBy)),i=this._formatting.clone();return new n(this._id,this._displayName,e,t,i)}overrideClone(e){let t=this._calculation.overrideClone(e),i=JSON.parse(JSON.stringify(this._groupBy)),r=this._formatting.clone();return new n(null,this._displayName,t,i,r)}getOverrideProperties(e){return this._calculation.getOverrideProperties(e)}getChildResources(){return this._calculation.getChildResources()}get id(){return this._id}set id(e){this._id=e}get displayName(){return this._displayName}set displayName(e){this._displayName=e}get calculation(){return this._calculation}set calculation(e){this._calculation=e}get groupBy(){return this._groupBy}set groupBy(e){this._groupBy=e}get formatting(){return this._formatting}set formatting(e){this._formatting=e}};var IA="value",K9=class n extends em{static fromObject(e){return ct(this,null,function*(){let t=(e.valueParts||[]).map(i=>gae.fromObject(i));return new n(e.id,e.colspan,e.displayName,e.note,yield Promise.all(t))})}constructor(e,t,i,r,o){super(e,t,i,r),this._valueParts=o,this.type=IA}clone(){let e=this._valueParts.map(i=>i.clone()),t=this.note?JSON.parse(JSON.stringify(this.note)):null;return new n(this.id,this.colspan,this.displayName,t,e)}overrideClone(e){let t=this._valueParts.map(r=>r.overrideClone(e)),i=this.note?JSON.parse(JSON.stringify(this.note)):null;return new n(null,this.colspan,this.displayName,i,t)}getChildResources(){let e={};return this._valueParts.map(t=>{let i=t.getChildResources();e=El.merge(e,i)}),e}getOverrideProperties(){let e=[];return this._valueParts.forEach(t=>{e.push(...t.getOverrideProperties(this.id))}),e}toPrecalculatedTileRequest(e,t){return ct(this,null,function*(){let i=[];for(let r=0;r({id:t.id,calculation:t.calculation,groupBy:[_u.normalize(t.groupBy)]})),e)}isLoaded(){return!!this._responses&&Object.keys(this._responses).length>0}isValid(){return Jf.create([...super.validationSteps(),{validationStepValid:this._valueParts.length>0,stepDescription:"Min. ein Value-Teil ausgew\xE4hlt"},{validationStepValid:this._valueParts.every(e=>e.isValid()),stepDescription:"Alle Value-Teile korrekt",showValidationStep:"ONLY_ON_ERROR"},...this._validationStepsBenchmarking()])}toJSON(){return wt(Ce({},super.toJSON()),{valueParts:this._valueParts.map(e=>e.toJSON())})}_updateFormattedValues(){this.formattedValues=this._valueParts.filter(e=>this._responses[e.id]).map(e=>{let t=this._responses[e.id];return{value:e.formatting.formatFnc(t?.aggregatedValue,!0)||"n/a",displayName:e.displayName}})}_update(e){e.eventType==="resolve"&&(this._responses=null),this.isValid().then(t=>{this.update$.next(wt(Ce({},e),{tileValid:t.valid}))})}_validationStepsBenchmarking(){let e=[];return this._valueParts.forEach(t=>{e.push({validationStepValid:t.calculation.type==="benchmarking"?t.groupBy.fieldName!=="specialtyDepartment":!0,stepDescription:`[${t.displayName}] Gruppierung nach Fachabteilung in Benchmarking Kachel nicht m\xF6glich`,showValidationStep:"ONLY_ON_ERROR"});let i=t.calculation.term.getFullyInpatientCasesFilters().flat().map(r=>r.expression).some(r=>ta.findAll(MC,r).length>0);e.push({validationStepValid:t.calculation.type==="benchmarking"?!i:!0,stepDescription:`[${t.displayName}] Filter mit interner Fachabteilung in Benchmarking Kachel nicht m\xF6glich`,showValidationStep:"ONLY_ON_ERROR"})}),e}get responses(){return this._responses}set responses(e){this._responses=this.parseResponseAndWriteErrors(e),this._updateFormattedValues(),this._update({eventType:"redraw"})}get valueParts(){return this._valueParts}set valueParts(e){this._valueParts=e,this._update({eventType:"resolve"})}};var _ae=class n{static fromObject(e){return new n(e.groupBy)}constructor(e){this._groupBy=e}clone(){let e=JSON.parse(JSON.stringify(this._groupBy));return new n(e)}isValid(){return!!this._groupBy&&_u.valid(this._groupBy)}toJSON(){return{groupBy:this._groupBy}}get groupBy(){return this._groupBy}set groupBy(e){this._groupBy=e}};var vae=class{constructor(e,t,i,r=0){this._id=e,this._calculation=t,this._colorScheme=i,this._tolerance=r,this._id||(this._id=Cs())}getChildResources(){return this._calculation.getChildResources()}getOverrideProperties(e){return this._calculation.getOverrideProperties(e)}isValid(){return this._calculation.isValid()&&!!this._colorScheme}toJSON(){return{type:this.type,id:this._id,calculation:this._calculation.toJSON(),colorScheme:{lower:this._colorScheme.lower.toHexString(),higher:this._colorScheme.higher.toHexString()},tolerance:this._tolerance}}get id(){return this._id}set id(e){this._id=e}get calculation(){return this._calculation}set calculation(e){this._calculation=e}get colorScheme(){return this._colorScheme}set colorScheme(e){this._colorScheme=e}get tolerance(){return this._tolerance}set tolerance(e){this._tolerance=e}};var W9=class n extends vae{static fromObject(e){return ct(this,null,function*(){let t=yield U_.fromObject(e.calculation),i={lower:new is(e.colorScheme.lower),higher:new is(e.colorScheme.higher)};return new n(e.id,t,i,e.tolerance,e.aggregation)})}constructor(e,t,i,r,o){super(e,t,i,r),this._aggregation=o,this.type="benchmark"}toJSON(){return wt(Ce({},super.toJSON()),{aggregation:this._aggregation})}getRequestData(e){let t=[];if(e.length>0&&t.push(this._getRequestDataPart(0,[e[0]],e[0].aggregation)),e.length>1){let i=JSON.parse(JSON.stringify(e)).reverse(),r=this._getGroupByArrays(i);r.splice(0,1),r.forEach((o,s)=>{let c=this._getRequestDataPart(s+1,o,this._aggregation);t.push(c)})}return t}_getGroupByArrays(e){let t=[];for(let i=0;ixae.fromObject(o)),i=yield Promise.all(t),r=(e.groupBys||[]).map(o=>_ae.fromObject(o));return new n(e.id,e.colspan,e.displayName,e.note,i,r)})}constructor(e,t,i,r,o,s){super(e,t,i,r),this._columns=o,this._groupBys=s,this.type=TA}clone(){let e=this._columns.map(i=>i.clone()),t=this._groupBys.map(i=>i.clone());return new n(this.id,this.colspan,this.displayName,this.note,e,t)}overrideClone(e){let t=this._columns.map(r=>r.overrideClone(e)),i=this._groupBys.map(r=>r.clone());return new n(null,this.colspan,this.displayName,this.note,t,i)}getChildResources(){let e={};return this._columns.forEach(t=>{e=El.merge(e,t.getChildResources())}),e}getOverrideProperties(){let e=[];return this._columns.filter(t=>a2.isCalculationColumn(t)).forEach(t=>{e.push(...t.getOverrideProperties(this.id))}),e}toPrecalculatedTileRequest(e,t){return this.toRequests(e).then(r=>{let o=r.map(s=>Object.entries(s)).flat().map(s=>({tileId:this.id,calculationId:s[0],calculationInput:s[1]}));return t&&o.forEach(s=>{this._responses[s.calculationId]&&(s.response=this._responses[s.calculationId])}),o})}isLoaded(){return!!this._responses&&Object.keys(this._responses).length>0}isValid(){return Jf.create([...super.validationSteps(),{validationStepValid:!!this._columns&&this._columns.length>0,stepDescription:"Min. eine Spalte ausgew\xE4hlt"},{validationStepValid:this._columns.every(e=>e.isValid()),stepDescription:"Alle Spalten korrekt",showValidationStep:"ONLY_ON_ERROR"},{validationStepValid:this._groupBys&&this._groupBys.length>0,stepDescription:"Min. eine Gruppierung ausgew\xE4hlt"},...this._validationStepsBenchmarking()])}toJSON(){return wt(Ce({},super.toJSON()),{columns:this._columns.map(e=>e.toJSON()),groupBys:this._groupBys.map(e=>e.toJSON())})}toRequests(e){let t=this._groupBys.map(r=>_u.normalize(r.groupBy)),i=this._columns.map(r=>r.getRequestData(t)).flat();return j_.calculationsToRequest(i,e)}_update(e){this.isValid().then(t=>{let i=wt(Ce({},e),{tileValid:t.valid});e.eventType==="resolve"&&(this._responses=null),this.update$.next(i)})}_updateTableData(){let e=this._groupBys.map(i=>i.groupBy),t=yz.createOperatingNumberDataNodes(this._columns,this._responses,e);this.tableData=t.nodes}_validationStepsBenchmarking(){let e=this._columns.filter(i=>i.type==="calculation").map(i=>i).some(i=>i.calculation.type==="benchmarking"||i.comparison?.type==="benchmark"),t=this._groupBys.some(i=>i.groupBy.fieldName==="specialtyDepartment");return[{validationStepValid:e?!t:!0,stepDescription:"Gruppierung nach Fachabteilung in Benchmarking Kachel nicht m\xF6glich",showValidationStep:"ONLY_ON_ERROR"}]}get columns(){return this._columns}set columns(e){this._columns=e,this._update({eventType:"resolve"})}get groupBys(){return this._groupBys}set groupBys(e){this._groupBys=e,this._update({eventType:"resolve"})}get responses(){return this._responses}set responses(e){this._responses=this.parseResponseAndWriteErrors(e),this._updateTableData(),this._update({eventType:"redraw"})}};var wae=class{static fromObject(e,t){return ct(this,null,function*(){switch(e.type){case Lse:return Promise.resolve(new P9(e.id,e.colspan,e.displayName,e.note,e.text));case Fse:return Promise.resolve(new N9(e.id,e.colspan,e.displayName,e.note,e.image,e.fitToTile));case IA:return K9.fromObject(e);case SA:return V9.fromObject(e);case EA:return $9.fromObject(e,t);case TA:return Q9.fromObject(e);default:throw new Error(`Unknown tile type: ${e.type}`)}})}static getDefault(e,t=1){let i="Neue Kachel",r;switch(e){case TA:r=new Q9(null,t,i,null,[],[]);break;case SA:r=new V9(null,t,i,null,{coordinateSystem:"cartesian",axes:{value:{scaleRange:{type:"auto",beginAtZero:!0}}},indexAxis:"x"},[],[{fieldName:"dismissalDateTime",aggregation:{name:"SUM"},parameters:[{name:"dismissalTimeUnit",value:"year"}]}],null);break;case Lse:r=new P9(null,t,i,null,null);break;case Fse:r=new N9(null,t,i,null,null);break;case EA:r=new $9(null,t,i,null,{scaleRange:{type:"auto"}},[]);break;case IA:r=new K9(null,t,i,null,[]);break;default:throw new Error(`Unknown tile type: ${e}`)}return r}};var l2=class{static isPrecalculatable(e){return e.type===SA||e.type===TA||e.type===EA||e.type===IA}static getRelativeTimeSelectionTriggerItems(e){let t=[];switch(e.type){case"table":e.columns.filter(i=>i.type==="calculation").forEach(i=>{let r=this._processTerm(e.id,i.id,i.calculation.term);if(r&&t.push(r),i.comparison){let o=this._processTerm(e.id,i.comparison.id,i.comparison.calculation.term);o&&t.push(o)}});break;case"value":e.valueParts.forEach(i=>{let r=this._processTerm(e.id,i.id,i.calculation.term);r&&t.push(r)});break;case"chart":e.chartParts.forEach(i=>{let r=this._processTerm(e.id,i.id,i.calculation.term);r&&t.push(r)});break;case"map":e.mapboxLayers.filter(i=>i.inputSource.sourceType==="calculation").forEach(i=>{let r=i.inputSource,o=this._processTerm(e.id,i.id,r.source.term);o&&t.push(o)});break}return t}static _processTerm(e,t,i){let r=i.getFullyInpatientCasesFilters().filter(o=>o.expression.hasRelativeTimeSelection()).map(o=>ta.findAll(kC.TYPE,o.expression)).flat().filter(o=>o.hasRelativeTimeSelection()).map(o=>o.toValue()).map(o=>o.intervalRelative);return r.length>0?this._createTriggerItemForRelativeTimeSelections(e,t,r):null}static _createTriggerItemForRelativeTimeSelections(e,t,i){let r={tileId:e,preCalculationId:t,triggerDate:null},o=i.map(s=>s.getTriggerDateNextInterval()).sort();return r.triggerDate=o[0],r}};var r5t=2,o5t=250,Cae=class n{static fromObject(e,t){return ct(this,null,function*(){let i=e.tiles.map(r=>wae.fromObject(r,t));return Promise.all(i).then(r=>new n(e.id,e.cols,r,e.heightInPixel))})}constructor(e,t=r5t,i=[],r=o5t){this.id=e,this._cols=t,this.tiles=i,this._heightInPixel=r,this.update$=new mi,this.id=this.id?this.id:Cs(),this._updateColsLeft(),this._setTileIndices()}addTile(e){this.tiles.push(e),this._update({reload:!0,store:!0})}deleteTile(e,t){return ct(this,null,function*(){let i=this.tiles[e],r={reload:!1,store:!0};if(l2.isPrecalculatable(i)){let o=yield i.toPrecalculatedTileRequest(t,!1).then(s=>s.map(c=>c.calculationId));r.changes=[{type:"DELETE",tileId:i.id,preCalculationIds:o}]}this.tiles.splice(e,1),this._update(r)})}updateTileIndex(e,t){let i=this.tiles.map(o=>o.id).indexOf(e),r=this.tiles[i];this.tiles.splice(i,1),this.tiles.splice(t,0,r),this._update({reload:!1,store:!0,changes:[]})}clone(){return new n(this.id,this._cols,this.tiles.map(e=>e.clone()),this._heightInPixel)}overrideClone(e=[]){let t=this.tiles.map(i=>i.overrideClone(e.filter(r=>r.tileId===i.id)));return new n(null,this._cols,t,this._heightInPixel)}equals(e){return sr.equals(this.id,e.id)&&sr.equals(this._cols,e._cols)&&hn.equals(this.tiles,e.tiles,(t,i)=>sr.equals(t.id,i.id))&&sr.equals(this._heightInPixel,e._heightInPixel)}getChildResources(){let e={};return this.tiles.forEach(t=>{let i=t.getChildResources();e=El.merge(e,i)}),e}getTilesByChildResources(e){let t=Object.keys(e);return this.tiles.filter(i=>{let r=i.getChildResources();return Object.keys(r).filter(c=>t.includes(c)).some(c=>{let h=r[c].filter(g=>e[c].includes(g));return h&&h.length>0})})}toJSON(){return{id:this.id,cols:this._cols,tiles:this.tiles,heightInPixel:this._heightInPixel}}get heightInPixel(){return this._heightInPixel}set heightInPixel(e){this._heightInPixel=e,this._update({value:this,store:!0,reload:!0})}get cols(){return this._cols}set cols(e){this._cols=e,this._updateColsLeft(),this._update({value:this,store:!0,reload:!0})}_update(e){this._updateColsLeft(),this._setTileIndices(),this.update$.next(e)}_updateColsLeft(){let e=this.tiles.reduce((t,i)=>t+i.colspan,0);this.colsLeft=this._cols-e}_setTileIndices(){this.tiles.forEach((e,t)=>e.tileIndex=t)}};var Sae=class n{static fromObject(e,t){return ct(this,null,function*(){let r=(e.rows||[]).map(o=>Cae.fromObject(o,t));return Promise.all(r).then(o=>new n(e.id,e.name,o))})}constructor(e,t,i=[]){this.id=e,this.name=t,this.rows=i,this.update$=new mi,this._rowUpdateProxy$=new mi,this._rowUpdateSubs=[],this.id=this.id?this.id:Cs(),this._rowUpdateProxy$.subscribe(r=>{let o=wt(Ce({},r),{value:this});console.log("event",r),this.update$.next(o)}),this._setRowUpdateSubscriptions(),this._setRowIndices()}addRow(e){this.rows.push(e),this._setRowUpdateSubscriptions(),this._setRowIndices(),this.update$.next({reload:!1,store:!0,value:this,changes:[]})}updateRow(e){let t=this.rows.map(i=>i.id).indexOf(e.id);this.rows.splice(t,1,e),this._setRowUpdateSubscriptions(),this.update$.next({reload:!0,store:!0,value:this,changes:[]})}deleteRow(e){let t=this.rows.splice(e,1),i=[];t[0].tiles.forEach(r=>ct(this,null,function*(){if(r.type===SA||r.type===TA||r.type===EA||r.type===IA){let o=yield r.toPrecalculatedTileRequest({codeSpectra:{resolve(s){return Promise.resolve(s)}},markets:{resolve(s){return Promise.resolve(s)}}},!1).then(s=>s.map(c=>c.calculationId));i.push({type:"DELETE",tileId:r.id,preCalculationIds:o})}})),this._setRowIndices(),this._setRowUpdateSubscriptions(),this.update$.next({reload:!1,store:!0,value:this,changes:i})}updateRowIndex(e,t){let i=this.rows.map(o=>o.id).indexOf(e),r=this.rows[i];this.rows.splice(i,1),this.rows.splice(t,0,r),this._setRowIndices(),this.update$.next({reload:!1,store:!0,value:this,changes:[]})}clone(){let e=this.rows.map(t=>t.clone());return new n(this.id,this.name,e)}overrideClone(e){let t=this.rows.map(i=>i.overrideClone(e));return new n(null,this.name,t)}equals(e){return sr.equals(this.id,e.id)&&sr.equals(this.name,e.name)&&hn.equals(this.rows,e.rows,(t,i)=>t.equals(i))}destroy(){this._rowUpdateSubs.forEach(e=>e.unsubscribe()),this._rowUpdateSubs=[]}toJSON(){return{id:this.id,name:this.name,rows:this.rows}}getTilesByChildResources(e){let t=[];return this.rows.forEach(i=>{let r=i.getTilesByChildResources(e);t=t.concat(r)}),t}getChildResources(){let e={};return this.rows.forEach(t=>{let i=t.getChildResources();e=El.merge(e,i)}),e}hasTiles(){return this.rows.some(e=>!!e.tiles&&e.tiles.length>0)}_setRowIndices(){this.rows.forEach((e,t)=>e.rowIndex=t)}_setRowUpdateSubscriptions(){this._rowUpdateSubs&&this._rowUpdateSubs.length>0&&(this._rowUpdateSubs.forEach(e=>e.unsubscribe()),this._rowUpdateSubs=[]),this.rows.forEach(e=>{this._subscribeToRowUpdates(e)})}_subscribeToRowUpdates(e){let t=e.update$.subscribe(i=>{this._rowUpdateProxy$.next(i)});this._rowUpdateSubs.push(t)}};var mx=class n{static fromObject(e,t){return ct(this,null,function*(){let r=(e.pages||[]).map(c=>Sae.fromObject(c,t)),o=null;e.createdDate&&(o=new Date(e.createdDate));let s=null;return e.modifiedDate&&(s=new Date(e.modifiedDate)),Promise.all(r).then(c=>new n(e.id,e.name,c,o,s,e.highestPermission,e.hasError))})}constructor(e,t,i,r,o,s,c){this.id=e,this.name=t,this._pages=i,this.createdDate=r,this.modifiedDate=o,this.highestPermission=s,this.hasError=c,this.update$=new mi,this.resourceName=Bn.VIRTUAL_CLINIC_ANALYSIS_DASHBOARD,this._pageUpdateProxy$=new mi,this._pageUpdateSubs=[],this._pageUpdateProxy$.subscribe(h=>{let g=wt(Ce({},h),{value:this});this.update$.next(g)}),this._setPageUpdateSubscriptions()}getTilesByChildResources(e){let t=[];return this._pages.forEach(i=>{let r=i.getTilesByChildResources(e);t=t.concat(r)}),t}getChildResources(){let e={};return this._pages.forEach(t=>{let i=t.getChildResources();e=El.merge(e,i)}),e}findTile(e){let t=null;return this._pages.forEach(i=>{i.rows.forEach(r=>{r.tiles.forEach(o=>{if(o.id===e){t=o;return}})})}),t}clone(){return new n(this.id,this.name,this._pages.map(e=>e.clone()),this.createdDate,this.modifiedDate,this.highestPermission,this.hasError)}overrideClone(e){let t=this._pages.map(i=>i.overrideClone(e));return new n(null,`${this.name} Kopie`,t)}toJSON(){return{id:this.id,name:this.name,pages:this._pages,modifiedDate:this.modifiedDate,createdDate:this.createdDate,highestPermission:this.highestPermission,hasError:this.hasError}}getAllTiles(e=t=>!0){let t=[];return this._pages.forEach(i=>{i.rows.forEach(r=>{let o=r.tiles.filter(e);t=t.concat(o)})}),t}editPage(e){let t=this._pages.map(i=>i.id).indexOf(e.id);this._pages[t]=e,this.update$.next({changes:[],store:!0,reload:!1,value:this})}addPage(e,t){let i=[];e.rows.forEach(r=>{r.tiles.filter(l2.isPrecalculatable).forEach(o=>{let s=o.toPrecalculatedTileRequest(t,!1).then(c=>({type:"CREATE",tileId:o.id,preCalculations:c}));i.push(s)})}),Promise.all(i).then(r=>{this._pages.push(e),this.update$.next({changes:r,store:!0,reload:!1,value:this}),this._setPageUpdateSubscriptions()})}deletePage(e,t){let i=this._pages[e],r=[];i.rows.forEach(o=>{o.tiles.filter(l2.isPrecalculatable).forEach(s=>{let c=s.toPrecalculatedTileRequest(t,!1).then(h=>h.map(g=>g.calculationId)).then(h=>({type:"DELETE",tileId:s.id,preCalculationIds:h}));r.push(c)})}),Promise.all(r).then(o=>{this._pages.splice(e,1),this.update$.next({changes:o,store:!0,reload:!1,value:this}),this._setPageUpdateSubscriptions()})}_setPageUpdateSubscriptions(){this._pageUpdateSubs&&this._pageUpdateSubs.length>0&&(this._pageUpdateSubs.forEach(e=>e.unsubscribe()),this._pageUpdateSubs=[]),(this.pages??[]).forEach(e=>{this._subscribeToPageUpdates(e)})}_subscribeToPageUpdates(e){let t=e.update$.subscribe(i=>{this._pageUpdateProxy$.next(i)});this._pageUpdateSubs.push(t)}get pages(){return this._pages}set pages(e){this._pages=e,this.update$.next({changes:[],store:!0,reload:!1,value:this})}};var Sz=class{constructor(){this.defaultMapping="stateId",this.possibleSourceTypes=[cae,uae,dae],this.layerMapping={stateId:$7e,bezirkAT:Q7e,municipalCodeAT:W7e},this.sourceMapping={stateId:wt(Ce({},K7e),{geoJsonPropertiesKey:"key",popupConfig:{titleFn:e=>e.properties.displayName}}),bezirkAT:wt(Ce({},X7e),{geoJsonPropertiesKey:"key",popupConfig:{titleFn:e=>e.properties.displayName}}),municipalCodeAT:wt(Ce({},Z7e),{geoJsonPropertiesKey:"key",popupConfig:{titleFn:e=>e.properties.displayName}})},this.mapOptions=JSON.parse(JSON.stringify(iYe))}};var c2=new fi("CubeMapFeatureConfig"),dqe=(()=>{let e=class e extends ol{constructor(i,r,o,s){super(),this._httpClient=i,this._cubeMapFeatureConfig=r,this._environmentService=o,this._permissionService=s,this._store=new fre(this._environmentService)}create(i,r){let o=this._store.base();return this._httpClient.post(o,{dashboard:i,changes:r}).pipe(lr(s=>wo(mx.fromObject(s,this._cubeMapFeatureConfig))))}update(i,r){this.deleteCacheForKey(i.id);let o=this._store.base(),s=i.toJSON();console.log(JSON.stringify(s));let c={dashboard:s,changes:r};return this._httpClient.put(o,c).pipe(ri(()=>null))}children(i){let r=this._store.children(i);return this._httpClient.get(r)}findAll(i,r,o=!0){let s=this._store.base(),c=new Bs;return i&&(c=c.append("minPermission",i)),r&&(c=c.append("maxPermission",r)),c=c.append("includePages",o.toString()),this._httpClient.get(s,{params:c}).pipe(ri(h=>h.map(g=>mx.fromObject(g,this._cubeMapFeatureConfig))),ri(h=>h.map(g=>wo(g))),lr(h=>dh(h).pipe(Vm([]))))}findById(i){return this._findById(i)}_findById(i){let r=this._store.byId(i);return this._httpClient.get(r).pipe(lr(o=>wo(mx.fromObject(o,this._cubeMapFeatureConfig))))}};e.\u0275fac=function(r){return new(r||e)(Ke(ms),Ke(c2),Ke(dr),Ke(qd))},e.\u0275prov=It({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var Ez=2022;var Iz=class n{static fromObject(e={}){let t=e.createdDate?new Date(e.createdDate):null,i=e.modifiedDate?new Date(e.modifiedDate):null,r=o=>la.createFromString(o.value);return new n(e.id,e.name,t,i,e.highestPermission,e.stateIds?iz.fromObj(e.stateIds,o=>o,r):null,e.administrativeDistrictIds?tz.fromObj(e.administrativeDistrictIds,r):null,e.postalCodes?tz.fromObj(e.postalCodes):null,e.distance?y9.fromObj(e.distance,r):null,e.drivingTime?y9.fromObj(e.drivingTime,r):null,e.administrativeRegions?iz.fromObj(e.administrativeRegions,o=>o,r):null,e.careServiceAreas?iz.fromObj(e.careServiceAreas,o=>o,r):null)}constructor(e=null,t=null,i,r,o,s=null,c=null,h=null,g=null,x=null,C=null,A=null){this.id=e,this.name=t,this.createdDate=i,this.modifiedDate=r,this.highestPermission=o,this.stateIds=s,this.administrativeDistrictIds=c,this.postalCodes=h,this.distance=g,this.drivingTime=x,this.administrativeRegions=C,this.careServiceAreas=A,this.resourceName=Bn.MARKET}equals(e){return sr.equals(this.id,e.id)}clone(){return n.fromObject(JSON.parse(JSON.stringify(this)))}};var hqe=(()=>{let e=class e extends ol{constructor(i,r){super(),this._httpClient=i,this._environmentService=r,this._store=new gre(this._environmentService)}findById(i){if(this.hasByKey(i)===!1){let r=this._store.byMarketId(i);this._cache[i]=this._httpClient.get(r).pipe(ri(o=>Iz.fromObject(o)),dl(1))}return this.getByKey(i)}findAll(i,r){let o=this._store.index(),s=new Bs;return i&&(s=s.append("minPermission",i)),r&&(s=s.append("maxPermission",r)),this._httpClient.get(o,{params:s}).pipe(ri(c=>c.map(h=>Iz.fromObject(h))))}create(i){let r=this._store.index();return this._httpClient.post(r,i).pipe(ri(o=>Iz.fromObject(o)))}update(i){this.deleteCacheForKey(i.id);let r=this._store.index();return this._httpClient.put(r,i)}};e.\u0275fac=function(r){return new(r||e)(Ke(ms),Ke(dr))},e.\u0275prov=It({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var pqe=(()=>{let e=class e extends ol{constructor(i,r,o){super(),this._httpClient=i,this._permissionResourcesService=r,this._environmentService=o,this._store=new _re(this._environmentService)}findAll(i="READ",r="CREATOR"){let o=this._store.userDefinedGroups(),s=new Bs;return i&&(s=s.append("minPermission",i)),r&&(s=s.append("maxPermission",r)),this._httpClient.get(o,{params:s}).pipe(ri(c=>c.map(h=>U3.fromObj(h))))}findById(i){if(this.hasByKey(i)===!1){let r=this._store.userDefinedGroup(i);this._cache[i]=this._httpClient.get(r).pipe(ri(o=>(o.type="user-defined",U3.fromObj(o))),dl(1))}return this.getByKey(i)}create(i){let r=this._store.userDefinedGroups();return this._httpClient.post(r,i).pipe(ri(o=>(o.type="user-defined",U3.fromObj(o))))}update(i){this.deleteCacheForKey(i.id);let r=this._store.userDefinedGroups();return this._httpClient.put(r,i).pipe(ri(o=>null))}};e.\u0275fac=function(r){return new(r||e)(Ke(ms),Ke(qd),Ke(dr))},e.\u0275prov=It({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var u2=(()=>{let e=class e extends ol{constructor(i,r){super(),this._httpClient=i,this._environmentService=r,this._store=new wR(this._environmentService)}findAll(i,r){let o=this._store.crud(),s=new Bs;return i&&(s=s.append("minPermission",i)),r&&(s=s.append("maxPermission",r)),this._httpClient.get(o,{params:s}).pipe(ri(c=>ux.fromObjArr(c)))}findById(i){if(this.hasByKey(i)===!1){let r=this._store.crudClinic(i);this._cache[i]=this._httpClient.get(r).pipe(ri(ux.fromObj),dl(1))}return this.getByKey(i)}create(i){let r=this._store.crud();return this._httpClient.post(r,i).pipe(ri(ux.fromObj))}update(i){this.deleteCacheForKey(i.id);let r=this._store.crudClinic(i.id);return this._httpClient.post(r,i)}getSpecialtyDepartments(i,r){let o=this._store.specialtyDepartments(i);return r&&(o=this._store.specialtyDepartment(i,r)),this._httpClient.get(o).pipe(ri(PR.fromObjArr)).toPromise()}};e.\u0275fac=function(r){return new(r||e)(Ke(ms),Ke(dr))},e.\u0275prov=It({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var fqe=(()=>{let e=class e extends ol{constructor(i,r){super(),this._httpClient=i,this._environmentService=r,this._store=new yre(this._environmentService)}findAll(){let i=this._store.virtualClinicReferralsImports();return this._httpClient.get(i).pipe(ri(r=>r.map(o=>A9.fromObj(o))))}findById(i){if(this.hasByKey(i)===!1){let r=this._store.virtualClinicReferralsImportDetail(i);this._cache[i]=this._httpClient.get(r).pipe(ri(o=>A9.fromObj(o)),dl(1))}return this.getByKey(i)}create(i,r){return Mf(()=>new Error("Method not impl"))}update(i,r){return Mf(()=>new Error("Method not impl"))}};e.\u0275fac=function(r){return new(r||e)(Ke(ms),Ke(dr))},e.\u0275prov=It({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var mqe=(()=>{let e=class e extends ol{constructor(i,r){super(),this._httpClient=i,this._environmentService=r,this._store=new vre(this._environmentService)}findAll(){let i=this._store.p21();return this._httpClient.get(i).pipe(ri(r=>r.map(o=>rz.fromObj(o))))}findById(i){if(this.hasByKey(i)===!1){let r=this._store.p21byId(i);this._cache[i]=this._httpClient.get(r).pipe(ri(o=>rz.fromObj(o)),dl(1))}return this.getByKey(i)}create(i,r){return Mf(()=>new Error("Method not impl"))}update(i,r){return Mf(()=>new Error("Method not impl"))}};e.\u0275fac=function(r){return new(r||e)(Ke(ms),Ke(dr))},e.\u0275prov=It({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var Tz=class n{static fromObj(e){return new n(e.id,e.name,e.input,e.status,e.progressEvent,e.modifiedDate,e.createdDate,e.highestPermission)}constructor(e,t,i,r,o,s,c,h){this.id=e,this.name=t,this.input=i,this.status=r,this.progressEvent=o,this.modifiedDate=s,this.createdDate=c,this.highestPermission=h,this.resourceName=Bn.SCENARIO_ANALYSIS}clone(){return new n(this.id,this.name,this.input,this.status,Ce({},this.progressEvent),this.modifiedDate,this.createdDate,this.highestPermission)}},Az=class n{static fromJsonObject(e){let t=e.input.standortConditionWrapper&&e.input.standortConditionWrapper.frontendConditionObject?ta.fromObject(e.input.standortConditionWrapper.frontendConditionObject,_d.fromObject).then(r=>({standortCondition:e.input.standortConditionWrapper?.standortCondition,frontendConditionObject:r})):Promise.resolve(void 0),i=e.input.zensusGridCellConditionWrapper&&e.input.zensusGridCellConditionWrapper.frontendConditionObject?ta.fromObject(e.input.zensusGridCellConditionWrapper.frontendConditionObject,_d.fromObject).then(r=>({zensusGridCellCondition:e.input.zensusGridCellConditionWrapper?.zensusGridCellCondition,frontendConditionObject:r})):Promise.resolve(void 0);return Promise.all([t,i]).then(r=>Promise.resolve(new n(e.id,e.name,e.modifiedDate,e.createdDate,e.highestPermission,e.status,{lgNr:e.input.lgNr,stateId:e.input.stateId,cutoffPercentage:e.input.cutoffPercentage,clinicIdCaseCountPairs:e.input.clinicIdCaseCountPairs.map(o=>wt(Ce({},o),{clinicId:xh.fromObj(o.clinicId)})),standortConditionWrapper:r[0],zensusGridCellConditionWrapper:r[1]},e.progressEvent,e.hasError,e.labels)))}constructor(e,t,i,r,o,s,c,h,g,x){this.id=e,this.name=t,this.modifiedDate=i,this.createdDate=r,this.highestPermission=o,this.status=s,this.input=c,this.progressEvent=h,this.hasError=g,this.labels=x,this.resourceName=Bn.SCENARIO_ANALYSIS_OPEN_CLOSE}clone(...e){return new n(this.id,this.name,this.modifiedDate,this.createdDate,this.highestPermission,this.status,{lgNr:this.input.lgNr,stateId:this.input.stateId,cutoffPercentage:this.input.cutoffPercentage,clinicIdCaseCountPairs:this.input.clinicIdCaseCountPairs.map(t=>wt(Ce({},t),{clinicId:t.clinicId.clone()})),standortConditionWrapper:this.input.standortConditionWrapper?wt(Ce({},this.input.standortConditionWrapper),{frontendConditionObject:this.input.standortConditionWrapper.frontendConditionObject.clone()}):void 0,zensusGridCellConditionWrapper:this.input.zensusGridCellConditionWrapper?wt(Ce({},this.input.zensusGridCellConditionWrapper),{frontendConditionObject:this.input.zensusGridCellConditionWrapper.frontendConditionObject.clone()}):void 0},this.progressEvent?JSON.parse(JSON.stringify(this.progressEvent)):void 0,this.hasError,this.labels)}};var gqe=(()=>{let e=class e extends ol{constructor(i,r,o){super(),this._httpClient=i,this._permissionService=r,this._environmentService=o}create(i){let r=`${this._environmentService.load("AYS_SCENARIO_ANALYSIS_RESOURCE_URL")}/scenarios/`;return this._httpClient.post(r,i).pipe(ri(o=>Tz.fromObj(o)))}findAll(i="READ",r="CREATOR"){let o=`${this._environmentService.load("AYS_SCENARIO_ANALYSIS_RESOURCE_URL")}/scenarios/`,s=new Bs;return i&&(s=s.append("minPermission",i)),r&&(s=s.append("maxPermission",r)),this._httpClient.get(o,{params:s}).pipe(ri(c=>c.map(h=>Tz.fromObj(h))))}findById(i){let r=`${this._environmentService.load("AYS_SCENARIO_ANALYSIS_RESOURCE_URL")}/scenarios/${i}/`;return this._httpClient.get(r).pipe(ri(o=>Tz.fromObj(o)))}update(i,r){}};e.\u0275fac=function(r){return new(r||e)(Ke(ms),Ke(qd),Ke(dr))},e.\u0275prov=It({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var RC=(()=>{let e=class e extends ol{constructor(i,r){super(),this._httpClient=i,this._environmentService=r,this._store=new mre(this._environmentService)}availableLabels(){let i=`${this._store.crud()}files/labels/available`;return this._httpClient.get(i)}create(i,r){throw new Error("Method not implemented.")}upload(i,r){let o=`${this._store.crud()}files/create`,s=new FormData;if(r){let c=new Bs({fromObject:{labels:r}});o=o.concat("?").concat(c.toString())}return s.append("file",i),this._httpClient.post(o,s)}downloadFile(i){let r=`${this._store.crud()}files/${i}/download`;return this._httpClient.get(r,{responseType:"blob"})}findAll(i,r,o=new mA){let s=`${this._store.crud()}files/`;return this._httpClient.post(s,{condition:o})}findById(i){let r=`${this._store.crud()}files/${i}`;return this._httpClient.get(r)}update(i,r,o=null){let s=`${this._store.crud()}files/${i.id}/update`;return this._httpClient.put(s,{labels:o}).pipe(lr(()=>uu))}};e.\u0275fac=function(r){return new(r||e)(Ke(ms),Ke(dr))},e.\u0275prov=It({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var Eae=class{static fromObject(e){throw new Error("Missing override for AppContentSnippet.fromObject")}constructor(e,t){this.contentType=e,this.snippetType=t}},eu=class extends Eae{constructor(e,t){super(e,"node"),this._content=t}getIncludedContentTypes(){return Object.keys(this._content).filter(e=>this._content[e]!==null).reduce((e,t)=>(e=e.concat(this._content[t].getIncludedContentTypes()),e),[]).concat([this.contentType])}get content(){return this._content}},zr=class extends Eae{constructor(e,t){super(e,"value"),this._value=t}getIncludedContentTypes(){return[this.contentType]}set value(e){this._value=e}get value(){return this._value}};var G_=class extends eu{constructor(e,t,i){super(e,i),this.displayName=t}mergeDisplayStrings(e,t){return Array.isArray(e)||(e=[e]),Array.isArray(t)?e.push(...t):e.push(t),e}},Iae=class extends zr{constructor(e,t,i){super(e,i),this.displayName=t}};var f5t="Landkreise",_qe="administrative-district-ids",Tae=class n extends Iae{constructor(e){super(_qe,f5t,e)}toDisplayString(){return[this.displayName,[this.value?` ${this.value.length} Landkreise`:"Keine ausgew\xE4hlt"]]}fromObject(e){return new n(e?e.value.map(t=>la.create(t)):null)}toObject(){return{contentType:_qe,value:this.value.map(e=>e.value)}}};var m5t="Kartenansicht",vqe="projection-map-view-mode",Dz=class{static toDisplayString(e){return[m5t,[e.value?e.value.name:"Keine Kartenansicht ausgew\xE4hlt"]]}static fromObject(e){return new zr(vqe,e.value)}static toObject(e){return{contentType:vqe,value:e.value}}};var g5t="Farbskala",yqe="color-factory",gx=class{static toDisplayString(e){return[g5t,[e.value?f8e[e.value.type]:"Keine Farbskala ausgew\xE4hlt"]]}static fromObject(e){return new zr(yqe,m3.fromObject(e.value))}static toObject(e){return{contentType:yqe,value:e.value.toJSON()}}};var _5t="Gruppierung",bqe="projection-grouping",X9=class{static toDisplayString(e){return[_5t,[`${e.value.fieldName} Gruppierung ausgew\xE4hlt`]]}static fromObject(e){return new zr(bqe,e.value||[])}static toObject(e){return{contentType:bqe,value:e.value}}};var v5t="Karte",xqe="potential-analysis-map",kz=class{static toDisplayName(e){let t=[];return e.content.viewMode&&e.content.viewMode.value&&t.push(Dz.toDisplayString(e.content.viewMode)),e.content.colorFactory&&e.content.colorFactory.value&&t.push(gx.toDisplayString(e.content.colorFactory)),[v5t,t]}static toObject(e){return{contentType:xqe,content:{grouping:e.content.grouping?X9.toObject(e.content.grouping):null,viewMode:e.content.viewMode?Dz.toObject(e.content.viewMode):null,colorFactory:e.content.colorFactory?gx.toObject(e.content.colorFactory):null}}}static fromObject(e){return ct(this,null,function*(){return new eu(xqe,{grouping:e.content.grouping?X9.fromObject(e.content.grouping):null,viewMode:e.content.viewMode?Dz.fromObject(e.content.viewMode):null,colorFactory:e.content.colorFactory?gx.fromObject(e.content.colorFactory):null})})}};var y5t="Kodierung",wqe="coding-system",_x=class{static toDisplayString(e){return[y5t,[`${e&&e.value?e.value:"Keine ausgew\xE4hlt"}`]]}static fromObject(e){return new zr(wqe,e.value)}static toObject(e){return{contentType:wqe,value:e.value}}};var b5t="M\xE4rkte",Cqe="market-ids",vx=class{static toDisplayString(e){return[b5t,[e.value&&e.value.length>0?e.value.length+" ausgew\xE4hlt":"Keine ausgew\xE4hlt"]]}static fromObject(e){return new zr(Cqe,e.value)}static toObject(e){return{contentType:Cqe,value:e.value}}};var x5t="Gruppierung",Sqe="projection-groupings",Mz=class{static toDisplayString(e){return[x5t,[`${e.value.length} Gruppierungen`]]}static fromObject(e){return new zr(Sqe,e.value||[])}static toObject(e){return{contentType:Sqe,value:e.value}}};var w5t="Tabelle",Eqe="projection-view-state",Oz=class{static toDisplayString(e){let t=[w5t];return e.content.codingSystem&&t.push(_x.toDisplayString(e.content.codingSystem)),e.content.marketIds&&t.push(vx.toDisplayString(e.content.marketIds)),e.content.groupings&&t.push(Mz.toDisplayString(e.content.groupings)),t}static fromObject(e){return new eu(Eqe,{codingSystem:e.content.codingSystem?_x.fromObject(e.content.codingSystem):null,marketIds:e.content.marketIds?vx.fromObject(e.content.marketIds):null,groupings:e.content.groupings?Mz.fromObject(e.content.groupings):null})}static toObject(e){return{contentType:Eqe,content:{marketIds:e.content.marketIds?vx.toObject(e.content.marketIds):null,codingSystem:e.content.codingSystem?_x.toObject(e.content.codingSystem):null,groupings:e.content.groupings?Mz.toObject(e.content.groupings):null}}}};var Rz=class Rz extends V_{constructor(e=ta.EMPTY()){super("projection-analysis-filter",e)}clone(){return new Rz(this.expression.clone())}overrideClone(e){return new Rz(this.expression.overrideClone(e))}};Rz.BASE_TYPES=[{plugin:ef.TYPE},{plugin:Xp.TYPE},{plugin:cg.TYPE},{plugin:dg.TYPE},{plugin:tf.TYPE},{plugin:ug.TYPE},{plugin:M0.TYPE}],Rz.CODING_SYSTEM_TYPES={"ICD-10-GM":[{plugin:A0.TYPE},{plugin:D0.TYPE},{plugin:k0.TYPE}],OPS:[{plugin:O0.TYPE},{plugin:N0.TYPE},{plugin:P0.TYPE},{plugin:R0.TYPE}],"G-DRG":[{plugin:I0.TYPE},{plugin:T0.TYPE},{plugin:Jp.TYPE}]};var Aae=Rz;var Nz=class n{static sort(e,t,i){if(!t&&!i)return 0;let r=0,o=0;if(e.field==="alphabetic")return t.shortDisplayName.localeCompare(i.shortDisplayName);if(r=i.timeSeries[e.field],o=t.timeSeries[e.field],r-o!==0)switch(e.sortOrder){case"desc":return r-o;case"asc":return o-r}if(e.field!=="alphabetic")if(i&&i.shortDisplayName)switch(e.sortOrder){case"desc":return i.shortDisplayName.localeCompare(t.shortDisplayName);case"asc":return t.shortDisplayName.localeCompare(i.shortDisplayName)}else switch(e.sortOrder){case"desc":return i.key.localeCompare(t.key);case"asc":return t.key.localeCompare(i.key)}else return this.sort(new n(e.field,e.sortOrder),t,i)}constructor(e,t,i,r){this.field=e,this.sortOrder=t,this.displayTriggerName=i,this.displayName=r}toString(){return this.field}clone(){return new n(this.field,this.sortOrder,this.displayTriggerName,this.displayName)}};var kae=class kae{constructor(e,t,i){this.marketIds=e,this.groupBy=t,this.codingSystem=i}clone(){let e=this.marketIds?this.marketIds.slice():null;return new kae(e,JSON.parse(JSON.stringify(this.groupBy)),this.codingSystem)}equals(e){let t=sr.equals(this.codingSystem,e.codingSystem),i=hn.equals(this.marketIds,e.marketIds),r=hn.equals(this.groupBy,e.groupBy,(o,s)=>o.fieldName===s.fieldName);return t&&i&&r}isValid(){let e=this.marketIds&&this.marketIds.length>0,t=this.groupBy&&this.groupBy.length>0;return e&&t&&!!this.codingSystem}};kae.defaultGroupBy=[{fieldName:"administrativeDistrictId",sort:new Nz(2022 .toString(),"desc",`Fallzahlen ${2022}`,`Fallzahlen ${2022}`),parameters:[]}];var Dae=kae,aMn=new Dae([],Dae.defaultGroupBy,"ICD-10-GM");var Fz=class Fz{constructor(e,t,i){this.groupBy=e,this.viewMode=t,this.colorFactory=i}clone(){return new Fz(JSON.parse(JSON.stringify(this.groupBy)),this.viewMode,this.colorFactory.clone())}};Fz.defaultGroupBy={fieldName:"administrativeDistrictId",sort:new Nz(2022 .toString(),"desc",`Fallzahlen ${2022}`,`Fallzahlen ${2022}`),parameters:[]},Fz.defaultViewMode={name:"10-Jahres-Trend",key:"10years",scope:"trend"},Fz.defaultColorFactory=new f3(new is("#00ff00"),new is("#ff0000"));var Pz=Fz,hMn=new Pz(Pz.defaultGroupBy,Pz.defaultViewMode,Pz.defaultColorFactory);var C5t="Filter",Iqe="projection-map-filter",Lz=class{static toDisplayString(e){let t=[C5t],i=e.value.expression.toText();return i&&t.push([i]),t}static fromObject(e){return ct(this,null,function*(){let t=yield ta.fromObject(e.value.expression,_d.fromObject);return new zr(Iqe,new Aae(t))})}static toObject(e){return{contentType:Iqe,value:e.value.toJSON()}}};var ATe="Marktprognose",d2="projection-feature",Bz=class{static toDisplayString(e){let t=[ATe];return e.content.viewState&&t.push(Oz.toDisplayString(e.content.viewState)),e.content.mapViewState&&t.push(kz.toDisplayName(e.content.mapViewState)),e.content.filter&&t.push(Lz.toDisplayString(e.content.filter)),t}static fromObject(e){return ct(this,null,function*(){let t=e.content.viewState?Oz.fromObject(e.content.viewState):null,i=e.content.mapViewState?yield kz.fromObject(e.content.mapViewState):null,r=e.content.filter?yield Lz.fromObject(e.content.filter):null;return new eu(d2,{viewState:t,mapViewState:i,filter:r})})}static toObject(e){return{contentType:d2,content:{viewState:e.content.viewState?Oz.toObject(e.content.viewState):null,map:e.content.mapViewState?kz.toObject(e.content.mapViewState):null,filter:e.content.filter?Lz.toObject(e.content.filter):null}}}};var S5t="Ziffern-Spektrum Auswahl",Tqe="code-spectrum-select",NC=class{static toDisplayString(e){return[S5t,[e.value&&e.value.codeType?"Kodierung "+e.value.codeType:"Keine Kodierung ausgew\xE4hlt",e.value&&e.value.codeSpectra?.length>0?e.value.codeSpectra?.length+" Ziffern-Spektren ausgew\xE4hlt":"Keine Ziffern-Spektren ausgew\xE4hlt"]]}static fromObject(e){return new zr(Tqe,e.value)}static toObject(e){return{contentType:Tqe,value:e.value}}};var E5t="Modus",Aqe="competitors-analysis-form-mode",zz=class{static toDisplayString(e){return[E5t,[e.value?e.value:"Kein Modus ausgew\xE4hlt"]]}static fromObject(e){return new zr(Aqe,e.value)}static toObject(e){return{contentType:Aqe,value:e.value}}};var I5t="Klinik",Dqe="clinic-id",PC=class{static toDisplayString(e){return[I5t,[`${e&&e.value?e.value.toString():"Keine ausgew\xE4hlt"}`]]}static fromObject(e){return new zr(Dqe,e.value?xh.fromObj(e.value):null)}static toObject(e){return{contentType:Dqe,value:e.value}}};var T5t="Klinik-Filter",kqe="clinics-filter-ids",Vz=class{static toDisplayString(e){return[T5t,[e.value&&e.value.length>0?e.value.length+" ausgew\xE4hlt":"Keine ausgew\xE4hlt"]]}static fromObject(e){return new zr(kqe,e.value)}static toObject(e){return{contentType:kqe,value:e.value}}};var A5t="Jahre",Mqe="years",Uz=class{static toDisplayString(e){return[A5t,[e.value&&e.value.length>0?e.value.join(", "):"Keine Jahre ausgew\xE4hlt"]]}static fromObject(e){return new zr(Mqe,e.value)}static toObject(e){return{contentType:Mqe,value:e.value}}};var D5t="Gesamtberichte (99-Standorte) ausschlie\xDFen",Oqe="competitors-analysis-form-exclude-clinic-sn-99",jz=class{static toDisplayString(e){return[D5t,[e.value?"Ja":"Nein"]]}static fromObject(e){return e.value?new zr(Oqe,e.value):null}static toObject(e){return{contentType:Oqe,value:e.value}}};var k5t="Radius",Rqe="competitors-analysis-form-distance",Hz=class{static toDisplayString(e){return[k5t,[e.value?e.value+" km":"Keine Entfernung ausgew\xE4hlt"]]}static fromObject(e){return new zr(Rqe,e.value)}static toObject(e){return{contentType:Rqe,value:e.value}}};var M5t="Formular",Nqe="competitors-analysis-form",Gz=class{static toDisplayString(e){let t=[];return e.content.mode&&t.push(zz.toDisplayString(e.content.mode)),e.content.clinicId&&t.push(PC.toDisplayString(e.content.clinicId)),e.content.distance&&t.push(Hz.toDisplayString(e.content.distance)),e.content.excludeClinicSn99&&t.push(jz.toDisplayString(e.content.excludeClinicSn99)),e.content.clinicsFilterIds&&t.push(Vz.toDisplayString(e.content.clinicsFilterIds)),e.content.codeSpectrumSelect&&t.push(NC.toDisplayString(e.content.codeSpectrumSelect)),e.content.years&&t.push(Uz.toDisplayString(e.content.years)),[M5t,t]}static fromObject(e){return new eu(Nqe,{mode:e.content.mode?zz.fromObject(e.content.mode):null,clinicId:e.content.clinicId?PC.fromObject(e.content.clinicId):null,distance:e.content.distance?Hz.fromObject(e.content.distance):null,excludeClinicSn99:e.content.excludeClinicSn99?jz.fromObject(e.content.excludeClinicSn99):null,clinicsFilterIds:e.content.clinicsFilterIds?Vz.fromObject(e.content.clinicsFilterIds):null,codeSpectrumSelect:e.content.codeSpectrumSelect?NC.fromObject(e.content.codeSpectrumSelect):null,years:e.content.years?Uz.fromObject(e.content.years):null})}static toObject(e){return{contentType:Nqe,content:{mode:e.content.mode?zz.toObject(e.content.mode):null,clinicId:e.content.clinicId?PC.toObject(e.content.clinicId):null,distance:e.content.distance?Hz.toObject(e.content.distance):null,excludeClinicSn99:e.content.excludeClinicSn99?jz.toObject(e.content.excludeClinicSn99):null,clinicsFilterIds:e.content.clinicsFilterIds?Vz.toObject(e.content.clinicsFilterIds):null,codeSpectrumSelect:e.content.codeSpectrumSelect?NC.toObject(e.content.codeSpectrumSelect):null,years:e.content.years?Uz.toObject(e.content.years):null}}}};var DTe="Wettbewerbsanalyse",h2="competitors-analysis-feature",Yz=class{static toDisplayString(e){let t=[DTe];return e.content.form&&t.push([Gz.toDisplayString(e.content.form)]),t}static fromObject(e){return new eu(h2,{form:e.content.form?Gz.fromObject(e.content.form):null})}static toObject(e){return{contentType:h2,content:{form:e.content.form?Gz.toObject(e.content.form):null}}}};var O5t="Zuordnung",Pqe="potential-analysis-form-mapping",qz=class{static toDisplayString(e){return[O5t,[e.value?e.value:"Keine Zuordnung ausgew\xE4hlt"]]}static fromObject(e){return new zr(Pqe,e.value)}static toObject(e){return{contentType:Pqe,value:e.value}}};var R5t="Jahr",Fqe="year",rp=class{static toDisplayString(e){return[R5t,[e.value?e.value.toString():"Kein Jahr ausgew\xE4hlt"]]}static fromObject(e){return new zr(Fqe,e.value)}static toObject(e){return{contentType:Fqe,value:e.value}}};var N5t="Bundesland",Lqe="state",$z=class{static toDisplayString(e){return[N5t,[e.value?e.value.name:"Kein Bundesland ausgew\xE4hlt"]]}static fromObject(e){return new zr(Lqe,e.value)}static toObject(e){return{contentType:Lqe,value:e.value}}};var P5t="Landesbasisfallwert",Bqe="base-rate",Kz=class{static toDisplayString(e){return[P5t,[rp.toDisplayString(e.content.year),$z.toDisplayString(e.content.state)]]}static fromObject(e){return new eu(Bqe,{year:rp.fromObject(e.content.year),state:$z.fromObject(e.content.state)})}static toObject(e){return{contentType:Bqe,content:{year:rp.toObject(e.content.year),state:$z.toObject(e.content.state)}}}};var F5t="Virtuelle Kliniken",zqe="virtual-clinic-ids",Wz=class{static toDisplayString(e){return[F5t,[e.value&&e.value.length>0?e.value.length+" ausgew\xE4hlt":"Keine ausgew\xE4hlt"]]}static fromObject(e){return new zr(zqe,e.value)}static toObject(e){return{contentType:zqe,value:e.value}}};var kTe="Formular",Vqe="potential-analysis-form",Zz=class{static toDisplayString(e){let t=[];e.content.codingSystem&&t.push(_x.toDisplayString(e.content.codingSystem));let i=["M\xE4rkte"];e.content.marketIds&&i.push(vx.toDisplayString(e.content.marketIds)),e.content.marketYear&&i.push(rp.toDisplayString(e.content.marketYear)),t.push(i);let r=["Virtuelle Kliniken"];return e.content.virtualClinicIds&&r.push(Wz.toDisplayString(e.content.virtualClinicIds)),e.content.virtualClinicYear&&r.push(rp.toDisplayString(e.content.virtualClinicYear)),t.push(r),e.content.baseRate&&t.push(Kz.toDisplayString(e.content.baseRate)),e.content.inekDataYear&&t.push(["InEK Datenjahr",rp.toDisplayString(e.content.inekDataYear)]),e.content.mapping&&t.push(qz.toDisplayString(e.content.mapping)),[kTe,t]}static fromObject(e){return new eu(Vqe,{codingSystem:e.content.codingSystem?_x.fromObject(e.content.codingSystem):null,marketIds:e.content.marketIds?vx.fromObject(e.content.marketIds):null,marketYear:e.content.marketYear?rp.fromObject(e.content.marketYear):null,virtualClinicIds:e.content.virtualClinicIds?Wz.fromObject(e.content.virtualClinicIds):null,virtualClinicYear:e.content.virtualClinicYear?rp.fromObject(e.content.virtualClinicYear):null,baseRate:e.content.baseRate?Kz.fromObject(e.content.baseRate):null,inekDataYear:e.content.inekDataYear?rp.fromObject(e.content.inekDataYear):null,mapping:e.content.mapping?qz.fromObject(e.content.mapping):null})}static toObject(e){return{contentType:Vqe,content:{codingSystem:e.content.codingSystem?_x.toObject(e.content.codingSystem):null,marketIds:e.content.marketIds?vx.toObject(e.content.marketIds):null,marketYear:e.content.marketYear?rp.toObject(e.content.marketYear):null,virtualClinicIds:e.content.virtualClinicIds?Wz.toObject(e.content.virtualClinicIds):null,virtualClinicYear:e.content.virtualClinicYear?rp.toObject(e.content.virtualClinicYear):null,baseRate:e.content.baseRate?Kz.toObject(e.content.baseRate):null,inekDataYear:e.content.inekDataYear?rp.toObject(e.content.inekDataYear):null,mapping:e.content.mapping?qz.toObject(e.content.mapping):null}}}};var L5t="Gruppierungen",Uqe="potential-groupings",Qz=class{static toDisplayString(e){return[L5t,[`${e.value.length} Gruppierungen`]]}static fromObject(e){return new zr(Uqe,e.value||[])}static toObject(e){return{contentType:Uqe,value:e.value}}};var B5t="Farbe",jqe="color",Xz=class{static toDisplayString(e){return[B5t,[e.value?e.value.toHexString():"Keine Farbe ausgew\xE4hlt"]]}static fromObject(e){let t=e.value?new is(e.value):null;return new zr(jqe,t)}static toObject(e){return{contentType:jqe,value:e.value.toHexString()}}};var p2=class p2 extends V_{static fromObject(e){return ta.fromObject(e.expression,_d.fromObject).then(t=>new p2(t))}constructor(e=ta.EMPTY()){super("potential-analysis-filter",e)}clone(){return new p2(this.expression.clone())}overrideClone(e){return new p2(this.expression.overrideClone(e))}};p2.BASE_TYPES=[{plugin:Xp.TYPE},{plugin:cg.TYPE},{plugin:dg.TYPE},{plugin:ef.TYPE},{plugin:tf.TYPE},{plugin:Jp.TYPE},{plugin:dx.TYPE},{plugin:xA.TYPE},{plugin:ug.TYPE},{plugin:M0.TYPE}],p2.CODING_SYSTEM_TYPES={"ICD-10-GM":[{plugin:A0.TYPE},{plugin:D0.TYPE},{plugin:k0.TYPE}],OPS:[{plugin:O0.TYPE},{plugin:N0.TYPE},{plugin:P0.TYPE},{plugin:R0.TYPE}],"G-DRG":[{plugin:I0.TYPE},{plugin:T0.TYPE}]};var Mae=p2;var MTe=class n{static sort(e,t,i){if(!t&&!i)return 0;let r=0,o=0;switch(e.context){case"marketValue":{o=t.marketValue[e.field],r=i.marketValue[e.field];break}case"key":{o=t.key,r=i.key;break}default:r=i.virtualClinicValue[e.context][e.field],o=t.virtualClinicValue[e.context][e.field]}if(Number(r)){if(r-o!==0)switch(e.sortOrder){case"desc":return r-o;case"asc":return o-r}}else switch(e.sortOrder){case"desc":return r.toString().localeCompare(o.toString());case"asc":return o.toString().localeCompare(r.toString())}if(e.field==="count")if(i&&i.shortDisplayName)switch(e.sortOrder){case"desc":return i.shortDisplayName.localeCompare(t.shortDisplayName);case"asc":return t.shortDisplayName.localeCompare(i.shortDisplayName)}else switch(e.sortOrder){case"desc":return i.key.localeCompare(t.key);case"asc":return t.key.localeCompare(i.key)}else return this.sort(new n(e.context,"count",e.sortOrder),t,i)}constructor(e,t,i,r,o){this.context=e,this.field=t,this.sortOrder=i,this.displayTriggerName=r,this.displayName=o}toString(){return`${this.field}_${this.context}`}clone(){return new n(this.context,this.field,this.sortOrder,this.displayTriggerName,this.displayName)}},Hqe=new MTe("marketValue","count","desc","F\xE4lle","F\xE4lle");var Rae=class Rae{constructor(e,t,i,r,o,s,c,h,g){this.marketIds=e,this.marketDataYear=t,this.groupBy=i,this.codingSystem=r,this.codeMapping=o,this.baseRate=s,this.inekDataYear=c,this.virtualClinicIds=h,this.virtualClinicYear=g}clone(){let e=this.marketIds?this.marketIds.slice():null,t=this.virtualClinicIds?this.virtualClinicIds.slice():null;return new Rae(e,this.marketDataYear,JSON.parse(JSON.stringify(this.groupBy)),this.codingSystem,this.codeMapping,this.baseRate,this.inekDataYear,t,this.virtualClinicYear)}isValid(){let e=!!this.marketIds&&this.marketIds.length>0&&!!this.marketDataYear,t=!0;this.virtualClinicIds&&this.virtualClinicIds.length>0&&(t=t&&!!this.virtualClinicYear);let i=!!this.codingSystem;return this.codingSystem==="G-DRG"&&(i=i&&!!this.baseRate&&!!this.inekDataYear&&!!this.codeMapping),e&&t&&i}};Rae.defaultGroupBy=[{fieldName:"administrativeDistrictId",parameters:[],sort:Hqe.clone()}];var Oae=Rae,YOn=new Oae([],Ez,Oae.defaultGroupBy,"ICD-10-GM","bindoc",null,null,[],null);var kA=class kA{constructor(e,t,i,r,o,s){this.groupBy=e,this.otherClinicsColor=t,this.virtualClinicOptions=i,this.colorFactory=r,this.potentialMapView=o,this.layerOptions=s}clone(){let e=null;this.groupBy&&(e=JSON.parse(JSON.stringify(this.groupBy)));let t=null;return this.layerOptions&&(t=JSON.parse(JSON.stringify(this.layerOptions))),new kA(e,this.otherClinicsColor.clone(),Ce({},this.virtualClinicOptions),this.colorFactory,this.potentialMapView,t)}};kA.defaultOtherClinicsColor=new is("blue"),kA.defaultPotentialMapView={source:"count",algorithm:"diff"},kA.defaultGroupBy={fieldName:"administrativeDistrictId",parameters:[]},kA.defaultColorFactory=new jT(new is("red")),kA.defaultLayerOptions={clinics:{visible:"visible"},postalCode:{visible:"visible"},administrativeDistrictId:{visible:"visible"},clinicShare:{visible:"none"}};var DA=kA,vRn=new DA(DA.defaultGroupBy,DA.defaultOtherClinicsColor,{},DA.defaultColorFactory,DA.defaultPotentialMapView,DA.defaultLayerOptions);var J9=class{static fromObject(e){let t={};return Object.entries(e).forEach(([i,r])=>{t[i]={color:new is(r.color)}}),t}static toJSON(e){let t={};return Object.entries(e).forEach(([i,r])=>{t[i]={color:r.color.toHexString()}}),t}};var z5t="Virtuelle Klinik Optionen",Gqe="potential-map-virtual-clinic-options",Jz=class{static toDisplayString(e){return[z5t]}static fromObject(e){return new zr(Gqe,J9.fromObject(e.value))}static toObject(e){return{contentType:Gqe,value:J9.toJSON(e.value)}}};var V5t="Gruppierung",Yqe="potential-grouping",eV=class{static toDisplayString(e){return[V5t,[`${e.value.fieldName} Gruppierung ausgew\xE4hlt`]]}static fromObject(e){return new zr(Yqe,e.value||[])}static toObject(e){return{contentType:Yqe,value:e.value}}};var U5t="Ansicht",qqe="potential-map-view",tV=class{static toDisplayString(e){return[U5t,[`${e.value.source}`]]}static fromObject(e){return new zr(qqe,e.value||[])}static toObject(e){return{contentType:qqe,value:e.value}}};var j5t="Kartenansicht",$qe="potential-map-layer-options",iV=class{static toDisplayString(e){return[j5t]}static fromObject(e){return new zr($qe,e.value||null)}static toObject(e){return{contentType:$qe,value:e.value}}};var H5t="Karte",Kqe="potential-map-view-state",nV=class{static toDisplayString(e){let t=[];return e.content.grouping&&e.content.grouping.value&&t.push(eV.toDisplayString(e.content.grouping)),e.content.otherClinicsColor&&e.content.otherClinicsColor.value&&t.push(["Farbe f\xFCr andere Kliniken",Xz.toDisplayString(e.content.otherClinicsColor)]),e.content.virtualClinicOptions&&e.content.virtualClinicOptions.value&&t.push(Jz.toDisplayString(e.content.virtualClinicOptions)),e.content.colorFactory&&e.content.colorFactory.value&&t.push(gx.toDisplayString(e.content.colorFactory)),e.content.potentialMapView&&e.content.potentialMapView.value&&t.push(tV.toDisplayString(e.content.potentialMapView)),e.content.layerOptions&&e.content.layerOptions.value&&t.push(iV.toDisplayString(e.content.layerOptions)),[H5t,t]}static fromObject(e){return ct(this,null,function*(){return new eu(Kqe,{grouping:e.content.grouping?eV.fromObject(e.content.grouping):null,otherClinicsColor:e.content.otherClinicsColor?Xz.fromObject(e.content.otherClinicsColor):null,virtualClinicOptions:e.content.virtualClinicOptions?Jz.fromObject(e.content.virtualClinicOptions):null,colorFactory:e.content.colorFactory?gx.fromObject(e.content.colorFactory):null,potentialMapView:e.content.potentialMapView?tV.fromObject(e.content.potentialMapView):null,layerOptions:e.content.layerOptions?iV.fromObject(e.content.layerOptions):null})})}static toObject(e){return{contentType:Kqe,content:{grouping:e.content.grouping?eV.toObject(e.content.grouping):null,otherClinicsColor:e.content.otherClinicsColor?Xz.toObject(e.content.otherClinicsColor):null,virtualClinicOptions:e.content.virtualClinicOptions?Jz.toObject(e.content.virtualClinicOptions):null,colorFactory:e.content.colorFactory?gx.toObject(e.content.colorFactory):null,potentialMapView:e.content.potentialMapView?tV.toObject(e.content.potentialMapView):null,layerOptions:e.content.layerOptions?iV.toObject(e.content.layerOptions):null}}}};var G5t="Filter",Wqe="potential-filter",rV=class{static toDisplayString(e){return[G5t,[e.value?"Filter angewendet":"Kein Filter angewendet"]]}static fromObject(e){return ct(this,null,function*(){let t=yield ta.fromObject(e.value.expression,_d.fromObject);return new zr(Wqe,new Mae(t))})}static toObject(e){return{contentType:Wqe,value:e.value.toJSON()}}};var Y5t="Potenzialanalyse",f2="potential-analysis-feature",oV=class{static toDisplayString(e){let t=[];return e.content.form&&t.push(Zz.toDisplayString(e.content.form)),e.content.groupings&&t.push(Qz.toDisplayString(e.content.groupings)),e.content.map&&t.push(nV.toDisplayString(e.content.map)),e.content.filter&&t.push(rV.toDisplayString(e.content.filter)),[Y5t,t]}static fromObject(e){return ct(this,null,function*(){return new eu(f2,{form:e.content.form?Zz.fromObject(e.content.form):null,groupings:e.content.groupings?Qz.fromObject(e.content.groupings):null,map:e.content.map?yield nV.fromObject(e.content.map):null,filter:e.content.filter?yield rV.fromObject(e.content.filter):null})})}static toObject(e){return{contentType:f2,content:{form:e.content.form?Zz.toObject(e.content.form):null,groupings:e.content.groupings?Qz.toObject(e.content.groupings):null,map:e.content.map?nV.toObject(e.content.map):null,filter:e.content.filter&&e.content.filter.value?rV.toObject(e.content.filter):null}}}};var Zqe="Klinik",q5t="business-case-target",Nae=class n extends G_{constructor(e){super(q5t,Zqe,e)}toDisplayString(){let e=[];return this.content.clinic&&e.push([this.content.clinic.value.toString()]),this.content.codeSpectrumSelect&&e.push([`${this.content.codeSpectrumSelect.value.codeSpectrumIds?.length} Ziffern-Spektra ausgew\xE4hlt`]),this.content.administrativeDistrictIds&&this.mergeDisplayStrings(e,this.content.administrativeDistrictIds.toDisplayString()),this.mergeDisplayStrings([Zqe],e)}fromObject(e){let t=e.content.clinic?PC.fromObject(e.content.clinic):null,i=e.content.codeSpectrumSelect?NC.fromObject(e.content.codeSpectrumSelect):null;return new n({clinic:t,administrativeDistrictIds:e.content.administrativeDistrictIds?new Tae(null).fromObject(e.content.administrativeDistrictIds):null,codeSpectrumSelect:i})}toObject(){return{contentType:this.contentType,content:{clinic:PC.toObject(this.content.clinic),codeSpectrumSelect:NC.toObject(this.content.codeSpectrumSelect),administrativeDistrictIds:this.content.administrativeDistrictIds.toObject()}}}};var Pae=class n extends G_{constructor(e){super("business-case-target-drgs","Klinik-DRGs",e)}fromObject(e){return new n({conversionRate:e.content.conversionRate?new zr("business-case-target-conversion-rate",e.content.conversionRate):null,drgCaseCounts:e.content.drgCaseCounts?new zr("business-case-target-drg-case-counts",e.content.drgCaseCounts.map(t=>wt(Ce({},t),{drgCode:qt.fromObject(t.drgCode)}))):null})}toDisplayString(){let e=[];return this.content.conversionRate&&this.content.conversionRate.value&&e.push(`Applikationsrate von ${Lc.format(this.content.conversionRate.value,{style:"percent"})}`),this.content.drgCaseCounts&&this.content.drgCaseCounts.value&&e.push(`${this.content.drgCaseCounts.value.length} DRG Ziffern`),[this.displayName,e]}toObject(){return{contentType:this.contentType,content:{conversionRate:this.content.conversionRate.value,drgCaseCounts:this.content.drgCaseCounts.value}}}};var Fae=class n extends G_{constructor(e){super("business-case-market-potential","Potenzielle DRGs",e)}fromObject(e){return new n({year:new zr("business-case-market-year",e.content.year),marketShare:new zr("business-case-market-share",e.content.marketShare),potential:new zr("business-case-market-potential-drg-case-counts",e.content.potential.map(t=>wt(Ce({},t),{drgCode:qt.fromObject(t.drgCode)})))})}toDisplayString(){let e=[];return this.content.year&&this.content.year.value&&e.push(`Datenjahr ist ${this.content.year.value.toString()}`),this.content.marketShare&&this.content.marketShare.value&&e.push(`Marktanteil pro Jahr von ${Lc.format(this.content.marketShare.value,{style:"percent"})}`),this.content.potential&&this.content.potential.value&&e.push(`${this.content.potential.value.length} DRG Ziffern`),[this.displayName,e]}toObject(){return{contentType:this.contentType,content:{marketShare:this.content.marketShare.value,year:this.content.year.value,potential:this.content.potential.value.map(e=>wt(Ce({},e),{drgCode:e.drgCode}))}}}};var Lae={nutzungsdauer:8,wartungskosten:154700,zinssatz:.02,weitereFixkosten:0,weitereVariableKosten:0,kapazitaetsMaximumProJahr:450,restwertFaktor:.1,patientenFaktor:.1,erloesWahlleistungArzt:1e3,erloesWahlleistungZimmerProTag:150,vwdReduzierungInTagen:0,drgCostCategoryRabattImplants:0};var MA=class n{constructor(e,t,i,r,o,s,c,h,g,x,C,A,k,O,F,L,z,j,K,ee){this.einkaufspreis=e,this.restwert=t,this.abschreibungen=i,this.zinsen=r,this.fixkosten=o,this.nutzungsdauer=s,this.wartungskosten=c,this.zinssatz=h,this.weitereFixkosten=g,this.weitereVariableKosten=x,this.anzahlEingriffe=C,this.kapazitaetsMaximumProJahr=A,this.restwertFaktor=k,this.year=O,this.startYearExternalCases=F,this.patientenFaktor=L,this.erloesWahlleistungArzt=z,this.erloesWahlleistungZimmerProTag=j,this.vwdReduzierungInTagen=K,this.drgCostCategoryRabattImplants=ee}static fromObject(e){return new n(e.einkaufspreis,e.restwert,e.abschreibungen,e.zinsen,e.fixkosten,e.nutzungsdauer,e.wartungskosten,e.zinssatz,e.weitereFixkosten,e.weitereVariableKosten,e.anzahlEingriffe,e.kapazitaetsMaximumProJahr,e.restwertFaktor,e.year,e.startYearExternalCases,e.patientenFaktor,e.erloesWahlleistungArzt,e.erloesWahlleistungZimmerProTag,e.vwdReduzierungInTagen,e.drgCostCategoryRabattImplants)}static of(e,t,i,r=U7e,o=1,s=Lae){t=t||n._calculationRestwert(e,s.restwertFaktor);let c=n._calculationAbschreibungen(e,t,s.nutzungsdauer),h=n._calculationZinsen(e,t,s.zinssatz),g=n._calculationFixkosten(c,h,s.wartungskosten);return new n(e,t,c,h,g,s.nutzungsdauer,s.wartungskosten,s.zinssatz,s.weitereFixkosten,s.weitereVariableKosten,i,s.kapazitaetsMaximumProJahr,s.restwertFaktor,r,o,s.patientenFaktor,s.erloesWahlleistungArzt,s.erloesWahlleistungZimmerProTag,s.vwdReduzierungInTagen,s.drgCostCategoryRabattImplants)}static _calculationAbschreibungen(e,t,i){return+((e-t)/i).toFixed(2)}static _calculationZinsen(e,t,i){return+((e+t)/2*i).toFixed(2)}static _calculationFixkosten(e,t,i){return+(e+t+i).toFixed(2)}static _calculationRestwert(e,t){return+(e*t).toFixed(2)}updateCalculation(){this.restwert=n._calculationRestwert(this.einkaufspreis,this.restwertFaktor),this.abschreibungen=n._calculationAbschreibungen(this.einkaufspreis,this.restwert,this.nutzungsdauer),this.zinsen=n._calculationZinsen(this.einkaufspreis,this.restwert,this.zinssatz),this.fixkosten=n._calculationFixkosten(this.abschreibungen,this.zinsen,this.wartungskosten)}clone(){return new n(this.einkaufspreis,this.restwert,this.abschreibungen,this.zinsen,this.fixkosten,this.nutzungsdauer,this.wartungskosten,this.zinssatz,this.weitereFixkosten,this.weitereVariableKosten,this.anzahlEingriffe,this.kapazitaetsMaximumProJahr,this.restwertFaktor,this.year,this.startYearExternalCases,this.patientenFaktor,this.erloesWahlleistungArzt,this.erloesWahlleistungZimmerProTag,this.vwdReduzierungInTagen,this.drgCostCategoryRabattImplants)}};var m2={startYearExternalCases:1,conversionRate:1,marketShare:.25,calculation:{einkaufspreis:1677900,restwert:0,anzahlEingriffe:0}};var Bae=class n{constructor(e,t=[],i=[],r=Ez,o=m2.startYearExternalCases,s=m2.marketShare,c=m2.conversionRate,h=Lae,g=MA.of(m2.calculation.einkaufspreis,m2.calculation.restwert,m2.calculation.anzahlEingriffe,Ez,o,h)){this._clinicId=e,this._codeSpectraIds=t,this._administrativeDistrictIds=i,this.year=r,this.startYearExternalCases=o,this.marketShare=s,this.conversionRate=c,this.config=h,this.calculation=g,this._casesConversion=[],this._casesPotential=[]}get administrativeDistrictIds(){return this._administrativeDistrictIds}set administrativeDistrictIds(e){this._administrativeDistrictIds=e,this._casesConversion=[],this._casesPotential=[]}get clinicId(){return this._clinicId}set clinicId(e){this._clinicId=e,this._casesConversion=[],this._casesPotential=[]}get codeSpectraIds(){return this._codeSpectraIds}set codeSpectraIds(e){this._codeSpectraIds=e,this._casesConversion=[],this._casesPotential=[]}get casesConversion(){return this._casesConversion}set casesConversion(e){this._casesConversion=e,this._casesPotential=[]}get casesPotential(){return this._casesPotential}set casesPotential(e){this._casesPotential=e,this.calculation=MA.of(1677900,0,n._calculateAnzahlEingriffe(this._casesConversion,this._casesPotential),Ez,1,this.config)}static fromStorageObject(e){let t=e._administrativeDistrictIds.map(o=>la.createFromString(o.value)),i=new MA(e.calculation.einkaufspreis,e.calculation.restwert,e.calculation.abschreibungen,e.calculation.zinsen,e.calculation.fixkosten,e.calculation.nutzungsdauer,e.calculation.wartungskosten,e.calculation.zinssatz,e.calculation.weitereFixkosten,e.calculation.weitereVariableKosten,e.calculation.anzahlEingriffe,e.calculation.kapazitaetsMaximumProJahr,e.calculation.restwertFaktor,e.calculation.year,e.calculation.startYearExternalCases,e.calculation.patientenFaktor,e.calculation.erloesWahlleistungArzt,e.calculation.erloesWahlleistungZimmerProTag,e.calculation.vwdReduzierungInTagen,e.calculation.drgCostCategoryRabattImplants),r=new n(xh.fromObj(e._clinicId),e._codeSpectraIds??e._codeSpectra.map(o=>o.id),t,e.year,e.startYearExternalCases,e.marketShare,e.conversionRate,e.config,i);return r._casesConversion=e._casesConversion,r._casesPotential=e._casesPotential,r.calculation.anzahlEingriffe=n._calculateAnzahlEingriffe(r._casesConversion,r._casesPotential),r}static _calculateAnzahlEingriffe(e=[],t=[]){let i=e.map(o=>o.countConverted).reduce((o,s)=>o+s,0),r=t.map(o=>o.countPotential).reduce((o,s)=>o+s,0);return i+r}clone(){return new n(this._clinicId?.clone(),this._codeSpectraIds?[...this._codeSpectraIds]:[],this._administrativeDistrictIds?.map(e=>e.clone()),this.year,this.startYearExternalCases,this.marketShare,this.conversionRate,Ce({},this.config),this.calculation.clone())}toRequestBody(){let e={},t=new Map;(this._casesPotential||[]).forEach(i=>{t.has(i.code.name)?t.set(i.code.name,wt(Ce({},t.get(i.code.name)),{marketCaseCount:i.countMarket,potentialMarketCaseCount:i.countPotential})):t.set(i.code.name,{marketCaseCount:i.countMarket,ownCaseCount:0,potentialMarketCaseCount:i.countPotential,vwdReduzierungInTagen:this.calculation.vwdReduzierungInTagen})}),(this._casesConversion||[]).forEach(i=>{t.has(i.code.name)?t.set(i.code.name,wt(Ce({},t.get(i.code.name)),{ownCaseCount:i.countConverted})):t.set(i.code.name,{ownCaseCount:i.countConverted,marketCaseCount:0,potentialMarketCaseCount:0,vwdReduzierungInTagen:this.calculation.vwdReduzierungInTagen})});for(let[i,r]of t.entries())e[i]=wt(Ce({},r),{vwdReduzierungInTagen:this.calculation.vwdReduzierungInTagen});return{clinicId:this._clinicId,cases:e,administrativeDistrictIds:this._administrativeDistrictIds.map(i=>i.value),year:this.year,erwarteterMarktanteil:this.marketShare,steigerungsrate:this.conversionRate,startYearExternalCases:this.calculation.startYearExternalCases,einkaufspreis:this.calculation.einkaufspreis,restwert:this.calculation.restwert,wartungskosten:this.calculation.wartungskosten,nutzungsdauer:this.calculation.nutzungsdauer,abschreibungen:this.calculation.abschreibungen,kapazitaetsmaximum:this.calculation.kapazitaetsMaximumProJahr,zinssatz:this.calculation.zinssatz,zinsen:this.calculation.zinsen,weitereFixkosten:this.calculation.weitereFixkosten,weitereVariableKosten:this.calculation.weitereVariableKosten,fixkosten:this.calculation.fixkosten,erloesWahlleistungArzt:this.calculation.erloesWahlleistungArzt,erloesWahlleistungZimmerProTag:this.calculation.erloesWahlleistungZimmerProTag,privatPatientenFaktor:this.calculation.patientenFaktor,drgCostCategoryRabatt:{IMPLANTS:this.calculation.drgCostCategoryRabattImplants}}}};var zae=class n extends G_{constructor(e){super("business-case-costs","Investitions-Parameter",e)}fromObject(e){return new n({config:new zr("business-case-costs-config",e.content.config),calculation:new zr("business-case-costs-calculation",MA.fromObject(e.content.calculation))})}toDisplayString(){return[this.displayName]}toObject(){return{contentType:this.contentType,content:{config:this.content.config.value,calculation:this.content.calculation.value}}}};var Vae="Business Case",sV="business-case-feature",Uae=class n extends G_{constructor(e){super(sV,Vae,e)}toDisplayString(){let e=[Vae];return this.content.target&&this.mergeDisplayStrings(e,this.content.target.toDisplayString()),this.content.targetDrgCodes&&this.mergeDisplayStrings(e,this.content.targetDrgCodes.toDisplayString()),this.content.market&&this.mergeDisplayStrings(e,this.content.market.toDisplayString()),this.content.costs&&this.mergeDisplayStrings(e,this.content.costs.toDisplayString()),e}fromObject(e){return new n({target:new Nae(null).fromObject(e.content.target),targetDrgCodes:new Pae(null).fromObject(e.content.targetDrgCodes),market:new Fae(null).fromObject(e.content.market),costs:new zae(null).fromObject(e.content.costs)})}toObject(){return{contentType:this.contentType,content:{target:this.content.target.toObject(),targetDrgCodes:this.content.targetDrgCodes.toObject(),market:this.content.market.toObject(),costs:this.content.costs.toObject()}}}toForm(){let e=new Bae(this.content.target.content.clinic?.value,this.content.target.content.codeSpectrumSelect?.value?.codeSpectrumIds,this.content.target.content.administrativeDistrictIds?.value,this.content.market.content.year.value,this.content.costs.content.calculation.value.startYearExternalCases,this.content.market.content.marketShare.value,this.content.targetDrgCodes.content.conversionRate?.value);return e.casesConversion=this.content.targetDrgCodes.content.drgCaseCounts?this.content.targetDrgCodes.content.drgCaseCounts.value.map(t=>({code:t.drgCode,countOriginal:t.countOriginal,countConverted:t.countConverted,count:t.countOriginal})):[],e.casesPotential=this.content.market.content.potential.value.map(t=>({code:t.drgCode,count:t.count,countMarket:t.countMarket,countPotential:t.countPotential})),e}};var g2=class{static getContentTypeDisplayName(e){switch(e){case d2:return ATe;case h2:return DTe;case f2:return kTe;case sV:return Vae;default:throw new Error(`Unknown content type: ${e}`)}}static toDisplayString(e){switch(e.contentType){case d2:return Bz.toDisplayString(e);case h2:return Yz.toDisplayString(e);case f2:return oV.toDisplayString(e);case sV:return e.toDisplayString();default:throw new Error(`Unknown toDisplayString() for content type: ${e.contentType}`)}}static fromObject(e){switch(e.contentType){case d2:return Bz.fromObject(e);case h2:return Promise.resolve(Yz.fromObject(e));case f2:return Promise.resolve(oV.fromObject(e));case sV:return Promise.resolve(new Uae(null).fromObject(e));default:throw new Error(`Unknown fromObject() for content type: ${e.contentType}`)}}static toObject(e){switch(e.contentType){case d2:return Bz.toObject(e);case h2:return Yz.toObject(e);case f2:return oV.toObject(e);case sV:return e.toObject();default:throw new Error(`Unknown toObject() for content type: ${e.contentType}`)}}};var _2=class n{static fromObject(e){return ct(this,null,function*(){let t=e.createdDate?new Date(e.createdDate):null,i=e.modifiedDate?new Date(e.modifiedDate):null,r=yield g2.fromObject(e.contentSnippet);return new n(e.id,e.name,t,i,e.highestPermission,r)})}constructor(e,t,i,r,o,s=null){this.id=e,this.name=t,this.createdDate=i,this.modifiedDate=r,this.highestPermission=o,this.contentSnippet=s,this.resourceName=Bn.APP_CONTENT_SNIPPET}clone(...e){throw new Error("Method not implemented.")}toJSON(){return{id:this.id,name:this.name,createdDate:this.createdDate,modifiedDate:this.modifiedDate,highestPermission:this.highestPermission,contentSnippet:g2.toObject(this.contentSnippet)}}};var jae=class{constructor(e){this._environmentService=e}findAll(e){let t=`${this._basePath()}/resource`;return e&&(t+=`?contentType=${e}`),t}findById(e){return`${this._basePath()}/resource/${e}`}save(){return`${this._basePath()}/resource`}_basePath(){return`${this._environmentService.load("APP_CONTENT_SNIPPET_RESOURCE_BASE_URL")}`}};var OA=(()=>{let e=class e{constructor(i,r){this._httpClient=r,this._store=new jae(i)}save(i){let r=this._store.save();return this._httpClient.post(r,i.toJSON()).pipe(lr(_2.fromObject))}update(i){let r=this._store.save();return this._httpClient.put(r,i.toJSON()).pipe(lr(o=>_2.fromObject(o)))}findAllByContentType(i=null){let r=this._store.findAll(i);return this._httpClient.get(r).pipe(lr(o=>Promise.all(o.map(s=>_2.fromObject(s)))))}findById(i){let r=this._store.findById(i);return this._httpClient.get(r).pipe(lr(_2.fromObject))}};e.\u0275fac=function(r){return new(r||e)(Ke(dr),Ke(ms))},e.\u0275prov=It({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var Gae=n=>({$implicit:n});function $5t(n,e){n&1&&bt(0,"bd-message-empty",3)}function K5t(n,e){n&1&&Pn(0)}function W5t(n,e){if(n&1&&(se(0,"ul",4),Ne(1,K5t,1,0,"ng-container",5),ce()),n&2){let t=le(),i=_r(3);Z(),J("ngTemplateOutlet",i)("ngTemplateOutletContext",Tr(2,Gae,t.displayData))}}function Z5t(n,e){n&1&&Pn(0)}function Q5t(n,e){if(n&1&&Ne(0,Z5t,1,0,"ng-container",5),n&2){let t=le().$implicit;le();let i=_r(5);J("ngTemplateOutlet",i)("ngTemplateOutletContext",Tr(2,Gae,t))}}function X5t(n,e){n&1&&Pn(0)}function J5t(n,e){if(n&1&&Ne(0,X5t,1,0,"ng-container",5),n&2){let t=le().$implicit;le();let i=_r(7);J("ngTemplateOutlet",i)("ngTemplateOutletContext",Tr(2,Gae,t))}}function eUt(n,e){if(n&1&&Ne(0,Q5t,1,4,"ng-container")(1,J5t,1,4,"ng-container"),n&2){let t=e.$implicit,i=le();Hi(i.isArray(t)?0:1)}}function tUt(n,e){n&1&&Pn(0)}function iUt(n,e){if(n&1&&Ne(0,tUt,1,0,"ng-container",5),n&2){let t=e.$implicit;le(2);let i=_r(3);J("ngTemplateOutlet",i)("ngTemplateOutletContext",Tr(2,Gae,t))}}function nUt(n,e){if(n&1&&(se(0,"ul",6),Ec(1,iUt,1,4,"ng-container",null,Nu),ce()),n&2){let t=e.$implicit;Z(),Ic(t)}}function rUt(n,e){if(n&1&&(se(0,"li")(1,"span",7),yt(2),ce()()),n&2){let t=e.$implicit;Z(2),jn(t)}}var RTe=(()=>{let e=class e{ngOnChanges(i){i.snippet&&(this.displayData=this.snippet?g2.toDisplayString(this.snippet):null)}isArray(i){return Array.isArray(i)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=Ct({type:e,selectors:[["app-content-snippet-display"]],inputs:{snippet:"snippet"},standalone:!0,features:[eo,Ot],decls:8,vars:1,consts:[["itemTpl",""],["listTpl",""],["valueTpl",""],["message","Kein Inhalt vorhanden."],[1,"list-disc"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"list-disc","ml-4"],[1,"mat-body-1"]],template:function(r,o){r&1&&Ne(0,$5t,1,0,"bd-message-empty",3)(1,W5t,2,4,"ul",4)(2,eUt,2,1,"ng-template",null,0,ws)(4,nUt,3,0,"ng-template",null,1,ws)(6,rUt,3,1,"ng-template",null,2,ws),r&2&&Hi(o.displayData?1:0)},dependencies:[Zb,Rs],encapsulation:2});let n=e;return n})();var sUt=()=>["/app-content-snippet-resources"];function aUt(n,e){if(n&1&&bt(0,"app-content-snippet-display",7),n&2){let t=le();J("snippet",t.appContentSnippetResource.contentSnippet)}}var Qqe=(()=>{let e=class e{constructor(i,r,o,s){this._appContentSnippetResourceService=i,this._activatedRoute=r,this._permissionResourcesService=o,this._router=s,this.resourceInfoMenuConfig={showDeleteButton:!0,showEditButton:!1},this.loading$=new Yo,this._activatedRoute.params.subscribe(c=>{c.appContentSnippetResourceId&&(this.loading$.next(Qs.LOADING),this._appContentSnippetResourceService.findById(c.appContentSnippetResourceId).pipe(kr(1)).subscribe(h=>{this.appContentSnippetResource=h,this.loading$.next(Qs.SUCCESS)}))})}delete(){this._permissionResourcesService.archive(Bn.APP_CONTENT_SNIPPET,this.appContentSnippetResource.id).pipe(kr(1)).subscribe(()=>this._router.navigate(["/app-content-snippet-resources"]))}};e.\u0275fac=function(r){return new(r||e)(oe(OA),oe(Kh),oe(qd),oe(el))},e.\u0275cmp=Ct({type:e,selectors:[["app-content-snippet-resource-details"]],standalone:!0,features:[Ot],decls:13,vars:7,consts:[["successTpl",""],[1,"toolbar-spacer"],[3,"deleteResource","resource","config"],[1,"bd-container"],[3,"loadItem","successTemplate"],[1,"flex","flex-row","justify-end"],["mat-button","","color","accent",3,"routerLink"],[3,"snippet"]],template:function(r,o){if(r&1){let s=Fi();se(0,"bd-toolbar")(1,"span"),yt(2),ce(),bt(3,"span",1),se(4,"bd-resources-info-menu",2),At("deleteResource",function(){return ht(s),pt(o.delete())}),ce()(),se(5,"div",3),bt(6,"bd-loader",4),ce(),se(7,"div",3)(8,"div",5)(9,"a",6),yt(10," Zur \xDCbersicht "),ce()()(),Ne(11,aUt,1,1,"ng-template",null,0,ws)}if(r&2){let s=_r(12);Z(2),jn(o.appContentSnippetResource==null?null:o.appContentSnippetResource.name),Z(2),J("resource",o.appContentSnippetResource)("config",o.resourceInfoMenuConfig),Z(2),J("loadItem",o.loading$)("successTemplate",s),Z(3),J("routerLink",Ll(6,sUt))}},dependencies:[KT,Zne,Ys,RTe,gs,o3,Wh,md],styles:[".toolbar-spacer[_ngcontent-%COMP%]{flex:1 1 auto}"]});let n=e;return n})();var lUt=()=>[25,50,100],cUt=()=>["name","labels","modifiedDate"];function uUt(n,e){if(n&1){let t=Fi();se(0,"div")(1,"mat-form-field")(2,"input",9),At("input",function(r){ht(t),le();let o=_r(1);return pt(o.filterGlobal(r.target.value,"contains"))}),ce()()()}}function dUt(n,e){n&1&&(se(0,"tr")(1,"th",10),yt(2," Name "),bt(3,"p-sortIcon",11),ce(),se(4,"th",12),yt(5," Letzte \xC4nderung "),bt(6,"p-sortIcon",13),ce(),se(7,"th",14),yt(8,"Link"),ce(),bt(9,"th",14),ce())}function hUt(n,e){if(n&1){let t=Fi();se(0,"tr",15)(1,"td"),yt(2),ce(),se(3,"td"),yt(4),Ym(5,"date"),ce(),se(6,"td",14)(7,"button",16),At("click",function(){let r=ht(t).$implicit,o=le(2);return pt(o.onRowSelect(r))}),se(8,"mat-icon"),yt(9,"open_in_new"),ce()()(),se(10,"td",14)(11,"button",17)(12,"mat-icon"),yt(13,"more_vert"),ce()(),se(14,"mat-menu",null,2)(16,"button",18),At("click",function(){let r=ht(t).$implicit,o=le(2);return pt(o.onArchive(r))}),yt(17," L\xF6schen "),ce()()()()}if(n&2){let t=e.$implicit,i=_r(15);J("pSelectableRow",t),Z(2),jn(t.name),Z(2),jn(i0(5,4,t.modifiedDate,"short")),Z(7),J("matMenuTriggerFor",i)}}function pUt(n,e){n&1&&(se(0,"tr")(1,"td",19),yt(2,"Keine Eintr\xE4ge vorhanden"),ce()())}function fUt(n,e){if(n&1){let t=Fi();se(0,"p-table",4,1),At("selectionChange",function(r){ht(t);let o=le();return pt(o.onRowSelect(r))}),Ne(2,uUt,3,0,"ng-template",5)(3,dUt,10,0,"ng-template",6)(4,hUt,18,7,"ng-template",7)(5,pUt,3,0,"ng-template",8),ce()}if(n&2){let t=le();J("value",t.appContentSnippetResources)("paginator",!0)("rows",25)("sortField","modifiedDate")("sortOrder",-1)("rowsPerPageOptions",Ll(8,lUt))("globalFilterFields",Ll(9,cUt))("autoLayout",!0)}}var Xqe=(()=>{let e=class e{constructor(i,r){this._appContentSnippetResourceService=i,this._permissionService=r,this.loading$=new ea(Qs.INIT),this.appContentSnippetResourceSelect=new Kt}ngOnInit(){this.loading$.next(Qs.LOADING),this._appContentSnippetResourceService.findAllByContentType(this.contentType).subscribe(i=>{this.appContentSnippetResources=i,this.loading$.next(Qs.SUCCESS)})}onRowSelect(i){this.appContentSnippetResourceSelect.emit(i)}onArchive(i){this.loading$.next(Qs.LOADING),this._permissionService.archive(i.resourceName,i.id).subscribe(()=>this.ngOnInit())}};e.\u0275fac=function(r){return new(r||e)(oe(OA),oe(qd))},e.\u0275cmp=Ct({type:e,selectors:[["app-content-snippet-resource-list"]],inputs:{contentType:"contentType"},outputs:{appContentSnippetResourceSelect:"appContentSnippetResourceSelect"},standalone:!0,features:[Ot],decls:3,vars:2,consts:[["successTpl",""],["resourcesTable",""],["menu","matMenu"],[3,"loadItem","successTemplate"],["selectionMode","single","dataKey","id","styleClass","p-datatable-sm",3,"selectionChange","value","paginator","rows","sortField","sortOrder","rowsPerPageOptions","globalFilterFields","autoLayout"],["pTemplate","caption"],["pTemplate","header"],["pTemplate","body"],["pTemplate","emptymessage"],["matInput","","placeholder","Suchen",3,"input"],["pSortableColumn","name"],["field","name"],["pSortableColumn","modifiedDate"],["field","modifiedDate"],[1,"w-12"],[3,"pSelectableRow"],["mat-icon-button","","color","accent",3,"click"],["mat-icon-button","","aria-label","button with a menu",3,"matMenuTriggerFor"],["mat-menu-item","",3,"click"],["colspan","4"]],template:function(r,o){if(r&1&&(bt(0,"bd-loader",3),Ne(1,fUt,6,10,"ng-template",null,0,ws)),r&2){let s=_r(2);J("loadItem",o.loading$)("successTemplate",s)}},dependencies:[gs,Jh,dT,fC,zT,qs,zs,mne,fne,ure,iA,Ra,are,cre,lre,kT,aR,Hie,md]});let n=e;return n})();var mUt=[{path:"",pathMatch:"full",component:Xqe,canActivate:[S_],data:{pageTitle:ip.title("App Snippets")}},{path:":appContentSnippetResourceId",component:Qqe,canActivate:[S_],data:{pageTitle:ip.title("App Snippets")}}],$Fn=C_.forChild(mUt);var Jqe=(()=>{let e=class e{constructor(i,r){this.httpClient=i,this._environmentService=r,this._store=new bre(this._environmentService)}create(i){return this.httpClient.post(this._store.crud(),i).pipe(lr(r=>Az.fromJsonObject(r)))}findAll(i=void 0,r=void 0){return this.httpClient.get(this._store.crud()).pipe(lr(o=>Promise.all(o.map(s=>Az.fromJsonObject(s)))))}findById(i){return this.httpClient.get(this._store.findOne(i)).pipe(lr(r=>Az.fromJsonObject(r)))}update(i){return this.httpClient.put(this._store.findOne(i.id),i).pipe(ri(()=>{}))}serviceGroups(){return this.httpClient.get(this._store.serviceGroups())}soll1Mindestfallzahl(i,r){return this.httpClient.get(this._store.soll1Mindestfallzahl(i),{params:new Bs().append("cutoffPercentage",r)})}};e.\u0275fac=function(r){return new(r||e)(Ke(ms),Ke(dr))},e.\u0275prov=It({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var Yae=class extends ol{constructor(e,t,i){super(),this._resourceConfigItem=e,this._httpClient=t,this._environmentService=i}findAll(e,t){let i=this._getBaseUrl(),r=new Bs;return e&&(r=r.append("minPermission",e)),t&&(r=r.append("maxPermission",t)),this._httpClient.get(i,{params:r}).pipe(ri(o=>ux.fromObjArr(o)))}findById(e){if(this.hasByKey(e)===!1){let t=this._getByVirtualClinicIdUrl(e);this._cache[e]=this._httpClient.get(t).pipe(ri(ux.fromObj),dl(1))}return this.getByKey(e)}create(e){let t=this._getBaseUrl();return this._httpClient.post(t,e).pipe(ri(ux.fromObj))}update(e){this.deleteCacheForKey(e.id);let t=this._getByVirtualClinicIdUrl(e.id);return this._httpClient.post(t,e)}getSpecialtyDepartments(e,t){let i=this._getSpecialtyDepartmentByVirtualClinicIdUrl(e);return t&&(i=this._getBySpecialtyDepartmentIdAndVirtualClinicIdUrl(e,t)),this._httpClient.get(i).pipe(ri(PR.fromObjArr)).toPromise()}_getBaseUrl(){return`${this._environmentService.load(this._resourceConfigItem.API_TOKENS.BASE)}/`}_getByVirtualClinicIdUrl(e){return`${this._getBaseUrl()}${e}/`}_getSpecialtyDepartmentByVirtualClinicIdUrl(e){return`${this._getByVirtualClinicIdUrl(e)}specialty-departments/`}_getBySpecialtyDepartmentIdAndVirtualClinicIdUrl(e,t){return`${this._getSpecialtyDepartmentByVirtualClinicIdUrl(e)}${t}/`}};var qae=class extends ol{constructor(e,t,i){super(),this._resourceConfigItem=e,this._http=t,this._environmentService=i}findAll(e,t){let i=this._getBaseUrl(),r=new Bs;return e&&(r=r.append("minPermission",e)),t&&(r=r.append("maxPermission",t)),this._http.get(i,{params:r}).pipe(ri(o=>o.map(s=>hx.fromObject(s))))}create(e){let t=this._getBaseUrl();return this._http.post(t,e).pipe(ri(hx.fromObject))}update(e){this.deleteCacheForKey(e.id);let t=this._getBaseUrl();return this._http.put(t,e)}findById(e){if(!this.hasByKey(e)){let t=this._byCodeSpectrumId(e);this._cache[e]=this._http.get(t).pipe(ri(hx.fromObject),dl(1))}return this.getByKey(e)}findByIds(e){let t=e.map(i=>this.findById(i));return dh(t)}getCodesAll(e,t,i=!0){let r=`${this._codesByCodingSystemByCodeSpectrumId(e,t)}/all`,o=new Bs;return o=o.set("sorted",i),this._http.get(r,{params:o}).pipe(kr(1),ri(s=>s.map(az.fromObject)))}_getBaseUrl(){return this._environmentService.load(this._resourceConfigItem.API_TOKENS.BASE)}_byCodeSpectrumId(e){return`${this._getBaseUrl()}/${e}`}_codesByCodeSpectrumId(e){return`${this._byCodeSpectrumId(e)}/codes`}_codesByCodingSystemByCodeSpectrumId(e,t){return`${this._byCodeSpectrumId(e)}/codes/${t}`}};function e$e(n,e,t,i){var r=arguments.length,o=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(n,e,t,i);else for(var c=n.length-1;c>=0;c--)(s=n[c])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o}function t$e(n,e){return function(t,i){e(t,i,n)}}function i$e(n,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,e)}var $ae=class extends ol{constructor(e,t,i,r){super(),this._resourceConfigItem=e,this._httpClient=t,this._environmentService=i,this._cubeMapFeatureConfig=r}create(e,t){let i=this._getBaseUrl();return this._httpClient.post(i,{dashboard:e,changes:t}).pipe(lr(r=>wo(mx.fromObject(r,this._cubeMapFeatureConfig))))}update(e,t){this.deleteCacheForKey(e.id);let i=this._getBaseUrl(),o={dashboard:e.toJSON(),changes:t};return this._httpClient.put(i,o).pipe(ri(()=>null))}children(e){let t=this._byDashboardIdChildren(e);return this._httpClient.get(t)}findAll(e,t,i=!0){let r=this._getBaseUrl(),o=new Bs;return e&&(o=o.append("minPermission",e)),t&&(o=o.append("maxPermission",t)),o=o.append("includePages",i.toString()),this._httpClient.get(r,{params:o}).pipe(ri(s=>s.map(c=>mx.fromObject(c,this._cubeMapFeatureConfig))),ri(s=>s.map(c=>wo(c))),lr(s=>dh(s).pipe(Vm([]))))}findById(e){return this._findById(e)}_findById(e){let t=this._byDashboardIdUrl(e);return this._httpClient.get(t).pipe(lr(i=>wo(mx.fromObject(i,this._cubeMapFeatureConfig))))}_getBaseUrl(){return`${this._environmentService.load(this._resourceConfigItem.API_TOKENS.BASE)}/dashboards/user-defined`}_byDashboardIdUrl(e){return`${this._getBaseUrl()}/${e}`}_byDashboardIdChildren(e){return`${this._byDashboardIdUrl(e)}/relationships/children`}};$ae=e$e([t$e(3,rze(c2)),i$e("design:paramtypes",[Object,ms,dr,Object])],$ae);var Kae=(()=>{let e=class e{constructor(i,r,o,s,c,h,g,x,C,A,k,O,F,L,z,j,K){this._resourceConfig=i,this._cubeMapFeatureConfig=r,this._httpClient=o,this._environmentService=s,this._codeSpectrumService=c,this._clinicsFilterService=h,this._benchmarkingGroupService=g,this._cubeDashboardService=x,this._marketService=C,this._operatingNumberUserDefinedService=A,this._virtualClinicReferralImportService=k,this._virtualClinicP21ImportService=O,this._scenarioAnalysisService=F,this._userFileService=L,this._appContentSnippetResourceService=z,this._scenarioOpenCloseAnalysisService=j,this._virtualClinicService=K}of(i){switch(i){case Bn.MARKET:return this._marketService;case Bn.CODE_SPECTRUM:return this._codeSpectrumService;case Bn.AT_CODE_SPECTRUM:return new qae(this._resourceConfig["at-code-spectrum"],this._httpClient,this._environmentService);case Bn.VIRTUAL_CLINIC:return this._virtualClinicService;case Bn.AT_VIRTUAL_CLINIC:return new Yae(this._resourceConfig["at-virtual-clinic"],this._httpClient,this._environmentService);case Bn.CLINICS_FILTER:return this._clinicsFilterService;case Bn.AT_CUBE_DASHBOARD:return new $ae(this._resourceConfig["at-cube-dashboard"],this._httpClient,this._environmentService,new Sz);case Bn.VIRTUAL_CLINIC_BENCHMARKING_GROUP:return this._benchmarkingGroupService;case Bn.VIRTUAL_CLINIC_ANALYSIS_DASHBOARD:return this._cubeDashboardService;case Bn.CLINIC_OPERATING_NUMBER_GROUP:return this._operatingNumberUserDefinedService;case Bn.VIRTUAL_CLINIC_REFERRAL_IMPORT:return this._virtualClinicReferralImportService;case Bn.VIRTUAL_CLINIC_P21_IMPORT:return this._virtualClinicP21ImportService;case Bn.SCENARIO_ANALYSIS:return this._scenarioAnalysisService;case Bn.FILE:return this._userFileService;case Bn.APP_CONTENT_SNIPPET:return this._appContentSnippetResourceService;case Bn.SCENARIO_ANALYSIS_OPEN_CLOSE:return this._scenarioOpenCloseAnalysisService;default:throw new Error(`Resource ${i} has no service implemented`)}}};e.\u0275fac=function(r){return new(r||e)(Ke($ne),Ke(c2),Ke(ms),Ke(dr),Ke(HYe),Ke(jYe),Ke(h9e),Ke(dqe),Ke(hqe),Ke(pqe),Ke(fqe),Ke(mqe),Ke(gqe),Ke(RC),Ke(OA),Ke(Jqe),Ke(u2))},e.\u0275prov=It({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var NTe={disableFnc:NEe,detailLinkFnc:PEe,filterFnc:FG,emptyResourcesText:"Keine Elemente gefunden",resourceNameTitle:"Element",selectOnInit:"none",resetOption:!0};var e7=class extends Dc{constructor(e){super(),this._resourceServices=e,this.formLoading=!1,this.resourceCtrl=new Kb(null),this._resourceOptionsLoaded$=new Yo(1)}_onResourceNameChange(e){this.formLoading=!0,this._resourceService=this._resourceServices.of(e),this.resourceOptions?(this.formLoading=!1,this._resourceOptionsLoaded$.next(this.resourceOptions)):this._resourceService.findAll().subscribe(t=>{this.formLoading=!1,this.updateResourceOptions(t),this._resourceOptionsLoaded$.next(this.resourceOptions)})}_isHtmlElementInSideSheetContainer(e){return e.tagName==="td-side-sheet-container".toUpperCase()?!0:e.parentElement?this._isHtmlElementInSideSheetContainer(e.parentElement):!1}updateResourceOptions(e){this.resourceOptions=e.map(t=>this.resourceAsInlineOption(t)).sort((t,i)=>gC.sort(t.resource,i.resource,vR))}addOption(e){let t=[...this.resourceOptions.map(i=>wt(Ce({},i),{resource:i.resource?i.resource?.clone():void 0}))];t.push(e),this.resourceOptions=hn.unique(t,i=>i.id).sort((i,r)=>gC.sort(i.resource,r.resource,vR))}resourceAsAdminInlineOption(e){return this.resourceAsInlineOption(e,["italic"])}resourceAsInlineOption(e,t=void 0){return{id:e.id,disabled:this.config?e.hasError||this.config.disableFnc(e):e.hasError,resource:e,styleClass:t}}};var yUt=["multiSelectContainer"],bUt=n=>({width:n});function xUt(n,e){if(n&1&&(se(0,"div",6)(1,"span"),yt(2),ce()()),n&2){let t=le(2);Z(),vn(t.resourceSelect.styleClass),Z(),jn(t.resourceSelect.resource.name)}}function wUt(n,e){if(n&1&&Ne(0,xUt,3,3,"div",6),n&2){let t=le();Hi(t.resourceSelect&&t.resourceSelect.resource?0:-1)}}function CUt(n,e){if(n&1&&(se(0,"div",6)(1,"span"),yt(2),ce()()),n&2){let t=e.$implicit;Z(),vn(t.styleClass),Z(),jn(t.resource.name)}}var r$e=(()=>{let e=class e extends e7{constructor(i,r){super(i),this.eleRef=r,this.config=NTe,this.resourceSelectChange=new Kt,this.panelWidth="364px",this.resourceCtrl.valueChanges.subscribe(o=>{this._onSelect(o)})}ngOnChanges(i){i.resourceSelect&&i.resourceSelect.currentValue&&this._onResourceSelectChange(this.resourceSelect),i.resourceName&&this._onResourceNameChange(this.resourceName)}ngAfterViewInit(){this.panelWidth=`${this.multiSelectContainer.nativeElement.offsetWidth}px`;let i=this._isHtmlElementInSideSheetContainer(this.eleRef.nativeElement);this.overlayOptions={mode:"overlay",appendTo:i?void 0:"body"}}onChange(i){this._onSelect(i.value)}onClearChange(){this._onSelect(null)}_onSelect(i){this.resourceSelect=i,this.resourceSelectChange.emit(i)}_onResourceSelectChange(i){let r=null;i.resource?r=Promise.resolve(i):r=zye(this._resourceOptionsLoaded$.asObservable().pipe(lr(o=>o.some(s=>s.id===i.id)?kn(o.find(s=>s.id===i.id)):this._resourceService.findById(i.id).pipe(kr(1),ri(s=>this.resourceAsAdminInlineOption(s)),vs(s=>this.addOption(s)))))),r.then(o=>{this.resourceSelect=o,this.resourceCtrl.setValue(o)})}};e.\u0275fac=function(r){return new(r||e)(oe(Kae),oe(Ai))},e.\u0275cmp=Ct({type:e,selectors:[["bd-resources-select-inline-single"]],viewQuery:function(r,o){if(r&1&&Xn(yUt,5),r&2){let s;Di(s=ki())&&(o.multiSelectContainer=s.first)}},inputs:{resourceSelect:"resourceSelect",resourceOptions:"resourceOptions",config:"config",resourceName:"resourceName"},outputs:{resourceSelectChange:"resourceSelectChange"},standalone:!0,features:[Li,eo,Ot],decls:7,vars:16,consts:[["multiSelectContainer",""],[1,"p-float-label"],["optionDisabled","disabled","optionLabel","resource.name","dataKey","id","styleClass","w-full",3,"onChange","onClear","id","options","panelStyle","overlayOptions","inputId","formControl","showClear","dropdownIcon","filter","placeholder","emptyMessage","emptyFilterMessage"],["pTemplate","selectedItem"],["pTemplate","item"],[1,"mdc-float-label",3,"for"],[1,"flex","align-items-center","gap-2"]],template:function(r,o){if(r&1){let s=Fi();se(0,"span",1,0)(2,"p-dropdown",2),At("onChange",function(h){return ht(s),pt(o.onChange(h))})("onClear",function(){return ht(s),pt(o.onClearChange())}),Ne(3,wUt,1,1,"ng-template",3)(4,CUt,3,3,"ng-template",4),ce(),se(5,"label",5),yt(6),ce()()}r&2&&(Z(2),J("id","bd-resource-select-inline-single-"+o.config.resourceNameTitle)("options",o.resourceOptions)("panelStyle",Tr(14,bUt,o.panelWidth))("overlayOptions",o.overlayOptions)("inputId","bd-resource-select-inline-single-"+o.config.resourceNameTitle)("formControl",o.resourceCtrl)("showClear",(o.config==null?null:o.config.resetOption)===!0||!1)("dropdownIcon",o.formLoading?"pi pi-spinner pi-spin":"pi pi-chevron-down")("filter",!0)("placeholder",o.config.resourceNameTitle)("emptyMessage",o.config.emptyResourcesText)("emptyFilterMessage",o.config.emptyResourcesText),Z(3),J("for","bd-resource-select-inline-single-"+o.config.resourceNameTitle),Z(),jn(o.config.resourceNameTitle))},dependencies:[dC,LT,BT,_G,xR,zG,Ra],encapsulation:2});let n=e;return n})();var Wae={accept:"*"};function SUt(n,e){if(n&1){let t=Fi();se(0,"div")(1,"input",2,0),At("change",function(r){ht(t);let o=le();return pt(o.onFileSelect(r))}),ce(),se(3,"button",3),At("click",function(){ht(t);let r=_r(2);return pt(r.click())}),yt(4," Ausw\xE4hlen "),ce()()}if(n&2){let t=le();Z(),J("accept",t.config.accept),Z(2),J("disabled",t.disabled)}}function EUt(n,e){if(n&1){let t=Fi();se(0,"div",1)(1,"div",4)(2,"span",5),yt(3),ce()(),se(4,"div",6)(5,"button",7),At("click",function(){ht(t);let r=le();return pt(r.onFileRemove())}),se(6,"mat-icon"),yt(7,"delete"),ce()()()()}if(n&2){let t=le();Z(3),jn(t.file.name)}}var Zae=(()=>{let e=class e{constructor(){this.config=Wae,this.disabled=!1,this.fileChange=new Kt}onFileSelect(i){let r=i.target.files;r.length>0&&this._setFile(r[0])}onFileRemove(){this._setFile(null)}_setFile(i){this.file=i,this.fileChange.emit(i)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=Ct({type:e,selectors:[["bd-ui-file-input"]],inputs:{file:"file",config:"config",disabled:"disabled"},outputs:{fileChange:"fileChange"},standalone:!0,features:[Ot],decls:2,vars:2,consts:[["fileInput",""],["fxLayout","row"],["type","file",1,"inputfile",3,"change","accept"],["mat-raised-button","","color","accent",3,"click","disabled"],["fxFlex",""],[1,"filename","mat-body-2"],["fxFlex","40px"],["mat-icon-button","","color","accent",3,"click"]],template:function(r,o){r&1&&Ne(0,SUt,5,2,"div")(1,EUt,8,1,"div",1),r&2&&(Hi(o.file?-1:0),Z(),Hi(o.file?1:-1))},dependencies:[gs,Sl,Jh,Ys,tl,Cl,qs,zs],styles:[".inputfile[_ngcontent-%COMP%]{width:.1px;height:.1px;opacity:0;overflow:hidden;position:absolute;z-index:-1}.filename[_ngcontent-%COMP%]{line-height:40px}"]});let n=e;return n})();var o$e=(()=>{let e=class e{constructor(){this.formChange=new Kt,this.fileInputConfig={accept:"*"}}onFileSelect(i){this.form.file=i,this.formChange.emit(this.form)}onLabelsChange(i){this.form.labels=i,this.formChange.emit(this.form)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=Ct({type:e,selectors:[["bd-user-files-new-dialog-form"]],inputs:{form:"form"},outputs:{formChange:"formChange"},standalone:!0,features:[Ot],decls:12,vars:2,consts:[[1,"form-part"],[1,"mat-subtitle-1"],[3,"fileChange","config"],[3,"labelsChange","labels"]],template:function(r,o){r&1&&(se(0,"div",0)(1,"div")(2,"span",1),yt(3,"Datei Auswahl"),ce()(),se(4,"div")(5,"bd-ui-file-input",2),At("fileChange",function(c){return o.onFileSelect(c)}),ce()()(),se(6,"div",0)(7,"div")(8,"span",1),yt(9,"Datei Labels"),ce()(),se(10,"div")(11,"bd-ui-labels-input",3),At("labelsChange",function(c){return o.onLabelsChange(c)}),ce()()()),r&2&&(Z(5),J("config",o.fileInputConfig),Z(6),J("labels",o.form.labels))},dependencies:[Zae,NG],styles:[".form-part[_ngcontent-%COMP%]{margin:24px 0}"]});let n=e;return n})();function IUt(n,e){if(n&1){let t=Fi();se(0,"bd-user-files-new-dialog-form",7),At("formChange",function(r){ht(t);let o=le();return pt(o.onFormChange(r))}),ce()}if(n&2){let t=le();J("form",t.form)}}var s$e=(()=>{let e=class e{constructor(i,r){this._dialogRef=i,this._fileService=r,this.upload$=new mi,this.form={file:null,labels:[]},this.isValid=!1}onFormChange(i){this.form=i,this.isValid=!!this.form&&!!this.form.file}upload(){this.upload$.next(Qs.LOADING),this._fileService.upload(this.form.file,this.form.labels).subscribe(i=>{this.upload$.next(Qs.SUCCESS),this._dialogRef.close(i)})}};e.\u0275fac=function(r){return new(r||e)(oe(x0),oe(RC))},e.\u0275cmp=Ct({type:e,selectors:[["bd-user-files-new-dialog"]],standalone:!0,features:[Ot],decls:13,vars:5,consts:[["initTpl",""],["mat-dialog-title",""],["mat-dialog-content",""],[3,"initTemplate","loadItem"],["mat-dialog-actions","",3,"align"],["mat-button","",3,"mat-dialog-close"],["mat-raised-button","","color","accent",3,"click","disabled"],[3,"formChange","form"]],template:function(r,o){if(r&1){let s=Fi();se(0,"div")(1,"span",1),yt(2,"Datei hochladen"),ce()(),se(3,"div",2),bt(4,"bd-loader",3),ce(),se(5,"div",4)(6,"button",5),yt(7,"Abbrechen"),ce(),er(8),se(9,"button",6),At("click",function(){return ht(s),pt(o.upload())}),yt(10," Hochladen "),ce(),tr(),ce(),Ne(11,IUt,1,1,"ng-template",null,0,ws)}if(r&2){let s=_r(12);Z(4),J("initTemplate",s)("loadItem",o.upload$),Z(),J("align","end"),Z(),J("mat-dialog-close",null),Z(3),J("disabled",!o.isValid)}},dependencies:[a3,OT,md,RT,gs,Sl,Kie,o$e],encapsulation:2});let n=e;return n})();var a$e=(()=>{let e=class e{constructor(i,r){this._dialog=i,this._responsiveDialogService=r,this.created=new Kt}openNewDialog(){let i=this._responsiveDialogService.config();this._dialog.open(s$e,i).afterClosed().pipe(kr(1),Wn(r=>!!r)).subscribe(r=>{this.created.emit(r)})}};e.\u0275fac=function(r){return new(r||e)(oe(w0),oe(C0))},e.\u0275cmp=Ct({type:e,selectors:[["bd-user-downloads-new"]],outputs:{created:"created"},standalone:!0,features:[Ot],decls:2,vars:0,consts:[["mat-raised-button","","color","accent",3,"click"]],template:function(r,o){r&1&&(se(0,"button",0),At("click",function(){return o.openNewDialog()}),yt(1," Neue Datei hochladen "),ce())},dependencies:[gs,Sl],encapsulation:2});let n=e;return n})();function TUt(n,e){if(n&1&&bt(0,"bd-resources-list",8),n&2){let t=le(2);J("resources",t.files)("options",t.listOptions)}}function AUt(n,e){n&1&&bt(0,"bd-message-empty",9)}function DUt(n,e){if(n&1&&(se(0,"div",2),Ne(1,TUt,1,2,"bd-resources-list",8)(2,AUt,1,0,"bd-message-empty",9),ce()),n&2){let t=le();Z(),Hi((t.files==null?null:t.files.length)>0?1:-1),Z(),Hi((t.files==null?null:t.files.length)===0?2:-1)}}var l$e=(()=>{let e=class e{constructor(i,r){this._userFilesService=i,this._environmentService=r,this.loading$=new Yo(1),this.listOptions=wt(Ce({},C3),{detailLinkFnc:o=>["/user","files",o.id],showLabelsColumn:!0}),this.p21ImportUrl=this._environmentService.load("AYS_VIRTUAL_CLINIC_P21_IMPORT_APP")+"/new"}ngOnInit(){this._fetchFiles()}onFileCreated(i){this.files=[i,...this.files]}_fetchFiles(){this.loading$.next(Qs.LOADING),this._userFilesService.findAll(null,null).subscribe(i=>{this.files=i,this.loading$.next(Qs.SUCCESS)})}};e.\u0275fac=function(r){return new(r||e)(oe(RC),oe(dr))},e.\u0275cmp=Ct({type:e,selectors:[["ng-component"]],standalone:!0,features:[Ot],decls:13,vars:3,consts:[["successTpl",""],[3,"loadItem","successTemplate"],[1,"bd-container"],["fxLayout","row","fxLayoutAlign","end","fxLayoutGap","24px"],["fxFlex","221px"],["mat-raised-button","","color","accent","target","_blank",3,"href"],["fxFlex","200px"],[3,"created"],[3,"resources","options"],["message","Keine Dateien gefunden"]],template:function(r,o){if(r&1){let s=Fi();se(0,"bd-toolbar")(1,"span"),yt(2,"File-Center"),ce()(),bt(3,"bd-loader",1),se(4,"div",2)(5,"div",3)(6,"div",4)(7,"a",5),yt(8," \xA721 Datensatz hochladen "),ce()(),se(9,"div",6)(10,"bd-user-downloads-new",7),At("created",function(h){return ht(s),pt(o.onFileCreated(h))}),ce()()()(),Ne(11,DUt,3,2,"ng-template",null,0,ws)}if(r&2){let s=_r(12);Z(3),J("loadItem",o.loading$)("successTemplate",s),Z(4),J("href",o.p21ImportUrl,Ff)}},dependencies:[KT,md,Ys,tl,Gd,Ac,Cl,a$e,d9e,Zb,gs,o3],encapsulation:2});let n=e;return n})();var c$e=jh(Qae());var kUt=()=>["/user","files"];function MUt(n,e){if(n&1&&(se(0,"span",5),yt(1),Ym(2,"date"),ce()),n&2){let t=le();Z(),jn(i0(2,1,t.userFile.createdDate,"short"))}}function OUt(n,e){if(n&1&&(se(0,"span",5),yt(1),ce()),n&2){let t=e.$implicit,i=e.$index,r=e.$count;Z(),nH("",t,"",i===r-1?"":", ","")}}function RUt(n,e){if(n&1&&Ec(0,OUt,2,2,"span",5,Nu),n&2){let t=le(2);Ic(t.userFile.labels)}}function NUt(n,e){if(n&1&&(se(0,"div",3)(1,"div",4)(2,"span",5),yt(3,"Labels:"),ce()(),se(4,"div",6),Ne(5,RUt,2,0),ce()()),n&2){let t=le();Z(5),Hi(t.userFile.labels?5:-1)}}var u$e=(()=>{let e=class e{constructor(i,r,o,s){this._activatedRoute=i,this._fileService=r,this._permissionService=o,this._router=s,this.resourceInfoMenuConfig={showDeleteButton:!0,showEditButton:!1},this._activatedRoute.params.pipe(Wn(c=>!!c.fileId),lr(c=>this._fileService.findById(c.fileId))).subscribe(c=>{this.userFile=c})}delete(){this._permissionService.archive(Bn.FILE,this.userFile.id).pipe(kr(1)).subscribe(()=>{this._router.navigate(["/user","files"])})}downloadFile(){this._fileService.downloadFile(this.userFile.id).subscribe(i=>{c$e.saveAs(i,this.userFile.name)})}};e.\u0275fac=function(r){return new(r||e)(oe(Kh),oe(RC),oe(qd),oe(el))},e.\u0275cmp=Ct({type:e,selectors:[["bd-user-file-details"]],standalone:!0,features:[Ot],decls:21,vars:8,consts:[[1,"toolbar-spacer"],[3,"deleteResource","resource","config"],[1,"bd-container-inner"],["fxLayout","row"],["fxFlex","100px"],[1,"mat-body-1"],["fxFlex",""],["fxLayout","row","fxLayoutAlign","end","fxLayoutGap","24px"],["fxFlex","117px"],["mat-button","",3,"routerLink"],["fxFlex","138px"],["mat-raised-button","","color","accent",3,"click","disabled"]],template:function(r,o){r&1&&(se(0,"bd-toolbar")(1,"span"),yt(2),ce(),bt(3,"span",0),se(4,"bd-resources-info-menu",1),At("deleteResource",function(){return o.delete()}),ce()(),se(5,"div",2)(6,"div",3)(7,"div",4)(8,"span",5),yt(9,"Erstellt:"),ce()(),se(10,"div",6),Ne(11,MUt,3,4,"span",5),ce()(),Ne(12,NUt,6,1,"div",3),bt(13,"mat-divider"),se(14,"div",7)(15,"div",8)(16,"a",9),yt(17,"Zur \xDCbersicht"),ce()(),se(18,"div",10)(19,"button",11),At("click",function(){return o.downloadFile()}),yt(20," Herunterladen "),ce()()()()),r&2&&(Z(2),jn(o.userFile==null?null:o.userFile.name),Z(2),J("resource",o.userFile)("config",o.resourceInfoMenuConfig),Z(7),Hi(o.userFile?11:-1),Z(),Hi(o.userFile!=null&&o.userFile.labels?12:-1),Z(4),J("routerLink",Ll(7,kUt)),Z(3),J("disabled",!o.userFile))},dependencies:[KT,Zne,Ys,tl,Gd,Ac,Cl,$b,l3,gs,o3,Sl,Wh,dT],styles:[".toolbar-spacer[_ngcontent-%COMP%]{flex:1 1 auto}mat-divider[_ngcontent-%COMP%]{margin:24px 0}"]});let n=e;return n})();var PUt=[{path:"downloads",redirectTo:"files"},{path:"files",children:[{path:"",pathMatch:"full",component:l$e,canActivate:[S_],data:{pageTitle:ip.title("File-Center")}},{path:":fileId",component:u$e,canActivate:[S_],data:{pageTitle:ip.title("File-Center")}}]}],TVn=C_.forChild(PUt);var Xae=(()=>{let e=class e{constructor(i,r,o){this._scriptService=i,this._windowService=r,this._currentUserService=o,this._currentUser=null,this._window=this._windowService.get(),this._currentUserService.currentUser.subscribe(s=>{this._currentUser=s})}init(){this._scriptService.loadJsScript({id:"ze-snippet",async:!0,src:"https://static.zdassets.com/ekr/snippet.js?key=ae01a2ee-3f76-4271-ba66-9e6b7e7b51f0",defer:!0}).subscribe(()=>{this._window.zE("webWidget","hide")})}open(){this._window.zE("webWidget","show"),this._window.zE("webWidget","open"),this._currentUser&&this._currentUser.username.indexOf("@bindoc.de")===-1&&this._window.zE("webWidget","prefill",{name:{value:this._currentUser.name},email:{value:this._currentUser.username}}),this._window.zE("webWidget:on","close",()=>{this._window.zE("webWidget","hide")})}};e.\u0275fac=function(r){return new(r||e)(Ke(b3),Ke(MT),Ke($f))},e.\u0275prov=It({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var d$e=(()=>{let e=class e{constructor(i){this._zendeskService=i}open(){this._zendeskService.open()}};e.\u0275fac=function(r){return new(r||e)(oe(Xae))},e.\u0275cmp=Ct({type:e,selectors:[["bd-user-zendesk-button"]],standalone:!0,features:[Ot],decls:3,vars:1,consts:[["mat-icon-button","",3,"click","matTooltip"]],template:function(r,o){r&1&&(se(0,"button",0),At("click",function(){return o.open()}),se(1,"mat-icon"),yt(2,"help_outline"),ce()()),r&2&&J("matTooltip","Support Ticket erstellen")},dependencies:[gs,Jh,GT,HT,qs,zs],encapsulation:2});let n=e;return n})();var LTe=(()=>{let e=class e extends sd{constructor(i){super(),this._injector=i}handleError(i){super.handleError(i),this._injector.get(qne).trackException(i)}};e.\u0275fac=function(r){return new(r||e)(Ke(yo))},e.\u0275prov=It({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var BTe=(()=>{let e=class e extends g3{constructor(i,r,o,s){super(),this._windowRefService=i,this._scriptService=r,this._router=o,this._authenticationService=s,this.name="BdHubspotTrackingService",this._id="hs-script-loader",this.isAuthenticatedUser=!1,this._authenticationService.authentication$.subscribe(c=>{this.isAuthenticatedUser=c})}init(){this._scriptService.loadJsScript({id:this._id,async:!0,src:"//js.hs-scripts.com/5251653.js",defer:!0});let i=this._router.events.pipe(Wn(r=>this.isAuthenticatedUser),Wn(r=>this.isEnabled),Wn(r=>r instanceof yh)).subscribe(r=>{this.trackRoute(r)});this._subs.push(i),this.isEnabled=!0}destroy(){this._scriptService.removeJsScript(this._id),this.isEnabled=!1,this._unsubscribe()}addAuthenticatedUserContext(i){let r=this._windowRefService.get(),o=r._hsq=r._hsq||[];i&&o.push(["identify",{email:i.username}])}removeAuthenticatedUserContext(){let i=this._windowRefService.get();i._hsq=[]}trackException(i){}trackEvent(i){}trackRoute(i){let r=this._windowRefService.get(),o=r._hsq=r._hsq||[];o.push(["setPath",i.url]),o.push(["trackPageView"])}};e.\u0275fac=function(r){return new(r||e)(Ke(MT),Ke(b3),Ke(el),Ke(Wp))},e.\u0275prov=It({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function BC(n,e){return n||e}function rf(n,e){return n[e]}var tm=void 0,nf=null,eAe="",sle="function",i7="object",FC="prototype",XTe="__proto__",v2="undefined",ile="constructor",tAe="Symbol",LUt="_polyfill",lV="length",nle="name",Sh="call",ale="toString",Y_=BC(Object),iAe=rf(Y_,FC),_$e=BC(String),y2=rf(_$e,FC),BUt=BC(Math),v$e=BC(Array),lle=rf(v$e,FC),LC=rf(lle,"slice");function Hu(n,e){try{return{v:n.apply(this,e)}}catch(t){return{e:t}}}function zUt(n,e){var t=Hu(n);return t.e?e:t.v}var zTe;function cle(n){return function(e){return typeof e===n}}function y$e(n){var e="[object "+n+"]";return function(t){return!!(t&&ule(t)===e)}}function ule(n){return iAe[ale].call(n)}function Xs(n){return typeof n===v2||n===v2}function Qi(n){return n===nf||Xs(n)}function VUt(n){return n===nf||!nAe(n)}function nAe(n){return!!n||n!==tm}function UUt(n){return!zTe&&(zTe=["string","number","boolean",v2,"symbol","bigint"]),n!==i7&&zTe.indexOf(n)!==-1}var Dr=cle("string"),wr=cle(sle);function vu(n){return!n&&Qi(n)?!1:!!n&&typeof n===i7}var so=rf(v$e,"isArray"),b$e=y$e("Date"),L0=cle("number"),n7=cle("boolean");var b2=y$e("Error");function yx(n){return!!(n&&n.then&&wr(n.then))}function NA(n){return!(!n||zUt(function(){return!(n&&0+n)},!n))}var dle=rf(Y_,"getOwnPropertyDescriptor");function op(n,e){return!!n&&iAe.hasOwnProperty[Sh](n,e)}var B0=BC(rf(Y_,"hasOwn"),jUt);function jUt(n,e){return op(n,e)||!!dle(n,e)}function oo(n,e,t){if(n&&vu(n)){for(var i in n)if(B0(n,i)&&e[Sh](t||n,i,n[i])===-1)break}}var Jae={e:"enumerable",c:"configurable",v:"value",w:"writable",g:"get",s:"set"};function HUt(n){var e={};if(e[Jae.c]=!0,e[Jae.e]=!0,n.l){e.get=function(){return n.l.v};var t=dle(n.l,"v");t&&t.set&&(e.set=function(i){n.l.v=i})}return oo(n,function(i,r){e[Jae[i]]=Xs(r)?e[Jae[i]]:r}),e}var pg=rf(Y_,"defineProperty"),x$e=rf(Y_,"defineProperties");function qo(n,e,t){return pg(n,e,HUt(t))}function w$e(n,e,t,i,r){var o={};return oo(n,function(s,c){rle(o,s,e?c:s,r),rle(o,c,t?c:s,r)}),i?i(o):o}function rle(n,e,t,i){pg(n,e,{value:t,enumerable:!0,writable:!!i})}var vd=BC(_$e),GUt="[object Error]";function Yn(n,e){var t=eAe,i=iAe[ale][Sh](n);i===GUt&&(n={stack:vd(n.stack),message:vd(n.message),name:vd(n.name)});try{t=JSON.stringify(n,nf,e?typeof e=="number"?e:4:tm),t=t&&t.replace(/"(\w+)"\s*:\s{0,1}/g,"$1: ")||vd(n)}catch(r){t=" - "+Yn(r,e)}return i+": "+t}function Wd(n){throw new Error(n)}function sp(n){throw new TypeError(n)}var C$e=rf(Y_,"freeze");function YUt(n){return n}function qUt(n){return n[XTe]||nf}var uV=rf(Y_,"assign"),ap=rf(Y_,"keys");function of(n){return C$e&&oo(n,function(e,t){(so(t)||vu(t))&&of(t)}),fg(n)}var fg=BC(C$e,YUt);var JTe=BC(rf(Y_,"getPrototypeOf"),qUt);function S$e(n){return w$e(n,1,0,fg)}function $Ut(n){return w$e(n,0,0,fg)}function KUt(n){var e={};return oo(n,function(t,i){rle(e,t,i[1]),rle(e,i[0],i[1])}),fg(e)}function E$e(n){return KUt(n)}var I$e=$Ut({asyncIterator:0,hasInstance:1,isConcatSpreadable:2,iterator:3,match:4,matchAll:5,replace:6,search:7,species:8,split:9,toPrimitive:10,toStringTag:11,unscopables:12}),h$e="__tsUtils$gblCfg",VTe;function T$e(){var n;return typeof globalThis!==v2&&(n=globalThis),!n&&typeof self!==v2&&(n=self),!n&&typeof window!==v2&&(n=window),!n&&typeof global!==v2&&(n=global),n}function A$e(){if(!VTe){var n=Hu(T$e).v||{};VTe=n[h$e]=n[h$e]||{}}return VTe}var x2=hle;function hle(n,e,t){var i=e&&e[n];return function(r){var o=r&&r[n]||i;if(o||t){var s=arguments;return(o||t).apply(r,o?LC[Sh](s,1):s)}sp('"'+vd(n)+'" not defined for '+Yn(r))}}function WUt(n){return function(e){return e[n]}}var ZUt=rf(BUt,"max"),p$e=x2("slice",y2),mg=x2("substring",y2),z0=hle("substr",y2,QUt);function QUt(n,e,t){return Qi(n)&&sp("Invalid "+Yn(n)),t<0?eAe:(e=e||0,e<0&&(e=ZUt(e+n[lV],0)),Xs(t)?p$e(n,e):p$e(n,e,e+t))}function r7(n,e){return mg(n,0,e)}var f$e="_urid",UTe;function XUt(){if(!UTe){var n=A$e();UTe=n.gblSym=n.gblSym||{k:{},s:{}}}return UTe}var ele;function rAe(n){var e={description:vd(n),toString:function(){return tAe+"("+n+")"}};return e[LUt]=!0,e}function JUt(n){var e=XUt();if(!B0(e.k,n)){var t=rAe(n),i=ap(e.s).length;t[f$e]=function(){return i+"_"+t[ale]()},e.k[n]=t,e.s[t[f$e]()]=vd(n)}return e.k[n]}function e6t(n){!ele&&(ele={});var e,t=I$e[n];return t&&(e=ele[t]=ele[t]||rAe(tAe+"."+t)),e}var ju;function PA(){ju=A$e()}function D$e(n){var e={};return!ju&&PA(),e.b=ju.lzy,pg(e,"v",{configurable:!0,get:function(){var t=n();return ju.lzy||pg(e,"v",{value:t}),e.b=ju.lzy,t}}),e}function gg(n){return pg({toJSON:function(){return n}},"v",{value:n})}var k$e="window",t7;function dV(n,e){var t;return function(){return!ju&&PA(),(!t||ju.lzy)&&(t=gg(Hu(n,e).v)),t.v}}function yu(n){return!ju&&PA(),(!t7||n===!1||ju.lzy)&&(t7=gg(Hu(T$e).v||nf)),t7.v}function fl(n,e){var t=!t7||e===!1?yu(e):t7.v;return t&&t[n]?t[n]:n===k$e?bu():nf}function o7(){return!!nc()}var nc=dV(fl,["document"]);function FA(){return!!bu()}var bu=dV(fl,[k$e]);function oAe(){return!!Eh()}var Eh=dV(fl,["navigator"]);function sAe(){return!!ple()}var ple=dV(fl,["history"]),M$e=dV(function(){return!!Hu(function(){return process&&(process.versions||{}).node}).v}),fle=dV(function(){return!!Hu(function(){return self&&self instanceof WorkerGlobalScope}).v}),cV,jTe;function mle(){return cV=gg(Hu(fl,[tAe]).v),cV}function t6t(n){var e=(ju.lzy?0:cV)||mle();return e.v?e.v[n]:tm}function O$e(){return!!i6t()}function i6t(){return!ju&&PA(),((ju.lzy?0:cV)||mle()).v}function s7(n,e){var t=I$e[n];!ju&&PA();var i=(ju.lzy?0:cV)||mle();return i.v?i.v[t||n]:e?tm:e6t(n)}function hV(n,e){!ju&&PA();var t=(ju.lzy?0:cV)||mle();return t.v?t.v(n):e?nf:rAe(n)}function gle(n){return!ju&&PA(),jTe=(ju.lzy?0:jTe)||gg(Hu(t6t,["for"]).v),(jTe.v||JUt)(n)}function ole(n){return!!n&&wr(n.next)}function aAe(n){return!VUt(n)&&wr(n[s7(3)])}var tle;function _le(n,e,t){if(n&&(ole(n)||(!tle&&(tle=gg(s7(3))),n=n[tle.v]?n[tle.v]():null),ole(n))){var i=tm,r=tm;try{for(var o=0;!(r=n.next()).done&&e[Sh](t||n,r.value,o,n)!==-1;)o++}catch(s){i={e:s},n.throw&&(r=nf,n.throw(i))}finally{try{r&&!r.done&&n.return&&n.return(r)}finally{if(i)throw i.e}}}}function aV(n,e,t){return n.apply(e,t)}function zC(n,e){return!Xs(e)&&n&&(so(e)?aV(n.push,n,e):ole(e)||aAe(e)?_le(e,function(t){n.push(t)}):n.push(e)),n}function Rn(n,e,t){if(n)for(var i=n[lV]>>>0,r=0;r0?e[0]:i?tm:e)||setTimeout,s=(r>1?e[1]:tm)||clearTimeout,c=t[0];t[0]=function(){h.dn(),aV(c,tm,LC[Sh](arguments))};var h=_6t(n,function(g){if(g){if(g.refresh)return g.refresh(),g;aV(s,tm,[g])}return aV(o,tm,t)},function(g){aV(s,tm,[g])});return h.h}function xu(n,e){return z$e(!0,tm,LC[Sh](arguments))}function V$e(n,e){return z$e(!1,tm,LC[Sh](arguments))}var C2=S$e,fAe=E$e;var V0=C2({NONE:0,PENDING:3,INACTIVE:1,ACTIVE:2});var U0="toLowerCase",LA="blkVal",Ar="length",S2="rdOnly",E2="notify",fV="warnToConsole",VC="throwInternal",j0="setDf",H0="watch",Al="logger",q_="apply",Ss="push",$_="splice",yle="hdlr",UC="cancel",jC="initialize",xx="identifier",mV="removeNotificationListener",gV="addNotificationListener",im="isInitialized",mAe="instrumentationKey",ble="INACTIVE",I2="value",l7="getNotifyMgr",BA="getPlugin",Ih="name",_V="iKey",zA="time",bd="processNext",xle="getProcessTelContext",gAe="pollInternalLogs",VA="enabled",_Ae="stopPollingInternalLogs",nm="unload",c7="onComplete",vV="version",wle="loggingLevelConsole",wx="createNew",_g="teardown",yV="messageId",Cx="message",G0="isAsync",rm="diagLog",UA="_doTeardown",T2="update",vg="getNext",jA="setNextPlugin",Cle="protocol",u7="userAgent",Y0="split",Sle="nodeType",q0="replace",vAe="logInternalMessage",Sx="type",Ele="handler",A2="status",yAe="getResponseHeader",bAe="getAllResponseHeaders",d7="isChildEvt",HA="data",D2="getCtx",$0="setCtx",Ile="complete",xAe="itemsReceived",bV="urlString",wAe="sendPOST",Tle="headers",k2="timeout",CAe="setRequestHeader",h7="traceId",p7="spanId",f7="traceFlags";var SAe;function U$e(n,e){SAe||(SAe=vle("AggregationError",function(i,r){r[Ar]>1&&(i.errors=r[1])}));var t=n||"One or more errors occurred.";throw Rn(e,function(i,r){t+=` `.concat(r," > ").concat(Yn(i))}),new SAe(t,e||[])}var xV="function",m7="object",M2="undefined",lp="prototype";var wV=Object,EAe=wV[lp];var b4n=(yu()||{}).Symbol,x4n=(yu()||{}).Reflect;var j$e="hasOwnProperty",y6t=function(n){for(var e,t=1,i=arguments.length;t0)for(var r=0;r=0;t--)if(n[t]===e)return!0;return!1}function w6t(n,e,t,i){function r(h,g,x){var C=g[x];if(C[DAe]&&i){var A=h[Ple]||{};A[g7]!==!1&&(C=(A[g[CV]]||{})[x]||C)}return function(){return C.apply(h,arguments)}}var o=bx(null);Fle(t,function(h){o[h]=r(e,t,h)});for(var s=O2(n),c=[];s&&!PAe(s)&&!LAe(c,s);)Fle(s,function(h){!o[h]&&FAe(s,h,!_7)&&(o[h]=r(e,s,h))}),c.push(s),s=O2(s);return o}function C6t(n,e,t,i){var r=null;if(n&&op(t,CV)){var o=n[Ple]||bx(null);if(r=(o[t[CV]]||bx(null))[e],r||Lle("Missing ["+e+"] "+Nle),!r[kAe]&&o[g7]!==!1){for(var s=!op(n,e),c=O2(n),h=[];s&&c&&!PAe(c)&&!LAe(h,c);){var g=c[e];if(g){s=g===i;break}h.push(c),c=O2(c)}try{s&&(n[e]=r),r[kAe]=1}catch{o[g7]=!1}}}return r}function S6t(n,e,t){var i=e[n];return i===t&&(i=O2(e)[n]),typeof i!==Nle&&Lle("["+n+"] is not a "+Nle),i}function E6t(n,e,t,i,r){function o(h,g){var x=function(){var C=C6t(this,g,h,x)||S6t(g,h,x);return C.apply(this,arguments)};return x[DAe]=1,x}if(!Ole(n)){var s=t[Ple]=t[Ple]||bx(null);if(!Ole(s)){var c=s[e]=s[e]||bx(null);s[g7]!==!1&&(s[g7]=!!r),Ole(c)||Fle(t,function(h){FAe(t,h,!1)&&t[h]!==i[h]&&(c[h]=t[h],delete t[h],(!op(n,h)||n[h]&&!n[h][DAe])&&(n[h]=o(n,h)))})}}}function I6t(n,e){if(_7){for(var t=[],i=O2(e);i&&!PAe(i)&&!LAe(t,i);){if(i===n)return!0;t.push(i),i=O2(i)}return!1}return!0}function AAe(n,e){return op(n,HC)?n.name||e||H$e:((n||{})[Rle]||{}).name||e||H$e}function To(n,e,t,i){op(n,HC)||Lle("theClass is an invalid class definition.");var r=n[HC];I6t(r,e)||Lle("["+AAe(n)+"] not in hierarchy of ["+AAe(e)+"]");var o=null;op(r,CV)?o=r[CV]:(o=b6t+AAe(n,"_")+"$"+OAe.n,OAe.n++,r[CV]=o);var s=To[$$e],c=!!s[Mle];c&&i&&i[Mle]!==void 0&&(c=!!i[Mle]);var h=x6t(e),g=w6t(r,e,h,c);t(e,g);var x=!!_7&&!!s[MAe];x&&i&&(x=!!i[MAe]),E6t(r,o,e,h,x!==!1)}To[$$e]=OAe.o;var zle="Promise";var YAe="rejected";function af(n,e){return Q$e(n,function(t){return e?e({status:"fulfilled",rejected:!1,value:t}):t},function(t){return e?e({status:YAe,rejected:!0,reason:t}):t})}function Q$e(n,e,t,i){var r=n;try{if(yx(n))(e||t)&&(r=n.then(e,t));else try{e&&(r=e(n))}catch(o){if(t)r=t(o);else throw o}}finally{i&&T6t(r,i)}return r}function T6t(n,e){var t=n;return e&&(yx(n)?n.finally?t=n.finally(e):t=n.then(function(i){return e(),i},function(i){throw e(),i}):e()),t}var BAe,zAe,VAe,K$e=!1;function A6t(n,e,t,i){BAe=BAe||{toString:function(){return"[[PromiseState]]"}},zAe=zAe||{toString:function(){return"[[PromiseResult]]"}},VAe=VAe||{toString:function(){return"[[PromiseIsHandled]]"}};var r={};r[BAe]={get:e},r[zAe]={get:t},r[VAe]={get:i},x$e(n,r)}var X$e=["pending","resolving","resolved",YAe],W$e="dispatchEvent",Ble;function D6t(n){var e;return n&&n.createEvent&&(e=n.createEvent("Event")),!!e&&e.initEvent}function k6t(n,e,t,i){var r=nc();!Ble&&(Ble=gg(!!Hu(D6t,[r]).v));var o=Ble.v?r.createEvent("Event"):i?new Event(e):{};if(t&&t(o),Ble.v&&o.initEvent(e,!1,!0),o&&n[W$e])n[W$e](o);else{var s=n["on"+e];if(s)s(o);else{var c=fl("console");c&&(c.error||c.log)(e,Yn(o))}}}var J$e="unhandledRejection",M6t=J$e.toLowerCase(),v7=[],O6t=0,R6t=10;var UAe;function Z$e(n){return wr(n)?n.toString():Yn(n)}function N6t(n,e,t){var i=pV(arguments,3),r=0,o=!1,s,c=[],h=O6t++,g=v7.length>0?v7[v7.length-1]:void 0,x=!1,C=null,A;function k(ne,X){try{v7.push(h),x=!0,C&&C.cancel(),C=null;var q=n(function(fe,Se){c.push(function(){try{var pe=r===2?ne:X,Me=Xs(pe)?s:wr(pe)?pe(s):pe;yx(Me)?Me.then(fe,Se):pe?fe(Me):r===3?Se(Me):fe(Me)}catch(ie){Se(ie)}}),o&&z()},i);return q}finally{v7.pop()}}function O(ne){return k(void 0,ne)}function F(ne){var X=ne,q=ne;return wr(ne)&&(X=function(fe){return ne&&ne(),fe},q=function(fe){throw ne&&ne(),fe}),k(X,q)}function L(){return X$e[r]}function z(){if(c.length>0){var ne=c.slice();c=[],x=!0,C&&C.cancel(),C=null,e(ne)}}function j(ne,X){return function(q){if(r===X){if(ne===2&&yx(q)){r=1,q.then(j(2,1),j(3,1));return}r=ne,o=!0,s=q,z(),!x&&ne===3&&!C&&(C=xu(K,R6t))}}}function K(){if(!x)if(x=!0,M$e())process.emit(J$e,s,A);else{var ne=bu()||yu();!UAe&&(UAe=gg(Hu(fl,[zle+"RejectionEvent"]).v)),k6t(ne,M6t,function(X){return qo(X,"promise",{g:function(){return A}}),X.reason=s,X},!!UAe.v)}}A={then:k,catch:O,finally:F},pg(A,"state",{get:L}),K$e&&A6t(A,L,function(){return ule(s)},function(){return x}),O$e()&&(A[s7(11)]="IPromise");function ee(){return"IPromise"+(K$e?"["+h+(Xs(g)?"":":"+g)+"]":"")+" "+L()+(o?" - "+Z$e(s):"")}return A.toString=ee,function(){wr(t)||sp(zle+": executor is not a function - "+Z$e(t));var X=j(3,0);try{t.call(A,j(2,0),X)}catch(q){X(q)}}(),A}function P6t(n){return function(e){var t=pV(arguments,1);return n(function(i,r){try{var o=[],s=1;_le(e,function(c,h){c&&(s++,Q$e(c,function(g){o[h]=g,--s===0&&i(o)},r))}),s--,s===0&&i(o)}catch(c){r(c)}},t)}}function F6t(n){return gg(function(e){var t=pV(arguments,1);return n(function(i,r){var o=[],s=1;function c(h,g){s++,af(h,function(x){x.rejected?o[g]={status:YAe,reason:x.reason}:o[g]={status:"fulfilled",value:x.value},--s===0&&i(o)})}try{so(e)?Rn(e,c):aAe(e)?_le(e,c):sp("Input is not an iterable"),s--,s===0&&i(o)}catch(h){r(h)}},t)})}function L6t(n){Rn(n,function(e){try{e()}catch{}})}function B6t(n){var e=L0(n)?n:0;return function(t){xu(function(){L6t(t)},e)}}function SV(n,e){return N6t(SV,B6t(e),n,e)}var jAe;function z6t(n,e){!jAe&&(jAe=gg(Hu(fl,[zle]).v||null));var t=jAe.v;if(!t)return SV(n);wr(n)||sp(zle+": executor is not a function - "+Yn(n));var i=0;function r(){return X$e[i]}var o=new t(function(s,c){function h(x){i=2,s(x)}function g(x){i=3,c(x)}n(h,g)});return pg(o,"state",{get:r}),o}var HAe,GAe;function om(n,e){return!HAe&&(HAe=gg(z6t)),HAe.v.call(this,n,e)}var eKe=P6t(om);function tKe(n,e){return!GAe&&(GAe=F6t(om)),GAe.v(n,e)}var $4n=s7(11);var yg=void 0,ss="",GA="channels",Vc="core",Vle="createPerfMgr",y7="disabled",GC="extensionConfig",R2="extensions",sm="processTelemetry",N2="priority",EV="eventsSent",YA="eventsDiscarded",IV="eventsSendRequest",Ex="perfEvent",Ule="offlineEventsStored",jle="offlineBatchSent",Hle="offlineBatchDrop",TV="getPerfMgr",Gle="domain",Yle="path",iKe="Not dynamic - ";var V6t="getPrototypeOf",U6t=/-([a-z])/g,j6t=/([^\w\d_$])/g,H6t=/^(\d+[\w\d_$])/,rKe=Object[V6t];function K_(n){return!Qi(n)}function P2(n){var e=n;return e&&Dr(e)&&(e=e[q0](U6t,function(t,i){return i.toUpperCase()}),e=e[q0](j6t,"_"),e=e[q0](H6t,function(t,i){return"_"+i})),e}function xd(n,e){return n&&e?zc(n,e)!==-1:!1}function W_(n){return n&&n.toISOString()||""}function Ds(n){return b2(n)?n[Ih]:ss}function Wa(n,e,t,i,r){var o=t;return n&&(o=n[e],o!==t&&(!r||r(o))&&(!i||i(t))&&(o=t,n[e]=o)),o}function wd(n,e,t){var i;return n?(i=n[e],!i&&Qi(i)&&(i=Xs(t)?{}:t,n[e]=i)):i=Xs(t)?{}:t,i}function oKe(n,e){var t=null,i=null;return wr(n)?t=n:i=n,function(){var r=arguments;if(t&&(i=t()),i)return i[e][q_](i,r)}}function qAe(n,e,t){if(n&&e&&vu(n)&&vu(e)){var i=function(o){if(Dr(o)){var s=e[o];wr(s)?(!t||t(o,!0,e,n))&&(n[o]=oKe(e,o)):(!t||t(o,!1,e,n))&&(B0(n,o)&&delete n[o],qo(n,o,{g:function(){return e[o]},s:function(c){e[o]=c}}))}};for(var r in e)i(r)}return n}function F2(n,e,t,i,r){n&&e&&t&&(r!==!1||Xs(n[e]))&&(n[e]=oKe(t,i))}function qA(n,e,t,i){return n&&e&&vu(n)&&so(t)&&Rn(t,function(r){Dr(r)&&F2(n,r,e,r,i)}),n}function $Ae(n){return function(){function e(){var t=this;n&&oo(n,function(i,r){t[i]=r})}return e}()}function $le(n){return n&&uV&&(n=wV(uV({},n))),n}function Kle(n,e,t,i,r,o){var s=arguments,c=s[0]||{},h=s[Ar],g=!1,x=1;for(h>0&&n7(c)&&(g=c,c=s[x]||{},x++),vu(c)||(c={});x>>=0),S7=pKe+n&KA,E7=fKe-n&KA,mKe=!0}function njt(){try{var n=yd()&2147483647;ijt((Math.random()*hKe^n)+n)}catch{}}function sDe(n){return n>0?Math.floor(z2()/KA*(n+1))>>>0:0}function z2(n){var e=0,t=tDe()||iDe();return t&&t.getRandomValues&&(e=t.getRandomValues(new Uint32Array(1))[0]&KA),e===0&&kV()&&(mKe||njt(),e=gKe()&KA),e===0&&(e=Math.floor(hKe*Math.random()|0)),n||(e>>>=0),e}function gKe(n){E7=36969*(E7&65535)+(E7>>16)&KA,S7=18e3*(S7&65535)+(S7>>16)&KA;var e=(E7<<16)+(S7&65535)>>>0&KA|0;return n||(e>>>=0),e}function V2(n){n===void 0&&(n=22);for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=z2()>>>0,i=0,r=ss;r[Ar]>>=6,i===5&&(t=(z2()<<2&4294967295|t&3)>>>0,i=0);return r}var _Ke="3.3.0",rjt="."+V2(6),ojt=0;function vKe(n){return n[Sle]===1||n[Sle]===9||!+n[Sle]}function sjt(n,e){var t=e[n.id];if(!t){t={};try{vKe(e)&&qo(e,n.id,{e:!1,v:t})}catch{}}return t}function tu(n,e){return e===void 0&&(e=!1),P2(n+ojt+++(e?"."+_Ke:ss)+rjt)}function Zle(n){var e={id:tu("_aiData-"+(n||ss)+"."+_Ke),accept:function(t){return vKe(t)},get:function(t,i,r,o){var s=t[e.id];return s?s[P2(i)]:(o&&(s=sjt(e,t),s[P2(i)]=r),r)},kill:function(t,i){if(t&&t[i])try{delete t[i]}catch{}}};return e}function Qle(n){return n&&vu(n)&&(n.isVal||n.fb||B0(n,"v")||B0(n,"mrg")||B0(n,"ref")||n.set)}function yKe(n,e,t){var i,r=t.dfVal||nAe;if(e&&t.fb){var o=t.fb;so(o)||(o=[o]);for(var s=0;s0&&U$e("Watcher error(s): ",F)}}function A(O){if(O&&O.h[Ar]>0){c||(c=[]),h||(h=xu(function(){h=null,C()},0));for(var F=0;F0?af(qC(n[0],e),function(){ice(pV(n,1),e,t)}):t(),i}var SKe=500,cDe="Microsoft_ApplicationInsights_BypassAjaxInstrumentation";function fjt(n,e,t){return!n&&Qi(n)?e:n7(n)?n:vd(n)[U0]()==="true"}function bg(n){return{mrg:!0,v:n}}function nce(n,e){return{set:n,v:e}}function WA(n,e,t){return{fb:t,isVal:n,v:e}}function Uc(n,e){return{fb:e,set:fjt,v:!!n}}function uDe(n){return{isVal:Dr,v:vd(n||ss)}}var dDe=[EV,YA,IV,Ex],oce=null,rce;function mjt(n,e){return function(){var t=arguments,i=hDe(e);if(i){var r=i.listener;r&&r[n]&&r[n][q_](r,t)}}}function gjt(){var n=fl("Microsoft");return n&&(oce=n.ApplicationInsights),oce}function hDe(n){var e=oce;return!e&&n.disableDbgExt!==!0&&(e=oce||gjt()),e?e.ChromeDbgExt:null}function EKe(n){if(!rce){rce={};for(var e=0;e=O&&(g[ee](K[Cx]),i[ne]=!0)}else r>=O&&g[ee](K[Cx]);x(O,K)}},g.debugToConsole=function(O){pDe("debug",O),k("warning",O)},g[fV]=function(O){pDe("warn",O),k("warning",O)},g.errorToConsole=function(O){pDe("error",O),k("error",O)},g.resetInternalMessageCount=function(){t=0,i={}},g[vAe]=x,g[nm]=function(O){h&&h.rm(),h=null};function x(O,F){if(!A()){var L=!0,z=yjt+F[yV];if(i[z]?L=!1:i[z]=!0,L&&(O<=o&&(g.queue[Ss](F),t++,k(O===1?"error":"warn",F)),t===s)){var j="Internal events throttle limit per PageView reached for this app.",K=new $C(23,j,!1);g.queue[Ss](K),O===1?g.errorToConsole(j):g[fV](j)}}}function C(O){return ia(qu(O,bjt,g).cfg,function(F){var L=F.cfg;r=L[wle],o=L.loggingLevelTelemetry,s=L.maxMessageLimit,c=L.enableDebug})}function A(){return t>=s}function k(O,F){var L=hDe(e||{});L&&L[rm]&&L[rm](O,F)}})}return n.__ieDyn=1,n}();function fDe(n){return n||new RV}function yn(n,e,t,i,r,o){o===void 0&&(o=!1),fDe(n)[VC](e,t,i,r,o)}function xg(n,e){fDe(n)[fV](e)}function mDe(n,e,t){fDe(n)[vAe](e,t)}var gDe,U2,AKe="toGMTString",DKe="toUTCString",xDe="cookie",_De="expires",kKe="isCookieUseDisabled",yDe="disableCookiesUsage",ZA="_ckMgr",sce=null,vDe=null,MKe=null,Ax,OKe={},lce={},wjt=(gDe={cookieCfg:bg((U2={},U2[Gle]={fb:"cookieDomain",dfVal:K_},U2.path={fb:"cookiePath",dfVal:K_},U2.enabled=yg,U2.ignoreCookies=yg,U2.blockedCookies=yg,U2)),cookieDomain:yg,cookiePath:yg},gDe[yDe]=yg,gDe);function wDe(){!Ax&&(Ax=D$e(function(){return nc()}))}function Cjt(n,e){var t=j2[ZA]||lce[ZA];return t||(t=j2[ZA]=j2(n,e),lce[ZA]=t),t}function ace(n){return n?n.isEnabled():!0}function LKe(n,e){return e&&n&&so(n.ignoreCookies)?Il(n.ignoreCookies,e)!==-1:!1}function Sjt(n,e){return e&&n&&so(n.blockedCookies)&&Il(n.blockedCookies,e)!==-1?!0:LKe(n,e)}function RKe(n,e){var t=e[VA];if(Qi(t)){var i=void 0;Xs(n[kKe])||(i=!n[kKe]),Xs(n[yDe])||(i=!n[yDe]),t=i}return t}function H2(n,e){var t;if(n)t=n.getCookieMgr();else if(e){var i=e.cookieCfg;i&&i[ZA]?t=i[ZA]:t=j2(e)}return t||(t=Cjt(e,(n||{})[Al])),t}function j2(n,e){var t,i,r,o,s,c,h,g,x;n=qu(n||lce,null,e).cfg,s=ia(n,function(A){A[j0](A.cfg,wjt),i=A.ref(A.cfg,"cookieCfg"),r=i[Yle]||"/",o=i[Gle],c=RKe(n,i)!==!1,h=i.getCookie||Ejt,g=i.setCookie||FKe,x=i.delCookie||FKe},e);var C=(t={isEnabled:function(){var A=RKe(n,i)!==!1&&c&&bDe(e),k=lce[ZA];return A&&k&&C!==k&&(A=ace(k)),A},setEnabled:function(A){c=A!==!1,i[VA]=A},set:function(A,k,O,F,L){var z=!1;if(ace(C)&&!Sjt(i,A)){var j={},K=Tl(k||ss),ee=zc(K,";");if(ee!==-1&&(K=Tl(r7(k,ee)),j=BKe(mg(k,ee+1))),Wa(j,Gle,F||o,NA,Xs),!Qi(O)){var ne=kV();if(Xs(j[_De])){var X=yd(),q=X+O*1e3;if(q>0){var fe=new Date;fe.setTime(q),Wa(j,_De,NKe(fe,ne?AKe:DKe)||NKe(fe,ne?AKe:DKe)||ss,NA)}}ne||Wa(j,"max-age",ss+O,null,Xs)}var Se=Cd();Se&&Se[Cle]==="https:"&&(Wa(j,"secure",null,null,Xs),vDe===null&&(vDe=!zKe((Eh()||{})[u7])),vDe&&Wa(j,"SameSite","None",null,Xs)),Wa(j,Yle,L||r,null,Xs),g(A,PKe(K,j)),z=!0}return z},get:function(A){var k=ss;return ace(C)&&!LKe(i,A)&&(k=h(A)),k},del:function(A,k){var O=!1;return ace(C)&&(O=C.purge(A,k)),O},purge:function(A,k){var O,F=!1;if(bDe(e)){var L=(O={},O[Yle]=k||"/",O[_De]="Thu, 01 Jan 1970 00:00:01 GMT",O);kV()||(L["max-age"]="0"),x(A,PKe(ss,L)),F=!0}return F}},t[nm]=function(A){s&&s.rm(),s=null},t);return C[ZA]=C,C}function bDe(n){if(sce===null){sce=!1,!Ax&&wDe();try{var e=Ax.v||{};sce=e[xDe]!==void 0}catch(t){yn(n,2,68,"Cannot access document.cookie - "+Ds(t),{exception:Yn(t)})}}return sce}function BKe(n){var e={};if(n&&n[Ar]){var t=Tl(n)[Y0](";");Rn(t,function(i){if(i=Tl(i||ss),i){var r=zc(i,"=");r===-1?e[i]=null:e[Tl(r7(i,r))]=Tl(mg(i,r+1))}})}return e}function NKe(n,e){return wr(n[e])?n[e]():null}function PKe(n,e){var t=n||ss;return oo(e,function(i,r){t+="; "+i+(Qi(r)?ss:"="+r)}),t}function Ejt(n){var e=ss;if(!Ax&&wDe(),Ax.v){var t=Ax.v[xDe]||ss;MKe!==t&&(OKe=BKe(t),MKe=t),e=Tl(OKe[n]||ss)}return e}function FKe(n,e){!Ax&&wDe(),Ax.v&&(Ax.v[xDe]=n+"="+e)}function zKe(n){return Dr(n)?!!(xd(n,"CPU iPhone OS 12")||xd(n,"iPad; CPU OS 12")||xd(n,"Macintosh; Intel Mac OS X 10_14")&&xd(n,"Version/")&&xd(n,"Safari")||xd(n,"Macintosh; Intel Mac OS X 10_14")&&a7(n,"AppleWebKit/605.1.15 (KHTML, like Gecko)")||xd(n,"Chrome/5")||xd(n,"Chrome/6")||xd(n,"UnrealEngine")&&!xd(n,"Chrome")||xd(n,"UCBrowser/12")||xd(n,"UCBrowser/11")):!1}var Ijt={perfEvtsSendAll:!1};function Tjt(n){n.h=null;var e=n.cb;n.cb=[],Rn(e,function(t){Hu(t.fn,[t.arg])})}function QA(n,e,t,i){Rn(n,function(r){r&&r[e]&&(t?(t.cb[Ss]({fn:i,arg:r}),t.h=t.h||xu(Tjt,0,t)):Hu(i,[r]))})}var VKe=function(){function n(e){this.listeners=[];var t,i,r=[],o={h:null,cb:[]},s=qu(e,Ijt);i=s[H0](function(c){t=!!c.cfg.perfEvtsSendAll}),To(n,this,function(c){qo(c,"listeners",{g:function(){return r}}),c[gV]=function(h){r[Ss](h)},c[mV]=function(h){for(var g=Il(r,h);g>-1;)r[$_](g,1),g=Il(r,h)},c[EV]=function(h){QA(r,EV,o,function(g){g[EV](h)})},c[YA]=function(h,g){QA(r,YA,o,function(x){x[YA](h,g)})},c[IV]=function(h,g){QA(r,IV,g?o:null,function(x){x[IV](h,g)})},c[Ex]=function(h){h&&(t||!h[d7]())&&QA(r,Ex,null,function(g){h[G0]?xu(function(){return g[Ex](h)},0):g[Ex](h)})},c[Ule]=function(h){h&&h[Ar]&&QA(r,Ule,o,function(g){g[Ule](h)})},c[jle]=function(h){h&&h[HA]&&QA(r,jle,o,function(g){g[jle](h)})},c[Hle]=function(h,g){if(h>0){var x=g||0;QA(r,Hle,o,function(C){C[Hle](h,x)})}},c[nm]=function(h){var g=function(){i&&i.rm(),i=null,r=[],o.h&&o.h[UC](),o.h=null,o.cb=[]},x;if(QA(r,"unload",null,function(C){var A=C[nm](h);A&&(x||(x=[]),x[Ss](A))}),x)return om(function(C){return af(eKe(x),function(){g(),C()})});g()}})}return n.__ieDyn=1,n}();var NV="ctx",SDe="ParentContextKey",M7="ChildrenContextKey",Ajt=null,O7=function(){function n(e,t,i){var r=this;if(r.start=yd(),r[Ih]=e,r[G0]=i,r[d7]=function(){return!1},wr(t)){var o;qo(r,"payload",{g:function(){return!o&&wr(t)&&(o=t(),t=null),o}})}r[D2]=function(s){return s?s===n[SDe]||s===n[M7]?r[s]:(r[NV]||{})[s]:null},r[$0]=function(s,c){if(s)if(s===n[SDe])r[s]||(r[d7]=function(){return!0}),r[s]=c;else if(s===n[M7])r[s]=c;else{var h=r[NV]=r[NV]||{};h[s]=c}},r[Ile]=function(){var s=0,c=r[D2](n[M7]);if(so(c))for(var h=0;h>4&15]+n[t>>8&15]+n[t>>12&15]+n[t>>16&15]+n[t>>20&15]+n[t>>24&15]+n[t>>28&15];var r=n[8+(z2()&3)|0];return z0(e,0,8)+z0(e,9,4)+"4"+z0(e,13,3)+r+z0(e,16,3)+z0(e,19,12)}var TDe="00",Djt="ff",jKe="00000000000000000000000000000000",HKe="0000000000000000";function R7(n,e,t){return n&&n[Ar]===e&&n!==t?!!n.match(/^[\da-f]*$/i):!1}function UKe(n,e,t){return R7(n,e)?n:t}function kjt(n){(isNaN(n)||n<0||n>255)&&(n=1);for(var e=n.toString(16);e[Ar]<2;)e="0"+e;return e}function N7(n,e,t,i){var r;return r={},r[vV]=R7(i,2,Djt)?i:TDe,r[h7]=G2(n)?n:cf(),r[p7]=Y2(e)?e:r7(cf(),16),r.traceFlags=t>=0&&t<=255?t:1,r}function G2(n){return R7(n,32,jKe)}function Y2(n){return R7(n,16,HKe)}function P7(n){if(n){var e=kjt(n[f7]);R7(e,2)||(e="01");var t=n[vV]||TDe;return t!=="00"&&t!=="ff"&&(t=TDe),"".concat(t.toLowerCase(),"-").concat(UKe(n.traceId,32,jKe).toLowerCase(),"-").concat(UKe(n.spanId,16,HKe).toLowerCase(),"-").concat(e.toLowerCase())}return""}var Mjt=Zle("plugin");function KC(n){return Mjt.get(n,"state",{},!0)}function ADe(n,e){for(var t=[],i=null,r=n[vg](),o;r;){var s=r[BA]();if(s){i&&i[jA]&&s[sm]&&i[jA](s),o=KC(s);var c=!!o[im];s[im]&&(c=s[im]()),c||t[Ss](s),i=s,r=r[vg]()}}Rn(t,function(h){var g=n[Vc]();h[jC](n.getCfg(),g,e,n[vg]()),o=KC(h),!h[Vc]&&!o[Vc]&&(o[Vc]=g),o[im]=!0,delete o[_g]})}function cce(n){return n.sort(function(e,t){var i=0;if(t){var r=t[sm];e[sm]?i=r?e[N2]-t[N2]:1:r&&(i=-1)}else i=e?1:-1;return i})}function GKe(n){var e={};return{getName:function(){return e[Ih]},setName:function(t){n&&n.setName(t),e[Ih]=t},getTraceId:function(){return e[h7]},setTraceId:function(t){n&&n.setTraceId(t),G2(t)&&(e[h7]=t)},getSpanId:function(){return e[p7]},setSpanId:function(t){n&&n.setSpanId(t),Y2(t)&&(e[p7]=t)},getTraceFlags:function(){return e[f7]},setTraceFlags:function(t){n&&n.setTraceFlags(t),e[f7]=t}}}var Ojt="TelemetryPluginChain",YKe="_hasRun",qKe="_getTelCtx",$Ke=0;function Rjt(n,e,t){for(;n;){if(n[BA]()===t)return n;n=n[vg]()}return JA([t],e.config||{},e)}function DDe(n,e,t,i){var r=null,o=[];e||(e=qu({},null,t[Al])),i!==null&&(r=i?Rjt(n,t,i):n);var s={_next:h,ctx:{core:function(){return t},diagLog:function(){return lf(t,e.cfg)},getCfg:function(){return e.cfg},getExtCfg:x,getConfig:C,hasNext:function(){return!!r},getNext:function(){return r},setNext:function(k){r=k},iterate:A,onComplete:c}};function c(k,O){for(var F=[],L=2;L0&&(Rn(O,function(F){try{F.func.call(F.self,F.args)}catch(L){yn(t[Al],2,73,"Unexpected Exception during onComplete - "+Yn(L))}}),o=[])}return k}function g(k,O){var F=null,L=e.cfg;if(L&&k){var z=L[GC];!z&&O&&(z={}),L[GC]=z,z=e.ref(L,GC),z&&(F=z[k],!F&&O&&(F={}),z[k]=F,F=e.ref(z,k))}return F}function x(k,O){var F=g(k,!0);return O&&oo(O,function(L,z){if(Qi(F[L])){var j=e.cfg[L];(j||!Qi(j))&&(F[L]=j)}I7(e,F,L,z)}),e[j0](F,O)}function C(k,O,F){F===void 0&&(F=!1);var L,z=g(k,!1),j=e.cfg;return z&&(z[O]||!Qi(z[O]))?L=z[O]:(j[O]||!Qi(j[O]))&&(L=j[O]),L||!Qi(L)?L:F}function A(k){for(var O;O=s._next();){var F=O[BA]();F&&k(F)}}return s}function $u(n,e,t,i){var r=qu(e),o=DDe(n,r,t,i),s=o.ctx;function c(g){var x=o._next();return x&&x[sm](g,s),!x}function h(g,x){return g===void 0&&(g=null),so(g)&&(g=JA(g,r.cfg,t,x)),$u(g||s[vg](),r.cfg,t,x)}return s[bd]=c,s[wx]=h,s}function PV(n,e,t){var i=qu(e.config),r=DDe(n,i,e,t),o=r.ctx;function s(h){var g=r._next();return g&&g[nm](o,h),!g}function c(h,g){return h===void 0&&(h=null),so(h)&&(h=JA(h,i.cfg,e,g)),PV(h||o[vg](),e,g)}return o[bd]=s,o[wx]=c,o}function F7(n,e,t){var i=qu(e.config),r=DDe(n,i,e,t),o=r.ctx;function s(h){return o.iterate(function(g){wr(g[T2])&&g[T2](o,h)})}function c(h,g){return h===void 0&&(h=null),so(h)&&(h=JA(h,i.cfg,e,g)),F7(h||o[vg](),e,g)}return o[bd]=s,o[wx]=c,o}function JA(n,e,t,i){var r=null,o=!i;if(so(n)&&n[Ar]>0){var s=null;Rn(n,function(c){if(!o&&i===c&&(o=!0),o&&c&&wr(c[sm])){var h=Njt(c,e,t);r||(r=h),s&&s._setNext(h),s=h}})}return i&&!r?JA([i],e,t):r}function Njt(n,e,t){var i=null,r=wr(n[sm]),o=wr(n[jA]),s;n?s=n[xx]+"-"+n[N2]+"-"+$Ke++:s="Unknown-0-"+$Ke++;var c={getPlugin:function(){return n},getNext:function(){return i},processTelemetry:x,unload:C,update:A,_id:s,_setNext:function(k){i=k}};function h(){var k;return n&&wr(n[qKe])&&(k=n[qKe]()),k||(k=$u(c,e,t)),k}function g(k,O,F,L,z){var j=!1,K=n?n[xx]:Ojt,ee=k[YKe];return ee||(ee=k[YKe]={}),k.setNext(i),n&&XA(k[Vc](),function(){return K+":"+F},function(){ee[s]=!0;try{var ne=i?i._id:ss;ne&&(ee[ne]=!1),j=O(k)}catch(q){var X=i?ee[i._id]:!0;X&&(j=!0),(!i||!X)&&yn(k[rm](),1,73,"Plugin ["+K+"] failed during "+F+" - "+Yn(q)+", run flags: "+Yn(ee))}},L,z),j}function x(k,O){O=O||h();function F(L){if(!n||!r)return!1;var z=KC(n);return z[_g]||z[y7]?!1:(o&&n[jA](i),n[sm](k,L),!0)}g(O,F,"processTelemetry",function(){return{item:k}},!k.sync)||O[bd](k)}function C(k,O){function F(){var L=!1;if(n){var z=KC(n),j=n[Vc]||z[Vc];n&&(!j||j===k.core())&&!z[_g]&&(z[Vc]=null,z[_g]=!0,z[im]=!1,n[_g]&&n[_g](k,O)===!0&&(L=!0))}return L}g(k,F,"unload",function(){},O[G0])||k[bd](O)}function A(k,O){function F(){var L=!1;if(n){var z=KC(n),j=n[Vc]||z[Vc];n&&(!j||j===k.core())&&!z[_g]&&n[T2]&&n[T2](k,O)===!0&&(L=!0)}return L}g(k,F,"update",function(){},!1)||k[bd](O)}return fg(c)}function uce(){var n=[];function e(i){i&&n[Ss](i)}function t(i,r){Rn(n,function(o){try{o(i,r)}catch(s){yn(i[rm](),2,73,"Unexpected error calling unload handler - "+Yn(s))}}),n=[]}return{add:e,run:t}}var dce,hce;function pce(){var n=[];function e(i){var r=n;n=[],Rn(r,function(o){try{(o.rm||o.remove).call(o)}catch(s){yn(i,2,73,"Unloading:"+Yn(s))}}),dce&&r[Ar]>dce&&(hce?hce("doUnload",r):yn(null,1,48,"Max unload hooks exceeded. An excessive number of unload hooks has been detected."))}function t(i){i&&(zC(n,i),dce&&n[Ar]>dce&&(hce?hce("Add",n):yn(null,1,48,"Max unload hooks exceeded. An excessive number of unload hooks has been detected.")))}return{run:e,add:t}}var kDe,eD="getPlugin",Pjt=(kDe={},kDe[GC]={isVal:K_,v:{}},kDe),uf=function(){function n(){var e=this,t,i,r,o,s;g(),To(n,e,function(x){x[jC]=function(C,A,k,O){h(C,A,O),t=!0},x[_g]=function(C,A){var k,O=x[Vc];if(!O||C&&O!==C[Vc]())return;var F,L=!1,z=C||PV(null,O,r&&r[eD]?r[eD]():r),j=A||(k={reason:0},k[G0]=!1,k);function K(){L||(L=!0,o.run(z,A),s.run(z[rm]()),F===!0&&z[bd](j),g())}return!x[UA]||x[UA](z,j,K)!==!0?K():F=!0,F},x[T2]=function(C,A){var k=x[Vc];if(!k||C&&k!==C[Vc]())return;var O,F=!1,L=C||F7(null,k,r&&r[eD]?r[eD]():r),z=A||{reason:0};function j(){F||(F=!0,h(L.getCfg(),L.core(),L[vg]()))}return!x._doUpdate||x._doUpdate(L,z,j)!==!0?j():O=!0,O},F2(x,"_addUnloadCb",function(){return o},"add"),F2(x,"_addHook",function(){return s},"add"),qo(x,"_unloadHooks",{g:function(){return s}})}),e[rm]=function(x){return c(x)[rm]()},e[im]=function(){return t},e.setInitialized=function(x){t=x},e[jA]=function(x){r=x},e[bd]=function(x,C){C?C[bd](x):r&&wr(r[sm])&&r[sm](x,null)},e._getTelCtx=c;function c(x){x===void 0&&(x=null);var C=x;if(!C){var A=i||$u(null,{},e[Vc]);r&&r[eD]?C=A[wx](null,r[eD]):C=A[wx](null,r)}return C}function h(x,C,A){qu(x,Pjt,lf(C)),!A&&C&&(A=C[xle]()[vg]());var k=r;r&&r[eD]&&(k=r[eD]()),e[Vc]=C,i=$u(A,x,C,k)}function g(){t=!1,e[Vc]=null,i=null,r=null,s=pce(),o=uce()}}return n.__ieDyn=1,n}();function Fjt(n,e,t){var i={id:e,fn:t};zC(n,i);var r={remove:function(){Rn(n,function(o,s){if(o.id===i.id)return n[$_](s,1),-1})}};return r}function Ljt(n,e,t){for(var i=!1,r=n[Ar],o=0;o"}})}var RDe=function(){function n(){var e,t,i,r,o,s,c,h,g,x,C,A,k,O,F,L,z,j,K,ee,ne,X,q,fe,Se,pe,Me,ie,Re,Ue,Ee,We,Ie;To(n,this,function(Be){ze(),Be._getDbgPlgTargets=function(){return[q,r]},Be[im]=function(){return t},Be.activeStatus=function(){return pe},Be._setPendingStatus=function(){pe=3},Be[jC]=function(xe,Qe,Xt,Ut){k&&Wd(WKe),Be[im]()&&Wd("Core cannot be initialized more than once"),e=qu(xe,MDe,Xt||Be[Al],!1),xe=e.cfg,nt(e[H0](function(de){var we=de.cfg,Je=pe===3;if(!Je){ie=we.initInMemoMaxSize||Vjt;var rt=we[mAe],vt=we.endpointUrl;if(Qi(rt)){ne=null,pe=V0[ble];var ti="Please provide instrumentation key";t?(yn(i,1,100,ti),$e()):Wd(ti);return}var Tt=[];if(yx(rt)?(Tt[Ss](rt),ne=null):ne=rt,yx(vt)?(Tt[Ss](vt),Me=null):Me=vt,Tt[Ar]){Re=!1,pe=3;var di=K_(we.initTimeOut)?we.initTimeOut:Ujt,li=tKe(Tt);Ue=xu(function(){Ue=null,Re||Ve()},di),af(li,function(_i){try{if(Re)return;if(!_i.rejected){var yr=_i[I2];if(yr&&yr[Ar]){var mr=yr[0];if(ne=mr&&mr[I2],yr[Ar]>1){var Qr=yr[1];Me=Qr&&Qr[I2]}}ne&&(xe[mAe]=ne,xe.endpointUrl=Me)}Ve()}catch{Re||Ve()}})}else Ve();var bi=de.ref(de.cfg,GC);oo(bi,function(_i){de.ref(bi,_i)})}})),o=Ut,K=qjt(e,j,o&&Be[l7](),K),ir(),Be[Al]=Xt;var qe=xe[R2];if(x=[],x[Ss].apply(x,Ale(Ale([],Qe,!1),qe,!1)),C=xe[GA],Pt(null),(!A||A[Ar]===0)&&Wd("No "+GA+" available"),C&&C[Ar]>1){var ge=Be[BA]("TeeChannelController");(!ge||!ge.plugin)&&yn(i,1,28,"TeeChannel required")}Yjt(xe,X,i),X=null,t=!0,pe===V0.ACTIVE&&$e()},Be.getChannels=function(){var xe=[];return A&&Rn(A,function(Qe){xe[Ss](Qe)}),fg(xe)},Be.track=function(xe){XA(Be[TV](),function(){return"AppInsightsCore:track"},function(){xe===null&&(Rt(xe),Wd("Invalid telemetry item")),!xe[Ih]&&Qi(xe[Ih])&&(Rt(xe),Wd("telemetry name required")),xe[_V]=xe[_V]||ne,xe[zA]=xe[zA]||W_(new Date),xe.ver=xe.ver||"4.0",!k&&Be[im]()&&pe===V0.ACTIVE?et()[bd](xe):pe!==V0[ble]&&r[Ar]<=ie&&r[Ss](xe)},function(){return{item:xe}},!xe.sync)},Be[xle]=et,Be[l7]=function(){return o||(o=new VKe(e.cfg),Be[Bjt]=o),o},Be[gV]=function(xe){Be.getNotifyMgr()[gV](xe)},Be[mV]=function(xe){o&&o[mV](xe)},Be.getCookieMgr=function(){return h||(h=j2(e.cfg,Be[Al])),h},Be.setCookieMgr=function(xe){h!==xe&&(qC(h,!1),h=xe)},Be[TV]=function(){return s||c||IDe()},Be.setPerfMgr=function(xe){s=xe},Be.eventCnt=function(){return r[Ar]},Be.releaseQueue=function(){if(t&&r[Ar]>0){var xe=r;r=[],pe===2?Rn(xe,function(Qe){Qe[_V]=Qe[_V]||ne,et()[bd](Qe)}):yn(i,2,20,"core init status is not active")}},Be[gAe]=function(xe){return F=xe||null,Ie=!1,Ee&&Ee[UC](),Fe(!0)};function Ve(){Re=!0,Qi(ne)?(pe=V0[ble],yn(i,1,112,"ikey can't be resolved from promises")):pe=V0.ACTIVE,$e()}function $e(){t&&(Be.releaseQueue(),Be[gAe]())}function Fe(xe){if((!Ee||!Ee[VA])&&!Ie){var Qe=xe||i&&i.queue[Ar]>0;Qe&&(We||(We=!0,nt(e[H0](function(Xt){var Ut=Xt.cfg.diagnosticLogInterval;(!Ut||!(Ut>0))&&(Ut=1e4);var qe=!1;Ee&&(qe=Ee[VA],Ee[UC]()),Ee=V$e(an,Ut),Ee.unref(),Ee[VA]=qe}))),Ee[VA]=!0)}return Ee}Be[_Ae]=function(){Ie=!0,Ee&&Ee[UC](),an()},qA(Be,function(){return O},["addTelemetryInitializer"]),Be[nm]=function(xe,Qe,Xt){var Ut;xe===void 0&&(xe=!0),t||Wd(zjt),k&&Wd(WKe);var qe=(Ut={reason:50},Ut[G0]=xe,Ut.flushComplete=!1,Ut),ge;xe&&!Qe&&(ge=om(function(Je){Qe=Je}));var de=PV(Gt(),Be);de[c7](function(){j.run(Be[Al]),ice([h,o,i],xe,function(){ze(),Qe&&Qe(qe)})},Be);function we(Je){qe.flushComplete=Je,k=!0,z.run(de,qe),Be[_Ae](),de[bd](qe)}return an(),en(xe,we,6,Xt)||we(!1),ge},Be[BA]=Ii,Be.addPlugin=function(xe,Qe,Xt,Ut){if(!xe){Ut&&Ut(!1),Qt(XKe);return}var qe=Ii(xe[xx]);if(qe&&!Qe){Ut&&Ut(!1),Qt("Plugin ["+xe[xx]+"] is already loaded!");return}var ge={reason:16};function de(rt){x[Ss](xe),ge.added=[xe],Pt(ge),Ut&&Ut(!0)}if(qe){var we=[qe.plugin],Je={reason:2,isAsync:!!Xt};ji(we,Je,function(rt){rt?(ge.removed=we,ge.reason|=32,de(!0)):Ut&&Ut(!1)})}else de(!1)},Be.updateCfg=function(xe,Qe){Qe===void 0&&(Qe=!0);var Xt;if(Be[im]()){Xt={reason:1,cfg:e.cfg,oldCfg:uAe({},e.cfg),newConfig:uAe({},xe),merge:Qe},xe=Xt.newConfig;var Ut=e.cfg;xe[R2]=Ut[R2],xe[GA]=Ut[GA]}e._block(function(qe){var ge=qe.cfg;ODe(qe,ge,xe,Qe),Qe||oo(ge,function(de){B0(xe,de)||qe.set(ge,de,yg)}),qe[j0](ge,MDe)},!0),e[E2](),Xt&&ve(Xt)},Be.evtNamespace=function(){return L},Be.flush=en,Be.getTraceCtx=function(xe){return ee||(ee=GKe()),ee},Be.setTraceCtx=function(xe){ee=xe||null},Be.addUnloadHook=nt,F2(Be,"addUnloadCb",function(){return z},"add"),Be.onCfgChange=function(xe){var Qe;return t?Qe=ia(e.cfg,xe,Be[Al]):Qe=Gjt(X,xe),$jt(Qe)},Be.getWParam=function(){return o7()||e.cfg.enableWParam?0:-1};function Xe(){var xe={};fe=[];var Qe=function(Xt){Xt&&Rn(Xt,function(Ut){if(Ut[xx]&&Ut[vV]&&!xe[Ut.identifier]){var qe=Ut[xx]+"="+Ut[vV];fe[Ss](qe),xe[Ut.identifier]=Ut}})};Qe(A),C&&Rn(C,function(Xt){Qe(Xt)}),Qe(x)}function ze(){t=!1,e=qu({},MDe,Be[Al]),e.cfg[wle]=1,qo(Be,"config",{g:function(){return e.cfg},s:function(Qe){Be.updateCfg(Qe,!1)}}),qo(Be,"pluginVersionStringArr",{g:function(){return fe||Xe(),fe}}),qo(Be,"pluginVersionString",{g:function(){return Se||(fe||Xe(),Se=fe.join(";")),Se||ss}}),qo(Be,"logger",{g:function(){return i||(i=new RV(e.cfg),e[Al]=i),i},s:function(Qe){e[Al]=Qe,i!==Qe&&(qC(i,!1),i=Qe)}}),Be[Al]=new RV(e.cfg),q=[];var xe=Be.config[R2]||[];xe.splice(0,xe[Ar]),zC(xe,q),O=new KKe,r=[],qC(o,!1),o=null,s=null,c=null,qC(h,!1),h=null,g=null,x=[],C=null,A=null,k=!1,F=null,L=tu("AIBaseCore",!0),z=uce(),ee=null,ne=null,j=pce(),X=[],Se=null,fe=null,Ie=!1,Ee=null,We=!1,pe=0,Me=null,ie=null,Re=!1,Ue=null}function et(){var xe=$u(Gt(),e.cfg,Be);return xe[c7](Fe),xe}function Pt(xe){var Qe=Hjt(Be[Al],SKe,x);g=null,Se=null,fe=null,A=(C||[])[0]||[],A=cce(zC(A,Qe[GA]));var Xt=zC(cce(Qe[Vc]),A);q=fg(Xt);var Ut=Be.config[R2]||[];Ut.splice(0,Ut[Ar]),zC(Ut,q);var qe=et();A&&A[Ar]>0&&ADe(qe[wx](A),Xt),ADe(qe,Xt),xe&&ve(xe)}function Ii(xe){var Qe=null,Xt=null,Ut=[];return Rn(q,function(qe){if(qe[xx]===xe&&qe!==O)return Xt=qe,-1;qe.getChannel&&Ut[Ss](qe)}),!Xt&&Ut[Ar]>0&&Rn(Ut,function(qe){if(Xt=qe.getChannel(xe),!Xt)return-1}),Xt&&(Qe={plugin:Xt,setEnabled:function(qe){KC(Xt)[y7]=!qe},isEnabled:function(){var qe=KC(Xt);return!qe[_g]&&!qe[y7]},remove:function(qe,ge){var de;qe===void 0&&(qe=!0);var we=[Xt],Je=(de={reason:1},de[G0]=qe,de);ji(we,Je,function(rt){rt&&Pt({reason:32,removed:we}),ge&&ge(rt)})}}),Qe}function Gt(){if(!g){var xe=(q||[]).slice();Il(xe,O)===-1&&xe[Ss](O),g=JA(cce(xe),e.cfg,Be)}return g}function ji(xe,Qe,Xt){if(xe&&xe[Ar]>0){var Ut=JA(xe,e.cfg,Be),qe=PV(Ut,Be);qe[c7](function(){var ge=!1,de=[];Rn(x,function(Je,rt){ZKe(Je,xe)?ge=!0:de[Ss](Je)}),x=de,Se=null,fe=null;var we=[];C&&(Rn(C,function(Je,rt){var vt=[];Rn(Je,function(ti){ZKe(ti,xe)?ge=!0:vt[Ss](ti)}),we[Ss](vt)}),C=we),Xt&&Xt(ge),Fe()}),qe[bd](Qe)}else Xt(!1)}function an(){if(i&&i.queue){var xe=i.queue.slice(0);i.queue[Ar]=0,Rn(xe,function(Qe){var Xt,Ut=(Xt={},Xt[Ih]=F||"InternalMessageId: "+Qe[yV],Xt[_V]=ne,Xt[zA]=W_(new Date),Xt.baseType=$C.dataType,Xt.baseData={message:Qe[Cx]},Xt);Be.track(Ut)})}}function en(xe,Qe,Xt,Ut){var qe=1,ge=!1,de=null;Ut=Ut||5e3;function we(){qe--,ge&&qe===0&&(de&&de[UC](),de=null,Qe&&Qe(ge),Qe=null)}if(A&&A[Ar]>0){var Je=et()[wx](A);Je.iterate(function(rt){if(rt.flush){qe++;var vt=!1;rt.flush(xe,function(){vt=!0,we()},Xt)||vt||(xe&&de==null?de=xu(function(){de=null,we()},Ut):we())}})}return ge=!0,we(),!0}function ir(){var xe;nt(e[H0](function(Qe){var Xt=Qe.cfg.enablePerfMgr;if(Xt){var Ut=Qe.cfg[Vle];xe!==Ut&&(Ut||(Ut=jjt),wd(Qe.cfg,Vle,Ut),xe=Ut,c=null),!s&&!c&&wr(Ut)&&(c=Ut(Be,Be[l7]()))}else c=null,xe=null}))}function ve(xe){var Qe=F7(Gt(),Be);Qe[c7](Fe),(!Be._updateHook||Be._updateHook(Qe,xe)!==!0)&&Qe[bd](xe)}function Qt(xe){var Qe=Be[Al];Qe?(yn(Qe,2,73,xe),Fe()):Wd(xe)}function Rt(xe){var Qe=Be[l7]();Qe&&Qe[YA]([xe],2)}function nt(xe){j.add(xe)}})}return n.__ieDyn=1,n}();function L7(n,e){try{if(n&&n!==""){var t=Yu().parse(n);if(t&&t[xAe]&&t[xAe]>=t.itemsAccepted&&t.itemsReceived-t.itemsAccepted===t.errors[Ar])return t}}catch(i){yn(e,1,43,"Cannot parse the response. "+(i[Ih]||Yn(i)),{response:n})}return null}var Dx="",Kjt="NoResponseBody",JKe="&"+Kjt+"=true",NDe="POST",PDe=function(){function n(){var e=0,t,i,r,o,s,c,h,g,x,C,A,k,O;To(n,this,function(F,L){var z=!0;ie(),F[jC]=function(Re,Ue){r=Ue,i&&yn(r,1,28,"Sender is already initialized"),F.SetConfig(Re),i=!0},F._getDbgPlgTargets=function(){return[i,o,c,t]},F.SetConfig=function(Re){try{if(s=Re.senderOnCompleteCallBack||{},c=!!Re.disableCredentials,o=!!Re.isOneDs,t=!!Re.enableSendPromise,g=!!Re.disableXhr,x=!!Re.disableBeacon,C=!!Re.disableBeaconSync,O=Re.timeWrapper,k=!!Re.addNoResponse,A=!!Re.disableFetchKeepAlive,h={sendPOST:Se},o||(z=!1),c){var Ue=Cd();Ue&&Ue.protocol&&Ue.protocol[U0]()==="file:"&&(z=!1)}return!0}catch{}return!1},F.getSyncFetchPayload=function(){return e},F.getSenderInst=function(Re,Ue){return Re&&Re[Ar]?ne(Re,Ue):null},F.getFallbackInst=function(){return h},F[UA]=function(Re,Ue){ie()};function j(Re,Ue){X(Ue,200,{},Re)}function K(Re,Ue){yn(r,2,26,"Failed to send telemetry.",{message:Re}),X(Ue,400,{})}function ee(Re){K("No endpoint url is provided for the batch",Re)}function ne(Re,Ue){for(var Ee,We=0,Ie=null,Be=0;Ie==null&&Be0&&(Rn(ap(Gt),function(ve){ze.append(ve,Gt[ve])}),ji[Tle]=ze),z&&o&&(ji.credentials="include"),Ee&&(ji.keepalive=!0,e+=et,o?Re._sendReason===2&&(Pt=!0,k&&(Ie+=JKe)):Pt=!0);var an=new Request(Ie,ji);try{an[cDe]=!0}catch{}if(!Ee&&t&&($e=om(function(ve,Qt){Fe=ve,Xe=Qt})),!Ie){ee(Ue),Fe&&Fe(!1);return}function en(ve){X(Ue,o?0:400,{},o?Dx:ve)}function ir(ve,Qt,Rt){var nt=ve[A2],xe=s.fetchOnComplete;xe&&wr(xe)?xe(ve,Ue,Rt||Dx,Qt):X(Ue,nt,{},Rt||Dx)}try{af(fetch(o?Ie:an,o?ji:null),function(ve){if(Ee&&(e-=et,et=0),!Ii)if(Ii=!0,ve.rejected)en(ve.reason&&ve.reason[Cx]),Xe&&Xe(ve.reason);else{var Qt=ve[I2];try{!o&&!Qt.ok?(en(Qt.statusText),Fe&&Fe(!1)):o&&!Qt.body?(ir(Qt,null,Dx),Fe&&Fe(!0)):af(Qt.text(),function(Rt){ir(Qt,Re,Rt[I2]),Fe&&Fe(!0)})}catch(Rt){en(Yn(Rt)),Xe&&Xe(Rt)}}})}catch(ve){Ii||(en(Yn(ve)),Xe&&Xe(ve))}return Pt&&!Ii&&(Ii=!0,X(Ue,200,{}),Fe&&Fe(!0)),o&&!Ii&&Re[k2]>0&&O&&O.set(function(){Ii||(Ii=!0,X(Ue,500,{}),Fe&&Fe(!0))},Re[k2]),$e}function Me(Re,Ue,Ee){var We=bu(),Ie=new XDomainRequest,Be=Re[HA];Ie.onload=function(){var ze=AV(Ie),et=s&&s.xdrOnComplete;et&&wr(et)?et(Ie,Ue,Re):X(Ue,200,{},ze)},Ie.onerror=function(){X(Ue,400,{},o?Dx:x7(Ie))},Ie.ontimeout=function(){X(Ue,500,{})},Ie.onprogress=function(){};var Ve=We&&We.location&&We.location[Cle]||"",$e=Re[bV];if(!$e){ee(Ue);return}if(!o&&$e.lastIndexOf(Ve,0)!==0){var Fe="Cannot send XDomain request. The endpoint URL protocol doesn't match the hosting page protocol.";yn(r,2,40,". "+Fe),K(Fe,Ue);return}var Xe=o?$e:$e[q0](/^(https?:)/,"");Ie.open(NDe,Xe),Re[k2]&&(Ie[k2]=Re[k2]),Ie.send(Be),o&&Ee?O&&O.set(function(){Ie.send(Be)},0):Ie.send(Be)}function ie(){e=0,i=!1,t=!1,r=null,o=null,s=null,c=null,h=null,g=!1,x=!1,C=!1,A=!1,k=!1,O=null}})}return n.__ieDyn=1,n}();var sWe="on",eWe="attachEvent",tWe="addEventListener",iWe="detachEvent",nWe="removeEventListener",FDe="events",LDe="visibilitychange",_ce="pagehide";var aWe="unload",lWe="beforeunload",cWe=tu("aiEvtPageHide"),fjn=tu("aiEvtPageShow"),Wjt=/\.[\.]+/g,Zjt=/[\.]+$/,Qjt=1,fce=Zle("events"),Xjt=/^([^.]*)(?:\.(.+)|)/;function rWe(n){return n&&n[q0]?n[q0](/^[\s\.]+|(?=[\s\.])[\.\s]+$/g,ss):n}function BDe(n,e){var t;if(e){var i=ss;so(e)?(i=ss,Rn(e,function(o){o=rWe(o),o&&(o[0]!=="."&&(o="."+o),i+=o)})):i=rWe(e),i&&(i[0]!=="."&&(i="."+i),n=(n||ss)+i)}var r=Xjt.exec(n||ss)||[];return t={},t[Sx]=r[1],t.ns=(r[2]||ss).replace(Wjt,".").replace(Zjt,ss)[Y0](".").sort().join("."),t}function uWe(n,e,t){t===void 0&&(t=!0);var i=fce.get(n,FDe,{},t),r=i[e];return r||(r=i[e]=[]),r}function dWe(n,e,t,i){n&&e&&e[Sx]&&(n[nWe]?n[nWe](e[Sx],t,i):n[iWe]&&n[iWe](sWe+e[Sx],t))}function Jjt(n,e,t,i){var r=!1;return n&&e&&e[Sx]&&t&&(n[tWe]?(n[tWe](e[Sx],t,i),r=!0):n[eWe]&&(n[eWe](sWe+e[Sx],t),r=!0)),r}function oWe(n,e,t,i){for(var r=e[Ar];r--;){var o=e[r];o&&(!t.ns||t.ns===o.evtName.ns)&&(!i||i(o))&&(dWe(n,o.evtName,o[Ele],o.capture),e[$_](r,1))}}function eHt(n,e,t){if(e[Sx])oWe(n,uWe(n,e[Sx]),e,t);else{var i=fce.get(n,FDe,{});oo(i,function(r,o){oWe(n,o,e,t)}),ap(i)[Ar]===0&&fce.kill(n,FDe)}}function df(n,e){var t;return e?(so(e)?t=[n].concat(e):t=[n,e],t=BDe("xx",t).ns[Y0](".")):t=n,t}function am(n,e,t,i,r){var o;r===void 0&&(r=!1);var s=!1;if(n)try{var c=BDe(e,i);if(s=Jjt(n,c,t,r),s&&fce.accept(n)){var h=(o={guid:Qjt++,evtName:c},o[Ele]=t,o.capture=r,o);uWe(n,c.type)[Ss](h)}}catch{}return s}function kx(n,e,t,i,r){if(r===void 0&&(r=!1),n)try{var o=BDe(e,i),s=!1;eHt(n,o,function(c){return o.ns&&!t||c[Ele]===t?(s=!0,!0):!1}),s||dWe(n,o,t,r)}catch{}}function hWe(n,e,t){var i=!1,r=bu();r&&(i=am(r,n,e,t),i=am(r.body,n,e,t)||i);var o=nc();return o&&(i=am(o,n,e,t)||i),i}function pWe(n,e,t){var i=bu();i&&(kx(i,n,e,t),kx(i.body,n,e,t));var r=nc();r&&kx(r,n,e,t)}function mce(n,e,t,i){var r=!1;return e&&n&&n[Ar]>0&&Rn(n,function(o){o&&(!t||Il(t,o)===-1)&&(r=hWe(o,e,i)||r)}),r}function fWe(n,e,t,i){var r=!1;return e&&n&&so(n)&&(r=mce(n,e,t,i),!r&&t&&t[Ar]>0&&(r=mce(n,e,null,i))),r}function gce(n,e,t){n&&so(n)&&Rn(n,function(i){i&&pWe(i,e,t)})}function zDe(n,e,t){return fWe([lWe,aWe,_ce],n,e,t)}function VDe(n,e){gce([lWe,aWe,_ce],n,e)}function B7(n,e,t){function i(s){var c=nc();n&&c&&c.visibilityState==="hidden"&&n(s)}var r=df(cWe,t),o=mce([_ce],n,e,r);return(!e||Il(e,LDe)===-1)&&(o=mce([LDe],i,e,r)||o),!o&&e&&(o=B7(n,null,t)),o}function UDe(n,e){var t=df(cWe,e);gce([_ce],n,t),gce([LDe],null,t)}var mWe="_aiHooks",gWe=["req","rsp","hkErr","fnErr"];function HDe(n,e){if(n)for(var t=0;t=0&&r<=2&&HDe(n,function(o,s){var c=o.cbks,h=c[gWe[r]];if(h){e.ctx=function(){var C=i[s]=i[s]||{};return C};try{h[q_](e.inst,t)}catch(C){var g=e.err;try{var x=c[gWe[2]];x&&(e.err=C,x[q_](e.inst,t))}catch{}finally{e.err=g}}}})}function tHt(n){return function(){var e,t=this,i=arguments,r=n.h,o=(e={},e[Ih]=n.n,e.inst=t,e.ctx=null,e.set=g,e),s=[],c=h([o],i);o.evt=fl("event");function h(C,A){return HDe(A,function(k){C[Ss](k)}),C}function g(C,A){i=h([],i),i[C]=A,c=h([o],i)}jDe(r,o,c,s,0);var x=n.f;if(x)try{o.rslt=x[q_](t,i)}catch(C){throw o.err=C,jDe(r,o,c,s,3),C}return jDe(r,o,c,s,1),o.rslt}}function GDe(n,e,t,i){var r=null;return n&&(op(n,e)?r=n:t&&(r=GDe(rKe(n),e,i,!1))),r}function YDe(n,e,t){return n?z7(n[lp],e,t,!1):null}function _We(n,e,t,i){var r=t&&t[mWe];if(!r){r={i:0,n:e,f:t,h:[]};var o=tHt(r);o[mWe]=r,n[e]=o}var s={id:r.i,cbks:i,rm:function(){var c=this.id;HDe(r.h,function(h,g){if(h.id===c)return r.h[$_](g,1),1})}};return r.i++,r.h[Ss](s),s}function z7(n,e,t,i,r){if(i===void 0&&(i=!0),n&&e&&t){var o=GDe(n,e,i,r);if(o){var s=o[e];if(typeof s===xV)return _We(o,e,s,t)}}return null}function FV(n,e,t,i,r){if(n&&e&&t){var o=GDe(n,e,i,r)||n;if(o)return _We(o,e,o[e],t)}return null}var LV="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",V7="sampleRate",U7="ProcessLegacy",vce="http.method",q2="https://dc.services.visualstudio.com",Mx="/v2/track",Ku="not_specified",yce="iKey";var Na=fAe({requestContextHeader:[0,"Request-Context"],requestContextTargetKey:[1,"appId"],requestContextAppIdFormat:[2,"appId=cid-v1:"],requestIdHeader:[3,"Request-Id"],traceParentHeader:[4,"traceparent"],traceStateHeader:[5,"tracestate"],sdkContextHeader:[6,"Sdk-Context"],sdkContextHeaderAppIdRequest:[7,"appId"],requestContextHeaderLowerCase:[8,"request-context"]});var WC="split",Vo="length",ZC="toLowerCase",iD="ingestionendpoint",QC="toString",nD="push",bce="removeItem",Wu="name",K0="message",rD="count",xce="preTriggerDate",wce="disabled",Cce="interval",qDe="daysOfMonth",Sce="date",Ece="getUTCDate",$2="stringify",j7="pathname",$De="correlationHeaderExcludePatterns";var K2="exceptions",Z_="parsedStack",Th="properties",cp="measurements",W2="sizeInBytes",Ox="typeName",Z2="severityLevel",Ice="problemGroup",Tce="isManual",KDe="CreateFromInterface",Q2="assembly",oD="fileName",H7="hasFullStack",G7="level",X2="method",BV="line",J2="duration",WDe="receivedResponse";function ZDe(n,e,t){var i=e[Vo],r=vWe(n,e);if(r[Vo]!==i){for(var o=0,s=r;t[s]!==void 0;)o++,s=mg(r,0,147)+yWe(o);r=s}return r}function vWe(n,e){var t;return e&&(e=Tl(vd(e)),e[Vo]>150&&(t=mg(e,0,150),yn(n,2,57,"name is too long. It has been truncated to 150 characters.",{name:e},!0))),t||e}function wa(n,e,t){t===void 0&&(t=1024);var i;return e&&(t=t||1024,e=Tl(vd(e)),e[Vo]>t&&(i=mg(e,0,t),yn(n,2,61,"string value is too long. It has been truncated to "+t+" characters.",{value:e},!0))),i||e}function XC(n,e){return JDe(n,e,2048,66)}function Y7(n,e){var t;return e&&e[Vo]>32768&&(t=mg(e,0,32768),yn(n,2,56,"message is too long, it has been truncated to 32768 characters.",{message:e},!0)),t||e}function QDe(n,e){var t;if(e){var i=""+e;i[Vo]>32768&&(t=mg(i,0,32768),yn(n,2,52,"exception is too long, it has been truncated to 32768 characters.",{exception:e},!0))}return t||e}function hf(n,e){if(e){var t={};oo(e,function(i,r){if(vu(r)&&Ix())try{r=Yu()[$2](r)}catch(o){yn(n,2,49,"custom property is not valid",{exception:o},!0)}r=wa(n,r,8192),i=ZDe(n,i,t),t[i]=r}),e=t}return e}function pf(n,e){if(e){var t={};oo(e,function(i,r){i=ZDe(n,i,t),t[i]=r}),e=t}return e}function XDe(n,e){return e&&JDe(n,e,128,69)[QC]()}function JDe(n,e,t,i){var r;return e&&(e=Tl(vd(e)),e[Vo]>t&&(r=mg(e,0,t),yn(n,2,i,"input is too long, it has been truncated to "+t+" characters.",{data:e},!0))),r||e}function yWe(n){var e="00"+n;return z0(e,e[Vo]-3)}var bWe=nc()||{},xWe=0,sHt=[null,null,null,null,null];function q7(n){var e=xWe,t=sHt,i=t[e];return bWe.createElement?t[e]||(i=t[e]=bWe.createElement("a")):i={host:wWe(n,!0)},i.href=n,e++,e>=t[Vo]&&(e=0),xWe=e,i}function eke(n){var e,t=q7(n);return t&&(e=t.href),e}function tke(n,e){return n?n.toUpperCase()+" "+e:e}function wWe(n,e){var t=Ace(n,e)||"";if(t){var i=t.match(/(www\d{0,5}\.)?([^\/:]{1,256})(:\d{1,20})?/i);if(i!=null&&i[Vo]>3&&Dr(i[2])&&i[2][Vo]>0)return i[2]+(i[3]||"")}return t}function Ace(n,e){var t=null;if(n){var i=n.match(/(\w{1,150}):\/\/([^\/:]{1,256})(:\d{1,20})?/i);if(i!=null&&i[Vo]>2&&Dr(i[2])&&i[2][Vo]>0&&(t=i[2]||"",e&&i[Vo]>2)){var r=(i[1]||"")[ZC](),o=i[3]||"";(r==="http"&&o===":80"||r==="https"&&o===":443")&&(o=""),t+=o}}return t}var aHt=[q2+Mx,"https://breeze.aimon.applicationinsights.io"+Mx,"https://dc-int.services.visualstudio.com"+Mx],lHt="cid-v1:";function zV(n){return Il(aHt,n[ZC]())!==-1}function Dce(n,e,t){if(!e||n&&n.disableCorrelationHeaders)return!1;if(n&&n[$De]){for(var i=0;i0}function kce(n){if(n){var e=CWe(n,Na[1]);if(e&&e!==lHt)return e}}function CWe(n,e){if(n)for(var t=n[WC](","),i=0;i0){var c=q7(e);if(r=c.host,!o)if(c[j7]!=null){var h=c.pathname[Vo]===0?"/":c[j7];h.charAt(0)!=="/"&&(h="/"+h),s=c[j7],o=wa(n,t?t+" "+h:h)}else o=wa(n,e)}else r=i,o=i;return{target:r,name:o,data:s}}function VV(){var n=sf();if(n&&n.now&&n.timing){var e=n.now()+n.timing.navigationStart;if(e>0)return e}return yd()}function Sd(n,e){var t=null;return n!==0&&e!==0&&!Qi(n)&&!Qi(e)&&(t=e-n),t}function eN(n,e){var t=n||{};return{getName:function(){return t[Wu]},setName:function(i){e&&e.setName(i),t[Wu]=i},getTraceId:function(){return t.traceID},setTraceId:function(i){e&&e.setTraceId(i),G2(i)&&(t.traceID=i)},getSpanId:function(){return t.parentID},setSpanId:function(i){e&&e.setSpanId(i),Y2(i)&&(t.parentID=i)},getTraceFlags:function(){return t.traceFlags},setTraceFlags:function(i){e&&e.setTraceFlags(i),t.traceFlags=i}}}var UV=C2({LocalStorage:0,SessionStorage:1}),LHn=C2({AI:0,AI_AND_W3C:1,W3C:2}),BHn=C2({Normal:1,Critical:2});var sD=void 0,aD=void 0,EWe="";function ike(){return iN()?Mce(UV.LocalStorage):null}function Mce(n){try{if(Qi(yu()))return null;var e=new Date()[QC](),t=fl(n===UV.LocalStorage?"localStorage":"sessionStorage"),i=EWe+e;t.setItem(i,e);var r=t.getItem(i)!==e;if(t[bce](i),!r)return t}catch{}return null}function nke(){return lD()?Mce(UV.SessionStorage):null}function rke(){sD=!1,aD=!1}function tN(n){EWe=n||""}function oke(){sD=iN(!0),aD=lD(!0)}function iN(n){return(n||sD===void 0)&&(sD=!!Mce(UV.LocalStorage)),sD}function $7(n,e){var t=ike();if(t!==null)try{return t.getItem(e)}catch(i){sD=!1,yn(n,2,1,"Browser failed read of local storage. "+Ds(i),{exception:Yn(i)})}return null}function K7(n,e,t){var i=ike();if(i!==null)try{return i.setItem(e,t),!0}catch(r){sD=!1,yn(n,2,3,"Browser failed write to local storage. "+Ds(r),{exception:Yn(r)})}return!1}function ske(n,e){var t=ike();if(t!==null)try{return t[bce](e),!0}catch(i){sD=!1,yn(n,2,5,"Browser failed removal of local storage item. "+Ds(i),{exception:Yn(i)})}return!1}function lD(n){return(n||aD===void 0)&&(aD=!!Mce(UV.SessionStorage)),aD}function jV(n,e){var t=nke();if(t!==null)try{return t.getItem(e)}catch(i){aD=!1,yn(n,2,2,"Browser failed read of session storage. "+Ds(i),{exception:Yn(i)})}return null}function W7(n,e,t){var i=nke();if(i!==null)try{return i.setItem(e,t),!0}catch(r){aD=!1,yn(n,2,4,"Browser failed write to session storage. "+Ds(r),{exception:Yn(r)})}return!1}function Z7(n,e){var t=nke();if(t!==null)try{return t[bce](e),!0}catch(i){aD=!1,yn(n,2,6,"Browser failed removal of session storage item. "+Ds(i),{exception:Yn(i)})}return!1}var cHt="appInsightsThrottle",ake=function(){function n(e,t){var i=this,r,o,s,c,h,g,x,C=!1,A=!1;O(),i._getDbgPlgTargets=function(){return[x]},i.getConfig=function(){return s},i.canThrottle=function(Ue){var Ee=Me(Ue),We=F(Ue);return j(We,r,Ee)},i.isTriggered=function(Ue){return ie(Ue)},i.isReady=function(){return C},i.flush=function(Ue){try{var Ee=Re(Ue);if(Ee&&Ee[Vo]>0){var We=Ee.slice(0);return x[Ue]=[],Rn(We,function(Ie){k(Ie.msgID,Ie[K0],Ie.severity,!1)}),!0}}catch{}return!1},i.flushAll=function(){try{if(x){var Ue=!0;return oo(x,function(Ee){var We=i.flush(parseInt(Ee));Ue=Ue&&We}),Ue}}catch{}return!1},i.onReadyState=function(Ue,Ee){return Ee===void 0&&(Ee=!0),C=Qi(Ue)?!0:Ue,C&&Ee?i.flushAll():null},i.sendMessage=function(Ue,Ee,We){return k(Ue,Ee,We,!0)};function k(Ue,Ee,We,Ie){if(C){var Be=pe(Ue);if(!Be)return;var Ve=F(Ue),$e=Me(Ue),Fe=j(Ve,r,$e),Xe=!1,ze=0,et=ie(Ue);try{Fe&&!et?(ze=Math.min(Ve.limit.maxSendNumber,$e[rD]+1),$e[rD]=0,Xe=!0,h[Ue]=!0,$e[xce]=new Date):(h[Ue]=Fe,$e[rD]+=1);var Pt=K(Ue);q(o,Pt,$e);for(var Ii=0;Ii0,Ve[Cce]=z($e);var Fe={samplingRate:((We=Be.limit)===null||We===void 0?void 0:We.samplingRate)||100,maxSendNumber:((Ie=Be.limit)===null||Ie===void 0?void 0:Ie.maxSendNumber)||1};Ve.limit=Fe,s[Ue]=Ve}catch{}}function z(Ue){Ue=Ue||{};var Ee=Ue?.monthInterval,We=Ue?.dayInterval;return Qi(Ee)&&Qi(We)&&(Ue.monthInterval=3,A||(Ue[qDe]=[28],A=!0)),Ue={monthInterval:Ue?.monthInterval,dayInterval:Ue?.dayInterval,daysOfMonth:Ue?.daysOfMonth},Ue}function j(Ue,Ee,We){if(Ue&&!Ue[wce]&&Ee&&K_(We)){var Ie=X(),Be=We[Sce],Ve=Ue[Cce],$e=1;if(Ve?.monthInterval){var Fe=(Ie.getUTCFullYear()-Be.getUTCFullYear())*12+Ie.getUTCMonth()-Be.getUTCMonth();$e=fe(Ve.monthInterval,0,Fe)}var Xe=1;if(A)Xe=Il(Ve[qDe],Ie[Ece]());else if(Ve?.dayInterval){var ze=Math.floor((Ie.getTime()-Be.getTime())/864e5);Xe=fe(Ve.dayInterval,0,ze)}return $e>=0&&Xe>=0}return!1}function K(Ue,Ee){var We=K_(Ee)?Ee:"";return Ue?cHt+We+"-"+Ue:null}function ee(Ue){try{if(Ue){var Ee=new Date;return Ue.getUTCFullYear()===Ee.getUTCFullYear()&&Ue.getUTCMonth()===Ee.getUTCMonth()&&Ue[Ece]()===Ee[Ece]()}}catch{}return!1}function ne(Ue,Ee,We){try{var Ie={date:X(),count:0};if(Ue){var Be=JSON.parse(Ue),Ve={date:X(Be[Sce])||Ie[Sce],count:Be[rD]||Ie[rD],preTriggerDate:Be.preTriggerDate?X(Be[xce]):void 0};return Ve}else return q(Ee,We,Ie),Ie}catch{}return null}function X(Ue){try{if(Ue){var Ee=new Date(Ue);if(!isNaN(Ee.getDate()))return Ee}else return new Date}catch{}return null}function q(Ue,Ee,We){try{return K7(Ue,Ee,Tl(JSON[$2](We)))}catch{}return!1}function fe(Ue,Ee,We){return Ue<=0?1:We>=Ee&&(We-Ee)%Ue==0?Math.floor((We-Ee)/Ue)+1:-1}function Se(Ue,Ee,We,Ie){yn(Ee,Ie||1,Ue,We)}function pe(Ue){try{var Ee=F(Ue);return sDe(1e6)<=Ee.limit.samplingRate}catch{}return!1}function Me(Ue){try{var Ee=c[Ue];if(!Ee){var We=K(Ue,g);Ee=ne($7(o,We),o,We),c[Ue]=Ee}return c[Ue]}catch{}return null}function ie(Ue){var Ee=h[Ue];if(Qi(Ee)){Ee=!1;var We=Me(Ue);We&&(Ee=ee(We[xce])),h[Ue]=Ee}return h[Ue]}function Re(Ue){return x=x||{},Qi(x[Ue])&&(x[Ue]=[]),x[Ue]}}return n}();var uHt=";",dHt="=";function Oce(n){if(!n)return{};var e=n[WC](uHt),t=lAe(e,function(r,o){var s=o[WC](dHt);if(s[Vo]===2){var c=s[0][ZC](),h=s[1];r[c]=h}return r},{});if(ap(t)[Vo]>0){if(t.endpointsuffix){var i=t.location?t.location+".":"";t[iD]=t[iD]||"https://"+i+"dc."+t.endpointsuffix}t[iD]=t[iD]||q2,a7(t[iD],"/")&&(t[iD]=t[iD].slice(0,-1))}return t}var lke=function(){function n(e,t,i){var r=this,o=this;o.ver=1,o.sampleRate=100,o.tags={},o[Wu]=wa(e,i)||Ku,o.data=t,o.time=W_(new Date),o.aiDataContract={time:1,iKey:1,name:1,sampleRate:function(){return r.sampleRate===100?4:1},tags:1,data:1}}return n}();var Q_=function(){function n(e,t,i,r){this.aiDataContract={ver:1,name:1,properties:0,measurements:0};var o=this;o.ver=2,o[Wu]=wa(e,t)||Ku,o[Th]=hf(e,i),o[cp]=pf(e,r)}return n.envelopeType="Microsoft.ApplicationInsights.{0}.Event",n.dataType="EventData",n}();var hHt="",HV="error",lm="stack",uke="stackDetails",IWe="errorSrc",dke="message",DWe="description";function hke(n,e){var t=n;return t&&!Dr(t)&&(JSON&&JSON[$2]?(t=JSON[$2](n),e&&(!t||t==="{}")&&(wr(n[QC])?t=n[QC]():t=""+n)):t=""+n+" - (Missing JSON.stringify)"),t||""}function kWe(n,e){var t=n;return n&&(t&&!Dr(t)&&(t=n[dke]||n[DWe]||t),t&&!Dr(t)&&(t=hke(t,!0)),n.filename&&(t=t+" @"+(n.filename||"")+":"+(n.lineno||"?")+":"+(n.colno||"?"))),e&&e!=="String"&&e!=="Object"&&e!=="Error"&&zc(t||"",e)===-1&&(t=e+": "+t),t||""}function pHt(n){try{if(vu(n))return"hasFullStack"in n&&"typeName"in n}catch{}return!1}function fHt(n){try{if(vu(n))return"ver"in n&&"exceptions"in n&&"properties"in n}catch{}return!1}function TWe(n){return n&&n.src&&Dr(n.src)&&n.obj&&so(n.obj)}function nN(n){var e=n||"";Dr(e)||(Dr(e[lm])?e=e[lm]:e=""+e);var t=e[WC](` `);return{src:e,obj:t}}function mHt(n){for(var e=[],t=n[WC](` `),i=0;i0){e=[];var i=0,r=0;Rn(t,function(O){var F=O[QC]();if(pke.regex.test(F)){var L=new pke(F,i++);r+=L[W2],e[nD](L)}});var o=32*1024;if(r>o)for(var s=0,c=e[Vo]-1,h=0,g=s,x=c;so){var k=x-g+1;e.splice(g,k);break}g=s,x=c,s++,c--}}return e}function Rce(n){var e="";if(n&&(e=n.typeName||n[Wu]||"",!e))try{var t=/function (.{1,200})\(/,i=t.exec(n.constructor[QC]());e=i&&i[Vo]>1?i[1]:""}catch{}return e}function cke(n){if(n)try{if(!Dr(n)){var e=Rce(n),t=hke(n,!1);return(!t||t==="{}")&&(n[HV]&&(n=n[HV],e=Rce(n)),t=hke(n,!0)),zc(t,e)!==0&&e!=="String"?e+":"+t:t}}catch{}return""+(n||"")}var up=function(){function n(e,t,i,r,o,s){this.aiDataContract={ver:1,exceptions:1,severityLevel:0,properties:0,measurements:0};var c=this;c.ver=2,fHt(t)?(c[K2]=t[K2]||[],c[Th]=t[Th],c[cp]=t[cp],t[Z2]&&(c[Z2]=t[Z2]),t.id&&(c.id=t.id,t[Th].id=t.id),t[Ice]&&(c[Ice]=t[Ice]),Qi(t[Tce])||(c[Tce]=t[Tce])):(i||(i={}),s&&(i.id=s),c[K2]=[new AWe(e,t,i)],c[Th]=hf(e,i),c[cp]=pf(e,r),o&&(c[Z2]=o),s&&(c.id=s))}return n.CreateAutoException=function(e,t,i,r,o,s,c,h){var g,x=Rce(o||s||e);return g={},g[K0]=kWe(e,x),g.url=t,g.lineNumber=i,g.columnNumber=r,g.error=cke(o||s||e),g.evt=cke(s||e),g[Ox]=x,g.stackDetails=MWe(c||o||s),g.errorSrc=h,g},n.CreateFromInterface=function(e,t,i,r){var o=t[K2]&&w2(t[K2],function(c){return AWe[KDe](e,c)}),s=new n(e,wu(wu({},t),{exceptions:o}),i,r);return s},n.prototype.toInterface=function(){var e,t=this,i=t.exceptions,r=t.properties,o=t.measurements,s=t.severityLevel,c=t.problemGroup,h=t.id,g=t.isManual,x=i instanceof Array&&w2(i,function(C){return C.toInterface()})||void 0;return e={ver:"4.0"},e[K2]=x,e.severityLevel=s,e.properties=r,e.measurements=o,e.problemGroup=c,e.id=h,e.isManual=g,e},n.CreateSimpleException=function(e,t,i,r,o,s){var c;return{exceptions:[(c={},c[H7]=!0,c.message=e,c.stack=o,c.typeName=t,c)]}},n.envelopeType="Microsoft.ApplicationInsights.{0}.Exception",n.dataType="ExceptionData",n.formatError=cke,n}();var AWe=function(){function n(e,t,i){this.aiDataContract={id:0,outerId:0,typeName:1,message:1,hasFullStack:0,stack:0,parsedStack:2};var r=this;if(pHt(t))r[Ox]=t[Ox],r[K0]=t[K0],r[lm]=t[lm],r[Z_]=t[Z_]||[],r[H7]=t[H7];else{var o=t,s=o&&o.evt;b2(o)||(o=o[HV]||s||o),r[Ox]=wa(e,Rce(o))||Ku,r[K0]=Y7(e,kWe(t||o,r[Ox]))||Ku;var c=t[uke]||MWe(t);r[Z_]=_Ht(c),so(r[Z_])&&w2(r[Z_],function(h){h[Q2]=wa(e,h[Q2]),h[oD]=wa(e,h[oD])}),r[lm]=QDe(e,gHt(c)),r.hasFullStack=so(r.parsedStack)&&r.parsedStack[Vo]>0,i&&(i[Ox]=i[Ox]||r[Ox])}}return n.prototype.toInterface=function(){var e,t=this,i=t[Z_]instanceof Array&&w2(t[Z_],function(o){return o.toInterface()}),r=(e={id:t.id,outerId:t.outerId,typeName:t[Ox],message:t[K0],hasFullStack:t[H7],stack:t[lm]},e[Z_]=i||void 0,e);return r},n.CreateFromInterface=function(e,t){var i=t[Z_]instanceof Array&&w2(t[Z_],function(o){return pke[KDe](o)})||t[Z_],r=new n(e,wu(wu({},t),{parsedStack:i}));return r},n}();var pke=function(){function n(e,t){this.aiDataContract={level:1,method:1,assembly:0,fileName:0,line:0};var i=this;if(i[W2]=0,typeof e=="string"){var r=e;i[G7]=t,i[X2]=hHt,i[Q2]=Tl(r),i[oD]="",i[BV]=0;var o=r.match(n.regex);o&&o[Vo]>=5&&(i[X2]=Tl(o[2])||i[X2],i[oD]=Tl(o[4]),i[BV]=parseInt(o[5])||0)}else i[G7]=e[G7],i[X2]=e[X2],i[Q2]=e[Q2],i[oD]=e[oD],i[BV]=e[BV],i[W2]=0;i.sizeInBytes+=i.method[Vo],i.sizeInBytes+=i.fileName[Vo],i.sizeInBytes+=i.assembly[Vo],i[W2]+=n.baseSize,i.sizeInBytes+=i.level.toString()[Vo],i.sizeInBytes+=i.line.toString()[Vo]}return n.CreateFromInterface=function(e){return new n(e,null)},n.prototype.toInterface=function(){var e=this;return{level:e[G7],method:e[X2],assembly:e[Q2],fileName:e[oD],line:e[BV]}},n.regex=/^([\s]+at)?[\s]{0,50}([^\@\()]+?)[\s]{0,50}(\@|\()([^\(\n]+):([0-9]+):([0-9]+)(\)?)$/,n.baseSize=58,n}();var OWe=function(){function n(){this.aiDataContract={name:1,kind:0,value:1,count:0,min:0,max:0,stdDev:0},this.kind=0}return n}();var X_=function(){function n(e,t,i,r,o,s,c,h,g){this.aiDataContract={ver:1,metrics:1,properties:0};var x=this;x.ver=2;var C=new OWe;C[rD]=r>0?r:void 0,C.max=isNaN(s)||s===null?void 0:s,C.min=isNaN(o)||o===null?void 0:o,C[Wu]=wa(e,t)||Ku,C.value=i,C.stdDev=isNaN(c)||c===null?void 0:c,x.metrics=[C],x[Th]=hf(e,h),x[cp]=pf(e,g)}return n.envelopeType="Microsoft.ApplicationInsights.{0}.Metric",n.dataType="MetricData",n}();var Q7="";function wg(n){(isNaN(n)||n<0)&&(n=0),n=Math.round(n);var e=Q7+n%1e3,t=Q7+Math.floor(n/1e3)%60,i=Q7+Math.floor(n/(1e3*60))%60,r=Q7+Math.floor(n/(1e3*60*60))%24,o=Math.floor(n/(1e3*60*60*24));return e=e[Vo]===1?"00"+e:e[Vo]===2?"0"+e:e,t=t[Vo]<2?"0"+t:t,i=i[Vo]<2?"0"+i:i,r=r[Vo]<2?"0"+r:r,(o>0?o+".":Q7)+r+":"+i+":"+t+"."+e}function fke(n,e,t,i,r){return!r&&Dr(n)&&(n==="Script error."||n==="Script error")}var cm=function(){function n(e,t,i,r,o,s,c){this.aiDataContract={ver:1,name:0,url:0,duration:0,properties:0,measurements:0,id:0};var h=this;h.ver=2,h.id=XDe(e,c),h.url=XC(e,i),h[Wu]=wa(e,t)||Ku,isNaN(r)||(h[J2]=wg(r)),h[Th]=hf(e,o),h[cp]=pf(e,s)}return n.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",n.dataType="PageviewData",n}();var J_=function(){function n(e,t,i,r,o,s,c,h,g,x,C,A){g===void 0&&(g="Ajax"),this.aiDataContract={id:1,ver:1,name:0,resultCode:0,duration:0,success:0,data:0,target:0,type:0,properties:0,measurements:0,kind:0,value:0,count:0,min:0,max:0,stdDev:0,dependencyKind:0,dependencySource:0,commandName:0,dependencyTypeName:0};var k=this;k.ver=2,k.id=t,k[J2]=wg(o),k.success=s,k.resultCode=c+"",k.type=wa(e,g);var O=SWe(e,i,h,r);k.data=XC(e,r)||O.data,k.target=wa(e,O.target),x&&(k.target="".concat(k.target," | ").concat(x)),k[Wu]=wa(e,O[Wu]),k[Th]=hf(e,C),k[cp]=pf(e,A)}return n.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",n.dataType="RemoteDependencyData",n}();var Rx=function(){function n(e,t,i,r,o){this.aiDataContract={ver:1,message:1,severityLevel:0,properties:0};var s=this;s.ver=2,t=t||Ku,s[K0]=Y7(e,t),s[Th]=hf(e,r),s[cp]=pf(e,o),i&&(s[Z2]=i)}return n.envelopeType="Microsoft.ApplicationInsights.{0}.Message",n.dataType="MessageData",n}();var Nx=function(){function n(e,t,i,r,o,s,c){this.aiDataContract={ver:1,name:0,url:0,duration:0,perfTotal:0,networkConnect:0,sentRequest:0,receivedResponse:0,domProcessing:0,properties:0,measurements:0};var h=this;h.ver=2,h.url=XC(e,i),h[Wu]=wa(e,t)||Ku,h[Th]=hf(e,o),h[cp]=pf(e,s),c&&(h.domProcessing=c.domProcessing,h[J2]=c[J2],h.networkConnect=c.networkConnect,h.perfTotal=c.perfTotal,h[WDe]=c[WDe],h.sentRequest=c.sentRequest)}return n.envelopeType="Microsoft.ApplicationInsights.{0}.PageviewPerformance",n.dataType="PageviewPerformanceData",n}();var JC=function(){function n(e,t){this.aiDataContract={baseType:1,baseData:1},this.baseType=e,this.baseData=t}return n}();function uD(n){var e="ai."+n+".";return function(t){return e+t}}var X7=uD("application"),Ed=uD("device"),Nce=uD("location"),GV=uD("operation"),mke=uD("session"),cD=uD("user"),rN=uD("cloud"),J7=uD("internal"),eY=function(n){Zd(e,n);function e(){return n.call(this)||this}return e}($Ae({applicationVersion:X7("ver"),applicationBuild:X7("build"),applicationTypeId:X7("typeId"),applicationId:X7("applicationId"),applicationLayer:X7("layer"),deviceId:Ed("id"),deviceIp:Ed("ip"),deviceLanguage:Ed("language"),deviceLocale:Ed("locale"),deviceModel:Ed("model"),deviceFriendlyName:Ed("friendlyName"),deviceNetwork:Ed("network"),deviceNetworkName:Ed("networkName"),deviceOEMName:Ed("oemName"),deviceOS:Ed("os"),deviceOSVersion:Ed("osVersion"),deviceRoleInstance:Ed("roleInstance"),deviceRoleName:Ed("roleName"),deviceScreenResolution:Ed("screenResolution"),deviceType:Ed("type"),deviceMachineName:Ed("machineName"),deviceVMName:Ed("vmName"),deviceBrowser:Ed("browser"),deviceBrowserVersion:Ed("browserVersion"),locationIp:Nce("ip"),locationCountry:Nce("country"),locationProvince:Nce("province"),locationCity:Nce("city"),operationId:GV("id"),operationName:GV("name"),operationParentId:GV("parentId"),operationRootId:GV("rootId"),operationSyntheticSource:GV("syntheticSource"),operationCorrelationVector:GV("correlationVector"),sessionId:mke("id"),sessionIsFirst:mke("isFirst"),sessionIsNew:mke("isNew"),userAccountAcquisitionDate:cD("accountAcquisitionDate"),userAccountId:cD("accountId"),userAgent:cD("userAgent"),userId:cD("id"),userStoreRegion:cD("storeRegion"),userAuthUserId:cD("authUserId"),userAnonymousUserAcquisitionDate:cD("anonUserAcquisitionDate"),userAuthenticatedUserAcquisitionDate:cD("authUserAcquisitionDate"),cloudName:rN("name"),cloudRole:rN("role"),cloudRoleVer:rN("roleVer"),cloudRoleInstance:rN("roleInstance"),cloudEnvironment:rN("environment"),cloudLocation:rN("location"),cloudDeploymentUnit:rN("deploymentUnit"),internalNodeName:J7("nodeName"),internalSdkVersion:J7("sdkVersion"),internalAgentVersion:J7("agentVersion"),internalSnippet:J7("snippet"),internalSdkSrc:J7("sdkSrc")}));function ev(n,e,t,i,r,o){var s;t=wa(i,t)||Ku,(Qi(n)||Qi(e)||Qi(t))&&Wd("Input doesn't contain all required fields");var c="";n[yce]&&(c=n[yce],delete n[yce]);var h=(s={},s[Wu]=t,s.time=W_(new Date),s.iKey=c,s.ext=o||{},s.tags=[],s.data={},s.baseType=e,s.baseData=n,s);return Qi(r)||oo(r,function(g,x){h.data[g]=x}),h}var vHt=function(){function n(){}return n.create=ev,n}();var dp={UserExt:"user",DeviceExt:"device",TraceExt:"trace",WebExt:"web",AppExt:"app",OSExt:"os",SessionExt:"ses",SDKExt:"sdk"},ml=new eY;function oN(n){var e=null;if(wr(Event))e=new Event(n);else{var t=nc();t&&t.createEvent&&(e=t.createEvent("Event"),e.initEvent(n,!0,!0))}return e}function RWe(n,e){kx(n,null,null,e)}function gke(n){var e=nc(),t=Eh(),i=!1,r=[],o=1;t&&!Qi(t.onLine)&&!t.onLine&&(o=2);var s=0,c=A(),h=df(tu("OfflineListener"),n);try{if(x(bu())&&(i=!0),e){var g=e.body||e;g.ononline&&x(g)&&(i=!0)}}catch{i=!1}function x(K){var ee=!1;return K&&(ee=am(K,"online",F,h),ee&&am(K,"offline",L,h)),ee}function C(){return c}function A(){return!(s===2||o===2)}function k(){var K=A();c!==K&&(c=K,Rn(r,function(ee){var ne={isOnline:c,rState:o,uState:s};try{ee(ne)}catch{}}))}function O(K){s=K,k()}function F(){o=1,k()}function L(){o=2,k()}function z(){var K=bu();if(K&&i){if(RWe(K,h),e){var ee=e.body||e;Xs(ee.ononline)||RWe(ee,h)}i=!1}}function j(K){return r[nD](K),{rm:function(){var ee=r.indexOf(K);if(ee>-1)return r.splice(ee,1)}}}return{isOnline:C,isListening:function(){return i},unload:z,addListener:j,setOnlineState:O}}var Px="AppInsightsPropertiesPlugin",Pce="AppInsightsChannelPlugin",YV="ApplicationInsightsAnalytics";var NWe=(()=>{class n{constructor(){this.errorServices=[],n.instance===null&&(n.instance=this)}set plugin(t){this.analyticsPlugin=t}clearErrorHandlers(){this.errorServices=[]}addErrorHandler(t){t&&wr(t.handleError)&&this.errorServices.push(t)}removeErrorHandler(t){if(t&&wr(t.handleError)){let i=this.errorServices.indexOf(t);i!==-1&&this.errorServices.splice(i,1)}}handleError(t){this.analyticsPlugin&&this.analyticsPlugin.trackException({exception:t}),this.errorServices&&this.errorServices.length>0&&Rn(this.errorServices,i=>{wr(i.handleError)&&i.handleError(t)})}}return n.instance=null,n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=It({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),_ke,yHt=of({router:{blkVal:!0,v:_ke},errorServices:{blkVal:!0,v:_ke}}),PWe=(()=>{class n extends uf{constructor(t){super(),this._injector=t,this.priority=186,this.identifier="AngularPlugin";let i,r,o,s,c,h,g;To(n,this,(x,C)=>{let A=()=>{i=null,r=null,o=null,s=null,c=!0,h=_ke};A(),x.initialize=(k,O,F,L)=>{super.initialize(k,O,F,L),x._addHook(ia(k,z=>{if(o=x._getTelCtx().getExtCfg(x.identifier,yHt),r=O.getPlugin(Px)?.plugin,i=O.getPlugin(YV)?.plugin,o.useInjector&&t&&(g=this._injector.get(NWe)),g=g||NWe.instance,i&&g!==null&&(g.plugin=i,o.errorServices&&so(o.errorServices)&&(g.clearErrorHandlers(),Rn(o.errorServices,K=>{g.addErrorHandler(K)}))),o.router!==h){if(s&&s.unsubscribe(),o.router){if(c){let K={uri:o.router.url};x.trackPageView(K)}s=o.router.events.subscribe(K=>{if(x.isInitialized()&&K instanceof yh){if(c){c=!1;return}let ee={uri:o.router.url,properties:{duration:0}};x.trackPageView(ee)}})}h=o.router}})),x._getDbgPlgTargets=()=>o,x._getErrorService=()=>g},x.trackPageView=k=>{if(i){let O=Cd();r&&r.context&&r.context.telemetryTrace&&(r.context.telemetryTrace.traceID=cf(),r.context.telemetryTrace.name=O&&O.pathname||"_unknown_"),i.trackPageView(k)}else yn(x.diagLog(),1,64,"Analytics plugin is not available, Angular plugin telemetry will not be sent: ")},x._doTeardown=(k,O,F)=>{i&&g!==null&&(g.plugin=null,o&&o.errorServices&&Array.isArray(o.errorServices)&&g.clearErrorHandlers()),s&&(s.unsubscribe(),s=null),A()}})}processTelemetry(t,i){this.processNext(t,i)}initialize(t,i,r,o){}trackPageView(t){}}return n.\u0275fac=function(t){return new(t||n)(oe(yo))},n.\u0275cmp=Ct({type:n,selectors:[["lib-applicationinsights-angularplugin-js"]],features:[Li],decls:0,vars:0,template:function(t,i){},encapsulation:2}),n})();var tY="toString",Fce="isStorageUseDisabled",sN="_addHook",Qd="core",eS="dataType",dD="envelopeType",um="diagLog",hD="track",qV="trackPageView",iY="trackPreviousPageVisit",tS="sendPageViewInternal",iS="startTime",nY="properties",Cg="duration",rY="sendPageViewPerformanceInternal",$V="populatePageViewPerformanceEvent",pD="href",vke="sendExceptionInternal",Lce="exception",KV="error",Bce="_onerror",zce="errorSrc",Vce="lineNumber",Uce="columnNumber",yke="message",jce="CreateAutoException",oY="addTelemetryInitializer",FWe="overridePageViewDuration",bke="autoTrackPageVisitTime",xke="isBrowserLinkTrackingEnabled",fD="length",wke="enableAutoRouteTracking",Cke="enableUnhandledPromiseRejectionTracking",Hce="autoUnhandledPromiseInstrumented",sY="getEntriesByType",Gce="isPerformanceTimingSupported",Yce="getPerformanceTiming",WV="navigationStart",aY="shouldCollectDuration",qce="isPerformanceTimingDataReady",ZV="responseStart",LWe="requestStart",lY="loadEventEnd",$ce="responseEnd",cY="connectEnd",Ske="pageVisitStartTime";var BWe=function(){function n(e,t,i,r){To(n,this,function(o){var s=null,c=[],h=!1,g=!1,x;i&&(x=i.logger);function C(O){i&&i.flush(O,function(){})}function A(){s||(s=xu(function(){s=null;var O=c.slice(0),F=!1;c=[],Rn(O,function(L){L()?F=!0:c.push(L)}),c[fD]>0&&A(),F&&C(!0)},100))}function k(O){c.push(O),A()}o[qV]=function(O,F){var L=O.name;if(Qi(L)||typeof L!="string"){var z=nc();L=O.name=z&&z.title||""}var j=O.uri;if(Qi(j)||typeof j!="string"){var K=Cd();j=O.uri=K&&K[pD]||""}if(!g){var ee=sf(),ne=ee&&ee[sY]&&ee[sY]("navigation");if(ne&&ne[0]&&!Xs(ee.timeOrigin)){var X=ne[0].loadEventStart;O[iS]=new Date(ee.timeOrigin+X)}else{var q=(F||O[nY]||{})[Cg]||0;O[iS]=new Date(new Date().getTime()-q)}g=!0}if(!r[Gce]()){e[tS](O,F),C(!0),fle()||yn(x,2,25,"trackPageView: navigation timing API used for calculation of page duration is not supported in this browser. This page view will be collected without duration and timing info.");return}var fe=!1,Se,pe=r[Yce]()[WV];pe>0&&(Se=Sd(pe,+new Date),r[aY](Se)||(Se=void 0));var Me;!Qi(F)&&!Qi(F[Cg])&&(Me=F[Cg]),(t||!isNaN(Me))&&(isNaN(Me)&&(F||(F={}),F[Cg]=Se),e[tS](O,F),C(!0),fe=!0);var ie=6e4;F||(F={}),k(function(){var Re=!1;try{if(r[qce]()){Re=!0;var Ue={name:L,uri:j};r[$V](Ue),!Ue.isValid&&!fe?(F[Cg]=Se,e[tS](O,F)):(fe||(F[Cg]=Ue.durationMs,e[tS](O,F)),h||(e[rY](Ue,F),h=!0))}else pe>0&&Sd(pe,+new Date)>ie&&(Re=!0,fe||(F[Cg]=ie,e[tS](O,F)))}catch(Ee){yn(x,1,38,"trackPageView failed on page load calculation: "+Ds(Ee),{exception:Yn(Ee)})}return Re})},o.teardown=function(O,F){if(s){s.cancel(),s=null;var L=c.slice(0),z=!1;c=[],Rn(L,function(j){j()&&(z=!0)})}}})}return n.__ieDyn=1,n}();var bHt=36e5,zWe=["googlebot","adsbot-google","apis-google","mediapartners-google"];function UWe(){var n=sf();return n&&!!n.timing}function xHt(){var n=sf();return n&&n.getEntriesByType&&n.getEntriesByType("navigation")[fD]>0}function wHt(){var n=sf(),e=n?n.timing:0;return e&&e.domainLookupStart>0&&e[WV]>0&&e[ZV]>0&&e[LWe]>0&&e[lY]>0&&e[$ce]>0&&e[cY]>0&&e.domLoading>0}function VWe(){return UWe()?sf().timing:null}function CHt(){return xHt()?sf()[sY]("navigation")[0]:null}function SHt(){for(var n=[],e=0;e=bHt)return!1;return!0}var jWe=function(){function n(e){var t=lf(e);To(n,this,function(i){i[$V]=function(r){r.isValid=!1;var o=CHt(),s=VWe(),c=0,h=0,g=0,x=0,C=0;(o||s)&&(o?(c=o[Cg],h=o[iS]===0?o[cY]:Sd(o[iS],o[cY]),g=Sd(o.requestStart,o[ZV]),x=Sd(o[ZV],o[$ce]),C=Sd(o.responseEnd,o[lY])):(c=Sd(s[WV],s[lY]),h=Sd(s[WV],s[cY]),g=Sd(s.requestStart,s[ZV]),x=Sd(s[ZV],s[$ce]),C=Sd(s.responseEnd,s[lY])),c===0?yn(t,2,10,"error calculating page view performance.",{total:c,network:h,request:g,response:x,dom:C}):i[aY](c,h,g,x,C)?c0&&n<=100}function kHt(n){Xs(n[Fce])||(n[Fce]?rke():oke())}var Kce=function(n){Zd(e,n);function e(){var t=n.call(this)||this;t.identifier=YV,t.priority=180,t.autoRoutePVDelay=500;var i,r,o,s,c,h,g,x,C,A,k,O,F,L,z,j,K=0,ee,ne,X;return To(e,t,function(q,fe){var Se=fe[sN];$e(),q.getCookieMgr=function(){return H2(q[Qd])},q.processTelemetry=function(Fe,Xe){q.processNext(Fe,Xe)},q.trackEvent=function(Fe,Xe){try{var ze=ev(Fe,Q_[eS],Q_[dD],q[um](),Xe);q[Qd][hD](ze)}catch(et){Ve(2,39,"trackTrace failed, trace will not be collected: "+Ds(et),{exception:Yn(et)})}},q.startTrackEvent=function(Fe){try{i.start(Fe)}catch(Xe){Ve(1,29,"startTrackEvent failed, event will not be collected: "+Ds(Xe),{exception:Yn(Xe)})}},q.stopTrackEvent=function(Fe,Xe,ze){try{i.stop(Fe,void 0,Xe,ze)}catch(et){Ve(1,30,"stopTrackEvent failed, event will not be collected: "+Ds(et),{exception:Yn(et)})}},q.trackTrace=function(Fe,Xe){try{var ze=ev(Fe,Rx[eS],Rx[dD],q[um](),Xe);q[Qd][hD](ze)}catch(et){Ve(2,39,"trackTrace failed, trace will not be collected: "+Ds(et),{exception:Yn(et)})}},q.trackMetric=function(Fe,Xe){try{var ze=ev(Fe,X_[eS],X_[dD],q[um](),Xe);q[Qd][hD](ze)}catch(et){Ve(1,36,"trackMetric failed, metric will not be collected: "+Ds(et),{exception:Yn(et)})}},q[qV]=function(Fe,Xe){try{var ze=Fe||{};o[qV](ze,wu(wu(wu({},ze.properties),ze.measurements),Xe)),j&&c[iY](ze.name,ze.uri)}catch(et){Ve(1,37,"trackPageView failed, page view will not be collected: "+Ds(et),{exception:Yn(et)})}},q[tS]=function(Fe,Xe,ze){var et=nc();if(et&&(Fe.refUri=Fe.refUri===void 0?et.referrer:Fe.refUri),Qi(Fe[iS])){var Pt=(Xe||Fe[nY]||{})[Cg]||0;Fe[iS]=new Date(new Date().getTime()-Pt)}var Ii=ev(Fe,cm[eS],cm[dD],q[um](),Xe,ze);q[Qd][hD](Ii),K=0},q[rY]=function(Fe,Xe,ze){var et=ev(Fe,Nx[eS],Nx[dD],q[um](),Xe,ze);q[Qd][hD](et)},q.trackPageViewPerformance=function(Fe,Xe){var ze=Fe||{};try{s[$V](ze),q[rY](ze,Xe)}catch(et){Ve(1,37,"trackPageViewPerformance failed, page view will not be collected: "+Ds(et),{exception:Yn(et)})}},q.startTrackPage=function(Fe){try{if(typeof Fe!="string"){var Xe=nc();Fe=Xe&&Xe.title||""}r.start(Fe)}catch(ze){Ve(1,31,"startTrackPage failed, page view may not be collected: "+Ds(ze),{exception:Yn(ze)})}},q.stopTrackPage=function(Fe,Xe,ze,et){try{if(typeof Fe!="string"){var Pt=nc();Fe=Pt&&Pt.title||""}if(typeof Xe!="string"){var Ii=Cd();Xe=Ii&&Ii[pD]||""}r.stop(Fe,Xe,ze,et),j&&c[iY](Fe,Xe)}catch(Gt){Ve(1,32,"stopTrackPage failed, page view will not be collected: "+Ds(Gt),{exception:Yn(Gt)})}},q[vke]=function(Fe,Xe,ze){var et=Fe&&(Fe[Lce]||Fe[KV])||b2(Fe)&&Fe||{name:Fe&&typeof Fe,message:Fe||Ku};Fe=Fe||{};var Pt=new up(q[um](),et,Fe[nY]||Xe,Fe.measurements,Fe.severityLevel,Fe.id).toInterface(),Ii=ev(Pt,up[eS],up[dD],q[um](),Xe,ze);q[Qd][hD](Ii)},q.trackException=function(Fe,Xe){Fe&&!Fe[Lce]&&Fe[KV]&&(Fe[Lce]=Fe[KV]);try{q[vke](Fe,Xe)}catch(ze){Ve(1,35,"trackException failed, exception will not be collected: "+Ds(ze),{exception:Yn(ze)})}},q[Bce]=function(Fe){var Xe=Fe&&Fe[KV],ze=Fe&&Fe.evt;try{if(!ze){var et=bu();et&&(ze=et[IHt])}var Pt=Fe&&Fe.url||(nc()||{}).URL,Ii=Fe[zce]||"window.onerror@"+Pt+":"+(Fe[Vce]||0)+":"+(Fe[Uce]||0),Gt={errorSrc:Ii,url:Pt,lineNumber:Fe[Vce]||0,columnNumber:Fe[Uce]||0,message:Fe[yke]};fke(Fe.message,Fe.url,Fe.lineNumber,Fe.columnNumber,Fe[KV])?Re(up[jce]("Script error: The browser's same-origin policy prevents us from getting the details of this exception. Consider using the 'crossorigin' attribute.",Pt,Fe[Vce]||0,Fe[Uce]||0,Xe,ze,null,Ii),Gt):(Fe[zce]||(Fe[zce]=Ii),q.trackException({exception:Fe,severityLevel:3},Gt))}catch(an){var ji=Xe?Xe.name+", "+Xe[yke]:"null";Ve(1,11,"_onError threw exception while logging error, error will not be collected: "+Ds(an),{exception:Yn(an),errorString:ji})}},q[oY]=function(Fe){if(q[Qd])return q[Qd][oY](Fe);h||(h=[]),h.push(Fe)},q.initialize=function(Fe,Xe,ze,et){if(!q.isInitialized()){Qi(Xe)&&Wd("Error initializing"),fe.initialize(Fe,Xe,ze,et);try{X=df(tu(q.identifier),Xe.evtNamespace&&Xe.evtNamespace()),h&&(Rn(h,function(Pt){Xe[oY](Pt)}),h=null),pe(Fe),s=new jWe(q[Qd]),o=new BWe(q,z.overridePageViewDuration,q[Qd],s),c=new HWe(q[um](),function(Pt,Ii,Gt){return Me(Pt,Ii,Gt)}),i=new Eke(q[um](),"trackEvent"),i.action=function(Pt,Ii,Gt,ji,an){ji||(ji={}),an||(an={}),ji.duration=Gt[tY](),q.trackEvent({name:Pt,properties:ji,measurements:an})},r=new Eke(q[um](),"trackPageView"),r.action=function(Pt,Ii,Gt,ji,an){Qi(ji)&&(ji={}),ji.duration=Gt[tY]();var en={name:Pt,uri:Ii,properties:ji,measurements:an};q[tS](en,ji)},FA()&&(Ue(),Ee())}catch(Pt){throw q.setInitialized(!1),Pt}}},q._doTeardown=function(Fe,Xe){o&&o.teardown(Fe,Xe),kx(window,null,null,X),$e()};function pe(Fe){var Xe=q.identifier,ze=q[Qd];q[sN](ia(Fe,function(){var et=$u(null,Fe,ze);z=et.getExtCfg(Xe,AHt),j=z[bke],Fe.storagePrefix&&tN(Fe.storagePrefix),kHt(z),g=z[xke],ie()}))}function Me(Fe,Xe,ze){var et={PageName:Fe,PageUrl:Xe};q.trackMetric({name:"PageVisitTime",average:ze,max:ze,min:ze,sampleCount:1},et)}function ie(){if(!x&&g){var Fe=["/browserLinkSignalR/","/__browserLink/"],Xe=function(ze){if(g&&ze.baseType===J_[eS]){var et=ze.baseData;if(et){for(var Pt=0;Pt=0)return!1}}return!0};q[sN](q[oY](Xe)),x=!0}}function Re(Fe,Xe){var ze=ev(Fe,up[eS],up[dD],q[um](),Xe);q[Qd][hD](ze)}function Ue(){var Fe=bu(),Xe=Cd(!0);q[sN](ia(z,function(){k=z.disableExceptionTracking,!k&&!O&&!z.autoExceptionInstrumented&&(Se(FV(Fe,"onerror",{ns:X,rsp:function(ze,et,Pt,Ii,Gt,ji){!k&&ze.rslt!==!0&&q[Bce](up[jce](et,Pt,Ii,Gt,ji,ze.evt))}},!1)),O=!0)})),Be(Fe,Xe)}function Ee(){var Fe=bu(),Xe=Cd(!0);q[sN](ia(z,function(){if(C=z[wke]===!0,Fe&&C&&!A&&sAe()){var ze=ple();wr(ze.pushState)&&wr(ze.replaceState)&&typeof Event!==M2&&Ie(Fe,ze,Xe)}}))}function We(){var Fe=null;if(q[Qd]&&q[Qd].getTraceCtx&&(Fe=q[Qd].getTraceCtx(!1)),!Fe){var Xe=q[Qd].getPlugin(Px);if(Xe){var ze=Xe.plugin.context;ze&&(Fe=eN(ze.telemetryTrace))}}return Fe}function Ie(Fe,Xe,ze){if(A)return;var et=z.namePrefix||"";function Pt(){C&&uY(Fe,oN(et+"locationchange"))}function Ii(){if(ne?(ee=ne,ne=ze&&ze[pD]||""):ne=ze&&ze[pD]||"",C){var Gt=We();if(Gt){Gt.setTraceId(cf());var ji="_unknown_";ze&&ze.pathname&&(ji=ze.pathname+(ze.hash||"")),Gt.setName(wa(q[um](),ji))}xu((function(an){q[qV]({refUri:an,properties:{duration:0}})}).bind(q,ee),q.autoRoutePVDelay)}}Se(FV(Xe,"pushState",{ns:X,rsp:function(){C&&(uY(Fe,oN(et+"pushState")),uY(Fe,oN(et+"locationchange")))}},!0)),Se(FV(Xe,"replaceState",{ns:X,rsp:function(){C&&(uY(Fe,oN(et+"replaceState")),uY(Fe,oN(et+"locationchange")))}},!0)),am(Fe,et+"popstate",Pt,X),am(Fe,et+"locationchange",Ii,X),A=!0}function Be(Fe,Xe){q[sN](ia(z,function(){F=z[Cke]===!0,O=O||z[Hce],F&&!L&&(Se(FV(Fe,"onunhandledrejection",{ns:X,rsp:function(ze,et){F&&ze.rslt!==!0&&q[Bce](up[jce](THt(et),Xe?Xe[pD]:"",0,0,et,ze.evt))}},!1)),z[Hce]=L=!0)}))}function Ve(Fe,Xe,ze,et,Pt){q[um]().throwInternal(Fe,Xe,ze,et,Pt)}function $e(){i=null,r=null,o=null,s=null,c=null,h=null,g=!1,x=!1,C=!1,A=!1,k=!1,O=!1,F=!1,L=!1,j=!1,K=0;var Fe=Cd(!0);ee=Fe&&Fe[pD]||"",ne=null,X=null,z=null,qo(q,"config",{g:function(){return z}})}qo(q,"_pageViewManager",{g:function(){return o}}),qo(q,"_pageViewPerformanceManager",{g:function(){return s}}),qo(q,"_pageVisitTimeManager",{g:function(){return c}}),qo(q,"_evtNamespace",{g:function(){return"."+X}})}),t}return e.Version="3.3.0",e}(uf);var dY="featureOptIn",Ike="onCfgChangeReceive",Tke="nonOverrideConfigs",Ake="scheduleFetchTimeout";function Dke(n,e,t,i){try{var r=t>i;r&&(n=null);var o=t==0?B$e({},n):n;return o&&e&&!r&&oo(o,function(s){var c=e[s];c&&(vu(o[s])&&vu(c)?o[s]=Dke(o[s],c,++t,i):delete o[s])}),o}catch{}return n}var QV="featureOptIn.",qWe=".mode",$We=".onCfg",KWe=".offCfg";function MHt(n,e,t){var i;if(!e||!e.enabled)return null;var r=(e[dY]||{})[n]||{mode:1},o=r.mode,s=r.onCfg,c=r.offCfg,h=(t||{})[n]||{mode:2},g=h.mode,x=h.onCfg,C=h.offCfg,A=!!h.blockCdnCfg,k=QV+n+qWe,O=QV+n+$We,F=QV+n+KWe,L=g,z=x,j=C;return A||(o===4||o===5?(L=o==4?3:2,z=s||x,j=c||C):o===2||g===2?(L=2,z=x||s,j=C||c):o===3?(L=3,z=x||s,j=C||c):o===1&&g===1&&(L=1)),i={},i[k]=L,i[O]=z,i[F]=j,i}function WWe(n,e){try{if(!n||!n.enabled)return null;if(!n[dY])return n.config;var t=n[dY],i=n.config||{};return oo(t,function(r){var o=MHt(r,n,e.config[dY]);Qi(o)||(oo(o,function(s,c){pAe(i,s,c)}),OHt(r,o,i))}),i}catch{}return null}function OHt(n,e,t){var i=e[QV+n+qWe],r=e[QV+n+$We],o=e[QV+n+KWe],s=null;i===3&&(s=r),i===2&&(s=o),s&&oo(s,function(c,h){pAe(t,c,h)})}var hY,RHt="ai_cfgsync",ZWe="GET",NHt=18e5,XV=void 0,PHt={instrumentationKey:!0,connectionString:!0,endpointUrl:!0},FHt=of((hY={syncMode:1,blkCdnCfg:XV,customEvtName:XV,cfgUrl:XV,overrideSyncFn:XV,overrideFetchFn:XV},hY[Ike]=XV,hY[Ake]=NHt,hY[Tke]=PHt,hY)),kke=function(n){Zd(e,n);function e(){var t=n.call(this)||this;t.priority=198,t.identifier="AppInsightsCfgSyncPlugin";var i,r,o,s,c,h,g,x,C,A,k,O,F,L,z,j,K=!1;return To(e,t,function(ee,ne){X(),ee.initialize=function(Fe,Xe,ze,et){ne.initialize(Fe,Xe,ze,et),s=df(tu(ee.identifier),Xe.evtNamespace&&Xe.evtNamespace()),q(Fe)},ee.getCfg=function(){return r},ee.pause=function(){K=!0,$e()},ee.resume=function(){K=!1,Ve()},ee.setCfg=function(Fe){return fe(Fe)},ee.sync=function(Fe){return pe(Fe)},ee.updateEventListenerName=function(Fe){return Me(Fe)},ee._doTeardown=function(Fe,Xe){Se(),$e(),X()},ee._getDbgPlgTargets=function(){return[x,g,o,C,F]};function X(){r=null,o=null,s=null,c=null,g=null,x=null,F=null,h=null,A=null,k=null,C=null,z=null,j=null,O=null}function q(Fe){var Xe=ee.identifier,ze=ee.core;ee._addHook(ia(Fe,function(){var et=$u(null,Fe,ze);i=et.getExtCfg(Xe,FHt);var Pt=C;C=!!i.blkCdnCfg,!Qi(Pt)&&Pt!==C&&(!C&&c?L&&L(c,Ee,x):$e()),Qi(g)&&(g=i.syncMode===2),Qi(x)&&(x=i.syncMode===1);var Ii=i.customEvtName||RHt;o!==Ii&&(g?Me(Ii):(Se(),o=Ii)),Qi(c)&&(c=i.cfgUrl),c||(r=Fe,x&&pe())})),j=i.overrideSyncFn,z=i.overrideFetchFn,O=i[Ike],F=i[Tke],A=i[Ake],L=ie(),k=0,c&&!C&&L&&L(c,Ee,x)}function fe(Fe,Xe){if(Fe){if(r=Fe,Xe&&!K)return pe();if(g&&!K)return ee.core.updateCfg(Fe),!0}return!1}function Se(){try{var Fe=yu();Fe&&kx(Fe,null,null,s)}catch{}}function pe(Fe){try{return j&&wr(j)?j(r,Fe):oDe(o,r,Fe)}catch{}return!1}function Me(Fe){try{return Se(),Fe&&(o=Fe,Ie()),!0}catch{}return!1}function ie(){var Fe=z;return Qi(Fe)&&(B2()?Fe=Re:$A()&&(Fe=Ue)),Fe}function Re(Fe,Xe,ze){var et=yu(),Pt=et&&et.fetch||null;if(Fe&&Pt&&wr(Pt))try{var Ii={method:ZWe},Gt=new Request(Fe,Ii);af(fetch(Gt),function(ji){var an=ji.value;ji.rejected?We(Xe,400):an.ok?af(an.text(),function(en){We(Xe,an.status,en.value,ze)}):We(Xe,an.status,null,ze)})}catch{}}function Ue(Fe,Xe,ze){try{var et=new XMLHttpRequest;et.open(ZWe,Fe),et.onreadystatechange=function(){et.readyState===XMLHttpRequest.DONE&&We(Xe,et.status,et.responseText,ze)},et.onerror=function(){We(Xe,400)},et.ontimeout=function(){We(Xe,400)},et.send()}catch{}}function Ee(Fe,Xe,ze){try{if(Fe>=200&&Fe<400&&Xe){k=0;var et=Yu();if(et){var Pt=et.parse(Xe),Ii=WWe(Pt,ee.core),Gt=Ii&&Gu(Ii)&&Be(Ii);Gt&&fe(Gt,ze)}}else k++;k<3&&Ve()}catch{}}function We(Fe,Xe,ze,et){try{Fe(Xe,ze,et)}catch{}}function Ie(){if(g){var Fe=yu();if(Fe)try{am(Fe,o,function(Xe){var ze=Xe&&Xe.detail;if(O&&ze)O(ze);else{var et=ze&&ze.cfg,Pt=et&&Gu(et)&&Be(et);Pt&&fe(Pt)}},s,!0)}catch{}}}function Be(Fe,Xe){var ze=null;try{Fe&&(ze=Dke(Fe,F,0,5))}catch{}return ze}function Ve(){!h&&A&&(h=xu(function(){h=null,L(c,Ee,x)},A),h.unref())}function $e(){h&&h.cancel(),h=null,k=0}ee.processTelemetry=function(Fe,Xe){ee.processNext(Fe,Xe)}}),t}return e.__ieDyn=1,e}(uf);var mD="duration";var Zu="tags",Wce="deviceType",Ah="data",Fx="name",aN="traceID",Es="length",gD="stringify",_D="measurements",tv="dataType",vD="envelopeType",nS="toString",JV="_get",rS="enqueue",oS="count",Zce="eventsLimitInMem",iv="push",e4="item",pY="emitLineDelimitedJson",yD="clear",fY="createNew",t4="markAsSent",lN="clearSent",mY="bufferOverride",Qce="BUFFER_KEY",sS="SENT_BUFFER_KEY",bD="concat",i4="MAX_BUFFER_SIZE",n4="triggerSend",Dh="diagLog",Xce="initialize",r4="_sender",Jce="customHeaders",Mke="maxBatchSizeInBytes",eue="onunloadDisableBeacon",tue="isBeaconApiDisabled",Oke="alwaysUseXhrOverride",iue="disableXhr",Rke="enableSessionStorageBuffer",aS="_buffer",Nke="onunloadDisableFetch",Pke="disableSendBeaconSplit",Fke="instrumentationKey",Lke="enableSendPromise",gY="getSenderInst",Bke="unloadTransports",zke="convertUndefined",Vke="maxBatchInterval",o4="serialize",xD="_onError",nue="_onPartialSuccess",_Y="_onSuccess",rue="itemsReceived",oue="itemsAccepted",sue="oriPayload",aue="baseType",s4="sampleRate",Uke="eventsSendRequest",lue="getSamplingScore",QWe="getHashCodeScore";var jke="baseType",Mc="baseData",Xd="properties",XWe="true";function Cu(n,e,t){return Wa(n,e,t,NA)}function LHt(n,e,t){var i=t[Zu]=t[Zu]||{},r=e.ext=e.ext||{},o=e[Zu]=e[Zu]||[],s=r.user;s&&(Cu(i,ml.userAuthUserId,s.authId),Cu(i,ml.userId,s.id||s.localId));var c=r.app;c&&Cu(i,ml.sessionId,c.sesId);var h=r.device;h&&(Cu(i,ml.deviceId,h.id||h.localId),Cu(i,ml[Wce],h.deviceClass),Cu(i,ml.deviceIp,h.ip),Cu(i,ml.deviceModel,h.model),Cu(i,ml[Wce],h[Wce]));var g=e.ext.web;if(g){Cu(i,ml.deviceLanguage,g.browserLang),Cu(i,ml.deviceBrowserVersion,g.browserVer),Cu(i,ml.deviceBrowser,g.browser);var x=t[Ah]=t[Ah]||{},C=x[Mc]=x[Mc]||{},A=C[Xd]=C[Xd]||{};Cu(A,"domain",g.domain),Cu(A,"isManual",g.isManual?XWe:null),Cu(A,"screenRes",g.screenRes),Cu(A,"userConsent",g.userConsent?XWe:null)}var k=r.os;k&&(Cu(i,ml.deviceOS,k[Fx]),Cu(i,ml.deviceOSVersion,k.osVer));var O=r.trace;O&&(Cu(i,ml.operationParentId,O.parentID),Cu(i,ml.operationName,wa(n,O[Fx])),Cu(i,ml.operationId,O[aN]));for(var F={},L=o[Es]-1;L>=0;L--){var z=o[L];oo(z,function(K,ee){F[K]=ee}),o.splice(L,1)}oo(o,function(K,ee){F[K]=ee});var j=wu(wu({},i),F);j[ml.internalSdkVersion]||(j[ml.internalSdkVersion]=wa(n,"javascript:".concat(BHt.Version),64)),t[Zu]=$le(j)}function wD(n,e,t){Qi(n)||oo(n,function(i,r){L0(r)?t[i]=r:Dr(r)?e[i]=r:Ix()&&(e[i]=Yu()[gD](r))})}function cN(n,e){Qi(n)||oo(n,function(t,i){n[t]=i||e})}function uN(n,e,t,i){var r=new lke(n,i,e);Cu(r,"sampleRate",t[V7]),(t[Mc]||{}).startTime&&(r.time=W_(t[Mc].startTime)),r.iKey=t.iKey;var o=t.iKey.replace(/-/g,"");return r[Fx]=r[Fx].replace("{0}",o),LHt(n,t,r),t[Zu]=t[Zu]||[],$le(r)}function dN(n,e){Qi(e[Mc])&&yn(n,1,46,"telemetryItem.baseData cannot be null.")}var BHt={Version:"3.3.0"};function JWe(n,e,t){dN(n,e);var i=e[Mc][_D]||{},r=e[Mc][Xd]||{};wD(e[Ah],r,i),Qi(t)||cN(r,t);var o=e[Mc];if(Qi(o))return xg(n,"Invalid input for dependency data"),null;var s=o[Xd]&&o[Xd][vce]?o[Xd][vce]:"GET",c=new J_(n,o.id,o.target,o[Fx],o[mD],o.success,o.responseCode,s,o.type,o.correlationContext,r,i),h=new JC(J_[tv],c);return uN(n,J_[vD],e,h)}function Hke(n,e,t){dN(n,e);var i={},r={};e[jke]!==Q_[tv]&&(i.baseTypeSource=e[jke]),e[jke]===Q_[tv]?(i=e[Mc][Xd]||{},r=e[Mc][_D]||{}):e[Mc]&&wD(e[Mc],i,r),wD(e[Ah],i,r),Qi(t)||cN(i,t);var o=e[Mc][Fx],s=new Q_(n,o,i,r),c=new JC(Q_[tv],s);return uN(n,Q_[vD],e,c)}function eZe(n,e,t){dN(n,e);var i=e[Mc][_D]||{},r=e[Mc][Xd]||{};wD(e[Ah],r,i),Qi(t)||cN(r,t);var o=e[Mc],s=up.CreateFromInterface(n,o,r,i),c=new JC(up[tv],s);return uN(n,up[vD],e,c)}function tZe(n,e,t){dN(n,e);var i=e[Mc],r=i[Xd]||{},o=i[_D]||{};wD(e[Ah],r,o),Qi(t)||cN(r,t);var s=new X_(n,i[Fx],i.average,i.sampleCount,i.min,i.max,i.stdDev,r,o),c=new JC(X_[tv],s);return uN(n,X_[vD],e,c)}function iZe(n,e,t){dN(n,e);var i,r=e[Mc];!Qi(r)&&!Qi(r[Xd])&&!Qi(r[Xd][mD])?(i=r[Xd][mD],delete r[Xd][mD]):!Qi(e[Ah])&&!Qi(e[Ah][mD])&&(i=e[Ah][mD],delete e[Ah][mD]);var o=e[Mc],s;((e.ext||{}).trace||{})[aN]&&(s=e.ext.trace[aN]);var c=o.id||s,h=o[Fx],g=o.uri,x=o[Xd]||{},C=o[_D]||{};if(Qi(o.refUri)||(x.refUri=o.refUri),Qi(o.pageType)||(x.pageType=o.pageType),Qi(o.isLoggedIn)||(x.isLoggedIn=o.isLoggedIn[nS]()),!Qi(o[Xd])){var A=o[Xd];oo(A,function(F,L){x[F]=L})}wD(e[Ah],x,C),Qi(t)||cN(x,t);var k=new cm(n,h,g,i,x,C,c),O=new JC(cm[tv],k);return uN(n,cm[vD],e,O)}function nZe(n,e,t){dN(n,e);var i=e[Mc],r=i[Fx],o=i.uri||i.url,s=i[Xd]||{},c=i[_D]||{};wD(e[Ah],s,c),Qi(t)||cN(s,t);var h=new Nx(n,r,o,void 0,s,c,i),g=new JC(Nx[tv],h);return uN(n,Nx[vD],e,g)}function rZe(n,e,t){dN(n,e);var i=e[Mc].message,r=e[Mc].severityLevel,o=e[Mc][Xd]||{},s=e[Mc][_D]||{};wD(e[Ah],o,s),Qi(t)||cN(o,t);var c=new Rx(n,i,r,o,s),h=new JC(Rx[tv],c);return uN(n,Rx[vD],e,h)}var oZe=function(){function n(e,t){var i=[],r=!1,o=t.maxRetryCnt;this[JV]=function(){return i},this._set=function(s){return i=s,i},To(n,this,function(s){s[rS]=function(c){if(s[oS]()>=t[Zce]){r||(yn(e,2,105,"Maximum in-memory buffer size reached: "+s[oS](),!0),r=!0);return}c.cnt=c.cnt||0,!(!Qi(o)&&c.cnt>o)&&i[iv](c)},s[oS]=function(){return i[Es]},s.size=function(){for(var c=i[Es],h=0;h0){var h=[];Rn(c,function(x){h[iv](x[e4])});var g=t[pY]?h.join(` `):"["+h.join(",")+"]";return g}return null},s[fY]=function(c,h,g){var x=i.slice(0);c=c||e,h=h||{};var C=g?new Gke(c,h):new cue(c,h);return Rn(x,function(A){C[rS](A)}),C}})}return n.__ieDyn=1,n}(),cue=function(n){Zd(e,n);function e(t,i){var r=n.call(this,t,i)||this;return To(e,r,function(o,s){o[t4]=function(c){s[yD]()},o[lN]=function(c){}}),r}return e.__ieDyn=1,e}(oZe);var zHt=["AI_buffer","AI_sentBuffer"],Gke=function(n){Zd(e,n);function e(i,r){var o=n.call(this,i,r)||this,s=!1,c=r?.namePrefix,h=r[mY]||{getItem:jV,setItem:W7},g=h.getItem,x=h.setItem,C=r.maxRetryCnt;return To(e,o,function(A,k){var O=ee(e[Qce]),F=ee(e[sS]),L=q(),z=F[bD](L),j=A._set(O[bD](z));j[Es]>e[i4]&&(j[Es]=e[i4]),X(e[sS],[]),X(e[Qce],j),A[rS]=function(Se){if(A[oS]()>=e[i4]){s||(yn(i,2,67,"Maximum buffer size reached: "+A[oS](),!0),s=!0);return}Se.cnt=Se.cnt||0,!(!Qi(C)&&Se.cnt>C)&&(k[rS](Se),X(e.BUFFER_KEY,A[JV]()))},A[yD]=function(){k[yD](),X(e.BUFFER_KEY,A[JV]()),X(e[sS],[]),s=!1},A[t4]=function(Se){X(e[Qce],A._set(K(Se,A[JV]())));var pe=ee(e[sS]);pe instanceof Array&&Se instanceof Array&&(pe=pe[bD](Se),pe[Es]>e[i4]&&(yn(i,1,67,"Sent buffer reached its maximum size: "+pe[Es],!0),pe[Es]=e[i4]),X(e[sS],pe))},A[lN]=function(Se){var pe=ee(e[sS]);pe=K(Se,pe),X(e[sS],pe)},A[fY]=function(Se,pe,Me){Me=!!Me;var ie=A[JV]().slice(0),Re=ee(e[sS]).slice(0);Se=Se||i,pe=pe||{},A[yD]();var Ue=Me?new e(Se,pe):new cue(Se,pe);return Rn(ie,function(Ee){Ue[rS](Ee)}),Me&&Ue[t4](Re),Ue};function K(Se,pe){var Me=[],ie=[];return Rn(Se,function(Re){ie[iv](Re[e4])}),Rn(pe,function(Re){!wr(Re)&&Il(ie,Re[e4])===-1&&Me[iv](Re)}),Me}function ee(Se){var pe=Se;return pe=c?c+"_"+pe:pe,ne(pe)}function ne(Se){try{var pe=g(i,Se);if(pe){var Me=Yu().parse(pe);if(Dr(Me)&&(Me=Yu().parse(Me)),Me&&so(Me))return Me}}catch(ie){yn(i,1,42," storage key: "+Se+", "+Ds(ie),{exception:Yn(ie)})}return[]}function X(Se,pe){var Me=Se;try{Me=c?c+"_"+Me:Me;var ie=JSON[gD](pe);x(i,Me,ie)}catch(Re){x(i,Me,JSON[gD]([])),yn(i,2,41," storage key: "+Me+", "+Ds(Re)+". Buffer cleared",{exception:Yn(Re)})}}function q(){var Se=[];try{return Rn(zHt,function(pe){var Me=fe(pe);if(Se=Se[bD](Me),c){var ie=c+"_"+pe,Re=fe(ie);Se=Se[bD](Re)}}),Se}catch(pe){yn(i,2,41,"Transfer events from previous buffers: "+Ds(pe)+". previous Buffer items can not be removed",{exception:Yn(pe)})}return[]}function fe(Se){try{var pe=ne(Se),Me=[];return Rn(pe,function(ie){var Re={item:ie,cnt:0};Me[iv](Re)}),Z7(i,Se),Me}catch{}return[]}}),o}var t;return t=e,e.VERSION="_1",e.BUFFER_KEY="AI_buffer"+t.VERSION,e.SENT_BUFFER_KEY="AI_sentBuffer"+t.VERSION,e.MAX_BUFFER_SIZE=2e3,e}(oZe);var sZe=function(){function n(e){To(n,this,function(t){t[o4]=function(s){var c=i(s,"root");try{return Yu()[gD](c)}catch(h){yn(e,1,48,h&&wr(h[nS])?h[nS]():"Error serializing object",null,!0)}};function i(s,c){var h="__aiCircularRefCheck",g={};if(!s)return yn(e,1,48,"cannot serialize object because it is null or undefined",{name:c},!0),g;if(s[h])return yn(e,2,50,"Circular reference detected while serializing object",{name:c},!0),g;if(!s.aiDataContract){if(c==="measurements")g=o(s,"number",c);else if(c==="properties")g=o(s,"string",c);else if(c==="tags")g=o(s,"string",c);else if(so(s))g=r(s,c);else{yn(e,2,49,"Attempting to serialize an object which does not implement ISerializable",{name:c},!0);try{Yu()[gD](s),g=s}catch(x){yn(e,1,48,x&&wr(x[nS])?x[nS]():"Error serializing object",null,!0)}}return g}return s[h]=!0,oo(s.aiDataContract,function(x,C){var A=wr(C)?C()&1:C&1,k=wr(C)?C()&4:C&4,O=C&2,F=s[x]!==void 0,L=vu(s[x])&&s[x]!==null;if(A&&!F&&!O)yn(e,1,24,"Missing required field specification. The field is required but not present on source",{field:x,name:c});else if(!k){var z=void 0;L?O?z=r(s[x],x):z=i(s[x],x):z=s[x],z!==void 0&&(g[x]=z)}}),delete s[h],g}function r(s,c){var h;if(s)if(!so(s))yn(e,1,54,`This field was specified as an array in the contract but the item is not an array.\r `,{name:c},!0);else{h=[];for(var g=0;g100||e<0)&&(i.throwInternal(2,58,"Sampling rate is out of range (0..100). Sampling will be disabled, you may be sending too much data which may affect your AI service level.",{samplingRate:e},!0),e=100),this[s4]=e,this.samplingScoreGenerator=new lZe}return n.prototype.isSampledIn=function(e){var t=this[s4],i=!1;return t==null||t>=100||e.baseType===X_[tv]?!0:(i=this.samplingScoreGenerator[lue](e)0&&n<=100}var GHt=(lS={},lS[Q_.dataType]=Hke,lS[Rx.dataType]=rZe,lS[cm.dataType]=iZe,lS[Nx.dataType]=nZe,lS[up.dataType]=eZe,lS[X_.dataType]=tZe,lS[J_.dataType]=JWe,lS),Yke=function(n){Zd(e,n);function e(){var t=n.call(this)||this;t.priority=1001,t.identifier=Pce;var i,r,o,s,c,h,g,x,C=0,A,k,O,F,L,z,j,K,ee,ne,X,q,fe,Se,pe,Me,ie,Re,Ue,Ee,We,Ie,Be,Ve,$e,Fe,Xe;return To(e,t,function(ze,et){ao(),ze.pause=function(){_i(),s=!0},ze.resume=function(){s&&(s=!1,r=null,de(),bi())},ze.flush=function(Dt,pi,In){if(Dt===void 0&&(Dt=!0),!s){_i();try{return ze[n4](Dt,null,In||1)}catch(fn){yn(ze[Dh](),1,22,"flush failed, telemetry will not be collected: "+Ds(fn),{exception:Yn(fn)})}}},ze.onunloadFlush=function(){if(!s)if(j||Ee)try{return ze[n4](!0,rt,2)}catch(Dt){yn(ze[Dh](),1,20,"failed to flush with beacon sender on page unload, telemetry will not be collected: "+Ds(Dt),{exception:Yn(Dt)})}else ze.flush(!1)},ze.addHeader=function(Dt,pi){x[Dt]=pi},ze[Xce]=function(Dt,pi,In,fn){ze.isInitialized()&&yn(ze[Dh](),1,28,"Sender is already initialized"),et[Xce](Dt,pi,In,fn);var Mr=ze.identifier;h=new sZe(pi.logger),i=0,r=null,o=0,ze[r4]=null,g=0;var br=ze[Dh]();O=df(tu("Sender"),pi.evtNamespace&&pi.evtNamespace()),k=gke(O),ze._addHook(ia(Dt,function(Xr){var Oo=Xr.cfg;Oo.storagePrefix&&tN(Oo.storagePrefix);var ls=$u(null,Oo,pi),Vt=ls.getExtCfg(Mr,hZe);qo(ze,"_senderConfig",{g:function(){return Vt}}),pi.activeStatus()===V0.PENDING?ze.pause():pi.activeStatus()===V0.ACTIVE&&ze.resume(),L!==Vt.endpointUrl&&(F=L=Vt.endpointUrl),ne&&ne!==Vt[Jce]&&Rn(ne,function(Sn){delete x[Sn.header]}),z=Vt[Mke],j=(Vt[eue]===!1||Vt[tue]===!1)&&YC(),K=Vt[eue]===!1&&YC(),ee=Vt[tue]===!1&&YC(),Ee=Vt[Oke],We=!!Vt[iue],Xe=Vt.retryCodes;var ui=Vt[mY],Ci=!!Vt[Rke]&&(!!ui||lD()),qi=Vt.namePrefix,$i=Ci!==Me||Ci&&Re!==qi||Ci&&ie!==ui;if(ze[aS]){if($i)try{ze._buffer=ze._buffer[fY](br,Vt,Ci)}catch(Sn){yn(ze[Dh](),1,12,"failed to transfer telemetry to different buffer storage, telemetry will be lost: "+Ds(Sn),{exception:Yn(Sn)})}de()}else ze[aS]=Ci?new Gke(br,Vt):new cue(br,Vt);Re=qi,Me=Ci,ie=ui,Ie=!Vt[Nke]&&B2(!0),$e=!!Vt[Pke],ze._sample=new cZe(Vt.samplingPercentage,br),q=Vt[Fke],Lr(q,Oo)||yn(br,1,100,"Invalid Instrumentation key "+q),ne=Vt[Jce],Dr(F)&&!zV(F)&&ne&&ne[Es]>0?Rn(ne,function(Sn){t.addHeader(Sn.header,Sn.value)}):ne=null,Ue=Vt[Lke];var ln=Ii();Fe?Fe.SetConfig(ln):(Fe=new PDe,Fe[Xce](ln,br));var rn=Vt.httpXHROverride,Ui=null,pn=null,Ji=Wle([3,1,2],Vt.transports);Ui=Fe&&Fe[gY](Ji,!1);var Jn=Fe&&Fe.getFallbackInst();Be=function(Sn,Ko){return Ut(Jn,Sn,Ko)},Ve=function(Sn,Ko){return Ut(Jn,Sn,Ko,!1)},Ui=Ee?rn:Ui||rn||Jn,ze[r4]=function(Sn,Ko){return Ut(Ui,Sn,Ko)},Ie&&(A=Tt);var uo=Wle([3,1],Vt[Bke]);Ie||(uo=uo.filter(function(Sn){return Sn!==2})),pn=Fe&&Fe[gY](uo,!0),pn=Ee?rn:pn||rn,(Ee||Vt[Bke]||!A)&&pn&&(A=function(Sn,Ko){return Ut(pn,Sn,Ko)}),A||(A=Be),X=Vt.disableTelemetry,fe=Vt[zke]||Lx,Se=Vt.isRetryDisabled,pe=Vt[Vke]}))},ze.processTelemetry=function(Dt,pi){var In;pi=ze._getTelCtx(pi);var fn=pi[Dh]();try{var Mr=ve(Dt,fn);if(!Mr)return;var br=Qt(Dt,fn);if(!br)return;var Xr=h[o4](br),Oo=ze[aS];de(Xr);var ls=(In={},In[e4]=Xr,In.cnt=0,In);Oo[rS](ls),bi()}catch(Vt){yn(fn,2,12,"Failed adding telemetry to the sender's buffer, some telemetry will be lost: "+Ds(Vt),{exception:Yn(Vt)})}ze.processNext(Dt,pi)},ze.isCompletelyIdle=function(){return!s&&C===0&&ze._buffer[oS]()===0},ze._xhrReadyStateChange=function(Dt,pi,In){if(!ti(pi))return Gt(Dt,pi,In)},ze[n4]=function(Dt,pi,In){Dt===void 0&&(Dt=!0);var fn;if(!s)try{var Mr=ze[aS];if(X)Mr[yD]();else{if(Mr[oS]()>0){var br=Mr.getItems();Qr(In||0,Dt),pi?fn=pi.call(ze,br,Dt):fn=ze[r4](br,Dt)}o=+new Date}_i()}catch(Oo){var Xr=C7();(!Xr||Xr>9)&&yn(ze[Dh](),1,40,"Telemetry transmission failed, some telemetry will be lost: "+Ds(Oo),{exception:Yn(Oo)})}return fn},ze.getOfflineSupport=function(){var Dt;return Dt={getUrl:function(){return F},createPayload:xe},Dt[o4]=Rt,Dt.batch=nt,Dt.shouldProcess=function(pi){return!!ve(pi)},Dt},ze._doTeardown=function(Dt,pi){ze.onunloadFlush(),qC(k,!1),ao()},ze[xD]=function(Dt,pi,In){if(!ti(Dt))return ji(Dt,pi,In)},ze[nue]=function(Dt,pi){if(!ti(Dt))return an(Dt,pi)},ze[_Y]=function(Dt,pi){if(!ti(Dt))return en(Dt,pi)},ze._xdrOnLoad=function(Dt,pi){if(!ti(pi))return Pt(Dt,pi)};function Pt(Dt,pi){var In=dZe(Dt);if(Dt&&(In+""=="200"||In===""))i=0,ze[_Y](pi,0);else{var fn=L7(In);fn&&fn[rue]&&fn[rue]>fn[oue]&&!Se?ze[nue](pi,fn):ze[xD](pi,x7(Dt))}}function Ii(){var Dt;try{var pi={xdrOnComplete:function(fn,Mr,br){var Xr=ir(br);if(Xr)return Pt(fn,Xr)},fetchOnComplete:function(fn,Mr,br,Xr){var Oo=ir(Xr);if(Oo)return we(fn.status,Oo,fn.url,Oo[Es],fn.statusText,br||"")},xhrOnComplete:function(fn,Mr,br){var Xr=ir(br);if(Xr)return Gt(fn,Xr,Xr[Es])},beaconOnRetry:function(fn,Mr,br){return vt(fn,Mr,br)}},In=(Dt={},Dt[Lke]=Ue,Dt.isOneDs=!1,Dt.disableCredentials=!1,Dt[iue]=We,Dt.disableBeacon=!ee,Dt.disableBeaconSync=!K,Dt.senderOnCompleteCallBack=pi,Dt);return In}catch{}return null}function Gt(Dt,pi,In){Dt.readyState===4&&we(Dt.status,pi,Dt.responseURL,In,L2(Dt),dZe(Dt)||Dt.response)}function ji(Dt,pi,In){yn(ze[Dh](),2,26,"Failed to send telemetry.",{message:pi}),ze._buffer&&ze._buffer[lN](Dt)}function an(Dt,pi){for(var In=[],fn=[],Mr=pi.errors.reverse(),br=0,Xr=Mr;br0&&ze[_Y](Dt,pi[oue]),In[Es]>0&&ze[xD](In,L2(null,["partial success",pi[oue],"of",pi.itemsReceived].join(" "))),fn[Es]>0&&(di(fn),yn(ze[Dh](),2,40,"Partial success. Delivered: "+Dt[Es]+", Failed: "+In[Es]+". Will retry to send "+fn[Es]+" our of "+pi[rue]+" items"))}function en(Dt,pi){ze._buffer&&ze._buffer[lN](Dt)}function ir(Dt){try{if(Dt){var pi=Dt,In=pi[sue];return In&&In[Es]?In:null}}catch{}return null}function ve(Dt,pi){if(X)return!1;if(!Dt)return pi&&yn(pi,1,7,"Cannot send empty telemetry"),!1;if(Dt.baseData&&!Dt[aue])return pi&&yn(pi,1,70,"Cannot send telemetry without baseData and baseType"),!1;if(Dt[aue]||(Dt[aue]="EventData"),!ze[r4])return pi&&yn(pi,1,28,"Sender was not initialized"),!1;if(Qe(Dt))Dt[V7]=ze._sample[s4];else return pi&&yn(pi,2,33,"Telemetry item was sampled out and not sent",{SampleRate:ze._sample[s4]}),!1;return!0}function Qt(Dt,pi){var In=Dt.iKey||q,fn=e.constructEnvelope(Dt,In,pi,fe);if(!fn){yn(pi,1,47,"Unable to create an AppInsights envelope");return}var Mr=!1;if(Dt[Zu]&&Dt[Zu][U7]&&(Rn(Dt[Zu][U7],function(br){try{br&&br(fn)===!1&&(Mr=!0,xg(pi,"Telemetry processor check returns false"))}catch(Xr){yn(pi,1,64,"One of telemetry initializers failed, telemetry item will not be sent: "+Ds(Xr),{exception:Yn(Xr)},!0)}}),delete Dt[Zu][U7]),!Mr)return fn}function Rt(Dt){var pi=uZe,In=ze[Dh]();try{var fn=ve(Dt,In),Mr=null;fn&&(Mr=Qt(Dt,In)),Mr&&(pi=h[o4](Mr))}catch{}return pi}function nt(Dt){var pi=uZe;return Dt&&Dt[Es]&&(pi="["+Dt.join(",")+"]"),pi}function xe(Dt){var pi,In=ge();return pi={urlString:F},pi[Ah]=Dt,pi.headers=In,pi}function Qe(Dt){return ze._sample.isSampledIn(Dt)}function Xt(Dt,pi,In,fn){pi===200&&Dt?ze._onSuccess(Dt,Dt[Es]):fn&&ze[xD](Dt,fn)}function Ut(Dt,pi,In,fn){fn===void 0&&(fn=!0);var Mr=function(Oo,ls,Vt){return Xt(pi,Oo,ls,Vt)},br=qe(pi),Xr=Dt&&Dt.sendPOST;return Xr&&br?(fn&&ze._buffer[t4](pi),Xr(br,Mr,!In)):null}function qe(Dt){var pi;if(so(Dt)&&Dt[Es]>0){var In=ze[aS].batchPayloads(Dt),fn=ge(),Mr=(pi={},pi[Ah]=In,pi.urlString=F,pi.headers=fn,pi.disableXhrSync=We,pi.disableFetchKeepAlive=!Ie,pi[sue]=Dt,pi);return Mr}return null}function ge(){try{var Dt=x||{};return zV(F)&&(Dt[Na[6]]=Na[7]),Dt}catch{}return null}function de(Dt){var pi=Dt?Dt[Es]:0;return ze[aS].size()+pi>z?((!k||k.isOnline())&&ze[n4](!0,null,10),!0):!1}function we(Dt,pi,In,fn,Mr,br){var Xr=null;if(ze._appId||(Xr=L7(br),Xr&&Xr.appId&&(ze._appId=Xr.appId)),(Dt<200||Dt>=300)&&Dt!==0){if((Dt===301||Dt===307||Dt===308)&&!Je(In)){ze[xD](pi,Mr);return}!Se&&yr(Dt)?(di(pi),yn(ze[Dh](),2,40,". Response code "+Dt+". Will retry to send "+pi[Es]+" items.")):ze[xD](pi,Mr)}else if(k&&!k.isOnline()){if(!Se){var Oo=10;di(pi,Oo),yn(ze[Dh](),2,40,". Offline - Response Code: ".concat(Dt,". Offline status: ").concat(!k.isOnline(),". Will retry to send ").concat(pi.length," items."))}}else Je(In),Dt===206?(Xr||(Xr=L7(br)),Xr&&!Se?ze[nue](pi,Xr):ze[xD](pi,Mr)):(i=0,ze[_Y](pi,fn))}function Je(Dt){return g>=10?!1:!Qi(Dt)&&Dt!==""&&Dt!==F?(F=Dt,++g,!0):!1}function rt(Dt,pi){if(A)A(Dt,!1);else{var In=Fe&&Fe[gY]([3],!0);return Ut(In,Dt,pi)}}function vt(Dt,pi,In){var fn=Dt,Mr=fn&&fn[sue];if($e)Ve&&Ve(Mr,!0),yn(ze[Dh](),2,40,". Failed to send telemetry with Beacon API, retried with normal sender.");else{for(var br=[],Xr=0;Xr0&&(Ve&&Ve(br,!0),yn(ze[Dh](),2,40,". Failed to send telemetry with Beacon API, retried with normal sender."))}}function ti(Dt){try{if(Dt&&Dt[Es])return Dr(Dt[0])}catch{}return null}function Tt(Dt,pi){var In=null;if(so(Dt)){for(var fn=Dt[Es],Mr=0;Mr-1}function mr(){var Dt="getNotifyMgr";return ze.core[Dt]?ze.core[Dt]():ze.core._notificationManager}function Qr(Dt,pi){var In=mr();if(In&&In[Uke])try{In[Uke](Dt,pi)}catch(fn){yn(ze[Dh](),1,74,"send request notification failed: "+Ds(fn),{exception:Yn(fn)})}}function Lr(Dt,pi){var In=pi.disableInstrumentationKeyValidation,fn=Qi(In)?!1:In;if(fn)return!0;var Mr="^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",br=new RegExp(Mr);return br.test(Dt)}function ao(){ze[r4]=null,ze[aS]=null,ze._appId=null,ze._sample=null,x={},k=null,i=0,r=null,o=null,s=!1,c=null,h=null,g=0,C=0,A=null,O=null,F=null,L=null,z=0,j=!1,ne=null,X=!1,q=null,fe=Lx,Se=!1,Me=null,Re=Lx,We=!1,Ie=!1,$e=!1,Be=null,Ve=null,Fe=null,qo(ze,"_senderConfig",{g:function(){return Kle({},hZe)}})}}),t}return e.constructEnvelope=function(t,i,r,o){var s;i!==t.iKey&&!Qi(i)?s=wu(wu({},t),{iKey:i}):s=t;var c=GHt[s.baseType]||Hke;return c(r,s,o)},e}(uf);var qke="duration",cS="properties";var Sg="requestUrl",a4="inst",uS="length",W0="traceID",Bx="spanID",hm="traceFlags",l4="context",CD="aborted",c4="traceId",u4="spanId",vY="_addHook",nv="core",uue="includeCorrelationHeaders",yY="getAbsoluteUrl",SD="headers",pm="requestHeaders",due="setRequestHeader",$ke="trackDependencyDataInternal",dS="startTime",hN="toLowerCase",hue="enableRequestHeaderTracking",Kke="enableAjaxErrorStatusText",Wke="enableAjaxPerfTracking",Zke="maxAjaxCallsPerView",Qke="excludeRequestFromAutoTrackingPatterns",Xke="addRequestContext",pue="disableAjaxTracking",Jke="ajaxPerfLookupDelay",eMe="disableFetchTracking",tMe="enableResponseHeaderTracking",Eg="status",hS="statusText",ED="headerMap",bY="openDone",xY="sendDone",pS="requestSentTime",wY="abortDone",CY="getTraceId",SY="getTraceFlags",zx="method",EY="errorStatusText",fue="stateChangeAttached",iMe="responseText",pN="responseFinishedTime",IY="CreateTrackItem",mue="response",nMe="getAllResponseHeaders",TY="getPartAProps",d4="perfMark",ID="name",AY="perfTiming",h4="exception",rMe="ajaxDiagnosticsMessage",DY="correlationContext",gue="ajaxTotalDuration",_ue="eventTraceCtx";function pZe(n,e,t){var i=0,r=n[e],o=n[t];return r&&o&&(i=Sd(r,o)),i}function fN(n,e,t,i,r){var o=0,s=pZe(t,i,r);return s&&(o=TD(n,e,wg(s))),o}function TD(n,e,t){var i="ajaxPerf",r=0;if(n&&e&&t){var o=n[i]=n[i]||{};o[e]=t,r=1}return r}function YHt(n,e){var t=n[AY],i=e[cS]||{},r=0,o="name",s="Start",c="End",h="domainLookup",g="connect",x="redirect",C="request",A="response",k="startTime",O=h+s,F=h+c,L=g+s,z=g+c,j=C+s,K=C+c,ee=A+s,ne=A+c,X=x+s,q=x=c,fe="transferSize",Se="encodedBodySize",pe="decodedBodySize",Me="serverTiming";if(t){r|=fN(i,x,t,X,q),r|=fN(i,h,t,O,F),r|=fN(i,g,t,L,z),r|=fN(i,C,t,j,K),r|=fN(i,A,t,ee,ne),r|=fN(i,"networkConnect",t,k,z),r|=fN(i,"sentRequest",t,j,ne);var ie=t[qke];ie||(ie=pZe(t,k,ne)||0),r|=TD(i,qke,ie),r|=TD(i,"perfTotal",ie);var Re=t[Me];if(Re){var Ue={};Rn(Re,function(Ee,We){var Ie=P2(Ee[o]||""+We),Be=Ue[Ie]||{};oo(Ee,function(Ve,$e){(Ve!==o&&Dr($e)||L0($e))&&(Be[Ve]&&($e=Be[Ve]+";"+$e),($e||!Dr($e))&&(Be[Ve]=$e))}),Ue[Ie]=Be}),r|=TD(i,Me,Ue)}r|=TD(i,fe,t[fe]),r|=TD(i,Se,t[Se]),r|=TD(i,pe,t[pe])}else n[d4]&&(r|=TD(i,"missing",n.perfAttempts));r&&(e[cS]=i)}var qHt=function(){function n(){var e=this;e[bY]=!1,e.setRequestHeaderDone=!1,e[xY]=!1,e[wY]=!1,e[fue]=!1}return n}();var oMe=function(){function n(e,t,i,r){var o,s=this,c=i,h="responseText";s[d4]=null,s.completed=!1,s.requestHeadersSize=null,s[pm]=null,s.responseReceivingDuration=null,s.callbackDuration=null,s[gue]=null,s[CD]=0,s.pageUrl=null,s[Sg]=null,s.requestSize=0,s[zx]=null,s[Eg]=null,s[pS]=null,s.responseStartedTime=null,s[pN]=null,s.callbackFinishedTime=null,s.endTime=null,s.xhrMonitoringState=new qHt,s.clientFailure=0,s[W0]=e,s[Bx]=t,s[hm]=r?.getTraceFlags(),r?s[_ue]=(o={},o[c4]=r[CY](),o[u4]=r.getSpanId(),o[hm]=r[SY](),o):s[_ue]=null,To(n,s,function(g){g.getAbsoluteUrl=function(){return g[Sg]?eke(g[Sg]):null},g.getPathName=function(){return g[Sg]?XC(c,tke(g[zx],g[Sg])):null},g[IY]=function(x,C,A){var k;if(g.ajaxTotalDuration=Math.round(Sd(g.requestSentTime,g.responseFinishedTime)*1e3)/1e3,g[gue]<0)return null;var O=(k={id:"|"+g[W0]+"."+g[Bx],target:g[yY]()},k[ID]=g.getPathName(),k.type=x,k[dS]=null,k.duration=g[gue],k.success=+g[Eg]>=200&&+g[Eg]<400,k.responseCode=+g[Eg],k[cS]={HttpMethod:g[zx]},k),F=O[cS];if(g[CD]&&(F[CD]=!0),g[pS]&&(O[dS]=new Date,O[dS].setTime(g[pS])),YHt(g,O),C&&ap(g.requestHeaders)[uS]>0&&(F[pm]=g[pm]),A){var L=A();if(L){var z=L[DY];if(z&&(O.correlationContext=z),L[ED]&&ap(L.headerMap)[uS]>0&&(F.responseHeaders=L[ED]),g[EY])if(g[Eg]>=400){var j=L.type;(j===""||j==="text")&&(F.responseText=L.responseText?L[hS]+" - "+L[h]:L[hS]),j==="json"&&(F.responseText=L.response?L[hS]+" - "+JSON.stringify(L[mue]):L[hS])}else g[Eg]===0&&(F.responseText=L[hS]||"")}}return O},g[TY]=function(){var x,C=null,A=g[_ue];if(A&&(A[c4]||A[u4])){C={};var k=C[dp.TraceExt]=(x={},x[W0]=A[c4],x.parentID=A[u4],x);Qi(A[hm])||(k[hm]=A[hm])}return C}})}return n.__ieDyn=1,n}();var iu;var OY="diagLog",AD="_ajaxData",mN="fetch",kY="Failed to monitor XMLHttpRequest",bZe=", monitoring data for this ajax call ",p4=bZe+"may be incorrect.",fZe=bZe+"won't be sent.",mZe="Failed to get Request-Context correlation header as it may be not included in the response or not accessible.",gZe="Failed to add custom defined request context as configured call back may missing a null check.",_Ze="Failed to calculate the duration of the ",vZe=0;function $Ht(){var n=yu();return!n||Qi(n.Request)||Qi(n.Request[lp])||Qi(n[mN])?null:n[mN]}function KHt(n,e){var t,i,r=!1;if($A()){var o=XMLHttpRequest[lp];r=!Qi(o)&&!Qi(o.open)&&!Qi(o.send)&&!Qi(o.abort)}var s=C7();if(s&&s<9&&(r=!1),r)try{var c=new XMLHttpRequest,h={xh:[],i:(t={},t[e]={},t)};c[AD]=h;var g=XMLHttpRequest[lp].open;XMLHttpRequest[lp].open=g}catch(x){r=!1,RY(n,15,"Failed to enable XMLHttpRequest monitoring, extension is not supported",(i={},i[h4]=Yn(x),i))}return r}var m4=function(n,e){return n&&e&&n[AD]?(n[AD].i||{})[e]:null},WHt=function(n,e,t){if(n){var i=(n[AD]||{}).xh;i&&i.push({n:e,v:t})}},sMe=function(n,e){var t=!1;if(n){var i=(n[AD]||{}).xh;i&&Rn(i,function(r){if(r.n===e)return t=!0,-1})}return t};function yue(n,e){var t="";try{var i=m4(n,e);i&&i[Sg]&&(t+="(url: '"+i[Sg]+"')")}catch{}return t}function RY(n,e,t,i,r){yn(n[OY](),1,e,t,i,r)}function fS(n,e,t,i,r){yn(n[OY](),2,e,t,i,r)}function MY(n,e,t){return function(i){var r;RY(n,e,t,(r={ajaxDiagnosticsMessage:yue(i[a4],n._ajaxDataId)},r[h4]=Yn(i.err),r))}}function f4(n,e){return n&&e?zc(n,e):-1}function yZe(n,e,t){var i={id:e,fn:t};return n.push(i),{remove:function(){Rn(n,function(r,o){if(r.id===i.id)return n.splice(o,1),-1})}}}function xZe(n,e,t,i){var r=!0;return Rn(e,function(o,s){try{o.fn.call(null,t)===!1&&(r=!1)}catch(c){yn(n&&n.logger,1,64,"Dependency "+i+" [#"+s+"] failed: "+Ds(c),{exception:Yn(c)},!0)}}),r}function ZHt(n,e,t,i,r,o){var s,c=n[uS];if(c>0){var h=(s={},s[nv]=e,s.xhr=i,s.input=r,s.init=o,s.traceId=t[W0],s.spanId=t[Bx],s.traceFlags=t[hm],s.context=t[l4]||{},s.aborted=!!t[CD],s);xZe(e,n,h,"listener"),t[W0]=h[c4],t[Bx]=h[u4],t[hm]=h[hm],t[l4]=h[l4]}}var vue="*.blob.core.",wZe=fg([vue+"windows.net",vue+"chinacloudapi.cn",vue+"cloudapi.de",vue+"usgovcloudapi.net"]),QHt=[/https:\/\/[^\/]*(\.pipe\.aria|aria\.pipe|events\.data|collector\.azure)\.[^\/]+\/(OneCollector\/1|Collector\/3)\.0/i],XHt=fg((iu={},iu[Zke]=500,iu[pue]=!1,iu[eMe]=!1,iu[Qke]=void 0,iu.disableCorrelationHeaders=!1,iu.distributedTracingMode=1,iu.correlationHeaderExcludedDomains=wZe,iu.correlationHeaderDomains=void 0,iu.correlationHeaderExcludePatterns=void 0,iu.appId=void 0,iu.enableCorsCorrelation=!1,iu[hue]=!1,iu[tMe]=!1,iu[Kke]=!1,iu[Wke]=!1,iu.maxAjaxPerfLookupAttempts=3,iu[Jke]=25,iu.ignoreHeaders=["Authorization","X-API-Key","WWW-Authenticate"],iu[Xke]=void 0,iu.addIntEndpoints=!0,iu)),aMe=function(n){Zd(e,n);function e(){var t=n.call(this)||this;t.identifier=e.identifier,t.priority=120;var i,r,o,s,c,h,g,x,C,A,k,O,F,L,z,j,K,ee,ne,X,q,fe,Se,pe,Me,ie,Re,Ue,Ee,We;return To(e,t,function(Ie,Be){var Ve=Be[vY];$e(),Ie.initialize=function(de,we,Je,rt){Ie.isInitialized()||(Be.initialize(de,we,Je,rt),X=df(tu("ajax"),we&&we.evtNamespace&&we.evtNamespace()),Fe(de),Ii(),et(),Xe())},Ie._doTeardown=function(){$e()},Ie.trackDependencyData=function(de,we){ge(pe,Ie[nv],null,de,we)},Ie[uue]=function(de,we,Je,rt){var vt=Ie._currentWindowHost||o;if(ZHt(Se,Ie[nv],de,rt,we,Je),we||we===""){if(Dce(s,de[yY](),vt)){Je||(Je={});var ti=new Headers(Je[SD]||(we instanceof Request?we[SD]||{}:{}));if(A){var Tt="|"+de[W0]+"."+de[Bx];ti.set(Na[3],Tt),c&&(de[pm][Na[3]]=Tt)}var di=Ee||x&&x.appId();if(di&&(ti.set(Na[0],Na[2]+di),c&&(de[pm][Na[0]]=Na[2]+di)),C){var li=de[hm];Qi(li)&&(li=1);var bi=P7(N7(de[W0],de[Bx],li));ti.set(Na[4],bi),c&&(de[pm][Na[4]]=bi)}Je[SD]=ti}return Je}else if(rt){if(Dce(s,de[yY](),vt)){if(A)if(sMe(rt,Na[3]))fS(Ie,71,"Unable to set ["+Na[3]+"] as it has already been set by another instance");else{var Tt="|"+de[W0]+"."+de[Bx];rt[due](Na[3],Tt),c&&(de[pm][Na[3]]=Tt)}var di=Ee||x&&x.appId();if(di&&(sMe(rt,Na[0])?fS(Ie,71,"Unable to set ["+Na[0]+"] as it has already been set by another instance"):(rt[due](Na[0],Na[2]+di),c&&(de[pm][Na[0]]=Na[2]+di))),C){var li=de[hm];if(Qi(li)&&(li=1),sMe(rt,Na[4]))fS(Ie,71,"Unable to set ["+Na[4]+"] as it has already been set by another instance");else{var bi=P7(N7(de[W0],de[Bx],li));rt[due](Na[4],bi),c&&(de[pm][Na[4]]=bi)}}}return rt}},Ie[$ke]=function(de,we,Je){if(F===-1||g=0;Qr--){var Lr=mr[Qr];if(Lr){if(Lr.entryType==="resource")Lr.initiatorType===de&&(f4(Lr[ID],li)!==-1||f4(li,Lr[ID])!==-1)&&(yr=Lr);else if(Lr.entryType==="mark"&&Lr[ID]===vt[ID]){we[AY]=yr;break}if(Lr[dS]=Tt||we.async===!1?(vt&&wr(ti.clearMarks)&&ti.clearMarks(vt[ID]),we.perfAttempts=bi,Je()):xu(_i,di)}catch(ao){rt(ao)}})()}function Qe(de,we){var Je,rt=an(),vt=rt&&rt[CY]()||cf(),ti=z0(cf(),0,16),Tt=new oMe(vt,ti,Ie[OY](),(Je=Ie.core)===null||Je===void 0?void 0:Je.getTraceCtx());Tt[hm]=rt&&rt[SY](),Tt[pS]=VV(),Tt[EY]=h;var di;if(de instanceof Request?di=(de||{}).url||"":di=de,di===""){var li=Cd();li&&li.href&&(di=hAe(li.href,"#")[0])}Tt[Sg]=di;var bi="GET";we&&we[zx]?bi=we[zx]:de&&de instanceof Request&&(bi=de[zx]),Tt[zx]=bi;var _i={};if(c){var yr=new Headers((we?we[SD]:0)||(de instanceof Request?de[SD]||{}:{}));yr.forEach(function(mr,Qr){ze(Qr)&&(_i[Qr]=mr)})}return Tt[pm]=_i,nt(mN,Tt),Tt}function Xt(de){var we="";try{Qi(de)||(typeof de=="string"?we+="(url: '".concat(de,"')"):we+="(url: '".concat(de.url,"')"))}catch(Je){RY(Ie,15,"Failed to grab failed fetch diagnostics message",{exception:Yn(Je)})}return we}function Ut(de,we,Je,rt,vt,ti,Tt){if(!vt)return;function di(li,bi,_i){var yr=_i||{};yr.fetchDiagnosticsMessage=Xt(Je),bi&&(yr.exception=Yn(bi)),fS(Ie,li,_Ze+"fetch call"+fZe,yr)}vt[pN]=VV(),vt[Eg]=we,xe(mN,vt,function(){var li=vt[IY]("Fetch",c,ti),bi;try{ne&&(bi=ne({status:we,request:Je,response:rt}))}catch{fS(Ie,104,gZe)}if(li){bi!==void 0&&(li[cS]=wu(wu({},li.properties),bi));var _i=vt[TY]();ge(pe,Ie[nv],vt,li,null,_i)}else di(14,null,{requestSentTime:vt[pS],responseFinishedTime:vt[pN]})},function(li){di(18,li,null)})}function qe(de){var we;if(de&&de[SD])try{var Je=de[SD].get(Na[0]);return kce(Je)}catch(rt){fS(Ie,18,mZe,(we={fetchDiagnosticsMessage:Xt(de)},we[h4]=Yn(rt),we))}}function ge(de,we,Je,rt,vt,ti){var Tt,di=!0,li=de[uS];if(li>0){var bi=(Tt={item:rt},Tt[cS]=vt,Tt.sysProperties=ti,Tt.context=Je?Je[l4]:null,Tt.aborted=Je?!!Je[CD]:!1,Tt);di=xZe(we,de,bi,"initializer")}di&&Ie[$ke](rt,vt,ti)}}),t}return e.prototype.processTelemetry=function(t,i){this.processNext(t,i)},e.prototype.addDependencyInitializer=function(t){return null},e.identifier="AjaxDependencyPlugin",e}(uf);var CZe=function(){function n(){}return n}();var SZe=function(){function n(){this.id="browser",this.deviceClass="Browser"}return n}();var JHt="3.3.0",EZe=function(){function n(e,t){var i=this,r=ia(e,function(){var o=e.sdkExtension;i.sdkVersion=(o?o+"_":"")+"javascript:"+JHt});t&&t.add(r)}return n}();var IZe=function(){function n(){}return n}();var g4="sessionManager",gN="update",_4="isUserCookieSet",v4="isNewUser",bue="getTraceCtx",NY="telemetryTrace",xue="applySessionContext",wue="applyApplicationContext",Cue="applyDeviceContext",Sue="applyOperationContext",Eue="applyUserContext",Iue="applyOperatingSystemContxt",Tue="applyLocationContext",Aue="applyInternalContext",Vx="accountId",y4="getSessionId",b4="namePrefix",TZe="sessionCookiePostfix",Due="userCookiePostfix",_N="idLength",x4="getNewId",vN="length",DD="automaticSession",kD="authenticatedId",w4="acquisitionDate",PY="renewalDate",yN="join",C4="cookieSeparator",kue="authUserCookieName";var e8t="ai_session",t8t=864e5,i8t=18e5,n8t=6e4,lMe=function(){function n(){}return n}();var AZe=function(){function n(e,t,i){var r=this,o,s,c=lf(t),h=H2(t),g,x;To(n,r,function(C){e||(e={});var A=ia(e,function(j){g=e.sessionExpirationMs||t8t,x=e.sessionRenewalMs||i8t;var K=e.sessionCookiePostfix||e[b4]||"";o=e8t+K});i&&i.add(A),C[DD]=new lMe,C[gN]=function(){var j=yd(),K=!1,ee=C[DD];if(ee.id||(K=!k(ee,j)),!K&&g>0){var ne=j-ee[w4],X=j-ee[PY];K=ne<0||X<0,K=K||ne>g,K=K||X>x}K?F(j):(!s||j-s>n8t)&&L(ee,j)},C.backup=function(){var j=C[DD];z(j.id,j[w4],j[PY])};function k(j,K){var ee=!1,ne=h.get(o);if(ne&&wr(ne.split))ee=O(j,ne);else{var X=$7(c,o);X&&(ee=O(j,X))}return ee||!!j.id}function O(j,K){var ee=!1,ne=", session will be reset",X=K.split("|");if(X[vN]>=2)try{var q=+X[1]||0,fe=+X[2]||0;isNaN(q)||q<=0?yn(c,2,27,"AI session acquisition date is 0"+ne):isNaN(fe)||fe<=0?yn(c,2,27,"AI session renewal date is 0"+ne):X[0]&&(j.id=X[0],j[w4]=q,j[PY]=fe,ee=!0)}catch(Se){yn(c,1,9,"Error parsing ai_session value ["+(K||"")+"]"+ne+" - "+Ds(Se),{exception:Yn(Se)})}return ee}function F(j){var K=e[x4]||V2;C.automaticSession.id=K(e[_N]||22),C[DD][w4]=j,L(C[DD],j),iN()||yn(c,2,0,"Browser does not support local storage. Session durations will be inaccurate.")}function L(j,K){var ee=j[w4];j[PY]=K;var ne=x,X=ee+g-K,q=[j.id,ee,K],fe=0;X0?fe:null,Se),s=K}function z(j,K,ee){K7(c,o,[j,K,ee][yN]("|"))}})}return n.__ieDyn=1,n}();var DZe=function(){function n(e,t,i,r){var o=this;o.traceID=e||cf(),o.parentID=t;var s=Cd();!i&&s&&s.pathname&&(i=s.pathname),o.name=wa(r,i)}return n}();function kZe(n){return!(typeof n!="string"||!n||n.match(/,|;|=| |\|/))}var MZe=function(){function n(e,t,i){this.isNewUser=!1,this.isUserCookieSet=!1;var r=lf(t),o=H2(t),s;To(n,this,function(c){qo(c,"config",{g:function(){return e}});var h=ia(e,function(){var A=e[Due]||"";s=n.userCookieName+A;var k=o.get(s);if(k){c[v4]=!1;var O=k.split(n[C4]);O[vN]>0&&(c.id=O[0],c[_4]=!!c.id)}if(!c.id){c.id=g();var F=x(c.id);C(F[yN](n[C4]));var L=(e[b4]||"")+"ai_session";ske(r,L)}c[Vx]=e[Vx]||void 0;var z=o.get(n[kue]);if(z){z=decodeURI(z);var j=z.split(n[C4]);j[0]&&(c[kD]=j[0]),j[vN]>1&&j[1]&&(c[Vx]=j[1])}});i&&i.add(h);function g(){var A=e||{},k=A[x4]||V2,O=k(A[_N]?e[_N]:22);return O}function x(A){var k=W_(new Date);c.accountAcquisitionDate=k,c[v4]=!0;var O=[A,k];return O}function C(A){var k=31536e3;c[_4]=o.set(s,A,k)}c.setAuthenticatedUserContext=function(A,k,O){O===void 0&&(O=!1);var F=!kZe(A)||k&&!kZe(k);if(F){yn(r,2,60,"Setting auth user context failed. User auth/account id should be of type string, and not contain commas, semi-colons, equal signs, spaces, or vertical-bars.",!0);return}c[kD]=A;var L=c[kD];k&&(c[Vx]=k,L=[c[kD],c.accountId][yN](n[C4])),O&&o.set(n[kue],encodeURI(L))},c.clearAuthenticatedUserContext=function(){c[kD]=null,c[Vx]=null,o.del(n[kue])},c[gN]=function(A){if(c.id!==A||!c[_4]){var k=A||g(),O=x(k);C(O[yN](n[C4]))}}})}return n.cookieSeparator="|",n.userCookieName="ai_user",n.authUserCookieName="ai_authUser",n}();var Mue="ext",Oue="tags";function S4(n,e){n&&n[e]&&ap(n[e])[vN]===0&&delete n[e]}function OZe(){return null}var RZe=function(){function n(e,t,i,r){var o=this,s=e.logger;To(n,this,function(c){if(c.appId=OZe,c[y4]=OZe,c.application=new CZe,c.internal=new EZe(t,r),FA()){c[g4]=new AZe(t,e,r),c.device=new SZe,c.location=new IZe,c.user=new MZe(t,e,r);var h=void 0,g=void 0,x;i&&(h=i.getTraceId(),g=i.getSpanId(),x=i.getName()),c[NY]=new DZe(h,g,x,s),c.session=new lMe}c[y4]=function(){var C=c.session,A=null;if(C&&Dr(C.id))A=C.id;else{var k=(c[g4]||{})[DD];A=k&&Dr(k.id)?k.id:null}return A},c[xue]=function(C,A){Wa(wd(C.ext,dp.AppExt),"sesId",c[y4](),Dr)},c[Iue]=function(C,A){Wa(C.ext,dp.OSExt,c.os)},c[wue]=function(C,A){var k=c.application;if(k){var O=wd(C,Oue);Wa(O,ml.applicationVersion,k.ver,Dr),Wa(O,ml.applicationBuild,k.build,Dr)}},c[Cue]=function(C,A){var k=c.device;if(k){var O=wd(wd(C,Mue),dp.DeviceExt);Wa(O,"localId",k.id,Dr),Wa(O,"ip",k.ip,Dr),Wa(O,"model",k.model,Dr),Wa(O,"deviceClass",k.deviceClass,Dr)}},c[Aue]=function(C,A){var k=c.internal;if(k){var O=wd(C,Oue);Wa(O,ml.internalAgentVersion,k.agentVersion,Dr),Wa(O,ml.internalSdkVersion,wa(s,k.sdkVersion,64),Dr),(C.baseType===$C.dataType||C.baseType===cm.dataType)&&(Wa(O,ml.internalSnippet,k.snippetVer,Dr),Wa(O,ml.internalSdkSrc,k.sdkSrc,Dr))}},c[Tue]=function(C,A){var k=o.location;k&&Wa(wd(C,Oue,[]),ml.locationIp,k.ip,Dr)},c[Sue]=function(C,A){var k=c[NY];if(k){var O=wd(wd(C,Mue),dp.TraceExt,{traceID:void 0,parentID:void 0});Wa(O,"traceID",k.traceID,Dr,Qi),Wa(O,"name",k.name,Dr,Qi),Wa(O,"parentID",k.parentID,Dr,Qi)}},c.applyWebContext=function(C,A){var k=o.web;k&&Wa(wd(C,Mue),dp.WebExt,k)},c[Eue]=function(C,A){var k=c.user;if(k){var O=wd(C,Oue,[]);Wa(O,ml.userAccountId,k[Vx],Dr);var F=wd(wd(C,Mue),dp.UserExt);Wa(F,"id",k.id,Dr),Wa(F,"authId",k[kD],Dr)}},c.cleanUp=function(C,A){var k=C.ext;k&&(S4(k,dp.DeviceExt),S4(k,dp.UserExt),S4(k,dp.WebExt),S4(k,dp.OSExt),S4(k,dp.AppExt),S4(k,dp.TraceExt))}})}return n.__ieDyn=1,n}();var hp,cMe,E4=null,r8t=of((hp={},hp[Vx]=E4,hp.sessionRenewalMs=30*60*1e3,hp.samplingPercentage=100,hp.sessionExpirationMs=24*60*60*1e3,hp.cookieDomain=E4,hp.sdkExtension=E4,hp.isBrowserLinkTrackingEnabled=!1,hp.appId=E4,hp[y4]=E4,hp[b4]=cMe,hp[TZe]=cMe,hp[Due]=cMe,hp[_N]=22,hp[x4]=E4,hp)),o8t=function(n){Zd(e,n);function e(){var t=n.call(this)||this;t.priority=110,t.identifier=Px;var i,r,o,s,c;return To(e,t,function(h,g){x(),qo(h,"context",{g:function(){return s}}),h.initialize=function(k,O,F,L){g.initialize(k,O,F,L),C(k)},h.processTelemetry=function(k,O){if(!Qi(k)){O=h._getTelCtx(O),k.name===cm.envelopeType&&O.diagLog().resetInternalMessageCount();var F=s||{};F.session&&typeof s.session.id!="string"&&F[g4]&&F[g4][gN]();var L=F.user;if(L&&!L[_4]&&L[gN](F.user.id),A(k,O),L&&L[v4]&&(L[v4]=!1,!c)){var z=new $C(72,(Eh()||{}).userAgent||"");mDe(O.diagLog(),1,z)}h.processNext(k,O)}},h._doTeardown=function(k,O){var F=(k||{}).core();if(F&&F[bue]){var L=F[bue](!1);L===r&&F.setTraceCtx(o)}x()};function x(){i=null,r=null,o=null,s=null,c=!0}function C(k){var O=h.identifier,F=h.core;h._addHook(ia(k,function(){var L=$u(null,k,F);k.storagePrefix&&tN(k.storagePrefix),c=k.disableUserInitMessage!==!1,i=L.getExtCfg(O,r8t),h._extConfig=i})),o=F[bue](!1),s=new RZe(F,i,o,h._unloadHooks),r=eN(h.context[NY],o),F.setTraceCtx(r),h.context.appId=function(){var L=F.getPlugin(Pce);return L?L.plugin._appId:null}}function A(k,O){wd(k,"tags",[]),wd(k,"ext",{});var F=h.context;F[xue](k,O),F[wue](k,O),F[Cue](k,O),F[Sue](k,O),F[Eue](k,O),F[Iue](k,O),F.applyWebContext(k,O),F[Tue](k,O),F[Aue](k,O),F.cleanUp(k,O)}}),t}return e.__ieDyn=1,e}(uf),uMe=o8t;var NZe="AuthenticatedUserContext",I4="track";var Rue="snippet",PZe="getCookieMgr",FZe="startTrackPage",LZe="stopTrackPage",Nue="flush",BZe="startTrackEvent",zZe="stopTrackEvent",dMe="addTelemetryInitializer",OYn=dMe+"s",hMe="pollInternalLogs",Pue="getPlugin",Fue="evtNamespace",VZe=I4+"Event",UZe=I4+"Trace",jZe=I4+"Metric",HZe=I4+"PageView",GZe=I4+"Exception",YZe=I4+"DependencyData",qZe="set"+NZe,$Ze="clear"+NZe,KZe="https://js.monitor.azure.com/scripts/b/ai.config.1.cfg.json";var Lue="version",MD="queue",FY="connectionString",T4="instrumentationKey",pMe="instrumentationkey",bN="userOverrideEndpointUrl",LY="endpointUrl",fMe="ingestionendpoint",A4="onunloadFlush",Ig="context",mMe="addHousekeepingBeforeUnload",Bue="sendMessage",WZe="updateSnippetDefinitions";var Ux,BY,D4,gMe,zY,ZZe=[Rue,"dependencies","properties","_snippetVersion","appInsightsNew","getSKUDefaults"],QZe="iKeyUsage",XZe="CdnUsage",JZe="SdkLoaderVer",zue=void 0,s8t={samplingRate:100,maxSendNumber:1},a8t={monthInterval:3,daysOfMonth:[28]},Vue={disabled:!0,limit:bg(s8t),interval:bg(a8t)},l8t=(Ux={},Ux[FY]=zue,Ux[LY]=zue,Ux[T4]=zue,Ux[bN]=zue,Ux.diagnosticLogInterval=WA(c8t,1e4),Ux.featureOptIn=(BY={},BY[QZe]={mode:3},BY[XZe]={mode:2},BY[JZe]={mode:2},BY),Ux.throttleMgrCfg=bg((D4={},D4[109]=bg(Vue),D4[106]=bg(Vue),D4[111]=bg(Vue),D4[110]=bg(Vue),D4)),Ux.extensionConfig=bg((gMe={},gMe.AppInsightsCfgSyncPlugin=bg({cfgUrl:KZe,syncMode:2}),gMe)),Ux);function c8t(n){return n&&n>0}var _Me=function(){function n(e){var t=this,i,r,o,s,c,h,g,x,C,A,k,O,F,L;To(n,this,function(z){ee(),qo(z,"config",{g:function(){return x}}),Rn(["pluginVersionStringArr","pluginVersionString"],function(q){qo(z,q,{g:function(){return g?g[q]:null}})}),s=""+(e.sv||e[Lue]||""),e[MD]=e[MD]||[],e[Lue]=e[Lue]||2;var j=qu(e.config||{},l8t);x=j.cfg,C=new Kce,qo(z,"appInsights",{g:function(){return C}}),r=new uMe,i=new aMe,o=new Yke,g=new RDe,qo(z,"core",{g:function(){return g}}),X(ia(j,function(){var q=x[FY];function fe(){return SV(function(Re,Ue){af(q,function(Ee){var We=Ee&&Ee.value,Ie=null;!Ee.rejected&&We&&(x[FY]=We,Ie=Oce(We)),Re(Ie)})})}if(yx(q)){var Se=SV(function(Re,Ue){fe().then(function(Ee){var We=x[T4];We=Ee&&Ee[pMe]||We,Re(We)}).catch(function(Ee){Re(null)})}),pe=x[bN];Qi(pe)&&(pe=SV(function(Re,Ue){fe().then(function(Ee){var We=x[LY],Ie=Ee&&Ee[fMe];We=Ie?Ie+Mx:We,Re(We)}).catch(function(Ee){Re(null)})})),x[T4]=Se,x[LY]=pe}if(Dr(q)){var Me=Oce(q),ie=Me[fMe];x.endpointUrl=x[bN]?x[bN]:ie+Mx,x[T4]=Me[pMe]||x[T4]}x.endpointUrl=x[bN]?x[bN]:x[LY]})),z[Rue]=e,z[Nue]=function(q,fe){q===void 0&&(q=!0);var Se;return XA(g,function(){return"AISKU.flush"},function(){q&&!fe&&(Se=om(function(ie){fe=ie}));var pe=1,Me=function(){pe--,pe===0&&fe()};Rn(g.getChannels(),function(ie){ie&&(pe++,ie[Nue](q,Me))}),Me()},null,q),Se},z[A4]=function(q){q===void 0&&(q=!0),Rn(g.getChannels(),function(fe){fe[A4]?fe[A4]():fe[Nue](q)})},z.loadAppInsights=function(q,fe,Se){q===void 0&&(q=!1),q&&N$e("Legacy Mode is no longer supported");function pe(Me){if(Me){var ie="";Qi(s)||(ie+=s),z[Ig]&&z[Ig].internal&&(z[Ig].internal.snippetVer=ie||"-"),oo(z,function(Re,Ue){Dr(Re)&&!wr(Ue)&&Re&&Re[0]!=="_"&&Il(ZZe,Re)===-1&&Me[Re]!==Ue&&(Me[Re]=Ue)})}}return XA(z.core,function(){return"AISKU.loadAppInsights"},function(){g.initialize(x,[o,r,i,C,A],fe,Se),qo(z,"context",{g:function(){return r[Ig]}}),k||(k=new ake(g));var Me=u8t();Me&&z[Ig]&&(z[Ig].internal.sdkSrc=Me),pe(z[Rue]),z.emptyQueue(),z[hMe](),z[mMe](z),X(ia(j,function(){var ie=!1;x.throttleMgrCfg[109]&&(ie=!x.throttleMgrCfg[109].disabled),!k.isReady()&&x.extensionConfig&&x.extensionConfig[A.identifier]&&ie&&k.onReadyState(!0);var Re;!O&&!x[FY]&&b7(QZe,x)&&(Re=k[Bue](106,"See Instrumentation key support at aka.ms/IkeyMigrate"),O=!0),!F&&z[Ig].internal.sdkSrc&&z[Ig].internal.sdkSrc.indexOf("az416426")!=-1&&b7(XZe,x)&&(Re=k[Bue](110,"See Cdn support notice at aka.ms/JsActiveCdn"),F=!0),!L&&parseInt(s)<6&&b7(JZe,x)&&(Re=k[Bue](111,"An updated Sdk Loader is available, see aka.ms/SnippetVer"),L=!0)}))}),z},z[WZe]=function(q){qAe(q,z,function(fe){return fe&&Il(ZZe,fe)===-1})},z.emptyQueue=function(){try{if(so(z.snippet[MD])){for(var q=z.snippet[MD].length,fe=0;fe{let e=class e extends g3{constructor(i,r){super(),this._environmentService=i,this._router=r,this.name="BdUserApplicationInsightsTrackingService"}init(i){let r=this._environmentService.load("BD_APPLICATION_INSIGHTS_KEY"),o=new PWe;this._applicationInsightsInstance=new _Me({config:{instrumentationKey:r,extensions:[o],extensionConfig:{[o.identifier]:{router:this._router}}}}),this._applicationInsightsInstance.loadAppInsights(),i&&this._applicationInsightsInstance.setAuthenticatedUserContext(i.localAccountId),this.isEnabled=!0}destroy(){this._applicationInsightsInstance&&this._applicationInsightsInstance.unload(),this.isEnabled=!1}addAuthenticatedUserContext(i){this._applicationInsightsInstance&&i&&this._applicationInsightsInstance.setAuthenticatedUserContext(i.localAccountId)}removeAuthenticatedUserContext(){this._applicationInsightsInstance&&this._applicationInsightsInstance.clearAuthenticatedUserContext()}trackException(i,r){this._applicationInsightsInstance&&this._applicationInsightsInstance.trackException({exception:i},r)}trackEvent(i,r){this._applicationInsightsInstance&&this._applicationInsightsInstance.trackEvent({name:i},r)}};e.\u0275fac=function(r){return new(r||e)(Ke(dr),Ke(el))},e.\u0275prov=It({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var d8t=["input"],h8t=["label"],p8t=["*"],f8t=new fi("mat-checkbox-default-options",{providedIn:"root",factory:tQe});function tQe(){return{color:"accent",clickAction:"check-indeterminate"}}var pp=function(n){return n[n.Init=0]="Init",n[n.Checked=1]="Checked",n[n.Unchecked=2]="Unchecked",n[n.Indeterminate=3]="Indeterminate",n}(pp||{}),m8t={provide:Bu,useExisting:ka(()=>k4),multi:!0},yMe=class{},g8t=0,eQe=tQe(),k4=(()=>{let e=class e{focus(){this._inputElement.nativeElement.focus()}_createChangeEvent(i){let r=new yMe;return r.source=this,r.checked=i,r}_getAnimationTargetElement(){return this._inputElement?.nativeElement}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(i,r,o,s,c,h){this._elementRef=i,this._changeDetectorRef=r,this._ngZone=o,this._animationMode=c,this._options=h,this._animationClasses={uncheckedToChecked:"mdc-checkbox--anim-unchecked-checked",uncheckedToIndeterminate:"mdc-checkbox--anim-unchecked-indeterminate",checkedToUnchecked:"mdc-checkbox--anim-checked-unchecked",checkedToIndeterminate:"mdc-checkbox--anim-checked-indeterminate",indeterminateToChecked:"mdc-checkbox--anim-indeterminate-checked",indeterminateToUnchecked:"mdc-checkbox--anim-indeterminate-unchecked"},this.ariaLabel="",this.ariaLabelledby=null,this.labelPosition="after",this.name=null,this.change=new Kt,this.indeterminateChange=new Kt,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=pp.Init,this._controlValueAccessorChangeFn=()=>{},this._validatorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||eQe,this.color=this._options.color||eQe.color,this.tabIndex=parseInt(s)||0,this.id=this._uniqueId=`mat-mdc-checkbox-${++g8t}`}ngOnChanges(i){i.required&&this._validatorChangeFn()}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(i){i!=this.checked&&(this._checked=i,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(i){i!==this.disabled&&(this._disabled=i,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(i){let r=i!=this._indeterminate;this._indeterminate=i,r&&(this._indeterminate?this._transitionCheckState(pp.Indeterminate):this._transitionCheckState(this.checked?pp.Checked:pp.Unchecked),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(i){this.checked=!!i}registerOnChange(i){this._controlValueAccessorChangeFn=i}registerOnTouched(i){this._onTouched=i}setDisabledState(i){this.disabled=i}validate(i){return this.required&&i.value!==!0?{required:!0}:null}registerOnValidatorChange(i){this._validatorChangeFn=i}_transitionCheckState(i){let r=this._currentCheckState,o=this._getAnimationTargetElement();if(!(r===i||!o)&&(this._currentAnimationClass&&o.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(r,i),this._currentCheckState=i,this._currentAnimationClass.length>0)){o.classList.add(this._currentAnimationClass);let s=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{o.classList.remove(s)},1e3)})}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_handleInputClick(){let i=this._options?.clickAction;!this.disabled&&i!=="noop"?(this.indeterminate&&i!=="check"&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?pp.Checked:pp.Unchecked),this._emitChangeEvent()):!this.disabled&&i==="noop"&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate)}_onInteractionEvent(i){i.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(i,r){if(this._animationMode==="NoopAnimations")return"";switch(i){case pp.Init:if(r===pp.Checked)return this._animationClasses.uncheckedToChecked;if(r==pp.Indeterminate)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case pp.Unchecked:return r===pp.Checked?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case pp.Checked:return r===pp.Unchecked?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case pp.Indeterminate:return r===pp.Checked?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(i){let r=this._inputElement;r&&(r.nativeElement.indeterminate=i)}_onInputClick(){this._handleInputClick()}_onTouchTargetClick(){this._handleInputClick(),this.disabled||this._inputElement.nativeElement.focus()}_preventBubblingFromLabel(i){i.target&&this._labelElement.nativeElement.contains(i.target)&&i.stopPropagation()}};e.\u0275fac=function(r){return new(r||e)(oe(Ai),oe(ur),oe(Zi),Hm("tabindex"),oe(da,8),oe(f8t,8))},e.\u0275cmp=Ct({type:e,selectors:[["mat-checkbox"]],viewQuery:function(r,o){if(r&1&&(Xn(d8t,5),Xn(h8t,5),Xn(oC,5)),r&2){let s;Di(s=ki())&&(o._inputElement=s.first),Di(s=ki())&&(o._labelElement=s.first),Di(s=ki())&&(o.ripple=s.first)}},hostAttrs:[1,"mat-mdc-checkbox"],hostVars:14,hostBindings:function(r,o){r&2&&(Pu("id",o.id),Et("tabindex",null)("aria-label",null)("aria-labelledby",null),vn(o.color?"mat-"+o.color:"mat-accent"),$n("_mat-animation-noopable",o._animationMode==="NoopAnimations")("mdc-checkbox--disabled",o.disabled)("mat-mdc-checkbox-disabled",o.disabled)("mat-mdc-checkbox-checked",o.checked))},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],id:"id",required:[2,"required","required",Ht],labelPosition:"labelPosition",name:"name",value:"value",disableRipple:[2,"disableRipple","disableRipple",Ht],tabIndex:[2,"tabIndex","tabIndex",i=>i==null?void 0:xr(i)],color:"color",checked:[2,"checked","checked",Ht],disabled:[2,"disabled","disabled",Ht],indeterminate:[2,"indeterminate","indeterminate",Ht]},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],standalone:!0,features:[Co([m8t,{provide:d3,useExisting:e,multi:!0}]),Ir,eo,Ot],ngContentSelectors:p8t,decls:15,vars:19,consts:[["checkbox",""],["input",""],["label",""],["mat-internal-form-field","",3,"click","labelPosition"],[1,"mdc-checkbox"],[1,"mat-mdc-checkbox-touch-target",3,"click"],["type","checkbox",1,"mdc-checkbox__native-control",3,"blur","click","change","checked","indeterminate","disabled","id","required","tabIndex"],[1,"mdc-checkbox__ripple"],[1,"mdc-checkbox__background"],["focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mdc-checkbox__checkmark"],["fill","none","d","M1.73,12.91 8.1,19.28 22.79,4.59",1,"mdc-checkbox__checkmark-path"],[1,"mdc-checkbox__mixedmark"],["mat-ripple","",1,"mat-mdc-checkbox-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-label",3,"for"]],template:function(r,o){if(r&1){let s=Fi();Yr(),se(0,"div",3),At("click",function(h){return ht(s),pt(o._preventBubblingFromLabel(h))}),se(1,"div",4,0)(3,"div",5),At("click",function(){return ht(s),pt(o._onTouchTargetClick())}),ce(),se(4,"input",6,1),At("blur",function(){return ht(s),pt(o._onBlur())})("click",function(){return ht(s),pt(o._onInputClick())})("change",function(h){return ht(s),pt(o._onInteractionEvent(h))}),ce(),bt(6,"div",7),se(7,"div",8),Rr(),se(8,"svg",9),bt(9,"path",10),ce(),sO(),bt(10,"div",11),ce(),bt(11,"div",12),ce(),se(12,"label",13,2),Gn(14),ce()()}if(r&2){let s=_r(2);J("labelPosition",o.labelPosition),Z(4),$n("mdc-checkbox--selected",o.checked),J("checked",o.checked)("indeterminate",o.indeterminate)("disabled",o.disabled)("id",o.inputId)("required",o.required)("tabIndex",o.disabled?-1:o.tabIndex),Et("aria-label",o.ariaLabel||null)("aria-labelledby",o.ariaLabelledby)("aria-describedby",o.ariaDescribedby)("aria-checked",o.indeterminate?"mixed":null)("name",o.name)("value",o.value),Z(7),J("matRippleTrigger",s)("matRippleDisabled",o.disableRipple||o.disabled)("matRippleCentered",!0),Z(),J("for",o.inputId)}},dependencies:[oC,Aje],styles:['.mdc-checkbox{display:inline-block;position:relative;flex:0 0 18px;box-sizing:content-box;width:18px;height:18px;line-height:0;white-space:nowrap;cursor:pointer;vertical-align:bottom;padding:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px)/2);margin:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px))/2)}.mdc-checkbox:hover .mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-hover-state-layer-opacity);background-color:var(--mdc-checkbox-unselected-hover-state-layer-color)}.mdc-checkbox:hover .mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-hover-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-focus-state-layer-opacity);background-color:var(--mdc-checkbox-unselected-focus-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-focus-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-pressed-state-layer-opacity);background-color:var(--mdc-checkbox-unselected-pressed-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-pressed-state-layer-color)}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-hover-state-layer-opacity);background-color:var(--mdc-checkbox-selected-hover-state-layer-color)}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-hover-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-focus-state-layer-opacity);background-color:var(--mdc-checkbox-selected-focus-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-focus-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-pressed-state-layer-opacity);background-color:var(--mdc-checkbox-selected-pressed-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-pressed-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit;width:var(--mdc-checkbox-state-layer-size, 40px);height:var(--mdc-checkbox-state-layer-size, 40px);top:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px))/2);right:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px))/2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px))/2)}.mdc-checkbox--disabled{cursor:default;pointer-events:none}.mdc-checkbox__background{display:inline-flex;position:absolute;align-items:center;justify-content:center;box-sizing:border-box;width:18px;height:18px;border:2px solid currentColor;border-radius:2px;background-color:rgba(0,0,0,0);pointer-events:none;will-change:background-color,border-color;transition:background-color 90ms cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms cubic-bezier(0.4, 0, 0.6, 1);border-color:var(--mdc-checkbox-unselected-icon-color);top:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px)/2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px)/2)}.mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-icon-color);background-color:var(--mdc-checkbox-selected-icon-color)}.mdc-checkbox--disabled .mdc-checkbox__background{border-color:var(--mdc-checkbox-disabled-unselected-icon-color)}.mdc-checkbox__native-control:disabled:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:disabled:indeterminate~.mdc-checkbox__background{background-color:var(--mdc-checkbox-disabled-selected-icon-color);border-color:rgba(0,0,0,0)}.mdc-checkbox:hover .mdc-checkbox__native-control:not(:checked)~.mdc-checkbox__background,.mdc-checkbox:hover .mdc-checkbox__native-control:not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-hover-icon-color);background-color:rgba(0,0,0,0)}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox:hover .mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-hover-icon-color);background-color:var(--mdc-checkbox-selected-hover-icon-color)}.mdc-checkbox__native-control:focus:focus:not(:checked)~.mdc-checkbox__background,.mdc-checkbox__native-control:focus:focus:not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-focus-icon-color)}.mdc-checkbox__native-control:focus:focus:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:focus:focus:indeterminate~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-focus-icon-color);background-color:var(--mdc-checkbox-selected-focus-icon-color)}.mdc-checkbox__checkmark{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;opacity:0;transition:opacity 180ms cubic-bezier(0.4, 0, 0.6, 1);color:var(--mdc-checkbox-selected-checkmark-color)}.mdc-checkbox--disabled .mdc-checkbox__checkmark{color:var(--mdc-checkbox-disabled-selected-checkmark-color)}.mdc-checkbox__checkmark-path{transition:stroke-dashoffset 180ms cubic-bezier(0.4, 0, 0.6, 1);stroke:currentColor;stroke-width:3.12px;stroke-dashoffset:29.7833385;stroke-dasharray:29.7833385}.mdc-checkbox__mixedmark{width:100%;height:0;transform:scaleX(0) rotate(0deg);border-width:1px;border-style:solid;opacity:0;transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1);border-color:var(--mdc-checkbox-selected-checkmark-color)}.cdk-high-contrast-active .mdc-checkbox__mixedmark{margin:0 1px}.mdc-checkbox--disabled .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-disabled-selected-checkmark-color)}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__background,.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__background,.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__background,.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__background{animation-duration:180ms;animation-timing-function:linear}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-unchecked-checked-checkmark-path 180ms linear;transition:none}.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-unchecked-indeterminate-mixedmark 90ms linear;transition:none}.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-checked-unchecked-checkmark-path 90ms linear;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__checkmark{animation:mdc-checkbox-checked-indeterminate-checkmark 90ms linear;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-checked-indeterminate-mixedmark 90ms linear;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__checkmark{animation:mdc-checkbox-indeterminate-checked-checkmark 500ms linear;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-checked-mixedmark 500ms linear;transition:none}.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-unchecked-mixedmark 300ms linear;transition:none}.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{transition:border-color 90ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark-path{stroke-dashoffset:0}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark{transition:opacity 180ms cubic-bezier(0, 0, 0.2, 1),transform 180ms cubic-bezier(0, 0, 0.2, 1);opacity:1}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(-45deg)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark{transform:rotate(45deg);opacity:0;transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(0deg);opacity:1}@keyframes mdc-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:29.7833385}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 1)}100%{stroke-dashoffset:0}}@keyframes mdc-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 mdc-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);opacity:1;stroke-dashoffset:0}to{opacity:0;stroke-dashoffset:-29.7833385}}@keyframes mdc-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(45deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(45deg);opacity:0}to{transform:rotate(360deg);opacity:1}}@keyframes mdc-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(-45deg);opacity:0}to{transform:rotate(0deg);opacity:1}}@keyframes mdc-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(315deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;transform:scaleX(1);opacity:1}32.8%,100%{transform:scaleX(0);opacity:0}}.mat-mdc-checkbox{display:inline-block;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-checkbox._mat-animation-noopable .mdc-checkbox *,.mat-mdc-checkbox._mat-animation-noopable .mdc-checkbox *::before{transition:none !important;animation:none !important}.mat-mdc-checkbox .mdc-checkbox__background{-webkit-print-color-adjust:exact;color-adjust:exact}.mat-mdc-checkbox label{cursor:pointer}.mat-mdc-checkbox .mat-internal-form-field{color:var(--mat-checkbox-label-text-color);font-family:var(--mat-checkbox-label-text-font);line-height:var(--mat-checkbox-label-text-line-height);font-size:var(--mat-checkbox-label-text-size);letter-spacing:var(--mat-checkbox-label-text-tracking);font-weight:var(--mat-checkbox-label-text-weight)}.mat-mdc-checkbox.mat-mdc-checkbox-disabled label{cursor:default;color:var(--mat-checkbox-disabled-label-color)}.mat-mdc-checkbox label:empty{display:none}.cdk-high-contrast-active .mat-mdc-checkbox.mat-mdc-checkbox-disabled{opacity:.5}.cdk-high-contrast-active .mat-mdc-checkbox .mdc-checkbox__checkmark{--mdc-checkbox-selected-checkmark-color: CanvasText;--mdc-checkbox-disabled-selected-checkmark-color: CanvasText}.mat-mdc-checkbox .mdc-checkbox__ripple{opacity:0}.mat-mdc-checkbox-ripple,.mdc-checkbox__ripple{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-checkbox-ripple:not(:empty),.mdc-checkbox__ripple:not(:empty){transform:translateZ(0)}.mat-mdc-checkbox-ripple .mat-ripple-element{opacity:.1}.mat-mdc-checkbox-touch-target{position:absolute;top:50%;left:50%;height:48px;width:48px;transform:translate(-50%, -50%);display:var(--mat-checkbox-touch-target-display)}.mat-mdc-checkbox-ripple::before{border-radius:50%}.mdc-checkbox__native-control:focus~.mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0});let n=e;return n})();var Uue=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=Oi({type:e}),e.\u0275inj=Mi({imports:[k4,ro,ro]});let n=e;return n})();var nQe=(()=>{let e=class e{constructor(i,r){this._userConsentService=i,this._dummySheetRef=r,this._userConsentService.userConsent$.pipe(kr(1)).subscribe(o=>{this.userConsent=o})}saveUserConsent(){this._userConsentService.setUserConsent(this.userConsent),this._dummySheetRef.dismiss()}};e.\u0275fac=function(r){return new(r||e)(oe(Yne),oe(w3))},e.\u0275cmp=Ct({type:e,selectors:[["bd-user-consent-cookiebot-dummy"]],standalone:!0,features:[Ot],decls:15,vars:4,consts:[["disabled","",3,"checked"],[3,"ngModelChange","ngModel"],["mat-raised-button","","color","accent",3,"click"]],template:function(r,o){r&1&&(se(0,"div")(1,"mat-checkbox",0),yt(2," Necessary "),ce()(),se(3,"div")(4,"mat-checkbox",1),Aw("ngModelChange",function(c){return LI(o.userConsent.consent.preferences,c)||(o.userConsent.consent.preferences=c),c}),yt(5," Preferences "),ce()(),se(6,"div")(7,"mat-checkbox",1),Aw("ngModelChange",function(c){return LI(o.userConsent.consent.statistics,c)||(o.userConsent.consent.statistics=c),c}),yt(8," Statistics "),ce()(),se(9,"div")(10,"mat-checkbox",1),Aw("ngModelChange",function(c){return LI(o.userConsent.consent.marketing,c)||(o.userConsent.consent.marketing=c),c}),yt(11," Marketing "),ce()(),se(12,"div")(13,"button",2),At("click",function(){return o.saveUserConsent()}),yt(14," Speichern "),ce()()),r&2&&(Z(),J("checked",!0),Z(3),Tw("ngModel",o.userConsent.consent.preferences),Z(3),Tw("ngModel",o.userConsent.consent.statistics),Z(3),Tw("ngModel",o.userConsent.consent.marketing))},dependencies:[Uue,k4,BT,LT,dC,pR,gs,Sl],encapsulation:2});let n=e;return n})();function _8t(n,e){n&1&&(se(0,"a",0)(1,"span",1),yt(2,"Cookie Einstellungen"),ce()())}function v8t(n,e){if(n&1){let t=Fi();se(0,"a",2),At("click",function(){ht(t);let r=le();return pt(r.openConsent())}),se(1,"span",1),yt(2,"Cookie Einstellungen"),ce()()}}var rQe=(()=>{let e=class e{constructor(i,r){this._appConfig=i,this._bottomSheet=r,this.environment="production",this.environment=this._appConfig.environment}openConsent(){this._bottomSheet.open(nQe)}};e.\u0275fac=function(r){return new(r||e)(oe(d0),oe(CEe))},e.\u0275cmp=Ct({type:e,selectors:[["bd-user-cookie-reset-link"]],standalone:!0,features:[Ot],decls:2,vars:2,consts:[["href","javascript: Cookiebot.renew()"],[1,"mat-caption"],[3,"click"]],template:function(r,o){r&1&&Ne(0,_8t,3,0,"a",0)(1,v8t,3,0,"a"),r&2&&(Hi(o.environment==="production"?0:-1),Z(),Hi(o.environment!=="production"?1:-1))},dependencies:[_Ge],styles:["a[_ngcontent-%COMP%]{vertical-align:middle;text-decoration:none;color:#0000008a;cursor:pointer}a[_ngcontent-%COMP%]:hover{color:#000}"]});let n=e;return n})();function y8t(n,e){if(n&1&&(se(0,"li",6)(1,"a",8)(2,"span",5),yt(3,"Datenschutz"),ce()()()),n&2){let t=le();Z(),J("href",t.options.privacy.link,Ff)}}function b8t(n,e){if(n&1&&(se(0,"li",6)(1,"a",8)(2,"span",5),yt(3,"Dokumentation"),ce()()()),n&2){let t=le();Z(),J("href",t.options.documentation.link,Ff)}}function x8t(n,e){if(n&1&&(se(0,"li")(1,"a",8)(2,"span",5),yt(3,"Impressum"),ce()()()),n&2){let t=le();Z(),J("href",t.options.siteNotice.link,Ff)}}function w8t(n,e){if(n&1&&(se(0,"li",6)(1,"a",8)(2,"span",5),yt(3,"Status"),ce()()()),n&2){let t=le();Z(),J("href",t.options.status.link,Ff)}}function C8t(n,e){n&1&&(se(0,"li"),bt(1,"bd-user-cookie-reset-link"),ce())}var oQe=(()=>{let e=class e{constructor(i){this._cookieBotService=i,this.options=Gne,this.showCookieResetLink=!0,this.showCookieResetLink=!!this._cookieBotService}};e.\u0275fac=function(r){return new(r||e)(oe(QT,8))},e.\u0275cmp=Ct({type:e,selectors:[["bd-footer"]],inputs:{options:"options"},standalone:!0,features:[Ot],decls:19,vars:5,consts:[["fxLayout","row","fxLayoutAlign","center center"],[1,"bd-app-footer"],[1,"bd-app-footer-list-inline"],["href","https://www.bindoc.de","target","_blank","rel","noopener"],["alt","BinDoc GmbH","height","40px","src","data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzNjEuODYgMzYxLjg2Ij48ZGVmcz48c3R5bGU+LmNscy0xe2ZpbGw6IzQ1MmE3MTt9LmNscy0ye2ZpbGw6I2Y1OGIyNTt9LmNscy0ze2ZpbGw6IzNmOTg0Njt9LmNscy00e2ZpbGw6I2E2MjE2Yjt9PC9zdHlsZT48L2RlZnM+PHRpdGxlPkFzIGZhdmljb24gZm9yIGJyb3dzZXINPC90aXRsZT48ZyBpZD0ibG9nbyI+PGNpcmNsZSBjbGFzcz0iY2xzLTEiIGN4PSIyOC4xOCIgY3k9IjEyNi45MSIgcj0iMjcuMjciLz48Y2lyY2xlIGNsYXNzPSJjbHMtMiIgY3g9Ijg4Ljc5IiBjeT0iMTI2LjkxIiByPSIyNy4yNyIvPjxjaXJjbGUgY2xhc3M9ImNscy0zIiBjeD0iMTUwLjMxIiBjeT0iMTI2LjkxIiByPSIyNy4yNyIvPjxjaXJjbGUgY2xhc3M9ImNscy00IiBjeD0iMjExLjE2IiBjeT0iMTI2LjkxIiByPSIyNy4yNyIvPjxjaXJjbGUgY2xhc3M9ImNscy0xIiBjeD0iMjcxLjM0IiBjeT0iMTI2LjkxIiByPSIyNy4yNyIvPjxjaXJjbGUgY2xhc3M9ImNscy0yIiBjeD0iMzMzLjY4IiBjeT0iMTI2LjkxIiByPSIyNy4yNyIvPjxwYXRoIGNsYXNzPSJjbHMtMiIgZD0iTTMzMy42OCwxMjQuNGEyLjUxLDIuNTEsMCwwLDAtMi41MiwyLjUxVjI0My4zOUgyMDEuNTJhMi41MiwyLjUyLDAsMCwwLTIuNTIsMi41MnYxNi4zaDVWMjQ4LjQzSDMzMy42OGEyLjUxLDIuNTEsMCwwLDAsMi41MS0yLjUydi0xMTlBMi41MSwyLjUxLDAsMCwwLDMzMy42OCwxMjQuNFoiLz48cGF0aCBjbGFzcz0iY2xzLTEiIGQ9Ik0yNzEuMzQsMTE0LjMyYTIuNTEsMi41MSwwLDAsMC0yLjUxLDIuNTJWMjMxLjdIMTkwLjI2YTIuNTEsMi41MSwwLDAsMC0yLjUyLDIuNTF2MjhoNVYyMzYuNzNoNzguNTZhMi41MiwyLjUyLDAsMCwwLDIuNTItMi41MlYxMTYuODRBMi41MiwyLjUyLDAsMCwwLDI3MS4zNCwxMTQuMzJaIi8+PHBhdGggY2xhc3M9ImNscy00IiBkPSJNMTgwLjgyLDI2Mi4yMVYyMjUuOTRoMzAuMzRhMi41MiwyLjUyLDAsMCwwLDIuNTItMi41MlYxMDUuODdhMi41MiwyLjUyLDAsMCwwLTUsMHYxMTVIMTc4LjMxYTIuNTIsMi41MiwwLDAsMC0yLjUyLDIuNTJ2MzguNzlaIi8+PHBhdGggY2xhc3M9ImNscy0zIiBkPSJNMTUwLjMxLDIyNS45NEgxNjIuNHYzNi4yN2g1VjIyMy40MmEyLjUyLDIuNTIsMCwwLDAtMi41Mi0yLjUySDE1Mi44M3YtMTE1YTIuNTIsMi41MiwwLDAsMC01LDBWMjIzLjQyQTIuNTIsMi41MiwwLDAsMCwxNTAuMzEsMjI1Ljk0WiIvPjxwYXRoIGNsYXNzPSJjbHMtMiIgZD0iTTg4Ljc5LDIzNi43M2g2Mi44MnYyNS40OGg1di0yOGEyLjUxLDIuNTEsMCwwLDAtMi41Mi0yLjUxSDkxLjMxVjExNi44NGEyLjUyLDIuNTIsMCwxLDAtNSwwVjIzNC4yMUEyLjUyLDIuNTIsMCwwLDAsODguNzksMjM2LjczWiIvPjxwYXRoIGNsYXNzPSJjbHMtMSIgZD0iTTE0MC42MywyNjIuMjFoNVYyNDQuMjlhMi41MiwyLjUyLDAsMCwwLTIuNTItMi41MkgzMC43VjEyNi45MWEyLjUyLDIuNTIsMCwwLDAtNSwwVjI0NC4yOWEyLjUyLDIuNTIsMCwwLDAsMi41MiwyLjUySDE0MC42M1oiLz48L2c+PC9zdmc+"],[1,"mat-caption"],["fxShow","","fxHide.lt-sm",""],["rel","nofollow noopener","target","_blank","href","https://analyticsassets.z6.web.core.windows.net/legal/licenses-combined.min.html"],["target","_blank","rel","noopener",3,"href"]],template:function(r,o){r&1&&(se(0,"div",0)(1,"div",1)(2,"ul",2)(3,"li")(4,"a",3),bt(5,"img",4),ce()(),se(6,"li")(7,"a",3)(8,"span",5),yt(9,"BinDoc GmbH"),ce()()(),Ne(10,y8t,4,1,"li",6)(11,b8t,4,1,"li",6)(12,x8t,4,1,"li")(13,w8t,4,1,"li",6),se(14,"li")(15,"a",7)(16,"span",5),yt(17,"Drittanbieter Lizenzen"),ce()()(),Ne(18,C8t,2,0,"li"),ce()()()),r&2&&(Z(10),Hi(o.options.privacy.enabled?10:-1),Z(),Hi(o.options.documentation.enabled?11:-1),Z(),Hi(o.options.siteNotice.enabled?12:-1),Z(),Hi(o.options.status.enabled?13:-1),Z(5),Hi(o.showCookieResetLink?18:-1))},dependencies:[Ys,tl,Ac,p0,qB,rQe],styles:[".bd-app-footer-list-inline[_ngcontent-%COMP%]{list-style:none;padding:0 24px}.bd-app-footer-list-inline[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]{display:inline}span.mat-caption[_ngcontent-%COMP%]{padding:0 12px}li[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]{vertical-align:middle;text-decoration:none;color:#0000008a}li[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]:hover{color:#000}li[_ngcontent-%COMP%] > a[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{filter:grayscale(100%);width:40px;height:40px;display:inline-block}li[_ngcontent-%COMP%] > a[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]:hover{filter:none}"]});let n=e;return n})();var sQe=(()=>{let e=class e{constructor(){this.navigationItems=[],this.navigationItems$=new Yo(1)}add(i,r){let o=this.navigationItems;r&&(i.index=r),o.push(i),o.sort((s,c)=>s.index&&c.index&&s.indexc.index?1:(console.warn("@bindoc/material.BdAppContainerNavigationService: Found NavigationItems with identical index."),0)),this.navigationItems=o,this.navigationItems$.next(o)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=It({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var aQe=[jl("slideInOut",[$s("* => void",[qr({height:"*",overflow:"hidden",opacity:"1"}),y0([Ps("10ms",qr({opacity:"0"})),Ps("200ms",qr({height:"0"}))])]),$s("void => *",[qr({height:"0",overflow:"hidden",opacity:"0"}),y0([Ps("10ms",qr({opacity:"1"})),Ps("200ms",qr({height:"*"}))])])])];var E8t=(n,e)=>({bottom:n,top:e});function I8t(n,e){if(n&1&&(se(0,"li")(1,"a",4)(2,"span",5),yt(3),ce()()()),n&2){let t=e.$implicit;Z(),J("routerLink",t.path)("routerLinkActive","bd-primary-text active"),Z(2),jn(t.title)}}function T8t(n,e){if(n&1&&(se(0,"div",3)(1,"ul"),Ec(2,I8t,4,3,"li",null,Nu),ce()()),n&2){let t=le(2);J("@slideInOut",void 0),Z(2),Ic(t.item==null?null:t.item.children)}}function A8t(n,e){if(n&1){let t=Fi();se(0,"button",1),At("click",function(){ht(t);let r=le();return pt(r.toggleChildrenViewState())}),se(1,"span"),yt(2),ce(),se(3,"mat-icon",2),yt(4," chevron_right "),ce()(),Ne(5,T8t,4,1,"div",3)}if(n&2){let t,i=le();Z(2),jn(i.item==null?null:i.item.title),Z(),J("ngClass",ha(3,E8t,i.viewStateChildren==="hide",i.viewStateChildren==="show")),Z(2),Hi(i.viewStateChildren==="show"&&(i.item!=null&&i.item.children)&&((t=i.item==null||i.item.children==null?null:i.item.children.length)!==null&&t!==void 0?t:0)>0?5:-1)}}function D8t(n,e){if(n&1&&(se(0,"button",0)(1,"span",6),yt(2),ce(),se(3,"mat-icon",7),yt(4,"chevron_right"),ce()()),n&2){let t=le();J("routerLink",t.item==null?null:t.item.path)("routerLinkActive","bd-primary-text active"),Z(2),jn(t.item==null?null:t.item.title)}}var lQe=(()=>{let e=class e{constructor(){this.viewStateChildren="show"}toggleChildrenViewState(){this.viewStateChildren=this.viewStateChildren==="hide"?"show":"hide"}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=Ct({type:e,selectors:[["bd-app-container-navigation-item"]],inputs:{item:"item"},standalone:!0,features:[Ot],decls:4,vars:1,consts:[[1,"navigation-btn",3,"routerLink","routerLinkActive"],[1,"navigation-btn",3,"click"],[1,"icon-container",3,"ngClass"],[1,"children"],[1,"child-link",3,"routerLink","routerLinkActive"],[1,"mat-body"],[1,"mat-body-2"],[1,"icon-container"]],template:function(r,o){if(r&1&&(se(0,"nav"),Ne(1,A8t,6,6)(2,D8t,5,3,"button",0),bt(3,"hr"),ce()),r&2){let s;Z(),Hi(o.item!=null&&o.item.children&&((s=o.item==null||o.item.children==null?null:o.item.children.length)!==null&&s!==void 0?s:0)>0?1:2)}},dependencies:[qs,zs,Xa,Wh,LB],styles:["nav[_ngcontent-%COMP%]:focus, .navigation-btn[_ngcontent-%COMP%]{outline:none}.navigation-btn[_ngcontent-%COMP%]{padding:10px 15px;font-weight:700;line-height:16px;margin:0;font-size:13px;cursor:pointer;position:relative;display:block;width:100%;text-align:left;background:none;border:none}.navigation-btn[_ngcontent-%COMP%]:not(.active), .children[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .child-link[_ngcontent-%COMP%]:not(.active){text-decoration:none;color:inherit}.navigation-btn[_ngcontent-%COMP%] .icon-container[_ngcontent-%COMP%]{display:inline-block;position:absolute;right:5px;font-size:18px}.navigation-btn[_ngcontent-%COMP%] mat-icon.icon-container.bottom[_ngcontent-%COMP%]{transform:rotate(90deg)}.navigation-btn[_ngcontent-%COMP%] mat-icon.icon-container.top[_ngcontent-%COMP%]{transform:rotate(-90deg)}.children[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{display:block;list-style-type:none;margin:0 0 5px;padding:0;overflow:hidden}.children[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{font-size:13px;line-height:16px;margin:0;padding:5px 15px 5px 20px}.children[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{display:block;text-decoration:none}hr[_ngcontent-%COMP%]{padding:0;margin:0;border-top:1px solid rgba(0,0,0,.1)}"],data:{animation:[aQe]},changeDetection:0});let n=e;return n})();function k8t(n,e){n&1&&Pn(0)}function M8t(n,e){if(n&1&&Ne(0,k8t,1,0,"ng-container",1),n&2){let t=le();J("ngTemplateOutlet",t.menuTemplate)}}function O8t(n,e){if(n&1&&bt(0,"bd-app-container-navigation-item",2),n&2){let t=e.$implicit;J("item",t)}}function R8t(n,e){if(n&1&&Ec(0,O8t,1,1,"bd-app-container-navigation-item",2,Nu),n&2){let t=le();Ic(t.navigationItems)}}var cQe=(()=>{let e=class e{constructor(i){this._navigationService=i,this.menuTemplate=null,this.navigationItems=this._navigationService.navigationItems,this._navigationService.navigationItems$.subscribe(r=>this.navigationItems=r)}};e.\u0275fac=function(r){return new(r||e)(oe(sQe))},e.\u0275cmp=Ct({type:e,selectors:[["bd-app-container-navigation"]],inputs:{menuTemplate:"menuTemplate"},standalone:!0,features:[Ot],decls:3,vars:1,consts:[[1,"navigation-container"],[4,"ngTemplateOutlet"],[3,"item"]],template:function(r,o){r&1&&(se(0,"div",0),Ne(1,M8t,1,1,"ng-container")(2,R8t,2,0),ce()),r&2&&(Z(),Hi(o.menuTemplate?1:2))},dependencies:[Rs,lQe],styles:[".navigation-container[_ngcontent-%COMP%]{width:240px}"]});let n=e;return n})();var N8t=["sidenav"],P8t=[[["","bd-app-top-right-action",""]],[["","bd-app-content",""]]],F8t=["[bd-app-top-right-action]","[bd-app-content]"],uQe=(()=>{let e=class e extends Dc{constructor(i,r,o){super(),this._appService=i,this._router=r,this._mediaService=o,this.features=[],this.footerOptions=Gne,this.menuTemplate=null,this.title="",this.sideNavMode="push",this.sideNavOpen=!1,this._subs.push(this._mediaService.asObservable().subscribe(s=>{this.sideNavMode=s.some(c=>c.mqAlias==="xl")?"side":"over",this.sideNavOpen=s.some(c=>c.mqAlias==="xl")})),this._subs.push(this._appService.title$.pipe(aa(this._appService.title)).subscribe(s=>this.title=s)),this._subs.push(this._router.events.pipe(Wn(s=>s instanceof yh)).subscribe(()=>{this.sideNavMode!=="side"&&this.sidenav.close()}))}ngOnDestroy(){this.unsubscribeAll()}};e.\u0275fac=function(r){return new(r||e)(oe(Vne),oe(el),oe(GB))},e.\u0275cmp=Ct({type:e,selectors:[["bd-app-container"]],viewQuery:function(r,o){if(r&1&&Xn(N8t,7),r&2){let s;Di(s=ki())&&(o.sidenav=s.first)}},inputs:{features:"features",footerOptions:"footerOptions",menuTemplate:"menuTemplate"},standalone:!0,features:[Li,Ot],ngContentSelectors:F8t,decls:22,vars:5,consts:[["sidenav",""],[1,"bd-app-container"],[1,"bd-app-top-header","mat-elevation-z8"],["fxLayout","row","fxLayoutAlign","start center",1,"header","bd-primary"],["fxFlex","64px",1,"navigation-trigger"],["mat-icon-button","",3,"click"],["fxFlex",""],[1,"mat-title"],["fxFlex","40px",1,"action"],[3,"mode","opened"],[3,"menuTemplate"],[1,"mat-elevation-z5"],[1,"bd-app-content"],[3,"options"]],template:function(r,o){if(r&1){let s=Fi();Yr(P8t),se(0,"div")(1,"div",1)(2,"div",2)(3,"nav")(4,"div",3)(5,"div",4)(6,"button",5),At("click",function(){ht(s);let h=_r(16);return pt(h.opened?h.close():h.open())}),se(7,"mat-icon"),yt(8,"menu"),ce()()(),se(9,"div",6)(10,"span",7),yt(11),ce()(),se(12,"div",8),Gn(13),ce()()()(),se(14,"mat-sidenav-container")(15,"mat-sidenav",9,0),bt(17,"bd-app-container-navigation",10),ce(),se(18,"mat-sidenav-content",11)(19,"div",12),Gn(20,1),ce(),bt(21,"bd-footer",13),ce()()()()}r&2&&(Z(11),jn(o.title),Z(4),J("mode",o.sideNavMode)("opened",o.sideNavOpen),Z(2),J("menuTemplate",o.menuTemplate),Z(4),J("options",o.footerOptions))},dependencies:[Ys,tl,Ac,Cl,gs,Jh,qs,zs,mGe,bEe,xEe,jne,cQe,oQe],styles:[".bd-app-container[_ngcontent-%COMP%]{height:100%;width:100%;position:relative}.bd-app-top-header[_ngcontent-%COMP%]{position:fixed;top:0;width:100%;z-index:2}mat-sidenav-container[_ngcontent-%COMP%]{min-height:calc(100vh - 48px);margin-top:48px}mat-sidenav-content[_ngcontent-%COMP%]{min-height:calc(100vh - 48px);z-index:2}.bd-app-content[_ngcontent-%COMP%]{min-height:calc(100vh - 124px)}"]});let n=e;return n})();function B8t(n,e){n&1&&bt(0,"router-outlet")}function z8t(n,e){if(n&1&&bt(0,"ays-menu",6),n&2){let t=le();J("features",t.features)}}var dQe=(()=>{let e=class e extends Mne{constructor(i,r,o,s,c,h,g){super(s,h,g,c),this._appService=i,this._snackBar=r,this._environmentService=o,this.features=[],this._appService.setTitle("BinDoc Struktur- und Leistungsdaten Import")}ngOnInit(){this._initAuthenticationRoot(),this._initBanner(this._snackBar,this._environmentService)}};e.\u0275fac=function(r){return new(r||e)(oe(Vne),oe(Y8e),oe(dr),oe(BB),oe(Wp),oe(Xw),oe(Zh))},e.\u0275cmp=Ct({type:e,selectors:[["app-root"]],standalone:!0,features:[Li,Ot],decls:13,vars:2,consts:[["menuTpl",""],[3,"menuTemplate"],["bd-app-top-right-action",""],[1,"flex","gap-4","content-center"],["bd-app-content",""],[4,"ngIf"],[3,"features"]],template:function(r,o){if(r&1&&(se(0,"bd-app-container",1),er(1,2),se(2,"div",3)(3,"div"),bt(4,"bd-user-authentication-state"),ce(),se(5,"div"),bt(6,"bd-user-zendesk-button"),ce(),se(7,"div"),bt(8,"bd-authentication-menu"),ce()(),tr(),er(9,4),Ne(10,B8t,1,0,"router-outlet",5),tr(),ce(),Ne(11,z8t,1,1,"ng-template",null,0,ws)),r&2){let s=_r(12);J("menuTemplate",s),Z(10),J("ngIf",!o.isIframe)}},dependencies:[C_,FCe,dGe,uQe,W8e,CGe,d$e,Ul]});let n=e;return n})();var hQe={production:!0,configRequestUrl:"/config/v2",configRequestMethod:"POST"};var V8t=["*"];function U8t(n,e){n&1&&Gn(0)}var bMe=(()=>{let e=class e{constructor(i){this._elementRef=i}focus(){this._elementRef.nativeElement.focus()}};e.\u0275fac=function(r){return new(r||e)(oe(Ai))},e.\u0275dir=Ki({type:e,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"],standalone:!0});let n=e;return n})(),xMe=(()=>{let e=class e{constructor(i){this.template=i}};e.\u0275fac=function(r){return new(r||e)(oe(qa))},e.\u0275dir=Ki({type:e,selectors:[["","cdkStepLabel",""]],standalone:!0});let n=e;return n})(),j8t=0;var mS={NUMBER:"number",EDIT:"edit",DONE:"done",ERROR:"error"},wMe=new fi("STEPPER_GLOBAL_OPTIONS"),jue=(()=>{let e=class e{get completed(){return this._completedOverride==null?this._getDefaultCompleted():this._completedOverride}set completed(i){this._completedOverride=i}_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return this._customError==null?this._getDefaultError():this._customError}set hasError(i){this._customError=i}_getDefaultError(){return this.stepControl&&this.stepControl.invalid&&this.interacted}constructor(i,r){this._stepper=i,this.interacted=!1,this.interactedStream=new Kt,this.editable=!0,this.optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=r||{},this._displayDefaultIndicatorType=this._stepperOptions.displayDefaultIndicatorType!==!1}select(){this._stepper.selected=this}reset(){this.interacted=!1,this._completedOverride!=null&&(this._completedOverride=!1),this._customError!=null&&(this._customError=!1),this.stepControl&&this.stepControl.reset()}ngOnChanges(){this._stepper._stateChanged()}_markAsInteracted(){this.interacted||(this.interacted=!0,this.interactedStream.emit(this))}_showError(){return this._stepperOptions.showError??this._customError!=null}};e.\u0275fac=function(r){return new(r||e)(oe(ka(()=>VY)),oe(wMe,8))},e.\u0275cmp=Ct({type:e,selectors:[["cdk-step"]],contentQueries:function(r,o,s){if(r&1&&gr(s,xMe,5),r&2){let c;Di(c=ki())&&(o.stepLabel=c.first)}},viewQuery:function(r,o){if(r&1&&Xn(qa,7),r&2){let s;Di(s=ki())&&(o.content=s.first)}},inputs:{stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],state:"state",editable:[2,"editable","editable",Ht],optional:[2,"optional","optional",Ht],completed:[2,"completed","completed",Ht],hasError:[2,"hasError","hasError",Ht]},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],standalone:!0,features:[Ir,eo,Ot],ngContentSelectors:V8t,decls:1,vars:0,template:function(r,o){r&1&&(Yr(),Ne(0,U8t,1,0,"ng-template"))},encapsulation:2,changeDetection:0});let n=e;return n})(),VY=(()=>{let e=class e{get selectedIndex(){return this._selectedIndex}set selectedIndex(i){this.steps&&this._steps?(this._isValidIndex(i),this.selected?._markAsInteracted(),this._selectedIndex!==i&&!this._anyControlsInvalidOrPending(i)&&(i>=this._selectedIndex||this.steps.toArray()[i].editable)&&this._updateSelectedItemIndex(i)):this._selectedIndex=i}get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(i){this.selectedIndex=i&&this.steps?this.steps.toArray().indexOf(i):-1}get orientation(){return this._orientation}set orientation(i){this._orientation=i,this._keyManager&&this._keyManager.withVerticalOrientation(i==="vertical")}constructor(i,r,o){this._dir=i,this._changeDetectorRef=r,this._elementRef=o,this._destroyed=new mi,this.steps=new fh,this._sortedHeaders=new fh,this.linear=!1,this._selectedIndex=0,this.selectionChange=new Kt,this.selectedIndexChange=new Kt,this._orientation="horizontal",this._groupId=j8t++}ngAfterContentInit(){this._steps.changes.pipe(aa(this._steps),hr(this._destroyed)).subscribe(i=>{this.steps.reset(i.filter(r=>r._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){this._stepHeader.changes.pipe(aa(this._stepHeader),hr(this._destroyed)).subscribe(i=>{this._sortedHeaders.reset(i.toArray().sort((r,o)=>r._elementRef.nativeElement.compareDocumentPosition(o._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)),this._sortedHeaders.notifyOnChanges()}),this._keyManager=new vT(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation(this._orientation==="vertical"),(this._dir?this._dir.change:kn()).pipe(aa(this._layoutDirection()),hr(this._destroyed)).subscribe(i=>this._keyManager.withHorizontalOrientation(i)),this._keyManager.updateActiveItem(this._selectedIndex),this.steps.changes.subscribe(()=>{this.selected||(this._selectedIndex=Math.max(this._selectedIndex-1,0))}),this._isValidIndex(this._selectedIndex)||(this._selectedIndex=0)}ngOnDestroy(){this._keyManager?.destroy(),this.steps.destroy(),this._sortedHeaders.destroy(),this._destroyed.next(),this._destroyed.complete()}next(){this.selectedIndex=Math.min(this._selectedIndex+1,this.steps.length-1)}previous(){this.selectedIndex=Math.max(this._selectedIndex-1,0)}reset(){this._updateSelectedItemIndex(0),this.steps.forEach(i=>i.reset()),this._stateChanged()}_getStepLabelId(i){return`cdk-step-label-${this._groupId}-${i}`}_getStepContentId(i){return`cdk-step-content-${this._groupId}-${i}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(i){let r=i-this._selectedIndex;return r<0?this._layoutDirection()==="rtl"?"next":"previous":r>0?this._layoutDirection()==="rtl"?"previous":"next":"current"}_getIndicatorType(i,r=mS.NUMBER){let o=this.steps.toArray()[i],s=this._isCurrentStep(i);return o._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(o,s):this._getGuidelineLogic(o,s,r)}_getDefaultIndicatorLogic(i,r){return i._showError()&&i.hasError&&!r?mS.ERROR:!i.completed||r?mS.NUMBER:i.editable?mS.EDIT:mS.DONE}_getGuidelineLogic(i,r,o=mS.NUMBER){return i._showError()&&i.hasError&&!r?mS.ERROR:i.completed&&!r?mS.DONE:i.completed&&r?o:i.editable&&r?mS.EDIT:o}_isCurrentStep(i){return this._selectedIndex===i}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(i){let r=this.steps.toArray();this.selectionChange.emit({selectedIndex:i,previouslySelectedIndex:this._selectedIndex,selectedStep:r[i],previouslySelectedStep:r[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(i):this._keyManager.updateActiveItem(i),this._selectedIndex=i,this.selectedIndexChange.emit(this._selectedIndex),this._stateChanged()}_onKeydown(i){let r=il(i),o=i.keyCode,s=this._keyManager;s.activeItemIndex!=null&&!r&&(o===32||o===13)?(this.selectedIndex=s.activeItemIndex,i.preventDefault()):s.setFocusOrigin("keyboard").onKeydown(i)}_anyControlsInvalidOrPending(i){return this.linear&&i>=0?this.steps.toArray().slice(0,i).some(r=>{let o=r.stepControl;return(o?o.invalid||o.pending||!r.interacted:!r.completed)&&!r.optional&&!r._completedOverride}):!1}_layoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_containsFocus(){let i=this._elementRef.nativeElement,r=iR();return i===r||i.contains(r)}_isValidIndex(i){return i>-1&&(!this.steps||i{let e=class e{constructor(i){this._stepper=i,this.type="submit"}};e.\u0275fac=function(r){return new(r||e)(oe(VY))},e.\u0275dir=Ki({type:e,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(r,o){r&1&&At("click",function(){return o._stepper.next()}),r&2&&Pu("type",o.type)},inputs:{type:"type"},standalone:!0});let n=e;return n})();function H8t(n,e){if(n&1&&Pn(0,2),n&2){let t=le();J("ngTemplateOutlet",t.iconOverrides[t.state])("ngTemplateOutletContext",t._getIconContext())}}function G8t(n,e){if(n&1&&(se(0,"span",7),yt(1),ce()),n&2){let t=le(2);Z(),jn(t._getDefaultTextForState(t.state))}}function Y8t(n,e){if(n&1&&(se(0,"span",8),yt(1),ce()),n&2){let t=le(3);Z(),jn(t._intl.completedLabel)}}function q8t(n,e){if(n&1&&(se(0,"span",8),yt(1),ce()),n&2){let t=le(3);Z(),jn(t._intl.editableLabel)}}function $8t(n,e){if(n&1&&(Ne(0,Y8t,2,1,"span",8)(1,q8t,2,1,"span",8),se(2,"mat-icon",7),yt(3),ce()),n&2){let t=le(2);Hi(t.state==="done"?0:t.state==="edit"?1:-1),Z(3),jn(t._getDefaultTextForState(t.state))}}function K8t(n,e){if(n&1&&Ne(0,G8t,2,1,"span",7)(1,$8t,4,2,"mat-icon",7),n&2){let t,i=le();Hi((t=i.state)==="number"?0:1)}}function W8t(n,e){n&1&&(se(0,"div",4),Pn(1,9),ce()),n&2&&(Z(),J("ngTemplateOutlet",e.template))}function Z8t(n,e){if(n&1&&(se(0,"div",4),yt(1),ce()),n&2){let t=le();Z(),jn(t.label)}}function Q8t(n,e){if(n&1&&(se(0,"div",5),yt(1),ce()),n&2){let t=le();Z(),jn(t._intl.optionalLabel)}}function X8t(n,e){if(n&1&&(se(0,"div",6),yt(1),ce()),n&2){let t=le();Z(),jn(t.errorMessage)}}var gQe=["*"];function J8t(n,e){}function eGt(n,e){if(n&1&&(Gn(0),Ne(1,J8t,0,0,"ng-template",0)),n&2){let t=le();Z(),J("cdkPortalOutlet",t._portal)}}var _Qe=(n,e)=>({step:n,i:e}),vQe=n=>({animationDuration:n}),yQe=(n,e)=>({value:n,params:e});function tGt(n,e){n&1&&Gn(0)}function iGt(n,e){n&1&&bt(0,"div",6)}function nGt(n,e){if(n&1&&(Pn(0,5),Ne(1,iGt,1,0,"div",6)),n&2){let t=e.$implicit,i=e.$index,r=e.$count;le(2);let o=_r(4);J("ngTemplateOutlet",o)("ngTemplateOutletContext",ha(3,_Qe,t,i)),Z(),Hi(i!==r-1?1:-1)}}function rGt(n,e){if(n&1){let t=Fi();se(0,"div",7),At("@horizontalStepTransition.done",function(r){ht(t);let o=le(2);return pt(o._animationDone.next(r))}),Pn(1,8),ce()}if(n&2){let t=e.$implicit,i=e.$index,r=le(2);$n("mat-horizontal-stepper-content-inactive",r.selectedIndex!==i),J("@horizontalStepTransition",ha(8,yQe,r._getAnimationDirection(i),Tr(6,vQe,r._getAnimationDuration())))("id",r._getStepContentId(i)),Et("aria-labelledby",r._getStepLabelId(i)),Z(),J("ngTemplateOutlet",t.content)}}function oGt(n,e){if(n&1&&(se(0,"div",1)(1,"div",2),Ec(2,nGt,2,6,null,null,Nu),ce(),se(4,"div",3),Ec(5,rGt,2,11,"div",4,Nu),ce()()),n&2){let t=le();Z(2),Ic(t.steps),Z(3),Ic(t.steps)}}function sGt(n,e){if(n&1){let t=Fi();se(0,"div",9),Pn(1,5),se(2,"div",10)(3,"div",11),At("@verticalStepTransition.done",function(r){ht(t);let o=le(2);return pt(o._animationDone.next(r))}),se(4,"div",12),Pn(5,8),ce()()()()}if(n&2){let t=e.$implicit,i=e.$index,r=e.$count,o=le(2),s=_r(4);Z(),J("ngTemplateOutlet",s)("ngTemplateOutletContext",ha(10,_Qe,t,i)),Z(),$n("mat-stepper-vertical-line",i!==r-1),Z(),$n("mat-vertical-stepper-content-inactive",o.selectedIndex!==i),J("@verticalStepTransition",ha(15,yQe,o._getAnimationDirection(i),Tr(13,vQe,o._getAnimationDuration())))("id",o._getStepContentId(i)),Et("aria-labelledby",o._getStepLabelId(i)),Z(2),J("ngTemplateOutlet",t.content)}}function aGt(n,e){if(n&1&&Ec(0,sGt,6,18,"div",9,Nu),n&2){let t=le();Ic(t.steps)}}function lGt(n,e){if(n&1){let t=Fi();se(0,"mat-step-header",13),At("click",function(){let r=ht(t).step;return pt(r.select())})("keydown",function(r){ht(t);let o=le();return pt(o._onKeydown(r))}),ce()}if(n&2){let t=e.step,i=e.i,r=le();$n("mat-horizontal-stepper-header",r.orientation==="horizontal")("mat-vertical-stepper-header",r.orientation==="vertical"),J("tabIndex",r._getFocusIndex()===i?0:-1)("id",r._getStepLabelId(i))("index",i)("state",r._getIndicatorType(i,t.state))("label",t.stepLabel||t.label)("selected",r.selectedIndex===i)("active",r._stepIsNavigable(i,t))("optional",t.optional)("errorMessage",t.errorMessage)("iconOverrides",r._iconOverrides)("disableRipple",r.disableRipple||!r._stepIsNavigable(i,t))("color",t.color||r.color),Et("aria-posinset",i+1)("aria-setsize",r.steps.length)("aria-controls",r._getStepContentId(i))("aria-selected",r.selectedIndex==i)("aria-label",t.ariaLabel||null)("aria-labelledby",!t.ariaLabel&&t.ariaLabelledby?t.ariaLabelledby:null)("aria-disabled",r._stepIsNavigable(i,t)?null:!0)}}var CMe=(()=>{let e=class e extends xMe{};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=Qn(e)))(o||e)}})(),e.\u0275dir=Ki({type:e,selectors:[["","matStepLabel",""]],standalone:!0,features:[Li]});let n=e;return n})(),cGt=(()=>{let e=class e{constructor(){this.changes=new mi,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=It({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var fQe=(()=>{let e=class e extends bMe{constructor(i,r,o,s){super(o),this._intl=i,this._focusMonitor=r,this._intlSubscription=i.changes.subscribe(()=>s.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(i,r){i?this._focusMonitor.focusVia(this._elementRef,i,r):this._elementRef.nativeElement.focus(r)}_stringLabel(){return this.label instanceof CMe?null:this.label}_templateLabel(){return this.label instanceof CMe?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getIconContext(){return{index:this.index,active:this.active,optional:this.optional}}_getDefaultTextForState(i){return i=="number"?`${this.index+1}`:i=="edit"?"create":i=="error"?"warning":i}};e.\u0275fac=function(r){return new(r||e)(oe(cGt),oe(Lu),oe(Ai),oe(ur))},e.\u0275cmp=Ct({type:e,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header"],hostVars:2,hostBindings:function(r,o){r&2&&vn("mat-"+(o.color||"primary"))},inputs:{state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple",color:"color"},standalone:!0,features:[Li,Ot],decls:10,vars:17,consts:[["matRipple","",1,"mat-step-header-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-step-icon-content"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"mat-step-label"],[1,"mat-step-text-label"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"],["aria-hidden","true"],[1,"cdk-visually-hidden"],[3,"ngTemplateOutlet"]],template:function(r,o){if(r&1&&(bt(0,"div",0),se(1,"div")(2,"div",1),Ne(3,H8t,1,2,"ng-container",2)(4,K8t,2,1),ce()(),se(5,"div",3),Ne(6,W8t,2,1,"div",4)(7,Z8t,2,1,"div",4)(8,Q8t,2,1,"div",5)(9,X8t,2,1,"div",6),ce()),r&2){let s;J("matRippleTrigger",o._getHostElement())("matRippleDisabled",o.disableRipple),Z(),wee("mat-step-icon-state-",o.state," mat-step-icon"),$n("mat-step-icon-selected",o.selected),Z(2),Hi(o.iconOverrides&&o.iconOverrides[o.state]?3:4),Z(2),$n("mat-step-label-active",o.active)("mat-step-label-selected",o.selected)("mat-step-label-error",o.state=="error"),Z(),Hi((s=o._templateLabel())?6:o._stringLabel()?7:-1,s),Z(2),Hi(o.optional&&o.state!="error"?8:-1),Z(),Hi(o.state==="error"?9:-1)}},dependencies:[oC,Rs,zs],styles:['.mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-step-header:focus .mat-focus-indicator::before{content:""}.mat-step-header:hover[aria-disabled=true]{cursor:default}.mat-step-header:hover:not([aria-disabled]),.mat-step-header:hover[aria-disabled=false]{background-color:var(--mat-stepper-header-hover-state-layer-color);border-radius:var(--mat-stepper-header-hover-state-layer-shape)}.mat-step-header.cdk-keyboard-focused,.mat-step-header.cdk-program-focused{background-color:var(--mat-stepper-header-focus-state-layer-color);border-radius:var(--mat-stepper-header-focus-state-layer-shape)}@media(hover: none){.mat-step-header:hover{background:none}}.cdk-high-contrast-active .mat-step-header{outline:solid 1px}.cdk-high-contrast-active .mat-step-header[aria-selected=true] .mat-step-label{text-decoration:underline}.cdk-high-contrast-active .mat-step-header[aria-disabled=true]{outline-color:GrayText}.cdk-high-contrast-active .mat-step-header[aria-disabled=true] .mat-step-label,.cdk-high-contrast-active .mat-step-header[aria-disabled=true] .mat-step-icon,.cdk-high-contrast-active .mat-step-header[aria-disabled=true] .mat-step-optional{color:GrayText}.mat-step-optional{font-size:12px;color:var(--mat-stepper-header-optional-label-text-color)}.mat-step-sub-label-error{font-size:12px;font-weight:normal}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative;color:var(--mat-stepper-header-icon-foreground-color);background-color:var(--mat-stepper-header-icon-background-color)}.mat-step-icon-content{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error{background-color:var(--mat-stepper-header-error-state-icon-background-color);color:var(--mat-stepper-header-error-state-icon-foreground-color)}.mat-step-icon-state-error .mat-icon{font-size:24px;height:24px;width:24px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle;font-family:var(--mat-stepper-header-label-text-font);font-size:var(--mat-stepper-header-label-text-size);font-weight:var(--mat-stepper-header-label-text-weight);color:var(--mat-stepper-header-label-text-color)}.mat-step-label.mat-step-label-active{color:var(--mat-stepper-header-selected-state-label-text-color)}.mat-step-label.mat-step-label-error{color:var(--mat-stepper-header-error-state-label-text-color);font-size:var(--mat-stepper-header-error-state-label-text-size)}.mat-step-label.mat-step-label-selected{font-size:var(--mat-stepper-header-selected-state-label-text-size);font-weight:var(--mat-stepper-header-selected-state-label-text-weight)}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header .mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-step-icon-selected{background-color:var(--mat-stepper-header-selected-state-icon-background-color);color:var(--mat-stepper-header-selected-state-icon-foreground-color)}.mat-step-icon-state-done{background-color:var(--mat-stepper-header-done-state-icon-background-color);color:var(--mat-stepper-header-done-state-icon-foreground-color)}.mat-step-icon-state-edit{background-color:var(--mat-stepper-header-edit-state-icon-background-color);color:var(--mat-stepper-header-edit-state-icon-foreground-color)}'],encapsulation:2,changeDetection:0});let n=e;return n})(),bQe="500ms",xQe="225ms",mQe={horizontalStepTransition:jl("horizontalStepTransition",[nl("previous",qr({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),nl("current",qr({transform:"none",visibility:"inherit"})),nl("next",qr({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),$s("* => *",y0([Ps("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)"),DT("@*",AT(),{optional:!0})]),{params:{animationDuration:bQe}})]),verticalStepTransition:jl("verticalStepTransition",[nl("previous",qr({height:"0px",visibility:"hidden"})),nl("next",qr({height:"0px",visibility:"hidden"})),nl("current",qr({height:"*",visibility:"inherit"})),$s("* <=> current",y0([Ps("{{animationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)"),DT("@*",AT(),{optional:!0})]),{params:{animationDuration:xQe}})])},uGt=(()=>{let e=class e{constructor(i){this.templateRef=i}};e.\u0275fac=function(r){return new(r||e)(oe(qa))},e.\u0275dir=Ki({type:e,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:[0,"matStepperIcon","name"]},standalone:!0});let n=e;return n})(),dGt=(()=>{let e=class e{constructor(i){this._template=i}};e.\u0275fac=function(r){return new(r||e)(oe(qa))},e.\u0275dir=Ki({type:e,selectors:[["ng-template","matStepContent",""]],standalone:!0});let n=e;return n})(),SMe=(()=>{let e=class e extends jue{constructor(i,r,o,s){super(i,s),this._errorStateMatcher=r,this._viewContainerRef=o,this._isSelected=Qo.EMPTY,this.stepLabel=void 0}ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe(lr(()=>this._stepper.selectionChange.pipe(ri(i=>i.selectedStep===this),aa(this._stepper.selected===this)))).subscribe(i=>{i&&this._lazyContent&&!this._portal&&(this._portal=new qp(this._lazyContent._template,this._viewContainerRef))})}ngOnDestroy(){this._isSelected.unsubscribe()}isErrorState(i,r){let o=this._errorStateMatcher.isErrorState(i,r),s=!!(i&&i.invalid&&this.interacted);return o||s}};e.\u0275fac=function(r){return new(r||e)(oe(ka(()=>EMe)),oe(D_,4),oe(Sc),oe(wMe,8))},e.\u0275cmp=Ct({type:e,selectors:[["mat-step"]],contentQueries:function(r,o,s){if(r&1&&(gr(s,CMe,5),gr(s,dGt,5)),r&2){let c;Di(c=ki())&&(o.stepLabel=c.first),Di(c=ki())&&(o._lazyContent=c.first)}},hostAttrs:["hidden",""],inputs:{color:"color"},exportAs:["matStep"],standalone:!0,features:[Co([{provide:D_,useExisting:e},{provide:jue,useExisting:e}]),Li,Ot],ngContentSelectors:gQe,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(r,o){r&1&&(Yr(),Ne(0,eGt,2,1,"ng-template"))},dependencies:[k_],encapsulation:2,changeDetection:0});let n=e;return n})(),EMe=(()=>{let e=class e extends VY{get animationDuration(){return this._animationDuration}set animationDuration(i){this._animationDuration=/^\d+$/.test(i)?i+"ms":i}constructor(i,r,o){super(i,r,o),this._stepHeader=void 0,this._steps=void 0,this.steps=new fh,this.animationDone=new Kt,this.labelPosition="end",this.headerPosition="top",this._iconOverrides={},this._animationDone=new mi,this._animationDuration="",this._isServer=!ai(zo).isBrowser;let s=o.nativeElement.nodeName.toLowerCase();this.orientation=s==="mat-vertical-stepper"?"vertical":"horizontal"}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:i,templateRef:r})=>this._iconOverrides[i]=r),this.steps.changes.pipe(hr(this._destroyed)).subscribe(()=>{this._stateChanged()}),this._animationDone.pipe(hh((i,r)=>i.fromState===r.fromState&&i.toState===r.toState),hr(this._destroyed)).subscribe(i=>{i.toState==="current"&&this.animationDone.emit()})}_stepIsNavigable(i,r){return r.completed||this.selectedIndex===i||!this.linear}_getAnimationDuration(){return this.animationDuration?this.animationDuration:this.orientation==="horizontal"?bQe:xQe}};e.\u0275fac=function(r){return new(r||e)(oe(pl,8),oe(ur),oe(Ai))},e.\u0275cmp=Ct({type:e,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(r,o,s){if(r&1&&(gr(s,SMe,5),gr(s,uGt,5)),r&2){let c;Di(c=ki())&&(o._steps=c),Di(c=ki())&&(o._icons=c)}},viewQuery:function(r,o){if(r&1&&Xn(fQe,5),r&2){let s;Di(s=ki())&&(o._stepHeader=s)}},hostAttrs:["role","tablist"],hostVars:11,hostBindings:function(r,o){r&2&&(Et("aria-orientation",o.orientation),$n("mat-stepper-horizontal",o.orientation==="horizontal")("mat-stepper-vertical",o.orientation==="vertical")("mat-stepper-label-position-end",o.orientation==="horizontal"&&o.labelPosition=="end")("mat-stepper-label-position-bottom",o.orientation==="horizontal"&&o.labelPosition=="bottom")("mat-stepper-header-position-bottom",o.headerPosition==="bottom"))},inputs:{disableRipple:"disableRipple",color:"color",labelPosition:"labelPosition",headerPosition:"headerPosition",animationDuration:"animationDuration"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],standalone:!0,features:[Co([{provide:VY,useExisting:e}]),Li,Ot],ngContentSelectors:gQe,decls:5,vars:2,consts:[["stepTemplate",""],[1,"mat-horizontal-stepper-wrapper"],[1,"mat-horizontal-stepper-header-container"],[1,"mat-horizontal-content-container"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id","mat-horizontal-stepper-content-inactive"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"mat-stepper-horizontal-line"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[3,"ngTemplateOutlet"],[1,"mat-step"],[1,"mat-vertical-content-container"],["role","tabpanel",1,"mat-vertical-stepper-content",3,"id"],[1,"mat-vertical-content"],[3,"click","keydown","tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","color"]],template:function(r,o){if(r&1&&(Yr(),Ne(0,tGt,1,0)(1,oGt,7,0,"div",1)(2,aGt,2,0)(3,lGt,1,23,"ng-template",null,0,ws)),r&2){let s;Hi(o._isServer?0:-1),Z(),Hi((s=o.orientation)==="horizontal"?1:s==="vertical"?2:-1)}},dependencies:[Rs,fQe],styles:['.mat-stepper-vertical,.mat-stepper-horizontal{display:block;font-family:var(--mat-stepper-container-text-font);background:var(--mat-stepper-container-color)}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header-container{align-items:flex-start}.mat-stepper-header-position-bottom .mat-horizontal-stepper-header-container{order:1}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px;border-top-color:var(--mat-stepper-line-color)}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative;top:calc(calc((var(--mat-stepper-header-height) - 24px) / 2) + 12px)}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{border-top-width:1px;border-top-style:solid;content:"";display:inline-block;height:0;position:absolute;width:calc(50% - 20px)}.mat-horizontal-stepper-header{display:flex;height:72px;overflow:hidden;align-items:center;padding:0 24px;height:var(--mat-stepper-header-height)}.mat-horizontal-stepper-header .mat-step-icon{margin-right:8px;flex:none}[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:8px}.mat-horizontal-stepper-header::before,.mat-horizontal-stepper-header::after{border-top-color:var(--mat-stepper-line-color)}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{padding:calc((var(--mat-stepper-header-height) - 24px) / 2) 24px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header::after{top:calc(calc((var(--mat-stepper-header-height) - 24px) / 2) + 12px)}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{box-sizing:border-box;flex-direction:column;height:auto}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{right:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before{left:0}[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:last-child::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:first-child::after{display:none}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-label{padding:16px 0 0 0;text-align:center;width:100%}.mat-vertical-stepper-header{display:flex;align-items:center;height:24px;padding:calc((var(--mat-stepper-header-height) - 24px) / 2) 24px}.mat-vertical-stepper-header .mat-step-icon{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon{margin-right:0;margin-left:12px}.mat-horizontal-stepper-wrapper{display:flex;flex-direction:column}.mat-horizontal-stepper-content{outline:0}.mat-horizontal-stepper-content.mat-horizontal-stepper-content-inactive{height:0;overflow:hidden}.mat-horizontal-stepper-content:not(.mat-horizontal-stepper-content-inactive){visibility:inherit !important}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}.cdk-high-contrast-active .mat-horizontal-content-container{outline:solid 1px}.mat-stepper-header-position-bottom .mat-horizontal-content-container{padding:24px 24px 0 24px}.mat-vertical-content-container{margin-left:36px;border:0;position:relative}.cdk-high-contrast-active .mat-vertical-content-container{outline:solid 1px}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}.mat-stepper-vertical-line::before{content:"";position:absolute;left:0;border-left-width:1px;border-left-style:solid;border-left-color:var(--mat-stepper-line-color);top:calc(8px - calc((var(--mat-stepper-header-height) - 24px) / 2));bottom:calc(8px - calc((var(--mat-stepper-header-height) - 24px) / 2))}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0}.mat-vertical-stepper-content:not(.mat-vertical-stepper-content-inactive){visibility:inherit !important}.mat-vertical-content{padding:0 24px 24px 24px}.mat-step:last-child .mat-vertical-content-container{border:none}'],encapsulation:2,data:{animation:[mQe.horizontalStepTransition,mQe.verticalStepTransition]},changeDetection:0});let n=e;return n})(),wQe=(()=>{let e=class e extends pQe{};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=Qn(e)))(o||e)}})(),e.\u0275dir=Ki({type:e,selectors:[["button","matStepperNext",""]],hostAttrs:[1,"mat-stepper-next"],hostVars:1,hostBindings:function(r,o){r&2&&Pu("type",o.type)},standalone:!0,features:[Li]});let n=e;return n})();var TQe=jh(OR());var m9t=jh(kXe());var BMe={subPageMode:OG.none,width:"600px"};var O9t=jh(ZXe(),1);var nKt=jh(ort(),1);var aKt=jh(OR());var wrt=jh(OR());var vKt=jh(xrt());var PKt=n=>["/virtual-clinics",n.id];var FRe=()=>!1,aq={detailLinkFnc:PKt,disableFnc:FRe,filterFnc:FG,resourceNameTitle:"Virtuelle Klinik",emptyResourcesText:"Keine Virtuellen Kliniken gespeichert",selectOnInit:"first",minPermission:"READ",maxPermission:"CREATOR",resetOption:!1};var LRe=(()=>{let e=class e{constructor(){this.options=aq,this.virtualClinicSelect=new Kt,this.resourceSelect=null,this.resourceName=Bn.VIRTUAL_CLINIC}ngOnChanges(i){i.virtualClinicId&&i.virtualClinicId.currentValue&&this.virtualClinicId&&(this.resourceSelect={id:this.virtualClinicId})}onVirtualClinicSelect(i){this.virtualClinicSelect.emit(i?.resource)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=Ct({type:e,selectors:[["ays-virtual-clinic-select-inline"]],inputs:{virtualClinicId:"virtualClinicId",options:"options"},outputs:{virtualClinicSelect:"virtualClinicSelect"},standalone:!0,features:[eo,Ot],decls:1,vars:3,consts:[[3,"resourceSelectChange","resourceSelect","resourceName","config"]],template:function(r,o){r&1&&(se(0,"bd-resources-select-inline-single",0),At("resourceSelectChange",function(c){return o.onVirtualClinicSelect(c)}),ce()),r&2&&J("resourceSelect",o.resourceSelect)("resourceName",o.resourceName)("config",o.options)},dependencies:[r$e]});let n=e;return n})();var lq=class{static byId(e){let t=pEe.filter(i=>i.fabKey===e);return t[0]?t[0]:null}static byFabKey(e){let t=fEe.filter(i=>i.fabKey===e);return t[0]?t[0]:null}constructor(e){this._environmentService=e}indexResource(){return`${this._environmentService.load("AYS_FAB_RESOURCE_URL")}/`}byFabKeyResource(e){return`${this.indexResource()}${e}`}};var q4=(()=>{let e=class e{constructor(i,r){this._http=i,this._environmentService=r,this._store=new lq(this._environmentService)}index(){let i=this._store.indexResource();return this._http.get(i).pipe(ri(r=>r.map(o=>new Nt(o.fabKey,o.name,null))))}get(i){let r=this._store.byFabKeyResource(i);return this._http.get(r).pipe(kr(1),ri(o=>new Nt(o.fabKey,o.name,null))).toPromise()}getAll(i){let r=i.map(o=>wo(this.get(o)).pipe(Ld(s=>kn(null))));return dh(r).pipe(ri(o=>o.filter(s=>!!s).reduce((s,c)=>(s[c.fabKey]=c,s),{})))}};e.\u0275fac=function(r){return new(r||e)(Ke(ms),Ke(dr))},e.\u0275prov=It({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var Fo=class{constructor(e,t){this.specialityName=e,this.specialityId=t}parent(){let e=this.specialityId.slice(0,3).concat("0");return YKt.find(t=>t.specialityId===e)}},YKt=[new Fo("Allgemeinchirurgie","1000"),new Fo("Allgemeinmedizin","1100"),new Fo("An\xE4sthesiologie","1200"),new Fo("Arbeitsmedizin","1300"),new Fo("Augenheilkunde","1400"),new Fo("Biochemie","1500"),new Fo("Diagnostische Radiologie","1600"),new Fo("Frauenheilkunde und Geburtshilfe","1700"),new Fo("Gef\xE4\xDFchirurgie","1800"),new Fo("Hals-Nasen-Ohrenheilkunde","1900"),new Fo("Haut- und Geschlechtskrankheiten","2000"),new Fo("Herzchirurgie","2100"),new Fo("Humangenetik","2200"),new Fo("Hygiene und Umweltmedizin","2300"),new Fo("Innere Medizin","2400"),new Fo("Angiologie","2401"),new Fo("Endokrinologie und Diabetologie","2402"),new Fo("Gastroenterologie","2403"),new Fo("Geriatrie","2404"),new Fo("H\xE4matologie und Onkologie","2405"),new Fo("Kardiologie","2406"),new Fo("Nephrologie","2407"),new Fo("Pneumologie","2408"),new Fo("Rheumatologie","2409"),new Fo("Mund-Kiefer-Gesichtschirurgie","2500"),new Fo("Kinderheilkunde / Kinder- und Jugendmedizin","2600"),new Fo("Kinderchirurgie","2700"),new Fo("Pharmakologie und Toxikologie","2800"),new Fo("Laboratoriumsmedizin","2900"),new Fo("Mikrobiologie","3000"),new Fo("Neurochirurgie","3100"),new Fo("Neurologie","3200"),new Fo("Neurologie und Psychiatrie","3300"),new Fo("Neuropathologie","3400"),new Fo("Nuklearmedizin","3500"),new Fo("Orthop\xE4die und Unfallchirurgie","3600"),new Fo("Pathologie","3700"),new Fo("Phoniatrie und P\xE4daudiologie","3800"),new Fo("Physikalische und Rehabilitative Medizin","3900"),new Fo("Plastische Chirurgie","4000"),new Fo("Psychiatrie und Psychotherapie","4100"),new Fo("Rechtsmedizin","4200"),new Fo("Strahlentherapie","4300"),new Fo("Thoraxchirurgie","4400"),new Fo("Transfusionsmedizin","4500"),new Fo("Urologie","4600"),new Fo("Virologie","4700"),new Fo("Viszeralchirurgie","4800")];var Do=class{constructor(e,t,i,r,o){this.specialityName=e,this.children=t,this.level=i,this.expandable=r,this.specialityId=o}},qKt=[new Do("Allgemeinchirurgie",[],0,!1,"1000"),new Do("Allgemeinmedizin",[],0,!1,"1100"),new Do("An\xE4sthesiologie",[],0,!1,"1200"),new Do("Arbeitsmedizin",[],0,!1,"1300"),new Do("Augenheilkunde",[],0,!1,"1400"),new Do("Biochemie",[],0,!1,"1500"),new Do("Diagnostische Radiologie",[],0,!1,"1600"),new Do("Frauenheilkunde und Geburtshilfe",[],0,!1,"1700"),new Do("Gef\xE4\xDFchirurgie",[],0,!1,"1800"),new Do("Hals-Nasen-Ohrenheilkunde",[],0,!1,"1900"),new Do("Haut- und Geschlechtskrankheiten",[],0,!1,"2000"),new Do("Herzchirurgie",[],0,!1,"2100"),new Do("Humangenetik",[],0,!1,"2200"),new Do("Hygiene und Umweltmedizin",[],0,!1,"2300"),new Do("Innere Medizin",[new Do("Angiologie",[],1,!1,"2401"),new Do("Endokrinologie und Diabetologie",[],1,!1,"2402"),new Do("Gastroenterologie",[],1,!1,"2403"),new Do("Geriatrie",[],1,!1,"2404"),new Do("H\xE4matologie und Onkologie",[],1,!1,"2405"),new Do("Kardiologie",[],1,!1,"2406"),new Do("Nephrologie",[],1,!1,"2407"),new Do("Pneumologie",[],1,!1,"2408"),new Do("Rheumatologie",[],1,!1,"2409")],0,!0,"2400"),new Do("Mund-Kiefer-Gesichtschirurgie",[],0,!1,"2500"),new Do("Kinderheilkunde / Kinder- und Jugendmedizin",[],0,!1,"2600"),new Do("Kinderchirurgie",[],0,!1,"2700"),new Do("Pharmakologie und Toxikologie",[],0,!1,"2800"),new Do("Laboratoriumsmedizin",[],0,!1,"2900"),new Do("Mikrobiologie",[],0,!1,"3000"),new Do("Neurochirurgie",[],0,!1,"3100"),new Do("Neurologie",[],0,!1,"3200"),new Do("Neurologie und Psychiatrie",[],0,!1,"3300"),new Do("Neuropathologie",[],0,!1,"3400"),new Do("Nuklearmedizin",[],0,!1,"3500"),new Do("Orthop\xE4die und Unfallchirurgie",[],0,!1,"3600"),new Do("Pathologie",[],0,!1,"3700"),new Do("Phoniatrie und P\xE4daudiologie",[],0,!1,"3800"),new Do("Physikalische und Rehabilitative Medizin",[],0,!1,"3900"),new Do("Plastische Chirurgie",[],0,!1,"4000"),new Do("Psychiatrie und Psychotherapie",[],0,!1,"4100"),new Do("Rechtsmedizin",[],0,!1,"4200"),new Do("Strahlentherapie",[],0,!1,"4300"),new Do("Thoraxchirurgie",[],0,!1,"4400"),new Do("Transfusionsmedizin",[],0,!1,"4500"),new Do("Urologie",[],0,!1,"4600"),new Do("Virologie",[],0,!1,"4700"),new Do("Viszeralchirurgie",[],0,!1,"4800")];var Irt=(()=>{let e=class e{constructor(i){this.dialogRef=i}};e.\u0275fac=function(r){return new(r||e)(oe(x0))},e.\u0275cmp=Ct({type:e,selectors:[["ng-component"]],standalone:!0,features:[Ot],decls:6,vars:1,consts:[["mat-dialog-title",""],[3,"align"],["mat-raised-button","","color","accent",3,"click"]],template:function(r,o){r&1&&(se(0,"h1",0),yt(1," Allgemeine Gesch\xE4ftsbedingungen f\xFCr die Verarbeitung der Struktur- und Leistungsdaten "),ce(),bt(2,"mat-dialog-content"),se(3,"mat-dialog-actions",1)(4,"button",2),At("click",function(){return o.dialogRef.close()}),yt(5," Schlie\xDFen "),ce()()),r&2&&(Z(3),J("align","end"))},dependencies:[a3,OT,RT,gs,Sl],styles:[".content[_ngcontent-%COMP%]{margin-bottom:24px}.actions[_ngcontent-%COMP%]{margin-top:24px}"]});let n=e;return n})();var Trt=(()=>{let e=class e{constructor(i){this._dialog=i,this.agreementChange=new Kt}openTermsAndConditionDialog(){let i=this._dialog.open(Irt,{autoFocus:!1})}onAgreementChange(i){this.agreementChange.emit(i.checked)}};e.\u0275fac=function(r){return new(r||e)(oe(w0))},e.\u0275cmp=Ct({type:e,selectors:[["ays-kost-data-import-at-terms-and-conditions"]],outputs:{agreementChange:"agreementChange"},standalone:!0,features:[Ot],decls:7,vars:0,consts:[[3,"change"],["mat-button","","color","accent",3,"click"]],template:function(r,o){r&1&&(se(0,"mat-checkbox",0),At("change",function(c){return o.onAgreementChange(c)}),se(1,"span"),yt(2,"Ich/wir akzeptiere/n die "),ce(),se(3,"button",1),At("click",function(){return o.openTermsAndConditionDialog()}),yt(4," Allgemeinen Gesch\xE4ftsbedingungen "),ce(),se(5,"span"),yt(6,"f\xFCr die Softwarel\xF6sungen der BinDoc GmbH in der Version vom 15.01.2024 und stimme der beschriebenen Datennutzung zu."),ce()())},dependencies:[Uue,k4,gs,Sl],styles:["mat-checkbox[_ngcontent-%COMP%]{width:100%}"]});let n=e;return n})();var Art=(()=>{let e=class e{constructor(){this.settingsChange=new Kt,this.virtualClinicSelectOptions={emptyResourcesText:"Keine Virtuellen Kliniken gespeichert",selectOnInit:"none",disableFnc:FRe,filterFnc:i=>i.clinicInformation?.origin?i.clinicInformation.origin.type==="UserCreated":!0,minPermission:"UPDATE",detailLinkFnc:i=>[],resourceNameTitle:"Virtuelle Klinik",resetOption:!1}}onVirtualClinicSelect(i){this.virtualClinic=i,this.settings.virtualClinicId=i.id,this.settingsChange.emit(this.settings)}onAgreementChange(i){this.settings.agreeTermsAndConditions=i,this.settingsChange.emit(this.settings)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=Ct({type:e,selectors:[["ays-kost-data-import-at-settings"]],inputs:{settings:"settings"},outputs:{settingsChange:"settingsChange"},standalone:!0,features:[Ot],decls:10,vars:2,consts:[[1,"info","bd-container-inner"],["fxHide.xs",""],[1,"mat-subheading-1"],[1,"bd-container"],[3,"virtualClinicSelect","virtualClinicId","options"],[3,"agreementChange"]],template:function(r,o){r&1&&(se(0,"div",0)(1,"mat-icon",1),yt(2,"chevron_right"),ce(),se(3,"span",2),yt(4,"W\xE4hlen Sie aus f\xFCr welche Virtuelle Klinik die Daten importiert werden sollen"),ce()(),se(5,"div",3)(6,"ays-virtual-clinic-select-inline",4),At("virtualClinicSelect",function(c){return o.onVirtualClinicSelect(c)}),ce()(),bt(7,"mat-divider"),se(8,"div",3)(9,"ays-kost-data-import-at-terms-and-conditions",5),At("agreementChange",function(c){return o.onAgreementChange(c)}),ce()()),r&2&&(Z(6),J("virtualClinicId",o.settings.virtualClinicId)("options",o.virtualClinicSelectOptions))},dependencies:[LRe,p0,qB,zs,l3,Trt],styles:[".info[_ngcontent-%COMP%]{background-color:#f0f0f0}.info[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{vertical-align:super;margin-left:16px}"]});let n=e;return n})();function tWt(n,e){if(n&1&&(er(0),se(1,"li",11),yt(2),ce(),tr()),n&2){let t=e.$implicit;Z(2),jn(t)}}var Drt=(()=>{let e=class e{constructor(){this.progress=0,this.stepName="Dieser Vorgang kann mehrere Minuten in Anspruch nehmen.",this.log=[]}ngOnInit(){this.progress$.subscribe(i=>this._onProgress(i))}_onProgress(i){this.progress<=i.progress&&(this.progress=i.progress),i.type==="STEP_UPDATE"&&(this.stepName=i.currentStep.replace("startet",".."),this.log.push(i.currentStep))}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=Ct({type:e,selectors:[["ays-kost-data-import-processor-loading"]],inputs:{progress$:"progress$"},standalone:!0,features:[Ot],decls:18,vars:7,consts:[["fxLayout","column","fxLayoutGap","24px"],["fxFlex",""],["fxLayout","row","fxLayoutGap","24px"],["fxFlex","55px"],[1,"mat-title"],["fxFlex","","fxFlexAlign","center"],["mode","determinate",3,"value"],["fxFlex","",1,"mat-caption"],[1,"info","bd-container-inner"],[1,"mat-body"],[4,"ngFor","ngForOf"],[1,"mat-caption"]],template:function(r,o){r&1&&(se(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"span",4),yt(5),Ym(6,"number"),ce()(),se(7,"div",5),bt(8,"mat-progress-bar",6),ce()(),se(9,"div",2)(10,"span",7),yt(11),ce()()(),se(12,"div",1)(13,"div",8)(14,"span",9),yt(15,"Datensatz wird verarbeitet"),ce(),se(16,"ol"),Ne(17,tWt,3,1,"ng-container",10),ce()()()()),r&2&&(Z(5),ps("",i0(6,4,o.progress,"1.0-0")," %"),Z(3),J("value",o.progress),Z(3),jn(o.stepName),Z(6),J("ngForOf",o.log))},dependencies:[Ys,tl,Gd,nje,Cl,p8e,h8e,Hf,vUe],styles:[".info[_ngcontent-%COMP%]{background-color:#f0f0f0}ol[_ngcontent-%COMP%]{list-style-type:square}"]});let n=e;return n})();var nWt=jh(Ort());var sWt=jh(Qae());typeof Math.imul>"u"&&(Math.imul=function(e,t){return(e&4294901760)*(t&65535)+(e&65535)*(t|0)|0});typeof ArrayBuffer.isView>"u"&&(ArrayBuffer.isView=function(n){return n!=null&&n.__proto__!=null&&n.__proto__.__proto__===Int8Array.prototype.__proto__});typeof Array.prototype.fill>"u"&&Object.defineProperty(Array.prototype,"fill",{value:function(n){if(this==null)throw new TypeError("this is null or not defined");for(var e=Object(this),t=e.length>>>0,i=arguments[1],r=i>>0,o=r<0?Math.max(t+r,0):Math.min(r,t),s=arguments[2],c=s===void 0?t:s>>0,h=c<0?Math.max(t+c,0):Math.min(c,t);o"u"&&Object.defineProperty(n.prototype,"fill",{value:Array.prototype.fill})});typeof Math.clz32>"u"&&(Math.clz32=function(n,e){return function(t){var i=t>>>0;return i===0?32:31-(n(i)/e|0)|0}}(Math.log,Math.LN2));typeof String.prototype.startsWith>"u"&&Object.defineProperty(String.prototype,"startsWith",{value:function(n,e){return e=e||0,this.lastIndexOf(n,e)===e}});var ql=Math.imul,aWt=ArrayBuffer.isView,lot=Math.clz32,fq=class{},sv=class{},mq=class{},nhe=class{toString(){return"kotlin.Unit"}},UD=class{},rhe=class{constructor(e){this.i1_1=e}i(){return this.i1_1.i()}},ohe=class{constructor(e){this.m1_1=e}i(){return this.m1_1.i()}},she=class{},Ca=class{},vp=class{};function c2e(){return jWt(this)}var kg=class{},J0=class{},_m=class{},ahe=class{},mm=class n{constructor(e,t){this.y1_1=e,this.z1_1=t}a2(e){return Uq(this.z1_1,e.z1_1)}d(e){return this.a2(e instanceof n?e:xi())}equals(e){return this===e}hashCode(){return ZWt(this)}toString(){return this.y1_1}},lhe=class{constructor(){KRe=this,this.b2_1=new Su(0,-2147483648),this.c2_1=new Su(-1,2147483647),this.d2_1=8,this.e2_1=64}},Su=class n extends mq{constructor(e,t){MWt(),super(),this.f2_1=e,this.g2_1=t}h2(e){return ipe(this,e)}d(e){return this.h2(e instanceof n?e:xi())}i2(e){return Qhe(this,e)}j2(e){return sZt(this,e)}k2(){return this.l2().i2(new n(1,0))}l2(){return new n(~this.f2_1,~this.g2_1)}m2(){return this.f2_1}n2(){return Pq(this)}toString(){return QRe(this,10)}equals(e){var t;return e instanceof n?t=X0(this,e):t=!1,t}hashCode(){return cZt(this)}valueOf(){return this.n2()}},che=class{constructor(e){this.p2_1=e,this.o2_1=0}j(){return this.o2_1!==this.p2_1.length}k(){var e;if(this.o2_1!==this.p2_1.length){var t=this.o2_1;this.o2_1=t+1|0,e=this.p2_1[t]}else throw Hc.o(""+this.o2_1);return e}},gq=class extends Array{},uhe=class{constructor(){XRe=this;var e=this;e.l3_1=new Int32Array([48,1632,1776,1984,2406,2534,2662,2790,2918,3046,3174,3302,3430,3558,3664,3792,3872,4160,4240,6112,6160,6470,6608,6784,6800,6992,7088,7232,7248,42528,43216,43264,43472,43504,43600,44016,65296])}},bS=class{static o3(e){return tn(this,e)}n1(e){var t;e:{var i;if(go(this,Ca)?i=this.p():i=!1,i){t=!1;break e}for(var r=this.i();r.j();){var o=r.k();if(Lt(o,e)){t=!0;break e}}t=!1}return t}o1(e){var t;e:{var i;if(go(e,Ca)?i=e.p():i=!1,i){t=!0;break e}for(var r=e.i();r.j();){var o=r.k();if(!this.n1(o)){t=!1;break e}}t=!0}return t}p(){return this.v()===0}toString(){return CS(this,", ","[","]",T,T,DQt(this))}toArray(){return Qot(this)}},AN=class extends bS{static n3(){return this.o3()}x(e){this.p3();for(var t=!1,i=e.i();i.j();){var r=i.k();this.e(r)&&(t=!0)}return t}toJSON(){return this.toArray()}p3(){}},_q=class{constructor(e,t){_2e(this,t),this.s3_1=e,this.q3_1=0,this.r3_1=-1}j(){return this.q3_10}a4(){return this.q3_1}b4(){if(!this.z3())throw Hc.t3();var e=this;return this.q3_1=this.q3_1-1|0,e.r3_1=this.q3_1,this.x3_1.q(this.r3_1)}},jD=class extends AN{static i4(){var e=this.n3();return e.h4_1=0,e}e(e){return this.p3(),this.j4(this.v(),e),!0}i(){return new _q(this)}n1(e){return this.p1(e)>=0}p1(e){var t;e:{for(var i=0,r=this.i();r.j();){var o=r.k();if(Lt(o,e)){t=i;break e}i=i+1|0}t=-1}return t}q1(e){var t;e:{for(var i=this.g1(this.v());i.z3();){var r=i.b4();if(Lt(r,e)){t=i.a4();break e}}t=-1}return t}r1(){return this.g1(0)}g1(e){return new dhe(this,e)}s1(e,t){return hhe.g4(this,e,t)}equals(e){return e===this?!0:e!=null&&go(e,vp)?Ad.m4(this,e):!1}hashCode(){return Ad.n4(this)}},HD=class{},hhe=class extends jD{static g4(e,t,i){var r=this.i4();return r.d4_1=e,r.e4_1=t,r.f4_1=0,Ad.j3(r.e4_1,i,r.d4_1.v()),r.f4_1=i-r.e4_1|0,r}j4(e,t){Ad.y3(e,this.f4_1),this.d4_1.j4(this.e4_1+e|0,t),this.f4_1=this.f4_1+1|0}q(e){return Ad.k4(e,this.f4_1),this.d4_1.q(this.e4_1+e|0)}l4(e){Ad.k4(e,this.f4_1);var t=this.d4_1.l4(this.e4_1+e|0);return this.f4_1=this.f4_1-1|0,t}m3(e,t){return Ad.k4(e,this.f4_1),this.d4_1.m3(this.e4_1+e|0,t)}v(){return this.f4_1}p3(){return this.d4_1.p3()}},vq=class{static v4(){var e=tn(this);return e.t4_1=null,e.u4_1=null,e}v1(e){return not(this,e)!=null}a5(e){if(!(e!=null&&go(e,J0)))return!1;var t=e.t1(),i=e.u1(),r=(go(this,_m)?this:xi()).w1(t);if(!Lt(i,r))return!1;var o;return r==null?o=!(go(this,_m)?this:xi()).v1(t):o=!1,!o}equals(e){if(e===this)return!0;if(!(e!=null&&go(e,_m))||this.v()!==e.v())return!1;var t;e:{var i=e.j1(),r;if(go(i,Ca)?r=i.p():r=!1,r){t=!0;break e}for(var o=i.i();o.j();){var s=o.k();if(!this.a5(s)){t=!1;break e}}t=!0}return t}w1(e){var t=not(this,e);return t==null?null:t.u1()}hashCode(){return Za(this.j1())}p(){return this.v()===0}v(){return this.j1().v()}x1(){if(this.t4_1==null){var e=this;e.t4_1=Mhe.dc(this)}return lv(this.t4_1)}toString(){var e=this.j1();return CS(e,", ","{","}",T,T,MQt(this))}fc(e){return iot(this,e.t1())+"="+iot(this,e.u1())}},yq=class extends vq{static s4(){var e=this.v4();return e.q4_1=null,e.r4_1=null,e}w4(){return vhe.y4(this)}x1(){var e=this.q4_1,t;if(e==null){var i=this.w4();this.q4_1=i,t=i}else t=e;return t}p3(){}},Wx=class extends AN{static b5(){return this.n3()}equals(e){return e===this?!0:e!=null&&go(e,kg)?Bq.c5(this,e):!1}hashCode(){return Bq.d5(this)}},phe=class{constructor(){JRe=this;var e=this,t=qn.w(0);t.t_1=!0,e.e5_1=t}},qn=class extends jD{static k3(e){dq();var t=this.i4();return t.s_1=e,t.t_1=!1,t}static f1(){dq();var e=[];return this.k3(e)}static w(e){dq();var t=[],i=this.k3(t);if(!(e>=0)){var r="Negative initial capacity: "+e;throw jr.e1(Wi(r))}return i}static u(e){dq();var t=Is(e);return this.k3(t)}f5(){return this.p3(),this.t_1=!0,this.v()>0?this:dq().e5_1}v(){return this.s_1.length}q(e){var t=this.s_1[GRe(this,e)];return t==null||t!=null?t:xi()}m3(e,t){this.p3(),GRe(this,e);var i=this.s_1[e];this.s_1[e]=t;var r=i;return r==null||r!=null?r:xi()}e(e){return this.p3(),this.s_1.push(e),this.h4_1=this.h4_1+1|0,!0}j4(e,t){this.p3(),this.s_1.splice(NZt(this,e),0,t),this.h4_1=this.h4_1+1|0}x(e){if(this.p3(),e.p())return!1;for(var t=RZt(this,e.v()),i=0,r=e.i();r.j();){var o=r.k(),s=i;i=s+1|0;var c=tst(s);this.s_1[t+c|0]=o}return this.h4_1=this.h4_1+1|0,!0}l4(e){this.p3(),GRe(this,e),this.h4_1=this.h4_1+1|0;var t;return e===spe(this)?t=this.s_1.pop():t=this.s_1.splice(e,1)[0],t}p1(e){return uot(this.s_1,e)}q1(e){return uWt(this.s_1,e)}toString(){return BWt(this.s_1)}g5(){return[].slice.call(this.s_1)}toArray(){return this.g5()}p3(){if(this.t_1)throw mf.t2()}},GD=class extends yq{static n5(e){var t=this.s4();return VZt(t),t.l5_1=e,t}static o5(){return this.n5(qx.z5())}static a6(e,t){return this.n5(qx.b6(e,t))}static c6(e){return this.a6(e,1)}v1(e){return this.l5_1.d6(e)}w4(){return fhe.f6(this.l5_1)}j1(){var e=this.m5_1,t;if(e==null){var i=ghe.h6(this.l5_1);this.m5_1=i,t=i}else t=e;return t}w1(e){return this.l5_1.w1(e)}z4(e,t){return this.l5_1.z4(e,t)}v(){return this.l5_1.v()}},fhe=class extends Wx{static f6(e){var t=this.b5();return t.e6_1=e,t}v(){return this.e6_1.v()}p(){return this.e6_1.v()===0}n1(e){return this.e6_1.d6(e)}e(e){throw mf.t2()}x(e){throw mf.t2()}i(){return this.e6_1.i6()}p3(){return this.e6_1.j6()}},mhe=class extends Wx{static l6(e){var t=this.b5();return t.k6_1=e,t}v(){return this.k6_1.v()}p(){return this.k6_1.v()===0}n6(e){return this.k6_1.p6(e)}n1(e){return e!=null&&go(e,J0)?this.n6(e!=null&&go(e,J0)?e:xi()):!1}o6(e){throw mf.t2()}e(e){return this.o6(e!=null&&go(e,J0)?e:xi())}x(e){throw mf.t2()}o1(e){return this.k6_1.q6(e)}p3(){return this.k6_1.j6()}},ghe=class extends mhe{static h6(e){return this.l6(e)}i(){return this.k6_1.m6()}},_he=class{constructor(e){this.r6_1=e}j(){return this.r6_1.j()}k(){return this.r6_1.k().t1()}},vhe=class extends Wx{static y4(e){var t=this.b5();return t.x4_1=e,t}s6(e){throw mf.t6("Add is not supported on keys")}e(e){return this.s6(e==null||e!=null?e:xi())}d6(e){return this.x4_1.v1(e)}n1(e){return e==null||e!=null?this.d6(e==null||e!=null?e:xi()):!1}i(){var e=this.x4_1.j1().i();return new _he(e)}v(){return this.x4_1.v()}p3(){return this.x4_1.p3()}},xS=class extends Wx{static v6(e){var t=this.b5();return t.u6_1=e,t}static w6(){return this.v6(qx.z5())}static x6(e){for(var t=this.v6(qx.y6(e.v())),i=e.i();i.j();){var r=i.k();t.u6_1.z4(r,!0)}return t}static z6(e,t){return this.v6(qx.b6(e,t))}static a7(e){return this.z6(e,1)}e(e){return this.u6_1.z4(e,!0)==null}n1(e){return this.u6_1.d6(e)}p(){return this.u6_1.v()===0}i(){return this.u6_1.i6()}v(){return this.u6_1.v()}},yhe=class{constructor(){this.f7_1=-1640531527,this.g7_1=8,this.h7_1=2,this.i7_1=-1}},bq=class{constructor(e){this.j7_1=e,this.k7_1=0,this.l7_1=-1,this.m7_1=this.j7_1.w5_1,this.n7()}n7(){for(;this.k7_1=this.j7_1.u5_1)throw Hc.t3();var e=this,t=this.k7_1;this.k7_1=t+1|0,e.l7_1=t;var i=this.j7_1.p5_1[this.l7_1];return this.n7(),i}},xhe=class extends bq{k(){if(this.o7(),this.k7_1>=this.j7_1.u5_1)throw Hc.t3();var e=this,t=this.k7_1;this.k7_1=t+1|0,e.l7_1=t;var i=new whe(this.j7_1,this.l7_1);return this.n7(),i}b8(){if(this.k7_1>=this.j7_1.u5_1)throw Hc.t3();var e=this,t=this.k7_1;this.k7_1=t+1|0,e.l7_1=t;var i=this.j7_1.p5_1[this.l7_1],r=i==null?null:Za(i),o=r??0,s=lv(this.j7_1.q5_1)[this.l7_1],c=s==null?null:Za(s),h=o^(c??0);return this.n7(),h}c8(e){if(this.k7_1>=this.j7_1.u5_1)throw Hc.t3();var t=this,i=this.k7_1;this.k7_1=i+1|0,t.l7_1=i;var r=this.j7_1.p5_1[this.l7_1];Lt(r,this.j7_1)?e.e8("(this Map)"):e.d8(r),e.f8(61);var o=lv(this.j7_1.q5_1)[this.l7_1];Lt(o,this.j7_1)?e.e8("(this Map)"):e.d8(o),this.n7()}},whe=class{constructor(e,t){this.g8_1=e,this.h8_1=t}t1(){return this.g8_1.p5_1[this.h8_1]}u1(){return lv(this.g8_1.q5_1)[this.h8_1]}equals(e){var t,i;return e!=null&&go(e,J0)?i=Lt(e.t1(),this.t1()):i=!1,i?t=Lt(e.u1(),this.u1()):t=!1,t}hashCode(){var e=this.t1(),t=e==null?null:Za(e),i=t??0,r=this.u1(),o=r==null?null:Za(r);return i^(o??0)}toString(){return Lo(this.t1())+"="+Lo(this.u1())}},Che=class{};function lWt(n){var e;e:{var t;if(go(n,Ca)?t=n.p():t=!1,t){e=!0;break e}for(var i=n.i();i.j();){var r=i.k(),o=r,s;if(o!=null&&go(o,J0)?s=this.k8(o):s=!1,!s){e=!1;break e}}e=!0}return e}var qx=class{static i8(e,t,i,r,o,s){var c=tn(this);return c.p5_1=e,c.q5_1=t,c.r5_1=i,c.s5_1=r,c.t5_1=o,c.u5_1=s,c.v5_1=rst(Lq,$x(c)),c.w5_1=0,c.x5_1=0,c.y5_1=!1,c}v(){return this.x5_1}static z5(){return this.y6(8)}static y6(e){return this.i8(ist(e),null,new Int32Array(e),new Int32Array(nst(Lq,e)),2,0)}static b6(e,t){var i=this.y6(e);if(!(t>0)){var r="Non-positive load factor: "+t;throw jr.e1(Wi(r))}return i}w1(e){var t=YRe(this,e);return t<0?null:lv(this.q5_1)[t]}d6(e){return YRe(this,e)>=0}z4(e,t){var i=$Zt(this,e),r=GZt(this);if(i<0){var o=r[(-i|0)-1|0];return r[(-i|0)-1|0]=t,o}else return r[i]=t,null}equals(e){var t;if(e===this)t=!0;else{var i;e!=null&&go(e,_m)?i=KZt(this,e):i=!1,t=i}return t}hashCode(){for(var e=0,t=this.m6();t.j();)e=e+t.b8()|0;return e}toString(){var e=av.j8(2+ql(this.x5_1,3)|0);e.e8("{");for(var t=0,i=this.m6();i.j();)t>0&&e.e8(", "),i.c8(e),t=t+1|0;return e.e8("}"),e.toString()}j6(){if(this.y5_1)throw mf.t2()}p6(e){var t=YRe(this,e.t1());return t<0?!1:Lt(lv(this.q5_1)[t],e.u1())}k8(e){return this.p6(go(e,J0)?e:xi())}i6(){return new bhe(this)}m6(){return new xhe(this)}},Zx=class extends GD{static r8(){var e=this.o5();return e}static s8(e){var t=this.c6(e);return t}p3(){return this.l5_1.j6()}},YD=class extends xS{static a1(){var e=this.w6();return e}static h1(e){var t=this.x6(e);return t}static t8(e,t){var i=this.z6(e,t);return i}static z(e){return this.t8(e,1)}p3(){return this.u6_1.j6()}},wS=class extends Error{static u8(){var e=tn(this);return Xde(e),IN(e),e}static h3(e){var t=tn(this);return Xde(t),IN(t,e),t}static v8(e,t){var i=tn(this);return Xde(i),IN(i,e,t),i}static w8(e){var t=tn(this);return Xde(t),IN(t,T,e),t}},vm=class extends wS{static a9(){var e=this.u8();return ehe(e),e}static d7(e){var t=this.h3(e);return ehe(t),t}static c9(e,t){var i=this.v8(e,t);return ehe(i),i}static e9(e){var t=this.w8(e);return ehe(t),t}},jr=class extends vm{static z8(){var e=this.a9();return Jde(e),e}static e1(e){var t=this.d7(e);return Jde(t),t}static b9(e,t){var i=this.c9(e,t);return Jde(i),i}static d9(e){var t=this.e9(e);return Jde(t),t}},Dg=class extends vm{static i9(){var e=this.a9();return $rt(e),e}static j9(e){var t=this.d7(e);return $rt(t),t}},Eu=class extends vm{static k9(){var e=this.a9();return qRe(e),e}static x2(e){var t=this.d7(e);return qRe(t),t}static l9(e,t){var i=this.c9(e,t);return qRe(i),i}},mf=class extends vm{static t2(){var e=this.a9();return Krt(e),e}static t6(e){var t=this.d7(e);return Krt(t),t}},Hc=class extends vm{static t3(){var e=this.a9();return Wrt(e),e}static o(e){var t=this.d7(e);return Wrt(t),t}},xq=class extends Error{},W4=class extends vm{static p9(){var e=this.a9();return Zrt(e),e}static q9(e){var t=this.d7(e);return Zrt(t),t}},qD=class extends jr{static v9(){var e=this.z8();return Qrt(e),e}static w9(e){var t=this.e1(e);return Qrt(t),t}},wq=class extends vm{static s7(){var e=this.a9();return WZt(e),e}},Cq=class extends vm{static b3(){var e=this.a9();return ZZt(e),e}},Sq=class extends vm{static f3(){var e=this.a9();return QZt(e),e}},DN=class{},Z4=class n{constructor(e){this.y9_1=e}z9(){return this.y9_1}equals(e){var t;return e instanceof Eq||e instanceof Q4?t=!1:e instanceof n?t=Lt(this.z9(),e.z9()):t=!1,t}hashCode(){var e=this.x9(),t=e==null?null:on(e);return t??0}toString(){return"class "+this.x9()}},Eq=class extends Z4{constructor(){Xhe=null,super(Object),Xhe=this,this.ba_1="Nothing"}x9(){return this.ba_1}z9(){throw mf.t6("There's no native JS class for Nothing type")}equals(e){return e===this}hashCode(){return 0}},Q4=class{x9(){var e="Unknown simpleName for ErrorKClass";throw Eu.x2(Wi(e))}equals(e){return e===this}hashCode(){return 0}},jc=class n extends Z4{constructor(e,t,i){super(e),this.da_1=t,this.ea_1=i}equals(e){return e instanceof n?super.equals(e)&&this.da_1===e.da_1:!1}x9(){return this.da_1}},Iq=class extends Z4{constructor(e){super(e);var t=this,i=e.$metadata$;t.ga_1=i==null?null:i.simpleName}x9(){return this.ga_1}},Qx=class{},ym=class{},$D=class{},She=class{constructor(){t2e=this;var e=this,t=Object;e.anyClass=new jc(t,"Any",eQt);var i=this,r=Number;i.numberClass=new jc(r,"Number",tQt),this.nothingClass=sst();var o=this,s=Boolean;o.booleanClass=new jc(s,"Boolean",iQt);var c=this,h=Number;c.byteClass=new jc(h,"Byte",nQt);var g=this,x=Number;g.shortClass=new jc(x,"Short",rQt);var C=this,A=Number;C.intClass=new jc(A,"Int",oQt);var k=this,O=Number;k.floatClass=new jc(O,"Float",sQt);var F=this,L=Number;F.doubleClass=new jc(L,"Double",aQt);var z=this,j=Array;z.arrayClass=new jc(j,"Array",lQt);var K=this,ee=String;K.stringClass=new jc(ee,"String",cQt);var ne=this,X=Error;ne.throwableClass=new jc(X,"Throwable",uQt);var q=this,fe=Array;q.booleanArrayClass=new jc(fe,"BooleanArray",dQt);var Se=this,pe=Uint16Array;Se.charArrayClass=new jc(pe,"CharArray",hQt);var Me=this,ie=Int8Array;Me.byteArrayClass=new jc(ie,"ByteArray",pQt);var Re=this,Ue=Int16Array;Re.shortArrayClass=new jc(Ue,"ShortArray",fQt);var Ee=this,We=Int32Array;Ee.intArrayClass=new jc(We,"IntArray",mQt);var Ie=this,Be=Array;Ie.longArrayClass=new jc(Be,"LongArray",gQt);var Ve=this,$e=Float32Array;Ve.floatArrayClass=new jc($e,"FloatArray",_Qt);var Fe=this,Xe=Float64Array;Fe.doubleArrayClass=new jc(Xe,"DoubleArray",vQt)}ha(){return this.anyClass}ia(){return this.numberClass}ja(){return this.nothingClass}ka(){return this.booleanClass}la(){return this.byteClass}ma(){return this.shortClass}na(){return this.intClass}oa(){return this.floatClass}pa(){return this.doubleClass}qa(){return this.arrayClass}ra(){return this.stringClass}sa(){return this.throwableClass}ta(){return this.booleanArrayClass}ua(){return this.charArrayClass}va(){return this.byteArrayClass}wa(){return this.shortArrayClass}xa(){return this.intArrayClass}ya(){return this.longArrayClass}za(){return this.floatArrayClass}ab(){return this.doubleArrayClass}functionClass(e){var t=Xrt()[e],i;if(t==null){var r=Function,o="Function"+e,s=new jc(r,o,yQt(e));Xrt()[e]=s,i=s}else i=t;return i}},av=class{static bb(e){var t=tn(this);return t.f_1=e!==void 0?e:"",t}static j8(e){return this.g()}static g(){return this.bb("")}a(){return this.f_1.length}b(e){var t=this.f_1,i;if(0<=e&&e<=(Fa(t)-1|0))i=nu(t,e);else throw Dg.j9("index: "+e+", length: "+this.a()+"}");return i}c(e,t){return this.f_1.substring(e,t)}f8(e){return this.f_1=this.f_1+e5(e),this}h(e){return this.f_1=this.f_1+Lo(e),this}d8(e){return this.f_1=this.f_1+Lo(e),this}cb(e){return this.e8(e.toString())}e8(e){var t=this,i=this.f_1;return t.f_1=i+(e??"null"),this}toString(){return this.f_1}},Ehe=class{constructor(){i2e=this,this.db_1=new RegExp("[\\\\^$*+?.()|[\\]{}]","g"),this.eb_1=new RegExp("[\\\\$]","g"),this.fb_1=new RegExp("\\$","g")}},X4=class{static lb(e,t){tot();var i=tn(this);return i.gb_1=e,i.hb_1=mWt(t),i.ib_1=new RegExp(e,IQt(t,"gu")),i.jb_1=null,i.kb_1=null,i}static mb(e){return tot(),this.lb(e,E2e())}nb(e){return wQt(this.ib_1),this.ib_1.test(Wi(e))}toString(){return this.ib_1.toString()}},KD=class extends bS{static vb(){return this.o3()}i(){return new Tq(this)}p1(e){var t;e:{for(var i=0,r=this.i();r.j();){var o=r.k();if(Lt(o,e)){t=i;break e}i=i+1|0}t=-1}return t}q1(e){var t;e:{for(var i=this.g1(this.v());i.z3();){var r=i.b4();if(Lt(r,e)){t=i.a4();break e}}t=-1}return t}r1(){return new Aq(this,0)}g1(e){return new Aq(this,e)}s1(e,t){return Ihe.ub(this,e,t)}equals(e){return e===this?!0:e!=null&&go(e,vp)?Ad.m4(this,e):!1}hashCode(){return Ad.n4(this)}},Ihe=class extends KD{static ub(e,t,i){var r=this.vb();return r.rb_1=e,r.sb_1=t,r.tb_1=0,Ad.j3(r.sb_1,i,r.rb_1.v()),r.tb_1=i-r.sb_1|0,r}q(e){return Ad.k4(e,this.tb_1),this.rb_1.q(this.sb_1+e|0)}v(){return this.tb_1}},Tq=class{constructor(e,t){_2e(this,t),this.xb_1=e,this.wb_1=0}j(){return this.wb_10}a4(){return this.wb_1}b4(){if(!this.z3())throw Hc.t3();return this.wb_1=this.wb_1-1|0,this.ac_1.q(this.wb_1)}},The=class{constructor(){this.i3_1=2147483639}k4(e,t){if(e<0||e>=t)throw Dg.j9("index: "+e+", size: "+t)}y3(e,t){if(e<0||e>t)throw Dg.j9("index: "+e+", size: "+t)}j3(e,t,i){if(e<0||t>i)throw Dg.j9("fromIndex: "+e+", toIndex: "+t+", size: "+i);if(e>t)throw jr.e1("fromIndex: "+e+" > toIndex: "+t)}e7(e,t){var i=e+(e>>1)|0;return(i-t|0)<0&&(i=t),(i-2147483639|0)>0&&(i=t>2147483639?2147483647:2147483639),i}n4(e){for(var t=1,i=e.i();i.j();){var r=i.k(),o=ql(31,t),s=r==null?null:Za(r);t=o+(s??0)|0}return t}m4(e,t){if(e.v()!==t.v())return!1;for(var i=t.i(),r=e.i();r.j();){var o=r.k(),s=i.k();if(!Lt(o,s))return!1}return!0}},Ahe=class{constructor(e){this.bc_1=e}j(){return this.bc_1.j()}k(){return this.bc_1.k().t1()}},Dhe=class{},khe=class extends bS{static ec(e){return this.o3(e)}equals(e){return e===this?!0:e!=null&&go(e,kg)?Bq.c5(this,e):!1}hashCode(){return Bq.d5(this)}},Mhe=class extends khe{static dc(e,t){return t===T&&(t={}),t.cc_1=e,this.ec(t)}d6(e){return this.cc_1.v1(e)}n1(e){return e==null||e!=null?this.d6(e==null||e!=null?e:xi()):!1}i(){var e=this.cc_1.j1().i();return new Ahe(e)}v(){return this.cc_1.v()}},Ohe=class{d5(e){for(var t=0,i=e.i();i.j();){var r=i.k(),o=t,s=r==null?null:Za(r);t=o+(s??0)|0}return t}c5(e,t){return e.v()!==t.v()?!1:e.o1(t)}},Dq=class{constructor(){n2e=this,this.gc_1=new Su(-1478467534,-1720727600)}equals(e){var t;return e!=null&&go(e,vp)?t=e.p():t=!1,t}hashCode(){return 1}toString(){return"[]"}v(){return 0}p(){return!0}hc(e){return!1}n1(e){return!1;var t}ic(e){return e.p()}o1(e){return this.ic(e)}q(e){throw Dg.j9("Empty list doesn't contain element at index "+e+".")}jc(e){return-1}p1(e){return-1;var t}kc(e){return-1}q1(e){return-1;var t}i(){return pq}r1(){return pq}g1(e){if(e!==0)throw Dg.j9("Index: "+e);return pq}s1(e,t){if(e===0&&t===0)return this;throw Dg.j9("fromIndex: "+e+", toIndex: "+t)}},kq=class{constructor(e,t){this.lc_1=e,this.mc_1=t}v(){return this.lc_1.length}p(){return this.lc_1.length===0}nc(e){return cWt(this.lc_1,e)}oc(e){var t;e:{var i;if(go(e,Ca)?i=e.p():i=!1,i){t=!0;break e}for(var r=e.i();r.j();){var o=r.k();if(!this.nc(o)){t=!1;break e}}t=!0}return t}o1(e){return this.oc(e)}i(){return PWt(this.lc_1)}},Rhe=class{j(){return!1}z3(){return!1}a4(){return 0}k(){throw Hc.t3()}b4(){throw Hc.t3()}},Nhe=class{constructor(){r2e=this,this.pc_1=new Su(-888910638,1920087921)}equals(e){var t;return e!=null&&go(e,_m)?t=e.p():t=!1,t}hashCode(){return 0}toString(){return"{}"}v(){return 0}p(){return!0}qc(e){return!1}v1(e){return e==null||e!=null?this.qc(e==null||e!=null?e:xi()):!1}rc(e){return null}w1(e){return e==null||e!=null?this.rc(e==null||e!=null?e:xi()):null}j1(){return s2e()}x1(){return s2e()}},Phe=class{k(){return this.sc()}},Fhe=class{constructor(e){this.uc_1=e,this.tc_1=e.vc_1.i()}k(){return this.uc_1.wc_1(this.tc_1.k())}j(){return this.tc_1.j()}},Mq=class{constructor(e,t){this.vc_1=e,this.wc_1=t}i(){return new Fhe(this)}},Lhe=class{constructor(e){this.ad_1=e,this.xc_1=e.bd_1.i(),this.yc_1=-1,this.zc_1=null}k(){if(this.yc_1===-1&&rot(this),this.yc_1===0)throw Hc.t3();var e=this.zc_1;return this.zc_1=null,this.yc_1=-1,e==null||e!=null?e:xi()}j(){return this.yc_1===-1&&rot(this),this.yc_1===1}},Bhe=class{constructor(e,t,i){t=t===T?!0:t,this.bd_1=e,this.cd_1=t,this.dd_1=i}i(){return new Lhe(this)}},zhe=class{constructor(){o2e=this,this.ed_1=new Su(1993859828,793161749)}equals(e){var t;return e!=null&&go(e,kg)?t=e.p():t=!1,t}hashCode(){return 0}toString(){return"[]"}v(){return 0}p(){return!0}ic(e){return e.p()}o1(e){return this.ic(e)}i(){return pq}},Vhe=class extends KD{static gd(e){var t=this.vb();return t.fd_1=e,t}v(){return this.fd_1.length}q(e){return Ad.k4(e,this.fd_1.length),this.fd_1[e]}hd(e){if(e===null)return!1;var t=Rrt(this.fd_1,e.z1_1);return t===e}n1(e){return e instanceof mm?this.hd(e instanceof mm?e:xi()):!1}id(e){if(e===null)return-1;var t=e.z1_1,i=Rrt(this.fd_1,t);return i===e?t:-1}p1(e){return e instanceof mm?this.id(e instanceof mm?e:xi()):-1}jd(e){return this.id(e)}q1(e){return e instanceof mm?this.jd(e instanceof mm?e:xi()):-1}},Uhe=class{constructor(){a2e=this,this.k1_1=new kN(1,0)}},Oq=class n{constructor(e,t,i){if(i===0)throw jr.e1("Step must be non-zero.");if(i===-2147483648)throw jr.e1("Step must be greater than Int.MIN_VALUE to avoid overflow on negation.");this.od_1=e,this.pd_1=VQt(e,t,i),this.qd_1=i}i(){return new jhe(this.od_1,this.pd_1,this.qd_1)}p(){return this.qd_1>0?this.od_1>this.pd_1:this.od_10?""+this.od_1+".."+this.pd_1+" step "+this.qd_1:""+this.od_1+" downTo "+this.pd_1+" step "+(-this.qd_1|0)}},kN=class n extends Oq{constructor(e,t){mst(),super(e,t,1)}nd(){return this.od_1}rd(){return this.pd_1}sd(e){return this.od_1<=e&&e<=this.pd_1}p(){return this.od_1>this.pd_1}equals(e){var t;return e instanceof n?t=this.p()&&e.p()||this.od_1===e.od_1&&this.pd_1===e.pd_1:t=!1,t}hashCode(){return this.p()?-1:ql(31,this.od_1)+this.pd_1|0}toString(){return""+this.od_1+".."+this.pd_1}},jhe=class extends Phe{constructor(e,t,i){super(),this.td_1=i,this.ud_1=t,this.vd_1=this.td_1>0?e<=t:e>=t,this.wd_1=this.vd_1?e:this.ud_1}j(){return this.vd_1}sc(){var e=this.wd_1;if(e===this.ud_1){if(!this.vd_1)throw Hc.t3();this.vd_1=!1}else this.wd_1=this.wd_1+this.td_1|0;return e}},Hhe=class{l1(e,t,i){return new Oq(e,t,i)}},Ghe=class{constructor(e){this.de_1=e,this.yd_1=-1,this.zd_1=wWt(e.fe_1,0,Fa(e.ee_1)),this.ae_1=this.zd_1,this.be_1=null,this.ce_1=0}k(){if(this.yd_1===-1&&sot(this),this.yd_1===0)throw Hc.t3();var e=this.be_1,t=e instanceof kN?e:xi();return this.be_1=null,this.yd_1=-1,t}j(){return this.yd_1===-1&&sot(this),this.yd_1===1}},Yhe=class{constructor(e,t,i,r){this.ee_1=e,this.fe_1=t,this.ge_1=i,this.he_1=r}i(){return new Ghe(this)}},K4=class extends mm{},Rq=class{constructor(e){this.me_1=e,this.ne_1=ihe}u1(){this.ne_1===ihe&&(this.ne_1=lv(this.me_1)(),this.me_1=null);var e=this.ne_1;return e==null||e!=null?e:xi()}oe(){return this.ne_1!==ihe}toString(){return this.oe()?Lo(this.u1()):"Lazy value not initialized yet."}},qhe=class{},$he=class n{constructor(e,t){this.ie_1=e,this.je_1=t}toString(){return"("+Lo(this.ie_1)+", "+Lo(this.je_1)+")"}ke(){return this.ie_1}le(){return this.je_1}hashCode(){var e=this.ie_1==null?0:Za(this.ie_1);return e=ql(e,31)+(this.je_1==null?0:Za(this.je_1))|0,e}equals(e){if(this===e)return!0;if(!(e instanceof n))return!1;var t=e instanceof n?e:xi();return!(!Lt(this.ie_1,t.ie_1)||!Lt(this.je_1,t.je_1))}},Sa;function cot(n){return new kN(0,dot(n))}function cWt(n,e){return uot(n,e)>=0}function uot(n,e){if(e==null){var t=0,i=n.length-1|0;if(t<=i)do{var r=t;if(t=t+1|0,n[r]==null)return r}while(t<=i)}else{var o=0,s=n.length-1|0;if(o<=s)do{var c=o;if(o=o+1|0,Lt(e,n[c]))return c}while(o<=s)}return-1}function uWt(n,e){if(e==null){var t=n.length-1|0;if(0<=t)do{var i=t;if(t=t+-1|0,n[i]==null)return i}while(0<=t)}else{var r=n.length-1|0;if(0<=r)do{var o=r;if(r=r+-1|0,Lt(e,n[o]))return o}while(0<=r)}return-1}function dWt(n,e){for(var t=0,i=n.length;t1&&e.h(t),o<0||h<=o)_st(e,C,c);else break e}return o>=0&&h>o&&e.h(s),e.h(r),e}function Rrt(n,e){return 0<=e&&e<=(n.length-1|0)?n[e]:null}function CS(n,e,t,i,r,o,s){return e=e===T?", ":e,t=t===T?"":t,i=i===T?"":i,r=r===T?-1:r,o=o===T?"...":o,s=s===T?null:s,Jhe(n,av.g(),e,t,i,r,o,s).toString()}function Jhe(n,e,t,i,r,o,s,c){t=t===T?", ":t,i=i===T?"":i,r=r===T?"":r,o=o===T?-1:o,s=s===T?"...":s,c=c===T?null:c,e.h(i);var h=0,g=n.i();e:for(;g.j();){var x=g.k();if(h=h+1|0,h>1&&e.h(t),o<0||h<=o)_st(e,x,c);else break e}return o>=0&&h>o&&e.h(s),e.h(r),e}function fWt(n){if(n.p())throw Hc.o("List is empty.");return n.q(spe(n))}function zq(n,e){if(go(e,Ca)){var t=qn.w(n.v()+e.v()|0);return t.x(n),t.x(e),t}else{var i=qn.u(n);return S2e(i,e),i}}function epe(n,e){return 0<=e&&e=0)){var t="Requested element count "+e+" is less than zero.";throw jr.e1(Wi(t))}if(e===0)return fot(n);var i;if(go(n,Ca)){var r=n.v()-e|0;if(r<=0)return La();if(r===1)return Tu(vWt(n));if(i=qn.w(r),go(n,vp)){if(go(n,HD)){var o=e,s=n.v();if(o=e?i.e(A):x=x+1|0}return ust(i)}function d2e(n){return n.v()===1?n.q(0):null}function h2e(n){if(n.p())throw Hc.o("List is empty.");return n.q(0)}function gWt(n){return new rhe(n)}function Khe(n,e){for(var t=n.i();t.j();){var i=t.k();e.e(i)}return e}function fot(n){if(go(n,Ca)){var e;switch(n.v()){case 0:e=La();break;case 1:var t;go(n,vp)?t=n.q(0):t=n.i().k(),e=Tu(t);break;default:e=Vq(n);break}return e}return ust(yWt(n))}function _Wt(n){var e;return go(n,Ca)?e=YD.h1(n):e=Khe(n,YD.a1()),e}function vWt(n){if(go(n,vp))return fWt(n);var e=n.i();if(!e.j())throw Hc.o("Collection is empty.");for(var t=e.k();e.j();)t=e.k();return t}function yWt(n){return go(n,Ca)?Vq(n):Khe(n,qn.f1())}function bWt(n){if(go(n,vp))return tpe(n);var e=n.i();if(!e.j())throw Hc.o("Collection is empty.");var t=e.k();if(e.j())throw jr.e1("Collection has more than one element.");return t}function xWt(n){var e=n.i();if(!e.j())return null;for(var t=e.k();e.j();){var i=e.k();Uq(t,i)>0&&(t=i)}return t}function mot(n){return gWt(n.j1())}function p2e(n,e){return e<=-2147483648?mst().k1_1:Xx(n,e-1|0)}function Whe(n,e){return ne?e:n}function wWt(n,e,t){if(e>t)throw jr.e1("Cannot coerce value to an empty range: maximum "+t+" is less than minimum "+e+".");return nt?t:n}function _ot(n,e){return EWt(new Mq(n,e))}function f2e(n){var e=n.i();if(!e.j())return La();var t=e.k();if(!e.j())return Tu(t);var i=qn.f1();for(i.e(t);e.j();)i.e(e.k());return i}function CWt(n){return new ohe(n)}function SWt(n,e){return new Mq(n,e)}function EWt(n){var e=IWt(n,TWt);return go(e,UD)?e:xi()}function IWt(n,e){return new Bhe(n,!1,e)}function TWt(n){return n==null}function AWt(n,e){if(!(e>=0)){var t="Requested character count "+e+" is less than zero.";throw jr.e1(Wi(t))}var i=J4(e,n.length);return n.substring(i)}function DWt(n){var e=n&65535;return e}function Ag(n,e){return n-e|0}function cq(n,e){return n-e|0}function Zhe(n){return n}function e5(n){return String.fromCharCode(n)}var kWt;function Lo(n){var e=n==null?null:Wi(n);return e??"null"}var KRe;function MWt(){return KRe===T&&new lhe,KRe}function vot(n){for(var e=1,t=[],i=0,r=n.length;ie&&(e=s)}return RWt(e,t)}function OWt(n){var e=n>>5,t=new Int32Array(e+1|0),i=n&31,r=1<>5;if(t>n.length)return!1;var i=e&31,r=1<Zhe(s)}if(r)throw jr.e1("Invalid Char code: "+i);t=_Zt(i)}else t=n.b(e);return t}function m2e(n){return typeof n=="string"}function Fa(n){var e;return m2e(n)?e=n.length:e=n.a(),e}function MN(n,e,t){var i;return m2e(n)?i=n.substring(e,t):i=n.c(e,t),i}function BWt(n){return hWt(n,", ","[","]",T,T,UWt)}function zWt(n,e){var t=n,i=e;if(t===i)return!0;if(t==null||i==null||!Fot(i)||t.length!=i.length)return!1;var r=0,o=t.length;if(re)t=1;else if(n===e){var i;if(n!==0)i=0;else{var r=1/n,o;r===1/e?o=0:r<0?o=-1:o=1,i=o}t=i}else n!==n?t=e!==e?0:1:t=-1;return t}function Frt(n,e){return ne?1:0}function WWt(n,e){return n.d(e)}function ZWt(n){return ZRe(n)}function ZRe(n){if(!("kotlinHashCodeValue$"in n)){var e=Tot(),t=new Object;t.value=e,t.enumerable=!1,Object.defineProperty(n,"kotlinHashCodeValue$",t)}return n.kotlinHashCodeValue$}function Tot(){return Math.random()*4294967296|0}function QWt(n){return n=n===T?null:n,Object.create(n)}function Cn(n,e,t,i){return Object.defineProperty(n,e,{configurable:!0,get:t,set:i})}function Wi(n){var e;return n==null?e="null":Fot(n)?e="[...]":typeof n.toString!="function"?e=XWt(n):e=n.toString(),e}function Lt(n,e){if(n==null)return e==null;if(e==null)return!1;if(typeof n=="object"&&typeof n.equals=="function")return n.equals(e);if(n!==n)return e!==e;if(typeof n=="number"&&typeof e=="number"){var t;if(n===e){var i;if(n!==0)i=!0;else{var r=1/n;i=r===1/e}t=i}else t=!1;return t}return n===e}function Za(n){if(n==null)return 0;var e=typeof n,t;switch(e){case"object":t=typeof n.hashCode=="function"?n.hashCode():ZRe(n);break;case"function":t=ZRe(n);break;case"number":t=Bi(n);break;case"boolean":t=e1(n);break;case"string":t=on(String(n));break;case"bigint":t=JWt(n);break;case"symbol":t=eZt(n);break;default:t=function(){throw new Error("Unexpected typeof `"+e+"`")}();break}return t}function XWt(n){return Object.prototype.toString.call(n)}function e1(n){return n?1231:1237}function on(n){var e=0,t=n.length,i=0,r=t-1|0;if(i<=r)do{var o=i;i=i+1|0;var s=n.charCodeAt(o);e=ql(e,31)+s|0}while(o!==r);return e}function JWt(n){for(var e=BigInt(32),t=BigInt(4294967295),i=n<0?-n:n,r=0,o=n<0?-1:1;i!=0;){var s=Number(i&t);r=ql(31,r)+s|0,i=i>>e}return ql(r,o)}function eZt(n){var e=tZt(n)?iZt():nZt(),t=e.get(n);if(t!==T)return t;var i=Tot();return e.set(n,i),i}function tZt(n){return Symbol.keyFor(n)!=T}function iZt(){return jRe===T&&(jRe=new Map),jRe}function nZt(){return HRe===T&&(HRe=new WeakMap),HRe}var jRe,HRe;function Qu(n,e){Error.captureStackTrace!=null?Error.captureStackTrace(n,e):n.stack=new Error().stack}function gi(n){return n.prototype}function tn(n,e){var t=Object.create(n.prototype);return _2e(t,e),t}function _2e(n,e){e!==T&&Object.assign(n,e)}function IN(n,e,t){var i=$ot(Object.getPrototypeOf(n));if(!(i&1)){var r;if(e==null){var o;if(e!==null){var s=t==null?null:t.toString();o=s??T}else o=T;r=o}else r=e;n.message=r}i&2||(n.cause=t),n.name=Object.getPrototypeOf(n).constructor.name}function lv(n){var e;return n==null?rZt():e=n,e}function rZt(){throw Cq.b3()}function xi(){throw Sq.f3()}function yS(){return $l(),Aot}var Aot;function Qde(){return $l(),Dot}var Dot;function Lrt(){return $l(),kot}var kot;function oZt(){return $l(),Mot}var Mot;function Yx(){return $l(),Oot}var Oot;function Brt(){return $l(),Rot}var Rot;function ipe(n,e){if($l(),X0(n,e))return 0;var t=ov(n),i=ov(e);return t&&!i?-1:!t&&i?1:ov(Nq(n,e))?-1:1}function Qhe(n,e){$l();var t=n.g2_1>>>16|0,i=n.g2_1&65535,r=n.f2_1>>>16|0,o=n.f2_1&65535,s=e.g2_1>>>16|0,c=e.g2_1&65535,h=e.f2_1>>>16|0,g=e.f2_1&65535,x=0,C=0,A=0,k=0;return k=k+(o+g|0)|0,A=A+(k>>>16|0)|0,k=k&65535,A=A+(r+h|0)|0,C=C+(A>>>16|0)|0,A=A&65535,C=C+(i+c|0)|0,x=x+(C>>>16|0)|0,C=C&65535,x=x+(t+s|0)|0,x=x&65535,new Su(A<<16|k,x<<16|C)}function Nq(n,e){return $l(),Qhe(n,e.k2())}function VD(n,e){if($l(),TN(n))return yS();if(TN(e))return yS();if(X0(n,Yx()))return zrt(e)?Yx():yS();if(X0(e,Yx()))return zrt(n)?Yx():yS();if(ov(n)){var t;return ov(e)?t=VD(gm(n),gm(e)):t=gm(VD(gm(n),e)),t}else if(ov(e))return gm(VD(n,gm(e)));if(Vrt(n,Brt())&&Vrt(e,Brt()))return Fq(Pq(n)*Pq(e));var i=n.g2_1>>>16|0,r=n.g2_1&65535,o=n.f2_1>>>16|0,s=n.f2_1&65535,c=e.g2_1>>>16|0,h=e.g2_1&65535,g=e.f2_1>>>16|0,x=e.f2_1&65535,C=0,A=0,k=0,O=0;return O=O+ql(s,x)|0,k=k+(O>>>16|0)|0,O=O&65535,k=k+ql(o,x)|0,A=A+(k>>>16|0)|0,k=k&65535,k=k+ql(s,g)|0,A=A+(k>>>16|0)|0,k=k&65535,A=A+ql(r,x)|0,C=C+(A>>>16|0)|0,A=A&65535,A=A+ql(o,g)|0,C=C+(A>>>16|0)|0,A=A&65535,A=A+ql(s,h)|0,C=C+(A>>>16|0)|0,A=A&65535,C=C+(((ql(i,x)+ql(r,g)|0)+ql(o,h)|0)+ql(s,c)|0)|0,C=C&65535,new Su(k<<16|O,C<<16|A)}function sZt(n,e){if($l(),TN(e))throw wS.h3("division by zero");if(TN(n))return yS();if(X0(n,Yx())){if(X0(e,Qde())||X0(e,Lrt()))return Yx();if(X0(e,Yx()))return Qde();var t=lZt(n,1),i=aZt(t.j2(e),1);if(X0(i,yS()))return ov(e)?Qde():Lrt();var r=Nq(n,VD(e,i));return Qhe(i,r.j2(e))}else if(X0(e,Yx()))return yS();if(ov(n)){var o;return ov(e)?o=gm(n).j2(gm(e)):o=gm(gm(n).j2(e)),o}else if(ov(e))return gm(n.j2(gm(e)));for(var s=yS(),c=n;dZt(c,e);){for(var h=Pq(c)/Pq(e),g=Math.max(1,Math.floor(h)),x=Math.ceil(Math.log(g)/Math.LN2),C=x<=48?1:Math.pow(2,x-48),A=Fq(g),k=VD(A,e);ov(k)||uZt(k,c);)g=g-C,A=Fq(g),k=VD(A,e);TN(A)&&(A=Qde()),s=Qhe(s,A),c=Nq(c,k)}return s}function aZt(n,e){$l();var t=e&63;return t===0?n:t<32?new Su(n.f2_1<>>(32-t|0)|0)):new Su(0,n.f2_1<<(t-32|0))}function lZt(n,e){$l();var t=e&63;return t===0?n:t<32?new Su(n.f2_1>>>t|0|n.g2_1<<(32-t|0),n.g2_1>>t):new Su(n.g2_1>>(t-32|0),n.g2_1>=0?0:-1)}function Pq(n){return $l(),n.g2_1*4294967296+hZt(n)}function QRe(n,e){if($l(),e<2||36=9223372036854776e3)return oZt();if(n<0)return gm(Fq(-n));var e=4294967296,t=n%e|0,i=n/e|0;return new Su(t,i)}function uZt(n,e){return $l(),ipe(n,e)>0}function dZt(n,e){return $l(),ipe(n,e)>=0}function hZt(n){return $l(),n.f2_1>=0?n.f2_1:4294967296+n.f2_1}var Urt;function $l(){Urt||(Urt=!0,Aot=hq(0),Dot=hq(1),kot=hq(-1),Mot=new Su(-1,2147483647),Oot=new Su(0,-2147483648),Rot=hq(16777216))}function Not(n,e,t,i,r,o){var s=T,c=n==="interface"?pZt():T;return{kind:n,simpleName:e,associatedObjectKey:i,associatedObjects:r,suspendArity:o,$kClass$:s,defaultConstructor:t,iid:c}}function pZt(){return uq===T&&(uq=0),uq=uq+1|0,uq}var uq;function v2e(n,e,t,i,r,o,s,c,h){r!=null&&(e.prototype=Object.create(r.prototype),e.prototype.constructor=e);var g=Not(n,t,i,c,h,s);if(e.$metadata$=g,o!=null){var x=Lt(g.iid,T)?e.prototype:e;x.$imask$=vot(o)}}function dt(n,e,t,i,r,o,s,c){var h="class";v2e(h,n,e,t,i,r,o,s,c)}function Pi(n,e,t,i,r,o,s,c){var h="object";v2e(h,n,e,t,i,r,o,s,c)}function _l(n,e,t,i,r,o,s,c){var h="interface";v2e(h,n,e,t,i,r,o,s,c)}function Yi(n,e,t,i){Pi(n,"Companion",T,e,t,i,T,T)}function fZt(n,e,t,i,r){return Not("class",n,e,t,i,r)}function jq(n){var e;return n instanceof Su?e=n.m2():e=mZt(n),e}function mZt(n){var e;return n>2147483647?e=2147483647:n<-2147483648?e=-2147483648:e=n|0,e}function gZt(n){return n<<16>>16}function _Zt(n){var e=jq(n),t=gZt(e);return DWt(t)}function Xx(n,e){return new kN(n,e)}function vZt(){return n5(),Pot}var Pot;function $4(){return n5(),fZt(T,T,T,T,T)}function Iu(n,e,t,i,r){return n5(),i.get=i,i.set=r,i.callableName=n,yZt(i,bZt(e,r),xZt(i,t))}function yZt(n,e,t){return n5(),n.$metadata$=e,n.constructor=n,n.$imask$=t,n}function bZt(n,e){return n5(),vZt()[n][e==null?0:1]}function xZt(n,e){n5();var t=n.$imask$,i;if(t==null){var r=[e];i=vot(r)}else i=t;return i}var jrt;function n5(){if(!jrt){jrt=!0;var n=[$4(),$4()],e=[$4(),$4()];Pot=[n,e,[$4(),$4()]]}}function Fot(n){return npe(n)||aWt(n)}function npe(n){return Array.isArray(n)}function go(n,e){return wZt(n,e.$metadata$.iid)}function wZt(n,e){var t=n.$imask$,i;if(t==null)return!1;i=t;var r=i;return NWt(r,e)}function rpe(n){var e;return npe(n)?e=!n.$type$:e=!1,e}function Lot(n){var e;return typeof n=="number"?e=!0:e=n instanceof Su,e}function CZt(n){var e=typeof n;return e==="string"||e==="boolean"||Lot(n)||go(n,sv)}function Bot(n){return typeof n=="string"||go(n,fq)}function zot(n){return npe(n)&&n.$type$==="BooleanArray"}function Vot(n){return n instanceof Int8Array}function Uot(n){return n instanceof Int16Array}function jot(n){var e;return n instanceof Uint16Array?e=n.$type$==="CharArray":e=!1,e}function Hot(n){return n instanceof Int32Array}function Got(n){return n instanceof Float32Array}function Yot(n){return npe(n)&&n.$type$==="LongArray"}function qot(n){return n instanceof Float64Array}function $ot(n){var e=n.constructor,t=e==null?null:e.$metadata$,i=t==null?null:t.errorInfo;if(i!=null)return i;var r=0;if(Hrt(n,"message")&&(r=r|1),Hrt(n,"cause")&&(r=r|2),r!==3){var o=SZt(n);o!=Error.prototype&&(r=r|$ot(o))}return t!=null&&(t.errorInfo=r),r}function Hrt(n,e){return n.hasOwnProperty(e)}function SZt(n){return Object.getPrototypeOf(n)}var T;function EZt(n,e,t,i){t=t===T?0:t,i=i===T?n.length:i,Ad.j3(t,i,n.length),n.fill(e,t,i)}function Kot(n){return qn.k3(n)}function ey(n,e){return zWt(n,e)}function IZt(n,e){if(!(e>=0)){var t="Invalid new array size: "+e+".";throw jr.e1(Wi(t))}return XZt(n,new Int32Array(e))}function ty(n){return VWt(n)}function TZt(n,e){if(!(e>=0)){var t="Invalid new array size: "+e+".";throw jr.e1(Wi(t))}return JZt(n,e,null)}function AZt(n){return Wot(n)>=0}function Wot(n){var e=Zhe(n),t=DZt(Grt().l3_1,e),i=e-Grt().l3_1[t]|0;return i<10?i:-1}function DZt(n,e){for(var t=0,i=n.length-1|0,r=-1,o=0;t<=i;)if(r=(t+i|0)/2|0,o=n[r],e>o)t=r+1|0;else{if(e===o)return r;i=r-1|0}return r-(e4096&&(e===5760||(8192<=e?e<=8202:!1)||e===8232||e===8233||e===8239||e===8287||e===12288)}function Zot(n){return n!==n}function MZt(n){var e;return n===0?e=0:e=1<<(31-lot(n)|0),e}function Qot(n){return OQt(n)}function Tu(n){return NQt([n])}function Xot(n){return zQt([n])}function Jot(n,e){OZt(n,e)}function est(n){return n<0&&PQt(),n}function Is(n){var e;return n.toArray!==void 0?e=n.toArray():e=Qot(n),e}function OZt(n,e){if(n.v()<=1)return Sa;var t=Is(n);PZt(t,e);var i=0,r=t.length;if(i=0)){var e="capacity must be non-negative.";throw jr.e1(Wi(e))}return ZD(Array(n),null)}function Yrt(n,e,t){n.fill(null,e,t)}function qrt(n,e){return TZt(n,e)}var JRe;function dq(){return JRe===T&&new phe,JRe}function RZt(n,e){var t=n.v();return n.s_1.length=n.v()+e|0,t}function GRe(n,e){return Ad.k4(e,n.v()),e}function NZt(n,e){return Ad.y3(e,n.v()),e}var the;function PZt(n,e){if(FZt()){var t=BZt(e);n.sort(t)}else LZt(n,0,dot(n),e)}function FZt(){var n=the;if(n!=null)return n;the=!1;var e=[],t=0;if(t<600)do{var i=t;t=t+1|0,e.push(i)}while(t<600);var r=zZt;e.sort(r);var o=1,s=e.length;if(o=g)return!1}while(o=e&&i>=(t5(n)/4|0)}function HZt(n,e){if(e<0)throw vm.d7("too many elements");if(e>t5(n)){var t=Ad.e7(t5(n),e);n.p5_1=qrt(n.p5_1,t);var i=n,r=n.q5_1;i.q5_1=r==null?null:qrt(r,t),n.r5_1=IZt(n.r5_1,t);var o=nst(Lq,t);o>$x(n)&&b2e(n,o)}}function GZt(n){var e=n.q5_1;if(e!=null)return e;var t=ist(t5(n));return n.q5_1=t,t}function y2e(n,e){return e==null?0:ql(Za(e),-1640531527)>>>n.v5_1|0}function YZt(n){for(var e=0,t=0,i=n.q5_1;e=0&&(n.p5_1[t]=n.p5_1[e],i!=null&&(i[t]=i[e]),t=t+1|0),e=e+1|0;Yrt(n.p5_1,t,n.u5_1),i==null||Yrt(i,t,n.u5_1),n.u5_1=t}function b2e(n,e){ost(n),n.u5_1>n.x5_1&&YZt(n),e!==$x(n)?(n.s5_1=new Int32Array(e),n.v5_1=rst(Lq,e)):EZt(n.s5_1,0,0,$x(n));for(var t=0;t0&&Lt(n.p5_1[r-1|0],e))return r-1|0;if(i=i-1|0,i<0)return-1;var o=t;t=o-1|0,o===0&&(t=$x(n)-1|0)}}function $Zt(n,e){n.j6();e:for(;;)for(var t=y2e(n,e),i=J4(ql(n.t5_1,2),$x(n)/2|0),r=0;;){var o=n.s5_1[t];if(o<=0){if(n.u5_1>=t5(n)){UZt(n,1);continue e}var s=n.u5_1;n.u5_1=s+1|0;var c=s;return n.p5_1[c]=e,n.r5_1[c]=t,n.s5_1[t]=c+1|0,n.x5_1=n.x5_1+1|0,ost(n),r>n.t5_1&&(n.t5_1=r),c}if(Lt(n.p5_1[o-1|0],e))return-o|0;if(r=r+1|0,r>i){b2e(n,ql($x(n),2));continue e}var h=t;t=h-1|0,h===0&&(t=$x(n)-1|0)}}function KZt(n,e){return n.x5_1===e.v()&&n.q6(e.j1())}var Lq;function Xde(n){Qu(n,n.g3_1)}function Jde(n){Qu(n,n.d1_1)}function $rt(n){Qu(n,n.h9_1)}function qRe(n){Qu(n,n.w2_1)}function Krt(n){Qu(n,n.s2_1)}function ehe(n){Qu(n,n.c7_1)}function Wrt(n){Qu(n,n.n_1)}function Zrt(n){Qu(n,n.o9_1)}function Qrt(n){Qu(n,n.u9_1)}function WZt(n){Qu(n,n.r7_1)}function ZZt(n){Qu(n,n.a3_1)}function QZt(n){Qu(n,n.e3_1)}function ope(n,e){return new Rq(e)}function ON(n){return new Rq(n)}function XZt(n,e){for(var t=n.length,i=e.length,r=0,o=e;rr)for(i.length=e;r1?n:nu(e,0)}function t1(n){return 48<=n&&n<=57?!0:Ag(n,128)<0?!1:AZt(n)}function lst(n){return kZt(n)}function CQt(n){if(!(2<=n&&n<=36))throw jr.e1("radix "+n+" was not in valid range 2..36");return n}function gn(n){var e=ape(n),t;return e==null?vst(n):t=e,t}function Vi(n){var e=+n;return(Zot(e)&&!EQt(n)||e===0&&Jx(n))&&vst(n),e}function SQt(n,e){var t=Ag(n,48)>=0&&Ag(n,57)<=0?cq(n,48):Ag(n,65)>=0&&Ag(n,90)<=0?cq(n,65)+10|0:Ag(n,97)>=0&&Ag(n,122)<=0?cq(n,97)+10|0:Ag(n,128)<0?-1:Ag(n,65313)>=0&&Ag(n,65338)<=0?cq(n,65313)+10|0:Ag(n,65345)>=0&&Ag(n,65370)<=0?cq(n,65345)+10|0:Wot(n);return t>=e?-1:t}function EQt(n){switch(n.toLowerCase()){case"nan":case"+nan":case"-nan":return!0;default:return!1}}var i2e;function tot(){return i2e===T&&new Ehe,i2e}function IQt(n,e){return CS(n,"",e,T,T,T,TQt)}function TQt(n){return n.qb_1}function cst(n,e){if(!(e>=0)){var t="Count 'n' must be non-negative, but was "+e+".";throw jr.e1(Wi(t))}var i;switch(e){case 0:i="";break;case 1:i=Wi(n);break;default:var r="";if(Fa(n)!==0){var o=Wi(n),s=e;e:for(;;){if((s&1)===1&&(r=r+o),s=s>>>1|0,s===0)break e;o=o+o}}return r}return i}function w2e(n,e,t,i,r,o){return o=o===T?!1:o,lpe(n,e,t,i,r,o)}function AQt(n,e,t){return t=t===T?!1:t,t?w2e(n,0,e,0,e.length,t):n.startsWith(e,0)}function DQt(n){return function(e){return e===n?"(this Collection)":Lo(e)}}var Ad;function iot(n,e){return e===n?"(this Map)":Lo(e)}function not(n,e){var t;e:{for(var i=n.j1().i();i.j();){var r=i.k();if(Lt(r.t1(),e)){t=r;break e}}t=null}return t}var kQt;function MQt(n){return function(e){return n.fc(e)}}var Bq;function OQt(n){if(n.p())return[];for(var e=n.v(),t=ZD(Array(e),null),i=n.i(),r=0;i.j();){var o=r;r=o+1|0,t[o]=i.k()}return t}function La(){return RQt()}function Mg(n){return n.length>0?Kot(n):La()}function C2e(n){return n.length===0?qn.f1():qn.u(new kq(n,!0))}var n2e;function RQt(){return n2e===T&&new Dq,n2e}var pq;function spe(n){return n.v()-1|0}function ust(n){switch(n.v()){case 0:return La();case 1:return Tu(n.q(0));default:return n}}function NQt(n){return n.length===0?qn.f1():qn.u(new kq(n,!0))}function PQt(){throw W4.q9("Count overflow has happened.")}function FQt(){throw W4.q9("Index overflow has happened.")}function ko(n,e){var t;return go(n,Ca)?t=n.v():t=e,t}function dst(){var n=LQt();return go(n,_m)?n:xi()}var r2e;function LQt(){return r2e===T&&new Nhe,r2e}function hst(n){return n.p()?null:n.l4(spe(n))}function S2e(n,e){if(go(e,Ca))return n.x(e);for(var t=!1,i=e.i();i.j();){var r=i.k();n.e(r)&&(t=!0)}return t}function rot(n){for(;n.xc_1.j();){var e=n.xc_1.k();if(n.ad_1.dd_1(e)===n.ad_1.cd_1)return n.zc_1=e,n.yc_1=1,Sa}n.yc_1=0}var o2e;function s2e(){return o2e===T&&new zhe,o2e}function E2e(){return s2e()}function BQt(n){switch(n.v()){case 0:return E2e();case 1:return Xot(n.i().k());default:return n}}function zQt(n){return dWt(n,xS.a7(n.length))}function pst(n,e){return n===e?0:n==null?-1:e==null?1:Uq(n!=null&&CZt(n)?n:xi(),e)}function fst(n){return Vhe.gd(n)}function VQt(n,e,t){var i;if(t>0)i=n>=e?e:e-oot(e,n,t)|0;else if(t<0)i=n<=e?e:e+oot(n,e,-t|0)|0;else throw jr.e1("Step is zero.");return i}function oot(n,e,t){return $Re($Re(n,t)-$Re(e,t)|0,t)}function $Re(n,e){var t=n%e|0;return t>=0?t:t+e|0}var a2e;function mst(){return a2e===T&&new Uhe,a2e}var gst;function _st(n,e,t){t!=null?n.h(t(e)):e==null||Bot(e)?n.h(e):e instanceof she?n.f8(e.xd_1):n.h(Lo(e))}function UQt(n,e,t){if(t=t===T?!1:t,n===e)return!0;if(!t)return!1;var i=eot(n),r=eot(e),o;if(i===r)o=!0;else{var s=e5(i).toLowerCase(),c=nu(s,0),h=e5(r).toLowerCase();o=c===nu(h,0)}return o}function Hq(n){return jQt(n,"")}function jQt(n,e){e=e===T?"":e;for(var t=eXt(n),i=qn.f1(),r=t.i();r.j();){var o=r.k();Jx(o)||i.e(o)}for(var s=qn.w(ko(i,10)),c=i.i();c.j();){var h=c.k(),g=HQt(h);s.e(g)}for(var x=xWt(s),C=x??0,A=n.length+ql(e.length,t.v())|0,k=GQt(e),O=spe(t),F=qn.f1(),L=0,z=t.i();z.j();){var j=z.k(),K=L;L=K+1|0;var ee=tst(K),ne;if((ee===0||ee===O)&&Jx(j))ne=null;else{var X=AWt(j,C),q;X==null?q=null:q=k(X);var fe=q;ne=fe??j}var Se=ne;Se==null||F.e(Se)}return Jhe(F,av.j8(A),` `).toString()}function HQt(n){var e;e:{var t=0,i=Fa(n)-1|0;if(t<=i)do{var r=t;t=t+1|0;var o=nu(n,r);if(!lst(o)){e=r;break e}}while(t<=i);e=-1}var s=e;return s===-1?n.length:s}function GQt(n){var e;return Fa(n)===0?e=YQt:e=qQt(n),e}function YQt(n){return n}function qQt(n){return function(e){return n+e}}function ape(n){return $Qt(n,10)}function $Qt(n,e){CQt(e);var t=n.length;if(t===0)return null;var i,r,o,s=nu(n,0);if(Ag(s,48)<0){if(t===1)return null;if(i=1,s===45)r=!0,o=-2147483648;else if(s===43)r=!1,o=-2147483647;else return null}else i=0,r=!1,o=-2147483647;var c=-59652323,h=c,g=0,x=i;if(x(Fa(n)-r|0)||i>(Fa(t)-r|0))return!1;var s=0;if(s0,c=qn.w(s?J4(i,10):10);e:do{var h=r,g=o,x=Wi(MN(n,h,g));if(c.e(x),r=o+e.length|0,s&&c.v()===(i-1|0))break e;o=l2e(n,e,r,t)}while(o!==-1);var C=r,A=Fa(n),k=Wi(MN(n,C,A));return c.e(k),c}function Cst(n,e){return Wi(MN(n,e.nd(),e.rd()+1|0))}function Sst(n,e,t,i,r){t=t===T?0:t,i=i===T?!1:i,r=r===T?0:r,Est(r);var o=Kot(e);return new Yhe(n,t,r,iXt(o,i))}function Est(n){var e;if(!(n>=0)){var t="Limit must be non-negative, but was "+n;throw jr.e1(Wi(t))}return e}function l2e(n,e,t,i){t=t===T?0:t,i=i===T?!1:i;var r,o;return i?o=!0:o=typeof n!="string",o?r=Ist(n,e,t,Fa(n),i):r=n.indexOf(e,t),r}function sot(n){if(n.ae_1<0)n.yd_1=0,n.be_1=null;else{var e,t;if(n.de_1.ge_1>0?(n.ce_1=n.ce_1+1|0,t=n.ce_1>=n.de_1.ge_1):t=!1,t?e=!0:e=n.ae_1>Fa(n.de_1.ee_1),e)n.be_1=Xx(n.zd_1,WD(n.de_1.ee_1)),n.ae_1=-1;else{var i=n.de_1.he_1(n.de_1.ee_1,n.ae_1);if(i==null)n.be_1=Xx(n.zd_1,WD(n.de_1.ee_1)),n.ae_1=-1;else{var r=i.ke(),o=i.le();n.be_1=p2e(n.zd_1,r),n.zd_1=r+o|0,n.ae_1=n.zd_1+(o===0?1:0)|0}}n.yd_1=1}}function QQt(n,e,t,i,r){if(!i&&e.v()===1){var o=bWt(e),s=r?XQt(n,o,t):l2e(n,o,t);return s<0?null:Kx(s,o)}var c=r?got(J4(t,WD(n)),0):Xx(Whe(t,0),Fa(n));if(typeof n=="string"){var h=c.od_1,g=c.pd_1,x=c.qd_1;if(x>0&&h<=g||x<0&&g<=h)do{var C=h;h=h+x|0;var A;e:{for(var k=e.i();k.j();){var O=k.k();if(w2e(O,0,n,C,O.length,i)){A=O;break e}}A=null}var F=A;if(F!=null)return Kx(C,F)}while(C!==g)}else{var L=c.od_1,z=c.pd_1,j=c.qd_1;if(j>0&&L<=z||j<0&&z<=L)do{var K=L;L=L+j|0;var ee;e:{for(var ne=e.i();ne.j();){var X=ne.k();if(lpe(X,0,n,K,X.length,i)){ee=X;break e}}ee=null}var q=ee;if(q!=null)return Kx(K,q)}while(K!==z)}return null}function Ist(n,e,t,i,r,o){o=o===T?!1:o;var s=o?got(J4(t,WD(n)),Whe(i,0)):Xx(Whe(t,0),J4(i,Fa(n))),c;if(typeof n=="string"?c=typeof e=="string":c=!1,c){var h=s.od_1,g=s.pd_1,x=s.qd_1;if(x>0&&h<=g||x<0&&g<=h)do{var C=h;if(h=h+x|0,w2e(e,0,n,C,Fa(e),r))return C}while(C!==g)}else{var A=s.od_1,k=s.pd_1,O=s.qd_1;if(O>0&&A<=k||O<0&&k<=A)do{var F=A;if(A=A+O|0,lpe(e,0,n,F,Fa(e),r))return F}while(F!==k)}return-1}function XQt(n,e,t,i){t=t===T?WD(n):t,i=i===T?!1:i;var r,o;return i?o=!0:o=typeof n!="string",o?r=Ist(n,e,t,0,i,!0):r=n.lastIndexOf(e,t),r}function JQt(n){return tXt(n,[`\r `,` `,"\r"])}function eXt(n){return f2e(JQt(n))}function tXt(n,e,t,i){t=t===T?!1:t,i=i===T?0:i;var r=Sst(n,e,T,t,i);return SWt(r,nXt(n))}function iXt(n,e){return function(t,i){var r=QQt(t,n,i,e,!1),o;return r==null?o=null:o=Kx(r.ie_1,r.je_1.length),o}}function nXt(n){return function(e){return Cst(n,e)}}var rXt,Tst,oXt,aot;function sXt(){if(aot)return Sa;aot=!0,rXt=new K4("SYNCHRONIZED",0),Tst=new K4("PUBLICATION",1),oXt=new K4("NONE",2)}var ihe;function cpe(){return sXt(),Tst}function Kx(n,e){return new $he(n,e)}_l(fq,"CharSequence");_l(sv,"Comparable");dt(mq,"Number");Pi(nhe,"Unit");_l(UD,"Sequence");dt(rhe,T,T,T,[UD]);dt(ohe);dt(she,"Char",T,T,[sv]);_l(Ca,"Collection");_l(vp,"List",T,T,[Ca]);_l(kg,"Set",T,T,[Ca]);_l(J0,"Entry");_l(_m,"Map");Yi(ahe);dt(mm,"Enum",T,T,[sv]);Yi(lhe);dt(Su,"Long",T,T,[mq,sv]);dt(che);dt(gq,"JsArrayView",gq);Pi(uhe,"Digit");dt(bS,"AbstractCollection",T,T,[Ca]);dt(AN,"AbstractMutableCollection",T,T,[bS,Ca]);dt(_q,"IteratorImpl");dt(dhe,"ListIteratorImpl");gi(jD).asJsReadonlyArrayView=c2e;dt(jD,"AbstractMutableList",T,T,[AN,Ca,vp]);_l(HD,"RandomAccess");dt(hhe,"SubList",T,T,[jD,HD]);dt(vq,"AbstractMap",T,T,[_m]);dt(yq,"AbstractMutableMap",T,T,[vq,_m]);dt(Wx,"AbstractMutableSet",T,T,[AN,kg,Ca]);Yi(phe);dt(qn,"ArrayList",qn.f1,T,[jD,Ca,vp,HD]);dt(GD,"HashMap",GD.o5,T,[yq,_m]);dt(fhe,"HashMapKeys",T,T,[kg,Ca,Wx]);dt(mhe,"HashMapEntrySetBase",T,T,[kg,Ca,Wx]);dt(ghe,"HashMapEntrySet");dt(_he);dt(vhe,"HashMapKeysDefault");dt(xS,"HashSet",xS.w6,T,[Wx,kg,Ca]);Yi(yhe);dt(bq,"Itr");dt(bhe,"KeysItr");dt(xhe,"EntriesItr");dt(whe,"EntryRef",T,T,[J0]);_l(Che,"InternalMap");gi(qx).q6=lWt;dt(qx,"InternalHashMap",qx.z5,T,[Che]);dt(Zx,"LinkedHashMap",Zx.r8,T,[GD,_m]);dt(YD,"LinkedHashSet",YD.a1,T,[xS,kg,Ca]);dt(wS,"Exception",wS.u8);dt(vm,"RuntimeException",vm.a9);dt(jr,"IllegalArgumentException",jr.z8);dt(Dg,"IndexOutOfBoundsException",Dg.i9);dt(Eu,"IllegalStateException",Eu.k9);dt(mf,"UnsupportedOperationException",mf.t2);dt(Hc,"NoSuchElementException",Hc.t3);dt(xq,"Error");dt(W4,"ArithmeticException",W4.p9);dt(qD,"NumberFormatException",qD.v9);dt(wq,"ConcurrentModificationException",wq.s7);dt(Cq,"NullPointerException",Cq.b3);dt(Sq,"ClassCastException",Sq.f3);_l(DN,"KClass");dt(Z4,"KClassImpl",T,T,[DN]);Pi(Eq,"NothingKClassImpl");dt(Q4,"ErrorKClass",Q4,T,[DN]);dt(jc,"PrimitiveKClassImpl");dt(Iq,"SimpleKClassImpl");_l(Qx,"KProperty1");_l(ym,"KMutableProperty1",T,T,[Qx]);_l($D,"KProperty0");Pi(She,"PrimitiveClasses");dt(av,"StringBuilder",av.g,T,[fq]);Yi(Ehe);dt(X4,"Regex");gi(KD).asJsReadonlyArrayView=c2e;dt(KD,"AbstractList",T,T,[bS,vp]);dt(Ihe,"SubList",T,T,[KD,HD]);dt(Tq,"IteratorImpl");dt(Aq,"ListIteratorImpl");Yi(The);dt(Ahe);Yi(Dhe);dt(khe,"AbstractSet",T,T,[bS,kg]);dt(Mhe);Yi(Ohe);gi(Dq).asJsReadonlyArrayView=c2e;Pi(Dq,"EmptyList",T,T,[vp,HD]);dt(kq,"ArrayAsCollection",T,T,[Ca]);Pi(Rhe,"EmptyIterator");Pi(Nhe,"EmptyMap",T,T,[_m]);dt(Phe,"IntIterator");dt(Fhe);dt(Mq,"TransformingSequence",T,T,[UD]);dt(Lhe);dt(Bhe,"FilteringSequence",T,T,[UD]);Pi(zhe,"EmptySet",T,T,[kg]);dt(Vhe,"EnumEntriesList",T,T,[vp,KD]);Yi(Uhe);dt(Oq,"IntProgression");dt(kN,"IntRange");dt(jhe,"IntProgressionIterator");Yi(Hhe);dt(Ghe);dt(Yhe,"DelimitedRangesSequence",T,T,[UD]);dt(K4,"LazyThreadSafetyMode");dt(Rq,"UnsafeLazyImpl");Pi(qhe,"UNINITIALIZED_VALUE");dt($he,"Pair");Sa=new nhe;kWt=new ahe;the=null;Lq=new yhe;Ad=new The;kQt=new Dhe;Bq=new Ohe;pq=new Rhe;gst=new Hhe;ihe=new qhe;var ES=Math.imul,iy=class{},Gq=class extends jr{static ue(){var e=this.z8();return Ast(e),e}static ve(e,t){var i=this.b9(e,t);return Ast(i),i}},Yq=class extends Gq{static cf(e,t,i){var r=this.ve(t,i);return Qu(r,r.bf_1),r.af_1=e,r}static df(e,t){return this.cf(e,e.v()===1?"Field '"+e.q(0)+"' is required for type with serial name '"+t+"', but it was missing":"Fields "+Wi(e)+" are required for type with serial name '"+t+"', but they were missing",null)}},RN=class{};function M2e(){return!1}var upe=class{constructor(e){this.lf_1=e,this.kf_1=e.hf()}j(){return this.kf_1>0}k(){var e=this.lf_1.hf(),t=this.kf_1;return this.kf_1=t-1|0,this.lf_1.jf(e-t|0)}},dpe=class{constructor(e){this.mf_1=e}i(){return new upe(this.mf_1)}},qq=class{toString(){return lv(SS(this).x9())}hashCode(){return on(this.toString())}},NN=class extends qq{},hpe=class extends NN{constructor(){Tpe=null,super(),Tpe=this}},ppe=class extends NN{constructor(){Ape=null,super(),Ape=this}},fpe=class extends NN{constructor(){Dpe=null,super(),Dpe=this}},mpe=class extends NN{constructor(){kpe=null,super(),kpe=this}},$q=class extends qq{},gpe=class extends $q{constructor(){Mpe=null,super(),Mpe=this}},_pe=class extends $q{constructor(){Ope=null,super(),Ope=this}},r5=class{},Kq=class n{constructor(e){this.qf_1=e,this.rf_1=1}gf(){return pXt()}hf(){return this.rf_1}if(e){return e.toString()}jf(e){if(!(e>=0)){var t="Illegal index "+e+", "+this.ff()+" expects only non-negative indices";throw jr.e1(Wi(t))}return this.qf_1}equals(e){return this===e?!0:e instanceof n?!!(Lt(this.qf_1,e.qf_1)&&this.ff()===e.ff()):!1}hashCode(){return ES(Za(this.qf_1),31)+on(this.ff())|0}toString(){return this.ff()+"("+Wi(this.qf_1)+")"}},vpe=class extends Kq{ff(){return"kotlin.Array"}},ype=class{},bpe=class extends ype{constructor(e){super(),this.vf_1=e}},ks=class extends bpe{constructor(e,t){super(t),this.tf_1=e,this.uf_1=new vpe(t.pe())}pe(){return this.uf_1}},xpe=class n{constructor(e){this.wf_1=e,this.xf_1=new wpe(this.wf_1.pe())}pe(){return this.xf_1}equals(e){return this===e?!0:!(e==null||!SS(this).equals(SS(e))||(e instanceof n||xi(),!Lt(this.wf_1,e.wf_1)))}hashCode(){return Za(this.wf_1)}},wpe=class n{constructor(e){this.yf_1=e,this.zf_1=this.yf_1.ff()+"?",this.ag_1=mXt(this.yf_1)}if(e){return this.yf_1.if(e)}jf(e){return this.yf_1.jf(e)}gf(){return this.yf_1.gf()}hf(){return this.yf_1.hf()}ff(){return this.zf_1}nf(){return this.ag_1}ef(){return!0}equals(e){return this===e?!0:!(!(e instanceof n)||!Lt(this.yf_1,e.yf_1))}toString(){return Wi(this.yf_1)+"?"}hashCode(){return ES(Za(this.yf_1),31)}},_n=class n{constructor(e,t,i){t=t===T?null:t,this.bg_1=e,this.cg_1=t,this.dg_1=i,this.eg_1=-1;for(var r=this,o=0,s=this.dg_1,c=ZD(Array(s),null);o>>1|0}while(o<32);throw Yq.df(i,t.ff())}function Wq(n,e,t){var i=qn.f1(),r=0,o=e.length-1|0;if(r<=o)do{var s=r;r=r+1|0;var c=e[s]&~n[s];if(c!==0){var h=0;if(h<32)do{var g=h;if(h=h+1|0,c&1){var x=t.if(ES(s,32)+g|0);i.e(x)}c=c>>>1|0}while(h<32)}}while(r<=o);throw Yq.df(i,t.ff())}function _Xt(n,e){var t=on(n.ff());t=ES(31,t)+ty(e)|0;for(var i=aXt(n),r=1,o=i.i();o.j();){var s=o.k(),c=r,h=ES(31,c),g=s.ff(),x=g==null?null:Za(g);r=h+(x??0)|0}for(var C=r,A=1,k=i.i();k.j();){var O=k.k(),F=A,L=ES(31,F),z=O.gf(),j=z==null?null:Za(z);A=L+(j??0)|0}var K=A;return t=ES(31,t)+C|0,t=ES(31,t)+K|0,t}function Nst(n){var e=n.kg_1;return CXt(),e.u1()}function Pst(n){var e=n.mg_1;return EXt(),e.u1()}function vXt(n){var e=GD.o5(),t=0,i=n.fg_1.length-1|0;if(t<=i)do{var r=t;t=t+1|0;var o=n.fg_1[r];e.z4(o,r)}while(t<=i);return e}function yXt(n){return function(){var e=n.cg_1,t=e==null?null:e.ng();return t??Fst()}}function bXt(n){return function(){var e=n.cg_1,t=e==null?null:e.og(),i;if(t==null)i=null;else{for(var r=qn.w(t.length),o=0,s=t.length;ocv||ti?1:0},n.smi=function(t){return t>>>1&1073741824|t&3221225471},n.hash=function(t){if(t!==t||t===1/0)return 0;for(var i=t;t>4294967295;)t/=4294967295,i^=t;return n.smi(i)},n.hashCode=function(){for(var t=17,i=arguments.length,r=new Array(i),o=0;o0&&c<0)c+=ii.NANOS_PER_SECOND;else if(s<0&&c>0)c-=ii.NANOS_PER_SECOND;else if(s===0&&c!==0){var g=o.with(ae.NANO_OF_SECOND,h);s=r.until(g,lt.SECONDS)}}catch{}return this.ofSeconds(s,c)},e.parse=function(r){ut(r,"text");var o=new RegExp("([-+]?)P(?:([-+]?[0-9]+)D)?(T(?:([-+]?[0-9]+)H)?(?:([-+]?[0-9]+)M)?(?:([-+]?[0-9]+)(?:[.,]([0-9]{0,9}))?S)?)?","i"),s=o.exec(r);if(s!==null&&s[3]!=="T"){var c=s[1]==="-",h=s[2],g=s[4],x=s[5],C=s[6],A=s[7];if(h!=null||g!=null||x!=null||C!=null){var k=e._parseNumber(r,h,ii.SECONDS_PER_DAY,"days"),O=e._parseNumber(r,g,ii.SECONDS_PER_HOUR,"hours"),F=e._parseNumber(r,x,ii.SECONDS_PER_MINUTE,"minutes"),L=e._parseNumber(r,C,1,"seconds"),z=C!=null&&C.charAt(0)==="-",j=e._parseFraction(r,A,z?-1:1);try{return e._create(c,k,O,F,L,j)}catch(K){throw new ry("Text cannot be parsed to a Duration: overflow",r,0,K)}}}throw new ry("Text cannot be parsed to a Duration",r,0)},e._parseNumber=function(r,o,s,c){if(o==null)return 0;try{return o[0]==="+"&&(o=o.substring(1)),ke.safeMultiply(parseFloat(o),s)}catch(h){throw new ry("Text cannot be parsed to a Duration: "+c,r,0,h)}},e._parseFraction=function(r,o,s){return o==null||o.length===0?0:(o=(o+"000000000").substring(0,9),parseFloat(o)*s)},e._create=function(){return arguments.length<=2?e._createSecondsNanos(arguments[0],arguments[1]):e._createNegateDaysHoursMinutesSecondsNanos(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5])},e._createNegateDaysHoursMinutesSecondsNanos=function(r,o,s,c,h,g){var x=ke.safeAdd(o,ke.safeAdd(s,ke.safeAdd(c,h)));return r?e.ofSeconds(x,g).negated():e.ofSeconds(x,g)},e._createSecondsNanos=function(r,o){return r===void 0&&(r=0),o===void 0&&(o=0),r===0&&o===0?e.ZERO:new e(r,o)};var t=e.prototype;return t.get=function(r){if(r===lt.SECONDS)return this._seconds;if(r===lt.NANOS)return this._nanos;throw new Ls("Unsupported unit: "+r)},t.units=function(){return[lt.SECONDS,lt.NANOS]},t.isZero=function(){return this._seconds===0&&this._nanos===0},t.isNegative=function(){return this._seconds<0},t.seconds=function(){return this._seconds},t.nano=function(){return this._nanos},t.withSeconds=function(r){return e._create(r,this._nanos)},t.withNanos=function(r){return ae.NANO_OF_SECOND.checkValidIntValue(r),e._create(this._seconds,r)},t.plusDuration=function(r){return ut(r,"duration"),this.plus(r.seconds(),r.nano())},t.plus=function(r,o){return arguments.length===1?this.plusDuration(r):arguments.length===2&&o instanceof l1?this.plusAmountUnit(r,o):this.plusSecondsNanos(r,o)},t.plusAmountUnit=function(r,o){if(ut(r,"amountToAdd"),ut(o,"unit"),o===lt.DAYS)return this.plusSecondsNanos(ke.safeMultiply(r,ii.SECONDS_PER_DAY),0);if(o.isDurationEstimated())throw new Ls("Unit must not have an estimated duration");if(r===0)return this;if(o instanceof lt){switch(o){case lt.NANOS:return this.plusNanos(r);case lt.MICROS:return this.plusSecondsNanos(ke.intDiv(r,1e6*1e3)*1e3,ke.intMod(r,1e6*1e3)*1e3);case lt.MILLIS:return this.plusMillis(r);case lt.SECONDS:return this.plusSeconds(r)}return this.plusSecondsNanos(ke.safeMultiply(o.duration().seconds(),r),0)}var s=o.duration().multipliedBy(r);return this.plusSecondsNanos(s.seconds(),s.nano())},t.plusDays=function(r){return this.plusSecondsNanos(ke.safeMultiply(r,ii.SECONDS_PER_DAY),0)},t.plusHours=function(r){return this.plusSecondsNanos(ke.safeMultiply(r,ii.SECONDS_PER_HOUR),0)},t.plusMinutes=function(r){return this.plusSecondsNanos(ke.safeMultiply(r,ii.SECONDS_PER_MINUTE),0)},t.plusSeconds=function(r){return this.plusSecondsNanos(r,0)},t.plusMillis=function(r){return this.plusSecondsNanos(ke.intDiv(r,1e3),ke.intMod(r,1e3)*1e6)},t.plusNanos=function(r){return this.plusSecondsNanos(0,r)},t.plusSecondsNanos=function(r,o){if(ut(r,"secondsToAdd"),ut(o,"nanosToAdd"),r===0&&o===0)return this;var s=ke.safeAdd(this._seconds,r);s=ke.safeAdd(s,ke.intDiv(o,ii.NANOS_PER_SECOND)),o=ke.intMod(o,ii.NANOS_PER_SECOND);var c=ke.safeAdd(this._nanos,o);return e.ofSeconds(s,c)},t.minus=function(r,o){return arguments.length===1?this.minusDuration(r):this.minusAmountUnit(r,o)},t.minusDuration=function(r){ut(r,"duration");var o=r.seconds(),s=r.nano();return o===bm?this.plus(cv,-s):this.plus(-o,-s)},t.minusAmountUnit=function(r,o){return ut(r,"amountToSubtract"),ut(o,"unit"),r===bm?this.plusAmountUnit(cv,o):this.plusAmountUnit(-r,o)},t.minusDays=function(r){return r===bm?this.plusDays(cv):this.plusDays(-r)},t.minusHours=function(r){return r===bm?this.plusHours(cv):this.plusHours(-r)},t.minusMinutes=function(r){return r===bm?this.plusMinutes(cv):this.plusMinutes(-r)},t.minusSeconds=function(r){return r===bm?this.plusSeconds(cv):this.plusSeconds(-r)},t.minusMillis=function(r){return r===bm?this.plusMillis(cv):this.plusMillis(-r)},t.minusNanos=function(r){return r===bm?this.plusNanos(cv):this.plusNanos(-r)},t.multipliedBy=function(r){if(r===0)return e.ZERO;if(r===1)return this;var o=ke.safeMultiply(this._seconds,r),s=ke.safeMultiply(this._nanos,r);return o=o+ke.intDiv(s,ii.NANOS_PER_SECOND),s=ke.intMod(s,ii.NANOS_PER_SECOND),e.ofSeconds(o,s)},t.dividedBy=function(r){if(r===0)throw new r1("Cannot divide by zero");if(r===1)return this;var o=ke.intDiv(this._seconds,r),s=ke.roundDown((this._seconds/r-o)*ii.NANOS_PER_SECOND),c=ke.intDiv(this._nanos,r);return c=s+c,e.ofSeconds(o,c)},t.negated=function(){return this.multipliedBy(-1)},t.abs=function(){return this.isNegative()?this.negated():this},t.addTo=function(r){return ut(r,"temporal"),this._seconds!==0&&(r=r.plus(this._seconds,lt.SECONDS)),this._nanos!==0&&(r=r.plus(this._nanos,lt.NANOS)),r},t.subtractFrom=function(r){return ut(r,"temporal"),this._seconds!==0&&(r=r.minus(this._seconds,lt.SECONDS)),this._nanos!==0&&(r=r.minus(this._nanos,lt.NANOS)),r},t.toDays=function(){return ke.intDiv(this._seconds,ii.SECONDS_PER_DAY)},t.toHours=function(){return ke.intDiv(this._seconds,ii.SECONDS_PER_HOUR)},t.toMinutes=function(){return ke.intDiv(this._seconds,ii.SECONDS_PER_MINUTE)},t.toMillis=function(){var r=Math.round(ke.safeMultiply(this._seconds,1e3));return r=ke.safeAdd(r,ke.intDiv(this._nanos,1e6)),r},t.toNanos=function(){var r=ke.safeMultiply(this._seconds,ii.NANOS_PER_SECOND);return r=ke.safeAdd(r,this._nanos),r},t.compareTo=function(r){ut(r,"otherDuration"),Nr(r,e,"otherDuration");var o=ke.compareNumbers(this._seconds,r.seconds());return o!==0?o:this._nanos-r.nano()},t.equals=function(r){return this===r?!0:r instanceof e?this.seconds()===r.seconds()&&this.nano()===r.nano():!1},t.toString=function(){if(this===e.ZERO)return"PT0S";var r=ke.intDiv(this._seconds,ii.SECONDS_PER_HOUR),o=ke.intDiv(ke.intMod(this._seconds,ii.SECONDS_PER_HOUR),ii.SECONDS_PER_MINUTE),s=ke.intMod(this._seconds,ii.SECONDS_PER_MINUTE),c="PT";if(r!==0&&(c+=r+"H"),o!==0&&(c+=o+"M"),s===0&&this._nanos===0&&c.length>2)return c;if(s<0&&this._nanos>0?s===-1?c+="-0":c+=s+1:c+=s,this._nanos>0){c+=".";var h;for(s<0?h=""+(2*ii.NANOS_PER_SECOND-this._nanos):h=""+(ii.NANOS_PER_SECOND+this._nanos),h=h.slice(1,h.length),c+=h;c.charAt(c.length-1)==="0";)c=c.slice(0,c.length-1)}return c+="S",c},t.toJSON=function(){return this.toString()},e}(MS);function kXt(){Gc.ZERO=new Gc(0,0)}var yp=function(){};function MXt(){yp.MIN_VALUE=-999999,yp.MAX_VALUE=999999}var lt=function(n){Uo(e,n);function e(i,r){var o;return o=n.call(this)||this,o._name=i,o._duration=r,o}var t=e.prototype;return t.duration=function(){return this._duration},t.isDurationEstimated=function(){return this.isDateBased()||this===e.FOREVER},t.isDateBased=function(){return this.compareTo(e.DAYS)>=0&&this!==e.FOREVER},t.isTimeBased=function(){return this.compareTo(e.DAYS)<0},t.isSupportedBy=function(r){if(this===e.FOREVER)return!1;try{return r.plus(1,this),!0}catch{try{return r.plus(-1,this),!0}catch{return!1}}},t.addTo=function(r,o){return r.plus(o,this)},t.between=function(r,o){return r.until(o,this)},t.toString=function(){return this._name},t.compareTo=function(r){return this.duration().compareTo(r.duration())},e}(l1);function OXt(){lt.NANOS=new lt("Nanos",Gc.ofNanos(1)),lt.MICROS=new lt("Micros",Gc.ofNanos(1e3)),lt.MILLIS=new lt("Millis",Gc.ofNanos(1e6)),lt.SECONDS=new lt("Seconds",Gc.ofSeconds(1)),lt.MINUTES=new lt("Minutes",Gc.ofSeconds(60)),lt.HOURS=new lt("Hours",Gc.ofSeconds(3600)),lt.HALF_DAYS=new lt("HalfDays",Gc.ofSeconds(43200)),lt.DAYS=new lt("Days",Gc.ofSeconds(86400)),lt.WEEKS=new lt("Weeks",Gc.ofSeconds(7*86400)),lt.MONTHS=new lt("Months",Gc.ofSeconds(31556952/12)),lt.YEARS=new lt("Years",Gc.ofSeconds(31556952)),lt.DECADES=new lt("Decades",Gc.ofSeconds(31556952*10)),lt.CENTURIES=new lt("Centuries",Gc.ofSeconds(31556952*100)),lt.MILLENNIA=new lt("Millennia",Gc.ofSeconds(31556952*1e3)),lt.ERAS=new lt("Eras",Gc.ofSeconds(31556952*(yp.MAX_VALUE+1))),lt.FOREVER=new lt("Forever",Gc.ofSeconds(ke.MAX_SAFE_INTEGER,999999999))}var o1=function(){function n(){}var e=n.prototype;return e.isDateBased=function(){co("isDateBased")},e.isTimeBased=function(){co("isTimeBased")},e.baseUnit=function(){co("baseUnit")},e.rangeUnit=function(){co("rangeUnit")},e.range=function(){co("range")},e.rangeRefinedBy=function(i){co("rangeRefinedBy")},e.getFrom=function(i){co("getFrom")},e.adjustInto=function(i,r){co("adjustInto")},e.isSupportedBy=function(i){co("isSupportedBy")},e.displayName=function(){co("displayName")},e.equals=function(i){co("equals")},e.name=function(){co("name")},n}();var $o=function(){function n(t,i,r,o){Ia(!(t>i),"Smallest minimum value '"+t+"' must be less than largest minimum value '"+i+"'",Hr),Ia(!(r>o),"Smallest maximum value '"+r+"' must be less than largest maximum value '"+o+"'",Hr),Ia(!(i>o),"Minimum value '"+i+"' must be less than maximum value '"+o+"'",Hr),this._minSmallest=t,this._minLargest=i,this._maxLargest=o,this._maxSmallest=r}var e=n.prototype;return e.isFixed=function(){return this._minSmallest===this._minLargest&&this._maxSmallest===this._maxLargest},e.minimum=function(){return this._minSmallest},e.largestMinimum=function(){return this._minLargest},e.maximum=function(){return this._maxLargest},e.smallestMaximum=function(){return this._maxSmallest},e.isValidValue=function(i){return this.minimum()<=i&&i<=this.maximum()},e.checkValidValue=function(i,r){var o;return this.isValidValue(i)?i:(r!=null?o="Invalid value for "+r+" (valid values "+this.toString()+"): "+i:o="Invalid value (valid values "+this.toString()+"): "+i,Ia(!1,o,Sr))},e.checkValidIntValue=function(i,r){if(this.isValidIntValue(i)===!1)throw new Sr("Invalid int value for "+r+": "+i);return i},e.isValidIntValue=function(i){return this.isIntValue()&&this.isValidValue(i)},e.isIntValue=function(){return this.minimum()>=ke.MIN_SAFE_INTEGER&&this.maximum()<=ke.MAX_SAFE_INTEGER},e.equals=function(i){return i===this?!0:i instanceof n?this._minSmallest===i._minSmallest&&this._minLargest===i._minLargest&&this._maxSmallest===i._maxSmallest&&this._maxLargest===i._maxLargest:!1},e.hashCode=function(){return ke.hashCode(this._minSmallest,this._minLargest,this._maxSmallest,this._maxLargest)},e.toString=function(){var i=this.minimum()+(this.minimum()!==this.largestMinimum()?"/"+this.largestMinimum():"");return i+=" - ",i+=this.smallestMaximum()+(this.smallestMaximum()!==this.maximum()?"/"+this.maximum():""),i},n.of=function(){return arguments.length===2?new n(arguments[0],arguments[0],arguments[1],arguments[1]):arguments.length===3?new n(arguments[0],arguments[0],arguments[1],arguments[2]):arguments.length===4?new n(arguments[0],arguments[1],arguments[2],arguments[3]):Ia(!1,"Invalid number of arguments "+arguments.length,Hr)},n}(),ae=function(n){Uo(e,n),e.byName=function(r){for(var o in e)if(e[o]&&e[o]instanceof e&&e[o].name()===r)return e[o]};function e(i,r,o,s){var c;return c=n.call(this)||this,c._name=i,c._baseUnit=r,c._rangeUnit=o,c._range=s,c}var t=e.prototype;return t.name=function(){return this._name},t.baseUnit=function(){return this._baseUnit},t.rangeUnit=function(){return this._rangeUnit},t.range=function(){return this._range},t.displayName=function(){return this.toString()},t.checkValidValue=function(r){return this.range().checkValidValue(r,this)},t.checkValidIntValue=function(r){return this.range().checkValidIntValue(r,this)},t.isDateBased=function(){var r=this===e.DAY_OF_WEEK||this===e.ALIGNED_DAY_OF_WEEK_IN_MONTH||this===e.ALIGNED_DAY_OF_WEEK_IN_YEAR||this===e.DAY_OF_MONTH||this===e.DAY_OF_YEAR||this===e.EPOCH_DAY||this===e.ALIGNED_WEEK_OF_MONTH||this===e.ALIGNED_WEEK_OF_YEAR||this===e.MONTH_OF_YEAR||this===e.YEAR_OF_ERA||this===e.YEAR||this===e.ERA;return r},t.isTimeBased=function(){var r=this===e.NANO_OF_SECOND||this===e.NANO_OF_DAY||this===e.MICRO_OF_SECOND||this===e.MICRO_OF_DAY||this===e.MILLI_OF_SECOND||this===e.MILLI_OF_DAY||this===e.SECOND_OF_MINUTE||this===e.SECOND_OF_DAY||this===e.MINUTE_OF_HOUR||this===e.MINUTE_OF_DAY||this===e.HOUR_OF_AMPM||this===e.CLOCK_HOUR_OF_AMPM||this===e.HOUR_OF_DAY||this===e.CLOCK_HOUR_OF_DAY||this===e.AMPM_OF_DAY;return r},t.rangeRefinedBy=function(r){return r.range(this)},t.getFrom=function(r){return r.getLong(this)},t.toString=function(){return this.name()},t.equals=function(r){return this===r},t.adjustInto=function(r,o){return r.with(this,o)},t.isSupportedBy=function(r){return r.isSupported(this)},e}(o1);function RXt(){ae.NANO_OF_SECOND=new ae("NanoOfSecond",lt.NANOS,lt.SECONDS,$o.of(0,999999999)),ae.NANO_OF_DAY=new ae("NanoOfDay",lt.NANOS,lt.DAYS,$o.of(0,86400*1e9-1)),ae.MICRO_OF_SECOND=new ae("MicroOfSecond",lt.MICROS,lt.SECONDS,$o.of(0,999999)),ae.MICRO_OF_DAY=new ae("MicroOfDay",lt.MICROS,lt.DAYS,$o.of(0,86400*1e6-1)),ae.MILLI_OF_SECOND=new ae("MilliOfSecond",lt.MILLIS,lt.SECONDS,$o.of(0,999)),ae.MILLI_OF_DAY=new ae("MilliOfDay",lt.MILLIS,lt.DAYS,$o.of(0,86400*1e3-1)),ae.SECOND_OF_MINUTE=new ae("SecondOfMinute",lt.SECONDS,lt.MINUTES,$o.of(0,59)),ae.SECOND_OF_DAY=new ae("SecondOfDay",lt.SECONDS,lt.DAYS,$o.of(0,86399)),ae.MINUTE_OF_HOUR=new ae("MinuteOfHour",lt.MINUTES,lt.HOURS,$o.of(0,59)),ae.MINUTE_OF_DAY=new ae("MinuteOfDay",lt.MINUTES,lt.DAYS,$o.of(0,24*60-1)),ae.HOUR_OF_AMPM=new ae("HourOfAmPm",lt.HOURS,lt.HALF_DAYS,$o.of(0,11)),ae.CLOCK_HOUR_OF_AMPM=new ae("ClockHourOfAmPm",lt.HOURS,lt.HALF_DAYS,$o.of(1,12)),ae.HOUR_OF_DAY=new ae("HourOfDay",lt.HOURS,lt.DAYS,$o.of(0,23)),ae.CLOCK_HOUR_OF_DAY=new ae("ClockHourOfDay",lt.HOURS,lt.DAYS,$o.of(1,24)),ae.AMPM_OF_DAY=new ae("AmPmOfDay",lt.HALF_DAYS,lt.DAYS,$o.of(0,1)),ae.DAY_OF_WEEK=new ae("DayOfWeek",lt.DAYS,lt.WEEKS,$o.of(1,7)),ae.ALIGNED_DAY_OF_WEEK_IN_MONTH=new ae("AlignedDayOfWeekInMonth",lt.DAYS,lt.WEEKS,$o.of(1,7)),ae.ALIGNED_DAY_OF_WEEK_IN_YEAR=new ae("AlignedDayOfWeekInYear",lt.DAYS,lt.WEEKS,$o.of(1,7)),ae.DAY_OF_MONTH=new ae("DayOfMonth",lt.DAYS,lt.MONTHS,$o.of(1,28,31),"day"),ae.DAY_OF_YEAR=new ae("DayOfYear",lt.DAYS,lt.YEARS,$o.of(1,365,366)),ae.EPOCH_DAY=new ae("EpochDay",lt.DAYS,lt.FOREVER,$o.of(Math.floor(yp.MIN_VALUE*365.25),Math.floor(yp.MAX_VALUE*365.25))),ae.ALIGNED_WEEK_OF_MONTH=new ae("AlignedWeekOfMonth",lt.WEEKS,lt.MONTHS,$o.of(1,4,5)),ae.ALIGNED_WEEK_OF_YEAR=new ae("AlignedWeekOfYear",lt.WEEKS,lt.YEARS,$o.of(1,53)),ae.MONTH_OF_YEAR=new ae("MonthOfYear",lt.MONTHS,lt.YEARS,$o.of(1,12),"month"),ae.PROLEPTIC_MONTH=new ae("ProlepticMonth",lt.MONTHS,lt.FOREVER,$o.of(yp.MIN_VALUE*12,yp.MAX_VALUE*12+11)),ae.YEAR_OF_ERA=new ae("YearOfEra",lt.YEARS,lt.FOREVER,$o.of(1,yp.MAX_VALUE,yp.MAX_VALUE+1)),ae.YEAR=new ae("Year",lt.YEARS,lt.FOREVER,$o.of(yp.MIN_VALUE,yp.MAX_VALUE),"year"),ae.ERA=new ae("Era",lt.ERAS,lt.FOREVER,$o.of(0,1)),ae.INSTANT_SECONDS=new ae("InstantSeconds",lt.SECONDS,lt.FOREVER,$o.of(bm,cv)),ae.OFFSET_SECONDS=new ae("OffsetSeconds",lt.SECONDS,lt.FOREVER,$o.of(-18*3600,18*3600))}var sn=function(){function n(){}return n.zoneId=function(){return n.ZONE_ID},n.chronology=function(){return n.CHRONO},n.precision=function(){return n.PRECISION},n.zone=function(){return n.ZONE},n.offset=function(){return n.OFFSET},n.localDate=function(){return n.LOCAL_DATE},n.localTime=function(){return n.LOCAL_TIME},n}();var OS=function(){function n(){}var e=n.prototype;return e.query=function(i){return i===sn.zoneId()||i===sn.chronology()||i===sn.precision()?null:i.queryFrom(this)},e.get=function(i){return this.range(i).checkValidIntValue(this.getLong(i),i)},e.range=function(i){if(i instanceof ae){if(this.isSupported(i))return i.range();throw new Ls("Unsupported field: "+i)}return i.rangeRefinedBy(this)},n}(),i$=function(n){Uo(e,n);function e(){return n.apply(this,arguments)||this}var t=e.prototype;return t.queryFrom=function(r){co("queryFrom")},e}(p5);function Xu(n,e){var t=function(i){Uo(r,i);function r(){return i.apply(this,arguments)||this}return r}(i$);return t.prototype.queryFrom=e,new t(n)}var kl=function(n){Uo(e,n);function e(i,r){var o;return o=n.call(this)||this,o._ordinal=i,o._name=r,o}var t=e.prototype;return t.ordinal=function(){return this._ordinal},t.name=function(){return this._name},e.values=function(){return l5.slice()},e.valueOf=function(r){var o=0;for(o;o7)throw new Sr("Invalid value for DayOfWeek: "+r);return l5[r-1]},e.from=function(r){if(Ia(r!=null,"temporal",DS),r instanceof e)return r;try{return e.of(r.get(ae.DAY_OF_WEEK))}catch(o){throw o instanceof Sr?new Sr("Unable to obtain DayOfWeek from TemporalAccessor: "+r+", type "+(r.constructor!=null?r.constructor.name:""),o):o}},t.value=function(){return this._ordinal+1},t.displayName=function(r,o){throw new Hr("Pattern using (localized) text not implemented yet!")},t.isSupported=function(r){return r instanceof ae?r===ae.DAY_OF_WEEK:r!=null&&r.isSupportedBy(this)},t.range=function(r){if(r===ae.DAY_OF_WEEK)return r.range();if(r instanceof ae)throw new Ls("Unsupported field: "+r);return r.rangeRefinedBy(this)},t.get=function(r){return r===ae.DAY_OF_WEEK?this.value():this.range(r).checkValidIntValue(this.getLong(r),r)},t.getLong=function(r){if(r===ae.DAY_OF_WEEK)return this.value();if(r instanceof ae)throw new Ls("Unsupported field: "+r);return r.getFrom(this)},t.plus=function(r){var o=ke.floorMod(r,7);return l5[ke.floorMod(this._ordinal+(o+7),7)]},t.minus=function(r){return this.plus(-1*ke.floorMod(r,7))},t.query=function(r){return r===sn.precision()?lt.DAYS:r===sn.localDate()||r===sn.localTime()||r===sn.chronology()||r===sn.zone()||r===sn.zoneId()||r===sn.offset()?null:(Ia(r!=null,"query",DS),r.queryFrom(this))},t.adjustInto=function(r){return ut(r,"temporal"),r.with(ae.DAY_OF_WEEK,this.value())},t.equals=function(r){return this===r},t.toString=function(){return this._name},t.compareTo=function(r){return ut(r,"other"),Nr(r,e,"other"),this._ordinal-r._ordinal},t.toJSON=function(){return this.toString()},e}(OS),l5;function NXt(){kl.MONDAY=new kl(0,"MONDAY"),kl.TUESDAY=new kl(1,"TUESDAY"),kl.WEDNESDAY=new kl(2,"WEDNESDAY"),kl.THURSDAY=new kl(3,"THURSDAY"),kl.FRIDAY=new kl(4,"FRIDAY"),kl.SATURDAY=new kl(5,"SATURDAY"),kl.SUNDAY=new kl(6,"SUNDAY"),kl.FROM=Xu("DayOfWeek.FROM",function(n){return kl.from(n)}),l5=[kl.MONDAY,kl.TUESDAY,kl.WEDNESDAY,kl.THURSDAY,kl.FRIDAY,kl.SATURDAY,kl.SUNDAY]}var So=function(n){Uo(e,n);function e(i,r){var o;return o=n.call(this)||this,o._value=ke.safeToInt(i),o._name=r,o}var t=e.prototype;return t.value=function(){return this._value},t.ordinal=function(){return this._value-1},t.name=function(){return this._name},t.displayName=function(r,o){throw new Hr("Pattern using (localized) text not implemented yet!")},t.isSupported=function(r){return r===null?!1:r instanceof ae?r===ae.MONTH_OF_YEAR:r!=null&&r.isSupportedBy(this)},t.get=function(r){return r===ae.MONTH_OF_YEAR?this.value():this.range(r).checkValidIntValue(this.getLong(r),r)},t.getLong=function(r){if(r===ae.MONTH_OF_YEAR)return this.value();if(r instanceof ae)throw new Ls("Unsupported field: "+r);return r.getFrom(this)},t.plus=function(r){var o=ke.intMod(r,12)+12,s=ke.intMod(this.value()+o,12);return s=s===0?12:s,e.of(s)},t.minus=function(r){return this.plus(-1*ke.intMod(r,12))},t.length=function(r){switch(this){case e.FEBRUARY:return r?29:28;case e.APRIL:case e.JUNE:case e.SEPTEMBER:case e.NOVEMBER:return 30;default:return 31}},t.minLength=function(){switch(this){case e.FEBRUARY:return 28;case e.APRIL:case e.JUNE:case e.SEPTEMBER:case e.NOVEMBER:return 30;default:return 31}},t.maxLength=function(){switch(this){case e.FEBRUARY:return 29;case e.APRIL:case e.JUNE:case e.SEPTEMBER:case e.NOVEMBER:return 30;default:return 31}},t.firstDayOfYear=function(r){var o=r?1:0;switch(this){case e.JANUARY:return 1;case e.FEBRUARY:return 32;case e.MARCH:return 60+o;case e.APRIL:return 91+o;case e.MAY:return 121+o;case e.JUNE:return 152+o;case e.JULY:return 182+o;case e.AUGUST:return 213+o;case e.SEPTEMBER:return 244+o;case e.OCTOBER:return 274+o;case e.NOVEMBER:return 305+o;case e.DECEMBER:default:return 335+o}},t.firstMonthOfQuarter=function(){switch(this){case e.JANUARY:case e.FEBRUARY:case e.MARCH:return e.JANUARY;case e.APRIL:case e.MAY:case e.JUNE:return e.APRIL;case e.JULY:case e.AUGUST:case e.SEPTEMBER:return e.JULY;case e.OCTOBER:case e.NOVEMBER:case e.DECEMBER:default:return e.OCTOBER}},t.query=function(r){return Ia(r!=null,"query() parameter must not be null",Sr),r===sn.chronology()?sl.INSTANCE:r===sn.precision()?lt.MONTHS:n.prototype.query.call(this,r)},t.toString=function(){switch(this){case e.JANUARY:return"JANUARY";case e.FEBRUARY:return"FEBRUARY";case e.MARCH:return"MARCH";case e.APRIL:return"APRIL";case e.MAY:return"MAY";case e.JUNE:return"JUNE";case e.JULY:return"JULY";case e.AUGUST:return"AUGUST";case e.SEPTEMBER:return"SEPTEMBER";case e.OCTOBER:return"OCTOBER";case e.NOVEMBER:return"NOVEMBER";case e.DECEMBER:return"DECEMBER";default:return"unknown Month, value: "+this.value()}},t.toJSON=function(){return this.toString()},t.adjustInto=function(r){return r.with(ae.MONTH_OF_YEAR,this.value())},t.compareTo=function(r){return ut(r,"other"),Nr(r,e,"other"),this._value-r._value},t.equals=function(r){return this===r},e.valueOf=function(r){var o=0;for(o;o12)&&Ia(!1,"Invalid value for MonthOfYear: "+r,Sr),Qq[r-1]},e.from=function(r){if(r instanceof e)return r;try{return e.of(r.get(ae.MONTH_OF_YEAR))}catch(o){throw new Sr("Unable to obtain Month from TemporalAccessor: "+r+" of type "+(r&&r.constructor!=null?r.constructor.name:""),o)}},e}(OS),Qq;function PXt(){So.JANUARY=new So(1,"JANUARY"),So.FEBRUARY=new So(2,"FEBRUARY"),So.MARCH=new So(3,"MARCH"),So.APRIL=new So(4,"APRIL"),So.MAY=new So(5,"MAY"),So.JUNE=new So(6,"JUNE"),So.JULY=new So(7,"JULY"),So.AUGUST=new So(8,"AUGUST"),So.SEPTEMBER=new So(9,"SEPTEMBER"),So.OCTOBER=new So(10,"OCTOBER"),So.NOVEMBER=new So(11,"NOVEMBER"),So.DECEMBER=new So(12,"DECEMBER"),Qq=[So.JANUARY,So.FEBRUARY,So.MARCH,So.APRIL,So.MAY,So.JUNE,So.JULY,So.AUGUST,So.SEPTEMBER,So.OCTOBER,So.NOVEMBER,So.DECEMBER]}var FXt=/([-+]?)P(?:([-+]?[0-9]+)Y)?(?:([-+]?[0-9]+)M)?(?:([-+]?[0-9]+)W)?(?:([-+]?[0-9]+)D)?/,AS=function(n){Uo(e,n);function e(i,r,o){var s;s=n.call(this)||this;var c=ke.safeToInt(i),h=ke.safeToInt(r),g=ke.safeToInt(o);return c===0&&h===0&&g===0?(e.ZERO||(s._years=c,s._months=h,s._days=g,e.ZERO=FN(s)),e.ZERO||FN(s)):(s._years=c,s._months=h,s._days=g,s)}e.ofYears=function(r){return e.create(r,0,0)},e.ofMonths=function(r){return e.create(0,r,0)},e.ofWeeks=function(r){return e.create(0,0,ke.safeMultiply(r,7))},e.ofDays=function(r){return e.create(0,0,r)},e.of=function(r,o,s){return e.create(r,o,s)},e.from=function(r){if(r instanceof e)return r;ut(r,"amount");for(var o=0,s=0,c=0,h=r.units(),g=0;ge.MAX_SECONDS)throw new Sr("Zone offset not in valid range: -18:00 to +18:00")},e._validate=function(r,o,s){if(r<-18||r>18)throw new Sr("Zone offset hours not in valid range: value "+r+" is not in the range -18 to 18");if(r>0){if(o<0||s<0)throw new Sr("Zone offset minutes and seconds must be positive because hours is positive")}else if(r<0){if(o>0||s>0)throw new Sr("Zone offset minutes and seconds must be negative because hours is negative")}else if(o>0&&s<0||o<0&&s>0)throw new Sr("Zone offset minutes and seconds must have the same sign");if(Math.abs(o)>59)throw new Sr("Zone offset minutes not in valid range: abs(value) "+Math.abs(o)+" is not in the range 0 to 59");if(Math.abs(s)>59)throw new Sr("Zone offset seconds not in valid range: abs(value) "+Math.abs(s)+" is not in the range 0 to 59");if(Math.abs(r)===18&&(Math.abs(o)>0||Math.abs(s)>0))throw new Sr("Zone offset not in valid range: -18:00 to +18:00")},e.of=function(r){ut(r,"offsetId");var o=zst[r];if(o!=null)return o;var s,c,h;switch(r.length){case 2:r=r[0]+"0"+r[1];case 3:s=e._parseNumber(r,1,!1),c=0,h=0;break;case 5:s=e._parseNumber(r,1,!1),c=e._parseNumber(r,3,!1),h=0;break;case 6:s=e._parseNumber(r,1,!1),c=e._parseNumber(r,4,!0),h=0;break;case 7:s=e._parseNumber(r,1,!1),c=e._parseNumber(r,3,!1),h=e._parseNumber(r,5,!1);break;case 9:s=e._parseNumber(r,1,!1),c=e._parseNumber(r,4,!0),h=e._parseNumber(r,7,!0);break;default:throw new Sr("Invalid ID for ZoneOffset, invalid format: "+r)}var g=r[0];if(g!=="+"&&g!=="-")throw new Sr("Invalid ID for ZoneOffset, plus/minus not found when expected: "+r);return g==="-"?e.ofHoursMinutesSeconds(-s,-c,-h):e.ofHoursMinutesSeconds(s,c,h)},e._parseNumber=function(r,o,s){if(s&&r[o-1]!==":")throw new Sr("Invalid ID for ZoneOffset, colon not found when expected: "+r);var c=r[o],h=r[o+1];if(c<"0"||c>"9"||h<"0"||h>"9")throw new Sr("Invalid ID for ZoneOffset, non numeric characters found: "+r);return(c.charCodeAt(0)-48)*10+(h.charCodeAt(0)-48)},e.ofHours=function(r){return e.ofHoursMinutesSeconds(r,0,0)},e.ofHoursMinutes=function(r,o){return e.ofHoursMinutesSeconds(r,o,0)},e.ofHoursMinutesSeconds=function(r,o,s){e._validate(r,o,s);var c=r*ii.SECONDS_PER_HOUR+o*ii.SECONDS_PER_MINUTE+s;return e.ofTotalSeconds(c)},e.ofTotalMinutes=function(r){var o=r*ii.SECONDS_PER_MINUTE;return e.ofTotalSeconds(o)},e.ofTotalSeconds=function(r){if(r%(15*ii.SECONDS_PER_MINUTE)===0){var o=r,s=Bst[o];return s==null&&(s=new e(r),Bst[o]=s,zst[s.id()]=s),s}else return new e(r)},t.rules=function(){return this._rules},t.get=function(r){return this.getLong(r)},t.getLong=function(r){if(r===ae.OFFSET_SECONDS)return this._totalSeconds;if(r instanceof ae)throw new Sr("Unsupported field: "+r);return r.getFrom(this)},t.query=function(r){return ut(r,"query"),r===sn.offset()||r===sn.zone()?this:r===sn.localDate()||r===sn.localTime()||r===sn.precision()||r===sn.chronology()||r===sn.zoneId()?null:r.queryFrom(this)},t.adjustInto=function(r){return r.with(ae.OFFSET_SECONDS,this._totalSeconds)},t.compareTo=function(r){return ut(r,"other"),r._totalSeconds-this._totalSeconds},t.equals=function(r){return this===r?!0:r instanceof e?this._totalSeconds===r._totalSeconds:!1},t.hashCode=function(){return this._totalSeconds},t.toString=function(){return this._id},e}(Ba);function VXt(){Mo.MAX_SECONDS=18*ii.SECONDS_PER_HOUR,Mo.UTC=Mo.ofTotalSeconds(0),Mo.MIN=Mo.ofTotalSeconds(-Mo.MAX_SECONDS),Mo.MAX=Mo.ofTotalSeconds(Mo.MAX_SECONDS)}var Lpe=function(n){Uo(e,n),e.create=function(r,o){var s=new e;return s._addFieldValue(r,o),s};function e(){var i;return i=n.call(this)||this,i.fieldValues=new Gst,i.chrono=null,i.zone=null,i.date=null,i.time=null,i.leapSecond=!1,i.excessDays=null,i}var t=e.prototype;return t.getFieldValue0=function(r){return this.fieldValues.get(r)},t._addFieldValue=function(r,o){ut(r,"field");var s=this.getFieldValue0(r);if(s!=null&&s!==o)throw new Sr("Conflict found: "+r+" "+s+" differs from "+r+" "+o+": "+this);return this._putFieldValue0(r,o)},t._putFieldValue0=function(r,o){return this.fieldValues.put(r,o),this},t.resolve=function(r,o){return o!=null&&this.fieldValues.retainAll(o),this._mergeDate(r),this._mergeTime(r),this._resolveTimeInferZeroes(r),this.excessDays!=null&&this.excessDays.isZero()===!1&&this.date!=null&&this.time!=null&&(this.date=this.date.plus(this.excessDays),this.excessDays=AS.ZERO),this._resolveInstant(),this},t._mergeDate=function(r){this._checkDate(sl.INSTANCE.resolveDate(this.fieldValues,r))},t._checkDate=function(r){if(r!=null){this._addObject(r);for(var o in this.fieldValues.keySet()){var s=ae.byName(o);if(s&&this.fieldValues.get(s)!==void 0&&s.isDateBased()){var c=void 0;try{c=r.getLong(s)}catch(g){if(g instanceof Sr)continue;throw g}var h=this.fieldValues.get(s);if(c!==h)throw new Sr("Conflict found: Field "+s+" "+c+" differs from "+s+" "+h+" derived from "+r)}}}},t._mergeTime=function(r){if(this.fieldValues.containsKey(ae.CLOCK_HOUR_OF_DAY)){var o=this.fieldValues.remove(ae.CLOCK_HOUR_OF_DAY);r!==as.LENIENT&&(r===as.SMART&&o===0||ae.CLOCK_HOUR_OF_DAY.checkValidValue(o)),this._addFieldValue(ae.HOUR_OF_DAY,o===24?0:o)}if(this.fieldValues.containsKey(ae.CLOCK_HOUR_OF_AMPM)){var s=this.fieldValues.remove(ae.CLOCK_HOUR_OF_AMPM);r!==as.LENIENT&&(r===as.SMART&&s===0||ae.CLOCK_HOUR_OF_AMPM.checkValidValue(s)),this._addFieldValue(ae.HOUR_OF_AMPM,s===12?0:s)}if(r!==as.LENIENT&&(this.fieldValues.containsKey(ae.AMPM_OF_DAY)&&ae.AMPM_OF_DAY.checkValidValue(this.fieldValues.get(ae.AMPM_OF_DAY)),this.fieldValues.containsKey(ae.HOUR_OF_AMPM)&&ae.HOUR_OF_AMPM.checkValidValue(this.fieldValues.get(ae.HOUR_OF_AMPM))),this.fieldValues.containsKey(ae.AMPM_OF_DAY)&&this.fieldValues.containsKey(ae.HOUR_OF_AMPM)){var c=this.fieldValues.remove(ae.AMPM_OF_DAY),h=this.fieldValues.remove(ae.HOUR_OF_AMPM);this._addFieldValue(ae.HOUR_OF_DAY,c*12+h)}if(this.fieldValues.containsKey(ae.NANO_OF_DAY)){var g=this.fieldValues.remove(ae.NANO_OF_DAY);r!==as.LENIENT&&ae.NANO_OF_DAY.checkValidValue(g),this._addFieldValue(ae.SECOND_OF_DAY,ke.intDiv(g,1e9)),this._addFieldValue(ae.NANO_OF_SECOND,ke.intMod(g,1e9))}if(this.fieldValues.containsKey(ae.MICRO_OF_DAY)){var x=this.fieldValues.remove(ae.MICRO_OF_DAY);r!==as.LENIENT&&ae.MICRO_OF_DAY.checkValidValue(x),this._addFieldValue(ae.SECOND_OF_DAY,ke.intDiv(x,1e6)),this._addFieldValue(ae.MICRO_OF_SECOND,ke.intMod(x,1e6))}if(this.fieldValues.containsKey(ae.MILLI_OF_DAY)){var C=this.fieldValues.remove(ae.MILLI_OF_DAY);r!==as.LENIENT&&ae.MILLI_OF_DAY.checkValidValue(C),this._addFieldValue(ae.SECOND_OF_DAY,ke.intDiv(C,1e3)),this._addFieldValue(ae.MILLI_OF_SECOND,ke.intMod(C,1e3))}if(this.fieldValues.containsKey(ae.SECOND_OF_DAY)){var A=this.fieldValues.remove(ae.SECOND_OF_DAY);r!==as.LENIENT&&ae.SECOND_OF_DAY.checkValidValue(A),this._addFieldValue(ae.HOUR_OF_DAY,ke.intDiv(A,3600)),this._addFieldValue(ae.MINUTE_OF_HOUR,ke.intMod(ke.intDiv(A,60),60)),this._addFieldValue(ae.SECOND_OF_MINUTE,ke.intMod(A,60))}if(this.fieldValues.containsKey(ae.MINUTE_OF_DAY)){var k=this.fieldValues.remove(ae.MINUTE_OF_DAY);r!==as.LENIENT&&ae.MINUTE_OF_DAY.checkValidValue(k),this._addFieldValue(ae.HOUR_OF_DAY,ke.intDiv(k,60)),this._addFieldValue(ae.MINUTE_OF_HOUR,ke.intMod(k,60))}if(r!==as.LENIENT&&(this.fieldValues.containsKey(ae.MILLI_OF_SECOND)&&ae.MILLI_OF_SECOND.checkValidValue(this.fieldValues.get(ae.MILLI_OF_SECOND)),this.fieldValues.containsKey(ae.MICRO_OF_SECOND)&&ae.MICRO_OF_SECOND.checkValidValue(this.fieldValues.get(ae.MICRO_OF_SECOND))),this.fieldValues.containsKey(ae.MILLI_OF_SECOND)&&this.fieldValues.containsKey(ae.MICRO_OF_SECOND)){var O=this.fieldValues.remove(ae.MILLI_OF_SECOND),F=this.fieldValues.get(ae.MICRO_OF_SECOND);this._putFieldValue0(ae.MICRO_OF_SECOND,O*1e3+ke.intMod(F,1e3))}if(this.fieldValues.containsKey(ae.MICRO_OF_SECOND)&&this.fieldValues.containsKey(ae.NANO_OF_SECOND)){var L=this.fieldValues.get(ae.NANO_OF_SECOND);this._putFieldValue0(ae.MICRO_OF_SECOND,ke.intDiv(L,1e3)),this.fieldValues.remove(ae.MICRO_OF_SECOND)}if(this.fieldValues.containsKey(ae.MILLI_OF_SECOND)&&this.fieldValues.containsKey(ae.NANO_OF_SECOND)){var z=this.fieldValues.get(ae.NANO_OF_SECOND);this._putFieldValue0(ae.MILLI_OF_SECOND,ke.intDiv(z,1e6)),this.fieldValues.remove(ae.MILLI_OF_SECOND)}if(this.fieldValues.containsKey(ae.MICRO_OF_SECOND)){var j=this.fieldValues.remove(ae.MICRO_OF_SECOND);this._putFieldValue0(ae.NANO_OF_SECOND,j*1e3)}else if(this.fieldValues.containsKey(ae.MILLI_OF_SECOND)){var K=this.fieldValues.remove(ae.MILLI_OF_SECOND);this._putFieldValue0(ae.NANO_OF_SECOND,K*1e6)}},t._resolveTimeInferZeroes=function(r){var o=this.fieldValues.get(ae.HOUR_OF_DAY),s=this.fieldValues.get(ae.MINUTE_OF_HOUR),c=this.fieldValues.get(ae.SECOND_OF_MINUTE),h=this.fieldValues.get(ae.NANO_OF_SECOND);if(o!=null&&!(s==null&&(c!=null||h!=null))&&!(s!=null&&c==null&&h!=null)){if(r!==as.LENIENT){if(o!=null){r===as.SMART&&o===24&&(s==null||s===0)&&(c==null||c===0)&&(h==null||h===0)&&(o=0,this.excessDays=AS.ofDays(1));var g=ae.HOUR_OF_DAY.checkValidIntValue(o);if(s!=null){var x=ae.MINUTE_OF_HOUR.checkValidIntValue(s);if(c!=null){var C=ae.SECOND_OF_MINUTE.checkValidIntValue(c);if(h!=null){var A=ae.NANO_OF_SECOND.checkValidIntValue(h);this._addObject(ii.of(g,x,C,A))}else this._addObject(ii.of(g,x,C))}else h==null&&this._addObject(ii.of(g,x))}else c==null&&h==null&&this._addObject(ii.of(g,0))}}else if(o!=null){var k=o;if(s!=null)if(c!=null){h==null&&(h=0);var O=ke.safeMultiply(k,36e11);O=ke.safeAdd(O,ke.safeMultiply(s,6e10)),O=ke.safeAdd(O,ke.safeMultiply(c,1e9)),O=ke.safeAdd(O,h);var F=ke.floorDiv(O,864e11),L=ke.floorMod(O,864e11);this._addObject(ii.ofNanoOfDay(L)),this.excessDays=AS.ofDays(F)}else{var z=ke.safeMultiply(k,3600);z=ke.safeAdd(z,ke.safeMultiply(s,60));var j=ke.floorDiv(z,86400),K=ke.floorMod(z,86400);this._addObject(ii.ofSecondOfDay(K)),this.excessDays=AS.ofDays(j)}else{var ee=ke.safeToInt(ke.floorDiv(k,24));k=ke.floorMod(k,24),this._addObject(ii.of(k,0)),this.excessDays=AS.ofDays(ee)}}this.fieldValues.remove(ae.HOUR_OF_DAY),this.fieldValues.remove(ae.MINUTE_OF_HOUR),this.fieldValues.remove(ae.SECOND_OF_MINUTE),this.fieldValues.remove(ae.NANO_OF_SECOND)}},t._addObject=function(r){r instanceof e$?this.date=r:r instanceof ii&&(this.time=r)},t._resolveInstant=function(){if(this.date!=null&&this.time!=null){var r=this.fieldValues.get(ae.OFFSET_SECONDS);if(r!=null){var o=Mo.ofTotalSeconds(r),s=this.date.atTime(this.time).atZone(o).getLong(ae.INSTANT_SECONDS);this.fieldValues.put(ae.INSTANT_SECONDS,s)}else if(this.zone!=null){var c=this.date.atTime(this.time).atZone(this.zone).getLong(ae.INSTANT_SECONDS);this.fieldValues.put(ae.INSTANT_SECONDS,c)}}},t.build=function(r){return r.queryFrom(this)},t.isSupported=function(r){return r==null?!1:this.fieldValues.containsKey(r)&&this.fieldValues.get(r)!==void 0||this.date!=null&&this.date.isSupported(r)||this.time!=null&&this.time.isSupported(r)},t.getLong=function(r){ut(r,"field");var o=this.getFieldValue0(r);if(o==null){if(this.date!=null&&this.date.isSupported(r))return this.date.getLong(r);if(this.time!=null&&this.time.isSupported(r))return this.time.getLong(r);throw new Sr("Field not found: "+r)}return o},t.query=function(r){return r===sn.zoneId()?this.zone:r===sn.chronology()?this.chrono:r===sn.localDate()?this.date!=null?Pr.from(this.date):null:r===sn.localTime()?this.time:r===sn.zone()||r===sn.offset()?r.queryFrom(this):r===sn.precision()?null:r.queryFrom(this)},e}(OS),Yst=function(){function n(){if(arguments.length===1)if(arguments[0]instanceof n){this._constructorSelf.apply(this,arguments);return}else this._constructorFormatter.apply(this,arguments);else this._constructorParam.apply(this,arguments);this._caseSensitive=!0,this._strict=!0,this._parsed=[new Vst(this)]}var e=n.prototype;return e._constructorParam=function(i,r,o){this._locale=i,this._symbols=r,this._overrideChronology=o},e._constructorFormatter=function(i){this._locale=i.locale(),this._symbols=i.decimalStyle(),this._overrideChronology=i.chronology()},e._constructorSelf=function(i){this._locale=i._locale,this._symbols=i._symbols,this._overrideChronology=i._overrideChronology,this._overrideZone=i._overrideZone,this._caseSensitive=i._caseSensitive,this._strict=i._strict,this._parsed=[new Vst(this)]},e.copy=function(){return new n(this)},e.symbols=function(){return this._symbols},e.isStrict=function(){return this._strict},e.setStrict=function(i){this._strict=i},e.locale=function(){return this._locale},e.setLocale=function(i){this._locale=i},e.startOptional=function(){this._parsed.push(this.currentParsed().copy())},e.endOptional=function(i){i?this._parsed.splice(this._parsed.length-2,1):this._parsed.splice(this._parsed.length-1,1)},e.isCaseSensitive=function(){return this._caseSensitive},e.setCaseSensitive=function(i){this._caseSensitive=i},e.subSequenceEquals=function(i,r,o,s,c){if(r+c>i.length||s+c>o.length)return!1;this.isCaseSensitive()||(i=i.toLowerCase(),o=o.toLowerCase());for(var h=0;h0)return null;throw r}},e.temporal=function(){return this._temporal},e.locale=function(){return this._locale},e.setDateTime=function(i){this._temporal=i},e.setLocale=function(i){this._locale=i},n}(),ny={},UXt=[0,90,181,273,0,91,182,274],s1=function(n){Uo(e,n);function e(){return n.apply(this,arguments)||this}var t=e.prototype;return t.isDateBased=function(){return!0},t.isTimeBased=function(){return!1},t._isIso=function(){return!0},e._getWeekRangeByLocalDate=function(r){var o=e._getWeekBasedYear(r);return $o.of(1,e._getWeekRangeByYear(o))},e._getWeekRangeByYear=function(r){var o=Pr.of(r,1,1);return o.dayOfWeek()===kl.THURSDAY||o.dayOfWeek()===kl.WEDNESDAY&&o.isLeapYear()?53:52},e._getWeek=function(r){var o=r.dayOfWeek().ordinal(),s=r.dayOfYear()-1,c=s+(3-o),h=ke.intDiv(c,7),g=c-h*7,x=g-3;if(x<-3&&(x+=7),s=363){var h=r.dayOfWeek().ordinal();s=s-363-(r.isLeapYear()?1:0),s-h>=0&&o++}return o},t.displayName=function(){return this.toString()},t.resolve=function(){return null},t.name=function(){return this.toString()},e}(o1),jXt=function(n){Uo(e,n);function e(){return n.apply(this,arguments)||this}var t=e.prototype;return t.toString=function(){return"DayOfQuarter"},t.baseUnit=function(){return lt.DAYS},t.rangeUnit=function(){return h5},t.range=function(){return $o.of(1,90,92)},t.isSupportedBy=function(r){return r.isSupported(ae.DAY_OF_YEAR)&&r.isSupported(ae.MONTH_OF_YEAR)&&r.isSupported(ae.YEAR)&&this._isIso(r)},t.rangeRefinedBy=function(r){if(r.isSupported(this)===!1)throw new Ls("Unsupported field: DayOfQuarter");var o=r.getLong(PN);if(o===1){var s=r.getLong(ae.YEAR);return sl.isLeapYear(s)?$o.of(1,91):$o.of(1,90)}else{if(o===2)return $o.of(1,91);if(o===3||o===4)return $o.of(1,92)}return this.range()},t.getFrom=function(r){if(r.isSupported(this)===!1)throw new Ls("Unsupported field: DayOfQuarter");var o=r.get(ae.DAY_OF_YEAR),s=r.get(ae.MONTH_OF_YEAR),c=r.getLong(ae.YEAR);return o-UXt[ke.intDiv(s-1,3)+(sl.isLeapYear(c)?4:0)]},t.adjustInto=function(r,o){var s=this.getFrom(r);return this.range().checkValidValue(o,this),r.with(ae.DAY_OF_YEAR,r.getLong(ae.DAY_OF_YEAR)+(o-s))},t.resolve=function(r,o,s){var c=r.get(ae.YEAR),h=r.get(PN);if(c==null||h==null)return null;var g=ae.YEAR.checkValidIntValue(c),x=r.get(L2e),C;if(s===as.LENIENT){var A=h;C=Pr.of(g,1,1),C=C.plusMonths(ke.safeMultiply(ke.safeSubtract(A,1),3)),C=C.plusDays(ke.safeSubtract(x,1))}else{var k=PN.range().checkValidIntValue(h,PN);if(s===as.STRICT){var O=92;k===1?O=sl.isLeapYear(g)?91:90:k===2&&(O=91),$o.of(1,O).checkValidValue(x,this)}else this.range().checkValidValue(x,this);C=Pr.of(g,(k-1)*3+1,1).plusDays(x-1)}return r.remove(this),r.remove(ae.YEAR),r.remove(PN),C},e}(s1),HXt=function(n){Uo(e,n);function e(){return n.apply(this,arguments)||this}var t=e.prototype;return t.toString=function(){return"QuarterOfYear"},t.baseUnit=function(){return h5},t.rangeUnit=function(){return lt.YEARS},t.range=function(){return $o.of(1,4)},t.isSupportedBy=function(r){return r.isSupported(ae.MONTH_OF_YEAR)&&this._isIso(r)},t.rangeRefinedBy=function(r){return this.range()},t.getFrom=function(r){if(r.isSupported(this)===!1)throw new Ls("Unsupported field: QuarterOfYear");var o=r.getLong(ae.MONTH_OF_YEAR);return ke.intDiv(o+2,3)},t.adjustInto=function(r,o){var s=this.getFrom(r);return this.range().checkValidValue(o,this),r.with(ae.MONTH_OF_YEAR,r.getLong(ae.MONTH_OF_YEAR)+(o-s)*3)},e}(s1),GXt=function(n){Uo(e,n);function e(){return n.apply(this,arguments)||this}var t=e.prototype;return t.toString=function(){return"WeekOfWeekBasedYear"},t.baseUnit=function(){return lt.WEEKS},t.rangeUnit=function(){return d5},t.range=function(){return $o.of(1,52,53)},t.isSupportedBy=function(r){return r.isSupported(ae.EPOCH_DAY)&&this._isIso(r)},t.rangeRefinedBy=function(r){if(r.isSupported(this)===!1)throw new Ls("Unsupported field: WeekOfWeekBasedYear");return s1._getWeekRangeByLocalDate(Pr.from(r))},t.getFrom=function(r){if(r.isSupported(this)===!1)throw new Ls("Unsupported field: WeekOfWeekBasedYear");return s1._getWeek(Pr.from(r))},t.adjustInto=function(r,o){return this.range().checkValidValue(o,this),r.plus(ke.safeSubtract(o,this.getFrom(r)),lt.WEEKS)},t.resolve=function(r,o,s){var c=r.get(oy),h=r.get(ae.DAY_OF_WEEK);if(c==null||h==null)return null;var g=oy.range().checkValidIntValue(c,oy),x=r.get(B2e),C;if(s===as.LENIENT){var A=h,k=0;A>7?(k=ke.intDiv(A-1,7),A=ke.intMod(A-1,7)+1):A<1&&(k=ke.intDiv(A,7)-1,A=ke.intMod(A,7)+7),C=Pr.of(g,1,4).plusWeeks(x-1).plusWeeks(k).with(ae.DAY_OF_WEEK,A)}else{var O=ae.DAY_OF_WEEK.checkValidIntValue(h);if(s===as.STRICT){var F=Pr.of(g,1,4),L=s1._getWeekRangeByLocalDate(F);L.checkValidValue(x,this)}else this.range().checkValidValue(x,this);C=Pr.of(g,1,4).plusWeeks(x-1).with(ae.DAY_OF_WEEK,O)}return r.remove(this),r.remove(oy),r.remove(ae.DAY_OF_WEEK),C},t.displayName=function(){return"Week"},e}(s1),YXt=function(n){Uo(e,n);function e(){return n.apply(this,arguments)||this}var t=e.prototype;return t.toString=function(){return"WeekBasedYear"},t.baseUnit=function(){return d5},t.rangeUnit=function(){return lt.FOREVER},t.range=function(){return ae.YEAR.range()},t.isSupportedBy=function(r){return r.isSupported(ae.EPOCH_DAY)&&this._isIso(r)},t.rangeRefinedBy=function(r){return ae.YEAR.range()},t.getFrom=function(r){if(r.isSupported(this)===!1)throw new Ls("Unsupported field: WeekBasedYear");return s1._getWeekBasedYear(Pr.from(r))},t.adjustInto=function(r,o){if(this.isSupportedBy(r)===!1)throw new Ls("Unsupported field: WeekBasedYear");var s=this.range().checkValidIntValue(o,oy),c=Pr.from(r),h=c.get(ae.DAY_OF_WEEK),g=s1._getWeek(c);g===53&&s1._getWeekRangeByYear(s)===52&&(g=52);var x=Pr.of(s,1,4),C=h-x.get(ae.DAY_OF_WEEK)+(g-1)*7;return x=x.plusDays(C),r.with(x)},e}(s1),Ust=function(n){Uo(e,n);function e(i,r){var o;return o=n.call(this)||this,o._name=i,o._duration=r,o}var t=e.prototype;return t.duration=function(){return this._duration},t.isDurationEstimated=function(){return!0},t.isDateBased=function(){return!0},t.isTimeBased=function(){return!1},t.isSupportedBy=function(r){return r.isSupported(ae.EPOCH_DAY)},t.addTo=function(r,o){switch(this){case d5:{var s=ke.safeAdd(r.get(oy),o);return r.with(oy,s)}case h5:return r.plus(ke.intDiv(o,256),lt.YEARS).plus(ke.intMod(o,256)*3,lt.MONTHS);default:throw new Jq("Unreachable")}},t.between=function(r,o){switch(this){case d5:return ke.safeSubtract(o.getLong(oy),r.getLong(oy));case h5:return ke.intDiv(r.until(o,lt.MONTHS),3);default:throw new Jq("Unreachable")}},t.toString=function(){return name},e}(l1),L2e=null,PN=null,B2e=null,oy=null,d5=null,h5=null;function qXt(){L2e=new jXt,PN=new HXt,B2e=new GXt,oy=new YXt,d5=new Ust("WeekBasedYears",Gc.ofSeconds(31556952)),h5=new Ust("QuarterYears",Gc.ofSeconds(31556952/4)),ny.DAY_OF_QUARTER=L2e,ny.QUARTER_OF_YEAR=PN,ny.WEEK_OF_WEEK_BASED_YEAR=B2e,ny.WEEK_BASED_YEAR=oy,ny.WEEK_BASED_YEARS=d5,ny.QUARTER_YEARS=h5,Pr.prototype.isoWeekOfWeekyear=function(){return this.get(ny.WEEK_OF_WEEK_BASED_YEAR)},Pr.prototype.isoWeekyear=function(){return this.get(ny.WEEK_BASED_YEAR)}}var Bpe=function(){function n(t,i,r,o){this._zeroDigit=t,this._zeroDigitCharCode=t.charCodeAt(0),this._positiveSign=i,this._negativeSign=r,this._decimalSeparator=o}var e=n.prototype;return e.positiveSign=function(){return this._positiveSign},e.withPositiveSign=function(i){return i===this._positiveSign?this:new n(this._zeroDigit,i,this._negativeSign,this._decimalSeparator)},e.negativeSign=function(){return this._negativeSign},e.withNegativeSign=function(i){return i===this._negativeSign?this:new n(this._zeroDigit,this._positiveSign,i,this._decimalSeparator)},e.zeroDigit=function(){return this._zeroDigit},e.withZeroDigit=function(i){return i===this._zeroDigit?this:new n(i,this._positiveSign,this._negativeSign,this._decimalSeparator)},e.decimalSeparator=function(){return this._decimalSeparator},e.withDecimalSeparator=function(i){return i===this._decimalSeparator?this:new n(this._zeroDigit,this._positiveSign,this._negativeSign,i)},e.convertToDigit=function(i){var r=i.charCodeAt(0)-this._zeroDigitCharCode;return r>=0&&r<=9?r:-1},e.convertNumberToI18N=function(i){if(this._zeroDigit==="0")return i;for(var r=this._zeroDigitCharCode-48,o="",s=0;s1)throw new Hr('invalid literal, too long: "'+t+'"');this._literal=t}var e=n.prototype;return e.print=function(i,r){return r.append(this._literal),!0},e.parse=function(i,r,o){var s=r.length;if(o===s)return~o;var c=r.charAt(o);return i.charEquals(this._literal,c)===!1?~o:o+this._literal.length},e.toString=function(){return this._literal==="'"?"''":"'"+this._literal+"'"},n}();var z2e=function(){function n(t,i){this._printerParsers=t,this._optional=i}var e=n.prototype;return e.withOptional=function(i){return i===this._optional?this:new n(this._printerParsers,i)},e.print=function(i,r){var o=r.length();this._optional&&i.startOptional();try{for(var s=0;s9)throw new Hr("Minimum width must be from 0 to 9 inclusive but was "+i);if(r<1||r>9)throw new Hr("Maximum width must be from 1 to 9 inclusive but was "+r);if(r0){this.decimalPoint&&r.append(s.decimalSeparator());for(var c=0;c0)for(;h.length>this.minWidth&&h[h.length-1]==="0";)h=h.substr(0,h.length-1);var x=h;x=s.convertNumberToI18N(x),this.decimalPoint&&r.append(s.decimalSeparator()),r.append(x)}return!0},e.parse=function(i,r,o){var s=i.isStrict()?this.minWidth:0,c=i.isStrict()?this.maxWidth:9,h=r.length;if(o===h)return s>0?~o:o;if(this.decimalPoint){if(r[o]!==i.symbols().decimalSeparator())return s>0?~o:o;o++}var g=o+s;if(g>h)return~o;for(var x=Math.min(o+c,h),C=0,A=o;A0&&this._minWidth===this._maxWidth&&this._signStyle===fa.NOT_NEGATIVE},e.print=function(i,r){var o=i.getValue(this._field);if(o==null)return!1;var s=this._getValue(i,o),c=i.symbols(),h=""+Math.abs(s);if(h.length>this._maxWidth)throw new Sr("Field "+this._field+" cannot be printed as the value "+s+" exceeds the maximum print width of "+this._maxWidth);if(h=c.convertNumberToI18N(h),s>=0)switch(this._signStyle){case fa.EXCEEDS_PAD:this._minWidth=c5[this._minWidth]&&r.append(c.positiveSign());break;case fa.ALWAYS:r.append(c.positiveSign());break}else switch(this._signStyle){case fa.NORMAL:case fa.EXCEEDS_PAD:case fa.ALWAYS:r.append(c.negativeSign());break;case fa.NOT_NEGATIVE:throw new Sr("Field "+this._field+" cannot be printed as the value "+s+" cannot be negative according to the SignStyle")}for(var g=0;g=0&&os)return~o;for(var A=(i.isStrict()||this._isFixedWidth()?this._maxWidth:9)+Math.max(this._subsequentWidth,0),k=0,O=o,F=0;F<2;F++){for(var L=Math.min(O+A,s);OR2e)throw new r1("number text exceeds length");k=k*10+j}if(this._subsequentWidth>0&&F===0){var K=O-o;A=Math.max(x,K-this._subsequentWidth),O=o,k=0}else break}if(h){if(k===0&&i.isStrict())return~(o-1);k!==0&&(k=-k)}else if(this._signStyle===fa.EXCEEDS_PAD&&i.isStrict()){var ee=O-o;if(g){if(ee<=this._minWidth)return~(o-1)}else if(ee>this._minWidth)return~o}return this._setValue(i,k,o,O)},e._getValue=function(i,r){return r},e._setValue=function(i,r,o,s){return i.setParsedField(this._field,r,o,s)},e.toString=function(){return this._minWidth===1&&this._maxWidth===R2e&&this._signStyle===fa.NORMAL?"Value("+this._field+")":this._minWidth===this._maxWidth&&this._signStyle===fa.NOT_NEGATIVE?"Value("+this._field+","+this._minWidth+")":"Value("+this._field+","+this._minWidth+","+this._maxWidth+","+this._signStyle+")"},n}(),Xq=function(n){Uo(e,n);function e(i,r,o,s,c){var h;if(h=n.call(this,i,r,o,fa.NOT_NEGATIVE)||this,r<1||r>10)throw new Hr("The width must be from 1 to 10 inclusive but was "+r);if(o<1||o>10)throw new Hr("The maxWidth must be from 1 to 10 inclusive but was "+o);if(oke.MAX_SAFE_INTEGER)throw new Sr("Unable to add printer-parser as the range exceeds the capacity of an int")}return h._baseValue=s,h._baseDate=c,h}var t=e.prototype;return t._getValue=function(r,o){var s=Math.abs(o),c=this._baseValue;if(this._baseDate!==null){r.temporal();var h=sl.INSTANCE;c=h.date(this._baseDate).get(this._field)}return o>=c&&o=0){var C=c5[this._minWidth],A=h%C,k=h-A;h>0?o=k+o:o=k-o,o=3||this.type>=1&&h>0)&&(r.append(this.type%2===0?":":"").appendChar(ke.intDiv(h,10)+"0").appendChar(h%10+"0"),C+=h,(this.type>=7||this.type>=5&&g>0)&&(r.append(this.type%2===0?":":"").appendChar(ke.intDiv(g,10)+"0").appendChar(g%10+"0"),C+=g)),C===0&&(r.setLength(x),r.append(this.noOffsetText))}return!0},e.parse=function(i,r,o){var s=r.length,c=this.noOffsetText.length;if(c===0){if(o===s)return i.setParsedField(ae.OFFSET_SECONDS,0,o,o)}else{if(o===s)return~o;if(i.subSequenceEquals(r,o,this.noOffsetText,0,c))return i.setParsedField(ae.OFFSET_SECONDS,0,o,o+c)}var h=r[o];if(h==="+"||h==="-"){var g=h==="-"?-1:1,x=[0,0,0,0];if(x[0]=o+1,(this._parseNumber(x,1,r,!0)||this._parseNumber(x,2,r,this.type>=3)||this._parseNumber(x,3,r,!1))===!1){var C=ke.safeZero(g*(x[1]*3600+x[2]*60+x[3]));return i.setParsedField(ae.OFFSET_SECONDS,C,o,x[0])}}return c===0?i.setParsedField(ae.OFFSET_SECONDS,0,o,o+c):~o},e._parseNumber=function(i,r,o,s){if((this.type+3)/21){if(c+1>o.length||o[c]!==":")return s;c++}if(c+2>o.length)return s;var h=o[c++],g=o[c++];if(h<"0"||h>"9"||g<"0"||g>"9")return s;var x=(h.charCodeAt(0)-48)*10+(g.charCodeAt(0)-48);return x<0||x>59?s:(i[r]=x,i[0]=c,!1)},e.toString=function(){var i=this.noOffsetText.replace("'","''");return"Offset("+Ppe[this.type]+",'"+i+"')"},n}();a1.INSTANCE_ID=new a1("Z","+HH:MM:ss");a1.PATTERNS=Ppe;var V2e=function(){function n(t,i,r){this._printerParser=t,this._padWidth=i,this._padChar=r}var e=n.prototype;return e.print=function(i,r){var o=r.length();if(this._printerParser.print(i,r)===!1)return!1;var s=r.length()-o;if(s>this._padWidth)throw new Sr("Cannot print as output of "+s+" characters exceeds pad width of "+this._padWidth);for(var c=0;cr.length)),Ia(o>=0),o===r.length)return~o;var h=o+this._padWidth;if(h>r.length){if(s)return~o;h=r.length}for(var g=o;gs||o<0)),i.subSequenceEquals(r,o,this._literal,0,this._literal.length)===!1?~o:o+this._literal.length},e.toString=function(){var i=this._literal.replace("'","''");return"'"+i+"'"},n}();var Upe=function(){function n(){}return n.getRules=function(t){throw new Sr("unsupported ZoneId:"+t)},n.getAvailableZoneIds=function(){return[]},n}(),n1=function(n){Uo(e,n),e.ofId=function(r){var o=Upe.getRules(r);return new e(r,o)};function e(i,r){var o;return o=n.call(this)||this,o._id=i,o._rules=r,o}var t=e.prototype;return t.id=function(){return this._id},t.rules=function(){return this._rules},e}(Ba);var Wst=function(){function n(t,i){this.query=t,this.description=i}var e=n.prototype;return e.print=function(i,r){var o=i.getValueQuery(this.query);return o==null?!1:(r.append(o.id()),!0)},e.parse=function(i,r,o){var s=r.length;if(o>s||o===s)return~o;var c=r.charAt(o);if(c==="+"||c==="-"){var h=i.copy(),g=a1.INSTANCE_ID.parse(h,r,o);if(g<0)return g;var x=h.getParsed(ae.OFFSET_SECONDS),C=Mo.ofTotalSeconds(x);return i.setParsedZone(C),g}else if(s>=o+2){var A=r.charAt(o+1);if(i.charEquals(c,"U")&&i.charEquals(A,"T"))return s>=o+3&&i.charEquals(r.charAt(o+2),"C")?this._parsePrefixedOffset(i,r,o,o+3):this._parsePrefixedOffset(i,r,o,o+2);if(i.charEquals(c,"G")&&s>=o+3&&i.charEquals(A,"M")&&i.charEquals(r.charAt(o+2),"T"))return this._parsePrefixedOffset(i,r,o,o+3)}if(r.substr(o,6)==="SYSTEM")return i.setParsedZone(Ba.systemDefault()),o+6;if(i.charEquals(c,"Z"))return i.setParsedZone(Mo.UTC),o+1;var k=Upe.getAvailableZoneIds();N2e.size!==k.length&&(N2e=Zst.createTreeMap(k));for(var O=s-o,F=N2e.treeMap,L=null,z=0;F!=null;){var j=r.substr(o,Math.min(F.length,O));F=F.get(j),F!=null&&F.isLeaf&&(L=j,z=F.length)}return L!=null?(i.setParsedZone(n1.ofId(L)),o+z):~o},e._parsePrefixedOffset=function(i,r,o,s){var c=r.substring(o,s).toUpperCase(),h=i.copy();if(sthis.length){var o=i.substr(0,this.length),s=this._treeMap[o];s==null&&(s=new n(r,!1),this._treeMap[o]=s),s.add(i)}},e.get=function(i){return this._treeMap[i]},n}(),N2e=new Zst([]);var IS=15,Ml=function(){function n(){this._active=this,this._parent=null,this._printerParsers=[],this._optional=!1,this._padNextWidth=0,this._padNextChar=null,this._valueParserIndex=-1}n._of=function(i,r){ut(i,"parent"),ut(r,"optional");var o=new n;return o._parent=i,o._optional=r,o};var e=n.prototype;return e.parseCaseSensitive=function(){return this._appendInternalPrinterParser(Og.SENSITIVE),this},e.parseCaseInsensitive=function(){return this._appendInternalPrinterParser(Og.INSENSITIVE),this},e.parseStrict=function(){return this._appendInternalPrinterParser(Og.STRICT),this},e.parseLenient=function(){return this._appendInternalPrinterParser(Og.LENIENT),this},e.appendValue=function(){return arguments.length===1?this._appendValue1.apply(this,arguments):arguments.length===2?this._appendValue2.apply(this,arguments):this._appendValue4.apply(this,arguments)},e._appendValue1=function(i){return ut(i),this._appendValuePrinterParser(new u5(i,1,IS,fa.NORMAL)),this},e._appendValue2=function(i,r){if(ut(i),r<1||r>IS)throw new Hr("The width must be from 1 to "+IS+" inclusive but was "+r);var o=new u5(i,r,r,fa.NOT_NEGATIVE);return this._appendValuePrinterParser(o),this},e._appendValue4=function(i,r,o,s){if(ut(i),ut(s),r===o&&s===fa.NOT_NEGATIVE)return this._appendValue2(i,o);if(r<1||r>IS)throw new Hr("The minimum width must be from 1 to "+IS+" inclusive but was "+r);if(o<1||o>IS)throw new Hr("The minimum width must be from 1 to "+IS+" inclusive but was "+o);if(o=0&&this._active._printerParsers[this._active._valueParserIndex]instanceof u5){var r=this._active._valueParserIndex,o=this._active._printerParsers[r];i.minWidth()===i.maxWidth()&&i.signStyle()===fa.NOT_NEGATIVE?(o=o.withSubsequentWidth(i.maxWidth()),this._appendInternal(i.withFixedWidth()),this._active._valueParserIndex=r):(o=o.withFixedWidth(),this._active._valueParserIndex=this._appendInternal(i)),this._active._printerParsers[r]=o}else this._active._valueParserIndex=this._appendInternal(i);return this},e.appendFraction=function(i,r,o,s){return this._appendInternal(new Kst(i,r,o,s)),this},e.appendInstant=function(i){if(i===void 0&&(i=-2),i<-2||i>9)throw new Hr("Invalid fractional digits: "+i);return this._appendInternal(new KXt(i)),this},e.appendOffsetId=function(){return this._appendInternal(a1.INSTANCE_ID),this},e.appendOffset=function(i,r){return this._appendInternalPrinterParser(new a1(r,i)),this},e.appendZoneId=function(){return this._appendInternal(new Wst(sn.zoneId(),"ZoneId()")),this},e.appendPattern=function(i){return ut(i,"pattern"),this._parsePattern(i),this},e.appendZoneText=function(){throw new Hr("Pattern using (localized) text not implemented, use js-joda-locale plugin!")},e.appendText=function(){throw new Hr("Pattern using (localized) text not implemented, use js-joda-locale plugin!")},e.appendLocalizedOffset=function(){throw new Hr("Pattern using (localized) text not implemented, use js-joda-locale plugin!")},e.appendWeekField=function(){throw new Hr("Pattern using (localized) text not implemented, use js-joda-locale plugin!")},e._parsePattern=function(i){for(var r={G:ae.ERA,y:ae.YEAR_OF_ERA,u:ae.YEAR,Q:ny.QUARTER_OF_YEAR,q:ny.QUARTER_OF_YEAR,M:ae.MONTH_OF_YEAR,L:ae.MONTH_OF_YEAR,D:ae.DAY_OF_YEAR,d:ae.DAY_OF_MONTH,F:ae.ALIGNED_DAY_OF_WEEK_IN_MONTH,E:ae.DAY_OF_WEEK,c:ae.DAY_OF_WEEK,e:ae.DAY_OF_WEEK,a:ae.AMPM_OF_DAY,H:ae.HOUR_OF_DAY,k:ae.CLOCK_HOUR_OF_DAY,K:ae.HOUR_OF_AMPM,h:ae.CLOCK_HOUR_OF_AMPM,m:ae.MINUTE_OF_HOUR,s:ae.SECOND_OF_MINUTE,S:ae.NANO_OF_SECOND,A:ae.MILLI_OF_DAY,n:ae.NANO_OF_SECOND,N:ae.NANO_OF_DAY},o=0;o="A"&&s<="Z"||s>="a"&&s<="z"){for(var c=o++;o="A"&&s<="Z"||s>="a"&&s<="z")){for(g=h,c=o++;o4)throw new Hr("Too many pattern letters: "+s);h===4?this.appendZoneText(Ea.FULL):this.appendZoneText(Ea.SHORT)}else if(s==="V"){if(h!==2)throw new Hr("Pattern letter count must be 2: "+s);this.appendZoneId()}else if(s==="Z")if(h<4)this.appendOffset("+HHMM","+0000");else if(h===4)this.appendLocalizedOffset(Ea.FULL);else if(h===5)this.appendOffset("+HH:MM:ss","Z");else throw new Hr("Too many pattern letters: "+s);else if(s==="O")if(h===1)this.appendLocalizedOffset(Ea.SHORT);else if(h===4)this.appendLocalizedOffset(Ea.FULL);else throw new Hr("Pattern letter count must be 1 or 4: "+s);else if(s==="X"){if(h>5)throw new Hr("Too many pattern letters: "+s);this.appendOffset(a1.PATTERNS[h+(h===1?0:1)],"Z")}else if(s==="x"){if(h>5)throw new Hr("Too many pattern letters: "+s);var C=h===1?"+00":h%2===0?"+0000":"+00:00";this.appendOffset(a1.PATTERNS[h+(h===1?0:1)],C)}else if(s==="W"){if(h>1)throw new Hr("Too many pattern letters: "+s);this.appendWeekField("W",h)}else if(s==="w"){if(h>2)throw new Hr("Too many pattern letters: "+s);this.appendWeekField("w",h)}else if(s==="Y")this.appendWeekField("Y",h);else throw new Hr("Unknown pattern letter: "+s);o--}else if(s==="'"){for(var A=o++;o=i.length)throw new Hr("Pattern ends with an incomplete string literal: "+i);var k=i.substring(A+1,o);k.length===0?this.appendLiteral("'"):this.appendLiteral(k.replace("''","'"))}else if(s==="[")this.optionalStart();else if(s==="]"){if(this._active._parent===null)throw new Hr("Pattern invalid as it contains ] without previous [");this.optionalEnd()}else{if(s==="{"||s==="}"||s==="#")throw new Hr("Pattern includes reserved character: '"+s+"'");this.appendLiteral(s)}}},e._parseField=function(i,r,o){switch(i){case"u":case"y":r===2?this.appendValueReduced(o,2,2,Xq.BASE_DATE):r<4?this.appendValue(o,r,IS,fa.NORMAL):this.appendValue(o,r,IS,fa.EXCEEDS_PAD);break;case"M":case"Q":switch(r){case 1:this.appendValue(o);break;case 2:this.appendValue(o,2);break;case 3:this.appendText(o,Ea.SHORT);break;case 4:this.appendText(o,Ea.FULL);break;case 5:this.appendText(o,Ea.NARROW);break;default:throw new Hr("Too many pattern letters: "+i)}break;case"L":case"q":switch(r){case 1:this.appendValue(o);break;case 2:this.appendValue(o,2);break;case 3:this.appendText(o,Ea.SHORT_STANDALONE);break;case 4:this.appendText(o,Ea.FULL_STANDALONE);break;case 5:this.appendText(o,Ea.NARROW_STANDALONE);break;default:throw new Hr("Too many pattern letters: "+i)}break;case"e":switch(r){case 1:case 2:this.appendWeekField("e",r);break;case 3:this.appendText(o,Ea.SHORT);break;case 4:this.appendText(o,Ea.FULL);break;case 5:this.appendText(o,Ea.NARROW);break;default:throw new Hr("Too many pattern letters: "+i)}break;case"c":switch(r){case 1:this.appendWeekField("c",r);break;case 2:throw new Hr("Invalid number of pattern letters: "+i);case 3:this.appendText(o,Ea.SHORT_STANDALONE);break;case 4:this.appendText(o,Ea.FULL_STANDALONE);break;case 5:this.appendText(o,Ea.NARROW_STANDALONE);break;default:throw new Hr("Too many pattern letters: "+i)}break;case"a":if(r===1)this.appendText(o,Ea.SHORT);else throw new Hr("Too many pattern letters: "+i);break;case"E":case"G":switch(r){case 1:case 2:case 3:this.appendText(o,Ea.SHORT);break;case 4:this.appendText(o,Ea.FULL);break;case 5:this.appendText(o,Ea.NARROW);break;default:throw new Hr("Too many pattern letters: "+i)}break;case"S":this.appendFraction(ae.NANO_OF_SECOND,r,r,!1);break;case"F":if(r===1)this.appendValue(o);else throw new Hr("Too many pattern letters: "+i);break;case"d":case"h":case"H":case"k":case"K":case"m":case"s":if(r===1)this.appendValue(o);else if(r===2)this.appendValue(o,r);else throw new Hr("Too many pattern letters: "+i);break;case"D":if(r===1)this.appendValue(o);else if(r<=3)this.appendValue(o,r);else throw new Hr("Too many pattern letters: "+i);break;default:r===1?this.appendValue(o):this.appendValue(o,r);break}},e.padNext=function(){return arguments.length===1?this._padNext1.apply(this,arguments):this._padNext2.apply(this,arguments)},e._padNext1=function(i){return this._padNext2(i," ")},e._padNext2=function(i,r){if(i<1)throw new Hr("The pad width must be at least one but was "+i);return this._active._padNextWidth=i,this._active._padNextChar=r,this._active._valueParserIndex=-1,this},e.optionalStart=function(){return this._active._valueParserIndex=-1,this._active=n._of(this._active,!0),this},e.optionalEnd=function(){if(this._active._parent==null)throw new Jq("Cannot call optionalEnd() as there was no previous call to optionalStart()");if(this._active._printerParsers.length>0){var i=new z2e(this._active._printerParsers,this._active._optional);this._active=this._active._parent,this._appendInternal(i)}else this._active=this._active._parent;return this},e._appendInternal=function(i){return Ia(i!=null),this._active._padNextWidth>0&&(i!=null&&(i=new V2e(i,this._active._padNextWidth,this._active._padNextChar)),this._active._padNextWidth=0,this._active._padNextChar=0),this._active._printerParsers.push(i),this._active._valueParserIndex=-1,this._active._printerParsers.length-1},e.appendLiteral=function(i){return Ia(i!=null),i.length>0&&(i.length===1?this._appendInternalPrinterParser(new $st(i.charAt(0))):this._appendInternalPrinterParser(new U2e(i))),this},e._appendInternalPrinterParser=function(i){return Ia(i!=null),this._active._padNextWidth>0&&(i!=null&&(i=new V2e(i,this._active._padNextWidth,this._active._padNextChar)),this._active._padNextWidth=0,this._active._padNextChar=0),this._active._printerParsers.push(i),this._active._valueParserIndex=-1,this._active._printerParsers.length-1},e.append=function(i){return ut(i,"formatter"),this._appendInternal(i._toPrinterParser(!1)),this},e.toFormatter=function(i){for(i===void 0&&(i=as.SMART);this._active._parent!=null;)this.optionalEnd();var r=new z2e(this._printerParsers,!1);return new na(r,null,Bpe.STANDARD,i,null,null,null)},n}(),s5=146097*25*86400,Zq=(146097*5-(30*365+7))*86400,KXt=function(){function n(t){this.fractionalDigits=t}var e=n.prototype;return e.print=function(i,r){var o=i.getValue(ae.INSTANT_SECONDS),s=0;if(i.temporal().isSupported(ae.NANO_OF_SECOND)&&(s=i.temporal().getLong(ae.NANO_OF_SECOND)),o==null)return!1;var c=o,h=ae.NANO_OF_SECOND.checkValidIntValue(s);if(c>=-Zq){var g=c-s5+Zq,x=ke.floorDiv(g,s5)+1,C=ke.floorMod(g,s5),A=ra.ofEpochSecond(C-Zq,0,Mo.UTC);x>0&&r.append("+").append(x),r.append(A),A.second()===0&&r.append(":00")}else{var k=c+Zq,O=ke.intDiv(k,s5),F=ke.intMod(k,s5),L=ra.ofEpochSecond(F-Zq,0,Mo.UTC),z=r.length();r.append(L),L.second()===0&&r.append(":00"),O<0&&(L.year()===-1e4?r.replace(z,z+2,""+(O-1)):F===0?r.insert(z,O):r.insert(z+1,Math.abs(O)))}if(this.fractionalDigits===-2)h!==0&&(r.append("."),ke.intMod(h,1e6)===0?r.append((""+(ke.intDiv(h,1e6)+1e3)).substring(1)):ke.intMod(h,1e3)===0?r.append((""+(ke.intDiv(h,1e3)+1e6)).substring(1)):r.append((""+(h+1e9)).substring(1)));else if(this.fractionalDigits>0||this.fractionalDigits===-1&&h>0){r.append(".");for(var j=1e8,K=0;this.fractionalDigits===-1&&h>0||K64?o=i.substring(0,64)+"...":o=i,new ry("Text '"+o+"' could not be parsed: "+r.message,i,0,r)},e._parseToBuilder=function(i,r){var o=r??new BXt(0),s=this._parseUnresolved0(i,o);if(s==null||o.getErrorIndex()>=0||r==null&&o.getIndex()64?c=i.substr(0,64).toString()+"...":c=i,o.getErrorIndex()>=0?new ry("Text '"+c+"' could not be parsed at index "+o.getErrorIndex(),i,o.getErrorIndex()):new ry("Text '"+c+"' could not be parsed, unparsed text found at index "+o.getIndex(),i,o.getIndex())}return s.toBuilder()},e.parseUnresolved=function(i,r){return this._parseUnresolved0(i,r)},e._parseUnresolved0=function(i,r){Ia(i!=null,"text",DS),Ia(r!=null,"position",DS);var o=new Yst(this),s=r.getIndex();return s=this._printerParser.parse(o,i,s),s<0?(r.setErrorIndex(~s),null):(r.setIndex(s),o.toParsed())},e._toPrinterParser=function(i){return this._printerParser.withOptional(i)},e.toString=function(){var i=this._printerParser.toString();return i.indexOf("[")===0?i:i.substring(1,i.length-1)},n}();function ZXt(){na.ISO_LOCAL_DATE=new Ml().appendValue(ae.YEAR,4,10,fa.EXCEEDS_PAD).appendLiteral("-").appendValue(ae.MONTH_OF_YEAR,2).appendLiteral("-").appendValue(ae.DAY_OF_MONTH,2).toFormatter(as.STRICT).withChronology(sl.INSTANCE),na.ISO_LOCAL_TIME=new Ml().appendValue(ae.HOUR_OF_DAY,2).appendLiteral(":").appendValue(ae.MINUTE_OF_HOUR,2).optionalStart().appendLiteral(":").appendValue(ae.SECOND_OF_MINUTE,2).optionalStart().appendFraction(ae.NANO_OF_SECOND,0,9,!0).toFormatter(as.STRICT),na.ISO_LOCAL_DATE_TIME=new Ml().parseCaseInsensitive().append(na.ISO_LOCAL_DATE).appendLiteral("T").append(na.ISO_LOCAL_TIME).toFormatter(as.STRICT).withChronology(sl.INSTANCE),na.ISO_INSTANT=new Ml().parseCaseInsensitive().appendInstant().toFormatter(as.STRICT),na.ISO_OFFSET_DATE_TIME=new Ml().parseCaseInsensitive().append(na.ISO_LOCAL_DATE_TIME).appendOffsetId().toFormatter(as.STRICT).withChronology(sl.INSTANCE),na.ISO_ZONED_DATE_TIME=new Ml().append(na.ISO_OFFSET_DATE_TIME).optionalStart().appendLiteral("[").parseCaseSensitive().appendZoneId().appendLiteral("]").toFormatter(as.STRICT).withChronology(sl.INSTANCE),na.BASIC_ISO_DATE=new Ml().appendValue(ae.YEAR,4,10,fa.EXCEEDS_PAD).appendValue(ae.MONTH_OF_YEAR,2).appendValue(ae.DAY_OF_MONTH,2).toFormatter(as.STRICT).withChronology(sl.INSTANCE),na.ISO_OFFSET_DATE=new Ml().parseCaseInsensitive().append(na.ISO_LOCAL_DATE).appendOffsetId().toFormatter(as.STRICT).withChronology(sl.INSTANCE),na.ISO_OFFSET_TIME=new Ml().parseCaseInsensitive().append(na.ISO_LOCAL_TIME).appendOffsetId().toFormatter(as.STRICT).withChronology(sl.INSTANCE),na.ISO_ORDINAL_DATE=new Ml().appendValue(ae.YEAR,4,10,fa.EXCEEDS_PAD).appendLiteral("-").appendValue(ae.DAY_OF_YEAR).toFormatter(as.STRICT),na.ISO_WEEK_DATE=new Ml().appendValue(ae.YEAR,4,10,fa.EXCEEDS_PAD).appendLiteral("-W").appendValue(ae.ALIGNED_WEEK_OF_YEAR).appendLiteral("-").appendValue(ae.DAY_OF_WEEK).toFormatter(as.STRICT),na.PARSED_EXCESS_DAYS=Xu("PARSED_EXCESS_DAYS",function(n){return n instanceof Lpe?n.excessDays:AS.ZERO}),na.PARSED_LEAP_SECOND=Xu("PARSED_LEAP_SECOND",function(n){return n instanceof Lpe?n.leapSecond:!1})}var zpe=function(n){Uo(e,n),e.now=function(r){return arguments.length===0?e.now0():arguments.length===1&&r instanceof Ba?e.nowZoneId(r):e.nowClock(r)},e.now0=function(){return this.nowClock(vl.systemDefaultZone())},e.nowZoneId=function(r){return ut(r,"zone"),this.nowClock(vl.system(r))},e.nowClock=function(r){ut(r,"clock");var o=Pr.now(r);return e.of(o.month(),o.dayOfMonth())},e.of=function(r,o){return arguments.length===2&&r instanceof So?e.ofMonthNumber(r,o):e.ofNumberNumber(r,o)},e.ofMonthNumber=function(r,o){if(ut(r,"month"),ae.DAY_OF_MONTH.checkValidValue(o),o>r.maxLength())throw new Sr("Illegal value for DayOfMonth field, value "+o+" is not valid for month "+r.toString());return new e(r.value(),o)},e.ofNumberNumber=function(r,o){return ut(r,"month"),ut(o,"dayOfMonth"),e.of(So.of(r),o)},e.from=function(r){if(ut(r,"temporal"),Nr(r,OS,"temporal"),r instanceof e)return r;try{return e.of(r.get(ae.MONTH_OF_YEAR),r.get(ae.DAY_OF_MONTH))}catch{throw new Sr("Unable to obtain MonthDay from TemporalAccessor: "+r+", type "+(r&&r.constructor!=null?r.constructor.name:""))}},e.parse=function(r,o){return arguments.length===1?e.parseString(r):e.parseStringFormatter(r,o)},e.parseString=function(r){return e.parseStringFormatter(r,Xst)},e.parseStringFormatter=function(r,o){return ut(r,"text"),ut(o,"formatter"),Nr(o,na,"formatter"),o.parse(r,e.FROM)};function e(i,r){var o;return o=n.call(this)||this,o._month=ke.safeToInt(i),o._day=ke.safeToInt(r),o}var t=e.prototype;return t.monthValue=function(){return this._month},t.month=function(){return So.of(this._month)},t.dayOfMonth=function(){return this._day},t.isSupported=function(r){return r instanceof ae?r===ae.MONTH_OF_YEAR||r===ae.DAY_OF_MONTH:r!=null&&r.isSupportedBy(this)},t.range=function(r){return r===ae.MONTH_OF_YEAR?r.range():r===ae.DAY_OF_MONTH?$o.of(1,this.month().minLength(),this.month().maxLength()):n.prototype.range.call(this,r)},t.get=function(r){return this.range(r).checkValidIntValue(this.getLong(r),r)},t.getLong=function(r){if(ut(r,"field"),r instanceof ae){switch(r){case ae.DAY_OF_MONTH:return this._day;case ae.MONTH_OF_YEAR:return this._month}throw new Ls("Unsupported field: "+r)}return r.getFrom(this)},t.isValidYear=function(r){return!(this._day===29&&this._month===2&&sy.isLeap(r)===!1)},t.withMonth=function(r){return this.with(So.of(r))},t.with=function(r){if(ut(r,"month"),r.value()===this._month)return this;var o=Math.min(this._day,r.maxLength());return new e(r.value(),o)},t.withDayOfMonth=function(r){return r===this._day?this:e.of(this._month,r)},t.query=function(r){return ut(r,"query"),Nr(r,i$,"query"),r===sn.chronology()?sl.INSTANCE:n.prototype.query.call(this,r)},t.adjustInto=function(r){return ut(r,"temporal"),r=r.with(ae.MONTH_OF_YEAR,this._month),r.with(ae.DAY_OF_MONTH,Math.min(r.range(ae.DAY_OF_MONTH).maximum(),this._day))},t.atYear=function(r){return Pr.of(r,this._month,this.isValidYear(r)?this._day:28)},t.compareTo=function(r){ut(r,"other"),Nr(r,e,"other");var o=this._month-r.monthValue();return o===0&&(o=this._day-r.dayOfMonth()),o},t.isAfter=function(r){return ut(r,"other"),Nr(r,e,"other"),this.compareTo(r)>0},t.isBefore=function(r){return ut(r,"other"),Nr(r,e,"other"),this.compareTo(r)<0},t.equals=function(r){if(this===r)return!0;if(r instanceof e){var o=r;return this.monthValue()===o.monthValue()&&this.dayOfMonth()===o.dayOfMonth()}return!1},t.toString=function(){return"--"+(this._month<10?"0":"")+this._month+(this._day<10?"-0":"-")+this._day},t.toJSON=function(){return this.toString()},t.format=function(r){return ut(r,"formatter"),Nr(r,na,"formatter"),r.format(this)},e}(OS),Xst;function QXt(){Xst=new Ml().appendLiteral("--").appendValue(ae.MONTH_OF_YEAR,2).appendLiteral("-").appendValue(ae.DAY_OF_MONTH,2).toFormatter(),zpe.FROM=Xu("MonthDay.FROM",function(n){return zpe.from(n)})}var t$=function(n){Uo(e,n),e.now=function(r){return arguments.length===0?e.now0():arguments.length===1&&r instanceof Ba?e.nowZoneId(r):e.nowClock(r)},e.now0=function(){return e.nowClock(vl.systemDefaultZone())},e.nowZoneId=function(r){return e.nowClock(vl.system(r))},e.nowClock=function(r){var o=Pr.now(r);return e.of(o.year(),o.month())},e.of=function(r,o){return arguments.length===2&&o instanceof So?e.ofNumberMonth(r,o):e.ofNumberNumber(r,o)},e.ofNumberMonth=function(r,o){return ut(o,"month"),Nr(o,So,"month"),e.ofNumberNumber(r,o.value())},e.ofNumberNumber=function(r,o){return ut(r,"year"),ut(o,"month"),ae.YEAR.checkValidValue(r),ae.MONTH_OF_YEAR.checkValidValue(o),new e(r,o)},e.from=function(r){if(ut(r,"temporal"),r instanceof e)return r;try{return e.of(r.get(ae.YEAR),r.get(ae.MONTH_OF_YEAR))}catch{throw new Sr("Unable to obtain YearMonth from TemporalAccessor: "+r+", type "+(r&&r.constructor!=null?r.constructor.name:""))}},e.parse=function(r,o){return arguments.length===1?e.parseString(r):e.parseStringFormatter(r,o)},e.parseString=function(r){return e.parseStringFormatter(r,j2e)},e.parseStringFormatter=function(r,o){return ut(o,"formatter"),o.parse(r,e.FROM)};function e(i,r){var o;return o=n.call(this)||this,o._year=ke.safeToInt(i),o._month=ke.safeToInt(r),o}var t=e.prototype;return t.isSupported=function(r){return arguments.length===1&&r instanceof o1?this.isSupportedField(r):this.isSupportedUnit(r)},t.isSupportedField=function(r){return r instanceof ae?r===ae.YEAR||r===ae.MONTH_OF_YEAR||r===ae.PROLEPTIC_MONTH||r===ae.YEAR_OF_ERA||r===ae.ERA:r!=null&&r.isSupportedBy(this)},t.isSupportedUnit=function(r){return r instanceof lt?r===lt.MONTHS||r===lt.YEARS||r===lt.DECADES||r===lt.CENTURIES||r===lt.MILLENNIA||r===lt.ERAS:r!=null&&r.isSupportedBy(this)},t.range=function(r){return r===ae.YEAR_OF_ERA?this.year()<=0?$o.of(1,sy.MAX_VALUE+1):$o.of(1,sy.MAX_VALUE):n.prototype.range.call(this,r)},t.get=function(r){return ut(r,"field"),Nr(r,o1,"field"),this.range(r).checkValidIntValue(this.getLong(r),r)},t.getLong=function(r){if(ut(r,"field"),Nr(r,o1,"field"),r instanceof ae){switch(r){case ae.MONTH_OF_YEAR:return this._month;case ae.PROLEPTIC_MONTH:return this._getProlepticMonth();case ae.YEAR_OF_ERA:return this._year<1?1-this._year:this._year;case ae.YEAR:return this._year;case ae.ERA:return this._year<1?0:1}throw new Ls("Unsupported field: "+r)}return r.getFrom(this)},t._getProlepticMonth=function(){return ke.safeAdd(ke.safeMultiply(this._year,12),this._month-1)},t.year=function(){return this._year},t.monthValue=function(){return this._month},t.month=function(){return So.of(this._month)},t.isLeapYear=function(){return sl.isLeapYear(this._year)},t.isValidDay=function(r){return r>=1&&r<=this.lengthOfMonth()},t.lengthOfMonth=function(){return this.month().length(this.isLeapYear())},t.lengthOfYear=function(){return this.isLeapYear()?366:365},t.with=function(r,o){return arguments.length===1?this.withAdjuster(r):this.withFieldValue(r,o)},t.withAdjuster=function(r){return ut(r,"adjuster"),r.adjustInto(this)},t.withFieldValue=function(r,o){if(ut(r,"field"),Nr(r,o1,"field"),r instanceof ae){var s=r;switch(s.checkValidValue(o),s){case ae.MONTH_OF_YEAR:return this.withMonth(o);case ae.PROLEPTIC_MONTH:return this.plusMonths(o-this.getLong(ae.PROLEPTIC_MONTH));case ae.YEAR_OF_ERA:return this.withYear(this._year<1?1-o:o);case ae.YEAR:return this.withYear(o);case ae.ERA:return this.getLong(ae.ERA)===o?this:this.withYear(1-this._year)}throw new Ls("Unsupported field: "+r)}return r.adjustInto(this,o)},t.withYear=function(r){return ae.YEAR.checkValidValue(r),new e(r,this._month)},t.withMonth=function(r){return ae.MONTH_OF_YEAR.checkValidValue(r),new e(this._year,r)},t.plusAmount=function(r){return ut(r,"amount"),Nr(r,MS,"amount"),r.addTo(this)},t.plusAmountUnit=function(r,o){if(ut(o,"unit"),Nr(o,l1,"unit"),o instanceof lt){switch(o){case lt.MONTHS:return this.plusMonths(r);case lt.YEARS:return this.plusYears(r);case lt.DECADES:return this.plusYears(ke.safeMultiply(r,10));case lt.CENTURIES:return this.plusYears(ke.safeMultiply(r,100));case lt.MILLENNIA:return this.plusYears(ke.safeMultiply(r,1e3));case lt.ERAS:return this.with(ae.ERA,ke.safeAdd(this.getLong(ae.ERA),r))}throw new Ls("Unsupported unit: "+o)}return o.addTo(this,r)},t.plusYears=function(r){if(r===0)return this;var o=ae.YEAR.checkValidIntValue(this._year+r);return this.withYear(o)},t.plusMonths=function(r){if(r===0)return this;var o=this._year*12+(this._month-1),s=o+r,c=ae.YEAR.checkValidIntValue(ke.floorDiv(s,12)),h=ke.floorMod(s,12)+1;return new e(c,h)},t.minusAmount=function(r){return ut(r,"amount"),r.subtractFrom(this)},t.minusAmountUnit=function(r,o){return r===ke.MIN_SAFE_INTEGER?this.plusAmountUnit(ke.MAX_SAFE_INTEGER,o).plusAmountUnit(1,o):this.plusAmountUnit(-r,o)},t.minusYears=function(r){return r===ke.MIN_SAFE_INTEGER?this.plusYears(ke.MIN_SAFE_INTEGER).plusYears(1):this.plusYears(-r)},t.minusMonths=function(r){return r===ke.MIN_SAFE_INTEGER?this.plusMonths(Math.MAX_SAFE_INTEGER).plusMonths(1):this.plusMonths(-r)},t.query=function(r){return ut(r,"query"),Nr(r,i$,"query"),r===sn.chronology()?sl.INSTANCE:r===sn.precision()?lt.MONTHS:r===sn.localDate()||r===sn.localTime()||r===sn.zone()||r===sn.zoneId()||r===sn.offset()?null:n.prototype.query.call(this,r)},t.adjustInto=function(r){return ut(r,"temporal"),Nr(r,kS,"temporal"),r.with(ae.PROLEPTIC_MONTH,this._getProlepticMonth())},t.until=function(r,o){ut(r,"endExclusive"),ut(o,"unit"),Nr(r,kS,"endExclusive"),Nr(o,l1,"unit");var s=e.from(r);if(o instanceof lt){var c=s._getProlepticMonth()-this._getProlepticMonth();switch(o){case lt.MONTHS:return c;case lt.YEARS:return c/12;case lt.DECADES:return c/120;case lt.CENTURIES:return c/1200;case lt.MILLENNIA:return c/12e3;case lt.ERAS:return s.getLong(ae.ERA)-this.getLong(ae.ERA)}throw new Ls("Unsupported unit: "+o)}return o.between(this,s)},t.atDay=function(r){return Pr.of(this._year,this._month,r)},t.atEndOfMonth=function(){return Pr.of(this._year,this._month,this.lengthOfMonth())},t.compareTo=function(r){ut(r,"other"),Nr(r,e,"other");var o=this._year-r.year();return o===0&&(o=this._month-r.monthValue()),o},t.isAfter=function(r){return this.compareTo(r)>0},t.isBefore=function(r){return this.compareTo(r)<0},t.equals=function(r){if(this===r)return!0;if(r instanceof e){var o=r;return this.year()===o.year()&&this.monthValue()===o.monthValue()}return!1},t.toString=function(){return j2e.format(this)},t.toJSON=function(){return this.toString()},t.format=function(r){return ut(r,"formatter"),r.format(this)},e}(kS),j2e;function XXt(){j2e=new Ml().appendValue(ae.YEAR,4,10,fa.EXCEEDS_PAD).appendLiteral("-").appendValue(ae.MONTH_OF_YEAR,2).toFormatter(),t$.FROM=Xu("YearMonth.FROM",function(n){return t$.from(n)})}var sy=function(n){Uo(e,n);function e(i){var r;return r=n.call(this)||this,r._year=ke.safeToInt(i),r}var t=e.prototype;return t.value=function(){return this._year},e.now=function(r){return r===void 0&&(r=void 0),r===void 0?e.now0():r instanceof Ba?e.nowZoneId(r):e.nowClock(r)},e.now0=function(){return e.nowClock(vl.systemDefaultZone())},e.nowZoneId=function(r){return ut(r,"zone"),Nr(r,Ba,"zone"),e.nowClock(vl.system(r))},e.nowClock=function(r){ut(r,"clock"),Nr(r,vl,"clock");var o=Pr.now(r);return e.of(o.year())},e.of=function(r){return ut(r,"isoYear"),ae.YEAR.checkValidValue(r),new e(r)},e.from=function(r){if(ut(r,"temporal"),Nr(r,OS,"temporal"),r instanceof e)return r;try{return e.of(r.get(ae.YEAR))}catch{throw new Sr("Unable to obtain Year from TemporalAccessor: "+r+", type "+(r&&r.constructor!=null?r.constructor.name:""))}},e.parse=function(r,o){return arguments.length<=1?e.parseText(r):e.parseTextFormatter(r,o)},e.parseText=function(r){return ut(r,"text"),e.parse(r,H2e)},e.parseTextFormatter=function(r,o){return o===void 0&&(o=H2e),ut(r,"text"),ut(o,"formatter"),Nr(o,na,"formatter"),o.parse(r,e.FROM)},e.isLeap=function(r){return ke.intMod(r,4)===0&&(ke.intMod(r,100)!==0||ke.intMod(r,400)===0)},t.isSupported=function(r){return arguments.length===1&&r instanceof o1?this.isSupportedField(r):this.isSupportedUnit(r)},t.isSupportedField=function(r){return r instanceof ae?r===ae.YEAR||r===ae.YEAR_OF_ERA||r===ae.ERA:r!=null&&r.isSupportedBy(this)},t.isSupportedUnit=function(r){return r instanceof lt?r===lt.YEARS||r===lt.DECADES||r===lt.CENTURIES||r===lt.MILLENNIA||r===lt.ERAS:r!=null&&r.isSupportedBy(this)},t.range=function(r){if(this.isSupported(r))return r.range();if(r instanceof ae)throw new Ls("Unsupported field: "+r);return n.prototype.range.call(this,r)},t.get=function(r){return this.range(r).checkValidIntValue(this.getLong(r),r)},t.getLong=function(r){if(ut(r,"field"),r instanceof ae){switch(r){case ae.YEAR_OF_ERA:return this._year<1?1-this._year:this._year;case ae.YEAR:return this._year;case ae.ERA:return this._year<1?0:1}throw new Ls("Unsupported field: "+r)}return r.getFrom(this)},t.isLeap=function(){return e.isLeap(this._year)},t.withAdjuster=function(r){return ut(r,"adjuster"),r.adjustInto(this)},t.withFieldValue=function(r,o){if(ut(r,"field"),Nr(r,o1,"field"),r instanceof ae){switch(r.checkValidValue(o),r){case ae.YEAR_OF_ERA:return e.of(this._year<1?1-o:o);case ae.YEAR:return e.of(o);case ae.ERA:return this.getLong(ae.ERA)===o?this:e.of(1-this._year)}throw new Ls("Unsupported field: "+r)}return r.adjustInto(this,o)},t.plusAmount=function(r){return ut(r,"amount"),Nr(r,MS,"amount"),r.addTo(this)},t.plusAmountUnit=function(r,o){if(ut(r,"amountToAdd"),ut(o,"unit"),Nr(o,l1,"unit"),o instanceof lt){switch(o){case lt.YEARS:return this.plusYears(r);case lt.DECADES:return this.plusYears(ke.safeMultiply(r,10));case lt.CENTURIES:return this.plusYears(ke.safeMultiply(r,100));case lt.MILLENNIA:return this.plusYears(ke.safeMultiply(r,1e3));case lt.ERAS:return this.with(ae.ERA,ke.safeAdd(this.getLong(ae.ERA),r))}throw new Ls("Unsupported unit: "+o)}return o.addTo(this,r)},t.plusYears=function(r){return r===0?this:e.of(ae.YEAR.checkValidIntValue(ke.safeAdd(this._year,r)))},t.minusAmount=function(r){return ut(r,"amount"),Nr(r,MS,"amount"),r.subtractFrom(this)},t.minusAmountUnit=function(r,o){return ut(r,"amountToSubtract"),ut(o,"unit"),Nr(o,l1,"unit"),r===ke.MIN_SAFE_INTEGER?this.plus(ke.MAX_SAFE_INTEGER,o).plus(1,o):this.plus(-r,o)},t.minusYears=function(r){return r===ke.MIN_SAFE_INTEGER?this.plusYears(ke.MAX_SAFE_INTEGER).plusYears(1):this.plusYears(-r)},t.adjustInto=function(r){return ut(r,"temporal"),r.with(ae.YEAR,this._year)},t.isValidMonthDay=function(r){return r!=null&&r.isValidYear(this._year)},t.length=function(){return this.isLeap()?366:365},t.atDay=function(r){return Pr.ofYearDay(this._year,r)},t.atMonth=function(r){return arguments.length===1&&r instanceof So?this.atMonthMonth(r):this.atMonthNumber(r)},t.atMonthMonth=function(r){return ut(r,"month"),Nr(r,So,"month"),t$.of(this._year,r)},t.atMonthNumber=function(r){return ut(r,"month"),t$.of(this._year,r)},t.atMonthDay=function(r){return ut(r,"monthDay"),Nr(r,zpe,"monthDay"),r.atYear(this._year)},t.query=function(r){return ut(r,"query()"),Nr(r,i$,"query()"),r===sn.chronology()?sl.INSTANCE:r===sn.precision()?lt.YEARS:r===sn.localDate()||r===sn.localTime()||r===sn.zone()||r===sn.zoneId()||r===sn.offset()?null:n.prototype.query.call(this,r)},t.compareTo=function(r){return ut(r,"other"),Nr(r,e,"other"),this._year-r._year},t.isAfter=function(r){return ut(r,"other"),Nr(r,e,"other"),this._year>r._year},t.isBefore=function(r){return ut(r,"other"),Nr(r,e,"other"),this._year=0){var o=r.with(ae.DAY_OF_MONTH,1),s=o.get(ae.DAY_OF_WEEK),c=ke.intMod(this._dowValue-s+7,7);return c+=(this._ordinal-1)*7,o.plus(c,lt.DAYS)}else{var h=r.with(ae.DAY_OF_MONTH,r.range(ae.DAY_OF_MONTH).maximum()),g=h.get(ae.DAY_OF_WEEK),x=this._dowValue-g;return x=x===0?0:x>0?x-7:x,x-=(-this._ordinal-1)*7,h.plus(x,lt.DAYS)}},e}(n$),Rpe=function(n){Uo(e,n);function e(i,r){var o;return o=n.call(this)||this,ut(r,"dayOfWeek"),o._relative=i,o._dowValue=r.value(),o}var t=e.prototype;return t.adjustInto=function(r){var o=r.get(ae.DAY_OF_WEEK);if(this._relative<2&&o===this._dowValue)return r;if(this._relative&1){var c=this._dowValue-o;return r.minus(c>=0?7-c:-c,lt.DAYS)}else{var s=o-this._dowValue;return r.plus(s>=0?7-s:-s,lt.DAYS)}},e}(n$),sl=function(n){Uo(e,n);function e(){return n.apply(this,arguments)||this}e.isLeapYear=function(r){return(r&3)===0&&(r%100!==0||r%400===0)};var t=e.prototype;return t._updateResolveMap=function(r,o,s){ut(r,"fieldValues"),ut(o,"field");var c=r.get(o);if(c!=null&&c!==s)throw new Sr("Invalid state, field: "+o+" "+c+" conflicts with "+o+" "+s);r.put(o,s)},t.resolveDate=function(r,o){if(r.containsKey(ae.EPOCH_DAY))return Pr.ofEpochDay(r.remove(ae.EPOCH_DAY));var s=r.remove(ae.PROLEPTIC_MONTH);s!=null&&(o!==as.LENIENT&&ae.PROLEPTIC_MONTH.checkValidValue(s),this._updateResolveMap(r,ae.MONTH_OF_YEAR,ke.floorMod(s,12)+1),this._updateResolveMap(r,ae.YEAR,ke.floorDiv(s,12)));var c=r.remove(ae.YEAR_OF_ERA);if(c!=null){o!==as.LENIENT&&ae.YEAR_OF_ERA.checkValidValue(c);var h=r.remove(ae.ERA);if(h==null){var g=r.get(ae.YEAR);o===as.STRICT?g!=null?this._updateResolveMap(r,ae.YEAR,g>0?c:ke.safeSubtract(1,c)):r.put(ae.YEAR_OF_ERA,c):this._updateResolveMap(r,ae.YEAR,g==null||g>0?c:ke.safeSubtract(1,c))}else if(h===1)this._updateResolveMap(r,ae.YEAR,c);else if(h===0)this._updateResolveMap(r,ae.YEAR,ke.safeSubtract(1,c));else throw new Sr("Invalid value for era: "+h)}else r.containsKey(ae.ERA)&&ae.ERA.checkValidValue(r.get(ae.ERA));if(r.containsKey(ae.YEAR)){if(r.containsKey(ae.MONTH_OF_YEAR)&&r.containsKey(ae.DAY_OF_MONTH)){var x=ae.YEAR.checkValidIntValue(r.remove(ae.YEAR)),C=r.remove(ae.MONTH_OF_YEAR),A=r.remove(ae.DAY_OF_MONTH);if(o===as.LENIENT){var k=C-1,O=A-1;return Pr.of(x,1,1).plusMonths(k).plusDays(O)}else return o===as.SMART&&(ae.DAY_OF_MONTH.checkValidValue(A),C===4||C===6||C===9||C===11?A=Math.min(A,30):C===2&&(A=Math.min(A,So.FEBRUARY.length(sy.isLeap(x))))),Pr.of(x,C,A)}if(r.containsKey(ae.DAY_OF_YEAR)){var F=ae.YEAR.checkValidIntValue(r.remove(ae.YEAR));if(o===as.LENIENT){var L=ke.safeSubtract(r.remove(ae.DAY_OF_YEAR),1);return Pr.ofYearDay(F,1).plusDays(L)}var z=ae.DAY_OF_YEAR.checkValidIntValue(r.remove(ae.DAY_OF_YEAR));return Pr.ofYearDay(F,z)}if(r.containsKey(ae.ALIGNED_WEEK_OF_YEAR)){if(r.containsKey(ae.ALIGNED_DAY_OF_WEEK_IN_YEAR)){var j=ae.YEAR.checkValidIntValue(r.remove(ae.YEAR));if(o===as.LENIENT){var K=ke.safeSubtract(r.remove(ae.ALIGNED_WEEK_OF_YEAR),1),ee=ke.safeSubtract(r.remove(ae.ALIGNED_DAY_OF_WEEK_IN_YEAR),1);return Pr.of(j,1,1).plusWeeks(K).plusDays(ee)}var ne=ae.ALIGNED_WEEK_OF_YEAR.checkValidIntValue(r.remove(ae.ALIGNED_WEEK_OF_YEAR)),X=ae.ALIGNED_DAY_OF_WEEK_IN_YEAR.checkValidIntValue(r.remove(ae.ALIGNED_DAY_OF_WEEK_IN_YEAR)),q=Pr.of(j,1,1).plusDays((ne-1)*7+(X-1));if(o===as.STRICT&&q.get(ae.YEAR)!==j)throw new Sr("Strict mode rejected date parsed to a different year");return q}if(r.containsKey(ae.DAY_OF_WEEK)){var fe=ae.YEAR.checkValidIntValue(r.remove(ae.YEAR));if(o===as.LENIENT){var Se=ke.safeSubtract(r.remove(ae.ALIGNED_WEEK_OF_YEAR),1),pe=ke.safeSubtract(r.remove(ae.DAY_OF_WEEK),1);return Pr.of(fe,1,1).plusWeeks(Se).plusDays(pe)}var Me=ae.ALIGNED_WEEK_OF_YEAR.checkValidIntValue(r.remove(ae.ALIGNED_WEEK_OF_YEAR)),ie=ae.DAY_OF_WEEK.checkValidIntValue(r.remove(ae.DAY_OF_WEEK)),Re=Pr.of(fe,1,1).plusWeeks(Me-1).with(Jst.nextOrSame(kl.of(ie)));if(o===as.STRICT&&Re.get(ae.YEAR)!==fe)throw new Sr("Strict mode rejected date parsed to a different month");return Re}}}return null},t.date=function(r){return Pr.from(r)},e}(p5);function eJt(){sl.INSTANCE=new sl("IsoChronology")}var TS=function(n){Uo(e,n),e.from=function(r){if(ut(r,"temporal"),r instanceof e)return r;if(r instanceof ay)return r.toOffsetTime();try{var o=ii.from(r),s=Mo.from(r);return new e(o,s)}catch{throw new Sr("Unable to obtain OffsetTime TemporalAccessor: "+r+", type "+(r.constructor!=null?r.constructor.name:""))}},e.now=function(r){return arguments.length===0?e._now(vl.systemDefaultZone()):r instanceof vl?e._now(r):e._now(vl.system(r))},e._now=function(r){ut(r,"clock");var o=r.instant();return e.ofInstant(o,r.zone().rules().offset(o))},e.of=function(){return arguments.length<=2?e.ofTimeAndOffset.apply(this,arguments):e.ofNumbers.apply(this,arguments)},e.ofNumbers=function(r,o,s,c,h){var g=ii.of(r,o,s,c);return new e(g,h)},e.ofTimeAndOffset=function(r,o){return new e(r,o)},e.ofInstant=function(r,o){ut(r,"instant"),Nr(r,Kl,"instant"),ut(o,"zone"),Nr(o,Ba,"zone");var s=o.rules(),c=s.offset(r),h=r.epochSecond()%ii.SECONDS_PER_DAY;h=(h+c.totalSeconds())%ii.SECONDS_PER_DAY,h<0&&(h+=ii.SECONDS_PER_DAY);var g=ii.ofSecondOfDay(h,r.nano());return new e(g,c)},e.parse=function(r,o){return o===void 0&&(o=na.ISO_OFFSET_TIME),ut(o,"formatter"),o.parse(r,e.FROM)};function e(i,r){var o;return o=n.call(this)||this,ut(i,"time"),Nr(i,ii,"time"),ut(r,"offset"),Nr(r,Mo,"offset"),o._time=i,o._offset=r,o}var t=e.prototype;return t.adjustInto=function(r){return r.with(ae.NANO_OF_DAY,this._time.toNanoOfDay()).with(ae.OFFSET_SECONDS,this.offset().totalSeconds())},t.atDate=function(r){return ay.of(r,this._time,this._offset)},t.format=function(r){return ut(r,"formatter"),r.format(this,e.FROM)},t.get=function(r){return n.prototype.get.call(this,r)},t.getLong=function(r){return r instanceof ae?r===ae.OFFSET_SECONDS?this._offset.totalSeconds():this._time.getLong(r):r.getFrom(this)},t.hour=function(){return this._time.hour()},t.minute=function(){return this._time.minute()},t.second=function(){return this._time.second()},t.nano=function(){return this._time.nano()},t.offset=function(){return this._offset},t.isAfter=function(r){return ut(r,"other"),this._toEpochNano()>r._toEpochNano()},t.isBefore=function(r){return ut(r,"other"),this._toEpochNano()s||o===s&&this.toLocalTime().nano()>r.toLocalTime().nano()},t.isBefore=function(r){ut(r,"other");var o=this.toEpochSecond(),s=r.toEpochSecond();return oe?1:0}var ly=function(n){Uo(e,n),e.now=function(r){var o;return r instanceof Ba?o=vl.system(r):o=r??vl.systemDefaultZone(),e.ofInstant(o.instant(),o.zone())},e.of=function(){return arguments.length<=2?e.of2.apply(this,arguments):arguments.length===3&&arguments[0]instanceof Pr?e.of3.apply(this,arguments):e.of8.apply(this,arguments)},e.of3=function(r,o,s){return e.of2(ra.of(r,o),s)},e.of2=function(r,o){return e.ofLocal(r,o,null)},e.of8=function(r,o,s,c,h,g,x,C){var A=ra.of(r,o,s,c,h,g,x);return e.ofLocal(A,C,null)},e.ofLocal=function(r,o,s){if(ut(r,"localDateTime"),ut(o,"zone"),o instanceof Mo)return new e(r,o,o);var c=null,h=o.rules(),g=h.validOffsets(r);if(g.length===1)c=g[0];else if(g.length===0){var x=h.transition(r);r=r.plusSeconds(x.duration().seconds()),c=x.offsetAfter()}else s!=null&&g.some(function(C){return C.equals(s)})?c=s:c=ut(g[0],"offset");return new e(r,c,o)},e.ofInstant=function(){return arguments.length===2?e.ofInstant2.apply(this,arguments):e.ofInstant3.apply(this,arguments)},e.ofInstant2=function(r,o){return ut(r,"instant"),ut(o,"zone"),e._create(r.epochSecond(),r.nano(),o)},e.ofInstant3=function(r,o,s){return ut(r,"localDateTime"),ut(o,"offset"),ut(s,"zone"),e._create(r.toEpochSecond(o),r.nano(),s)},e._create=function(r,o,s){var c=s.rules(),h=Kl.ofEpochSecond(r,o),g=c.offset(h),x=ra.ofEpochSecond(r,o,g);return new e(x,g,s)},e.ofStrict=function(r,o,s){ut(r,"localDateTime"),ut(o,"offset"),ut(s,"zone");var c=s.rules();if(c.isValidOffset(r,o)===!1){var h=c.transition(r);throw h!=null&&h.isGap()?new Sr("LocalDateTime "+r+" does not exist in zone "+s+" due to a gap in the local time-line, typically caused by daylight savings"):new Sr('ZoneOffset "'+o+'" is not valid for LocalDateTime "'+r+'" in zone "'+s+'"')}return new e(r,o,s)},e.ofLenient=function(r,o,s){if(ut(r,"localDateTime"),ut(o,"offset"),ut(s,"zone"),s instanceof Mo&&o.equals(s)===!1)throw new Hr("ZoneId must match ZoneOffset");return new e(r,o,s)},e.from=function(r){if(ut(r,"temporal"),r instanceof e)return r;var o=Ba.from(r);if(r.isSupported(ae.INSTANT_SECONDS)){var s=e._from(r,o);if(s!=null)return s}var c=ra.from(r);return e.of2(c,o)},e._from=function(r,o){try{return e.__from(r,o)}catch(s){if(!(s instanceof Sr))throw s}},e.__from=function(r,o){var s=r.getLong(ae.INSTANT_SECONDS),c=r.get(ae.NANO_OF_SECOND);return e._create(s,c,o)},e.parse=function(r,o){return o===void 0&&(o=na.ISO_ZONED_DATE_TIME),ut(o,"formatter"),o.parse(r,e.FROM)};function e(i,r,o){var s;return ut(i,"dateTime"),ut(r,"offset"),ut(o,"zone"),s=n.call(this)||this,s._dateTime=i,s._offset=r,s._zone=o,s}var t=e.prototype;return t._resolveLocal=function(r){return ut(r,"newDateTime"),e.ofLocal(r,this._zone,this._offset)},t._resolveInstant=function(r){return e.ofInstant3(r,this._offset,this._zone)},t._resolveOffset=function(r){return r.equals(this._offset)===!1&&this._zone.rules().isValidOffset(this._dateTime,r)?new e(this._dateTime,r,this._zone):this},t.isSupported=function(r){return r instanceof ae?!0:r instanceof lt?r.isDateBased()||r.isTimeBased():r!=null&&r.isSupportedBy(this)},t.range=function(r){return r instanceof ae?r===ae.INSTANT_SECONDS||r===ae.OFFSET_SECONDS?r.range():this._dateTime.range(r):r.rangeRefinedBy(this)},t.get=function(r){return this.getLong(r)},t.getLong=function(r){if(r instanceof ae){switch(r){case ae.INSTANT_SECONDS:return this.toEpochSecond();case ae.OFFSET_SECONDS:return this._offset.totalSeconds()}return this._dateTime.getLong(r)}return ut(r,"field"),r.getFrom(this)},t.offset=function(){return this._offset},t.withEarlierOffsetAtOverlap=function(){var r=this._zone.rules().transition(this._dateTime);if(r!=null&&r.isOverlap()){var o=r.offsetBefore();if(o.equals(this._offset)===!1)return new e(this._dateTime,o,this._zone)}return this},t.withLaterOffsetAtOverlap=function(){var r=this._zone.rules().transition(this.toLocalDateTime());if(r!=null){var o=r.offsetAfter();if(o.equals(this._offset)===!1)return new e(this._dateTime,o,this._zone)}return this},t.zone=function(){return this._zone},t.withZoneSameLocal=function(r){return ut(r,"zone"),this._zone.equals(r)?this:e.ofLocal(this._dateTime,r,this._offset)},t.withZoneSameInstant=function(r){return ut(r,"zone"),this._zone.equals(r)?this:e._create(this._dateTime.toEpochSecond(this._offset),this._dateTime.nano(),r)},t.withFixedOffsetZone=function(){return this._zone.equals(this._offset)?this:new e(this._dateTime,this._offset,this._offset)},t.year=function(){return this._dateTime.year()},t.monthValue=function(){return this._dateTime.monthValue()},t.month=function(){return this._dateTime.month()},t.dayOfMonth=function(){return this._dateTime.dayOfMonth()},t.dayOfYear=function(){return this._dateTime.dayOfYear()},t.dayOfWeek=function(){return this._dateTime.dayOfWeek()},t.hour=function(){return this._dateTime.hour()},t.minute=function(){return this._dateTime.minute()},t.second=function(){return this._dateTime.second()},t.nano=function(){return this._dateTime.nano()},t.withAdjuster=function(r){if(r instanceof Pr)return this._resolveLocal(ra.of(r,this._dateTime.toLocalTime()));if(r instanceof ii)return this._resolveLocal(ra.of(this._dateTime.toLocalDate(),r));if(r instanceof ra)return this._resolveLocal(r);if(r instanceof Kl){var o=r;return e._create(o.epochSecond(),o.nano(),this._zone)}else if(r instanceof Mo)return this._resolveOffset(r);return ut(r,"adjuster"),r.adjustInto(this)},t.withFieldValue=function(r,o){if(r instanceof ae){switch(r){case ae.INSTANT_SECONDS:return e._create(o,this.nano(),this._zone);case ae.OFFSET_SECONDS:{var s=Mo.ofTotalSeconds(r.checkValidIntValue(o));return this._resolveOffset(s)}}return this._resolveLocal(this._dateTime.with(r,o))}return r.adjustInto(this,o)},t.withYear=function(r){return this._resolveLocal(this._dateTime.withYear(r))},t.withMonth=function(r){return this._resolveLocal(this._dateTime.withMonth(r))},t.withDayOfMonth=function(r){return this._resolveLocal(this._dateTime.withDayOfMonth(r))},t.withDayOfYear=function(r){return this._resolveLocal(this._dateTime.withDayOfYear(r))},t.withHour=function(r){return this._resolveLocal(this._dateTime.withHour(r))},t.withMinute=function(r){return this._resolveLocal(this._dateTime.withMinute(r))},t.withSecond=function(r){return this._resolveLocal(this._dateTime.withSecond(r))},t.withNano=function(r){return this._resolveLocal(this._dateTime.withNano(r))},t.truncatedTo=function(r){return this._resolveLocal(this._dateTime.truncatedTo(r))},t.plusAmount=function(r){return ut(r),r.addTo(this)},t.plusAmountUnit=function(r,o){return o instanceof lt?o.isDateBased()?this._resolveLocal(this._dateTime.plus(r,o)):this._resolveInstant(this._dateTime.plus(r,o)):(ut(o,"unit"),o.addTo(this,r))},t.plusYears=function(r){return this._resolveLocal(this._dateTime.plusYears(r))},t.plusMonths=function(r){return this._resolveLocal(this._dateTime.plusMonths(r))},t.plusWeeks=function(r){return this._resolveLocal(this._dateTime.plusWeeks(r))},t.plusDays=function(r){return this._resolveLocal(this._dateTime.plusDays(r))},t.plusHours=function(r){return this._resolveInstant(this._dateTime.plusHours(r))},t.plusMinutes=function(r){return this._resolveInstant(this._dateTime.plusMinutes(r))},t.plusSeconds=function(r){return this._resolveInstant(this._dateTime.plusSeconds(r))},t.plusNanos=function(r){return this._resolveInstant(this._dateTime.plusNanos(r))},t.minusAmount=function(r){return ut(r,"amount"),r.subtractFrom(this)},t.minusAmountUnit=function(r,o){return this.plusAmountUnit(-1*r,o)},t.minusYears=function(r){return this.plusYears(-1*r)},t.minusMonths=function(r){return this.plusMonths(-1*r)},t.minusWeeks=function(r){return this.plusWeeks(-1*r)},t.minusDays=function(r){return this.plusDays(-1*r)},t.minusHours=function(r){return this.plusHours(-1*r)},t.minusMinutes=function(r){return this.plusMinutes(-1*r)},t.minusSeconds=function(r){return this.plusSeconds(-1*r)},t.minusNanos=function(r){return this.plusNanos(-1*r)},t.query=function(r){return r===sn.localDate()?this.toLocalDate():(ut(r,"query"),n.prototype.query.call(this,r))},t.until=function(r,o){var s=e.from(r);if(o instanceof lt){if(s=s.withZoneSameInstant(this._zone),o.isDateBased())return this._dateTime.until(s._dateTime,o);var c=this._offset.totalSeconds()-s._offset.totalSeconds(),h=s._dateTime.plusSeconds(c);return this._dateTime.until(h,o)}return o.between(this,s)},t.toLocalDateTime=function(){return this._dateTime},t.toLocalDate=function(){return this._dateTime.toLocalDate()},t.toLocalTime=function(){return this._dateTime.toLocalTime()},t.toOffsetDateTime=function(){return ay.of(this._dateTime,this._offset)},t.equals=function(r){return this===r?!0:r instanceof e?this._dateTime.equals(r._dateTime)&&this._offset.equals(r._offset)&&this._zone.equals(r._zone):!1},t.hashCode=function(){return ke.hashCode(this._dateTime.hashCode(),this._offset.hashCode(),this._zone.hashCode())},t.toString=function(){var r=this._dateTime.toString()+this._offset.toString();return this._offset!==this._zone&&(r+="["+this._zone.toString()+"]"),r},t.toJSON=function(){return this.toString()},t.format=function(r){return n.prototype.format.call(this,r)},e}(eat);function nJt(){ly.FROM=Xu("ZonedDateTime.FROM",function(n){return ly.from(n)})}var ay=function(n){Uo(e,n),e.from=function(r){if(ut(r,"temporal"),r instanceof e)return r;try{var o=Mo.from(r);try{var s=ra.from(r);return e.of(s,o)}catch{var c=Kl.from(r);return e.ofInstant(c,o)}}catch{throw new Sr("Unable to obtain OffsetDateTime TemporalAccessor: "+r+", type "+(r.constructor!=null?r.constructor.name:""))}},e.now=function(r){if(arguments.length===0)return e.now(vl.systemDefaultZone());if(ut(r,"clockOrZone"),r instanceof Ba)return e.now(vl.system(r));if(r instanceof vl){var o=r.instant();return e.ofInstant(o,r.zone().rules().offset(o))}else throw new Hr("clockOrZone must be an instance of ZoneId or Clock")},e.of=function(){return arguments.length<=2?e.ofDateTime.apply(this,arguments):arguments.length===3?e.ofDateAndTime.apply(this,arguments):e.ofNumbers.apply(this,arguments)},e.ofDateTime=function(r,o){return new e(r,o)},e.ofDateAndTime=function(r,o,s){var c=ra.of(r,o);return new e(c,s)},e.ofNumbers=function(r,o,s,c,h,g,x,C){c===void 0&&(c=0),h===void 0&&(h=0),g===void 0&&(g=0),x===void 0&&(x=0);var A=ra.of(r,o,s,c,h,g,x);return new e(A,C)},e.ofInstant=function(r,o){ut(r,"instant"),ut(o,"zone");var s=o.rules(),c=s.offset(r),h=ra.ofEpochSecond(r.epochSecond(),r.nano(),c);return new e(h,c)},e.parse=function(r,o){return o===void 0&&(o=na.ISO_OFFSET_DATE_TIME),ut(o,"formatter"),o.parse(r,e.FROM)};function e(i,r){var o;return o=n.call(this)||this,ut(i,"dateTime"),Nr(i,ra,"dateTime"),ut(r,"offset"),Nr(r,Mo,"offset"),o._dateTime=i,o._offset=r,o}var t=e.prototype;return t.adjustInto=function(r){return r.with(ae.EPOCH_DAY,this.toLocalDate().toEpochDay()).with(ae.NANO_OF_DAY,this.toLocalTime().toNanoOfDay()).with(ae.OFFSET_SECONDS,this.offset().totalSeconds())},t.until=function(r,o){var s=e.from(r);return o instanceof lt?(s=s.withOffsetSameInstant(this._offset),this._dateTime.until(s._dateTime,o)):o.between(this,s)},t.atZoneSameInstant=function(r){return ly.ofInstant(this._dateTime,this._offset,r)},t.atZoneSimilarLocal=function(r){return ly.ofLocal(this._dateTime,r,this._offset)},t.query=function(r){return ut(r,"query"),r===sn.chronology()?sl.INSTANCE:r===sn.precision()?lt.NANOS:r===sn.offset()||r===sn.zone()?this.offset():r===sn.localDate()?this.toLocalDate():r===sn.localTime()?this.toLocalTime():r===sn.zoneId()?null:n.prototype.query.call(this,r)},t.get=function(r){if(r instanceof ae){switch(r){case ae.INSTANT_SECONDS:throw new Sr("Field too large for an int: "+r);case ae.OFFSET_SECONDS:return this.offset().totalSeconds()}return this._dateTime.get(r)}return n.prototype.get.call(this,r)},t.getLong=function(r){if(r instanceof ae){switch(r){case ae.INSTANT_SECONDS:return this.toEpochSecond();case ae.OFFSET_SECONDS:return this.offset().totalSeconds()}return this._dateTime.getLong(r)}return r.getFrom(this)},t.offset=function(){return this._offset},t.year=function(){return this._dateTime.year()},t.monthValue=function(){return this._dateTime.monthValue()},t.month=function(){return this._dateTime.month()},t.dayOfMonth=function(){return this._dateTime.dayOfMonth()},t.dayOfYear=function(){return this._dateTime.dayOfYear()},t.dayOfWeek=function(){return this._dateTime.dayOfWeek()},t.hour=function(){return this._dateTime.hour()},t.minute=function(){return this._dateTime.minute()},t.second=function(){return this._dateTime.second()},t.nano=function(){return this._dateTime.nano()},t.toLocalDateTime=function(){return this._dateTime},t.toLocalDate=function(){return this._dateTime.toLocalDate()},t.toLocalTime=function(){return this._dateTime.toLocalTime()},t.toOffsetTime=function(){return TS.of(this._dateTime.toLocalTime(),this._offset)},t.toZonedDateTime=function(){return ly.of(this._dateTime,this._offset)},t.toInstant=function(){return this._dateTime.toInstant(this._offset)},t.toEpochSecond=function(){return this._dateTime.toEpochSecond(this._offset)},t.isSupported=function(r){return r instanceof ae||r instanceof lt?r.isDateBased()||r.isTimeBased():r!=null&&r.isSupportedBy(this)},t.range=function(r){return r instanceof ae?r===ae.INSTANT_SECONDS||r===ae.OFFSET_SECONDS?r.range():this._dateTime.range(r):r.rangeRefinedBy(this)},t.withAdjuster=function(r){return ut(r),r instanceof Pr||r instanceof ii||r instanceof ra?this._withDateTimeOffset(this._dateTime.with(r),this._offset):r instanceof Kl?e.ofInstant(r,this._offset):r instanceof Mo?this._withDateTimeOffset(this._dateTime,r):r instanceof e?r:r.adjustInto(this)},t.withFieldValue=function(r,o){if(ut(r),r instanceof ae){var s=r;switch(s){case ae.INSTANT_SECONDS:return e.ofInstant(Kl.ofEpochSecond(o,this.nano()),this._offset);case ae.OFFSET_SECONDS:return this._withDateTimeOffset(this._dateTime,Mo.ofTotalSeconds(s.checkValidIntValue(o)))}return this._withDateTimeOffset(this._dateTime.with(r,o),this._offset)}return r.adjustInto(this,o)},t._withDateTimeOffset=function(r,o){return this._dateTime===r&&this._offset.equals(o)?this:new e(r,o)},t.withYear=function(r){return this._withDateTimeOffset(this._dateTime.withYear(r),this._offset)},t.withMonth=function(r){return this._withDateTimeOffset(this._dateTime.withMonth(r),this._offset)},t.withDayOfMonth=function(r){return this._withDateTimeOffset(this._dateTime.withDayOfMonth(r),this._offset)},t.withDayOfYear=function(r){return this._withDateTimeOffset(this._dateTime.withDayOfYear(r),this._offset)},t.withHour=function(r){return this._withDateTimeOffset(this._dateTime.withHour(r),this._offset)},t.withMinute=function(r){return this._withDateTimeOffset(this._dateTime.withMinute(r),this._offset)},t.withSecond=function(r){return this._withDateTimeOffset(this._dateTime.withSecond(r),this._offset)},t.withNano=function(r){return this._withDateTimeOffset(this._dateTime.withNano(r),this._offset)},t.withOffsetSameLocal=function(r){return ut(r,"offset"),this._withDateTimeOffset(this._dateTime,r)},t.withOffsetSameInstant=function(r){if(ut(r,"offset"),r.equals(this._offset))return this;var o=r.totalSeconds()-this._offset.totalSeconds(),s=this._dateTime.plusSeconds(o);return new e(s,r)},t.truncatedTo=function(r){return this._withDateTimeOffset(this._dateTime.truncatedTo(r),this._offset)},t.plusAmount=function(r){return ut(r,"amount"),r.addTo(this)},t.plusAmountUnit=function(r,o){return o instanceof lt?this._withDateTimeOffset(this._dateTime.plus(r,o),this._offset):o.addTo(this,r)},t.plusYears=function(r){return this._withDateTimeOffset(this._dateTime.plusYears(r),this._offset)},t.plusMonths=function(r){return this._withDateTimeOffset(this._dateTime.plusMonths(r),this._offset)},t.plusWeeks=function(r){return this._withDateTimeOffset(this._dateTime.plusWeeks(r),this._offset)},t.plusDays=function(r){return this._withDateTimeOffset(this._dateTime.plusDays(r),this._offset)},t.plusHours=function(r){return this._withDateTimeOffset(this._dateTime.plusHours(r),this._offset)},t.plusMinutes=function(r){return this._withDateTimeOffset(this._dateTime.plusMinutes(r),this._offset)},t.plusSeconds=function(r){return this._withDateTimeOffset(this._dateTime.plusSeconds(r),this._offset)},t.plusNanos=function(r){return this._withDateTimeOffset(this._dateTime.plusNanos(r),this._offset)},t.minusAmount=function(r){return ut(r),r.subtractFrom(this)},t.minusAmountUnit=function(r,o){return this.plus(-1*r,o)},t.minusYears=function(r){return this._withDateTimeOffset(this._dateTime.minusYears(r),this._offset)},t.minusMonths=function(r){return this._withDateTimeOffset(this._dateTime.minusMonths(r),this._offset)},t.minusWeeks=function(r){return this._withDateTimeOffset(this._dateTime.minusWeeks(r),this._offset)},t.minusDays=function(r){return this._withDateTimeOffset(this._dateTime.minusDays(r),this._offset)},t.minusHours=function(r){return this._withDateTimeOffset(this._dateTime.minusHours(r),this._offset)},t.minusMinutes=function(r){return this._withDateTimeOffset(this._dateTime.minusMinutes(r),this._offset)},t.minusSeconds=function(r){return this._withDateTimeOffset(this._dateTime.minusSeconds(r),this._offset)},t.minusNanos=function(r){return this._withDateTimeOffset(this._dateTime.minusNanos(r),this._offset)},t.compareTo=function(r){if(ut(r,"other"),Nr(r,e,"other"),this.offset().equals(r.offset()))return this.toLocalDateTime().compareTo(r.toLocalDateTime());var o=ke.compareNumbers(this.toEpochSecond(),r.toEpochSecond());return o===0&&(o=this.toLocalTime().nano()-r.toLocalTime().nano(),o===0&&(o=this.toLocalDateTime().compareTo(r.toLocalDateTime()))),o},t.isAfter=function(r){ut(r,"other");var o=this.toEpochSecond(),s=r.toEpochSecond();return o>s||o===s&&this.toLocalTime().nano()>r.toLocalTime().nano()},t.isBefore=function(r){ut(r,"other");var o=this.toEpochSecond(),s=r.toEpochSecond();return oh&&(c=c.plus(1));var g=o-c.firstDayOfYear(s)+1;return new e(r,c.value(),g)},e.ofEpochDay=function(r){r===void 0&&(r=0);var o,s,c,h,g;g=r+jst,g-=60,o=0,g<0&&(s=ke.intDiv(g+1,Fpe)-1,o=s*400,g+=-s*Fpe),h=ke.intDiv(400*g+591,Fpe),c=g-(365*h+ke.intDiv(h,4)-ke.intDiv(h,100)+ke.intDiv(h,400)),c<0&&(h--,c=g-(365*h+ke.intDiv(h,4)-ke.intDiv(h,100)+ke.intDiv(h,400))),h+=o;var x=c,C=ke.intDiv(x*5+2,153),A=(C+2)%12+1,k=x-ke.intDiv(C*306+5,10)+1;h+=ke.intDiv(C,10);var O=h;return new e(O,A,k)},e.from=function(r){ut(r,"temporal");var o=r.query(sn.localDate());if(o==null)throw new Sr("Unable to obtain LocalDate from TemporalAccessor: "+r+", type "+(r.constructor!=null?r.constructor.name:""));return o},e.parse=function(r,o){return o===void 0&&(o=na.ISO_LOCAL_DATE),Ia(o!=null,"formatter",DS),o.parse(r,e.FROM)},e._resolvePreviousValid=function(r,o,s){switch(o){case 2:s=Math.min(s,sl.isLeapYear(r)?29:28);break;case 4:case 6:case 9:case 11:s=Math.min(s,30);break}return e.of(r,o,s)};function e(i,r,o){var s;return s=n.call(this)||this,ut(i,"year"),ut(r,"month"),ut(o,"dayOfMonth"),r instanceof So&&(r=r.value()),s._year=ke.safeToInt(i),s._month=ke.safeToInt(r),s._day=ke.safeToInt(o),e._validate(s._year,s._month,s._day),s}e._validate=function(r,o,s){var c;if(ae.YEAR.checkValidValue(r),ae.MONTH_OF_YEAR.checkValidValue(o),ae.DAY_OF_MONTH.checkValidValue(s),s>28){switch(c=31,o){case 2:c=sl.isLeapYear(r)?29:28;break;case 4:case 6:case 9:case 11:c=30}s>c&&(s===29?Ia(!1,"Invalid date 'February 29' as '"+r+"' is not a leap year",Sr):Ia(!1,"Invalid date '"+r+"' '"+o+"' '"+s+"'",Sr))}};var t=e.prototype;return t.isSupported=function(r){return n.prototype.isSupported.call(this,r)},t.range=function(r){if(r instanceof ae){if(r.isDateBased()){switch(r){case ae.DAY_OF_MONTH:return $o.of(1,this.lengthOfMonth());case ae.DAY_OF_YEAR:return $o.of(1,this.lengthOfYear());case ae.ALIGNED_WEEK_OF_MONTH:return $o.of(1,this.month()===So.FEBRUARY&&this.isLeapYear()===!1?4:5);case ae.YEAR_OF_ERA:return this._year<=0?$o.of(1,sy.MAX_VALUE+1):$o.of(1,sy.MAX_VALUE)}return r.range()}throw new Ls("Unsupported field: "+r)}return r.rangeRefinedBy(this)},t.get=function(r){return this.getLong(r)},t.getLong=function(r){return Ia(r!=null,"",DS),r instanceof ae?this._get0(r):r.getFrom(this)},t._get0=function(r){switch(r){case ae.DAY_OF_WEEK:return this.dayOfWeek().value();case ae.ALIGNED_DAY_OF_WEEK_IN_MONTH:return ke.intMod(this._day-1,7)+1;case ae.ALIGNED_DAY_OF_WEEK_IN_YEAR:return ke.intMod(this.dayOfYear()-1,7)+1;case ae.DAY_OF_MONTH:return this._day;case ae.DAY_OF_YEAR:return this.dayOfYear();case ae.EPOCH_DAY:return this.toEpochDay();case ae.ALIGNED_WEEK_OF_MONTH:return ke.intDiv(this._day-1,7)+1;case ae.ALIGNED_WEEK_OF_YEAR:return ke.intDiv(this.dayOfYear()-1,7)+1;case ae.MONTH_OF_YEAR:return this._month;case ae.PROLEPTIC_MONTH:return this._prolepticMonth();case ae.YEAR_OF_ERA:return this._year>=1?this._year:1-this._year;case ae.YEAR:return this._year;case ae.ERA:return this._year>=1?1:0}throw new Ls("Unsupported field: "+r)},t._prolepticMonth=function(){return this._year*12+(this._month-1)},t.chronology=function(){return sl.INSTANCE},t.year=function(){return this._year},t.monthValue=function(){return this._month},t.month=function(){return So.of(this._month)},t.dayOfMonth=function(){return this._day},t.dayOfYear=function(){return this.month().firstDayOfYear(this.isLeapYear())+this._day-1},t.dayOfWeek=function(){var r=ke.floorMod(this.toEpochDay()+3,7);return kl.of(r+1)},t.isLeapYear=function(){return sl.isLeapYear(this._year)},t.lengthOfMonth=function(){switch(this._month){case 2:return this.isLeapYear()?29:28;case 4:case 6:case 9:case 11:return 30;default:return 31}},t.lengthOfYear=function(){return this.isLeapYear()?366:365},t.withAdjuster=function(r){return ut(r,"adjuster"),r instanceof e?r:(Ia(typeof r.adjustInto=="function","adjuster",Hr),r.adjustInto(this))},t.withFieldValue=function(r,o){if(Ia(r!=null,"field",DS),r instanceof ae){var s=r;switch(s.checkValidValue(o),s){case ae.DAY_OF_WEEK:return this.plusDays(o-this.dayOfWeek().value());case ae.ALIGNED_DAY_OF_WEEK_IN_MONTH:return this.plusDays(o-this.getLong(ae.ALIGNED_DAY_OF_WEEK_IN_MONTH));case ae.ALIGNED_DAY_OF_WEEK_IN_YEAR:return this.plusDays(o-this.getLong(ae.ALIGNED_DAY_OF_WEEK_IN_YEAR));case ae.DAY_OF_MONTH:return this.withDayOfMonth(o);case ae.DAY_OF_YEAR:return this.withDayOfYear(o);case ae.EPOCH_DAY:return e.ofEpochDay(o);case ae.ALIGNED_WEEK_OF_MONTH:return this.plusWeeks(o-this.getLong(ae.ALIGNED_WEEK_OF_MONTH));case ae.ALIGNED_WEEK_OF_YEAR:return this.plusWeeks(o-this.getLong(ae.ALIGNED_WEEK_OF_YEAR));case ae.MONTH_OF_YEAR:return this.withMonth(o);case ae.PROLEPTIC_MONTH:return this.plusMonths(o-this.getLong(ae.PROLEPTIC_MONTH));case ae.YEAR_OF_ERA:return this.withYear(this._year>=1?o:1-o);case ae.YEAR:return this.withYear(o);case ae.ERA:return this.getLong(ae.ERA)===o?this:this.withYear(1-this._year)}throw new Ls("Unsupported field: "+r)}return r.adjustInto(this,o)},t.withYear=function(r){return this._year===r?this:(ae.YEAR.checkValidValue(r),e._resolvePreviousValid(r,this._month,this._day))},t.withMonth=function(r){var o=r instanceof So?r.value():r;return this._month===o?this:(ae.MONTH_OF_YEAR.checkValidValue(o),e._resolvePreviousValid(this._year,o,this._day))},t.withDayOfMonth=function(r){return this._day===r?this:e.of(this._year,this._month,r)},t.withDayOfYear=function(r){return this.dayOfYear()===r?this:e.ofYearDay(this._year,r)},t.plusAmount=function(r){return ut(r,"amount"),r.addTo(this)},t.plusAmountUnit=function(r,o){if(ut(r,"amountToAdd"),ut(o,"unit"),o instanceof lt){switch(o){case lt.DAYS:return this.plusDays(r);case lt.WEEKS:return this.plusWeeks(r);case lt.MONTHS:return this.plusMonths(r);case lt.YEARS:return this.plusYears(r);case lt.DECADES:return this.plusYears(ke.safeMultiply(r,10));case lt.CENTURIES:return this.plusYears(ke.safeMultiply(r,100));case lt.MILLENNIA:return this.plusYears(ke.safeMultiply(r,1e3));case lt.ERAS:return this.with(ae.ERA,ke.safeAdd(this.getLong(ae.ERA),r))}throw new Ls("Unsupported unit: "+o)}return o.addTo(this,r)},t.plusYears=function(r){if(r===0)return this;var o=ae.YEAR.checkValidIntValue(this._year+r);return e._resolvePreviousValid(o,this._month,this._day)},t.plusMonths=function(r){if(r===0)return this;var o=this._year*12+(this._month-1),s=o+r,c=ae.YEAR.checkValidIntValue(ke.floorDiv(s,12)),h=ke.floorMod(s,12)+1;return e._resolvePreviousValid(c,h,this._day)},t.plusWeeks=function(r){return this.plusDays(ke.safeMultiply(r,7))},t.plusDays=function(r){if(r===0)return this;var o=ke.safeAdd(this.toEpochDay(),r);return e.ofEpochDay(o)},t.minusAmount=function(r){return ut(r,"amount"),r.subtractFrom(this)},t.minusAmountUnit=function(r,o){return ut(r,"amountToSubtract"),ut(o,"unit"),this.plusAmountUnit(-1*r,o)},t.minusYears=function(r){return this.plusYears(r*-1)},t.minusMonths=function(r){return this.plusMonths(r*-1)},t.minusWeeks=function(r){return this.plusWeeks(r*-1)},t.minusDays=function(r){return this.plusDays(r*-1)},t.query=function(r){return ut(r,"query"),r===sn.localDate()?this:n.prototype.query.call(this,r)},t.adjustInto=function(r){return n.prototype.adjustInto.call(this,r)},t.until=function(r,o){return arguments.length<2?this.until1(r):this.until2(r,o)},t.until2=function(r,o){var s=e.from(r);if(o instanceof lt){switch(o){case lt.DAYS:return this.daysUntil(s);case lt.WEEKS:return ke.intDiv(this.daysUntil(s),7);case lt.MONTHS:return this._monthsUntil(s);case lt.YEARS:return ke.intDiv(this._monthsUntil(s),12);case lt.DECADES:return ke.intDiv(this._monthsUntil(s),120);case lt.CENTURIES:return ke.intDiv(this._monthsUntil(s),1200);case lt.MILLENNIA:return ke.intDiv(this._monthsUntil(s),12e3);case lt.ERAS:return s.getLong(ae.ERA)-this.getLong(ae.ERA)}throw new Ls("Unsupported unit: "+o)}return o.between(this,s)},t.daysUntil=function(r){return r.toEpochDay()-this.toEpochDay()},t._monthsUntil=function(r){var o=this._prolepticMonth()*32+this.dayOfMonth(),s=r._prolepticMonth()*32+r.dayOfMonth();return ke.intDiv(s-o,32)},t.until1=function(r){var o=e.from(r),s=o._prolepticMonth()-this._prolepticMonth(),c=o._day-this._day;if(s>0&&c<0){s--;var h=this.plusMonths(s);c=o.toEpochDay()-h.toEpochDay()}else s<0&&c>0&&(s++,c-=o.lengthOfMonth());var g=ke.intDiv(s,12),x=ke.intMod(s,12);return AS.of(g,x,c)},t.atTime=function(){return arguments.length===1?this.atTime1.apply(this,arguments):this.atTime4.apply(this,arguments)},t.atTime1=function(r){if(ut(r,"time"),r instanceof ii)return ra.of(this,r);if(r instanceof TS)return this._atTimeOffsetTime(r);throw new Hr("time must be an instance of LocalTime or OffsetTime"+(r&&r.constructor&&r.constructor.name?", but is "+r.constructor.name:""))},t.atTime4=function(r,o,s,c){return s===void 0&&(s=0),c===void 0&&(c=0),this.atTime1(ii.of(r,o,s,c))},t._atTimeOffsetTime=function(r){return ay.of(ra.of(this,r.toLocalTime()),r.offset())},t.atStartOfDay=function(r){return r!=null?this.atStartOfDayWithZone(r):ra.of(this,ii.MIDNIGHT)},t.atStartOfDayWithZone=function(r){ut(r,"zone");var o=this.atTime(ii.MIDNIGHT);if(!(r instanceof Mo)){var s=r.rules().transition(o);s!=null&&s.isGap()&&(o=s.dateTimeAfter())}return ly.of(o,r)},t.toEpochDay=function(){var r=this._year,o=this._month,s=0;return s+=365*r,r>=0?s+=ke.intDiv(r+3,4)-ke.intDiv(r+99,100)+ke.intDiv(r+399,400):s-=ke.intDiv(r,-4)-ke.intDiv(r,-100)+ke.intDiv(r,-400),s+=ke.intDiv(367*o-362,12),s+=this.dayOfMonth()-1,o>2&&(s--,sl.isLeapYear(r)||s--),s-jst},t.compareTo=function(r){return ut(r,"other"),Nr(r,e,"other"),this._compareTo0(r)},t._compareTo0=function(r){var o=this._year-r._year;return o===0&&(o=this._month-r._month,o===0&&(o=this._day-r._day)),o},t.isAfter=function(r){return this.compareTo(r)>0},t.isBefore=function(r){return this.compareTo(r)<0},t.isEqual=function(r){return this.compareTo(r)===0},t.equals=function(r){return this===r?!0:r instanceof e?this._compareTo0(r)===0:!1},t.hashCode=function(){var r=this._year,o=this._month,s=this._day;return ke.hash(r&4294965248^(r<<11)+(o<<6)+s)},t.toString=function(){var r,o,s,c=this._year,h=this._month,g=this._day,x=Math.abs(c);return x<1e3?c<0?s="-"+(""+(c-1e4)).slice(-4):s=(""+(c+1e4)).slice(-4):c>9999?s="+"+c:s=""+c,h<10?o="-0"+h:o="-"+h,g<10?r="-0"+g:r="-"+g,s+o+r},t.toJSON=function(){return this.toString()},t.format=function(r){return ut(r,"formatter"),Nr(r,na,"formatter"),n.prototype.format.call(this,r)},e}(e$);function oJt(){Pr.MIN=Pr.of(yp.MIN_VALUE,1,1),Pr.MAX=Pr.of(yp.MAX_VALUE,12,31),Pr.EPOCH_0=Pr.ofEpochDay(0),Pr.FROM=Xu("LocalDate.FROM",function(n){return Pr.from(n)})}var tat=function(n){Uo(e,n);function e(){return n.apply(this,arguments)||this}var t=e.prototype;return t.chronology=function(){return this.toLocalDate().chronology()},t.query=function(r){return r===sn.chronology()?this.chronology():r===sn.precision()?lt.NANOS:r===sn.localDate()?Pr.ofEpochDay(this.toLocalDate().toEpochDay()):r===sn.localTime()?this.toLocalTime():r===sn.zone()||r===sn.zoneId()||r===sn.offset()?null:n.prototype.query.call(this,r)},t.adjustInto=function(r){return r.with(ae.EPOCH_DAY,this.toLocalDate().toEpochDay()).with(ae.NANO_OF_DAY,this.toLocalTime().toNanoOfDay())},t.toInstant=function(r){return Nr(r,Mo,"zoneId"),Kl.ofEpochSecond(this.toEpochSecond(r),this.toLocalTime().nano())},t.toEpochSecond=function(r){ut(r,"offset");var o=this.toLocalDate().toEpochDay(),s=o*86400+this.toLocalTime().toSecondOfDay();return s-=r.totalSeconds(),ke.safeToInt(s)},e}(r$),ra=function(n){Uo(e,n),e.now=function(r){return r==null?e._now(vl.systemDefaultZone()):r instanceof vl?e._now(r):e._now(vl.system(r))},e._now=function(r){return ut(r,"clock"),e.ofInstant(r.instant(),r.zone())},e._ofEpochMillis=function(r,o){var s=ke.floorDiv(r,1e3)+o.totalSeconds(),c=ke.floorDiv(s,ii.SECONDS_PER_DAY),h=ke.floorMod(s,ii.SECONDS_PER_DAY),g=ke.floorMod(r,1e3)*1e6,x=Pr.ofEpochDay(c),C=ii.ofSecondOfDay(h,g);return new e(x,C)},e.of=function(){return arguments.length<=2?e.ofDateAndTime.apply(this,arguments):e.ofNumbers.apply(this,arguments)},e.ofNumbers=function(r,o,s,c,h,g,x){c===void 0&&(c=0),h===void 0&&(h=0),g===void 0&&(g=0),x===void 0&&(x=0);var C=Pr.of(r,o,s),A=ii.of(c,h,g,x);return new e(C,A)},e.ofDateAndTime=function(r,o){return ut(r,"date"),ut(o,"time"),new e(r,o)},e.ofInstant=function(r,o){o===void 0&&(o=Ba.systemDefault()),ut(r,"instant"),Nr(r,Kl,"instant"),ut(o,"zone");var s=o.rules().offset(r);return e.ofEpochSecond(r.epochSecond(),r.nano(),s)},e.ofEpochSecond=function(r,o,s){r===void 0&&(r=0),o===void 0&&(o=0),arguments.length===2&&o instanceof Mo&&(s=o,o=0),ut(s,"offset");var c=r+s.totalSeconds(),h=ke.floorDiv(c,ii.SECONDS_PER_DAY),g=ke.floorMod(c,ii.SECONDS_PER_DAY),x=Pr.ofEpochDay(h),C=ii.ofSecondOfDay(g,o);return new e(x,C)},e.from=function(r){if(ut(r,"temporal"),r instanceof e)return r;if(r instanceof ly)return r.toLocalDateTime();try{var o=Pr.from(r),s=ii.from(r);return new e(o,s)}catch{throw new Sr("Unable to obtain LocalDateTime TemporalAccessor: "+r+", type "+(r.constructor!=null?r.constructor.name:""))}},e.parse=function(r,o){return o===void 0&&(o=na.ISO_LOCAL_DATE_TIME),ut(o,"formatter"),o.parse(r,e.FROM)};function e(i,r){var o;return o=n.call(this)||this,Nr(i,Pr,"date"),Nr(r,ii,"time"),o._date=i,o._time=r,o}var t=e.prototype;return t._withDateTime=function(r,o){return this._date.equals(r)&&this._time.equals(o)?this:new e(r,o)},t.isSupported=function(r){return r instanceof ae||r instanceof lt?r.isDateBased()||r.isTimeBased():r!=null&&r.isSupportedBy(this)},t.range=function(r){return r instanceof ae?r.isTimeBased()?this._time.range(r):this._date.range(r):r.rangeRefinedBy(this)},t.get=function(r){return r instanceof ae?r.isTimeBased()?this._time.get(r):this._date.get(r):n.prototype.get.call(this,r)},t.getLong=function(r){return ut(r,"field"),r instanceof ae?r.isTimeBased()?this._time.getLong(r):this._date.getLong(r):r.getFrom(this)},t.year=function(){return this._date.year()},t.monthValue=function(){return this._date.monthValue()},t.month=function(){return this._date.month()},t.dayOfMonth=function(){return this._date.dayOfMonth()},t.dayOfYear=function(){return this._date.dayOfYear()},t.dayOfWeek=function(){return this._date.dayOfWeek()},t.hour=function(){return this._time.hour()},t.minute=function(){return this._time.minute()},t.second=function(){return this._time.second()},t.nano=function(){return this._time.nano()},t.withAdjuster=function(r){return ut(r,"adjuster"),r instanceof Pr?this._withDateTime(r,this._time):r instanceof ii?this._withDateTime(this._date,r):r instanceof e?r:(Ia(typeof r.adjustInto=="function","adjuster",Hr),r.adjustInto(this))},t.withFieldValue=function(r,o){return ut(r,"field"),r instanceof ae?r.isTimeBased()?this._withDateTime(this._date,this._time.with(r,o)):this._withDateTime(this._date.with(r,o),this._time):r.adjustInto(this,o)},t.withYear=function(r){return this._withDateTime(this._date.withYear(r),this._time)},t.withMonth=function(r){return this._withDateTime(this._date.withMonth(r),this._time)},t.withDayOfMonth=function(r){return this._withDateTime(this._date.withDayOfMonth(r),this._time)},t.withDayOfYear=function(r){return this._withDateTime(this._date.withDayOfYear(r),this._time)},t.withHour=function(r){var o=this._time.withHour(r);return this._withDateTime(this._date,o)},t.withMinute=function(r){var o=this._time.withMinute(r);return this._withDateTime(this._date,o)},t.withSecond=function(r){var o=this._time.withSecond(r);return this._withDateTime(this._date,o)},t.withNano=function(r){var o=this._time.withNano(r);return this._withDateTime(this._date,o)},t.truncatedTo=function(r){return this._withDateTime(this._date,this._time.truncatedTo(r))},t.plusAmount=function(r){return ut(r,"amount"),r.addTo(this)},t.plusAmountUnit=function(r,o){if(ut(o,"unit"),o instanceof lt){switch(o){case lt.NANOS:return this.plusNanos(r);case lt.MICROS:return this.plusDays(ke.intDiv(r,ii.MICROS_PER_DAY)).plusNanos(ke.intMod(r,ii.MICROS_PER_DAY)*1e3);case lt.MILLIS:return this.plusDays(ke.intDiv(r,ii.MILLIS_PER_DAY)).plusNanos(ke.intMod(r,ii.MILLIS_PER_DAY)*1e6);case lt.SECONDS:return this.plusSeconds(r);case lt.MINUTES:return this.plusMinutes(r);case lt.HOURS:return this.plusHours(r);case lt.HALF_DAYS:return this.plusDays(ke.intDiv(r,256)).plusHours(ke.intMod(r,256)*12)}return this._withDateTime(this._date.plus(r,o),this._time)}return o.addTo(this,r)},t.plusYears=function(r){var o=this._date.plusYears(r);return this._withDateTime(o,this._time)},t.plusMonths=function(r){var o=this._date.plusMonths(r);return this._withDateTime(o,this._time)},t.plusWeeks=function(r){var o=this._date.plusWeeks(r);return this._withDateTime(o,this._time)},t.plusDays=function(r){var o=this._date.plusDays(r);return this._withDateTime(o,this._time)},t.plusHours=function(r){return this._plusWithOverflow(this._date,r,0,0,0,1)},t.plusMinutes=function(r){return this._plusWithOverflow(this._date,0,r,0,0,1)},t.plusSeconds=function(r){return this._plusWithOverflow(this._date,0,0,r,0,1)},t.plusNanos=function(r){return this._plusWithOverflow(this._date,0,0,0,r,1)},t.minusAmount=function(r){return ut(r,"amount"),r.subtractFrom(this)},t.minusAmountUnit=function(r,o){return ut(o,"unit"),this.plusAmountUnit(-1*r,o)},t.minusYears=function(r){return this.plusYears(-1*r)},t.minusMonths=function(r){return this.plusMonths(-1*r)},t.minusWeeks=function(r){return this.plusWeeks(-1*r)},t.minusDays=function(r){return this.plusDays(-1*r)},t.minusHours=function(r){return this._plusWithOverflow(this._date,r,0,0,0,-1)},t.minusMinutes=function(r){return this._plusWithOverflow(this._date,0,r,0,0,-1)},t.minusSeconds=function(r){return this._plusWithOverflow(this._date,0,0,r,0,-1)},t.minusNanos=function(r){return this._plusWithOverflow(this._date,0,0,0,r,-1)},t._plusWithOverflow=function(r,o,s,c,h,g){if(o===0&&s===0&&c===0&&h===0)return this._withDateTime(r,this._time);var x=ke.intDiv(h,ii.NANOS_PER_DAY)+ke.intDiv(c,ii.SECONDS_PER_DAY)+ke.intDiv(s,ii.MINUTES_PER_DAY)+ke.intDiv(o,ii.HOURS_PER_DAY);x*=g;var C=ke.intMod(h,ii.NANOS_PER_DAY)+ke.intMod(c,ii.SECONDS_PER_DAY)*ii.NANOS_PER_SECOND+ke.intMod(s,ii.MINUTES_PER_DAY)*ii.NANOS_PER_MINUTE+ke.intMod(o,ii.HOURS_PER_DAY)*ii.NANOS_PER_HOUR,A=this._time.toNanoOfDay();C=C*g+A,x+=ke.floorDiv(C,ii.NANOS_PER_DAY);var k=ke.floorMod(C,ii.NANOS_PER_DAY),O=k===A?this._time:ii.ofNanoOfDay(k);return this._withDateTime(r.plusDays(x),O)},t.query=function(r){return ut(r,"query"),r===sn.localDate()?this.toLocalDate():n.prototype.query.call(this,r)},t.adjustInto=function(r){return n.prototype.adjustInto.call(this,r)},t.until=function(r,o){ut(r,"endExclusive"),ut(o,"unit");var s=e.from(r);if(o instanceof lt){if(o.isTimeBased()){var c=this._date.daysUntil(s._date),h=s._time.toNanoOfDay()-this._time.toNanoOfDay();c>0&&h<0?(c--,h+=ii.NANOS_PER_DAY):c<0&&h>0&&(c++,h-=ii.NANOS_PER_DAY);var g=c;switch(o){case lt.NANOS:return g=ke.safeMultiply(g,ii.NANOS_PER_DAY),ke.safeAdd(g,h);case lt.MICROS:return g=ke.safeMultiply(g,ii.MICROS_PER_DAY),ke.safeAdd(g,ke.intDiv(h,1e3));case lt.MILLIS:return g=ke.safeMultiply(g,ii.MILLIS_PER_DAY),ke.safeAdd(g,ke.intDiv(h,1e6));case lt.SECONDS:return g=ke.safeMultiply(g,ii.SECONDS_PER_DAY),ke.safeAdd(g,ke.intDiv(h,ii.NANOS_PER_SECOND));case lt.MINUTES:return g=ke.safeMultiply(g,ii.MINUTES_PER_DAY),ke.safeAdd(g,ke.intDiv(h,ii.NANOS_PER_MINUTE));case lt.HOURS:return g=ke.safeMultiply(g,ii.HOURS_PER_DAY),ke.safeAdd(g,ke.intDiv(h,ii.NANOS_PER_HOUR));case lt.HALF_DAYS:return g=ke.safeMultiply(g,2),ke.safeAdd(g,ke.intDiv(h,ii.NANOS_PER_HOUR*12))}throw new Ls("Unsupported unit: "+o)}var x=s._date,C=s._time;return x.isAfter(this._date)&&C.isBefore(this._time)?x=x.minusDays(1):x.isBefore(this._date)&&C.isAfter(this._time)&&(x=x.plusDays(1)),this._date.until(x,o)}return o.between(this,s)},t.atOffset=function(r){return ay.of(this,r)},t.atZone=function(r){return ly.of(this,r)},t.toLocalDate=function(){return this._date},t.toLocalTime=function(){return this._time},t.compareTo=function(r){return ut(r,"other"),Nr(r,e,"other"),this._compareTo0(r)},t._compareTo0=function(r){var o=this._date.compareTo(r.toLocalDate());return o===0&&(o=this._time.compareTo(r.toLocalTime())),o},t.isAfter=function(r){return this.compareTo(r)>0},t.isBefore=function(r){return this.compareTo(r)<0},t.isEqual=function(r){return this.compareTo(r)===0},t.equals=function(r){return this===r?!0:r instanceof e?this._date.equals(r._date)&&this._time.equals(r._time):!1},t.hashCode=function(){return this._date.hashCode()^this._time.hashCode()},t.toString=function(){return this._date.toString()+"T"+this._time.toString()},t.toJSON=function(){return this.toString()},t.format=function(r){return ut(r,"formatter"),r.format(this)},e}(tat);function sJt(){ra.MIN=ra.of(Pr.MIN,ii.MIN),ra.MAX=ra.of(Pr.MAX,ii.MAX),ra.FROM=Xu("LocalDateTime.FROM",function(n){return ra.from(n)})}var ii=function(n){Uo(e,n),e.now=function(r){return r==null?e._now(vl.systemDefaultZone()):r instanceof vl?e._now(r):e._now(vl.system(r))},e._now=function(r){return r===void 0&&(r=vl.systemDefaultZone()),ut(r,"clock"),e.ofInstant(r.instant(),r.zone())},e.ofInstant=function(r,o){o===void 0&&(o=Ba.systemDefault());var s=o.rules().offset(r),c=ke.intMod(r.epochSecond(),e.SECONDS_PER_DAY);return c=ke.intMod(c+s.totalSeconds(),e.SECONDS_PER_DAY),c<0&&(c+=e.SECONDS_PER_DAY),e.ofSecondOfDay(c,r.nano())},e.of=function(r,o,s,c){return new e(r,o,s,c)},e.ofSecondOfDay=function(r,o){r===void 0&&(r=0),o===void 0&&(o=0),ae.SECOND_OF_DAY.checkValidValue(r),ae.NANO_OF_SECOND.checkValidValue(o);var s=ke.intDiv(r,e.SECONDS_PER_HOUR);r-=s*e.SECONDS_PER_HOUR;var c=ke.intDiv(r,e.SECONDS_PER_MINUTE);return r-=c*e.SECONDS_PER_MINUTE,new e(s,c,r,o)},e.ofNanoOfDay=function(r){r===void 0&&(r=0),ae.NANO_OF_DAY.checkValidValue(r);var o=ke.intDiv(r,e.NANOS_PER_HOUR);r-=o*e.NANOS_PER_HOUR;var s=ke.intDiv(r,e.NANOS_PER_MINUTE);r-=s*e.NANOS_PER_MINUTE;var c=ke.intDiv(r,e.NANOS_PER_SECOND);return r-=c*e.NANOS_PER_SECOND,new e(o,s,c,r)},e.from=function(r){ut(r,"temporal");var o=r.query(sn.localTime());if(o==null)throw new Sr("Unable to obtain LocalTime TemporalAccessor: "+r+", type "+(r.constructor!=null?r.constructor.name:""));return o},e.parse=function(r,o){return o===void 0&&(o=na.ISO_LOCAL_TIME),ut(o,"formatter"),o.parse(r,e.FROM)};function e(i,r,o,s){var c;i===void 0&&(i=0),r===void 0&&(r=0),o===void 0&&(o=0),s===void 0&&(s=0),c=n.call(this)||this;var h=ke.safeToInt(i),g=ke.safeToInt(r),x=ke.safeToInt(o),C=ke.safeToInt(s);return e._validate(h,g,x,C),g===0&&x===0&&C===0?(e.HOURS[h]||(c._hour=h,c._minute=g,c._second=x,c._nano=C,e.HOURS[h]=FN(c)),e.HOURS[h]||FN(c)):(c._hour=h,c._minute=g,c._second=x,c._nano=C,c)}e._validate=function(r,o,s,c){ae.HOUR_OF_DAY.checkValidValue(r),ae.MINUTE_OF_HOUR.checkValidValue(o),ae.SECOND_OF_MINUTE.checkValidValue(s),ae.NANO_OF_SECOND.checkValidValue(c)};var t=e.prototype;return t.isSupported=function(r){return r instanceof ae||r instanceof lt?r.isTimeBased():r!=null&&r.isSupportedBy(this)},t.range=function(r){return ut(r),n.prototype.range.call(this,r)},t.get=function(r){return this.getLong(r)},t.getLong=function(r){return ut(r,"field"),r instanceof ae?this._get0(r):r.getFrom(this)},t._get0=function(r){switch(r){case ae.NANO_OF_SECOND:return this._nano;case ae.NANO_OF_DAY:return this.toNanoOfDay();case ae.MICRO_OF_SECOND:return ke.intDiv(this._nano,1e3);case ae.MICRO_OF_DAY:return ke.intDiv(this.toNanoOfDay(),1e3);case ae.MILLI_OF_SECOND:return ke.intDiv(this._nano,1e6);case ae.MILLI_OF_DAY:return ke.intDiv(this.toNanoOfDay(),1e6);case ae.SECOND_OF_MINUTE:return this._second;case ae.SECOND_OF_DAY:return this.toSecondOfDay();case ae.MINUTE_OF_HOUR:return this._minute;case ae.MINUTE_OF_DAY:return this._hour*60+this._minute;case ae.HOUR_OF_AMPM:return ke.intMod(this._hour,12);case ae.CLOCK_HOUR_OF_AMPM:{var o=ke.intMod(this._hour,12);return o%12===0?12:o}case ae.HOUR_OF_DAY:return this._hour;case ae.CLOCK_HOUR_OF_DAY:return this._hour===0?24:this._hour;case ae.AMPM_OF_DAY:return ke.intDiv(this._hour,12)}throw new Ls("Unsupported field: "+r)},t.hour=function(){return this._hour},t.minute=function(){return this._minute},t.second=function(){return this._second},t.nano=function(){return this._nano},t.withAdjuster=function(r){return ut(r,"adjuster"),r instanceof e?r:(Ia(typeof r.adjustInto=="function","adjuster",Hr),r.adjustInto(this))},t.withFieldValue=function(r,o){if(ut(r,"field"),Nr(r,o1,"field"),r instanceof ae){switch(r.checkValidValue(o),r){case ae.NANO_OF_SECOND:return this.withNano(o);case ae.NANO_OF_DAY:return e.ofNanoOfDay(o);case ae.MICRO_OF_SECOND:return this.withNano(o*1e3);case ae.MICRO_OF_DAY:return e.ofNanoOfDay(o*1e3);case ae.MILLI_OF_SECOND:return this.withNano(o*1e6);case ae.MILLI_OF_DAY:return e.ofNanoOfDay(o*1e6);case ae.SECOND_OF_MINUTE:return this.withSecond(o);case ae.SECOND_OF_DAY:return this.plusSeconds(o-this.toSecondOfDay());case ae.MINUTE_OF_HOUR:return this.withMinute(o);case ae.MINUTE_OF_DAY:return this.plusMinutes(o-(this._hour*60+this._minute));case ae.HOUR_OF_AMPM:return this.plusHours(o-ke.intMod(this._hour,12));case ae.CLOCK_HOUR_OF_AMPM:return this.plusHours((o===12?0:o)-ke.intMod(this._hour,12));case ae.HOUR_OF_DAY:return this.withHour(o);case ae.CLOCK_HOUR_OF_DAY:return this.withHour(o===24?0:o);case ae.AMPM_OF_DAY:return this.plusHours((o-ke.intDiv(this._hour,12))*12)}throw new Ls("Unsupported field: "+r)}return r.adjustInto(this,o)},t.withHour=function(r){return r===void 0&&(r=0),this._hour===r?this:new e(r,this._minute,this._second,this._nano)},t.withMinute=function(r){return r===void 0&&(r=0),this._minute===r?this:new e(this._hour,r,this._second,this._nano)},t.withSecond=function(r){return r===void 0&&(r=0),this._second===r?this:new e(this._hour,this._minute,r,this._nano)},t.withNano=function(r){return r===void 0&&(r=0),this._nano===r?this:new e(this._hour,this._minute,this._second,r)},t.truncatedTo=function(r){if(ut(r,"unit"),r===lt.NANOS)return this;var o=r.duration();if(o.seconds()>e.SECONDS_PER_DAY)throw new Sr("Unit is too large to be used for truncation");var s=o.toNanos();if(ke.intMod(e.NANOS_PER_DAY,s)!==0)throw new Sr("Unit must divide into a standard day without remainder");var c=this.toNanoOfDay();return e.ofNanoOfDay(ke.intDiv(c,s)*s)},t.plusAmount=function(r){return ut(r,"amount"),r.addTo(this)},t.plusAmountUnit=function(r,o){if(ut(o,"unit"),o instanceof lt){switch(o){case lt.NANOS:return this.plusNanos(r);case lt.MICROS:return this.plusNanos(ke.intMod(r,e.MICROS_PER_DAY)*1e3);case lt.MILLIS:return this.plusNanos(ke.intMod(r,e.MILLIS_PER_DAY)*1e6);case lt.SECONDS:return this.plusSeconds(r);case lt.MINUTES:return this.plusMinutes(r);case lt.HOURS:return this.plusHours(r);case lt.HALF_DAYS:return this.plusHours(ke.intMod(r,2)*12)}throw new Ls("Unsupported unit: "+o)}return o.addTo(this,r)},t.plusHours=function(r){if(r===0)return this;var o=ke.intMod(ke.intMod(r,e.HOURS_PER_DAY)+this._hour+e.HOURS_PER_DAY,e.HOURS_PER_DAY);return new e(o,this._minute,this._second,this._nano)},t.plusMinutes=function(r){if(r===0)return this;var o=this._hour*e.MINUTES_PER_HOUR+this._minute,s=ke.intMod(ke.intMod(r,e.MINUTES_PER_DAY)+o+e.MINUTES_PER_DAY,e.MINUTES_PER_DAY);if(o===s)return this;var c=ke.intDiv(s,e.MINUTES_PER_HOUR),h=ke.intMod(s,e.MINUTES_PER_HOUR);return new e(c,h,this._second,this._nano)},t.plusSeconds=function(r){if(r===0)return this;var o=this._hour*e.SECONDS_PER_HOUR+this._minute*e.SECONDS_PER_MINUTE+this._second,s=ke.intMod(ke.intMod(r,e.SECONDS_PER_DAY)+o+e.SECONDS_PER_DAY,e.SECONDS_PER_DAY);if(o===s)return this;var c=ke.intDiv(s,e.SECONDS_PER_HOUR),h=ke.intMod(ke.intDiv(s,e.SECONDS_PER_MINUTE),e.MINUTES_PER_HOUR),g=ke.intMod(s,e.SECONDS_PER_MINUTE);return new e(c,h,g,this._nano)},t.plusNanos=function(r){if(r===0)return this;var o=this.toNanoOfDay(),s=ke.intMod(ke.intMod(r,e.NANOS_PER_DAY)+o+e.NANOS_PER_DAY,e.NANOS_PER_DAY);if(o===s)return this;var c=ke.intDiv(s,e.NANOS_PER_HOUR),h=ke.intMod(ke.intDiv(s,e.NANOS_PER_MINUTE),e.MINUTES_PER_HOUR),g=ke.intMod(ke.intDiv(s,e.NANOS_PER_SECOND),e.SECONDS_PER_MINUTE),x=ke.intMod(s,e.NANOS_PER_SECOND);return new e(c,h,g,x)},t.minusAmount=function(r){return ut(r,"amount"),r.subtractFrom(this)},t.minusAmountUnit=function(r,o){return ut(o,"unit"),this.plusAmountUnit(-1*r,o)},t.minusHours=function(r){return this.plusHours(-1*ke.intMod(r,e.HOURS_PER_DAY))},t.minusMinutes=function(r){return this.plusMinutes(-1*ke.intMod(r,e.MINUTES_PER_DAY))},t.minusSeconds=function(r){return this.plusSeconds(-1*ke.intMod(r,e.SECONDS_PER_DAY))},t.minusNanos=function(r){return this.plusNanos(-1*ke.intMod(r,e.NANOS_PER_DAY))},t.query=function(r){return ut(r,"query"),r===sn.precision()?lt.NANOS:r===sn.localTime()?this:r===sn.chronology()||r===sn.zoneId()||r===sn.zone()||r===sn.offset()||r===sn.localDate()?null:r.queryFrom(this)},t.adjustInto=function(r){return r.with(e.NANO_OF_DAY,this.toNanoOfDay())},t.until=function(r,o){ut(r,"endExclusive"),ut(o,"unit");var s=e.from(r);if(o instanceof lt){var c=s.toNanoOfDay()-this.toNanoOfDay();switch(o){case lt.NANOS:return c;case lt.MICROS:return ke.intDiv(c,1e3);case lt.MILLIS:return ke.intDiv(c,1e6);case lt.SECONDS:return ke.intDiv(c,e.NANOS_PER_SECOND);case lt.MINUTES:return ke.intDiv(c,e.NANOS_PER_MINUTE);case lt.HOURS:return ke.intDiv(c,e.NANOS_PER_HOUR);case lt.HALF_DAYS:return ke.intDiv(c,12*e.NANOS_PER_HOUR)}throw new Ls("Unsupported unit: "+o)}return o.between(this,s)},t.atDate=function(r){return ra.of(r,this)},t.toSecondOfDay=function(){var r=this._hour*e.SECONDS_PER_HOUR;return r+=this._minute*e.SECONDS_PER_MINUTE,r+=this._second,r},t.toNanoOfDay=function(){var r=this._hour*e.NANOS_PER_HOUR;return r+=this._minute*e.NANOS_PER_MINUTE,r+=this._second*e.NANOS_PER_SECOND,r+=this._nano,r},t.compareTo=function(r){ut(r,"other"),Nr(r,e,"other");var o=ke.compareNumbers(this._hour,r._hour);return o===0&&(o=ke.compareNumbers(this._minute,r._minute),o===0&&(o=ke.compareNumbers(this._second,r._second),o===0&&(o=ke.compareNumbers(this._nano,r._nano)))),o},t.isAfter=function(r){return this.compareTo(r)>0},t.isBefore=function(r){return this.compareTo(r)<0},t.equals=function(r){return this===r?!0:r instanceof e?this._hour===r._hour&&this._minute===r._minute&&this._second===r._second&&this._nano===r._nano:!1},t.hashCode=function(){var r=this.toNanoOfDay();return ke.hash(r)},t.toString=function(){var r="",o=this._hour,s=this._minute,c=this._second,h=this._nano;return r+=o<10?"0":"",r+=o,r+=s<10?":0":":",r+=s,(c>0||h>0)&&(r+=c<10?":0":":",r+=c,h>0&&(r+=".",ke.intMod(h,1e6)===0?r+=(""+(ke.intDiv(h,1e6)+1e3)).substring(1):ke.intMod(h,1e3)===0?r+=(""+(ke.intDiv(h,1e3)+1e6)).substring(1):r+=(""+(h+1e9)).substring(1))),r},t.toJSON=function(){return this.toString()},t.format=function(r){return ut(r,"formatter"),r.format(this)},e}(kS);function aJt(){ii.HOURS=[];for(var n=0;n<24;n++)ii.of(n,0,0,0);ii.MIN=ii.HOURS[0],ii.MAX=new ii(23,59,59,999999999),ii.MIDNIGHT=ii.HOURS[0],ii.NOON=ii.HOURS[12],ii.FROM=Xu("LocalTime.FROM",function(e){return ii.from(e)})}ii.HOURS_PER_DAY=24;ii.MINUTES_PER_HOUR=60;ii.MINUTES_PER_DAY=ii.MINUTES_PER_HOUR*ii.HOURS_PER_DAY;ii.SECONDS_PER_MINUTE=60;ii.SECONDS_PER_HOUR=ii.SECONDS_PER_MINUTE*ii.MINUTES_PER_HOUR;ii.SECONDS_PER_DAY=ii.SECONDS_PER_HOUR*ii.HOURS_PER_DAY;ii.MILLIS_PER_DAY=ii.SECONDS_PER_DAY*1e3;ii.MICROS_PER_DAY=ii.SECONDS_PER_DAY*1e6;ii.NANOS_PER_SECOND=1e9;ii.NANOS_PER_MINUTE=ii.NANOS_PER_SECOND*ii.SECONDS_PER_MINUTE;ii.NANOS_PER_HOUR=ii.NANOS_PER_MINUTE*ii.MINUTES_PER_HOUR;ii.NANOS_PER_DAY=ii.NANOS_PER_HOUR*ii.HOURS_PER_DAY;var Npe=1e6,Kl=function(n){Uo(e,n),e.now=function(r){return r===void 0&&(r=vl.systemUTC()),r.instant()},e.ofEpochSecond=function(r,o){o===void 0&&(o=0);var s=r+ke.floorDiv(o,ii.NANOS_PER_SECOND),c=ke.floorMod(o,ii.NANOS_PER_SECOND);return e._create(s,c)},e.ofEpochMilli=function(r){var o=ke.floorDiv(r,1e3),s=ke.floorMod(r,1e3);return e._create(o,s*1e6)},e.from=function(r){try{var o=r.getLong(ae.INSTANT_SECONDS),s=r.get(ae.NANO_OF_SECOND);return e.ofEpochSecond(o,s)}catch(c){throw new Sr("Unable to obtain Instant from TemporalAccessor: "+r+", type "+typeof r,c)}},e.parse=function(r){return na.ISO_INSTANT.parse(r,e.FROM)},e._create=function(r,o){return r===0&&o===0?e.EPOCH:new e(r,o)},e._validate=function(r,o){if(re.MAX_SECONDS)throw new Sr("Instant exceeds minimum or maximum instant");if(o<0||o>ii.NANOS_PER_SECOND)throw new Sr("Instant exceeds minimum or maximum instant")};function e(i,r){var o;return o=n.call(this)||this,e._validate(i,r),o._seconds=ke.safeToInt(i),o._nanos=ke.safeToInt(r),o}var t=e.prototype;return t.isSupported=function(r){return r instanceof ae?r===ae.INSTANT_SECONDS||r===ae.NANO_OF_SECOND||r===ae.MICRO_OF_SECOND||r===ae.MILLI_OF_SECOND:r instanceof lt?r.isTimeBased()||r===lt.DAYS:r!=null&&r.isSupportedBy(this)},t.range=function(r){return n.prototype.range.call(this,r)},t.get=function(r){return this.getLong(r)},t.getLong=function(r){if(r instanceof ae){switch(r){case ae.NANO_OF_SECOND:return this._nanos;case ae.MICRO_OF_SECOND:return ke.intDiv(this._nanos,1e3);case ae.MILLI_OF_SECOND:return ke.intDiv(this._nanos,Npe);case ae.INSTANT_SECONDS:return this._seconds}throw new Ls("Unsupported field: "+r)}return r.getFrom(this)},t.epochSecond=function(){return this._seconds},t.nano=function(){return this._nanos},t.withAdjuster=function(r){return ut(r,"adjuster"),r.adjustInto(this)},t.withFieldValue=function(r,o){if(ut(r,"field"),r instanceof ae){switch(r.checkValidValue(o),r){case ae.MILLI_OF_SECOND:{var s=o*Npe;return s!==this._nanos?e._create(this._seconds,s):this}case ae.MICRO_OF_SECOND:{var c=o*1e3;return c!==this._nanos?e._create(this._seconds,c):this}case ae.NANO_OF_SECOND:return o!==this._nanos?e._create(this._seconds,o):this;case ae.INSTANT_SECONDS:return o!==this._seconds?e._create(o,this._nanos):this}throw new Ls("Unsupported field: "+r)}return r.adjustInto(this,o)},t.truncatedTo=function(r){if(ut(r,"unit"),r===lt.NANOS)return this;var o=r.duration();if(o.seconds()>ii.SECONDS_PER_DAY)throw new Sr("Unit is too large to be used for truncation");var s=o.toNanos();if(ke.intMod(ii.NANOS_PER_DAY,s)!==0)throw new Sr("Unit must divide into a standard day without remainder");var c=ke.intMod(this._seconds,ii.SECONDS_PER_DAY)*ii.NANOS_PER_SECOND+this._nanos,h=ke.intDiv(c,s)*s;return this.plusNanos(h-c)},t.plusAmount=function(r){return ut(r,"amount"),r.addTo(this)},t.plusAmountUnit=function(r,o){if(ut(r,"amountToAdd"),ut(o,"unit"),Nr(o,l1),o instanceof lt){switch(o){case lt.NANOS:return this.plusNanos(r);case lt.MICROS:return this._plus(ke.intDiv(r,1e6),ke.intMod(r,1e6)*1e3);case lt.MILLIS:return this.plusMillis(r);case lt.SECONDS:return this.plusSeconds(r);case lt.MINUTES:return this.plusSeconds(ke.safeMultiply(r,ii.SECONDS_PER_MINUTE));case lt.HOURS:return this.plusSeconds(ke.safeMultiply(r,ii.SECONDS_PER_HOUR));case lt.HALF_DAYS:return this.plusSeconds(ke.safeMultiply(r,ii.SECONDS_PER_DAY/2));case lt.DAYS:return this.plusSeconds(ke.safeMultiply(r,ii.SECONDS_PER_DAY))}throw new Ls("Unsupported unit: "+o)}return o.addTo(this,r)},t.plusSeconds=function(r){return this._plus(r,0)},t.plusMillis=function(r){return this._plus(ke.intDiv(r,1e3),ke.intMod(r,1e3)*Npe)},t.plusNanos=function(r){return this._plus(0,r)},t._plus=function(r,o){if(r===0&&o===0)return this;var s=this._seconds+r;s=s+ke.intDiv(o,ii.NANOS_PER_SECOND);var c=this._nanos+o%ii.NANOS_PER_SECOND;return e.ofEpochSecond(s,c)},t.minusAmount=function(r){return ut(r,"amount"),r.subtractFrom(this)},t.minusAmountUnit=function(r,o){return this.plusAmountUnit(-1*r,o)},t.minusSeconds=function(r){return this.plusSeconds(r*-1)},t.minusMillis=function(r){return this.plusMillis(-1*r)},t.minusNanos=function(r){return this.plusNanos(-1*r)},t.query=function(r){return ut(r,"query"),r===sn.precision()?lt.NANOS:r===sn.localDate()||r===sn.localTime()||r===sn.chronology()||r===sn.zoneId()||r===sn.zone()||r===sn.offset()?null:r.queryFrom(this)},t.adjustInto=function(r){return ut(r,"temporal"),r.with(ae.INSTANT_SECONDS,this._seconds).with(ae.NANO_OF_SECOND,this._nanos)},t.until=function(r,o){ut(r,"endExclusive"),ut(o,"unit");var s=e.from(r);if(o instanceof lt){switch(o){case lt.NANOS:return this._nanosUntil(s);case lt.MICROS:return ke.intDiv(this._nanosUntil(s),1e3);case lt.MILLIS:return ke.safeSubtract(s.toEpochMilli(),this.toEpochMilli());case lt.SECONDS:return this._secondsUntil(s);case lt.MINUTES:return ke.intDiv(this._secondsUntil(s),ii.SECONDS_PER_MINUTE);case lt.HOURS:return ke.intDiv(this._secondsUntil(s),ii.SECONDS_PER_HOUR);case lt.HALF_DAYS:return ke.intDiv(this._secondsUntil(s),12*ii.SECONDS_PER_HOUR);case lt.DAYS:return ke.intDiv(this._secondsUntil(s),ii.SECONDS_PER_DAY)}throw new Ls("Unsupported unit: "+o)}return o.between(this,s)},t._nanosUntil=function(r){var o=ke.safeSubtract(r.epochSecond(),this.epochSecond()),s=ke.safeMultiply(o,ii.NANOS_PER_SECOND);return ke.safeAdd(s,r.nano()-this.nano())},t._secondsUntil=function(r){var o=ke.safeSubtract(r.epochSecond(),this.epochSecond()),s=r.nano()-this.nano();return o>0&&s<0?o--:o<0&&s>0&&o++,o},t.atOffset=function(r){return ay.ofInstant(this,r)},t.atZone=function(r){return ly.ofInstant(this,r)},t.toEpochMilli=function(){var r=ke.safeMultiply(this._seconds,1e3);return r+ke.intDiv(this._nanos,Npe)},t.compareTo=function(r){ut(r,"otherInstant"),Nr(r,e,"otherInstant");var o=ke.compareNumbers(this._seconds,r._seconds);return o!==0?o:this._nanos-r._nanos},t.isAfter=function(r){return this.compareTo(r)>0},t.isBefore=function(r){return this.compareTo(r)<0},t.equals=function(r){return this===r?!0:r instanceof e?this.epochSecond()===r.epochSecond()&&this.nano()===r.nano():!1},t.hashCode=function(){return ke.hashCode(this._seconds,this._nanos)},t.toString=function(){return na.ISO_INSTANT.format(this)},t.toJSON=function(){return this.toString()},e}(kS);function lJt(){Kl.MIN_SECONDS=-31619119219200,Kl.MAX_SECONDS=31494816403199,Kl.EPOCH=new Kl(0,0),Kl.MIN=Kl.ofEpochSecond(Kl.MIN_SECONDS,0),Kl.MAX=Kl.ofEpochSecond(Kl.MAX_SECONDS,999999999),Kl.FROM=Xu("Instant.FROM",function(n){return Kl.from(n)})}var vl=function(){function n(){}n.systemUTC=function(){return new F2e(Mo.UTC)},n.systemDefaultZone=function(){return new F2e(Ba.systemDefault())},n.system=function(i){return new F2e(i)},n.fixed=function(i,r){return new cJt(i,r)},n.offset=function(i,r){return new uJt(i,r)};var e=n.prototype;return e.millis=function(){co("Clock.millis")},e.instant=function(){co("Clock.instant")},e.zone=function(){co("Clock.zone")},e.withZone=function(){co("Clock.withZone")},n}(),F2e=function(n){Uo(e,n);function e(i){var r;return ut(i,"zone"),r=n.call(this)||this,r._zone=i,r}var t=e.prototype;return t.zone=function(){return this._zone},t.millis=function(){return new Date().getTime()},t.instant=function(){return Kl.ofEpochMilli(this.millis())},t.equals=function(r){return r instanceof e?this._zone.equals(r._zone):!1},t.withZone=function(r){return r.equals(this._zone)?this:new e(r)},t.toString=function(){return"SystemClock["+this._zone.toString()+"]"},e}(vl),cJt=function(n){Uo(e,n);function e(i,r){var o;return o=n.call(this)||this,o._instant=i,o._zoneId=r,o}var t=e.prototype;return t.instant=function(){return this._instant},t.millis=function(){return this._instant.toEpochMilli()},t.zone=function(){return this._zoneId},t.toString=function(){return"FixedClock[]"},t.equals=function(r){return r instanceof e?this._instant.equals(r._instant)&&this._zoneId.equals(r._zoneId):!1},t.withZone=function(r){return r.equals(this._zoneId)?this:new e(this._instant,r)},e}(vl),uJt=function(n){Uo(e,n);function e(i,r){var o;return o=n.call(this)||this,o._baseClock=i,o._offset=r,o}var t=e.prototype;return t.zone=function(){return this._baseClock.zone()},t.withZone=function(r){return r.equals(this._baseClock.zone())?this:new e(this._baseClock.withZone(r),this._offset)},t.millis=function(){return this._baseClock.millis()+this._offset.toMillis()},t.instant=function(){return this._baseClock.instant().plus(this._offset)},t.equals=function(r){return r instanceof e?this._baseClock.equals(r._baseClock)&&this._offset.equals(r._offset):!1},t.toString=function(){return"OffsetClock["+this._baseClock+","+this._offset+"]"},e}(vl);var dJt=function(){n.of=function(i,r,o){return new n(i,r,o)};function n(t,i,r){if(ut(t,"transition"),ut(i,"offsetBefore"),ut(r,"offsetAfter"),i.equals(r))throw new Hr("Offsets must not be equal");if(t.nano()!==0)throw new Hr("Nano-of-second must be zero");t instanceof ra?this._transition=t:this._transition=ra.ofEpochSecond(t,0,i),this._offsetBefore=i,this._offsetAfter=r}var e=n.prototype;return e.instant=function(){return this._transition.toInstant(this._offsetBefore)},e.toEpochSecond=function(){return this._transition.toEpochSecond(this._offsetBefore)},e.dateTimeBefore=function(){return this._transition},e.dateTimeAfter=function(){return this._transition.plusSeconds(this.durationSeconds())},e.offsetBefore=function(){return this._offsetBefore},e.offsetAfter=function(){return this._offsetAfter},e.duration=function(){return Gc.ofSeconds(this.durationSeconds())},e.durationSeconds=function(){return this._offsetAfter.totalSeconds()-this._offsetBefore.totalSeconds()},e.isGap=function(){return this._offsetAfter.totalSeconds()>this._offsetBefore.totalSeconds()},e.isOverlap=function(){return this._offsetAfter.totalSeconds()>>16},e.toString=function(){return"Transition["+(this.isGap()?"Gap":"Overlap")+" at "+this._transition.toString()+this._offsetBefore.toString()+" to "+this._offsetAfter+"]"},n}();function hJt(){sn.ZONE_ID=Xu("ZONE_ID",function(n){return n.query(sn.ZONE_ID)}),sn.CHRONO=Xu("CHRONO",function(n){return n.query(sn.CHRONO)}),sn.PRECISION=Xu("PRECISION",function(n){return n.query(sn.PRECISION)}),sn.OFFSET=Xu("OFFSET",function(n){return n.isSupported(ae.OFFSET_SECONDS)?Mo.ofTotalSeconds(n.get(ae.OFFSET_SECONDS)):null}),sn.ZONE=Xu("ZONE",function(n){var e=n.query(sn.ZONE_ID);return e??n.query(sn.OFFSET)}),sn.LOCAL_DATE=Xu("LOCAL_DATE",function(n){return n.isSupported(ae.EPOCH_DAY)?Pr.ofEpochDay(n.getLong(ae.EPOCH_DAY)):null}),sn.LOCAL_TIME=Xu("LOCAL_TIME",function(n){return n.isSupported(ae.NANO_OF_DAY)?ii.ofNanoOfDay(n.getLong(ae.NANO_OF_DAY)):null})}var pJt=function(n){Uo(e,n);function e(){return n.apply(this,arguments)||this}var t=e.prototype;return t.isFixedOffset=function(){return!1},t.offsetOfInstant=function(r){var o=new Date(r.toEpochMilli()).getTimezoneOffset();return Mo.ofTotalMinutes(o*-1)},t.offsetOfEpochMilli=function(r){var o=new Date(r).getTimezoneOffset();return Mo.ofTotalMinutes(o*-1)},t.offsetOfLocalDateTime=function(r){var o=r.toEpochSecond(Mo.UTC)*1e3,s=new Date(o).getTimezoneOffset(),c=o+s*6e4,h=new Date(c).getTimezoneOffset();return Mo.ofTotalMinutes(h*-1)},t.validOffsets=function(r){return[this.offsetOfLocalDateTime(r)]},t.transition=function(){return null},t.standardOffset=function(r){return this.offsetOfInstant(r)},t.daylightSavings=function(){this._throwNotSupported()},t.isDaylightSavings=function(){this._throwNotSupported()},t.isValidOffset=function(r,o){return this.offsetOfLocalDateTime(r).equals(o)},t.nextTransition=function(){this._throwNotSupported()},t.previousTransition=function(){this._throwNotSupported()},t.transitions=function(){this._throwNotSupported()},t.transitionRules=function(){this._throwNotSupported()},t._throwNotSupported=function(){throw new Sr("not supported operation")},t.equals=function(r){return this===r||r instanceof e},t.toString=function(){return"SYSTEM"},e}(Vpe),fJt=function(n){Uo(e,n);function e(){var i;return i=n.call(this)||this,i._rules=new pJt,i}var t=e.prototype;return t.rules=function(){return this._rules},t.equals=function(r){return this===r},t.id=function(){return"SYSTEM"},e}(Ba);var a5=function(){function n(){}return n.systemDefault=function(){return G2e},n.getAvailableZoneIds=function(){return Upe.getAvailableZoneIds()},n.of=function(t){if(ut(t,"zoneId"),t==="Z")return Mo.UTC;if(t.length===1)throw new Sr("Invalid zone: "+t);if(i1.startsWith(t,"+")||i1.startsWith(t,"-"))return Mo.of(t);if(t==="UTC"||t==="GMT"||t==="GMT0"||t==="UT")return new n1(t,Mo.UTC.rules());if(i1.startsWith(t,"UTC+")||i1.startsWith(t,"GMT+")||i1.startsWith(t,"UTC-")||i1.startsWith(t,"GMT-")){var i=Mo.of(t.substring(3));return i.totalSeconds()===0?new n1(t.substring(0,3),i.rules()):new n1(t.substring(0,3)+i.id(),i.rules())}if(i1.startsWith(t,"UT+")||i1.startsWith(t,"UT-")){var r=Mo.of(t.substring(2));return r.totalSeconds()===0?new n1("UT",r.rules()):new n1("UT"+r.id(),r.rules())}return t==="SYSTEM"?Ba.systemDefault():n1.ofId(t)},n.ofOffset=function(t,i){if(ut(t,"prefix"),ut(i,"offset"),t.length===0)return i;if(t==="GMT"||t==="UTC"||t==="UT")return i.totalSeconds()===0?new n1(t,i.rules()):new n1(t+i.id(),i.rules());throw new Hr("Invalid prefix, must be GMT, UTC or UT: "+t)},n.from=function(t){ut(t,"temporal");var i=t.query(sn.zone());if(i==null)throw new Sr("Unable to obtain ZoneId from TemporalAccessor: "+t+", type "+(t.constructor!=null?t.constructor.name:""));return i},n}(),G2e=null;function mJt(){G2e=new fJt,Ba.systemDefault=a5.systemDefault,Ba.getAvailableZoneIds=a5.getAvailableZoneIds,Ba.of=a5.of,Ba.ofOffset=a5.ofOffset,Ba.from=a5.from,Mo.from=a5.from,Ba.SYSTEM=G2e,Ba.UTC=Mo.ofTotalSeconds(0)}var Hst=!1;function gJt(){Hst||(Hst=!0,MXt(),kXt(),OXt(),RXt(),aJt(),qXt(),hJt(),NXt(),lJt(),oJt(),sJt(),JXt(),PXt(),XXt(),QXt(),LXt(),VXt(),nJt(),mJt(),eJt(),ZXt(),WXt(),rJt(),tJt())}gJt();var _Jt=function(){function n(t,i){var r;if(t instanceof Pr)i=i??Ba.systemDefault(),r=t.atStartOfDay(i);else if(t instanceof ra)i=i??Ba.systemDefault(),r=t.atZone(i);else if(t instanceof ly)i==null?r=t:r=t.withZoneSameInstant(i);else throw new Hr("unsupported instance for convert operation:"+t);this.instant=r.toInstant()}var e=n.prototype;return e.toDate=function(){return new Date(this.instant.toEpochMilli())},e.toEpochMilli=function(){return this.instant.toEpochMilli()},n}();function vJt(n,e){return new _Jt(n,e)}var yJt=function(n){Uo(e,n);function e(i,r){var o;return r===void 0&&(r=Ba.systemDefault()),o=n.call(this)||this,o._zone=r,i instanceof Date?(o._epochMilli=i.getTime(),FN(o)):typeof i.toDate=="function"&&i.toDate()instanceof Date?(o._epochMilli=i.toDate().getTime(),FN(o)):(Ia(!1,"date must be either a javascript date or a moment"),o)}var t=e.prototype;return t.query=function(r){return ut(r,"query"),r===sn.localDate()?Pr.ofInstant(Kl.ofEpochMilli(this._epochMilli),this._zone):r===sn.localTime()?ii.ofInstant(Kl.ofEpochMilli(this._epochMilli),this._zone):r===sn.zone()?this._zone:n.prototype.query.call(this,r)},t.get=function(r){return this.getLong(r)},t.getLong=function(r){if(ut(r,"field"),r instanceof ae){switch(r){case ae.NANO_OF_SECOND:return ke.floorMod(this._epochMilli,1e3)*1e6;case ae.INSTANT_SECONDS:return ke.floorDiv(this._epochMilli,1e3)}throw new Ls("Unsupported field: "+r)}return r.getFrom(this)},t.isSupported=function(r){return r===ae.INSTANT_SECONDS||r===ae.NANO_OF_SECOND},e}(OS);function bJt(n,e){return new yJt(n,e)}function xJt(n){var e=[];return function(i){return~e.indexOf(i)||(i(n),e.push(i)),n}}var wJt={assert:DXt,DateTimeBuilder:Lpe,DateTimeParseContext:Yst,DateTimePrintContext:qst,MathUtil:ke,StringUtil:i1,StringBuilder:Qst},iat={_:wJt,convert:vJt,nativeJs:bJt,ArithmeticException:r1,DateTimeException:Sr,DateTimeParseException:ry,IllegalArgumentException:Hr,IllegalStateException:Jq,UnsupportedTemporalTypeException:Ls,NullPointerException:DS,Clock:vl,DayOfWeek:kl,Duration:Gc,Instant:Kl,LocalDate:Pr,LocalTime:ii,LocalDateTime:ra,OffsetTime:TS,OffsetDateTime:ay,Month:So,MonthDay:zpe,Period:AS,Year:sy,YearConstants:yp,YearMonth:t$,ZonedDateTime:ly,ZoneOffset:Mo,ZoneId:Ba,ZoneRegion:n1,ZoneOffsetTransition:dJt,ZoneRules:Vpe,ZoneRulesProvider:Upe,ChronoLocalDate:e$,ChronoLocalDateTime:tat,ChronoZonedDateTime:eat,IsoChronology:sl,ChronoField:ae,ChronoUnit:lt,IsoFields:ny,Temporal:kS,TemporalAccessor:OS,TemporalAdjuster:n$,TemporalAdjusters:Jst,TemporalAmount:MS,TemporalField:o1,TemporalQueries:sn,TemporalQuery:i$,TemporalUnit:l1,ValueRange:$o,DateTimeFormatter:na,DateTimeFormatterBuilder:Ml,DecimalStyle:Bpe,ResolverStyle:as,SignStyle:fa,TextStyle:Ea},CJt=xJt(iat);iat.use=CJt;var gf=Math.imul,uv=class extends jr{static bh(){var e=this.z8();return jpe(e),e}static ch(e){var t=this.e1(e);return jpe(t),t}static dh(e){var t=this.d9(e);return jpe(t),t}static eh(e,t){var i=this.b9(e,t);return jpe(i),i}},g5=class{lh(e){var t;try{t=Eei(this.ih().ph(),e,this.kh())}catch(h){var i;if(h instanceof w$){var r=h;throw uv.eh("Failed to parse value from '"+Wi(e)+"'",r)}else throw h}var o=t;try{return this.jh(o)}catch(h){if(h instanceof jr){var s=h,c=s.message;throw uv.eh(c==null?"The value parsed from '"+Wi(e)+"' is invalid":""+c+" (when parsing '"+Wi(e)+"')",s)}else throw h}}},m5=class extends mm{},o$=class{};function hat(n,e){n=n===T?dv():n;var t;return e===T?(this.qh(n),t=Sa):t=e.qh.call(this,n),t}function pat(n,e){n=n===T?dv():n;var t;return e===T?(this.sh(n),t=Sa):t=e.sh.call(this,n),t}function fat(n,e){n=n===T?dv():n;var t;return e===T?(this.uh(n),t=Sa):t=e.uh.call(this,n),t}var s$=class{};function mat(n,e){n=n===T?dv():n;var t;return e===T?(this.yh(n),t=Sa):t=e.yh.call(this,n),t}function gat(n,e){n=n===T?dv():n;var t;return e===T?(this.ai(n),t=Sa):t=e.ai.call(this,n),t}function _at(n,e){n=n===T?dv():n;var t;return e===T?(this.ci(n),t=Sa):t=e.ci.call(this,n),t}var XD=class{};function tNe(n,e){for(var t=qn.w(n.length),i=0,r=n.length;i=0)){var s="The minimum number of digits ("+this.wj_1+") is negative";throw jr.e1(Wi(s))}if(!(this.xj_1==null||this.wj_1==null||this.xj_1>=this.wj_1)){var c="The maximum number of digits ("+this.xj_1+") is less than the minimum number of digits ("+this.wj_1+")";throw jr.e1(Wi(c))}}ak(){return this.vj_1}bk(){var e=mei(this.vj_1.nn()),t=this.wj_1,i=new vfe(e,t??0,this.zj_1);return this.yj_1!=null?new _$(i,this.yj_1):i}ph(){return Rei(this.wj_1,this.xj_1,this.yj_1,this.vj_1.nn(),this.vj_1.on(),this.zj_1)}},Kpe=class n extends $pe{constructor(e,t){t=t===T?!1:t;var i=aNe().kj_1,r=e.equals(dv())?4:1;super(i,r,null,e.equals(E5())?4:null,4),this.tj_1=e,this.uj_1=t}equals(e){var t,i;return e instanceof n?i=this.tj_1.equals(e.tj_1):i=!1,i?t=this.uj_1===e.uj_1:t=!1,t}hashCode(){return gf(this.tj_1.hashCode(),31)+e1(this.uj_1)|0}},JD=class{constructor(e,t,i){if(this.hk_1=e,this.ik_1=t,this.jk_1=i,this.kk_1=this.hk_1.vn_1,!(this.ik_1>=0)){var r="The minimum number of digits ("+this.ik_1+") is negative";throw jr.e1(Wi(r))}if(!(this.kk_1>=this.ik_1)){var o="The maximum number of digits ("+this.kk_1+") is less than the minimum number of digits ("+this.ik_1+")";throw jr.e1(Wi(o))}if(this.jk_1!=null&&!(this.jk_1>this.ik_1)){var s="The space padding ("+this.jk_1+") should be more than the minimum number of digits ("+this.ik_1+")";throw jr.e1(Wi(s))}}ak(){return this.hk_1}bk(){var e=new yfe(gei(this.hk_1.pn_1),this.ik_1);return this.jk_1!=null?new _$(e,this.jk_1):e}ph(){return Ype(this.ik_1,this.kk_1,this.jk_1,this.hk_1.pn_1,this.hk_1.sn_1)}},Wpe=class n extends JD{constructor(e){var t=aNe().lj_1,i=e.equals(dv())?2:1;super(t,i,e.equals(E5())?2:null),this.gk_1=e}equals(e){var t;return e instanceof n?t=this.gk_1.equals(e.gk_1):t=!1,t}hashCode(){return this.gk_1.hashCode()}},Zpe=class n extends JD{constructor(e){var t=aNe().mj_1,i=e.equals(dv())?2:1;super(t,i,e.equals(E5())?2:null),this.pk_1=e}equals(e){var t;return e instanceof n?t=this.pk_1.equals(e.pk_1):t=!1,t}hashCode(){return this.pk_1.hashCode()}},Qpe=class{constructor(){$2e=this,this.kj_1=new v5(new xm(GJt())),this.lj_1=new u1(new xm(YJt()),1,12),this.mj_1=new u1(new xm(qJt()),1,31),this.nj_1=new u1(new xm($Jt()),1,7)}},Xpe=class{qk(e){var t=new fc(new d1);return e(t),new efe(t.li())}},c$=class{};function xat(n){return this.tk(new cy(new ife(n)))}function wat(n){return this.tk(new cy(new nfe(n)))}function Cat(n){return this.tk(new cy(new rfe(n)))}function Sat(n,e){return this.tk(new cy(new afe(n,e)))}function EJt(n){var e;return n instanceof h$&&(this.tk(n.dm_1),e=Sa),e}var Jpe=class{};function IJt(n){this.sk(n)}function TJt(n){this.sk(n)}var fc=class n{constructor(e){this.rk_1=e}ii(){return this.rk_1}sk(e){this.rk_1.mi(e)}ji(){return new n(new d1)}},efe=class extends g5{constructor(e){super(),this.uk_1=e}ih(){return this.uk_1}vk(e){return e.yk()}jh(e){return this.vk(e instanceof _5?e:xi())}kh(){return KJt()}},u$=class{};function AJt(n){this.pl(n==null?null:n.yl(9))}function DJt(){var n=this.ql(),e;return n==null?e=null:e=new S5(n,9),e}var _5=class n{constructor(e,t){e=e===T?new UN:e,t=t===T?new NS:t,this.wk_1=e,this.xk_1=t}wi(e){this.wk_1.qi_1=e}xi(){return this.wk_1.qi_1}yi(e){this.wk_1.ri_1=e}zi(){return this.wk_1.ri_1}ui(e){this.wk_1.pi_1=e}vi(){return this.wk_1.pi_1}si(e){this.wk_1.oi_1=e}ti(){return this.wk_1.oi_1}zk(e){this.xk_1.cl_1=e}gl(){return this.xk_1.cl_1}hl(e){this.xk_1.hl(e)}il(){return this.xk_1.il()}jl(e){this.xk_1.al_1=e}kl(){return this.xk_1.al_1}ll(e){this.xk_1.bl_1=e}ml(){return this.xk_1.bl_1}nl(e){this.xk_1.dl_1=e}ol(){return this.xk_1.dl_1}pl(e){this.xk_1.fl_1=e}ql(){return this.xk_1.fl_1}rl(e){this.xk_1.el_1=e}sl(){return this.xk_1.el_1}yk(){return zN.vl(this.wk_1.aj(),this.xk_1.tl())}ej(){return new n(this.wk_1.ej(),this.xk_1.ej())}},NS=class n{constructor(e,t,i,r,o,s){e=e===T?null:e,t=t===T?null:t,i=i===T?null:i,r=r===T?null:r,o=o===T?null:o,s=s===T?null:s,this.al_1=e,this.bl_1=t,this.cl_1=i,this.dl_1=r,this.el_1=o,this.fl_1=s}jl(e){this.al_1=e}kl(){return this.al_1}ll(e){this.bl_1=e}ml(){return this.bl_1}zk(e){this.cl_1=e}gl(){return this.cl_1}nl(e){this.dl_1=e}ol(){return this.dl_1}rl(e){this.el_1=e}sl(){return this.el_1}pl(e){this.fl_1=e}ql(){return this.fl_1}tl(){var e=this.al_1,t;if(e==null)t=null;else{var i=this.bl_1;if(i!=null){if((((e+11|0)%12|0)+1|0)!==i){var r="Inconsistent hour and hour-of-am-pm: hour is "+e+", but hour-of-am-pm is "+i;throw jr.e1(Wi(r))}}var o=this.cl_1;if(o!=null){if(o.equals(lat())!==e>=12){var s="Inconsistent hour and the AM/PM marker: hour is "+e+", but the AM/PM marker is "+o.toString();throw jr.e1(Wi(s))}}t=e}var c=t,h;if(c==null){var g=this.bl_1,x;if(g==null)x=null;else{var C=this.cl_1,A;C==null?A=null:A=(g===12?0:g)+(C.equals(lat())?12:0)|0,x=A}h=x}else h=c;var k=h,O;if(k==null)throw uv.ch("Incomplete time: missing hour");O=k;var F=O,L=Gpe(this.dl_1,"minute"),z=this.el_1,j=z??0,K=this.fl_1;return VN.am(F,L,j,K??0)}ej(){return new n(this.al_1,this.bl_1,this.cl_1,this.dl_1,this.el_1,this.fl_1)}equals(e){var t,i,r,o,s,c;return e instanceof n?c=this.al_1==e.al_1:c=!1,c?s=this.bl_1==e.bl_1:s=!1,s?o=Lt(this.cl_1,e.cl_1):o=!1,o?r=this.dl_1==e.dl_1:r=!1,r?i=this.el_1==e.el_1:i=!1,i?t=this.fl_1==e.fl_1:t=!1,t}hashCode(){var e=this.al_1,t=gf(e??0,31),i=this.bl_1,r=t+gf(i??0,31)|0,o=this.cl_1,s=o==null?null:o.hashCode(),c=r+gf(s??0,31)|0,h=this.dl_1,g=c+gf(h??0,31)|0,x=this.el_1,C=g+gf(x??0,31)|0,A=this.fl_1;return C+(A??0)|0}toString(){var e=this.al_1,t=Wi(e??"??"),i=this.dl_1,r=Wi(i??"??"),o=this.el_1,s=Wi(o??"??"),c=this.fl_1,h;if(c==null)h=null;else{var g=c.toString();h=yst(g,9-g.length|0,48)}var x=h;return t+":"+r+":"+s+"."+(x??"???")}},d$=class extends mm{},tfe=class{bm(e){var t=new _f(new d1);return e(t),new h$(t.li())}},_f=class n{constructor(e){this.cm_1=e}ii(){return this.cm_1}tk(e){this.cm_1.mi(e)}ji(){return new n(new d1)}},h$=class extends g5{constructor(e){super(),this.dm_1=e}ih(){return this.dm_1}em(e){return e.tl()}jh(e){return this.em(e instanceof NS?e:xi())}kh(){return eei()}},ife=class n extends JD{constructor(e){var t=Lfe().fm_1,i=e.equals(dv())?2:1;super(t,i,e.equals(E5())?2:null),this.pm_1=e}equals(e){var t;return e instanceof n?t=this.pm_1.equals(e.pm_1):t=!1,t}hashCode(){return this.pm_1.hashCode()}},nfe=class n extends JD{constructor(e){var t=Lfe().gm_1,i=e.equals(dv())?2:1;super(t,i,e.equals(E5())?2:null),this.um_1=e}equals(e){var t;return e instanceof n?t=this.um_1.equals(e.um_1):t=!1,t}hashCode(){return this.um_1.hashCode()}},rfe=class n extends JD{constructor(e){var t=Lfe().hm_1,i=e.equals(dv())?2:1;super(t,i,e.equals(E5())?2:null),this.zm_1=e}equals(e){var t;return e instanceof n?t=this.zm_1.equals(e.zm_1):t=!1,t}hashCode(){return this.zm_1.hashCode()}},ofe=class{constructor(){K2e=this,this.an_1=Mg([0,0,0,0,0,0,0,0,0]),this.bn_1=Mg([2,1,0,2,1,0,2,1,0])}},sfe=class{constructor(e,t,i,r){this.in_1=e,this.jn_1=t,this.kn_1=i,this.ln_1=r}ak(){return this.in_1}bk(){return new bfe(_ei(this.in_1.nn()),this.jn_1,this.kn_1,this.ln_1)}ph(){return new pc(Tu(new bp(Tu(new xfe(this.jn_1,this.kn_1,this.in_1.nn(),this.in_1.on())))),La())}},afe=class n extends sfe{constructor(e,t,i){aat(),i=i===T?aat().an_1:i,super(Lfe().im_1,e,t,i),this.gn_1=e,this.hn_1=t}equals(e){var t,i;return e instanceof n?i=this.gn_1===e.gn_1:i=!1,i?t=this.hn_1===e.hn_1:t=!1,t}hashCode(){return gf(31,this.gn_1)+this.hn_1|0}},lfe=class{constructor(){W2e=this,this.fm_1=new u1(new xm(cei()),0,23),this.gm_1=new u1(new xm(uei()),0,59),this.hm_1=new u1(new xm(dei()),0,59,T,0),this.im_1=new v5(new xm(hei()),T,new S5(0,9)),this.jm_1=new v5(new xm(pei())),this.km_1=new u1(new xm(fei()),1,12)}},d1=class{constructor(){var e=this;e.ki_1=qn.f1()}li(){return new jN(this.ki_1)}mi(e){if(go(e,PS))this.ki_1.e(e);else if(e instanceof jN)for(var t=e.ni_1.i();t.j();){var i=t.k();this.ki_1.e(i)}}},p$=class{toString(){return"The field "+this.on()+" (default value is "+Lo(this.ao())+")"}},v5=class extends p${constructor(e,t,i,r){t=t===T?e.on():t,i=i===T?null:i,r=r===T?null:r,super(),this.wn_1=e,this.xn_1=t,this.yn_1=i,this.zn_1=r}nn(){return this.wn_1}on(){return this.xn_1}ao(){return this.yn_1}},cfe=class{};function kJt(n){var e=this.eo(n),t;if(e==null)throw Eu.x2("Field "+this.on()+" is not set");return t=e,t}var xm=class{constructor(e){this.bo_1=e}on(){return this.bo_1.callableName}co(e,t){var i=this.bo_1.get(e),r;return i===null?(this.bo_1.set(e,t),r=null):Lt(i,t)?r=null:r=i,r}do(e,t){var i=e==null||e!=null?e:xi();return this.co(i,t==null||t!=null?t:xi())}eo(e){return this.bo_1.get(e)}},u1=class extends p${constructor(e,t,i,r,o,s){r=r===T?e.on():r,o=o===T?null:o,s=s===T?null:s,super(),this.pn_1=e,this.qn_1=t,this.rn_1=i,this.sn_1=r,this.tn_1=o,this.un_1=s;var c=this,h;if(this.rn_1<10)h=1;else if(this.rn_1<100)h=2;else if(this.rn_1<1e3)h=3;else throw jr.e1("Max value "+this.rn_1+" is too large");c.vn_1=h}nn(){return this.pn_1}on(){return this.sn_1}ao(){return this.tn_1}},jN=class n{constructor(e){this.ni_1=e}toString(){return"ConcatenatedFormatStructure("+CS(this.ni_1,", ")+")"}equals(e){var t;return e instanceof n?t=Lt(this.ni_1,e.ni_1):t=!1,t}hashCode(){return Za(this.ni_1)}ph(){for(var e=this.ni_1,t=qn.w(ko(e,10)),i=e.i();i.j();){var r=i.k(),o=r.ph();t.e(o)}return Rfe(t)}bk(){for(var e=this.ni_1,t=qn.w(ko(e,10)),i=e.i();i.j();){var r=i.k(),o=r.bk();t.e(o)}var s=t,c;return s.v()===1?c=tpe(s):c=new _fe(s),c}},ufe=class extends jN{constructor(e){super(e),this.nh_1=super.bk(),this.oh_1=super.ph()}bk(){return this.nh_1}ph(){return this.oh_1}},PS=class{},cy=class n{constructor(e){this.fo_1=e}toString(){return"BasicFormatStructure("+Wi(this.fo_1)+")"}equals(e){var t;return e instanceof n?t=Lt(this.fo_1,e.fo_1):t=!1,t}hashCode(){return Za(this.fo_1)}ph(){return this.fo_1.ph()}bk(){return this.fo_1.bk()}},y5=class n{constructor(e){this.go_1=e}toString(){return"ConstantFormatStructure("+this.go_1+")"}equals(e){var t;return e instanceof n?t=this.go_1===e.go_1:t=!1,t}hashCode(){return on(this.go_1)}ph(){var e,t=this.go_1;if(Fa(t)===0)e=La();else{var i=qn.f1(),r;if(t1(nu(this.go_1,0))){var o;e:{var s=this.go_1,c=0,h=s.length;if(c0)if(t1(nu(z,z.length-1|0))){var j;e:{var K=WD(z);if(0<=K)do{var ee=K;K=K+-1|0;var ne=nu(z,ee);if(!t1(ne)){var X=ee+1|0;j=z.substring(0,X);break e}}while(0<=K);j=""}i.e(new FS(j));var q;e:{var fe=WD(z);if(0<=fe)do{var Se=fe;fe=fe+-1|0;var pe=nu(z,Se);if(!t1(pe)){var Me=Se+1|0;q=z.substring(Me);break e}}while(0<=fe);q=z}i.e(new bp(Tu(new v$(q))))}else i.e(new FS(z));e=i.f5()}return new pc(e,La())}bk(){return new b5(this.go_1)}},dfe=class{},hfe=class{ho(e){var t=e.ao();if(t==null){var i="The field '"+e.on()+"' does not define a default value";throw jr.e1(Wi(i))}return new pfe(e.nn(),t)}},pfe=class{constructor(e,t){this.io_1=e,this.jo_1=t}},f$=class n{constructor(e,t){this.ko_1=e,this.lo_1=t;for(var i=this,r=wei(this.lo_1),o=qn.w(ko(r,10)),s=r.i();s.j();){var c=s.k(),h=c.ak();o.e(h)}for(var g=hot(o),x=qn.w(ko(g,10)),C=g.i();C.j();){var A=C.k(),k=jat.ho(A);x.e(k)}i.mo_1=x}toString(){return"Optional("+this.ko_1+", "+Wi(this.lo_1)+")"}equals(e){var t,i;return e instanceof n?i=this.ko_1===e.ko_1:i=!1,i?t=Lt(this.lo_1,e.lo_1):t=!1,t}hashCode(){return gf(31,on(this.ko_1))+Za(this.lo_1)|0}ph(){var e=La(),t=this.lo_1.ph(),i=new y5(this.ko_1).ph(),r;return this.mo_1.p()?r=La():r=Tu(new C$(vei(this))),new pc(e,Mg([t,Rfe(Mg([i,new pc(r,La())]))]))}bk(){for(var e=this.lo_1.bk(),t=this.mo_1,i=qn.w(ko(t,10)),r=t.i();r.j();){var o=r.k(),s=new ffe(o.jo_1,yei(o.io_1));i.e(s)}var c=Cei(i),h;if(c instanceof g$)h=new b5(this.ko_1);else{var g=Kx(bei(c),new b5(this.ko_1));h=new gfe(Mg([g,Kx(xei(cNe),e)]))}return h}},m$=class n{constructor(e,t){this.po_1=e,this.qo_1=t}toString(){return"AlternativesParsing("+Wi(this.qo_1)+")"}equals(e){var t,i;return e instanceof n?i=Lt(this.po_1,e.po_1):i=!1,i?t=Lt(this.qo_1,e.qo_1):t=!1,t}hashCode(){return gf(31,Za(this.po_1))+Za(this.qo_1)|0}ph(){var e=La(),t=qn.f1();t.e(this.po_1.ph());for(var i=this.qo_1.i();i.j();){var r=i.k();t.e(r.ph())}var o=t.f5();return new pc(e,o)}bk(){return this.po_1.bk()}},ffe=class{constructor(e,t){this.so_1=e,this.to_1=t}no(e){return Lt(this.to_1(e),this.so_1)}},g$=class{oo(e){return!0}no(e){return this.oo(e==null||e!=null?e:xi())}},mfe=class{constructor(e){this.uo_1=e}no(e){var t;e:{var i=this.uo_1,r;if(go(i,Ca)?r=i.p():r=!1,r){t=!0;break e}for(var o=i.i();o.j();){var s=o.k();if(!s.no(e)){t=!1;break e}}t=!0}return t}},_$=class{constructor(e,t){this.vo_1=e,this.wo_1=t}},gfe=class{constructor(e){this.xo_1=e}},_fe=class{constructor(e){this.yo_1=e}},vfe=class{constructor(e,t,i){if(this.zo_1=e,this.ap_1=t,this.bp_1=i,!(this.ap_1>=0)){var r="The minimum number of digits ("+this.ap_1+") is negative";throw jr.e1(Wi(r))}if(!(this.ap_1<=9)){var o="The minimum number of digits ("+this.ap_1+") exceeds the length of an Int";throw jr.e1(Wi(o))}}},yfe=class{constructor(e,t){if(this.cp_1=e,this.dp_1=t,!(this.dp_1>=0)){var i="The minimum number of digits ("+this.dp_1+") is negative";throw jr.e1(Wi(i))}if(!(this.dp_1<=9)){var r="The minimum number of digits ("+this.dp_1+") exceeds the length of an Int";throw jr.e1(Wi(r))}}},bfe=class{constructor(e,t,i,r){this.ep_1=e,this.fp_1=t,this.gp_1=i,this.hp_1=r;var o=this.fp_1;if(!(1<=o&&o<=9)){var s="The minimum number of digits ("+this.fp_1+") is not in range 1..9";throw jr.e1(Wi(s))}var c=this.fp_1,h=this.gp_1;if(!(c<=h&&h<=9)){var g="The maximum number of digits ("+this.gp_1+") is not in range "+this.fp_1+"..9";throw jr.e1(Wi(g))}}},b5=class{constructor(e){this.ip_1=e}},x5=class{constructor(e,t){this.op_1=e,this.pp_1=t}a(){return this.op_1}},xfe=class extends x5{constructor(e,t,i,r){if(super(e==t?e:null,r),this.lp_1=e,this.mp_1=t,this.np_1=i,!(this.lp_1==null||Xx(1,9).sd(this.lp_1))){var o="Invalid length for field "+this.pp_1+": "+this.a();throw jr.e1(Wi(o))}}qp(e,t){var i;if(this.lp_1!=null&&t.lengththis.mp_1)i=new w5(this.mp_1);else{var r=ape(t);i=r==null?new w5(9):Gat(this.np_1,e,new S5(r,t.length))}return i}},v$=class extends x5{constructor(e){super(e.length,"the predefined string "+e),this.tp_1=e}qp(e,t){var i;return t===this.tp_1?i=null:i=new Cfe(this.tp_1),i}},wfe=class{up(){return"expected an Int value"}},w5=class{constructor(e){this.vp_1=e}up(){return"expected at most "+this.vp_1+" digits"}},y$=class{constructor(e){this.wp_1=e}up(){return"expected at least "+this.wp_1+" digits"}},Cfe=class{constructor(e){this.xp_1=e}up(){return"expected '"+this.xp_1+"'"}},Sfe=class{constructor(e){this.yp_1=e}up(){return"attempted to overwrite the existing value '"+Wi(this.yp_1)+"'"}},b$=class extends x5{constructor(e,t,i,r,o){if(o=o===T?!1:o,super(e==t?e:null,r),this.bq_1=e,this.cq_1=t,this.dq_1=i,this.eq_1=o,!(this.a()==null||Xx(1,9).sd(this.a()))){var s="Invalid length for field "+this.pp_1+": "+this.a();throw jr.e1(Wi(s))}}qp(e,t){var i;if(this.cq_1!=null&&t.length>this.cq_1)i=new w5(this.cq_1);else if(this.bq_1!=null&&t.length0)){O=!1;break e}}O=!0}if(!O){var ee="Failed requirement.";throw jr.e1(Wi(ee))}var ne;e:{var X=this.wq_1,q;if(go(X,Ca)?q=X.p():q=!1,q){ne=0;break e}for(var fe=0,Se=X.i();Se.j();){var pe=Se.k();pe.a()==null&&(fe=fe+1|0,est(fe))}ne=fe}if(!(ne<=1)){for(var Me=this.wq_1,ie=qn.f1(),Re=Me.i();Re.j();){var Ue=Re.k();Ue.a()==null&&ie.e(Ue)}for(var Ee=qn.w(ko(ie,10)),We=ie.i();We.j();){var Ie=We.k(),Be=Ie.pp_1;Ee.e(Be)}var Ve=Ee,$e="At most one variable-length numeric field in a row is allowed, but got several: "+Wi(Ve)+". Parsing is undefined: for example, with variable-length month number and variable-length day of month, '111' can be parsed as Jan 11th or Nov 1st.";throw jr.e1(Wi($e))}}pq(e,t,i){if((i+this.xq_1|0)>Fa(t)){var r=RS;return r.iq(i,Nei(this))}for(var o={_v:0};(i+o._v|0)0)){var i="Empty string is not allowed";throw jr.e1(Wi(i))}if(t1(nu(this.zq_1,0))){var r="String '"+this.zq_1+"' starts with a digit";throw jr.e1(Wi(r))}if(t1(nu(this.zq_1,this.zq_1.length-1|0))){var o="String '"+this.zq_1+"' ends with a digit";throw jr.e1(Wi(o))}}pq(e,t,i){if((i+this.zq_1.length|0)>Fa(t)){var r=RS;return r.iq(i,Lei(this))}var o=0,s=Fa(this.zq_1)-1|0;if(o<=s)do{var c=o;if(o=o+1|0,nu(t,i+c|0)!==nu(this.zq_1,c)){var h=RS;return h.iq(i,Bei(this,t,i,c))}}while(o<=s);return RS.hq(i+this.zq_1.length|0)}toString(){return"'"+this.zq_1+"'"}},C$=class{constructor(e){this.ar_1=e}pq(e,t,i){return this.ar_1(e),RS.hq(i)}},S5=class n{constructor(e,t){if(this.wl_1=e,this.xl_1=t,!(this.xl_1>=0)){var i="Digits must be non-negative, but was "+this.xl_1;throw jr.e1(Wi(i))}}yl(e){return e===this.xl_1?this.wl_1:e>this.xl_1?gf(this.wl_1,Y2e()[e-this.xl_1|0]):this.wl_1/Y2e()[this.xl_1-e|0]|0}br(e){var t=this.xl_1,i=e.xl_1,r=Math.max(t,i);return Uq(this.yl(r),e.yl(r))}d(e){return this.br(e instanceof n?e:xi())}equals(e){var t;return e instanceof n?t=this.br(e)===0:t=!1,t}toString(){var e=av.g(),t=Y2e()[this.xl_1];return e.cb(this.wl_1/t|0),e.f8(46),e.e8(bst((t+(this.wl_1%t|0)|0).toString(),"1")),e.toString()}hashCode(){throw mf.t6("DecimalFraction is not supposed to be used as a hash key")}},c1=class extends mm{},Tfe=class{constructor(){Z2e=this,this.cr_1=BN.er(Pr.MIN),this.dr_1=BN.er(Pr.MAX)}fr(e,t){var i;if(t===ilt().gh()){var r;try{var o=Pr.parse(Wi(e));r=BN.er(o)}catch(h){var s;if(h instanceof Error){var c=h;throw dNe(c)?uv.dh(c):c}else throw h}i=r}else i=t.lh(e);return i}gr(e,t,i){return t=t===T?OJt():t,i===T?this.fr(e,t):i.fr.call(this,e,t)}},Afe=class{constructor(){Q2e=this,this.fh_1=Mat()}gh(){return oNe()}},BN=class n{static er(e){Nfe();var t=tn(this);return t.bj_1=e,t}static cj(e,t,i){Nfe();var r;try{r=Pr.of(e,t,i)}catch(c){var o;if(c instanceof Error){var s=c;throw tlt(s)?jr.d9(s):s}else throw c}return this.er(r)}ti(){return this.bj_1.year()}vi(){return this.bj_1.monthValue()}xi(){return this.bj_1.dayOfMonth()}dj(){return jei(this.bj_1.dayOfWeek())}equals(e){var t;if(this===e)t=!0;else{var i;e instanceof n?i=this.bj_1===e.bj_1||this.bj_1.equals(e.bj_1):i=!1,t=i}return t}hashCode(){return this.bj_1.hashCode()}toString(){return this.bj_1.toString()}hr(e){return this.bj_1.compareTo(e.bj_1)}d(e){return this.hr(e instanceof n?e:xi())}},Dfe=class{constructor(){X2e=this,this.ir_1=zN.kr(ra.MIN),this.jr_1=zN.kr(ra.MAX)}lr(e,t){var i;if(t===nlt().hh_1){var r;try{var o=ra.parse(Wi(e));r=zN.kr(o)}catch(h){var s;if(h instanceof Error){var c=h;throw dNe(c)?uv.dh(c):c}else throw h}i=r}else i=t.lh(e);return i}mr(e,t,i){return t=t===T?RJt():t,i===T?this.lr(e,t):i.lr.call(this,e,t)}},kfe=class{constructor(){J2e=this,this.hh_1=Nat()}},zN=class n{static kr(e){Pfe();var t=tn(this);return t.ul_1=e,t}static vl(e,t){Pfe();var i=ra.of(e.bj_1,t.zl_1);return this.kr(i)}ti(){return this.ul_1.year()}vi(){return this.ul_1.monthValue()}xi(){return this.ul_1.dayOfMonth()}kl(){return this.ul_1.hour()}ol(){return this.ul_1.minute()}sl(){return this.ul_1.second()}ql(){return jq(this.ul_1.nano())}equals(e){var t;if(this===e)t=!0;else{var i;e instanceof n?i=this.ul_1===e.ul_1||this.ul_1.equals(e.ul_1):i=!1,t=i}return t}hashCode(){return this.ul_1.hashCode()}toString(){return this.ul_1.toString()}nr(e){return this.ul_1.compareTo(e.ul_1)}d(e){return this.nr(e instanceof n?e:xi())}},Mfe=class{constructor(){eNe=this,this.or_1=VN.qr(ii.MIN),this.pr_1=VN.qr(ii.MAX)}rr(e,t){var i;if(t===hNe.gh()){var r;try{var o=ii.parse(Wi(e));r=VN.qr(o)}catch(h){var s;if(h instanceof Error){var c=h;throw dNe(c)?uv.dh(c):c}else throw h}i=r}else i=t.lh(e);return i}sr(e,t,i){return t=t===T?NJt():t,i===T?this.rr(e,t):i.rr.call(this,e,t)}},Ofe=class{gh(){return lNe()}},VN=class n{static qr(e){Ffe();var t=tn(this);return t.zl_1=e,t}static am(e,t,i,r){Ffe(),i=i===T?0:i,r=r===T?0:r;var o;try{o=ii.of(e,t,i,r)}catch(h){var s;if(h instanceof Error){var c=h;throw tlt(c)?jr.d9(c):c}else throw h}return this.qr(o)}kl(){return this.zl_1.hour()}ol(){return this.zl_1.minute()}sl(){return this.zl_1.second()}ql(){return jq(this.zl_1.nano())}equals(e){var t;if(this===e)t=!0;else{var i;e instanceof n?i=this.zl_1===e.zl_1||this.zl_1.equals(e.zl_1):i=!1,t=i}return t}hashCode(){return this.zl_1.hashCode()}toString(){return this.zl_1.toString()}tr(e){return this.zl_1.compareTo(e.zl_1)}d(e){return this.tr(e instanceof n?e:xi())}};function MJt(n){return n.z1_1+1|0}function Eat(n){if(!(1<=n&&n<=7)){var e="Expected ISO day-of-week number in 1..7, got "+n;throw jr.e1(Wi(e))}return Uei().q(n-1|0)}function jpe(n){Qu(n,n.ah_1)}function OJt(){return ilt().gh()}function RJt(){return nlt().hh_1}function NJt(){return hNe.gh()}var PJt,Iat,Tat,nat;function Aat(){if(nat)return Sa;nat=!0,PJt=new m5("NONE",0),Iat=new m5("ZERO",1),Tat=new m5("SPACE",2)}function dv(){return Aat(),Iat}function E5(){return Aat(),Tat}function HN(n,e){return n.xh(e5(e))}function FJt(n,e,t){e=e===T?"":e;var i;if(go(n,XD))n.gi(e,typeof t=="function"?t:xi()),i=Sa;else throw Eu.x2("impossible");return i}function Dat(n,e,t){var i;if(go(n,XD)){var r=(rpe(e)?e:xi()).slice();n.hi(r,typeof t=="function"?t:xi()),i=Sa}else throw Eu.x2("impossible");return i}function oNe(){tk();var n=kat;return jJt(),n.u1()}var kat;function Mat(){tk();var n=Oat;return HJt(),n.u1()}var Oat;function LJt(){return tk(),Rat}var Rat,sNe;function Gpe(n,e){if(tk(),n==null)throw uv.ch("Can not create a "+e+" from the given input: the field "+e+" is missing");return n}var $2e;function aNe(){return $2e===T&&new Qpe,$2e}function BJt(){tk();var n=sNe;return n.fj(zJt)}function zJt(n){return tk(),n.rh(),HN(n,45),n.th(),HN(n,45),n.vh(),Sa}function VJt(){tk();var n=sNe;return n.fj(UJt)}function UJt(n){return tk(),n.rh(),n.th(),n.vh(),Sa}function jJt(){return Iu("ISO_DATE",0,$D,function(){return oNe()},null)}function HJt(){return Iu("ISO_DATE_BASIC",0,$D,function(){return Mat()},null)}function GJt(){return Iu("year",1,ym,function(n){return n.ti()},function(n,e){return n.si(e)})}function YJt(){return Iu("monthNumber",1,ym,function(n){return n.vi()},function(n,e){return n.ui(e)})}function qJt(){return Iu("dayOfMonth",1,ym,function(n){return n.xi()},function(n,e){return n.wi(e)})}function $Jt(){return Iu("isoDayOfWeek",1,ym,function(n){return n.zi()},function(n,e){return n.yi(e)})}var rat;function tk(){rat||(rat=!0,kat=ON(BJt),Oat=ON(VJt),Rat=new UN)}function Nat(){I5();var n=Pat;return JJt(),n.u1()}var Pat;function KJt(){return I5(),Fat}var Fat,Lat;function WJt(){I5();var n=Lat;return n.qk(ZJt)}function ZJt(n){I5(),n.wh(oNe());var e=[QJt];return Dat(n,e,XJt),n.fi(lNe()),Sa}function QJt(n){return I5(),HN(n,116),Sa}function XJt(n){return I5(),HN(n,84),Sa}function JJt(){return Iu("ISO_DATETIME",0,$D,function(){return Nat()},null)}var oat;function I5(){oat||(oat=!0,Pat=ON(WJt),Fat=new _5)}function lNe(){GN();var n=Bat;return lei(),n.u1()}var Bat;function eei(){return GN(),zat}var zat,tei,Vat,sat;function iei(){if(sat)return Sa;sat=!0,tei=new d$("AM",0),Vat=new d$("PM",1)}var Uat;var K2e;function aat(){return K2e===T&&new ofe,K2e}var W2e;function Lfe(){return W2e===T&&new lfe,W2e}function nei(){GN();var n=Uat;return n.bm(rei)}function rei(n){GN(),n.zh(),HN(n,58),n.bi();var e=[oei];return Dat(n,e,sei),Sa}function oei(n){return GN(),Sa}function sei(n){return GN(),HN(n,58),n.di(),FJt(n,T,aei),Sa}function aei(n){return GN(),HN(n,46),n.ei(1,9),Sa}function lat(){return iei(),Vat}function lei(){return Iu("ISO_TIME",0,$D,function(){return lNe()},null)}function cei(){return Iu("hour",1,ym,function(n){return n.kl()},function(n,e){return n.jl(e)})}function uei(){return Iu("minute",1,ym,function(n){return n.ol()},function(n,e){return n.nl(e)})}function dei(){return Iu("second",1,ym,function(n){return n.sl()},function(n,e){return n.rl(e)})}function hei(){return Iu("fractionOfSecond",1,ym,function(n){return n.il()},function(n,e){return n.hl(e)})}function pei(){return Iu("amPm",1,ym,function(n){return n.gl()},function(n,e){return n.zk(e)})}function fei(){return Iu("hourOfAmPm",1,ym,function(n){return n.ml()},function(n,e){return n.ll(e)})}var cat;function GN(){cat||(cat=!0,Bat=ON(nei),zat=new NS)}function mei(n){var e=function(t){return n.mn(t)};return e.callableName="getterNotNull",e}function gei(n){var e=function(t){return n.mn(t)};return e.callableName="getterNotNull",e}function _ei(n){var e=function(t){return n.mn(t)};return e.callableName="getterNotNull",e}var jat;function vei(n){return function(e){for(var t=n.mo_1.i();t.j();){var i=t.k();i.io_1.do(e,i.jo_1)}return Sa}}function yei(n){var e=function(t){return n.eo(t)};return e.callableName="getter",e}function bei(n){var e=function(t){return n.no(t)};return e.callableName="test",e}function xei(n){var e=function(t){return n.oo(t)};return e.callableName="test",e}function wei(n){var e=qn.f1();return f5(e,n),e.f5()}function f5(n,e){if(e instanceof cy)n.e(e.fo_1);else if(e instanceof jN)for(var t=e.ni_1.i();t.j();){var i=t.k();f5(n,i)}else if(!(e instanceof y5))if(e instanceof dfe)f5(n,e.ro_1);else if(e instanceof m$){f5(n,e.po_1);for(var r=e.qo_1.i();r.j();){var o=r.k();f5(n,o)}}else e instanceof f$&&f5(n,e.lo_1)}function Cei(n){return n.p()?cNe:n.v()===1?tpe(n):new mfe(n)}var cNe;var Hat;function Gat(n,e,t){var i=n.do(e,t),r;if(i==null)return null;r=i;var o=r;return new Sfe(o)}var RS;function Sei(n,e,t,i){var r=qn.f1(),o=C2e([new x$(t,n,i)]);e:for(;;){var s=hst(o),c;if(s==null)break e;c=s;var h=c,g=h.jq_1.ej(),x=h.lq_1,C=h.kq_1,A=new ek(n);t:{A.mq_1;var k=0,O=C.nq_1.v()-1|0;if(k<=O)do{var F=k;k=k+1|0;var L=C.nq_1.q(F).pq(g,e,x),z=L,j;if(typeof z=="number")x=L,j=Sa;else if(z instanceof C5){var K=L;r.e(K);break t}else{var ee="Unexpected parse result: "+Wi(L);throw Eu.x2(Wi(ee))}}while(k<=O);if(C.oq_1.p()){if(x===Fa(e))return g;var ne=x,X=new C5(ne,Dei);r.e(X)}else{var q=C.oq_1.v()-1|0;if(0<=q)do{var fe=q;q=q+-1|0,o.e(new x$(g,C.oq_1.q(fe),x))}while(0<=q)}}}if(r.v()>1){var Se=kei,pe=new Ife(Se);Jot(r,pe)}throw w$.sq(r)}function Eei(n,e,t,i,r){i=i===T?0:i;var o;if(r===T)o=Sei(n,e,t,i);else{var s=r;o=(s==null?null:new ek(s)).tq.call(new ek(n),e,t,i)}return o}function Iei(n){return"Parser(commands="+n.toString()+")"}function Tei(n){return Za(n)}function Aei(n,e){if(!(e instanceof ek))return!1;var t=e instanceof ek?e.mq_1:xi();return!!Lt(n,t)}function Dei(){return"There is more input to consume"}function kei(n,e){var t=e.fq_1,i=n.fq_1;return pst(t,i)}function Rfe(n){var e=new pc(La(),La());if(!n.p())for(var t=n.g1(n.v());t.z3();){var i=t.b4(),r=e;e=Yat(i,r)}var o=e;return qat(o,La())}function Mei(n){if(n.v()===1)return"Position "+n.q(0).fq_1+": "+n.q(0).gq_1();var e=33,t=av.j8(gf(e,n.v()));return Jhe(n,t,", ","Errors: ",T,T,T,Oei).toString()}function Yat(n,e){var t;if(n.oq_1.p())t=new pc(zq(n.nq_1,e.nq_1),e.oq_1);else{for(var i=n.oq_1,r=qn.w(ko(i,10)),o=i.i();o.j();){var s=o.k(),c=Yat(s,e);r.e(c)}t=new pc(n.nq_1,r)}return t}function qat(n,e){for(var t=qn.f1(),i=null,r=Vq(e),o=n.nq_1.i();o.j();){var s=o.k();s instanceof bp?i!=null?i.x(s.wq_1):i=Vq(s.wq_1):s instanceof C$?r.e(s):(i!=null&&(t.e(new bp(i)),i=null),t.e(s))}for(var c=n.oq_1,h=qn.f1(),g=c.i();g.j();){var x=g.k(),C=qat(x,r),A;if(C.nq_1.p()){var k=C.oq_1,O;k.p()?O=Tu(C):O=k,A=O}else A=Tu(C);var F=A;S2e(h,F)}var L;h.p()?L=Tu(new pc(r,La())):L=h;var z=L,j;if(i==null)j=new pc(t,z);else{var K;e:{var ee;if(go(z,Ca)?ee=z.p():ee=!1,ee){K=!0;break e}for(var ne=z.i();ne.j();){var X=ne.k(),q=u2e(X.nq_1),fe;if(q==null?fe=null:fe=q instanceof bp,fe===!0){K=!1;break e}}K=!0}if(K)t.e(new bp(i)),j=new pc(t,z);else{for(var Se=qn.w(ko(z,10)),pe=z.i();pe.j();){var Me=pe.k(),ie=u2e(Me.nq_1),Re;ie instanceof bp?Re=new pc(zq(Tu(new bp(zq(i,ie.wq_1))),pot(Me.nq_1,1)),Me.oq_1):ie==null?Re=new pc(Tu(new bp(i)),Me.oq_1):Re=new pc(zq(Tu(new bp(i)),Me.nq_1),Me.oq_1);var Ue=Re;Se.e(Ue)}var Ee=Se;j=new pc(t,Ee)}}return j}function Oei(n){return"position "+n.fq_1+": '"+n.gq_1()+"'"}function Rei(n,e,t,i,r,o){var s=C2e([Ype(n,e,t,i,r,!0)]);return o!=null?(s.e(Ype(n,o,t,i,r)),s.e(new pc(Mg([new FS("+"),new bp(Tu(new b$(o+1|0,e,i,r,!1)))]),La()))):s.e(Ype(n,e,t,i,r)),new pc(La(),s)}function Ype(n,e,t,i,r,o){o=o===T?!1:o;var s=(n??1)+(o?1:0)|0,c;e==null?c=null:c=o?e+1|0:e;var h=c,g=h??2147483647,x=t??0,C=Math.min(g,x);if(s>=C)return Hpe(o,i,r,s,g);var A=Hpe(o,i,r,s,s),k=s;if(kg){var L=new FS(cst(" ",x-g|0));F=Rfe(Mg([new pc(Tu(L),La()),A]))}else if(x===g)F=A;else{var z=new pc(La(),Mg([Hpe(o,i,r,x+1|0,g),A]));F=z}return F}function uNe(n){for(var e=n.wq_1,t=qn.w(ko(e,10)),i=e.i();i.j();){var r=i.k(),o=r.a(),s=(o==null?"at least one digit":""+o+" digits")+(" for "+r.pp_1);t.e(s)}var c=t,h;return n.yq_1?h="a number with at least "+n.xq_1+" digits: "+Wi(c):h="a number with exactly "+n.xq_1+" digits: "+Wi(c),h}function Nei(n){return function(){return"Unexpected end of input: yet to parse "+uNe(n)}}function Pei(n,e){return function(){return"Only found "+n._v+" digits in a row, but need to parse "+uNe(e)}}function Fei(n,e,t,i){return function(){return"Can not interpret the string '"+n+"' as "+e.wq_1.q(t).pp_1+": "+i.up()}}function Lei(n){return function(){return"Unexpected end of input: yet to parse '"+n.zq_1+"'"}}function Bei(n,e,t,i){return function(){var r=e,o=t,s=(t+i|0)+1|0,c=Wi(MN(r,o,s));return"Expected "+n.zq_1+" but got "+c}}function Hpe(n,e,t,i,r){if(!(r>=(1+(n?1:0)|0))){var o="Check failed.";throw Eu.x2(Wi(o))}var s=qn.f1();n&&s.e(new FS("-")),s.e(new bp(Tu(new b$(i-(n?1:0)|0,r-(n?1:0)|0,e,t,n))));var c=s.f5();return new pc(c,La())}function Y2e(){return zei(),$at}var $at,uat;function zei(){uat||(uat=!0,$at=new Int32Array([1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9]))}var Kat,Wat,Zat,Qat,Xat,Jat,elt;function Vei(){return[Hei(),Gei(),Yei(),qei(),$ei(),Kei(),Wei()]}function Uei(){return q2e==null&&(q2e=fst(Vei())),q2e}var dat;function YN(){if(dat)return Sa;dat=!0,Kat=new c1("MONDAY",0),Wat=new c1("TUESDAY",1),Zat=new c1("WEDNESDAY",2),Qat=new c1("THURSDAY",3),Xat=new c1("FRIDAY",4),Jat=new c1("SATURDAY",5),elt=new c1("SUNDAY",6)}var q2e;function jei(n){return Eat(n.value())}function Hei(){return YN(),Kat}function Gei(){return YN(),Wat}function Yei(){return YN(),Zat}function qei(){return YN(),Qat}function $ei(){return YN(),Xat}function Kei(){return YN(),Jat}function Wei(){return YN(),elt}function dNe(n){return rlt(n,"DateTimeParseException")}function tlt(n){return rlt(n,"DateTimeException")}var Z2e;function Nfe(){return Z2e===T&&new Tfe,Z2e}var Q2e;function ilt(){return Q2e===T&&new Afe,Q2e}var X2e;function Pfe(){return X2e===T&&new Dfe,X2e}var J2e;function nlt(){return J2e===T&&new kfe,J2e}var eNe;function Ffe(){return eNe===T&&new Mfe,eNe}var hNe;function rlt(n,e){return n.name==e}dt(uv,"DateTimeFormatException",uv.bh);dt(g5,"AbstractDateTimeFormat");dt(m5,"Padding");_l(o$,"WithDate");_l(s$,"WithTime");_l(XD,"AbstractDateTimeFormatBuilder");dt(UN,"IncompleteLocalDate",UN);Yi(qpe);_l(a$,"AbstractWithDateBuilder",T,T,[o$]);gi(wm).hi=tNe;gi(wm).gi=iNe;gi(wm).xh=nNe;gi(wm).li=rNe;gi(wm).qh=vat;gi(wm).rh=hat;gi(wm).sh=yat;gi(wm).th=pat;gi(wm).uh=bat;gi(wm).vh=fat;dt(wm,"Builder",T,T,[XD,a$]);dt(l$,"LocalDateFormat");dt($pe,"SignedIntFieldFormatDirective");dt(Kpe,"YearDirective");dt(JD,"UnsignedIntFieldFormatDirective");dt(Wpe,"MonthDirective");dt(Zpe,"DayDirective");Pi(Qpe,"DateFields");Yi(Xpe);_l(c$,"AbstractWithTimeBuilder",T,T,[s$]);_l(Jpe,"AbstractWithDateTimeBuilder",T,T,[a$,c$,s$,o$]);gi(fc).hi=tNe;gi(fc).gi=iNe;gi(fc).xh=nNe;gi(fc).li=rNe;gi(fc).hj=IJt;gi(fc).tk=TJt;gi(fc).qh=vat;gi(fc).rh=hat;gi(fc).sh=yat;gi(fc).th=pat;gi(fc).uh=bat;gi(fc).vh=fat;gi(fc).wh=SJt;gi(fc).yh=xat;gi(fc).zh=mat;gi(fc).ai=wat;gi(fc).bi=gat;gi(fc).ci=Cat;gi(fc).di=_at;gi(fc).ei=Sat;gi(fc).fi=EJt;dt(fc,"Builder",T,T,[XD,Jpe]);dt(efe,"LocalDateTimeFormat");_l(u$,"TimeFieldContainer");dt(_5,"IncompleteLocalDateTime",_5,T,[u$]);gi(NS).hl=AJt;gi(NS).il=DJt;dt(NS,"IncompleteLocalTime",NS,T,[u$]);dt(d$,"AmPmMarker");Yi(tfe);gi(_f).hi=tNe;gi(_f).gi=iNe;gi(_f).xh=nNe;gi(_f).li=rNe;gi(_f).yh=xat;gi(_f).zh=mat;gi(_f).ai=wat;gi(_f).bi=gat;gi(_f).ci=Cat;gi(_f).di=_at;gi(_f).ei=Sat;dt(_f,"Builder",T,T,[XD,c$]);dt(h$,"LocalTimeFormat");dt(ife,"HourDirective");dt(nfe,"MinuteDirective");dt(rfe,"SecondDirective");Yi(ofe);dt(sfe,"DecimalFractionFieldFormatDirective");dt(afe,"FractionalSecondDirective");Pi(lfe,"TimeFields");dt(d1,"AppendableFormatStructure",d1);dt(p$,"AbstractFieldSpec");dt(v5,"GenericFieldSpec");_l(cfe,"Accessor");gi(xm).mn=kJt;dt(xm,"PropertyAccessor",T,T,[cfe]);dt(u1,"UnsignedFieldSpec");dt(jN,"ConcatenatedFormatStructure");dt(ufe,"CachedFormatStructure");_l(PS,"NonConcatenatedFormatStructure");dt(cy,"BasicFormatStructure",T,T,[PS]);dt(y5,"ConstantFormatStructure",T,T,[PS]);dt(dfe,"SignedFormatStructure",T,T,[PS]);Yi(hfe);dt(pfe,"PropertyWithDefault");dt(f$,"OptionalFormatStructure",T,T,[PS]);dt(m$,"AlternativesParsingFormatStructure",T,T,[PS]);dt(ffe,"ComparisonPredicate");Pi(g$,"Truth");dt(mfe,"ConjunctionPredicate");dt(_$,"SpacePaddedFormatter");dt(gfe,"ConditionalFormatter");dt(_fe,"ConcatenatedFormatter");dt(vfe,"SignedIntFormatterStructure");dt(yfe,"UnsignedIntFormatterStructure");dt(bfe,"DecimalFractionFormatterStructure");dt(b5,"ConstantStringFormatterStructure");dt(x5,"NumberConsumer");dt(xfe,"FractionPartConsumer");dt(v$,"ConstantNumberConsumer");Pi(wfe,"ExpectedInt");dt(w5,"TooManyDigits");dt(y$,"TooFewDigits");dt(Cfe,"WrongConstant");dt(Sfe,"Conflicting");dt(b$,"UnsignedIntConsumer");dt(C5,"ParseError");Yi(Efe);dt(x$,"ParserState");dt(Ife,"sam$kotlin_Comparator$0");dt(ek,"Parser");dt(pc,"ParserStructure");dt(w$,"ParseException");dt(bp,"NumberSpanParserOperation");dt(FS,"PlainStringParserOperation");dt(C$,"UnconditionalModification");dt(S5,"DecimalFraction",T,T,[sv]);dt(c1,"DayOfWeek");Yi(Tfe);Pi(Afe,"Formats");dt(BN,"LocalDate",T,T,[sv]);Yi(Dfe);Pi(kfe,"Formats");dt(zN,"LocalDateTime",T,T,[sv]);Yi(Mfe);Pi(Ofe,"Formats");dt(VN,"LocalTime",T,T,[sv]);sNe=new qpe;Lat=new Xpe;Uat=new tfe;jat=new hfe;cNe=new g$;Hat=new wfe;RS=new Efe;hNe=new Ofe;var ult=jh(clt(),1),Le=Math.imul,Vfe=class{constructor(){pNe=this;var e=this;e.ur_1=[new ks(Vs(ni),yve())]}vr(){return qge()}},S$=class{constructor(){fNe=this;var e=new _n("at.bindoc.virtualclinic.ProcessResult.Data",this,1);e.qg("cases",!1),this.wr_1=e}pe(){return this.wr_1}ng(){return[jge().ur_1[0]]}},Ufe=class{vr(){return $ge()}},E$=class{constructor(){mNe=this;var e=new _n("at.bindoc.virtualclinic.ProcessResult.AtError",this,2);e.qg("lineNumber",!1),e.qg("message",!1),this.xr_1=e}pe(){return this.xr_1}ng(){return[nn(),xn()]}},I$=class n{constructor(e){jge(),this.cases=e}yr(){return this.cases}equals(e){return this===e?!0:e==null||!SS(this).equals(SS(e))?!1:(e instanceof n||xi(),ey(this.cases,e.cases))}hashCode(){return ty(this.cases)}ke(){return this.cases}zr(e){return new n(e)}copy(e,t){return e=e===T?this.cases:e,this.zr(e)}toString(){return"Data(cases="+Wi(this.cases)+")"}static as(e,t,i){jge(),(1&e)!==1&&On(e,1,qge().wr_1);var r=tn(this);return r.cases=t,r}},Wl=class n extends Error{constructor(e,t){return new.target.ds(e,t)}static ds(e,t){var i=tn(this);return IN(i,t),Qu(i,i.cs_1),i.lineNumber=e,i.bs_1=t,i}es(){return this.lineNumber}x8(){return this.bs_1}ke(){return this.lineNumber}le(){return this.bs_1}fs(e,t){return n.ds(e,t)}copy(e,t,i){return e=e===T?this.lineNumber:e,t=t===T?this.bs_1:t,this.fs(e,t)}toString(){return"AtError(lineNumber="+this.lineNumber+", message="+this.bs_1+")"}hashCode(){var e=this.lineNumber;return e=Le(e,31)+on(this.bs_1)|0,e}equals(e){if(this===e)return!0;if(!(e instanceof n))return!1;var t=e instanceof n?e:xi();return!(this.lineNumber!==t.lineNumber||this.bs_1!==t.bs_1)}static gs(e,t,i,r){(3&e)!==3&&On(e,3,$ge().xr_1);var o=tn(this);return IN(o),o.lineNumber=t,o.bs_1=i,o}get message(){return this.x8()}},jfe=class{constructor(){gNe=this;var e=this;e.hs_1=[null,new ks(Vs(Wl),$ge())]}vr(){return xFe()}},T$=class{constructor(){_Ne=this;var e=new _n("at.bindoc.virtualclinic.ProcessResult",this,2);e.qg("data",!1),e.qg("errors",!1),this.is_1=e}pe(){return this.is_1}ng(){var e=Hge().hs_1;return[qge(),e[1]]}},VS=class n{constructor(e,t){Hge(),this.data=e,this.errors=t}js(){return this.data}ks(){return this.errors}ke(){return this.data}le(){return this.errors}ls(e,t){return new n(e,t)}copy(e,t,i){return e=e===T?this.data:e,t=t===T?this.errors:t,this.ls(e,t)}toString(){return"ProcessResult(data="+this.data.toString()+", errors="+Wi(this.errors)+")"}hashCode(){var e=this.data.hashCode();return e=Le(e,31)+Za(this.errors)|0,e}equals(e){if(this===e)return!0;if(!(e instanceof n))return!1;var t=e instanceof n?e:xi();return!(!this.data.equals(t.data)||!Lt(this.errors,t.errors))}static ms(e,t,i,r){Hge(),(3&e)!==3&&On(e,3,xFe().is_1);var o=tn(this);return o.data=t,o.errors=i,o}},Hfe=class{vr(){return ma()}},A$=class{constructor(){vNe=this;var e=new _n("at.bindoc.virtualclinic.Krankenanstaltennummer",this,1);e.qg("value",!1),this.ns_1=e}pe(){return this.ns_1}ng(){return[xn()]}},ik=class n{constructor(e){this.value=e}u1(){return this.value}ke(){return this.value}os(e){return new n(e)}copy(e,t){return e=e===T?this.value:e,this.os(e)}toString(){return"Krankenanstaltennummer(value="+this.value+")"}hashCode(){return on(this.value)}equals(e){if(this===e)return!0;if(!(e instanceof n))return!1;var t=e instanceof n?e:xi();return this.value===t.value}static ps(e,t,i){(1&e)!==1&&On(e,1,ma().ns_1);var r=tn(this);return r.value=t,r}},Gfe=class{vr(){return pZ()}},D$=class{constructor(){yNe=this;var e=new _n("at.bindoc.virtualclinic.Gemeindecode",this,1);e.qg("value",!1),this.qs_1=e}pe(){return this.qs_1}ng(){return[xn()]}},T5=class n{constructor(e){this.value=e}u1(){return this.value}ke(){return this.value}os(e){return new n(e)}copy(e,t){return e=e===T?this.value:e,this.os(e)}toString(){return"Gemeindecode(value="+this.value+")"}hashCode(){return on(this.value)}equals(e){if(this===e)return!0;if(!(e instanceof n))return!1;var t=e instanceof n?e:xi();return this.value===t.value}static rs(e,t,i){(1&e)!==1&&On(e,1,pZ().qs_1);var r=tn(this);return r.value=t,r}},Yfe=class{vr(){return yU()}},k$=class{constructor(){bNe=this;var e=new _n("at.bindoc.virtualclinic.KostentraegerCode",this,1);e.qg("value",!1),this.ss_1=e}pe(){return this.ss_1}ng(){return[xn()]}},qN=class n{constructor(e){this.value=e}u1(){return this.value}ke(){return this.value}os(e){return new n(e)}copy(e,t){return e=e===T?this.value:e,this.os(e)}toString(){return"KostentraegerCode(value="+this.value+")"}hashCode(){return on(this.value)}equals(e){if(this===e)return!0;if(!(e instanceof n))return!1;var t=e instanceof n?e:xi();return this.value===t.value}static ts(e,t,i){(1&e)!==1&&On(e,1,yU().ss_1);var r=tn(this);return r.value=t,r}},qfe=class{vr(){return ZN()}},M$=class{constructor(){xNe=this;var e=new _n("at.bindoc.virtualclinic.case.Aufnahmezahl",this,1);e.qg("value",!1),this.us_1=e}pe(){return this.us_1}ng(){return[xn()]}},nk=class n{constructor(e){this.value=e}u1(){return this.value}toHashedValue(){return new n(Xct.vs(this.value))}ke(){return this.value}os(e){return new n(e)}copy(e,t){return e=e===T?this.value:e,this.os(e)}toString(){return"Aufnahmezahl(value="+this.value+")"}hashCode(){return on(this.value)}equals(e){if(this===e)return!0;if(!(e instanceof n))return!1;var t=e instanceof n?e:xi();return this.value===t.value}static ws(e,t,i){(1&e)!==1&&On(e,1,ZN().us_1);var r=tn(this);return r.value=t,r}},$fe=class{vr(){return Kge()}},O$=class{constructor(){wNe=this;var e=new _n("at.bindoc.virtualclinic.case.DatensatzId",this,1);e.qg("value",!1),this.xs_1=e}pe(){return this.xs_1}ng(){return[xn()]}},R$=class n{constructor(e){this.value=e}u1(){return this.value}ke(){return this.value}os(e){return new n(e)}copy(e,t){return e=e===T?this.value:e,this.os(e)}toString(){return"DatensatzId(value="+this.value+")"}hashCode(){return on(this.value)}equals(e){if(this===e)return!0;if(!(e instanceof n))return!1;var t=e instanceof n?e:xi();return this.value===t.value}static ys(e,t,i){(1&e)!==1&&On(e,1,Kge().xs_1);var r=tn(this);return r.value=t,r}},Kfe=class{vr(){return Wge()}},N$=class{constructor(){CNe=this;var e=new _n("at.bindoc.virtualclinic.case.CaseIdentifier",this,4);e.qg("krankenanstaltennummer",!1),e.qg("aufnahmezahl",!1),e.qg("datensatzId",!1),e.qg("aufnahmedatum",!1),this.zs_1=e}pe(){return this.zs_1}ng(){return[ma(),ZN(),it(Kge()),CU()]}},P$=class n{constructor(e,t,i,r){this.krankenanstaltennummer=e,this.aufnahmezahl=t,this.datensatzId=i,this.aufnahmedatum=r}at(){return this.krankenanstaltennummer}bt(){return this.aufnahmezahl}ct(){return this.datensatzId}dt(){return this.aufnahmedatum}toHashedCaseIdentifier(){return new n(this.krankenanstaltennummer,this.aufnahmezahl.toHashedValue(),this.datensatzId,this.aufnahmedatum)}ke(){return this.krankenanstaltennummer}le(){return this.aufnahmezahl}et(){return this.datensatzId}ft(){return this.aufnahmedatum}gt(e,t,i,r){return new n(e,t,i,r)}copy(e,t,i,r,o){return e=e===T?this.krankenanstaltennummer:e,t=t===T?this.aufnahmezahl:t,i=i===T?this.datensatzId:i,r=r===T?this.aufnahmedatum:r,this.gt(e,t,i,r)}toString(){return"CaseIdentifier(krankenanstaltennummer="+this.krankenanstaltennummer.toString()+", aufnahmezahl="+this.aufnahmezahl.toString()+", datensatzId="+Lo(this.datensatzId)+", aufnahmedatum="+Wi(this.aufnahmedatum)+")"}hashCode(){var e=this.krankenanstaltennummer.hashCode();return e=Le(e,31)+this.aufnahmezahl.hashCode()|0,e=Le(e,31)+(this.datensatzId==null?0:this.datensatzId.hashCode())|0,e=Le(e,31)+this.aufnahmedatum.hashCode()|0,e}equals(e){if(this===e)return!0;if(!(e instanceof n))return!1;var t=e instanceof n?e:xi();return!(!this.krankenanstaltennummer.equals(t.krankenanstaltennummer)||!this.aufnahmezahl.equals(t.aufnahmezahl)||!Lt(this.datensatzId,t.datensatzId)||!this.aufnahmedatum.equals(t.aufnahmedatum))}static ht(e,t,i,r,o,s){(15&e)!==15&&On(e,15,Wge().zs_1);var c=tn(this);return c.krankenanstaltennummer=t,c.aufnahmezahl=i,c.datensatzId=r,c.aufnahmedatum=o,c}},Wfe=class{vr(){return Zge()}},F$=class{constructor(){SNe=this;var e=new _n("at.bindoc.virtualclinic.case.VirtualClinicCase.CaseId",this,1);e.qg("value",!1),this.it_1=e}pe(){return this.it_1}ng(){return[xn()]}},Zfe=class{constructor(){ENe=this,this.J=new rk("J"),this.K=new rk("K"),this.N=new rk("N")}jt(){return this.J}kt(){return this.K}lt(){return this.N}vr(){return Qge()}},L$=class{constructor(){TNe=this;var e=new _n("at.bindoc.virtualclinic.case.VirtualClinicCase.X01Basisdaten.Fondsrelevanz",this,1);e.qg("value",!1),this.mt_1=e}pe(){return this.mt_1}ng(){return[xn()]}},Qfe=class{vr(){return Xge()}},B$=class{constructor(){ANe=this;var e=new _n("at.bindoc.virtualclinic.case.VirtualClinicCase.X01Basisdaten.Behandlungsart",this,1);e.qg("value",!1),this.nt_1=e}pe(){return this.nt_1}ng(){return[xn()]}},Xfe=class{vr(){return Jge()}},z$=class{constructor(){DNe=this;var e=new _n("at.bindoc.virtualclinic.case.VirtualClinicCase.X01Basisdaten.Staatsbuergerschaft",this,1);e.qg("value",!1),this.ot_1=e}pe(){return this.ot_1}ng(){return[xn()]}},Jfe=class{vr(){return e_e()}},V$=class{constructor(){kNe=this;var e=new _n("at.bindoc.virtualclinic.case.VirtualClinicCase.X01Basisdaten.Wohnsitz",this,3);e.qg("staat",!1),e.qg("postalCode",!1),e.qg("gemeindecode",!1),this.pt_1=e}pe(){return this.pt_1}ng(){return[Cve(),wU(),pZ()]}},eme=class{vr(){return uZ()}},U$=class{constructor(){MNe=this;var e=new _n("at.bindoc.virtualclinic.case.VirtualClinicCase.X01Basisdaten.Aufnahmeart",this,1);e.qg("value",!1),this.qt_1=e}pe(){return this.qt_1}ng(){return[xn()]}},tme=class{vr(){return t_e()}},j$=class{constructor(){ONe=this;var e=new _n("at.bindoc.virtualclinic.case.VirtualClinicCase.X01Basisdaten.Transportart",this,1);e.qg("value",!1),this.rt_1=e}pe(){return this.rt_1}ng(){return[xn()]}},ime=class{vr(){return i_e()}},H$=class{constructor(){RNe=this;var e=new _n("at.bindoc.virtualclinic.case.VirtualClinicCase.X01Basisdaten.Entlassung.Art",this,1);e.qg("value",!1),this.st_1=e}pe(){return this.st_1}ng(){return[xn()]}},G$=class n{constructor(e){this.value=e}u1(){return this.value}ke(){return this.value}os(e){return new n(e)}copy(e,t){return e=e===T?this.value:e,this.os(e)}toString(){return"Art(value="+this.value+")"}hashCode(){return on(this.value)}equals(e){if(this===e)return!0;if(!(e instanceof n))return!1;var t=e instanceof n?e:xi();return this.value===t.value}static tt(e,t,i){(1&e)!==1&&On(e,1,i_e().st_1);var r=tn(this);return r.value=t,r}},nme=class{vr(){return n_e()}},Y$=class{constructor(){NNe=this;var e=new _n("at.bindoc.virtualclinic.case.VirtualClinicCase.X01Basisdaten.Entlassung",this,2);e.qg("art",!1),e.qg("datum",!1),this.ut_1=e}pe(){return this.ut_1}ng(){return[i_e(),QN()]}},rk=class n{constructor(e){INe(),this.value=e}u1(){return this.value}ke(){return this.value}os(e){return new n(e)}copy(e,t){return e=e===T?this.value:e,this.os(e)}toString(){return"Fondsrelevanz(value="+this.value+")"}hashCode(){return on(this.value)}equals(e){if(this===e)return!0;if(!(e instanceof n))return!1;var t=e instanceof n?e:xi();return this.value===t.value}static vt(e,t,i){INe(),(1&e)!==1&&On(e,1,Qge().mt_1);var r=tn(this);return r.value=t,r}},q$=class n{constructor(e){this.value=e}u1(){return this.value}ke(){return this.value}os(e){return new n(e)}copy(e,t){return e=e===T?this.value:e,this.os(e)}toString(){return"Behandlungsart(value="+this.value+")"}hashCode(){return on(this.value)}equals(e){if(this===e)return!0;if(!(e instanceof n))return!1;var t=e instanceof n?e:xi();return this.value===t.value}static wt(e,t,i){(1&e)!==1&&On(e,1,Xge().nt_1);var r=tn(this);return r.value=t,r}},$$=class n{constructor(e){this.value=e}u1(){return this.value}ke(){return this.value}os(e){return new n(e)}copy(e,t){return e=e===T?this.value:e,this.os(e)}toString(){return"Staatsbuergerschaft(value="+this.value+")"}hashCode(){return on(this.value)}equals(e){if(this===e)return!0;if(!(e instanceof n))return!1;var t=e instanceof n?e:xi();return this.value===t.value}static xt(e,t,i){(1&e)!==1&&On(e,1,Jge().ot_1);var r=tn(this);return r.value=t,r}},K$=class n{constructor(e,t,i){this.staat=e,this.postalCode=t,this.gemeindecode=i}yt(){return this.staat}zt(){return this.postalCode}au(){return this.gemeindecode}ke(){return this.staat}le(){return this.postalCode}et(){return this.gemeindecode}bu(e,t,i){return new n(e,t,i)}copy(e,t,i,r){return e=e===T?this.staat:e,t=t===T?this.postalCode:t,i=i===T?this.gemeindecode:i,this.bu(e,t,i)}toString(){return"Wohnsitz(staat="+this.staat.toString()+", postalCode="+this.postalCode.toString()+", gemeindecode="+this.gemeindecode.toString()+")"}hashCode(){var e=this.staat.hashCode();return e=Le(e,31)+this.postalCode.hashCode()|0,e=Le(e,31)+this.gemeindecode.hashCode()|0,e}equals(e){if(this===e)return!0;if(!(e instanceof n))return!1;var t=e instanceof n?e:xi();return!(!this.staat.equals(t.staat)||!this.postalCode.equals(t.postalCode)||!this.gemeindecode.equals(t.gemeindecode))}static cu(e,t,i,r,o){(7&e)!==7&&On(e,7,e_e().pt_1);var s=tn(this);return s.staat=t,s.postalCode=i,s.gemeindecode=r,s}},A5=class n{constructor(e){this.value=e}u1(){return this.value}ke(){return this.value}os(e){return new n(e)}copy(e,t){return e=e===T?this.value:e,this.os(e)}toString(){return"Aufnahmeart(value="+this.value+")"}hashCode(){return on(this.value)}equals(e){if(this===e)return!0;if(!(e instanceof n))return!1;var t=e instanceof n?e:xi();return this.value===t.value}static du(e,t,i){(1&e)!==1&&On(e,1,uZ().qt_1);var r=tn(this);return r.value=t,r}},W$=class n{constructor(e){this.value=e}u1(){return this.value}ke(){return this.value}os(e){return new n(e)}copy(e,t){return e=e===T?this.value:e,this.os(e)}toString(){return"Transportart(value="+this.value+")"}hashCode(){return on(this.value)}equals(e){if(this===e)return!0;if(!(e instanceof n))return!1;var t=e instanceof n?e:xi();return this.value===t.value}static eu(e,t,i){(1&e)!==1&&On(e,1,t_e().rt_1);var r=tn(this);return r.value=t,r}},Z$=class n{constructor(e,t){this.art=e,this.datum=t}fu(){return this.art}gu(){return this.datum}ke(){return this.art}le(){return this.datum}hu(e,t){return new n(e,t)}copy(e,t,i){return e=e===T?this.art:e,t=t===T?this.datum:t,this.hu(e,t)}toString(){return"Entlassung(art="+this.art.toString()+", datum="+Wi(this.datum)+")"}hashCode(){var e=this.art.hashCode();return e=Le(e,31)+this.datum.hashCode()|0,e}equals(e){if(this===e)return!0;if(!(e instanceof n))return!1;var t=e instanceof n?e:xi();return!(!this.art.equals(t.art)||!this.datum.equals(t.datum))}static iu(e,t,i,r){(3&e)!==3&&On(e,3,n_e().ut_1);var o=tn(this);return o.art=t,o.datum=i,o}},rme=class{constructor(){this.NUMBER_OF_COLUMNS=27}ju(){return this.NUMBER_OF_COLUMNS}vr(){return r_e()}},Q$=class{constructor(){PNe=this;var e=new _n("at.bindoc.virtualclinic.case.VirtualClinicCase.X01Basisdaten",this,16);e.qg("aufnahmezeit",!1),e.qg("behandlungsart",!1),e.qg("agmId",!1),e.qg("gender",!1),e.qg("staatsbuergerschaft",!1),e.qg("wohnsitz",!1),e.qg("aufnahmeart1",!1),e.qg("aufnahmeart2",!1),e.qg("transportart",!1),e.qg("zugewiesenVon",!1),e.qg("zugewiesenZu",!1),e.qg("entlassung",!1),e.qg("leistungszustaendigerKostentraeger",!1),e.qg("fondsrelevanz",!1),e.qg("abrechnenderKostentraeger",!1),e.qg("abrechnungsquartalDerSozialversicherung",!1),this.ku_1=e}pe(){return this.ku_1}ng(){return[Sve(),Xge(),bve(),wve(),Jge(),e_e(),it(uZ()),it(uZ()),it(t_e()),it(ma()),it(ma()),it(n_e()),it(yU()),it(Qge()),it(yU()),it(xn())]}},ome=class{vr(){return o_e()}},X$=class{constructor(){FNe=this;var e=new _n("at.bindoc.virtualclinic.case.VirtualClinicCase.X02Hauptkostenstellen.Abgang.Art",this,1);e.qg("value",!1),this.lu_1=e}pe(){return this.lu_1}ng(){return[xn()]}},J$=class n{constructor(e){this.value=e}u1(){return this.value}ke(){return this.value}os(e){return new n(e)}copy(e,t){return e=e===T?this.value:e,this.os(e)}toString(){return"Art(value="+this.value+")"}hashCode(){return on(this.value)}equals(e){if(this===e)return!0;if(!(e instanceof n))return!1;var t=e instanceof n?e:xi();return this.value===t.value}static mu(e,t,i){(1&e)!==1&&On(e,1,o_e().lu_1);var r=tn(this);return r.value=t,r}},sme=class{vr(){return s_e()}},eK=class{constructor(){LNe=this;var e=new _n("at.bindoc.virtualclinic.case.VirtualClinicCase.X02Hauptkostenstellen.Abgang",this,2);e.qg("datum",!1),e.qg("art",!1),this.nu_1=e}pe(){return this.nu_1}ng(){return[QN(),o_e()]}},tK=class n{constructor(e,t){this.datum=e,this.art=t}gu(){return this.datum}fu(){return this.art}ke(){return this.datum}le(){return this.art}ou(e,t){return new n(e,t)}copy(e,t,i){return e=e===T?this.datum:e,t=t===T?this.art:t,this.ou(e,t)}toString(){return"Abgang(datum="+Wi(this.datum)+", art="+this.art.toString()+")"}hashCode(){var e=this.datum.hashCode();return e=Le(e,31)+this.art.hashCode()|0,e}equals(e){if(this===e)return!0;if(!(e instanceof n))return!1;var t=e instanceof n?e:xi();return!(!this.datum.equals(t.datum)||!this.art.equals(t.art))}static pu(e,t,i,r){(3&e)!==3&&On(e,3,s_e().nu_1);var o=tn(this);return o.datum=t,o.art=i,o}},ame=class{vr(){return a_e()}},iK=class{constructor(){BNe=this;var e=new _n("at.bindoc.virtualclinic.case.VirtualClinicCase.X02Hauptkostenstellen",this,7);e.qg("positionsnummer",!1),e.qg("funktionscode",!1),e.qg("zugang",!1),e.qg("physischeAnwesenheit",!1),e.qg("abgang",!1),e.qg("neugeboren",!1),e.qg("aufnahmezahl",!1),this.qu_1=e}pe(){return this.qu_1}ng(){return[xU(),uy(),QN(),it(o5()),it(s_e()),it(o5()),it(ZN())]}},lme=class{vr(){return l_e()}},nK=class{constructor(){zNe=this;var e=new _n("at.bindoc.virtualclinic.case.VirtualClinicCase.X03Diagnose.Code",this,1);e.qg("value",!1),this.ru_1=e}pe(){return this.ru_1}ng(){return[xn()]}},cme=class{constructor(){VNe=this,this.Hauptdiagnose=new WN("H"),this.Zusatzdiagnose=new WN("Z")}su(){return this.Hauptdiagnose}tu(){return this.Zusatzdiagnose}vr(){return c_e()}},rK=class{constructor(){jNe=this;var e=new _n("at.bindoc.virtualclinic.case.VirtualClinicCase.X03Diagnose.Typ",this,1);e.qg("value",!1),this.uu_1=e}pe(){return this.uu_1}ng(){return[xn()]}},ume=class{vr(){return u_e()}},oK=class{constructor(){HNe=this;var e=new _n("at.bindoc.virtualclinic.case.VirtualClinicCase.X03Diagnose.Art",this,1);e.qg("value",!1),this.vu_1=e}pe(){return this.vu_1}ng(){return[xn()]}},sK=class n{constructor(e){this.value=e}u1(){return this.value}ke(){return this.value}os(e){return new n(e)}copy(e,t){return e=e===T?this.value:e,this.os(e)}toString(){return"Code(value="+this.value+")"}hashCode(){return on(this.value)}equals(e){if(this===e)return!0;if(!(e instanceof n))return!1;var t=e instanceof n?e:xi();return this.value===t.value}static wu(e,t,i){(1&e)!==1&&On(e,1,l_e().ru_1);var r=tn(this);return r.value=t,r}},WN=class n{constructor(e){UNe(),this.value=e}u1(){return this.value}ke(){return this.value}os(e){return new n(e)}copy(e,t){return e=e===T?this.value:e,this.os(e)}toString(){return"Typ(value="+this.value+")"}hashCode(){return on(this.value)}equals(e){if(this===e)return!0;if(!(e instanceof n))return!1;var t=e instanceof n?e:xi();return this.value===t.value}static xu(e,t,i){UNe(),(1&e)!==1&&On(e,1,c_e().uu_1);var r=tn(this);return r.value=t,r}},aK=class n{constructor(e){this.value=e}u1(){return this.value}ke(){return this.value}os(e){return new n(e)}copy(e,t){return e=e===T?this.value:e,this.os(e)}toString(){return"Art(value="+this.value+")"}hashCode(){return on(this.value)}equals(e){if(this===e)return!0;if(!(e instanceof n))return!1;var t=e instanceof n?e:xi();return this.value===t.value}static yu(e,t,i){(1&e)!==1&&On(e,1,u_e().vu_1);var r=tn(this);return r.value=t,r}},dme=class{vr(){return d_e()}},lK=class{constructor(){GNe=this;var e=new _n("at.bindoc.virtualclinic.case.VirtualClinicCase.X03Diagnose",this,5);e.qg("code",!1),e.qg("typ",!1),e.qg("art",!1),e.qg("stationaerErworben",!1),e.qg("aufnahmezahl",!1),this.zu_1=e}pe(){return this.zu_1}ng(){return[l_e(),c_e(),it(u_e()),it(o5()),it(ZN())]}},hme=class{vr(){return bU()}},cK=class{constructor(){YNe=this;var e=new _n("at.bindoc.virtualclinic.case.VirtualClinicCase.X04MedizinischeLeistung.Code",this,1);e.qg("value",!1),this.av_1=e}pe(){return this.av_1}ng(){return[xn()]}},pme=class{vr(){return h_e()}},uK=class{constructor(){qNe=this;var e=new _n("at.bindoc.virtualclinic.case.VirtualClinicCase.X04MedizinischeLeistung.Lokalisation",this,1);e.qg("value",!1),this.bv_1=e}pe(){return this.bv_1}ng(){return[xn()]}},$N=class n{constructor(e){this.value=e}u1(){return this.value}ke(){return this.value}os(e){return new n(e)}copy(e,t){return e=e===T?this.value:e,this.os(e)}toString(){return"Code(value="+this.value+")"}hashCode(){return on(this.value)}equals(e){if(this===e)return!0;if(!(e instanceof n))return!1;var t=e instanceof n?e:xi();return this.value===t.value}static cv(e,t,i){(1&e)!==1&&On(e,1,bU().av_1);var r=tn(this);return r.value=t,r}},dK=class n{constructor(e){this.value=e}u1(){return this.value}ke(){return this.value}os(e){return new n(e)}copy(e,t){return e=e===T?this.value:e,this.os(e)}toString(){return"Lokalisation(value="+this.value+")"}hashCode(){return on(this.value)}equals(e){if(this===e)return!0;if(!(e instanceof n))return!1;var t=e instanceof n?e:xi();return this.value===t.value}static dv(e,t,i){(1&e)!==1&&On(e,1,h_e().bv_1);var r=tn(this);return r.value=t,r}},fme=class{vr(){return p_e()}},hK=class{constructor(){$Ne=this;var e=new _n("at.bindoc.virtualclinic.case.VirtualClinicCase.X04MedizinischeLeistung",this,8);e.qg("code",!1),e.qg("lokalisation",!1),e.qg("abrechnungsrelevanz",!1),e.qg("count",!1),e.qg("dateTime",!1),e.qg("funktionscode",!1),e.qg("krankenanstaltennummer",!1),e.qg("aufnahmezahl",!1),this.ev_1=e}pe(){return this.ev_1}ng(){return[bU(),it(h_e()),o5(),xve(),QN(),it(uy()),it(ma()),it(ZN())]}},mme=class{vr(){return f_e()}},pK=class{constructor(){KNe=this;var e=new _n("at.bindoc.virtualclinic.case.VirtualClinicCase.X05Scoringdaten",this,11);e.qg("abrechnungsgruppe",!1),e.qg("abrechnungsknoten",!1),e.qg("leistungskomponente",!1),e.qg("tageskomponente",!1),e.qg("punkteBelagsdauerausreisserUntenLeistungskomponente",!1),e.qg("punkteBelagsdauerausreisserUntenTageskomponente",!1),e.qg("zusatzpunkteBelagsdauerausreisserOben",!1),e.qg("zusatzpunkteIntensiv",!1),e.qg("zusatzpunkteMehrfachleistungen",!1),e.qg("punkteSpeziellerBereichTageweise",!1),e.qg("punkteTotal",!1),this.fv_1=e}pe(){return this.fv_1}ng(){return[xn(),it(xn()),it(nn()),nn(),it(nn()),it(nn()),it(nn()),it(nn()),nn(),it(nn()),nn()]}},gme=class{vr(){return m_e()}},fK=class{constructor(){WNe=this;var e=new _n("at.bindoc.virtualclinic.case.VirtualClinicCase.X06ErrorsWarnings",this,3);e.qg("errorWarningWert",!1),e.qg("errorWarningCode",!1),e.qg("errorWarningKommentar",!1),this.gv_1=e}pe(){return this.gv_1}ng(){return[it(xn()),it(xn()),it(xn())]}},_me=class{vr(){return g_e()}},mK=class{constructor(){ZNe=this;var e=new _n("at.bindoc.virtualclinic.case.VirtualClinicCase.X07Kommentar",this,6);e.qg("kommentar1",!1),e.qg("kommentar2",!1),e.qg("kommentar3",!1),e.qg("kommentar4",!1),e.qg("kommentar5",!1),e.qg("kommentar6",!1),this.hv_1=e}pe(){return this.hv_1}ng(){return[it(xn()),it(xn()),it(xn()),it(xn()),it(xn()),it(xn())]}},vme=class{vr(){return __e()}},gK=class{constructor(){QNe=this;var e=new _n("at.bindoc.virtualclinic.case.VirtualClinicCase.I11Saps3Daten",this,34);e.qg("bettenfuehrendeHauptkostenstellePositionsnummer",!1),e.qg("erhebungsdatum",!1),e.qg("akuteInfektionBeiAufnahme",!1),e.qg("aufnahmegrundAnderer",!1),e.qg("aufnahmegrundBasispflege",!1),e.qg("aufnahmegrundGastrointestinal",!1),e.qg("aufnahmegrundHaematologisch",!1),e.qg("aufnahmegrundKardiovaskulaer",!1),e.qg("aufnahmegrundLeber",!1),e.qg("aufnahmegrundMetabolisch",!1),e.qg("aufnahmegrundNeurologisch",!1),e.qg("aufnahmegrundRenal",!1),e.qg("aufnahmegrundRespiratorisch",!1),e.qg("aufnahmegrundSchweresTrauma",!1),e.qg("aufnahmetyp",!1),e.qg("blutbildLeukozytenMinimum",!1),e.qg("blutbildPHWert",!1),e.qg("blutbildThrombozytenMinimum",!1),e.qg("chirurgieEingriff",!1),e.qg("chirurgischerStatus",!1),e.qg("glasgowComaScaleMotorischeReaktion",!1),e.qg("glasgowComaScaleVerbaleReaktion",!1),e.qg("glasgowComaScaleVisuelleReaktion",!1),e.qg("herzfrequenzMaximum",!1),e.qg("koexistierendeErkrankungen",!1),e.qg("koerpertemperaturMaximum",!1),e.qg("mechanischeBeatmung",!1),e.qg("sauerstoffPartialdruckArteriell",!1),e.qg("sauerstoffkonzentrationInspiratorisch",!1),e.qg("serumBilirubinMaximum",!1),e.qg("serumKreatininMaximum",!1),e.qg("systolischerBlutdruckMinimum",!1),e.qg("therapeutischeMassnahmenVorIBS",!1),e.qg("zutransferierung",!1),this.iv_1=e}pe(){return this.iv_1}ng(){return[xU(),CU(),it(xn()),it(xn()),it(xn()),it(xn()),it(xn()),it(xn()),it(xn()),it(xn()),it(xn()),it(xn()),it(xn()),it(xn()),it(xn()),it(xn()),it(xn()),it(xn()),it(xn()),it(xn()),it(xn()),it(xn()),it(xn()),it(xn()),it(xn()),it(xn()),it(xn()),it(xn()),it(xn()),it(xn()),it(xn()),it(xn()),it(xn()),it(xn())]}},yme=class{vr(){return v_e()}},_K=class{constructor(){XNe=this;var e=new _n("at.bindoc.virtualclinic.case.VirtualClinicCase.I12TissADaten",this,32);e.qg("bettenfuehrendeHauptkostenstellePositionsnummer",!1),e.qg("erhebungsdatum",!1),e.qg("standardMonitoring",!1),e.qg("labor",!1),e.qg("medikamente",!1),e.qg("verbandswechsel",!1),e.qg("drainagenpflege",!1),e.qg("atmungsmodus",!1),e.qg("atemwegszugang",!1),e.qg("tubusStomapflege",!1),e.qg("atemtherapie",!1),e.qg("medikamenteVasoaktiv",!1),e.qg("flussigkeitsersatzMassiv",!1),e.qg("katheterArteriell",!1),e.qg("monitoringHaemodynamisch",!1),e.qg("katheterZentralvenoes",!1),e.qg("reanimationKardiopulmonal",!1),e.qg("nierenersatztherapie",!1),e.qg("harnbilanzierung",!1),e.qg("diureseAktiv",!1),e.qg("hirndruckmessung",!1),e.qg("behandlungMetabolischerEntgleisungen",!1),e.qg("ernaehrungEnteral",!1),e.qg("ernaehrungParenteral",!1),e.qg("interventionen",!1),e.qg("diagnostikUndTherapieAusserhalbDerIBS",!1),e.qg("agitationUndDelirium",!1),e.qg("assistKardial",!1),e.qg("assistPulmonal",!1),e.qg("hypothermieTherapeutisch",!1),e.qg("lebersupportExtrakorporal",!1),e.qg("kontinuierlicheIntravenoeseAntikonvulsiveTherapie",!1),this.jv_1=e}pe(){return this.jv_1}ng(){return[xU(),CU(),nn(),nn(),nn(),nn(),nn(),nn(),nn(),nn(),nn(),nn(),nn(),nn(),nn(),nn(),nn(),nn(),nn(),nn(),nn(),nn(),nn(),nn(),nn(),nn(),nn(),nn(),nn(),nn(),nn(),nn()]}},bme=class{vr(){return y_e()}},vK=class{constructor(){JNe=this;var e=new _n("at.bindoc.virtualclinic.case.VirtualClinicCase.L01SpezielleLeistungsbereiche.Leistungsbereich",this,1);e.qg("value",!1),this.kv_1=e}pe(){return this.kv_1}ng(){return[xn()]}},xme=class{vr(){return b_e()}},yK=class{constructor(){ePe=this;var e=new _n("at.bindoc.virtualclinic.case.VirtualClinicCase.L01SpezielleLeistungsbereiche.Gruppe",this,1);e.qg("value",!1),this.lv_1=e}pe(){return this.lv_1}ng(){return[xn()]}},bK=class n{constructor(e){this.value=e}u1(){return this.value}ke(){return this.value}os(e){return new n(e)}copy(e,t){return e=e===T?this.value:e,this.os(e)}toString(){return"Leistungsbereich(value="+this.value+")"}hashCode(){return on(this.value)}equals(e){if(this===e)return!0;if(!(e instanceof n))return!1;var t=e instanceof n?e:xi();return this.value===t.value}static mv(e,t,i){(1&e)!==1&&On(e,1,y_e().kv_1);var r=tn(this);return r.value=t,r}},xK=class n{constructor(e){this.value=e}u1(){return this.value}ke(){return this.value}os(e){return new n(e)}copy(e,t){return e=e===T?this.value:e,this.os(e)}toString(){return"Gruppe(value="+this.value+")"}hashCode(){return on(this.value)}equals(e){if(this===e)return!0;if(!(e instanceof n))return!1;var t=e instanceof n?e:xi();return this.value===t.value}static nv(e,t,i){(1&e)!==1&&On(e,1,b_e().lv_1);var r=tn(this);return r.value=t,r}},wme=class{vr(){return x_e()}},wK=class{constructor(){tPe=this;var e=new _n("at.bindoc.virtualclinic.case.VirtualClinicCase.L01SpezielleLeistungsbereiche",this,6);e.qg("year",!1),e.qg("krankenanstaltennummer",!1),e.qg("funktionscode",!1),e.qg("leistungsbereich",!1),e.qg("gruppe",!1),e.qg("punkte",!1),this.ov_1=e}pe(){return this.ov_1}ng(){return[nn(),ma(),it(uy()),it(y_e()),it(b_e()),it(nn())]}},Cme=class{vr(){return w_e()}},CK=class{constructor(){iPe=this;var e=new _n("at.bindoc.virtualclinic.case.VirtualClinicCase.L02AbrechnungsrelevanteKostentraeger",this,4);e.qg("year",!1),e.qg("krankenanstaltennummer",!1),e.qg("kostentraegerCode",!1),e.qg("lgfRelevanz",!1),this.pv_1=e}pe(){return this.pv_1}ng(){return[nn(),ma(),yU(),it(o5())]}},Sme=class{vr(){return C_e()}},SK=class{constructor(){nPe=this;var e=new _n("at.bindoc.virtualclinic.case.VirtualClinicCase.L03ExclusionenMedLeistungen",this,3);e.qg("year",!1),e.qg("krankenanstaltennummer",!1),e.qg("code",!1),this.qv_1=e}pe(){return this.qv_1}ng(){return[nn(),ma(),bU()]}},Eme=class{vr(){return S_e()}},EK=class{constructor(){rPe=this;var e=new _n("at.bindoc.virtualclinic.case.VirtualClinicCase.L04ExclusionenTagesklinischerMedLeistungen",this,3);e.qg("year",!1),e.qg("krankenanstaltennummer",!1),e.qg("code",!1),this.rv_1=e}pe(){return this.rv_1}ng(){return[nn(),ma(),bU()]}},Ime=class{vr(){return E_e()}},IK=class{constructor(){oPe=this;var e=new _n("at.bindoc.virtualclinic.case.VirtualClinicCase.E01ExtramuralerLeistungserbringer.Id",this,1);e.qg("value",!1),this.sv_1=e}pe(){return this.sv_1}ng(){return[xn()]}},Tme=class{vr(){return I_e()}},TK=class{constructor(){sPe=this;var e=new _n("at.bindoc.virtualclinic.case.VirtualClinicCase.E01ExtramuralerLeistungserbringer.Berufssitz",this,2);e.qg("postalCode",!1),e.qg("gemeindecode",!1),this.tv_1=e}pe(){return this.tv_1}ng(){return[it(wU()),it(pZ())]}},AK=class n{constructor(e){this.value=e}u1(){return this.value}ke(){return this.value}os(e){return new n(e)}copy(e,t){return e=e===T?this.value:e,this.os(e)}toString(){return"Id(value="+this.value+")"}hashCode(){return on(this.value)}equals(e){if(this===e)return!0;if(!(e instanceof n))return!1;var t=e instanceof n?e:xi();return this.value===t.value}static uv(e,t,i){(1&e)!==1&&On(e,1,E_e().sv_1);var r=tn(this);return r.value=t,r}},DK=class n{constructor(e,t){this.postalCode=e,this.gemeindecode=t}zt(){return this.postalCode}au(){return this.gemeindecode}ke(){return this.postalCode}le(){return this.gemeindecode}vv(e,t){return new n(e,t)}copy(e,t,i){return e=e===T?this.postalCode:e,t=t===T?this.gemeindecode:t,this.vv(e,t)}toString(){return"Berufssitz(postalCode="+Lo(this.postalCode)+", gemeindecode="+Lo(this.gemeindecode)+")"}hashCode(){var e=this.postalCode==null?0:this.postalCode.hashCode();return e=Le(e,31)+(this.gemeindecode==null?0:this.gemeindecode.hashCode())|0,e}equals(e){if(this===e)return!0;if(!(e instanceof n))return!1;var t=e instanceof n?e:xi();return!(!Lt(this.postalCode,t.postalCode)||!Lt(this.gemeindecode,t.gemeindecode))}static wv(e,t,i,r){(3&e)!==3&&On(e,3,I_e().tv_1);var o=tn(this);return o.postalCode=t,o.gemeindecode=i,o}},Ame=class{vr(){return T_e()}},kK=class{constructor(){aPe=this;var e=new _n("at.bindoc.virtualclinic.case.VirtualClinicCase.E01ExtramuralerLeistungserbringer",this,3);e.qg("id",!1),e.qg("berufssitz",!1),e.qg("organisationsform",!1),this.xv_1=e}pe(){return this.xv_1}ng(){return[E_e(),it(I_e()),it(fZ())]}},Dme=class{vr(){return A_e()}},MK=class{constructor(){lPe=this;var e=new _n("at.bindoc.virtualclinic.case.VirtualClinicCase.K01Kostenstellenplan.Kostenstellennummer",this,1);e.qg("value",!1),this.yv_1=e}pe(){return this.yv_1}ng(){return[xn()]}},kme=class{vr(){return fZ()}},OK=class{constructor(){cPe=this;var e=new _n("at.bindoc.virtualclinic.case.VirtualClinicCase.K01Kostenstellenplan.Organisationsform",this,1);e.qg("value",!1),this.zv_1=e}pe(){return this.zv_1}ng(){return[xn()]}},RK=class n{constructor(e){this.value=e}u1(){return this.value}ke(){return this.value}os(e){return new n(e)}copy(e,t){return e=e===T?this.value:e,this.os(e)}toString(){return"Kostenstellennummer(value="+this.value+")"}hashCode(){return on(this.value)}equals(e){if(this===e)return!0;if(!(e instanceof n))return!1;var t=e instanceof n?e:xi();return this.value===t.value}static aw(e,t,i){(1&e)!==1&&On(e,1,A_e().yv_1);var r=tn(this);return r.value=t,r}},D5=class n{constructor(e){this.value=e}u1(){return this.value}ke(){return this.value}os(e){return new n(e)}copy(e,t){return e=e===T?this.value:e,this.os(e)}toString(){return"Organisationsform(value="+this.value+")"}hashCode(){return on(this.value)}equals(e){if(this===e)return!0;if(!(e instanceof n))return!1;var t=e instanceof n?e:xi();return this.value===t.value}static bw(e,t,i){(1&e)!==1&&On(e,1,fZ().zv_1);var r=tn(this);return r.value=t,r}},Mme=class{vr(){return D_e()}},NK=class{constructor(){uPe=this;var e=new _n("at.bindoc.virtualclinic.case.VirtualClinicCase.K01Kostenstellenplan",this,6);e.qg("year",!1),e.qg("krankenanstaltennummer",!1),e.qg("funktionscode",!1),e.qg("interneKostenstellennummer",!1),e.qg("interneKostenstellenbezeichnung",!1),e.qg("spezielleOrganisationsform",!1),this.cw_1=e}pe(){return this.cw_1}ng(){return[nn(),ma(),uy(),it(A_e()),it(xn()),it(fZ())]}},Ome=class{vr(){return dZ()}},PK=class{constructor(){dPe=this;var e=new _n("at.bindoc.virtualclinic.case.VirtualClinicCase.K02Stammdaten.Address",this,3);e.qg("street",!1),e.qg("postalCode",!1),e.qg("ort",!1),this.dw_1=e}pe(){return this.dw_1}ng(){return[it(xn()),it(wU()),it(xn())]}},Rme=class{vr(){return hZ()}},FK=class{constructor(){hPe=this;var e=new _n("at.bindoc.virtualclinic.case.VirtualClinicCase.K02Stammdaten.Contact",this,3);e.qg("phone",!1),e.qg("fax",!1),e.qg("homepage",!1),this.ew_1=e}pe(){return this.ew_1}ng(){return[it(xn()),it(xn()),it(xn())]}},k5=class n{constructor(e,t,i){this.street=e,this.postalCode=t,this.ort=i}fw(){return this.street}zt(){return this.postalCode}gw(){return this.ort}ke(){return this.street}le(){return this.postalCode}et(){return this.ort}hw(e,t,i){return new n(e,t,i)}copy(e,t,i,r){return e=e===T?this.street:e,t=t===T?this.postalCode:t,i=i===T?this.ort:i,this.hw(e,t,i)}toString(){return"Address(street="+this.street+", postalCode="+Lo(this.postalCode)+", ort="+this.ort+")"}hashCode(){var e=this.street==null?0:on(this.street);return e=Le(e,31)+(this.postalCode==null?0:this.postalCode.hashCode())|0,e=Le(e,31)+(this.ort==null?0:on(this.ort))|0,e}equals(e){if(this===e)return!0;if(!(e instanceof n))return!1;var t=e instanceof n?e:xi();return!(this.street!=t.street||!Lt(this.postalCode,t.postalCode)||this.ort!=t.ort)}static iw(e,t,i,r,o){(7&e)!==7&&On(e,7,dZ().dw_1);var s=tn(this);return s.street=t,s.postalCode=i,s.ort=r,s}},M5=class n{constructor(e,t,i){this.phone=e,this.fax=t,this.homepage=i}jw(){return this.phone}kw(){return this.fax}lw(){return this.homepage}ke(){return this.phone}le(){return this.fax}et(){return this.homepage}mw(e,t,i){return new n(e,t,i)}copy(e,t,i,r){return e=e===T?this.phone:e,t=t===T?this.fax:t,i=i===T?this.homepage:i,this.mw(e,t,i)}toString(){return"Contact(phone="+this.phone+", fax="+this.fax+", homepage="+this.homepage+")"}hashCode(){var e=this.phone==null?0:on(this.phone);return e=Le(e,31)+(this.fax==null?0:on(this.fax))|0,e=Le(e,31)+(this.homepage==null?0:on(this.homepage))|0,e}equals(e){if(this===e)return!0;if(!(e instanceof n))return!1;var t=e instanceof n?e:xi();return!(this.phone!=t.phone||this.fax!=t.fax||this.homepage!=t.homepage)}static nw(e,t,i,r,o){(7&e)!==7&&On(e,7,hZ().ew_1);var s=tn(this);return s.phone=t,s.fax=i,s.homepage=r,s}},Nme=class{vr(){return k_e()}},LK=class{constructor(){pPe=this;var e=new _n("at.bindoc.virtualclinic.case.VirtualClinicCase.K02Stammdaten",this,8);e.qg("year",!1),e.qg("krankenanstaltennummer",!1),e.qg("krankenanstaltBezeichnung",!1),e.qg("krankenanstaltAddress",!1),e.qg("krankenanstaltContact",!1),e.qg("rechtstraegerBezeichnung",!1),e.qg("rechtstraegerAddress",!1),e.qg("rechtstraegerContact",!1),this.ow_1=e}pe(){return this.ow_1}ng(){return[nn(),ma(),it(xn()),it(dZ()),it(hZ()),it(xn()),it(dZ()),it(hZ())]}},Pme=class{vr(){return M_e()}},BK=class{constructor(){fPe=this;var e=new _n("at.bindoc.virtualclinic.case.VirtualClinicCase.K03Resourcen",this,23);e.qg("year",!1),e.qg("krankenanstaltennummer",!1),e.qg("totalSystemizedBeds",!1),e.qg("specialClassSystemizedBeds",!1),e.qg("actualInstalledBeds",!1),e.qg("actualInstalledSpecialClassBeds",!1),e.qg("belagstageSonderklasse",!1),e.qg("aufnahmenSonderklasse",!1),e.qg("verbliebeneVomVorjahrSonderklasse",!1),e.qg("entlassungenSonderklasse",!1),e.qg("verstorbeneSonderklasse",!1),e.qg("aufnahmenBegleitpersonen",!1),e.qg("belagstageBegleitpersonen",!1),e.qg("ambulantePatienten",!1),e.qg("ambulanteBetreuungsplaetze",!1),e.qg("opTische",!1),e.qg("entbindungsplaetze",!1),e.qg("postOpUeberwachungsplaetze",!1),e.qg("dialysePlaetze",!1),e.qg("obduktionenAnstaltspersonal",!1),e.qg("obduktionenFremdpersonal",!1),e.qg("entbindungenlebendgeborene",!1),e.qg("entbindungentotgeborene",!1),this.pw_1=e}pe(){return this.pw_1}ng(){return[nn(),ma(),it(nn()),it(nn()),it(nn()),it(nn()),it(nn()),it(nn()),it(nn()),it(nn()),it(nn()),it(nn()),it(nn()),it(nn()),it(nn()),it(nn()),it(nn()),it(nn()),it(nn()),it(nn()),it(nn()),it(nn()),it(nn())]}},Fme=class{vr(){return O_e()}},zK=class{constructor(){mPe=this;var e=new _n("at.bindoc.virtualclinic.case.VirtualClinicCase.K04PersonalVollzeitAequivalent.Personalgruppenindex",this,1);e.qg("value",!1),this.qw_1=e}pe(){return this.qw_1}ng(){return[xn()]}},VK=class n{constructor(e){this.value=e}u1(){return this.value}ke(){return this.value}os(e){return new n(e)}copy(e,t){return e=e===T?this.value:e,this.os(e)}toString(){return"Personalgruppenindex(value="+this.value+")"}hashCode(){return on(this.value)}equals(e){if(this===e)return!0;if(!(e instanceof n))return!1;var t=e instanceof n?e:xi();return this.value===t.value}static rw(e,t,i){(1&e)!==1&&On(e,1,O_e().qw_1);var r=tn(this);return r.value=t,r}},Lme=class{vr(){return R_e()}},UK=class{constructor(){gPe=this;var e=new _n("at.bindoc.virtualclinic.case.VirtualClinicCase.K04PersonalVollzeitAequivalent",this,4);e.qg("year",!1),e.qg("krankenanstaltennummer",!1),e.qg("personalgruppenindex",!1),e.qg("vollzeitaequivalente",!1),this.sw_1=e}pe(){return this.sw_1}ng(){return[nn(),ma(),O_e(),it(zi())]}},Bme=class{vr(){return N_e()}},jK=class{constructor(){_Pe=this;var e=new _n("at.bindoc.virtualclinic.case.VirtualClinicCase.K05PersonalAerztlicherDienst.Fachhauptbereichsindex",this,1);e.qg("value",!1),this.tw_1=e}pe(){return this.tw_1}ng(){return[xn()]}},HK=class n{constructor(e){this.value=e}u1(){return this.value}ke(){return this.value}os(e){return new n(e)}copy(e,t){return e=e===T?this.value:e,this.os(e)}toString(){return"Fachhauptbereichsindex(value="+this.value+")"}hashCode(){return on(this.value)}equals(e){if(this===e)return!0;if(!(e instanceof n))return!1;var t=e instanceof n?e:xi();return this.value===t.value}static uw(e,t,i){(1&e)!==1&&On(e,1,N_e().tw_1);var r=tn(this);return r.value=t,r}},zme=class{vr(){return P_e()}},GK=class{constructor(){vPe=this;var e=new _n("at.bindoc.virtualclinic.case.VirtualClinicCase.K05PersonalAerztlicherDienst",this,11);e.qg("year",!1),e.qg("krankenanstaltennummer",!1),e.qg("fachhauptberechsindex",!1),e.qg("fachaerzte",!1),e.qg("aerzteAllgemeinmedizin",!1),e.qg("fachaerzteInAusbildung",!1),e.qg("aerzteAllgemeinmedizinInAusbildung",!1),e.qg("fachaerzteVZA",!1),e.qg("aerzteAllgemeinmedizinVZA",!1),e.qg("fachaerzteInAusbildungVZA",!1),e.qg("aerzteAllgemeinmedizinInAusbildungVZA",!1),this.vw_1=e}pe(){return this.vw_1}ng(){return[nn(),ma(),N_e(),it(nn()),it(nn()),it(nn()),it(nn()),it(zi()),it(zi()),it(zi()),it(zi())]}},Vme=class{vr(){return F_e()}},YK=class{constructor(){yPe=this;var e=new _n("at.bindoc.virtualclinic.case.VirtualClinicCase.K06KonsiliaraeztlicherDienst.Fachrichtungsindex",this,1);e.qg("value",!1),this.ww_1=e}pe(){return this.ww_1}ng(){return[xn()]}},qK=class n{constructor(e){this.value=e}u1(){return this.value}ke(){return this.value}os(e){return new n(e)}copy(e,t){return e=e===T?this.value:e,this.os(e)}toString(){return"Fachrichtungsindex(value="+this.value+")"}hashCode(){return on(this.value)}equals(e){if(this===e)return!0;if(!(e instanceof n))return!1;var t=e instanceof n?e:xi();return this.value===t.value}static xw(e,t,i){(1&e)!==1&&On(e,1,F_e().ww_1);var r=tn(this);return r.value=t,r}},Ume=class{vr(){return L_e()}},$K=class{constructor(){bPe=this;var e=new _n("at.bindoc.virtualclinic.case.VirtualClinicCase.K06KonsiliaraeztlicherDienst",this,4);e.qg("year",!1),e.qg("krankenanstaltennummer",!1),e.qg("fachrichtungsindex",!1),e.qg("konsiliaraerzte",!1),this.yw_1=e}pe(){return this.yw_1}ng(){return[nn(),ma(),F_e(),it(nn())]}},jme=class{vr(){return B_e()}},KK=class{constructor(){xPe=this;var e=new _n("at.bindoc.virtualclinic.case.VirtualClinicCase.K07PersonalNichtAerztlicherBeruf.NichtAerztlicherBerufIndex",this,1);e.qg("value",!1),this.zw_1=e}pe(){return this.zw_1}ng(){return[xn()]}},WK=class n{constructor(e){this.value=e}u1(){return this.value}ke(){return this.value}os(e){return new n(e)}copy(e,t){return e=e===T?this.value:e,this.os(e)}toString(){return"NichtAerztlicherBerufIndex(value="+this.value+")"}hashCode(){return on(this.value)}equals(e){if(this===e)return!0;if(!(e instanceof n))return!1;var t=e instanceof n?e:xi();return this.value===t.value}static ax(e,t,i){(1&e)!==1&&On(e,1,B_e().zw_1);var r=tn(this);return r.value=t,r}},Hme=class{vr(){return z_e()}},ZK=class{constructor(){wPe=this;var e=new _n("at.bindoc.virtualclinic.case.VirtualClinicCase.K07PersonalNichtAerztlicherBeruf",this,7);e.qg("year",!1),e.qg("krankenanstaltennummer",!1),e.qg("indexNichtAerztlicherBeruf",!1),e.qg("malePersonnel",!1),e.qg("femalePersonnel",!1),e.qg("malePersonnelVZA",!1),e.qg("femalePersonnelVZA",!1),this.bx_1=e}pe(){return this.bx_1}ng(){return[nn(),ma(),B_e(),it(nn()),it(nn()),it(zi()),it(zi())]}},Gme=class{vr(){return V_e()}},QK=class{constructor(){CPe=this;var e=new _n("at.bindoc.virtualclinic.case.VirtualClinicCase.K08BettenfuehrendeHauptkostenstelle",this,31);e.qg("year",!1),e.qg("krankenanstaltennummer",!1),e.qg("funktionscode",!1),e.qg("systemizedBeds",!1),e.qg("actualInstalledBeds",!1),e.qg("netFloorPlanArea",!1),e.qg("aerzteVZA",!1),e.qg("apothekerVZA",!1),e.qg("hebammenVZA",!1),e.qg("gehobenerDiensteVZA",!1),e.qg("gehobeneMedtechDiensteVZA",!1),e.qg("pflegehilfeVZA",!1),e.qg("verwaltungspersonalVZA",!1),e.qg("betriebspersonalVZA",!1),e.qg("sonstigePersonalVZA",!1),e.qg("personalkosten",!1),e.qg("medGebrauchsgueterKosten",!1),e.qg("nichtMedGebrauchsgueterKosten",!1),e.qg("medFremdleistungKosten",!1),e.qg("nichtMedFremdleistungKosten",!1),e.qg("energiekosten",!1),e.qg("sonstigeKosten",!1),e.qg("anlagekapitalkosten",!1),e.qg("medBedingtenVersorgungskosten",!1),e.qg("nichtMedBedingtenVersorgungskosten",!1),e.qg("verwaltungskosten",!1),e.qg("andereSekundaerkosten",!1),e.qg("kostenminderungen",!1),e.qg("innerbetrieblicheLeistungskosten",!1),e.qg("unterOderUeberdeckung",!1),e.qg("endkosten",!1),this.cx_1=e}pe(){return this.cx_1}ng(){return[nn(),ma(),uy(),it(nn()),it(nn()),it(zi()),it(zi()),it(zi()),it(zi()),it(zi()),it(zi()),it(zi()),it(zi()),it(zi()),it(zi()),it(zi()),it(zi()),it(zi()),it(zi()),it(zi()),it(zi()),it(zi()),it(zi()),it(zi()),it(zi()),it(zi()),it(zi()),it(zi()),it(zi()),it(zi()),it(zi())]}},Yme=class{vr(){return U_e()}},XK=class{constructor(){SPe=this;var e=new _n("at.bindoc.virtualclinic.case.VirtualClinicCase.K09NichtBettenfuehrendeHauptkostenstelle",this,34);e.qg("year",!1),e.qg("krankenanstaltennummer",!1),e.qg("funktionscode",!1),e.qg("ambulanteBetreuungsplaetze",!1),e.qg("ambulantePatienten",!1),e.qg("ambulantePatientenFrequenzen",!1),e.qg("stationaerePatientenFrequenzen",!1),e.qg("stationaerePatientenAndererKAFrequenzen",!1),e.qg("netFloorPlanArea",!1),e.qg("aerzteVZA",!1),e.qg("apothekerVZA",!1),e.qg("hebammenVZA",!1),e.qg("gehobenerDiensteVZA",!1),e.qg("gehobeneMedtechDiensteVZA",!1),e.qg("pflegehilfeVZA",!1),e.qg("verwaltungspersonalVZA",!1),e.qg("betriebspersonalVZA",!1),e.qg("sonstigePersonalVZA",!1),e.qg("personalkosten",!1),e.qg("medGebrauchsgueterKosten",!1),e.qg("nichtMedGebrauchsgueterKosten",!1),e.qg("medFremdleistungKosten",!1),e.qg("nichtMedFremdleistungKosten",!1),e.qg("energiekosten",!1),e.qg("sonstigeKosten",!1),e.qg("anlagekapitalkosten",!1),e.qg("medBedingtenVersorgungskosten",!1),e.qg("nichtMedBedingtenVersorgungskosten",!1),e.qg("verwaltungskosten",!1),e.qg("andereSekundaerkosten",!1),e.qg("kostenminderungen",!1),e.qg("innerbetrieblicheLeistungskosten",!1),e.qg("unterOderUeberdeckung",!1),e.qg("endkosten",!1),this.dx_1=e}pe(){return this.dx_1}ng(){return[nn(),ma(),uy(),it(nn()),it(nn()),it(zi()),it(zi()),it(zi()),it(zi()),it(zi()),it(zi()),it(zi()),it(zi()),it(zi()),it(zi()),it(zi()),it(zi()),it(zi()),it(zi()),it(zi()),it(zi()),it(zi()),it(zi()),it(zi()),it(zi()),it(zi()),it(zi()),it(zi()),it(zi()),it(zi()),it(zi()),it(zi()),it(zi()),it(zi())]}},qme=class{vr(){return j_e()}},JK=class{constructor(){EPe=this;var e=new _n("at.bindoc.virtualclinic.case.VirtualClinicCase.K10NebenUndHilfskostenstelle",this,21);e.qg("year",!1),e.qg("krankenanstaltennummer",!1),e.qg("funktionscode",!1),e.qg("netFloorPlanArea",!1),e.qg("totalPersonnelVZA",!1),e.qg("personalkosten",!1),e.qg("medGebrauchsgueterKosten",!1),e.qg("nichtMedGebrauchsgueterKosten",!1),e.qg("medFremdleistungKosten",!1),e.qg("nichtMedFremdleistungKosten",!1),e.qg("energiekosten",!1),e.qg("sonstigeKosten",!1),e.qg("anlagekapitalkosten",!1),e.qg("medBedingtenVersorgungskosten",!1),e.qg("nichtMedBedingtenVersorgungskosten",!1),e.qg("verwaltungskosten",!1),e.qg("andereSekundaerkosten",!1),e.qg("kostenminderungen",!1),e.qg("innerbetrieblicheLeistungskosten",!1),e.qg("unterOderUeberdeckung",!1),e.qg("endkosten",!1),this.ex_1=e}pe(){return this.ex_1}ng(){return[nn(),ma(),uy(),it(zi()),it(zi()),it(zi()),it(zi()),it(zi()),it(zi()),it(zi()),it(zi()),it(zi()),it(zi()),it(zi()),it(zi()),it(zi()),it(zi()),it(zi()),it(zi()),it(zi()),it(zi())]}},$me=class{vr(){return H_e()}},eW=class{constructor(){IPe=this;var e=new _n("at.bindoc.virtualclinic.case.VirtualClinicCase.K11KostennachweisSummenblatt",this,21);e.qg("year",!1),e.qg("krankenanstaltennummer",!1),e.qg("personalkosten",!1),e.qg("medGebrauchsgueterKosten",!1),e.qg("nichtMedGebrauchsgueterKosten",!1),e.qg("medFremdleistungKosten",!1),e.qg("nichtMedFremdleistungKosten",!1),e.qg("energiekosten",!1),e.qg("sonstigeKosten",!1),e.qg("anlagekapitalkosten",!1),e.qg("summePrimaerkosten",!1),e.qg("kostenminderungen",!1),e.qg("endkostenKrankenanstalt",!1),e.qg("abschreibungen",!1),e.qg("abschreibungenAnlagegueter",!1),e.qg("abschreibungenStillgelegterAnlagen",!1),e.qg("zinsen",!1),e.qg("mieten",!1),e.qg("stationaerePatientenversorgungskosten",!1),e.qg("ambulantePatientenversorgungskosten",!1),e.qg("endkostenNebenkostenstellen",!1),this.fx_1=e}pe(){return this.fx_1}ng(){return[nn(),ma(),it(zi()),it(zi()),it(zi()),it(zi()),it(zi()),it(zi()),it(zi()),it(zi()),it(zi()),it(zi()),it(zi()),it(zi()),it(zi()),it(zi()),it(zi()),it(zi()),it(zi()),it(zi()),it(zi())]}},Kme=class{vr(){return G_e()}},tW=class{constructor(){TPe=this;var e=new _n("at.bindoc.virtualclinic.case.VirtualClinicCase.K12KostennachweisDetailblatt.Blattnummer",this,1);e.qg("value",!1),this.gx_1=e}pe(){return this.gx_1}ng(){return[xn()]}},Wme=class{vr(){return Y_e()}},iW=class{constructor(){APe=this;var e=new _n("at.bindoc.virtualclinic.case.VirtualClinicCase.K12KostennachweisDetailblatt.MLVNummer",this,1);e.qg("value",!1),this.hx_1=e}pe(){return this.hx_1}ng(){return[nn()]}},nW=class n{constructor(e){this.value=e}u1(){return this.value}ke(){return this.value}os(e){return new n(e)}copy(e,t){return e=e===T?this.value:e,this.os(e)}toString(){return"Blattnummer(value="+this.value+")"}hashCode(){return on(this.value)}equals(e){if(this===e)return!0;if(!(e instanceof n))return!1;var t=e instanceof n?e:xi();return this.value===t.value}static ix(e,t,i){(1&e)!==1&&On(e,1,G_e().gx_1);var r=tn(this);return r.value=t,r}},rW=class n{constructor(e){this.value=e}u1(){return this.value}ke(){return this.value}jx(e){return new n(e)}copy(e,t){return e=e===T?this.value:e,this.jx(e)}toString(){return"MLVNummer(value="+this.value+")"}hashCode(){return this.value}equals(e){if(this===e)return!0;if(!(e instanceof n))return!1;var t=e instanceof n?e:xi();return this.value===t.value}static kx(e,t,i){(1&e)!==1&&On(e,1,Y_e().hx_1);var r=tn(this);return r.value=t,r}},Zme=class{vr(){return q_e()}},oW=class{constructor(){DPe=this;var e=new _n("at.bindoc.virtualclinic.case.VirtualClinicCase.K12KostennachweisDetailblatt",this,8);e.qg("year",!1),e.qg("krankenanstaltennummer",!1),e.qg("blattnummer",!1),e.qg("mlvNummer",!1),e.qg("aufwandFinanzbuchfuehrung",!1),e.qg("neutralerAufwand",!1),e.qg("kalkulatorischeKosten",!1),e.qg("kosten",!1),this.lx_1=e}pe(){return this.lx_1}ng(){return[nn(),ma(),G_e(),Y_e(),it(zi()),it(zi()),it(zi()),it(zi())]}},Qme=class{vr(){return $_e()}},sW=class{constructor(){kPe=this;var e=new _n("at.bindoc.virtualclinic.case.VirtualClinicCase.K13Kostenminderungen.KostenminderungsartIndex",this,1);e.qg("value",!1),this.mx_1=e}pe(){return this.mx_1}ng(){return[xn()]}},aW=class n{constructor(e){this.value=e}u1(){return this.value}ke(){return this.value}os(e){return new n(e)}copy(e,t){return e=e===T?this.value:e,this.os(e)}toString(){return"KostenminderungsartIndex(value="+this.value+")"}hashCode(){return on(this.value)}equals(e){if(this===e)return!0;if(!(e instanceof n))return!1;var t=e instanceof n?e:xi();return this.value===t.value}static nx(e,t,i){(1&e)!==1&&On(e,1,$_e().mx_1);var r=tn(this);return r.value=t,r}},Xme=class{vr(){return K_e()}},lW=class{constructor(){MPe=this;var e=new _n("at.bindoc.virtualclinic.case.VirtualClinicCase.K13Kostenminderungen",this,4);e.qg("year",!1),e.qg("krankenanstaltennummer",!1),e.qg("kostenminderungsartIndex",!1),e.qg("kostenminderungen",!1),this.ox_1=e}pe(){return this.ox_1}ng(){return[nn(),ma(),$_e(),it(zi())]}},Jme=class{vr(){return W_e()}},cW=class{constructor(){OPe=this;var e=new _n("at.bindoc.virtualclinic.case.VirtualClinicCase.K14KalkulatorischerAnlagenspiegel.Anlageindex",this,1);e.qg("value",!1),this.px_1=e}pe(){return this.px_1}ng(){return[xn()]}},uW=class n{constructor(e){this.value=e}u1(){return this.value}ke(){return this.value}os(e){return new n(e)}copy(e,t){return e=e===T?this.value:e,this.os(e)}toString(){return"Anlageindex(value="+this.value+")"}hashCode(){return on(this.value)}equals(e){if(this===e)return!0;if(!(e instanceof n))return!1;var t=e instanceof n?e:xi();return this.value===t.value}static qx(e,t,i){(1&e)!==1&&On(e,1,W_e().px_1);var r=tn(this);return r.value=t,r}},ege=class{vr(){return Z_e()}},dW=class{constructor(){RPe=this;var e=new _n("at.bindoc.virtualclinic.case.VirtualClinicCase.K14KalkulatorischerAnlagenspiegel",this,11);e.qg("year",!1),e.qg("krankenanstaltennummer",!1),e.qg("anlageindex",!1),e.qg("herstellungskosten",!1),e.qg("zugaenge",!1),e.qg("abgaenge",!1),e.qg("umbuchungen",!1),e.qg("kumulierteAbschreibungen",!1),e.qg("buchwertBerichtsjahr",!1),e.qg("buchwertVorjahr",!1),e.qg("abschreibungLaufendesBerichtsjahr",!1),this.rx_1=e}pe(){return this.rx_1}ng(){return[nn(),ma(),W_e(),it(zi()),it(zi()),it(zi()),it(zi()),it(zi()),it(zi()),it(zi()),it(zi())]}},tge=class{vr(){return Q_e()}},hW=class{constructor(){NPe=this;var e=new _n("at.bindoc.virtualclinic.case.VirtualClinicCase.K15AllgemeineKostenbereiche.Kennzahlenindex",this,1);e.qg("value",!1),this.sx_1=e}pe(){return this.sx_1}ng(){return[xn()]}},pW=class n{constructor(e){this.value=e}u1(){return this.value}ke(){return this.value}os(e){return new n(e)}copy(e,t){return e=e===T?this.value:e,this.os(e)}toString(){return"Kennzahlenindex(value="+this.value+")"}hashCode(){return on(this.value)}equals(e){if(this===e)return!0;if(!(e instanceof n))return!1;var t=e instanceof n?e:xi();return this.value===t.value}static tx(e,t,i){(1&e)!==1&&On(e,1,Q_e().sx_1);var r=tn(this);return r.value=t,r}},ige=class{vr(){return X_e()}},fW=class{constructor(){PPe=this;var e=new _n("at.bindoc.virtualclinic.case.VirtualClinicCase.K15AllgemeineKostenbereiche",this,5);e.qg("year",!1),e.qg("krankenanstaltennummer",!1),e.qg("kennzahlenindex",!1),e.qg("kosten",!1),e.qg("bezugsgroesse",!1),this.ux_1=e}pe(){return this.ux_1}ng(){return[nn(),ma(),Q_e(),it(zi()),it(zi())]}},nge=class{vr(){return J_e()}},mW=class{constructor(){FPe=this;var e=new _n("at.bindoc.virtualclinic.case.VirtualClinicCase.K16AusgewaehlteKosten.Kostenindex",this,1);e.qg("value",!1),this.vx_1=e}pe(){return this.vx_1}ng(){return[xn()]}},gW=class n{constructor(e){this.value=e}u1(){return this.value}ke(){return this.value}os(e){return new n(e)}copy(e,t){return e=e===T?this.value:e,this.os(e)}toString(){return"Kostenindex(value="+this.value+")"}hashCode(){return on(this.value)}equals(e){if(this===e)return!0;if(!(e instanceof n))return!1;var t=e instanceof n?e:xi();return this.value===t.value}static wx(e,t,i){(1&e)!==1&&On(e,1,J_e().vx_1);var r=tn(this);return r.value=t,r}},rge=class{vr(){return eve()}},_W=class{constructor(){LPe=this;var e=new _n("at.bindoc.virtualclinic.case.VirtualClinicCase.K16AusgewaehlteKosten",this,4);e.qg("year",!1),e.qg("krankenanstaltennummer",!1),e.qg("kostenindex",!1),e.qg("kosten",!1),this.xx_1=e}pe(){return this.xx_1}ng(){return[nn(),ma(),J_e(),it(zi())]}},oge=class{vr(){return mZ()}},vW=class{constructor(){BPe=this;var e=new _n("at.bindoc.virtualclinic.case.VirtualClinicCase.G01Grossgeraetbasisdaten.Positionsnummer",this,1);e.qg("value",!1),this.yx_1=e}pe(){return this.yx_1}ng(){return[xn()]}},sge=class{vr(){return tve()}},yW=class{constructor(){zPe=this;var e=new _n("at.bindoc.virtualclinic.case.VirtualClinicCase.G01Grossgeraetbasisdaten.Art",this,1);e.qg("value",!1),this.zx_1=e}pe(){return this.zx_1}ng(){return[xn()]}},O5=class n{constructor(e){this.value=e}u1(){return this.value}ke(){return this.value}os(e){return new n(e)}copy(e,t){return e=e===T?this.value:e,this.os(e)}toString(){return"Positionsnummer(value="+this.value+")"}hashCode(){return on(this.value)}equals(e){if(this===e)return!0;if(!(e instanceof n))return!1;var t=e instanceof n?e:xi();return this.value===t.value}static ay(e,t,i){(1&e)!==1&&On(e,1,mZ().yx_1);var r=tn(this);return r.value=t,r}},bW=class n{constructor(e){this.value=e}u1(){return this.value}ke(){return this.value}os(e){return new n(e)}copy(e,t){return e=e===T?this.value:e,this.os(e)}toString(){return"Art(value="+this.value+")"}hashCode(){return on(this.value)}equals(e){if(this===e)return!0;if(!(e instanceof n))return!1;var t=e instanceof n?e:xi();return this.value===t.value}static by(e,t,i){(1&e)!==1&&On(e,1,tve().zx_1);var r=tn(this);return r.value=t,r}},age=class{vr(){return ive()}},xW=class{constructor(){VPe=this;var e=new _n("at.bindoc.virtualclinic.case.VirtualClinicCase.G01Grossgeraetbasisdaten",this,11);e.qg("year",!1),e.qg("krankenanstaltennummer",!1),e.qg("grossgeraetPositionsnummer",!1),e.qg("funktionscode",!1),e.qg("grossgeraetArt",!1),e.qg("grossgeraetType",!1),e.qg("hersteller",!1),e.qg("baujahr",!1),e.qg("anschaffungskosten",!1),e.qg("betriebszeiten",!1),e.qg("kommentar",!1),this.cy_1=e}pe(){return this.cy_1}ng(){return[nn(),ma(),mZ(),it(uy()),it(tve()),it(xn()),it(xn()),it(nn()),it(zi()),it(xn()),it(xn())]}},lge=class{vr(){return nve()}},wW=class{constructor(){UPe=this;var e=new _n("at.bindoc.virtualclinic.case.VirtualClinicCase.G02GrossgeraetLeistungsdaten.Leistungsindex",this,1);e.qg("value",!1),this.dy_1=e}pe(){return this.dy_1}ng(){return[xn()]}},CW=class n{constructor(e){this.value=e}u1(){return this.value}ke(){return this.value}os(e){return new n(e)}copy(e,t){return e=e===T?this.value:e,this.os(e)}toString(){return"Leistungsindex(value="+this.value+")"}hashCode(){return on(this.value)}equals(e){if(this===e)return!0;if(!(e instanceof n))return!1;var t=e instanceof n?e:xi();return this.value===t.value}static ey(e,t,i){(1&e)!==1&&On(e,1,nve().dy_1);var r=tn(this);return r.value=t,r}},cge=class{vr(){return rve()}},SW=class{constructor(){jPe=this;var e=new _n("at.bindoc.virtualclinic.case.VirtualClinicCase.G02GrossgeraetLeistungsdaten",this,7);e.qg("year",!1),e.qg("krankenanstaltennummer",!1),e.qg("grossgeraetPositionsnummer",!1),e.qg("grossgeraetLeistungsindex",!1),e.qg("ambulanteFrequenzen",!1),e.qg("stationaereFrequenzen",!1),e.qg("averageLengthPerFrequencyInMins",!1),this.fy_1=e}pe(){return this.fy_1}ng(){return[nn(),ma(),mZ(),nve(),it(zi()),it(zi()),it(zi())]}},uge=class{vr(){return US()}},EW=class{constructor(){HPe=this;var e=new _n("at.bindoc.virtualclinic.case.VirtualClinicCase.B01Basisinformation.Berichtstyp",this,1);e.qg("value",!1),this.gy_1=e}pe(){return this.gy_1}ng(){return[xn()]}},dge=class{vr(){return ove()}},IW=class{constructor(){GPe=this;var e=new _n("at.bindoc.virtualclinic.case.VirtualClinicCase.B01Basisinformation.Berechnungstyp",this,1);e.qg("value",!1),this.hy_1=e}pe(){return this.hy_1}ng(){return[xn()]}},hge=class{vr(){return sve()}},TW=class{constructor(){YPe=this;var e=new _n("at.bindoc.virtualclinic.case.VirtualClinicCase.B01Basisinformation.Zuordnungsart",this,1);e.qg("value",!1),this.iy_1=e}pe(){return this.iy_1}ng(){return[xn()]}},h1=class n{constructor(e){this.value=e}u1(){return this.value}ke(){return this.value}os(e){return new n(e)}copy(e,t){return e=e===T?this.value:e,this.os(e)}toString(){return"Berichtstyp(value="+this.value+")"}hashCode(){return on(this.value)}equals(e){if(this===e)return!0;if(!(e instanceof n))return!1;var t=e instanceof n?e:xi();return this.value===t.value}static jy(e,t,i){(1&e)!==1&&On(e,1,US().gy_1);var r=tn(this);return r.value=t,r}},AW=class n{constructor(e){this.value=e}u1(){return this.value}ke(){return this.value}os(e){return new n(e)}copy(e,t){return e=e===T?this.value:e,this.os(e)}toString(){return"Berechnungstyp(value="+this.value+")"}hashCode(){return on(this.value)}equals(e){if(this===e)return!0;if(!(e instanceof n))return!1;var t=e instanceof n?e:xi();return this.value===t.value}static ky(e,t,i){(1&e)!==1&&On(e,1,ove().hy_1);var r=tn(this);return r.value=t,r}},DW=class n{constructor(e){this.value=e}u1(){return this.value}ke(){return this.value}os(e){return new n(e)}copy(e,t){return e=e===T?this.value:e,this.os(e)}toString(){return"Zuordnungsart(value="+this.value+")"}hashCode(){return on(this.value)}equals(e){if(this===e)return!0;if(!(e instanceof n))return!1;var t=e instanceof n?e:xi();return this.value===t.value}static ly(e,t,i){(1&e)!==1&&On(e,1,sve().iy_1);var r=tn(this);return r.value=t,r}},pge=class{vr(){return ave()}},kW=class{constructor(){qPe=this;var e=new _n("at.bindoc.virtualclinic.case.VirtualClinicCase.B01Basisinformation",this,5);e.qg("year",!1),e.qg("krankenanstaltennummer",!1),e.qg("berichtstyp",!1),e.qg("berechnungstyp",!1),e.qg("zuordnungsart",!1),this.my_1=e}pe(){return this.my_1}ng(){return[nn(),ma(),US(),it(ove()),it(sve())]}},fge=class{vr(){return lve()}},MW=class{constructor(){$Pe=this;var e=new _n("at.bindoc.virtualclinic.case.VirtualClinicCase.B02VKS.VKSIndex",this,1);e.qg("value",!1),this.ny_1=e}pe(){return this.ny_1}ng(){return[xn()]}},OW=class n{constructor(e){this.value=e}u1(){return this.value}ke(){return this.value}os(e){return new n(e)}copy(e,t){return e=e===T?this.value:e,this.os(e)}toString(){return"VKSIndex(value="+this.value+")"}hashCode(){return on(this.value)}equals(e){if(this===e)return!0;if(!(e instanceof n))return!1;var t=e instanceof n?e:xi();return this.value===t.value}static oy(e,t,i){(1&e)!==1&&On(e,1,lve().ny_1);var r=tn(this);return r.value=t,r}},mge=class{vr(){return cve()}},RW=class{constructor(){KPe=this;var e=new _n("at.bindoc.virtualclinic.case.VirtualClinicCase.B02VKS",this,6);e.qg("year",!1),e.qg("krankenanstaltennummer",!1),e.qg("berichtstyp",!1),e.qg("vksIndex",!1),e.qg("wertBerichtsjahr",!1),e.qg("wertVorjahr",!1),this.py_1=e}pe(){return this.py_1}ng(){return[nn(),ma(),US(),lve(),it(zi()),it(zi())]}},gge=class{vr(){return uve()}},NW=class{constructor(){WPe=this;var e=new _n("at.bindoc.virtualclinic.case.VirtualClinicCase.B03EVR.EVRIndex",this,1);e.qg("value",!1),this.qy_1=e}pe(){return this.qy_1}ng(){return[xn()]}},PW=class n{constructor(e){this.value=e}u1(){return this.value}ke(){return this.value}os(e){return new n(e)}copy(e,t){return e=e===T?this.value:e,this.os(e)}toString(){return"EVRIndex(value="+this.value+")"}hashCode(){return on(this.value)}equals(e){if(this===e)return!0;if(!(e instanceof n))return!1;var t=e instanceof n?e:xi();return this.value===t.value}static ry(e,t,i){(1&e)!==1&&On(e,1,uve().qy_1);var r=tn(this);return r.value=t,r}},_ge=class{vr(){return dve()}},FW=class{constructor(){ZPe=this;var e=new _n("at.bindoc.virtualclinic.case.VirtualClinicCase.B03EVR",this,6);e.qg("year",!1),e.qg("krankenanstaltennummer",!1),e.qg("berichtstyp",!1),e.qg("evrIndex",!1),e.qg("wertBerichtsjahr",!1),e.qg("wertVorjahr",!1),this.sy_1=e}pe(){return this.sy_1}ng(){return[nn(),ma(),US(),uve(),it(zi()),it(zi())]}},vge=class{vr(){return hve()}},LW=class{constructor(){QPe=this;var e=new _n("at.bindoc.virtualclinic.case.VirtualClinicCase.B04QVA.QVAIndex",this,1);e.qg("value",!1),this.ty_1=e}pe(){return this.ty_1}ng(){return[xn()]}},BW=class n{constructor(e){this.value=e}u1(){return this.value}ke(){return this.value}os(e){return new n(e)}copy(e,t){return e=e===T?this.value:e,this.os(e)}toString(){return"QVAIndex(value="+this.value+")"}hashCode(){return on(this.value)}equals(e){if(this===e)return!0;if(!(e instanceof n))return!1;var t=e instanceof n?e:xi();return this.value===t.value}static uy(e,t,i){(1&e)!==1&&On(e,1,hve().ty_1);var r=tn(this);return r.value=t,r}},yge=class{vr(){return pve()}},zW=class{constructor(){XPe=this;var e=new _n("at.bindoc.virtualclinic.case.VirtualClinicCase.B04QVA",this,6);e.qg("year",!1),e.qg("krankenanstaltennummer",!1),e.qg("berichtstyp",!1),e.qg("qvaIndex",!1),e.qg("wertBerichtsjahr",!1),e.qg("wertVorjahr",!1),this.vy_1=e}pe(){return this.vy_1}ng(){return[nn(),ma(),US(),hve(),it(zi()),it(zi())]}},bge=class{vr(){return fve()}},VW=class{constructor(){JPe=this;var e=new _n("at.bindoc.virtualclinic.case.VirtualClinicCase.B05Erloesstruktur.ErloesIndex",this,1);e.qg("value",!1),this.wy_1=e}pe(){return this.wy_1}ng(){return[xn()]}},UW=class n{constructor(e){this.value=e}u1(){return this.value}ke(){return this.value}os(e){return new n(e)}copy(e,t){return e=e===T?this.value:e,this.os(e)}toString(){return"ErloesIndex(value="+this.value+")"}hashCode(){return on(this.value)}equals(e){if(this===e)return!0;if(!(e instanceof n))return!1;var t=e instanceof n?e:xi();return this.value===t.value}static xy(e,t,i){(1&e)!==1&&On(e,1,fve().wy_1);var r=tn(this);return r.value=t,r}},xge=class{vr(){return mve()}},jW=class{constructor(){eFe=this;var e=new _n("at.bindoc.virtualclinic.case.VirtualClinicCase.B05Erloesstruktur",this,6);e.qg("year",!1),e.qg("krankenanstaltennummer",!1),e.qg("berichtstyp",!1),e.qg("erloesIndex",!1),e.qg("wertGesamt",!1),e.qg("wertLGF",!1),this.yy_1=e}pe(){return this.yy_1}ng(){return[nn(),ma(),US(),fve(),it(zi()),it(zi())]}},wge=class{vr(){return gve()}},HW=class{constructor(){tFe=this;var e=new _n("at.bindoc.virtualclinic.case.VirtualClinicCase.B06Zuschusstruktur.ZuschussartIndex",this,1);e.qg("value",!1),this.zy_1=e}pe(){return this.zy_1}ng(){return[xn()]}},Cge=class{vr(){return _ve()}},GW=class{constructor(){iFe=this;var e=new _n("at.bindoc.virtualclinic.case.VirtualClinicCase.B06Zuschusstruktur.FinanzierungstraegerIndex",this,1);e.qg("value",!1),this.az_1=e}pe(){return this.az_1}ng(){return[xn()]}},YW=class n{constructor(e){this.value=e}u1(){return this.value}ke(){return this.value}os(e){return new n(e)}copy(e,t){return e=e===T?this.value:e,this.os(e)}toString(){return"ZuschussartIndex(value="+this.value+")"}hashCode(){return on(this.value)}equals(e){if(this===e)return!0;if(!(e instanceof n))return!1;var t=e instanceof n?e:xi();return this.value===t.value}static bz(e,t,i){(1&e)!==1&&On(e,1,gve().zy_1);var r=tn(this);return r.value=t,r}},qW=class n{constructor(e){this.value=e}u1(){return this.value}ke(){return this.value}os(e){return new n(e)}copy(e,t){return e=e===T?this.value:e,this.os(e)}toString(){return"FinanzierungstraegerIndex(value="+this.value+")"}hashCode(){return on(this.value)}equals(e){if(this===e)return!0;if(!(e instanceof n))return!1;var t=e instanceof n?e:xi();return this.value===t.value}static cz(e,t,i){(1&e)!==1&&On(e,1,_ve().az_1);var r=tn(this);return r.value=t,r}},Sge=class{vr(){return vve()}},$W=class{constructor(){nFe=this;var e=new _n("at.bindoc.virtualclinic.case.VirtualClinicCase.B06Zuschusstruktur",this,6);e.qg("year",!1),e.qg("krankenanstaltennummer",!1),e.qg("berichtstyp",!1),e.qg("finanzierungstraegerIndex",!1),e.qg("zuschussartIndex",!1),e.qg("zuschuss",!1),this.dz_1=e}pe(){return this.dz_1}ng(){return[nn(),ma(),US(),_ve(),gve(),it(zi())]}},R5=class n{constructor(e){this.value=e}u1(){return this.value}ke(){return this.value}os(e){return new n(e)}copy(e,t){return e=e===T?this.value:e,this.os(e)}toString(){return"CaseId(value="+this.value+")"}hashCode(){return on(this.value)}equals(e){if(this===e)return!0;if(!(e instanceof n))return!1;var t=e instanceof n?e:xi();return this.value===t.value}static ez(e,t,i){(1&e)!==1&&On(e,1,Zge().it_1);var r=tn(this);return r.value=t,r}},KW=class n{constructor(e,t,i,r,o,s,c,h,g,x,C,A,k,O,F,L){this.aufnahmezeit=e,this.behandlungsart=t,this.agmId=i,this.gender=r,this.staatsbuergerschaft=o,this.wohnsitz=s,this.aufnahmeart1=c,this.aufnahmeart2=h,this.transportart=g,this.zugewiesenVon=x,this.zugewiesenZu=C,this.entlassung=A,this.leistungszustaendigerKostentraeger=k,this.fondsrelevanz=O,this.abrechnenderKostentraeger=F,this.abrechnungsquartalDerSozialversicherung=L}fz(){return this.aufnahmezeit}gz(){return this.behandlungsart}hz(){return this.agmId}iz(){return this.gender}jz(){return this.staatsbuergerschaft}kz(){return this.wohnsitz}lz(){return this.aufnahmeart1}mz(){return this.aufnahmeart2}nz(){return this.transportart}oz(){return this.zugewiesenVon}pz(){return this.zugewiesenZu}qz(){return this.entlassung}rz(){return this.leistungszustaendigerKostentraeger}sz(){return this.fondsrelevanz}tz(){return this.abrechnenderKostentraeger}uz(){return this.abrechnungsquartalDerSozialversicherung}ke(){return this.aufnahmezeit}le(){return this.behandlungsart}et(){return this.agmId}ft(){return this.gender}vz(){return this.staatsbuergerschaft}wz(){return this.wohnsitz}xz(){return this.aufnahmeart1}yz(){return this.aufnahmeart2}zz(){return this.transportart}a10(){return this.zugewiesenVon}b10(){return this.zugewiesenZu}c10(){return this.entlassung}d10(){return this.leistungszustaendigerKostentraeger}e10(){return this.fondsrelevanz}f10(){return this.abrechnenderKostentraeger}g10(){return this.abrechnungsquartalDerSozialversicherung}h10(e,t,i,r,o,s,c,h,g,x,C,A,k,O,F,L){return new n(e,t,i,r,o,s,c,h,g,x,C,A,k,O,F,L)}copy(e,t,i,r,o,s,c,h,g,x,C,A,k,O,F,L,z){return e=e===T?this.aufnahmezeit:e,t=t===T?this.behandlungsart:t,i=i===T?this.agmId:i,r=r===T?this.gender:r,o=o===T?this.staatsbuergerschaft:o,s=s===T?this.wohnsitz:s,c=c===T?this.aufnahmeart1:c,h=h===T?this.aufnahmeart2:h,g=g===T?this.transportart:g,x=x===T?this.zugewiesenVon:x,C=C===T?this.zugewiesenZu:C,A=A===T?this.entlassung:A,k=k===T?this.leistungszustaendigerKostentraeger:k,O=O===T?this.fondsrelevanz:O,F=F===T?this.abrechnenderKostentraeger:F,L=L===T?this.abrechnungsquartalDerSozialversicherung:L,this.h10(e,t,i,r,o,s,c,h,g,x,C,A,k,O,F,L)}toString(){return"X01Basisdaten(aufnahmezeit="+Wi(this.aufnahmezeit)+", behandlungsart="+this.behandlungsart.toString()+", agmId="+this.agmId.toString()+", gender="+this.gender.toString()+", staatsbuergerschaft="+this.staatsbuergerschaft.toString()+", wohnsitz="+this.wohnsitz.toString()+", aufnahmeart1="+Lo(this.aufnahmeart1)+", aufnahmeart2="+Lo(this.aufnahmeart2)+", transportart="+Lo(this.transportart)+", zugewiesenVon="+Lo(this.zugewiesenVon)+", zugewiesenZu="+Lo(this.zugewiesenZu)+", entlassung="+Lo(this.entlassung)+", leistungszustaendigerKostentraeger="+Lo(this.leistungszustaendigerKostentraeger)+", fondsrelevanz="+Lo(this.fondsrelevanz)+", abrechnenderKostentraeger="+Lo(this.abrechnenderKostentraeger)+", abrechnungsquartalDerSozialversicherung="+this.abrechnungsquartalDerSozialversicherung+")"}hashCode(){var e=this.aufnahmezeit.hashCode();return e=Le(e,31)+this.behandlungsart.hashCode()|0,e=Le(e,31)+this.agmId.hashCode()|0,e=Le(e,31)+this.gender.hashCode()|0,e=Le(e,31)+this.staatsbuergerschaft.hashCode()|0,e=Le(e,31)+this.wohnsitz.hashCode()|0,e=Le(e,31)+(this.aufnahmeart1==null?0:this.aufnahmeart1.hashCode())|0,e=Le(e,31)+(this.aufnahmeart2==null?0:this.aufnahmeart2.hashCode())|0,e=Le(e,31)+(this.transportart==null?0:this.transportart.hashCode())|0,e=Le(e,31)+(this.zugewiesenVon==null?0:this.zugewiesenVon.hashCode())|0,e=Le(e,31)+(this.zugewiesenZu==null?0:this.zugewiesenZu.hashCode())|0,e=Le(e,31)+(this.entlassung==null?0:this.entlassung.hashCode())|0,e=Le(e,31)+(this.leistungszustaendigerKostentraeger==null?0:this.leistungszustaendigerKostentraeger.hashCode())|0,e=Le(e,31)+(this.fondsrelevanz==null?0:this.fondsrelevanz.hashCode())|0,e=Le(e,31)+(this.abrechnenderKostentraeger==null?0:this.abrechnenderKostentraeger.hashCode())|0,e=Le(e,31)+(this.abrechnungsquartalDerSozialversicherung==null?0:on(this.abrechnungsquartalDerSozialversicherung))|0,e}equals(e){if(this===e)return!0;if(!(e instanceof n))return!1;var t=e instanceof n?e:xi();return!(!this.aufnahmezeit.equals(t.aufnahmezeit)||!this.behandlungsart.equals(t.behandlungsart)||!this.agmId.equals(t.agmId)||!this.gender.equals(t.gender)||!this.staatsbuergerschaft.equals(t.staatsbuergerschaft)||!this.wohnsitz.equals(t.wohnsitz)||!Lt(this.aufnahmeart1,t.aufnahmeart1)||!Lt(this.aufnahmeart2,t.aufnahmeart2)||!Lt(this.transportart,t.transportart)||!Lt(this.zugewiesenVon,t.zugewiesenVon)||!Lt(this.zugewiesenZu,t.zugewiesenZu)||!Lt(this.entlassung,t.entlassung)||!Lt(this.leistungszustaendigerKostentraeger,t.leistungszustaendigerKostentraeger)||!Lt(this.fondsrelevanz,t.fondsrelevanz)||!Lt(this.abrechnenderKostentraeger,t.abrechnenderKostentraeger)||this.abrechnungsquartalDerSozialversicherung!=t.abrechnungsquartalDerSozialversicherung)}static i10(e,t,i,r,o,s,c,h,g,x,C,A,k,O,F,L,z,j){(65535&e)!==65535&&On(e,65535,r_e().ku_1);var K=tn(this);return K.aufnahmezeit=t,K.behandlungsart=i,K.agmId=r,K.gender=o,K.staatsbuergerschaft=s,K.wohnsitz=c,K.aufnahmeart1=h,K.aufnahmeart2=g,K.transportart=x,K.zugewiesenVon=C,K.zugewiesenZu=A,K.entlassung=k,K.leistungszustaendigerKostentraeger=O,K.fondsrelevanz=F,K.abrechnenderKostentraeger=L,K.abrechnungsquartalDerSozialversicherung=z,K}},N5=class n{constructor(e,t,i,r,o,s,c){this.positionsnummer=e,this.funktionscode=t,this.zugang=i,this.physischeAnwesenheit=r,this.abgang=o,this.neugeboren=s,this.aufnahmezahl=c}j10(){return this.positionsnummer}k10(){return this.funktionscode}l10(){return this.zugang}m10(){return this.physischeAnwesenheit}n10(){return this.abgang}o10(){return this.neugeboren}bt(){return this.aufnahmezahl}ke(){return this.positionsnummer}le(){return this.funktionscode}et(){return this.zugang}ft(){return this.physischeAnwesenheit}vz(){return this.abgang}wz(){return this.neugeboren}xz(){return this.aufnahmezahl}p10(e,t,i,r,o,s,c){return new n(e,t,i,r,o,s,c)}copy(e,t,i,r,o,s,c,h){return e=e===T?this.positionsnummer:e,t=t===T?this.funktionscode:t,i=i===T?this.zugang:i,r=r===T?this.physischeAnwesenheit:r,o=o===T?this.abgang:o,s=s===T?this.neugeboren:s,c=c===T?this.aufnahmezahl:c,this.p10(e,t,i,r,o,s,c)}toString(){return"X02Hauptkostenstellen(positionsnummer="+this.positionsnummer.toString()+", funktionscode="+this.funktionscode.toString()+", zugang="+Wi(this.zugang)+", physischeAnwesenheit="+this.physischeAnwesenheit+", abgang="+Lo(this.abgang)+", neugeboren="+this.neugeboren+", aufnahmezahl="+Lo(this.aufnahmezahl)+")"}hashCode(){var e=this.positionsnummer.hashCode();return e=Le(e,31)+this.funktionscode.hashCode()|0,e=Le(e,31)+this.zugang.hashCode()|0,e=Le(e,31)+(this.physischeAnwesenheit==null?0:e1(this.physischeAnwesenheit))|0,e=Le(e,31)+(this.abgang==null?0:this.abgang.hashCode())|0,e=Le(e,31)+(this.neugeboren==null?0:e1(this.neugeboren))|0,e=Le(e,31)+(this.aufnahmezahl==null?0:this.aufnahmezahl.hashCode())|0,e}equals(e){if(this===e)return!0;if(!(e instanceof n))return!1;var t=e instanceof n?e:xi();return!(!this.positionsnummer.equals(t.positionsnummer)||!this.funktionscode.equals(t.funktionscode)||!this.zugang.equals(t.zugang)||this.physischeAnwesenheit!=t.physischeAnwesenheit||!Lt(this.abgang,t.abgang)||this.neugeboren!=t.neugeboren||!Lt(this.aufnahmezahl,t.aufnahmezahl))}static q10(e,t,i,r,o,s,c,h,g){(127&e)!==127&&On(e,127,a_e().qu_1);var x=tn(this);return x.positionsnummer=t,x.funktionscode=i,x.zugang=r,x.physischeAnwesenheit=o,x.abgang=s,x.neugeboren=c,x.aufnahmezahl=h,x}},P5=class n{constructor(e,t,i,r,o){this.code=e,this.typ=t,this.art=i,this.stationaerErworben=r,this.aufnahmezahl=o}r10(){return this.code}s10(){return this.typ}fu(){return this.art}t10(){return this.stationaerErworben}bt(){return this.aufnahmezahl}ke(){return this.code}le(){return this.typ}et(){return this.art}ft(){return this.stationaerErworben}vz(){return this.aufnahmezahl}u10(e,t,i,r,o){return new n(e,t,i,r,o)}copy(e,t,i,r,o,s){return e=e===T?this.code:e,t=t===T?this.typ:t,i=i===T?this.art:i,r=r===T?this.stationaerErworben:r,o=o===T?this.aufnahmezahl:o,this.u10(e,t,i,r,o)}toString(){return"X03Diagnose(code="+this.code.toString()+", typ="+this.typ.toString()+", art="+Lo(this.art)+", stationaerErworben="+this.stationaerErworben+", aufnahmezahl="+Lo(this.aufnahmezahl)+")"}hashCode(){var e=this.code.hashCode();return e=Le(e,31)+this.typ.hashCode()|0,e=Le(e,31)+(this.art==null?0:this.art.hashCode())|0,e=Le(e,31)+(this.stationaerErworben==null?0:e1(this.stationaerErworben))|0,e=Le(e,31)+(this.aufnahmezahl==null?0:this.aufnahmezahl.hashCode())|0,e}equals(e){if(this===e)return!0;if(!(e instanceof n))return!1;var t=e instanceof n?e:xi();return!(!this.code.equals(t.code)||!this.typ.equals(t.typ)||!Lt(this.art,t.art)||this.stationaerErworben!=t.stationaerErworben||!Lt(this.aufnahmezahl,t.aufnahmezahl))}static v10(e,t,i,r,o,s,c){(31&e)!==31&&On(e,31,d_e().zu_1);var h=tn(this);return h.code=t,h.typ=i,h.art=r,h.stationaerErworben=o,h.aufnahmezahl=s,h}},F5=class n{constructor(e,t,i,r,o,s,c,h){this.code=e,this.lokalisation=t,this.abrechnungsrelevanz=i,this.count=r,this.dateTime=o,this.funktionscode=s,this.krankenanstaltennummer=c,this.aufnahmezahl=h}r10(){return this.code}w10(){return this.lokalisation}x10(){return this.abrechnungsrelevanz}y10(){return this.count}z10(){return this.dateTime}k10(){return this.funktionscode}at(){return this.krankenanstaltennummer}bt(){return this.aufnahmezahl}ke(){return this.code}le(){return this.lokalisation}et(){return this.abrechnungsrelevanz}ft(){return this.count}vz(){return this.dateTime}wz(){return this.funktionscode}xz(){return this.krankenanstaltennummer}yz(){return this.aufnahmezahl}a11(e,t,i,r,o,s,c,h){return new n(e,t,i,r,o,s,c,h)}copy(e,t,i,r,o,s,c,h,g){return e=e===T?this.code:e,t=t===T?this.lokalisation:t,i=i===T?this.abrechnungsrelevanz:i,r=r===T?this.count:r,o=o===T?this.dateTime:o,s=s===T?this.funktionscode:s,c=c===T?this.krankenanstaltennummer:c,h=h===T?this.aufnahmezahl:h,this.a11(e,t,i,r,o,s,c,h)}toString(){return"X04MedizinischeLeistung(code="+this.code.toString()+", lokalisation="+Lo(this.lokalisation)+", abrechnungsrelevanz="+this.abrechnungsrelevanz+", count="+this.count.toString()+", dateTime="+Wi(this.dateTime)+", funktionscode="+Lo(this.funktionscode)+", krankenanstaltennummer="+Lo(this.krankenanstaltennummer)+", aufnahmezahl="+Lo(this.aufnahmezahl)+")"}hashCode(){var e=this.code.hashCode();return e=Le(e,31)+(this.lokalisation==null?0:this.lokalisation.hashCode())|0,e=Le(e,31)+e1(this.abrechnungsrelevanz)|0,e=Le(e,31)+this.count.hashCode()|0,e=Le(e,31)+this.dateTime.hashCode()|0,e=Le(e,31)+(this.funktionscode==null?0:this.funktionscode.hashCode())|0,e=Le(e,31)+(this.krankenanstaltennummer==null?0:this.krankenanstaltennummer.hashCode())|0,e=Le(e,31)+(this.aufnahmezahl==null?0:this.aufnahmezahl.hashCode())|0,e}equals(e){if(this===e)return!0;if(!(e instanceof n))return!1;var t=e instanceof n?e:xi();return!(!this.code.equals(t.code)||!Lt(this.lokalisation,t.lokalisation)||this.abrechnungsrelevanz!==t.abrechnungsrelevanz||!this.count.equals(t.count)||!this.dateTime.equals(t.dateTime)||!Lt(this.funktionscode,t.funktionscode)||!Lt(this.krankenanstaltennummer,t.krankenanstaltennummer)||!Lt(this.aufnahmezahl,t.aufnahmezahl))}static b11(e,t,i,r,o,s,c,h,g,x){(255&e)!==255&&On(e,255,p_e().ev_1);var C=tn(this);return C.code=t,C.lokalisation=i,C.abrechnungsrelevanz=r,C.count=o,C.dateTime=s,C.funktionscode=c,C.krankenanstaltennummer=h,C.aufnahmezahl=g,C}},WW=class n{constructor(e,t,i,r,o,s,c,h,g,x,C){this.abrechnungsgruppe=e,this.abrechnungsknoten=t,this.leistungskomponente=i,this.tageskomponente=r,this.punkteBelagsdauerausreisserUntenLeistungskomponente=o,this.punkteBelagsdauerausreisserUntenTageskomponente=s,this.zusatzpunkteBelagsdauerausreisserOben=c,this.zusatzpunkteIntensiv=h,this.zusatzpunkteMehrfachleistungen=g,this.punkteSpeziellerBereichTageweise=x,this.punkteTotal=C}c11(){return this.abrechnungsgruppe}d11(){return this.abrechnungsknoten}e11(){return this.leistungskomponente}f11(){return this.tageskomponente}g11(){return this.punkteBelagsdauerausreisserUntenLeistungskomponente}h11(){return this.punkteBelagsdauerausreisserUntenTageskomponente}i11(){return this.zusatzpunkteBelagsdauerausreisserOben}j11(){return this.zusatzpunkteIntensiv}k11(){return this.zusatzpunkteMehrfachleistungen}l11(){return this.punkteSpeziellerBereichTageweise}m11(){return this.punkteTotal}ke(){return this.abrechnungsgruppe}le(){return this.abrechnungsknoten}et(){return this.leistungskomponente}ft(){return this.tageskomponente}vz(){return this.punkteBelagsdauerausreisserUntenLeistungskomponente}wz(){return this.punkteBelagsdauerausreisserUntenTageskomponente}xz(){return this.zusatzpunkteBelagsdauerausreisserOben}yz(){return this.zusatzpunkteIntensiv}zz(){return this.zusatzpunkteMehrfachleistungen}a10(){return this.punkteSpeziellerBereichTageweise}b10(){return this.punkteTotal}n11(e,t,i,r,o,s,c,h,g,x,C){return new n(e,t,i,r,o,s,c,h,g,x,C)}copy(e,t,i,r,o,s,c,h,g,x,C,A){return e=e===T?this.abrechnungsgruppe:e,t=t===T?this.abrechnungsknoten:t,i=i===T?this.leistungskomponente:i,r=r===T?this.tageskomponente:r,o=o===T?this.punkteBelagsdauerausreisserUntenLeistungskomponente:o,s=s===T?this.punkteBelagsdauerausreisserUntenTageskomponente:s,c=c===T?this.zusatzpunkteBelagsdauerausreisserOben:c,h=h===T?this.zusatzpunkteIntensiv:h,g=g===T?this.zusatzpunkteMehrfachleistungen:g,x=x===T?this.punkteSpeziellerBereichTageweise:x,C=C===T?this.punkteTotal:C,this.n11(e,t,i,r,o,s,c,h,g,x,C)}toString(){return"X05Scoringdaten(abrechnungsgruppe="+this.abrechnungsgruppe+", abrechnungsknoten="+this.abrechnungsknoten+", leistungskomponente="+this.leistungskomponente+", tageskomponente="+this.tageskomponente+", punkteBelagsdauerausreisserUntenLeistungskomponente="+this.punkteBelagsdauerausreisserUntenLeistungskomponente+", punkteBelagsdauerausreisserUntenTageskomponente="+this.punkteBelagsdauerausreisserUntenTageskomponente+", zusatzpunkteBelagsdauerausreisserOben="+this.zusatzpunkteBelagsdauerausreisserOben+", zusatzpunkteIntensiv="+this.zusatzpunkteIntensiv+", zusatzpunkteMehrfachleistungen="+this.zusatzpunkteMehrfachleistungen+", punkteSpeziellerBereichTageweise="+this.punkteSpeziellerBereichTageweise+", punkteTotal="+this.punkteTotal+")"}hashCode(){var e=on(this.abrechnungsgruppe);return e=Le(e,31)+(this.abrechnungsknoten==null?0:on(this.abrechnungsknoten))|0,e=Le(e,31)+(this.leistungskomponente==null?0:this.leistungskomponente)|0,e=Le(e,31)+this.tageskomponente|0,e=Le(e,31)+(this.punkteBelagsdauerausreisserUntenLeistungskomponente==null?0:this.punkteBelagsdauerausreisserUntenLeistungskomponente)|0,e=Le(e,31)+(this.punkteBelagsdauerausreisserUntenTageskomponente==null?0:this.punkteBelagsdauerausreisserUntenTageskomponente)|0,e=Le(e,31)+(this.zusatzpunkteBelagsdauerausreisserOben==null?0:this.zusatzpunkteBelagsdauerausreisserOben)|0,e=Le(e,31)+(this.zusatzpunkteIntensiv==null?0:this.zusatzpunkteIntensiv)|0,e=Le(e,31)+this.zusatzpunkteMehrfachleistungen|0,e=Le(e,31)+(this.punkteSpeziellerBereichTageweise==null?0:this.punkteSpeziellerBereichTageweise)|0,e=Le(e,31)+this.punkteTotal|0,e}equals(e){if(this===e)return!0;if(!(e instanceof n))return!1;var t=e instanceof n?e:xi();return!(this.abrechnungsgruppe!==t.abrechnungsgruppe||this.abrechnungsknoten!=t.abrechnungsknoten||this.leistungskomponente!=t.leistungskomponente||this.tageskomponente!==t.tageskomponente||this.punkteBelagsdauerausreisserUntenLeistungskomponente!=t.punkteBelagsdauerausreisserUntenLeistungskomponente||this.punkteBelagsdauerausreisserUntenTageskomponente!=t.punkteBelagsdauerausreisserUntenTageskomponente||this.zusatzpunkteBelagsdauerausreisserOben!=t.zusatzpunkteBelagsdauerausreisserOben||this.zusatzpunkteIntensiv!=t.zusatzpunkteIntensiv||this.zusatzpunkteMehrfachleistungen!==t.zusatzpunkteMehrfachleistungen||this.punkteSpeziellerBereichTageweise!=t.punkteSpeziellerBereichTageweise||this.punkteTotal!==t.punkteTotal)}static o11(e,t,i,r,o,s,c,h,g,x,C,A,k){(2047&e)!==2047&&On(e,2047,f_e().fv_1);var O=tn(this);return O.abrechnungsgruppe=t,O.abrechnungsknoten=i,O.leistungskomponente=r,O.tageskomponente=o,O.punkteBelagsdauerausreisserUntenLeistungskomponente=s,O.punkteBelagsdauerausreisserUntenTageskomponente=c,O.zusatzpunkteBelagsdauerausreisserOben=h,O.zusatzpunkteIntensiv=g,O.zusatzpunkteMehrfachleistungen=x,O.punkteSpeziellerBereichTageweise=C,O.punkteTotal=A,O}},L5=class n{constructor(e,t,i){this.errorWarningWert=e,this.errorWarningCode=t,this.errorWarningKommentar=i}p11(){return this.errorWarningWert}q11(){return this.errorWarningCode}r11(){return this.errorWarningKommentar}ke(){return this.errorWarningWert}le(){return this.errorWarningCode}et(){return this.errorWarningKommentar}mw(e,t,i){return new n(e,t,i)}copy(e,t,i,r){return e=e===T?this.errorWarningWert:e,t=t===T?this.errorWarningCode:t,i=i===T?this.errorWarningKommentar:i,this.mw(e,t,i)}toString(){return"X06ErrorsWarnings(errorWarningWert="+this.errorWarningWert+", errorWarningCode="+this.errorWarningCode+", errorWarningKommentar="+this.errorWarningKommentar+")"}hashCode(){var e=this.errorWarningWert==null?0:on(this.errorWarningWert);return e=Le(e,31)+(this.errorWarningCode==null?0:on(this.errorWarningCode))|0,e=Le(e,31)+(this.errorWarningKommentar==null?0:on(this.errorWarningKommentar))|0,e}equals(e){if(this===e)return!0;if(!(e instanceof n))return!1;var t=e instanceof n?e:xi();return!(this.errorWarningWert!=t.errorWarningWert||this.errorWarningCode!=t.errorWarningCode||this.errorWarningKommentar!=t.errorWarningKommentar)}static s11(e,t,i,r,o){(7&e)!==7&&On(e,7,m_e().gv_1);var s=tn(this);return s.errorWarningWert=t,s.errorWarningCode=i,s.errorWarningKommentar=r,s}},B5=class n{constructor(e,t,i,r,o,s){this.kommentar1=e,this.kommentar2=t,this.kommentar3=i,this.kommentar4=r,this.kommentar5=o,this.kommentar6=s}t11(){return this.kommentar1}u11(){return this.kommentar2}v11(){return this.kommentar3}w11(){return this.kommentar4}x11(){return this.kommentar5}y11(){return this.kommentar6}ke(){return this.kommentar1}le(){return this.kommentar2}et(){return this.kommentar3}ft(){return this.kommentar4}vz(){return this.kommentar5}wz(){return this.kommentar6}z11(e,t,i,r,o,s){return new n(e,t,i,r,o,s)}copy(e,t,i,r,o,s,c){return e=e===T?this.kommentar1:e,t=t===T?this.kommentar2:t,i=i===T?this.kommentar3:i,r=r===T?this.kommentar4:r,o=o===T?this.kommentar5:o,s=s===T?this.kommentar6:s,this.z11(e,t,i,r,o,s)}toString(){return"X07Kommentar(kommentar1="+this.kommentar1+", kommentar2="+this.kommentar2+", kommentar3="+this.kommentar3+", kommentar4="+this.kommentar4+", kommentar5="+this.kommentar5+", kommentar6="+this.kommentar6+")"}hashCode(){var e=this.kommentar1==null?0:on(this.kommentar1);return e=Le(e,31)+(this.kommentar2==null?0:on(this.kommentar2))|0,e=Le(e,31)+(this.kommentar3==null?0:on(this.kommentar3))|0,e=Le(e,31)+(this.kommentar4==null?0:on(this.kommentar4))|0,e=Le(e,31)+(this.kommentar5==null?0:on(this.kommentar5))|0,e=Le(e,31)+(this.kommentar6==null?0:on(this.kommentar6))|0,e}equals(e){if(this===e)return!0;if(!(e instanceof n))return!1;var t=e instanceof n?e:xi();return!(this.kommentar1!=t.kommentar1||this.kommentar2!=t.kommentar2||this.kommentar3!=t.kommentar3||this.kommentar4!=t.kommentar4||this.kommentar5!=t.kommentar5||this.kommentar6!=t.kommentar6)}static a12(e,t,i,r,o,s,c,h){(63&e)!==63&&On(e,63,g_e().hv_1);var g=tn(this);return g.kommentar1=t,g.kommentar2=i,g.kommentar3=r,g.kommentar4=o,g.kommentar5=s,g.kommentar6=c,g}},z5=class n{constructor(e,t,i,r,o,s,c,h,g,x,C,A,k,O,F,L,z,j,K,ee,ne,X,q,fe,Se,pe,Me,ie,Re,Ue,Ee,We,Ie,Be){this.bettenfuehrendeHauptkostenstellePositionsnummer=e,this.erhebungsdatum=t,this.akuteInfektionBeiAufnahme=i,this.aufnahmegrundAnderer=r,this.aufnahmegrundBasispflege=o,this.aufnahmegrundGastrointestinal=s,this.aufnahmegrundHaematologisch=c,this.aufnahmegrundKardiovaskulaer=h,this.aufnahmegrundLeber=g,this.aufnahmegrundMetabolisch=x,this.aufnahmegrundNeurologisch=C,this.aufnahmegrundRenal=A,this.aufnahmegrundRespiratorisch=k,this.aufnahmegrundSchweresTrauma=O,this.aufnahmetyp=F,this.blutbildLeukozytenMinimum=L,this.blutbildPHWert=z,this.blutbildThrombozytenMinimum=j,this.chirurgieEingriff=K,this.chirurgischerStatus=ee,this.glasgowComaScaleMotorischeReaktion=ne,this.glasgowComaScaleVerbaleReaktion=X,this.glasgowComaScaleVisuelleReaktion=q,this.herzfrequenzMaximum=fe,this.koexistierendeErkrankungen=Se,this.koerpertemperaturMaximum=pe,this.mechanischeBeatmung=Me,this.sauerstoffPartialdruckArteriell=ie,this.sauerstoffkonzentrationInspiratorisch=Re,this.serumBilirubinMaximum=Ue,this.serumKreatininMaximum=Ee,this.systolischerBlutdruckMinimum=We,this.therapeutischeMassnahmenVorIBS=Ie,this.zutransferierung=Be}b12(){return this.bettenfuehrendeHauptkostenstellePositionsnummer}c12(){return this.erhebungsdatum}d12(){return this.akuteInfektionBeiAufnahme}e12(){return this.aufnahmegrundAnderer}f12(){return this.aufnahmegrundBasispflege}g12(){return this.aufnahmegrundGastrointestinal}h12(){return this.aufnahmegrundHaematologisch}i12(){return this.aufnahmegrundKardiovaskulaer}j12(){return this.aufnahmegrundLeber}k12(){return this.aufnahmegrundMetabolisch}l12(){return this.aufnahmegrundNeurologisch}m12(){return this.aufnahmegrundRenal}n12(){return this.aufnahmegrundRespiratorisch}o12(){return this.aufnahmegrundSchweresTrauma}p12(){return this.aufnahmetyp}q12(){return this.blutbildLeukozytenMinimum}r12(){return this.blutbildPHWert}s12(){return this.blutbildThrombozytenMinimum}t12(){return this.chirurgieEingriff}u12(){return this.chirurgischerStatus}v12(){return this.glasgowComaScaleMotorischeReaktion}w12(){return this.glasgowComaScaleVerbaleReaktion}x12(){return this.glasgowComaScaleVisuelleReaktion}y12(){return this.herzfrequenzMaximum}z12(){return this.koexistierendeErkrankungen}a13(){return this.koerpertemperaturMaximum}b13(){return this.mechanischeBeatmung}c13(){return this.sauerstoffPartialdruckArteriell}d13(){return this.sauerstoffkonzentrationInspiratorisch}e13(){return this.serumBilirubinMaximum}f13(){return this.serumKreatininMaximum}g13(){return this.systolischerBlutdruckMinimum}h13(){return this.therapeutischeMassnahmenVorIBS}i13(){return this.zutransferierung}ke(){return this.bettenfuehrendeHauptkostenstellePositionsnummer}le(){return this.erhebungsdatum}et(){return this.akuteInfektionBeiAufnahme}ft(){return this.aufnahmegrundAnderer}vz(){return this.aufnahmegrundBasispflege}wz(){return this.aufnahmegrundGastrointestinal}xz(){return this.aufnahmegrundHaematologisch}yz(){return this.aufnahmegrundKardiovaskulaer}zz(){return this.aufnahmegrundLeber}a10(){return this.aufnahmegrundMetabolisch}b10(){return this.aufnahmegrundNeurologisch}c10(){return this.aufnahmegrundRenal}d10(){return this.aufnahmegrundRespiratorisch}e10(){return this.aufnahmegrundSchweresTrauma}f10(){return this.aufnahmetyp}g10(){return this.blutbildLeukozytenMinimum}j13(){return this.blutbildPHWert}k13(){return this.blutbildThrombozytenMinimum}l13(){return this.chirurgieEingriff}m13(){return this.chirurgischerStatus}n13(){return this.glasgowComaScaleMotorischeReaktion}o13(){return this.glasgowComaScaleVerbaleReaktion}p13(){return this.glasgowComaScaleVisuelleReaktion}q13(){return this.herzfrequenzMaximum}r13(){return this.koexistierendeErkrankungen}s13(){return this.koerpertemperaturMaximum}t13(){return this.mechanischeBeatmung}u13(){return this.sauerstoffPartialdruckArteriell}v13(){return this.sauerstoffkonzentrationInspiratorisch}w13(){return this.serumBilirubinMaximum}x13(){return this.serumKreatininMaximum}y13(){return this.systolischerBlutdruckMinimum}z13(){return this.therapeutischeMassnahmenVorIBS}a14(){return this.zutransferierung}b14(e,t,i,r,o,s,c,h,g,x,C,A,k,O,F,L,z,j,K,ee,ne,X,q,fe,Se,pe,Me,ie,Re,Ue,Ee,We,Ie,Be){return new n(e,t,i,r,o,s,c,h,g,x,C,A,k,O,F,L,z,j,K,ee,ne,X,q,fe,Se,pe,Me,ie,Re,Ue,Ee,We,Ie,Be)}copy(e,t,i,r,o,s,c,h,g,x,C,A,k,O,F,L,z,j,K,ee,ne,X,q,fe,Se,pe,Me,ie,Re,Ue,Ee,We,Ie,Be,Ve){return e=e===T?this.bettenfuehrendeHauptkostenstellePositionsnummer:e,t=t===T?this.erhebungsdatum:t,i=i===T?this.akuteInfektionBeiAufnahme:i,r=r===T?this.aufnahmegrundAnderer:r,o=o===T?this.aufnahmegrundBasispflege:o,s=s===T?this.aufnahmegrundGastrointestinal:s,c=c===T?this.aufnahmegrundHaematologisch:c,h=h===T?this.aufnahmegrundKardiovaskulaer:h,g=g===T?this.aufnahmegrundLeber:g,x=x===T?this.aufnahmegrundMetabolisch:x,C=C===T?this.aufnahmegrundNeurologisch:C,A=A===T?this.aufnahmegrundRenal:A,k=k===T?this.aufnahmegrundRespiratorisch:k,O=O===T?this.aufnahmegrundSchweresTrauma:O,F=F===T?this.aufnahmetyp:F,L=L===T?this.blutbildLeukozytenMinimum:L,z=z===T?this.blutbildPHWert:z,j=j===T?this.blutbildThrombozytenMinimum:j,K=K===T?this.chirurgieEingriff:K,ee=ee===T?this.chirurgischerStatus:ee,ne=ne===T?this.glasgowComaScaleMotorischeReaktion:ne,X=X===T?this.glasgowComaScaleVerbaleReaktion:X,q=q===T?this.glasgowComaScaleVisuelleReaktion:q,fe=fe===T?this.herzfrequenzMaximum:fe,Se=Se===T?this.koexistierendeErkrankungen:Se,pe=pe===T?this.koerpertemperaturMaximum:pe,Me=Me===T?this.mechanischeBeatmung:Me,ie=ie===T?this.sauerstoffPartialdruckArteriell:ie,Re=Re===T?this.sauerstoffkonzentrationInspiratorisch:Re,Ue=Ue===T?this.serumBilirubinMaximum:Ue,Ee=Ee===T?this.serumKreatininMaximum:Ee,We=We===T?this.systolischerBlutdruckMinimum:We,Ie=Ie===T?this.therapeutischeMassnahmenVorIBS:Ie,Be=Be===T?this.zutransferierung:Be,this.b14(e,t,i,r,o,s,c,h,g,x,C,A,k,O,F,L,z,j,K,ee,ne,X,q,fe,Se,pe,Me,ie,Re,Ue,Ee,We,Ie,Be)}toString(){return"I11Saps3Daten(bettenfuehrendeHauptkostenstellePositionsnummer="+this.bettenfuehrendeHauptkostenstellePositionsnummer.toString()+", erhebungsdatum="+Wi(this.erhebungsdatum)+", akuteInfektionBeiAufnahme="+this.akuteInfektionBeiAufnahme+", aufnahmegrundAnderer="+this.aufnahmegrundAnderer+", aufnahmegrundBasispflege="+this.aufnahmegrundBasispflege+", aufnahmegrundGastrointestinal="+this.aufnahmegrundGastrointestinal+", aufnahmegrundHaematologisch="+this.aufnahmegrundHaematologisch+", aufnahmegrundKardiovaskulaer="+this.aufnahmegrundKardiovaskulaer+", aufnahmegrundLeber="+this.aufnahmegrundLeber+", aufnahmegrundMetabolisch="+this.aufnahmegrundMetabolisch+", aufnahmegrundNeurologisch="+this.aufnahmegrundNeurologisch+", aufnahmegrundRenal="+this.aufnahmegrundRenal+", aufnahmegrundRespiratorisch="+this.aufnahmegrundRespiratorisch+", aufnahmegrundSchweresTrauma="+this.aufnahmegrundSchweresTrauma+", aufnahmetyp="+this.aufnahmetyp+", blutbildLeukozytenMinimum="+this.blutbildLeukozytenMinimum+", blutbildPHWert="+this.blutbildPHWert+", blutbildThrombozytenMinimum="+this.blutbildThrombozytenMinimum+", chirurgieEingriff="+this.chirurgieEingriff+", chirurgischerStatus="+this.chirurgischerStatus+", glasgowComaScaleMotorischeReaktion="+this.glasgowComaScaleMotorischeReaktion+", glasgowComaScaleVerbaleReaktion="+this.glasgowComaScaleVerbaleReaktion+", glasgowComaScaleVisuelleReaktion="+this.glasgowComaScaleVisuelleReaktion+", herzfrequenzMaximum="+this.herzfrequenzMaximum+", koexistierendeErkrankungen="+this.koexistierendeErkrankungen+", koerpertemperaturMaximum="+this.koerpertemperaturMaximum+", mechanischeBeatmung="+this.mechanischeBeatmung+", sauerstoffPartialdruckArteriell="+this.sauerstoffPartialdruckArteriell+", sauerstoffkonzentrationInspiratorisch="+this.sauerstoffkonzentrationInspiratorisch+", serumBilirubinMaximum="+this.serumBilirubinMaximum+", serumKreatininMaximum="+this.serumKreatininMaximum+", systolischerBlutdruckMinimum="+this.systolischerBlutdruckMinimum+", therapeutischeMassnahmenVorIBS="+this.therapeutischeMassnahmenVorIBS+", zutransferierung="+this.zutransferierung+")"}hashCode(){var e=this.bettenfuehrendeHauptkostenstellePositionsnummer.hashCode();return e=Le(e,31)+this.erhebungsdatum.hashCode()|0,e=Le(e,31)+(this.akuteInfektionBeiAufnahme==null?0:on(this.akuteInfektionBeiAufnahme))|0,e=Le(e,31)+(this.aufnahmegrundAnderer==null?0:on(this.aufnahmegrundAnderer))|0,e=Le(e,31)+(this.aufnahmegrundBasispflege==null?0:on(this.aufnahmegrundBasispflege))|0,e=Le(e,31)+(this.aufnahmegrundGastrointestinal==null?0:on(this.aufnahmegrundGastrointestinal))|0,e=Le(e,31)+(this.aufnahmegrundHaematologisch==null?0:on(this.aufnahmegrundHaematologisch))|0,e=Le(e,31)+(this.aufnahmegrundKardiovaskulaer==null?0:on(this.aufnahmegrundKardiovaskulaer))|0,e=Le(e,31)+(this.aufnahmegrundLeber==null?0:on(this.aufnahmegrundLeber))|0,e=Le(e,31)+(this.aufnahmegrundMetabolisch==null?0:on(this.aufnahmegrundMetabolisch))|0,e=Le(e,31)+(this.aufnahmegrundNeurologisch==null?0:on(this.aufnahmegrundNeurologisch))|0,e=Le(e,31)+(this.aufnahmegrundRenal==null?0:on(this.aufnahmegrundRenal))|0,e=Le(e,31)+(this.aufnahmegrundRespiratorisch==null?0:on(this.aufnahmegrundRespiratorisch))|0,e=Le(e,31)+(this.aufnahmegrundSchweresTrauma==null?0:on(this.aufnahmegrundSchweresTrauma))|0,e=Le(e,31)+(this.aufnahmetyp==null?0:on(this.aufnahmetyp))|0,e=Le(e,31)+(this.blutbildLeukozytenMinimum==null?0:on(this.blutbildLeukozytenMinimum))|0,e=Le(e,31)+(this.blutbildPHWert==null?0:on(this.blutbildPHWert))|0,e=Le(e,31)+(this.blutbildThrombozytenMinimum==null?0:on(this.blutbildThrombozytenMinimum))|0,e=Le(e,31)+(this.chirurgieEingriff==null?0:on(this.chirurgieEingriff))|0,e=Le(e,31)+(this.chirurgischerStatus==null?0:on(this.chirurgischerStatus))|0,e=Le(e,31)+(this.glasgowComaScaleMotorischeReaktion==null?0:on(this.glasgowComaScaleMotorischeReaktion))|0,e=Le(e,31)+(this.glasgowComaScaleVerbaleReaktion==null?0:on(this.glasgowComaScaleVerbaleReaktion))|0,e=Le(e,31)+(this.glasgowComaScaleVisuelleReaktion==null?0:on(this.glasgowComaScaleVisuelleReaktion))|0,e=Le(e,31)+(this.herzfrequenzMaximum==null?0:on(this.herzfrequenzMaximum))|0,e=Le(e,31)+(this.koexistierendeErkrankungen==null?0:on(this.koexistierendeErkrankungen))|0,e=Le(e,31)+(this.koerpertemperaturMaximum==null?0:on(this.koerpertemperaturMaximum))|0,e=Le(e,31)+(this.mechanischeBeatmung==null?0:on(this.mechanischeBeatmung))|0,e=Le(e,31)+(this.sauerstoffPartialdruckArteriell==null?0:on(this.sauerstoffPartialdruckArteriell))|0,e=Le(e,31)+(this.sauerstoffkonzentrationInspiratorisch==null?0:on(this.sauerstoffkonzentrationInspiratorisch))|0,e=Le(e,31)+(this.serumBilirubinMaximum==null?0:on(this.serumBilirubinMaximum))|0,e=Le(e,31)+(this.serumKreatininMaximum==null?0:on(this.serumKreatininMaximum))|0,e=Le(e,31)+(this.systolischerBlutdruckMinimum==null?0:on(this.systolischerBlutdruckMinimum))|0,e=Le(e,31)+(this.therapeutischeMassnahmenVorIBS==null?0:on(this.therapeutischeMassnahmenVorIBS))|0,e=Le(e,31)+(this.zutransferierung==null?0:on(this.zutransferierung))|0,e}equals(e){if(this===e)return!0;if(!(e instanceof n))return!1;var t=e instanceof n?e:xi();return!(!this.bettenfuehrendeHauptkostenstellePositionsnummer.equals(t.bettenfuehrendeHauptkostenstellePositionsnummer)||!this.erhebungsdatum.equals(t.erhebungsdatum)||this.akuteInfektionBeiAufnahme!=t.akuteInfektionBeiAufnahme||this.aufnahmegrundAnderer!=t.aufnahmegrundAnderer||this.aufnahmegrundBasispflege!=t.aufnahmegrundBasispflege||this.aufnahmegrundGastrointestinal!=t.aufnahmegrundGastrointestinal||this.aufnahmegrundHaematologisch!=t.aufnahmegrundHaematologisch||this.aufnahmegrundKardiovaskulaer!=t.aufnahmegrundKardiovaskulaer||this.aufnahmegrundLeber!=t.aufnahmegrundLeber||this.aufnahmegrundMetabolisch!=t.aufnahmegrundMetabolisch||this.aufnahmegrundNeurologisch!=t.aufnahmegrundNeurologisch||this.aufnahmegrundRenal!=t.aufnahmegrundRenal||this.aufnahmegrundRespiratorisch!=t.aufnahmegrundRespiratorisch||this.aufnahmegrundSchweresTrauma!=t.aufnahmegrundSchweresTrauma||this.aufnahmetyp!=t.aufnahmetyp||this.blutbildLeukozytenMinimum!=t.blutbildLeukozytenMinimum||this.blutbildPHWert!=t.blutbildPHWert||this.blutbildThrombozytenMinimum!=t.blutbildThrombozytenMinimum||this.chirurgieEingriff!=t.chirurgieEingriff||this.chirurgischerStatus!=t.chirurgischerStatus||this.glasgowComaScaleMotorischeReaktion!=t.glasgowComaScaleMotorischeReaktion||this.glasgowComaScaleVerbaleReaktion!=t.glasgowComaScaleVerbaleReaktion||this.glasgowComaScaleVisuelleReaktion!=t.glasgowComaScaleVisuelleReaktion||this.herzfrequenzMaximum!=t.herzfrequenzMaximum||this.koexistierendeErkrankungen!=t.koexistierendeErkrankungen||this.koerpertemperaturMaximum!=t.koerpertemperaturMaximum||this.mechanischeBeatmung!=t.mechanischeBeatmung||this.sauerstoffPartialdruckArteriell!=t.sauerstoffPartialdruckArteriell||this.sauerstoffkonzentrationInspiratorisch!=t.sauerstoffkonzentrationInspiratorisch||this.serumBilirubinMaximum!=t.serumBilirubinMaximum||this.serumKreatininMaximum!=t.serumKreatininMaximum||this.systolischerBlutdruckMinimum!=t.systolischerBlutdruckMinimum||this.therapeutischeMassnahmenVorIBS!=t.therapeutischeMassnahmenVorIBS||this.zutransferierung!=t.zutransferierung)}static c14(e,t,i,r,o,s,c,h,g,x,C,A,k,O,F,L,z,j,K,ee,ne,X,q,fe,Se,pe,Me,ie,Re,Ue,Ee,We,Ie,Be,Ve,$e,Fe){if((-1&e)!==-1|(3&t)!==3){var Xe=new Int32Array([e,t]),ze=new Int32Array([-1,3]);Wq(Xe,ze,__e().iv_1)}var et=tn(this);return et.bettenfuehrendeHauptkostenstellePositionsnummer=i,et.erhebungsdatum=r,et.akuteInfektionBeiAufnahme=o,et.aufnahmegrundAnderer=s,et.aufnahmegrundBasispflege=c,et.aufnahmegrundGastrointestinal=h,et.aufnahmegrundHaematologisch=g,et.aufnahmegrundKardiovaskulaer=x,et.aufnahmegrundLeber=C,et.aufnahmegrundMetabolisch=A,et.aufnahmegrundNeurologisch=k,et.aufnahmegrundRenal=O,et.aufnahmegrundRespiratorisch=F,et.aufnahmegrundSchweresTrauma=L,et.aufnahmetyp=z,et.blutbildLeukozytenMinimum=j,et.blutbildPHWert=K,et.blutbildThrombozytenMinimum=ee,et.chirurgieEingriff=ne,et.chirurgischerStatus=X,et.glasgowComaScaleMotorischeReaktion=q,et.glasgowComaScaleVerbaleReaktion=fe,et.glasgowComaScaleVisuelleReaktion=Se,et.herzfrequenzMaximum=pe,et.koexistierendeErkrankungen=Me,et.koerpertemperaturMaximum=ie,et.mechanischeBeatmung=Re,et.sauerstoffPartialdruckArteriell=Ue,et.sauerstoffkonzentrationInspiratorisch=Ee,et.serumBilirubinMaximum=We,et.serumKreatininMaximum=Ie,et.systolischerBlutdruckMinimum=Be,et.therapeutischeMassnahmenVorIBS=Ve,et.zutransferierung=$e,et}},V5=class n{constructor(e,t,i,r,o,s,c,h,g,x,C,A,k,O,F,L,z,j,K,ee,ne,X,q,fe,Se,pe,Me,ie,Re,Ue,Ee,We){this.bettenfuehrendeHauptkostenstellePositionsnummer=e,this.erhebungsdatum=t,this.standardMonitoring=i,this.labor=r,this.medikamente=o,this.verbandswechsel=s,this.drainagenpflege=c,this.atmungsmodus=h,this.atemwegszugang=g,this.tubusStomapflege=x,this.atemtherapie=C,this.medikamenteVasoaktiv=A,this.flussigkeitsersatzMassiv=k,this.katheterArteriell=O,this.monitoringHaemodynamisch=F,this.katheterZentralvenoes=L,this.reanimationKardiopulmonal=z,this.nierenersatztherapie=j,this.harnbilanzierung=K,this.diureseAktiv=ee,this.hirndruckmessung=ne,this.behandlungMetabolischerEntgleisungen=X,this.ernaehrungEnteral=q,this.ernaehrungParenteral=fe,this.interventionen=Se,this.diagnostikUndTherapieAusserhalbDerIBS=pe,this.agitationUndDelirium=Me,this.assistKardial=ie,this.assistPulmonal=Re,this.hypothermieTherapeutisch=Ue,this.lebersupportExtrakorporal=Ee,this.kontinuierlicheIntravenoeseAntikonvulsiveTherapie=We}b12(){return this.bettenfuehrendeHauptkostenstellePositionsnummer}c12(){return this.erhebungsdatum}d14(){return this.standardMonitoring}e14(){return this.labor}f14(){return this.medikamente}g14(){return this.verbandswechsel}h14(){return this.drainagenpflege}i14(){return this.atmungsmodus}j14(){return this.atemwegszugang}k14(){return this.tubusStomapflege}l14(){return this.atemtherapie}m14(){return this.medikamenteVasoaktiv}n14(){return this.flussigkeitsersatzMassiv}o14(){return this.katheterArteriell}p14(){return this.monitoringHaemodynamisch}q14(){return this.katheterZentralvenoes}r14(){return this.reanimationKardiopulmonal}s14(){return this.nierenersatztherapie}t14(){return this.harnbilanzierung}u14(){return this.diureseAktiv}v14(){return this.hirndruckmessung}w14(){return this.behandlungMetabolischerEntgleisungen}x14(){return this.ernaehrungEnteral}y14(){return this.ernaehrungParenteral}z14(){return this.interventionen}a15(){return this.diagnostikUndTherapieAusserhalbDerIBS}b15(){return this.agitationUndDelirium}c15(){return this.assistKardial}d15(){return this.assistPulmonal}e15(){return this.hypothermieTherapeutisch}f15(){return this.lebersupportExtrakorporal}g15(){return this.kontinuierlicheIntravenoeseAntikonvulsiveTherapie}ke(){return this.bettenfuehrendeHauptkostenstellePositionsnummer}le(){return this.erhebungsdatum}et(){return this.standardMonitoring}ft(){return this.labor}vz(){return this.medikamente}wz(){return this.verbandswechsel}xz(){return this.drainagenpflege}yz(){return this.atmungsmodus}zz(){return this.atemwegszugang}a10(){return this.tubusStomapflege}b10(){return this.atemtherapie}c10(){return this.medikamenteVasoaktiv}d10(){return this.flussigkeitsersatzMassiv}e10(){return this.katheterArteriell}f10(){return this.monitoringHaemodynamisch}g10(){return this.katheterZentralvenoes}j13(){return this.reanimationKardiopulmonal}k13(){return this.nierenersatztherapie}l13(){return this.harnbilanzierung}m13(){return this.diureseAktiv}n13(){return this.hirndruckmessung}o13(){return this.behandlungMetabolischerEntgleisungen}p13(){return this.ernaehrungEnteral}q13(){return this.ernaehrungParenteral}r13(){return this.interventionen}s13(){return this.diagnostikUndTherapieAusserhalbDerIBS}t13(){return this.agitationUndDelirium}u13(){return this.assistKardial}v13(){return this.assistPulmonal}w13(){return this.hypothermieTherapeutisch}x13(){return this.lebersupportExtrakorporal}y13(){return this.kontinuierlicheIntravenoeseAntikonvulsiveTherapie}h15(e,t,i,r,o,s,c,h,g,x,C,A,k,O,F,L,z,j,K,ee,ne,X,q,fe,Se,pe,Me,ie,Re,Ue,Ee,We){return new n(e,t,i,r,o,s,c,h,g,x,C,A,k,O,F,L,z,j,K,ee,ne,X,q,fe,Se,pe,Me,ie,Re,Ue,Ee,We)}copy(e,t,i,r,o,s,c,h,g,x,C,A,k,O,F,L,z,j,K,ee,ne,X,q,fe,Se,pe,Me,ie,Re,Ue,Ee,We,Ie){return e=e===T?this.bettenfuehrendeHauptkostenstellePositionsnummer:e,t=t===T?this.erhebungsdatum:t,i=i===T?this.standardMonitoring:i,r=r===T?this.labor:r,o=o===T?this.medikamente:o,s=s===T?this.verbandswechsel:s,c=c===T?this.drainagenpflege:c,h=h===T?this.atmungsmodus:h,g=g===T?this.atemwegszugang:g,x=x===T?this.tubusStomapflege:x,C=C===T?this.atemtherapie:C,A=A===T?this.medikamenteVasoaktiv:A,k=k===T?this.flussigkeitsersatzMassiv:k,O=O===T?this.katheterArteriell:O,F=F===T?this.monitoringHaemodynamisch:F,L=L===T?this.katheterZentralvenoes:L,z=z===T?this.reanimationKardiopulmonal:z,j=j===T?this.nierenersatztherapie:j,K=K===T?this.harnbilanzierung:K,ee=ee===T?this.diureseAktiv:ee,ne=ne===T?this.hirndruckmessung:ne,X=X===T?this.behandlungMetabolischerEntgleisungen:X,q=q===T?this.ernaehrungEnteral:q,fe=fe===T?this.ernaehrungParenteral:fe,Se=Se===T?this.interventionen:Se,pe=pe===T?this.diagnostikUndTherapieAusserhalbDerIBS:pe,Me=Me===T?this.agitationUndDelirium:Me,ie=ie===T?this.assistKardial:ie,Re=Re===T?this.assistPulmonal:Re,Ue=Ue===T?this.hypothermieTherapeutisch:Ue,Ee=Ee===T?this.lebersupportExtrakorporal:Ee,We=We===T?this.kontinuierlicheIntravenoeseAntikonvulsiveTherapie:We,this.h15(e,t,i,r,o,s,c,h,g,x,C,A,k,O,F,L,z,j,K,ee,ne,X,q,fe,Se,pe,Me,ie,Re,Ue,Ee,We)}toString(){return"I12TissADaten(bettenfuehrendeHauptkostenstellePositionsnummer="+this.bettenfuehrendeHauptkostenstellePositionsnummer.toString()+", erhebungsdatum="+Wi(this.erhebungsdatum)+", standardMonitoring="+this.standardMonitoring+", labor="+this.labor+", medikamente="+this.medikamente+", verbandswechsel="+this.verbandswechsel+", drainagenpflege="+this.drainagenpflege+", atmungsmodus="+this.atmungsmodus+", atemwegszugang="+this.atemwegszugang+", tubusStomapflege="+this.tubusStomapflege+", atemtherapie="+this.atemtherapie+", medikamenteVasoaktiv="+this.medikamenteVasoaktiv+", flussigkeitsersatzMassiv="+this.flussigkeitsersatzMassiv+", katheterArteriell="+this.katheterArteriell+", monitoringHaemodynamisch="+this.monitoringHaemodynamisch+", katheterZentralvenoes="+this.katheterZentralvenoes+", reanimationKardiopulmonal="+this.reanimationKardiopulmonal+", nierenersatztherapie="+this.nierenersatztherapie+", harnbilanzierung="+this.harnbilanzierung+", diureseAktiv="+this.diureseAktiv+", hirndruckmessung="+this.hirndruckmessung+", behandlungMetabolischerEntgleisungen="+this.behandlungMetabolischerEntgleisungen+", ernaehrungEnteral="+this.ernaehrungEnteral+", ernaehrungParenteral="+this.ernaehrungParenteral+", interventionen="+this.interventionen+", diagnostikUndTherapieAusserhalbDerIBS="+this.diagnostikUndTherapieAusserhalbDerIBS+", agitationUndDelirium="+this.agitationUndDelirium+", assistKardial="+this.assistKardial+", assistPulmonal="+this.assistPulmonal+", hypothermieTherapeutisch="+this.hypothermieTherapeutisch+", lebersupportExtrakorporal="+this.lebersupportExtrakorporal+", kontinuierlicheIntravenoeseAntikonvulsiveTherapie="+this.kontinuierlicheIntravenoeseAntikonvulsiveTherapie+")"}hashCode(){var e=this.bettenfuehrendeHauptkostenstellePositionsnummer.hashCode();return e=Le(e,31)+this.erhebungsdatum.hashCode()|0,e=Le(e,31)+this.standardMonitoring|0,e=Le(e,31)+this.labor|0,e=Le(e,31)+this.medikamente|0,e=Le(e,31)+this.verbandswechsel|0,e=Le(e,31)+this.drainagenpflege|0,e=Le(e,31)+this.atmungsmodus|0,e=Le(e,31)+this.atemwegszugang|0,e=Le(e,31)+this.tubusStomapflege|0,e=Le(e,31)+this.atemtherapie|0,e=Le(e,31)+this.medikamenteVasoaktiv|0,e=Le(e,31)+this.flussigkeitsersatzMassiv|0,e=Le(e,31)+this.katheterArteriell|0,e=Le(e,31)+this.monitoringHaemodynamisch|0,e=Le(e,31)+this.katheterZentralvenoes|0,e=Le(e,31)+this.reanimationKardiopulmonal|0,e=Le(e,31)+this.nierenersatztherapie|0,e=Le(e,31)+this.harnbilanzierung|0,e=Le(e,31)+this.diureseAktiv|0,e=Le(e,31)+this.hirndruckmessung|0,e=Le(e,31)+this.behandlungMetabolischerEntgleisungen|0,e=Le(e,31)+this.ernaehrungEnteral|0,e=Le(e,31)+this.ernaehrungParenteral|0,e=Le(e,31)+this.interventionen|0,e=Le(e,31)+this.diagnostikUndTherapieAusserhalbDerIBS|0,e=Le(e,31)+this.agitationUndDelirium|0,e=Le(e,31)+this.assistKardial|0,e=Le(e,31)+this.assistPulmonal|0,e=Le(e,31)+this.hypothermieTherapeutisch|0,e=Le(e,31)+this.lebersupportExtrakorporal|0,e=Le(e,31)+this.kontinuierlicheIntravenoeseAntikonvulsiveTherapie|0,e}equals(e){if(this===e)return!0;if(!(e instanceof n))return!1;var t=e instanceof n?e:xi();return!(!this.bettenfuehrendeHauptkostenstellePositionsnummer.equals(t.bettenfuehrendeHauptkostenstellePositionsnummer)||!this.erhebungsdatum.equals(t.erhebungsdatum)||this.standardMonitoring!==t.standardMonitoring||this.labor!==t.labor||this.medikamente!==t.medikamente||this.verbandswechsel!==t.verbandswechsel||this.drainagenpflege!==t.drainagenpflege||this.atmungsmodus!==t.atmungsmodus||this.atemwegszugang!==t.atemwegszugang||this.tubusStomapflege!==t.tubusStomapflege||this.atemtherapie!==t.atemtherapie||this.medikamenteVasoaktiv!==t.medikamenteVasoaktiv||this.flussigkeitsersatzMassiv!==t.flussigkeitsersatzMassiv||this.katheterArteriell!==t.katheterArteriell||this.monitoringHaemodynamisch!==t.monitoringHaemodynamisch||this.katheterZentralvenoes!==t.katheterZentralvenoes||this.reanimationKardiopulmonal!==t.reanimationKardiopulmonal||this.nierenersatztherapie!==t.nierenersatztherapie||this.harnbilanzierung!==t.harnbilanzierung||this.diureseAktiv!==t.diureseAktiv||this.hirndruckmessung!==t.hirndruckmessung||this.behandlungMetabolischerEntgleisungen!==t.behandlungMetabolischerEntgleisungen||this.ernaehrungEnteral!==t.ernaehrungEnteral||this.ernaehrungParenteral!==t.ernaehrungParenteral||this.interventionen!==t.interventionen||this.diagnostikUndTherapieAusserhalbDerIBS!==t.diagnostikUndTherapieAusserhalbDerIBS||this.agitationUndDelirium!==t.agitationUndDelirium||this.assistKardial!==t.assistKardial||this.assistPulmonal!==t.assistPulmonal||this.hypothermieTherapeutisch!==t.hypothermieTherapeutisch||this.lebersupportExtrakorporal!==t.lebersupportExtrakorporal||this.kontinuierlicheIntravenoeseAntikonvulsiveTherapie!==t.kontinuierlicheIntravenoeseAntikonvulsiveTherapie)}static i15(e,t,i,r,o,s,c,h,g,x,C,A,k,O,F,L,z,j,K,ee,ne,X,q,fe,Se,pe,Me,ie,Re,Ue,Ee,We,Ie,Be,Ve){if((-1&e)!==-1|!!(0&t)){var $e=new Int32Array([e,t]),Fe=new Int32Array([-1,0]);Wq($e,Fe,v_e().jv_1)}var Xe=tn(this);return Xe.bettenfuehrendeHauptkostenstellePositionsnummer=i,Xe.erhebungsdatum=r,Xe.standardMonitoring=o,Xe.labor=s,Xe.medikamente=c,Xe.verbandswechsel=h,Xe.drainagenpflege=g,Xe.atmungsmodus=x,Xe.atemwegszugang=C,Xe.tubusStomapflege=A,Xe.atemtherapie=k,Xe.medikamenteVasoaktiv=O,Xe.flussigkeitsersatzMassiv=F,Xe.katheterArteriell=L,Xe.monitoringHaemodynamisch=z,Xe.katheterZentralvenoes=j,Xe.reanimationKardiopulmonal=K,Xe.nierenersatztherapie=ee,Xe.harnbilanzierung=ne,Xe.diureseAktiv=X,Xe.hirndruckmessung=q,Xe.behandlungMetabolischerEntgleisungen=fe,Xe.ernaehrungEnteral=Se,Xe.ernaehrungParenteral=pe,Xe.interventionen=Me,Xe.diagnostikUndTherapieAusserhalbDerIBS=ie,Xe.agitationUndDelirium=Re,Xe.assistKardial=Ue,Xe.assistPulmonal=Ee,Xe.hypothermieTherapeutisch=We,Xe.lebersupportExtrakorporal=Ie,Xe.kontinuierlicheIntravenoeseAntikonvulsiveTherapie=Be,Xe}},U5=class n{constructor(e,t,i,r,o,s){this.year=e,this.krankenanstaltennummer=t,this.funktionscode=i,this.leistungsbereich=r,this.gruppe=o,this.punkte=s}ti(){return this.year}at(){return this.krankenanstaltennummer}k10(){return this.funktionscode}j15(){return this.leistungsbereich}k15(){return this.gruppe}l15(){return this.punkte}ke(){return this.year}le(){return this.krankenanstaltennummer}et(){return this.funktionscode}ft(){return this.leistungsbereich}vz(){return this.gruppe}wz(){return this.punkte}m15(e,t,i,r,o,s){return new n(e,t,i,r,o,s)}copy(e,t,i,r,o,s,c){return e=e===T?this.year:e,t=t===T?this.krankenanstaltennummer:t,i=i===T?this.funktionscode:i,r=r===T?this.leistungsbereich:r,o=o===T?this.gruppe:o,s=s===T?this.punkte:s,this.m15(e,t,i,r,o,s)}toString(){return"L01SpezielleLeistungsbereiche(year="+this.year+", krankenanstaltennummer="+this.krankenanstaltennummer.toString()+", funktionscode="+Lo(this.funktionscode)+", leistungsbereich="+Lo(this.leistungsbereich)+", gruppe="+Lo(this.gruppe)+", punkte="+this.punkte+")"}hashCode(){var e=this.year;return e=Le(e,31)+this.krankenanstaltennummer.hashCode()|0,e=Le(e,31)+(this.funktionscode==null?0:this.funktionscode.hashCode())|0,e=Le(e,31)+(this.leistungsbereich==null?0:this.leistungsbereich.hashCode())|0,e=Le(e,31)+(this.gruppe==null?0:this.gruppe.hashCode())|0,e=Le(e,31)+(this.punkte==null?0:this.punkte)|0,e}equals(e){if(this===e)return!0;if(!(e instanceof n))return!1;var t=e instanceof n?e:xi();return!(this.year!==t.year||!this.krankenanstaltennummer.equals(t.krankenanstaltennummer)||!Lt(this.funktionscode,t.funktionscode)||!Lt(this.leistungsbereich,t.leistungsbereich)||!Lt(this.gruppe,t.gruppe)||this.punkte!=t.punkte)}static n15(e,t,i,r,o,s,c,h){(63&e)!==63&&On(e,63,x_e().ov_1);var g=tn(this);return g.year=t,g.krankenanstaltennummer=i,g.funktionscode=r,g.leistungsbereich=o,g.gruppe=s,g.punkte=c,g}},j5=class n{constructor(e,t,i,r){this.year=e,this.krankenanstaltennummer=t,this.kostentraegerCode=i,this.lgfRelevanz=r}ti(){return this.year}at(){return this.krankenanstaltennummer}o15(){return this.kostentraegerCode}p15(){return this.lgfRelevanz}ke(){return this.year}le(){return this.krankenanstaltennummer}et(){return this.kostentraegerCode}ft(){return this.lgfRelevanz}q15(e,t,i,r){return new n(e,t,i,r)}copy(e,t,i,r,o){return e=e===T?this.year:e,t=t===T?this.krankenanstaltennummer:t,i=i===T?this.kostentraegerCode:i,r=r===T?this.lgfRelevanz:r,this.q15(e,t,i,r)}toString(){return"L02AbrechnungsrelevanteKostentraeger(year="+this.year+", krankenanstaltennummer="+this.krankenanstaltennummer.toString()+", kostentraegerCode="+this.kostentraegerCode.toString()+", lgfRelevanz="+this.lgfRelevanz+")"}hashCode(){var e=this.year;return e=Le(e,31)+this.krankenanstaltennummer.hashCode()|0,e=Le(e,31)+this.kostentraegerCode.hashCode()|0,e=Le(e,31)+(this.lgfRelevanz==null?0:e1(this.lgfRelevanz))|0,e}equals(e){if(this===e)return!0;if(!(e instanceof n))return!1;var t=e instanceof n?e:xi();return!(this.year!==t.year||!this.krankenanstaltennummer.equals(t.krankenanstaltennummer)||!this.kostentraegerCode.equals(t.kostentraegerCode)||this.lgfRelevanz!=t.lgfRelevanz)}static r15(e,t,i,r,o,s){(15&e)!==15&&On(e,15,w_e().pv_1);var c=tn(this);return c.year=t,c.krankenanstaltennummer=i,c.kostentraegerCode=r,c.lgfRelevanz=o,c}},H5=class n{constructor(e,t,i){this.year=e,this.krankenanstaltennummer=t,this.code=i}ti(){return this.year}at(){return this.krankenanstaltennummer}r10(){return this.code}ke(){return this.year}le(){return this.krankenanstaltennummer}et(){return this.code}s15(e,t,i){return new n(e,t,i)}copy(e,t,i,r){return e=e===T?this.year:e,t=t===T?this.krankenanstaltennummer:t,i=i===T?this.code:i,this.s15(e,t,i)}toString(){return"L03ExclusionenMedLeistungen(year="+this.year+", krankenanstaltennummer="+this.krankenanstaltennummer.toString()+", code="+this.code.toString()+")"}hashCode(){var e=this.year;return e=Le(e,31)+this.krankenanstaltennummer.hashCode()|0,e=Le(e,31)+this.code.hashCode()|0,e}equals(e){if(this===e)return!0;if(!(e instanceof n))return!1;var t=e instanceof n?e:xi();return!(this.year!==t.year||!this.krankenanstaltennummer.equals(t.krankenanstaltennummer)||!this.code.equals(t.code))}static t15(e,t,i,r,o){(7&e)!==7&&On(e,7,C_e().qv_1);var s=tn(this);return s.year=t,s.krankenanstaltennummer=i,s.code=r,s}},G5=class n{constructor(e,t,i){this.year=e,this.krankenanstaltennummer=t,this.code=i}ti(){return this.year}at(){return this.krankenanstaltennummer}r10(){return this.code}ke(){return this.year}le(){return this.krankenanstaltennummer}et(){return this.code}s15(e,t,i){return new n(e,t,i)}copy(e,t,i,r){return e=e===T?this.year:e,t=t===T?this.krankenanstaltennummer:t,i=i===T?this.code:i,this.s15(e,t,i)}toString(){return"L04ExclusionenTagesklinischerMedLeistungen(year="+this.year+", krankenanstaltennummer="+this.krankenanstaltennummer.toString()+", code="+this.code.toString()+")"}hashCode(){var e=this.year;return e=Le(e,31)+this.krankenanstaltennummer.hashCode()|0,e=Le(e,31)+this.code.hashCode()|0,e}equals(e){if(this===e)return!0;if(!(e instanceof n))return!1;var t=e instanceof n?e:xi();return!(this.year!==t.year||!this.krankenanstaltennummer.equals(t.krankenanstaltennummer)||!this.code.equals(t.code))}static u15(e,t,i,r,o){(7&e)!==7&&On(e,7,S_e().rv_1);var s=tn(this);return s.year=t,s.krankenanstaltennummer=i,s.code=r,s}},Y5=class n{constructor(e,t,i){this.id=e,this.berufssitz=t,this.organisationsform=i}v15(){return this.id}w15(){return this.berufssitz}x15(){return this.organisationsform}ke(){return this.id}le(){return this.berufssitz}et(){return this.organisationsform}y15(e,t,i){return new n(e,t,i)}copy(e,t,i,r){return e=e===T?this.id:e,t=t===T?this.berufssitz:t,i=i===T?this.organisationsform:i,this.y15(e,t,i)}toString(){return"E01ExtramuralerLeistungserbringer(id="+this.id.toString()+", berufssitz="+Lo(this.berufssitz)+", organisationsform="+Lo(this.organisationsform)+")"}hashCode(){var e=this.id.hashCode();return e=Le(e,31)+(this.berufssitz==null?0:this.berufssitz.hashCode())|0,e=Le(e,31)+(this.organisationsform==null?0:this.organisationsform.hashCode())|0,e}equals(e){if(this===e)return!0;if(!(e instanceof n))return!1;var t=e instanceof n?e:xi();return!(!this.id.equals(t.id)||!Lt(this.berufssitz,t.berufssitz)||!Lt(this.organisationsform,t.organisationsform))}static z15(e,t,i,r,o){(7&e)!==7&&On(e,7,T_e().xv_1);var s=tn(this);return s.id=t,s.berufssitz=i,s.organisationsform=r,s}},q5=class n{constructor(e,t,i,r,o,s){this.year=e,this.krankenanstaltennummer=t,this.funktionscode=i,this.interneKostenstellennummer=r,this.interneKostenstellenbezeichnung=o,this.spezielleOrganisationsform=s}ti(){return this.year}at(){return this.krankenanstaltennummer}k10(){return this.funktionscode}a16(){return this.interneKostenstellennummer}b16(){return this.interneKostenstellenbezeichnung}c16(){return this.spezielleOrganisationsform}ke(){return this.year}le(){return this.krankenanstaltennummer}et(){return this.funktionscode}ft(){return this.interneKostenstellennummer}vz(){return this.interneKostenstellenbezeichnung}wz(){return this.spezielleOrganisationsform}d16(e,t,i,r,o,s){return new n(e,t,i,r,o,s)}copy(e,t,i,r,o,s,c){return e=e===T?this.year:e,t=t===T?this.krankenanstaltennummer:t,i=i===T?this.funktionscode:i,r=r===T?this.interneKostenstellennummer:r,o=o===T?this.interneKostenstellenbezeichnung:o,s=s===T?this.spezielleOrganisationsform:s,this.d16(e,t,i,r,o,s)}toString(){return"K01Kostenstellenplan(year="+this.year+", krankenanstaltennummer="+this.krankenanstaltennummer.toString()+", funktionscode="+this.funktionscode.toString()+", interneKostenstellennummer="+Lo(this.interneKostenstellennummer)+", interneKostenstellenbezeichnung="+this.interneKostenstellenbezeichnung+", spezielleOrganisationsform="+Lo(this.spezielleOrganisationsform)+")"}hashCode(){var e=this.year;return e=Le(e,31)+this.krankenanstaltennummer.hashCode()|0,e=Le(e,31)+this.funktionscode.hashCode()|0,e=Le(e,31)+(this.interneKostenstellennummer==null?0:this.interneKostenstellennummer.hashCode())|0,e=Le(e,31)+(this.interneKostenstellenbezeichnung==null?0:on(this.interneKostenstellenbezeichnung))|0,e=Le(e,31)+(this.spezielleOrganisationsform==null?0:this.spezielleOrganisationsform.hashCode())|0,e}equals(e){if(this===e)return!0;if(!(e instanceof n))return!1;var t=e instanceof n?e:xi();return!(this.year!==t.year||!this.krankenanstaltennummer.equals(t.krankenanstaltennummer)||!this.funktionscode.equals(t.funktionscode)||!Lt(this.interneKostenstellennummer,t.interneKostenstellennummer)||this.interneKostenstellenbezeichnung!=t.interneKostenstellenbezeichnung||!Lt(this.spezielleOrganisationsform,t.spezielleOrganisationsform))}static e16(e,t,i,r,o,s,c,h){(63&e)!==63&&On(e,63,D_e().cw_1);var g=tn(this);return g.year=t,g.krankenanstaltennummer=i,g.funktionscode=r,g.interneKostenstellennummer=o,g.interneKostenstellenbezeichnung=s,g.spezielleOrganisationsform=c,g}},$5=class n{constructor(e,t,i,r,o,s,c,h){this.year=e,this.krankenanstaltennummer=t,this.krankenanstaltBezeichnung=i,this.krankenanstaltAddress=r,this.krankenanstaltContact=o,this.rechtstraegerBezeichnung=s,this.rechtstraegerAddress=c,this.rechtstraegerContact=h}ti(){return this.year}at(){return this.krankenanstaltennummer}f16(){return this.krankenanstaltBezeichnung}g16(){return this.krankenanstaltAddress}h16(){return this.krankenanstaltContact}i16(){return this.rechtstraegerBezeichnung}j16(){return this.rechtstraegerAddress}k16(){return this.rechtstraegerContact}ke(){return this.year}le(){return this.krankenanstaltennummer}et(){return this.krankenanstaltBezeichnung}ft(){return this.krankenanstaltAddress}vz(){return this.krankenanstaltContact}wz(){return this.rechtstraegerBezeichnung}xz(){return this.rechtstraegerAddress}yz(){return this.rechtstraegerContact}l16(e,t,i,r,o,s,c,h){return new n(e,t,i,r,o,s,c,h)}copy(e,t,i,r,o,s,c,h,g){return e=e===T?this.year:e,t=t===T?this.krankenanstaltennummer:t,i=i===T?this.krankenanstaltBezeichnung:i,r=r===T?this.krankenanstaltAddress:r,o=o===T?this.krankenanstaltContact:o,s=s===T?this.rechtstraegerBezeichnung:s,c=c===T?this.rechtstraegerAddress:c,h=h===T?this.rechtstraegerContact:h,this.l16(e,t,i,r,o,s,c,h)}toString(){return"K02Stammdaten(year="+this.year+", krankenanstaltennummer="+this.krankenanstaltennummer.toString()+", krankenanstaltBezeichnung="+this.krankenanstaltBezeichnung+", krankenanstaltAddress="+Lo(this.krankenanstaltAddress)+", krankenanstaltContact="+Lo(this.krankenanstaltContact)+", rechtstraegerBezeichnung="+this.rechtstraegerBezeichnung+", rechtstraegerAddress="+Lo(this.rechtstraegerAddress)+", rechtstraegerContact="+Lo(this.rechtstraegerContact)+")"}hashCode(){var e=this.year;return e=Le(e,31)+this.krankenanstaltennummer.hashCode()|0,e=Le(e,31)+(this.krankenanstaltBezeichnung==null?0:on(this.krankenanstaltBezeichnung))|0,e=Le(e,31)+(this.krankenanstaltAddress==null?0:this.krankenanstaltAddress.hashCode())|0,e=Le(e,31)+(this.krankenanstaltContact==null?0:this.krankenanstaltContact.hashCode())|0,e=Le(e,31)+(this.rechtstraegerBezeichnung==null?0:on(this.rechtstraegerBezeichnung))|0,e=Le(e,31)+(this.rechtstraegerAddress==null?0:this.rechtstraegerAddress.hashCode())|0,e=Le(e,31)+(this.rechtstraegerContact==null?0:this.rechtstraegerContact.hashCode())|0,e}equals(e){if(this===e)return!0;if(!(e instanceof n))return!1;var t=e instanceof n?e:xi();return!(this.year!==t.year||!this.krankenanstaltennummer.equals(t.krankenanstaltennummer)||this.krankenanstaltBezeichnung!=t.krankenanstaltBezeichnung||!Lt(this.krankenanstaltAddress,t.krankenanstaltAddress)||!Lt(this.krankenanstaltContact,t.krankenanstaltContact)||this.rechtstraegerBezeichnung!=t.rechtstraegerBezeichnung||!Lt(this.rechtstraegerAddress,t.rechtstraegerAddress)||!Lt(this.rechtstraegerContact,t.rechtstraegerContact))}static m16(e,t,i,r,o,s,c,h,g,x){(255&e)!==255&&On(e,255,k_e().ow_1);var C=tn(this);return C.year=t,C.krankenanstaltennummer=i,C.krankenanstaltBezeichnung=r,C.krankenanstaltAddress=o,C.krankenanstaltContact=s,C.rechtstraegerBezeichnung=c,C.rechtstraegerAddress=h,C.rechtstraegerContact=g,C}},K5=class n{constructor(e,t,i,r,o,s,c,h,g,x,C,A,k,O,F,L,z,j,K,ee,ne,X,q){this.year=e,this.krankenanstaltennummer=t,this.totalSystemizedBeds=i,this.specialClassSystemizedBeds=r,this.actualInstalledBeds=o,this.actualInstalledSpecialClassBeds=s,this.belagstageSonderklasse=c,this.aufnahmenSonderklasse=h,this.verbliebeneVomVorjahrSonderklasse=g,this.entlassungenSonderklasse=x,this.verstorbeneSonderklasse=C,this.aufnahmenBegleitpersonen=A,this.belagstageBegleitpersonen=k,this.ambulantePatienten=O,this.ambulanteBetreuungsplaetze=F,this.opTische=L,this.entbindungsplaetze=z,this.postOpUeberwachungsplaetze=j,this.dialysePlaetze=K,this.obduktionenAnstaltspersonal=ee,this.obduktionenFremdpersonal=ne,this.entbindungenlebendgeborene=X,this.entbindungentotgeborene=q}ti(){return this.year}at(){return this.krankenanstaltennummer}n16(){return this.totalSystemizedBeds}o16(){return this.specialClassSystemizedBeds}p16(){return this.actualInstalledBeds}q16(){return this.actualInstalledSpecialClassBeds}r16(){return this.belagstageSonderklasse}s16(){return this.aufnahmenSonderklasse}t16(){return this.verbliebeneVomVorjahrSonderklasse}u16(){return this.entlassungenSonderklasse}v16(){return this.verstorbeneSonderklasse}w16(){return this.aufnahmenBegleitpersonen}x16(){return this.belagstageBegleitpersonen}y16(){return this.ambulantePatienten}z16(){return this.ambulanteBetreuungsplaetze}a17(){return this.opTische}b17(){return this.entbindungsplaetze}c17(){return this.postOpUeberwachungsplaetze}d17(){return this.dialysePlaetze}e17(){return this.obduktionenAnstaltspersonal}f17(){return this.obduktionenFremdpersonal}g17(){return this.entbindungenlebendgeborene}h17(){return this.entbindungentotgeborene}ke(){return this.year}le(){return this.krankenanstaltennummer}et(){return this.totalSystemizedBeds}ft(){return this.specialClassSystemizedBeds}vz(){return this.actualInstalledBeds}wz(){return this.actualInstalledSpecialClassBeds}xz(){return this.belagstageSonderklasse}yz(){return this.aufnahmenSonderklasse}zz(){return this.verbliebeneVomVorjahrSonderklasse}a10(){return this.entlassungenSonderklasse}b10(){return this.verstorbeneSonderklasse}c10(){return this.aufnahmenBegleitpersonen}d10(){return this.belagstageBegleitpersonen}e10(){return this.ambulantePatienten}f10(){return this.ambulanteBetreuungsplaetze}g10(){return this.opTische}j13(){return this.entbindungsplaetze}k13(){return this.postOpUeberwachungsplaetze}l13(){return this.dialysePlaetze}m13(){return this.obduktionenAnstaltspersonal}n13(){return this.obduktionenFremdpersonal}o13(){return this.entbindungenlebendgeborene}p13(){return this.entbindungentotgeborene}i17(e,t,i,r,o,s,c,h,g,x,C,A,k,O,F,L,z,j,K,ee,ne,X,q){return new n(e,t,i,r,o,s,c,h,g,x,C,A,k,O,F,L,z,j,K,ee,ne,X,q)}copy(e,t,i,r,o,s,c,h,g,x,C,A,k,O,F,L,z,j,K,ee,ne,X,q,fe){return e=e===T?this.year:e,t=t===T?this.krankenanstaltennummer:t,i=i===T?this.totalSystemizedBeds:i,r=r===T?this.specialClassSystemizedBeds:r,o=o===T?this.actualInstalledBeds:o,s=s===T?this.actualInstalledSpecialClassBeds:s,c=c===T?this.belagstageSonderklasse:c,h=h===T?this.aufnahmenSonderklasse:h,g=g===T?this.verbliebeneVomVorjahrSonderklasse:g,x=x===T?this.entlassungenSonderklasse:x,C=C===T?this.verstorbeneSonderklasse:C,A=A===T?this.aufnahmenBegleitpersonen:A,k=k===T?this.belagstageBegleitpersonen:k,O=O===T?this.ambulantePatienten:O,F=F===T?this.ambulanteBetreuungsplaetze:F,L=L===T?this.opTische:L,z=z===T?this.entbindungsplaetze:z,j=j===T?this.postOpUeberwachungsplaetze:j,K=K===T?this.dialysePlaetze:K,ee=ee===T?this.obduktionenAnstaltspersonal:ee,ne=ne===T?this.obduktionenFremdpersonal:ne,X=X===T?this.entbindungenlebendgeborene:X,q=q===T?this.entbindungentotgeborene:q,this.i17(e,t,i,r,o,s,c,h,g,x,C,A,k,O,F,L,z,j,K,ee,ne,X,q)}toString(){return"K03Resourcen(year="+this.year+", krankenanstaltennummer="+this.krankenanstaltennummer.toString()+", totalSystemizedBeds="+this.totalSystemizedBeds+", specialClassSystemizedBeds="+this.specialClassSystemizedBeds+", actualInstalledBeds="+this.actualInstalledBeds+", actualInstalledSpecialClassBeds="+this.actualInstalledSpecialClassBeds+", belagstageSonderklasse="+this.belagstageSonderklasse+", aufnahmenSonderklasse="+this.aufnahmenSonderklasse+", verbliebeneVomVorjahrSonderklasse="+this.verbliebeneVomVorjahrSonderklasse+", entlassungenSonderklasse="+this.entlassungenSonderklasse+", verstorbeneSonderklasse="+this.verstorbeneSonderklasse+", aufnahmenBegleitpersonen="+this.aufnahmenBegleitpersonen+", belagstageBegleitpersonen="+this.belagstageBegleitpersonen+", ambulantePatienten="+this.ambulantePatienten+", ambulanteBetreuungsplaetze="+this.ambulanteBetreuungsplaetze+", opTische="+this.opTische+", entbindungsplaetze="+this.entbindungsplaetze+", postOpUeberwachungsplaetze="+this.postOpUeberwachungsplaetze+", dialysePlaetze="+this.dialysePlaetze+", obduktionenAnstaltspersonal="+this.obduktionenAnstaltspersonal+", obduktionenFremdpersonal="+this.obduktionenFremdpersonal+", entbindungenlebendgeborene="+this.entbindungenlebendgeborene+", entbindungentotgeborene="+this.entbindungentotgeborene+")"}hashCode(){var e=this.year;return e=Le(e,31)+this.krankenanstaltennummer.hashCode()|0,e=Le(e,31)+(this.totalSystemizedBeds==null?0:this.totalSystemizedBeds)|0,e=Le(e,31)+(this.specialClassSystemizedBeds==null?0:this.specialClassSystemizedBeds)|0,e=Le(e,31)+(this.actualInstalledBeds==null?0:this.actualInstalledBeds)|0,e=Le(e,31)+(this.actualInstalledSpecialClassBeds==null?0:this.actualInstalledSpecialClassBeds)|0,e=Le(e,31)+(this.belagstageSonderklasse==null?0:this.belagstageSonderklasse)|0,e=Le(e,31)+(this.aufnahmenSonderklasse==null?0:this.aufnahmenSonderklasse)|0,e=Le(e,31)+(this.verbliebeneVomVorjahrSonderklasse==null?0:this.verbliebeneVomVorjahrSonderklasse)|0,e=Le(e,31)+(this.entlassungenSonderklasse==null?0:this.entlassungenSonderklasse)|0,e=Le(e,31)+(this.verstorbeneSonderklasse==null?0:this.verstorbeneSonderklasse)|0,e=Le(e,31)+(this.aufnahmenBegleitpersonen==null?0:this.aufnahmenBegleitpersonen)|0,e=Le(e,31)+(this.belagstageBegleitpersonen==null?0:this.belagstageBegleitpersonen)|0,e=Le(e,31)+(this.ambulantePatienten==null?0:this.ambulantePatienten)|0,e=Le(e,31)+(this.ambulanteBetreuungsplaetze==null?0:this.ambulanteBetreuungsplaetze)|0,e=Le(e,31)+(this.opTische==null?0:this.opTische)|0,e=Le(e,31)+(this.entbindungsplaetze==null?0:this.entbindungsplaetze)|0,e=Le(e,31)+(this.postOpUeberwachungsplaetze==null?0:this.postOpUeberwachungsplaetze)|0,e=Le(e,31)+(this.dialysePlaetze==null?0:this.dialysePlaetze)|0,e=Le(e,31)+(this.obduktionenAnstaltspersonal==null?0:this.obduktionenAnstaltspersonal)|0,e=Le(e,31)+(this.obduktionenFremdpersonal==null?0:this.obduktionenFremdpersonal)|0,e=Le(e,31)+(this.entbindungenlebendgeborene==null?0:this.entbindungenlebendgeborene)|0,e=Le(e,31)+(this.entbindungentotgeborene==null?0:this.entbindungentotgeborene)|0,e}equals(e){if(this===e)return!0;if(!(e instanceof n))return!1;var t=e instanceof n?e:xi();return!(this.year!==t.year||!this.krankenanstaltennummer.equals(t.krankenanstaltennummer)||this.totalSystemizedBeds!=t.totalSystemizedBeds||this.specialClassSystemizedBeds!=t.specialClassSystemizedBeds||this.actualInstalledBeds!=t.actualInstalledBeds||this.actualInstalledSpecialClassBeds!=t.actualInstalledSpecialClassBeds||this.belagstageSonderklasse!=t.belagstageSonderklasse||this.aufnahmenSonderklasse!=t.aufnahmenSonderklasse||this.verbliebeneVomVorjahrSonderklasse!=t.verbliebeneVomVorjahrSonderklasse||this.entlassungenSonderklasse!=t.entlassungenSonderklasse||this.verstorbeneSonderklasse!=t.verstorbeneSonderklasse||this.aufnahmenBegleitpersonen!=t.aufnahmenBegleitpersonen||this.belagstageBegleitpersonen!=t.belagstageBegleitpersonen||this.ambulantePatienten!=t.ambulantePatienten||this.ambulanteBetreuungsplaetze!=t.ambulanteBetreuungsplaetze||this.opTische!=t.opTische||this.entbindungsplaetze!=t.entbindungsplaetze||this.postOpUeberwachungsplaetze!=t.postOpUeberwachungsplaetze||this.dialysePlaetze!=t.dialysePlaetze||this.obduktionenAnstaltspersonal!=t.obduktionenAnstaltspersonal||this.obduktionenFremdpersonal!=t.obduktionenFremdpersonal||this.entbindungenlebendgeborene!=t.entbindungenlebendgeborene||this.entbindungentotgeborene!=t.entbindungentotgeborene)}static j17(e,t,i,r,o,s,c,h,g,x,C,A,k,O,F,L,z,j,K,ee,ne,X,q,fe,Se){(8388607&e)!==8388607&&On(e,8388607,M_e().pw_1);var pe=tn(this);return pe.year=t,pe.krankenanstaltennummer=i,pe.totalSystemizedBeds=r,pe.specialClassSystemizedBeds=o,pe.actualInstalledBeds=s,pe.actualInstalledSpecialClassBeds=c,pe.belagstageSonderklasse=h,pe.aufnahmenSonderklasse=g,pe.verbliebeneVomVorjahrSonderklasse=x,pe.entlassungenSonderklasse=C,pe.verstorbeneSonderklasse=A,pe.aufnahmenBegleitpersonen=k,pe.belagstageBegleitpersonen=O,pe.ambulantePatienten=F,pe.ambulanteBetreuungsplaetze=L,pe.opTische=z,pe.entbindungsplaetze=j,pe.postOpUeberwachungsplaetze=K,pe.dialysePlaetze=ee,pe.obduktionenAnstaltspersonal=ne,pe.obduktionenFremdpersonal=X,pe.entbindungenlebendgeborene=q,pe.entbindungentotgeborene=fe,pe}},W5=class n{constructor(e,t,i,r){this.year=e,this.krankenanstaltennummer=t,this.personalgruppenindex=i,this.vollzeitaequivalente=r}ti(){return this.year}at(){return this.krankenanstaltennummer}k17(){return this.personalgruppenindex}l17(){return this.vollzeitaequivalente}ke(){return this.year}le(){return this.krankenanstaltennummer}et(){return this.personalgruppenindex}ft(){return this.vollzeitaequivalente}m17(e,t,i,r){return new n(e,t,i,r)}copy(e,t,i,r,o){return e=e===T?this.year:e,t=t===T?this.krankenanstaltennummer:t,i=i===T?this.personalgruppenindex:i,r=r===T?this.vollzeitaequivalente:r,this.m17(e,t,i,r)}toString(){return"K04PersonalVollzeitAequivalent(year="+this.year+", krankenanstaltennummer="+this.krankenanstaltennummer.toString()+", personalgruppenindex="+this.personalgruppenindex.toString()+", vollzeitaequivalente="+this.vollzeitaequivalente+")"}hashCode(){var e=this.year;return e=Le(e,31)+this.krankenanstaltennummer.hashCode()|0,e=Le(e,31)+this.personalgruppenindex.hashCode()|0,e=Le(e,31)+(this.vollzeitaequivalente==null?0:Bi(this.vollzeitaequivalente))|0,e}equals(e){if(this===e)return!0;if(!(e instanceof n))return!1;var t=e instanceof n?e:xi();return!(this.year!==t.year||!this.krankenanstaltennummer.equals(t.krankenanstaltennummer)||!this.personalgruppenindex.equals(t.personalgruppenindex)||!Lt(this.vollzeitaequivalente,t.vollzeitaequivalente))}static n17(e,t,i,r,o,s){(15&e)!==15&&On(e,15,R_e().sw_1);var c=tn(this);return c.year=t,c.krankenanstaltennummer=i,c.personalgruppenindex=r,c.vollzeitaequivalente=o,c}},Z5=class n{constructor(e,t,i,r,o,s,c,h,g,x,C){this.year=e,this.krankenanstaltennummer=t,this.fachhauptberechsindex=i,this.fachaerzte=r,this.aerzteAllgemeinmedizin=o,this.fachaerzteInAusbildung=s,this.aerzteAllgemeinmedizinInAusbildung=c,this.fachaerzteVZA=h,this.aerzteAllgemeinmedizinVZA=g,this.fachaerzteInAusbildungVZA=x,this.aerzteAllgemeinmedizinInAusbildungVZA=C}ti(){return this.year}at(){return this.krankenanstaltennummer}o17(){return this.fachhauptberechsindex}p17(){return this.fachaerzte}q17(){return this.aerzteAllgemeinmedizin}r17(){return this.fachaerzteInAusbildung}s17(){return this.aerzteAllgemeinmedizinInAusbildung}t17(){return this.fachaerzteVZA}u17(){return this.aerzteAllgemeinmedizinVZA}v17(){return this.fachaerzteInAusbildungVZA}w17(){return this.aerzteAllgemeinmedizinInAusbildungVZA}ke(){return this.year}le(){return this.krankenanstaltennummer}et(){return this.fachhauptberechsindex}ft(){return this.fachaerzte}vz(){return this.aerzteAllgemeinmedizin}wz(){return this.fachaerzteInAusbildung}xz(){return this.aerzteAllgemeinmedizinInAusbildung}yz(){return this.fachaerzteVZA}zz(){return this.aerzteAllgemeinmedizinVZA}a10(){return this.fachaerzteInAusbildungVZA}b10(){return this.aerzteAllgemeinmedizinInAusbildungVZA}x17(e,t,i,r,o,s,c,h,g,x,C){return new n(e,t,i,r,o,s,c,h,g,x,C)}copy(e,t,i,r,o,s,c,h,g,x,C,A){return e=e===T?this.year:e,t=t===T?this.krankenanstaltennummer:t,i=i===T?this.fachhauptberechsindex:i,r=r===T?this.fachaerzte:r,o=o===T?this.aerzteAllgemeinmedizin:o,s=s===T?this.fachaerzteInAusbildung:s,c=c===T?this.aerzteAllgemeinmedizinInAusbildung:c,h=h===T?this.fachaerzteVZA:h,g=g===T?this.aerzteAllgemeinmedizinVZA:g,x=x===T?this.fachaerzteInAusbildungVZA:x,C=C===T?this.aerzteAllgemeinmedizinInAusbildungVZA:C,this.x17(e,t,i,r,o,s,c,h,g,x,C)}toString(){return"K05PersonalAerztlicherDienst(year="+this.year+", krankenanstaltennummer="+this.krankenanstaltennummer.toString()+", fachhauptberechsindex="+this.fachhauptberechsindex.toString()+", fachaerzte="+this.fachaerzte+", aerzteAllgemeinmedizin="+this.aerzteAllgemeinmedizin+", fachaerzteInAusbildung="+this.fachaerzteInAusbildung+", aerzteAllgemeinmedizinInAusbildung="+this.aerzteAllgemeinmedizinInAusbildung+", fachaerzteVZA="+this.fachaerzteVZA+", aerzteAllgemeinmedizinVZA="+this.aerzteAllgemeinmedizinVZA+", fachaerzteInAusbildungVZA="+this.fachaerzteInAusbildungVZA+", aerzteAllgemeinmedizinInAusbildungVZA="+this.aerzteAllgemeinmedizinInAusbildungVZA+")"}hashCode(){var e=this.year;return e=Le(e,31)+this.krankenanstaltennummer.hashCode()|0,e=Le(e,31)+this.fachhauptberechsindex.hashCode()|0,e=Le(e,31)+(this.fachaerzte==null?0:this.fachaerzte)|0,e=Le(e,31)+(this.aerzteAllgemeinmedizin==null?0:this.aerzteAllgemeinmedizin)|0,e=Le(e,31)+(this.fachaerzteInAusbildung==null?0:this.fachaerzteInAusbildung)|0,e=Le(e,31)+(this.aerzteAllgemeinmedizinInAusbildung==null?0:this.aerzteAllgemeinmedizinInAusbildung)|0,e=Le(e,31)+(this.fachaerzteVZA==null?0:Bi(this.fachaerzteVZA))|0,e=Le(e,31)+(this.aerzteAllgemeinmedizinVZA==null?0:Bi(this.aerzteAllgemeinmedizinVZA))|0,e=Le(e,31)+(this.fachaerzteInAusbildungVZA==null?0:Bi(this.fachaerzteInAusbildungVZA))|0,e=Le(e,31)+(this.aerzteAllgemeinmedizinInAusbildungVZA==null?0:Bi(this.aerzteAllgemeinmedizinInAusbildungVZA))|0,e}equals(e){if(this===e)return!0;if(!(e instanceof n))return!1;var t=e instanceof n?e:xi();return!(this.year!==t.year||!this.krankenanstaltennummer.equals(t.krankenanstaltennummer)||!this.fachhauptberechsindex.equals(t.fachhauptberechsindex)||this.fachaerzte!=t.fachaerzte||this.aerzteAllgemeinmedizin!=t.aerzteAllgemeinmedizin||this.fachaerzteInAusbildung!=t.fachaerzteInAusbildung||this.aerzteAllgemeinmedizinInAusbildung!=t.aerzteAllgemeinmedizinInAusbildung||!Lt(this.fachaerzteVZA,t.fachaerzteVZA)||!Lt(this.aerzteAllgemeinmedizinVZA,t.aerzteAllgemeinmedizinVZA)||!Lt(this.fachaerzteInAusbildungVZA,t.fachaerzteInAusbildungVZA)||!Lt(this.aerzteAllgemeinmedizinInAusbildungVZA,t.aerzteAllgemeinmedizinInAusbildungVZA))}static y17(e,t,i,r,o,s,c,h,g,x,C,A,k){(2047&e)!==2047&&On(e,2047,P_e().vw_1);var O=tn(this);return O.year=t,O.krankenanstaltennummer=i,O.fachhauptberechsindex=r,O.fachaerzte=o,O.aerzteAllgemeinmedizin=s,O.fachaerzteInAusbildung=c,O.aerzteAllgemeinmedizinInAusbildung=h,O.fachaerzteVZA=g,O.aerzteAllgemeinmedizinVZA=x,O.fachaerzteInAusbildungVZA=C,O.aerzteAllgemeinmedizinInAusbildungVZA=A,O}},Q5=class n{constructor(e,t,i,r){this.year=e,this.krankenanstaltennummer=t,this.fachrichtungsindex=i,this.konsiliaraerzte=r}ti(){return this.year}at(){return this.krankenanstaltennummer}z17(){return this.fachrichtungsindex}a18(){return this.konsiliaraerzte}ke(){return this.year}le(){return this.krankenanstaltennummer}et(){return this.fachrichtungsindex}ft(){return this.konsiliaraerzte}b18(e,t,i,r){return new n(e,t,i,r)}copy(e,t,i,r,o){return e=e===T?this.year:e,t=t===T?this.krankenanstaltennummer:t,i=i===T?this.fachrichtungsindex:i,r=r===T?this.konsiliaraerzte:r,this.b18(e,t,i,r)}toString(){return"K06KonsiliaraeztlicherDienst(year="+this.year+", krankenanstaltennummer="+this.krankenanstaltennummer.toString()+", fachrichtungsindex="+this.fachrichtungsindex.toString()+", konsiliaraerzte="+this.konsiliaraerzte+")"}hashCode(){var e=this.year;return e=Le(e,31)+this.krankenanstaltennummer.hashCode()|0,e=Le(e,31)+this.fachrichtungsindex.hashCode()|0,e=Le(e,31)+(this.konsiliaraerzte==null?0:this.konsiliaraerzte)|0,e}equals(e){if(this===e)return!0;if(!(e instanceof n))return!1;var t=e instanceof n?e:xi();return!(this.year!==t.year||!this.krankenanstaltennummer.equals(t.krankenanstaltennummer)||!this.fachrichtungsindex.equals(t.fachrichtungsindex)||this.konsiliaraerzte!=t.konsiliaraerzte)}static c18(e,t,i,r,o,s){(15&e)!==15&&On(e,15,L_e().yw_1);var c=tn(this);return c.year=t,c.krankenanstaltennummer=i,c.fachrichtungsindex=r,c.konsiliaraerzte=o,c}},X5=class n{constructor(e,t,i,r,o,s,c){this.year=e,this.krankenanstaltennummer=t,this.indexNichtAerztlicherBeruf=i,this.malePersonnel=r,this.femalePersonnel=o,this.malePersonnelVZA=s,this.femalePersonnelVZA=c}ti(){return this.year}at(){return this.krankenanstaltennummer}d18(){return this.indexNichtAerztlicherBeruf}e18(){return this.malePersonnel}f18(){return this.femalePersonnel}g18(){return this.malePersonnelVZA}h18(){return this.femalePersonnelVZA}ke(){return this.year}le(){return this.krankenanstaltennummer}et(){return this.indexNichtAerztlicherBeruf}ft(){return this.malePersonnel}vz(){return this.femalePersonnel}wz(){return this.malePersonnelVZA}xz(){return this.femalePersonnelVZA}i18(e,t,i,r,o,s,c){return new n(e,t,i,r,o,s,c)}copy(e,t,i,r,o,s,c,h){return e=e===T?this.year:e,t=t===T?this.krankenanstaltennummer:t,i=i===T?this.indexNichtAerztlicherBeruf:i,r=r===T?this.malePersonnel:r,o=o===T?this.femalePersonnel:o,s=s===T?this.malePersonnelVZA:s,c=c===T?this.femalePersonnelVZA:c,this.i18(e,t,i,r,o,s,c)}toString(){return"K07PersonalNichtAerztlicherBeruf(year="+this.year+", krankenanstaltennummer="+this.krankenanstaltennummer.toString()+", indexNichtAerztlicherBeruf="+this.indexNichtAerztlicherBeruf.toString()+", malePersonnel="+this.malePersonnel+", femalePersonnel="+this.femalePersonnel+", malePersonnelVZA="+this.malePersonnelVZA+", femalePersonnelVZA="+this.femalePersonnelVZA+")"}hashCode(){var e=this.year;return e=Le(e,31)+this.krankenanstaltennummer.hashCode()|0,e=Le(e,31)+this.indexNichtAerztlicherBeruf.hashCode()|0,e=Le(e,31)+(this.malePersonnel==null?0:this.malePersonnel)|0,e=Le(e,31)+(this.femalePersonnel==null?0:this.femalePersonnel)|0,e=Le(e,31)+(this.malePersonnelVZA==null?0:Bi(this.malePersonnelVZA))|0,e=Le(e,31)+(this.femalePersonnelVZA==null?0:Bi(this.femalePersonnelVZA))|0,e}equals(e){if(this===e)return!0;if(!(e instanceof n))return!1;var t=e instanceof n?e:xi();return!(this.year!==t.year||!this.krankenanstaltennummer.equals(t.krankenanstaltennummer)||!this.indexNichtAerztlicherBeruf.equals(t.indexNichtAerztlicherBeruf)||this.malePersonnel!=t.malePersonnel||this.femalePersonnel!=t.femalePersonnel||!Lt(this.malePersonnelVZA,t.malePersonnelVZA)||!Lt(this.femalePersonnelVZA,t.femalePersonnelVZA))}static j18(e,t,i,r,o,s,c,h,g){(127&e)!==127&&On(e,127,z_e().bx_1);var x=tn(this);return x.year=t,x.krankenanstaltennummer=i,x.indexNichtAerztlicherBeruf=r,x.malePersonnel=o,x.femalePersonnel=s,x.malePersonnelVZA=c,x.femalePersonnelVZA=h,x}},J5=class n{constructor(e,t,i,r,o,s,c,h,g,x,C,A,k,O,F,L,z,j,K,ee,ne,X,q,fe,Se,pe,Me,ie,Re,Ue,Ee){this.year=e,this.krankenanstaltennummer=t,this.funktionscode=i,this.systemizedBeds=r,this.actualInstalledBeds=o,this.netFloorPlanArea=s,this.aerzteVZA=c,this.apothekerVZA=h,this.hebammenVZA=g,this.gehobenerDiensteVZA=x,this.gehobeneMedtechDiensteVZA=C,this.pflegehilfeVZA=A,this.verwaltungspersonalVZA=k,this.betriebspersonalVZA=O,this.sonstigePersonalVZA=F,this.personalkosten=L,this.medGebrauchsgueterKosten=z,this.nichtMedGebrauchsgueterKosten=j,this.medFremdleistungKosten=K,this.nichtMedFremdleistungKosten=ee,this.energiekosten=ne,this.sonstigeKosten=X,this.anlagekapitalkosten=q,this.medBedingtenVersorgungskosten=fe,this.nichtMedBedingtenVersorgungskosten=Se,this.verwaltungskosten=pe,this.andereSekundaerkosten=Me,this.kostenminderungen=ie,this.innerbetrieblicheLeistungskosten=Re,this.unterOderUeberdeckung=Ue,this.endkosten=Ee}ti(){return this.year}at(){return this.krankenanstaltennummer}k10(){return this.funktionscode}k18(){return this.systemizedBeds}p16(){return this.actualInstalledBeds}l18(){return this.netFloorPlanArea}m18(){return this.aerzteVZA}n18(){return this.apothekerVZA}o18(){return this.hebammenVZA}p18(){return this.gehobenerDiensteVZA}q18(){return this.gehobeneMedtechDiensteVZA}r18(){return this.pflegehilfeVZA}s18(){return this.verwaltungspersonalVZA}t18(){return this.betriebspersonalVZA}u18(){return this.sonstigePersonalVZA}v18(){return this.personalkosten}w18(){return this.medGebrauchsgueterKosten}x18(){return this.nichtMedGebrauchsgueterKosten}y18(){return this.medFremdleistungKosten}z18(){return this.nichtMedFremdleistungKosten}a19(){return this.energiekosten}b19(){return this.sonstigeKosten}c19(){return this.anlagekapitalkosten}d19(){return this.medBedingtenVersorgungskosten}e19(){return this.nichtMedBedingtenVersorgungskosten}f19(){return this.verwaltungskosten}g19(){return this.andereSekundaerkosten}h19(){return this.kostenminderungen}i19(){return this.innerbetrieblicheLeistungskosten}j19(){return this.unterOderUeberdeckung}k19(){return this.endkosten}ke(){return this.year}le(){return this.krankenanstaltennummer}et(){return this.funktionscode}ft(){return this.systemizedBeds}vz(){return this.actualInstalledBeds}wz(){return this.netFloorPlanArea}xz(){return this.aerzteVZA}yz(){return this.apothekerVZA}zz(){return this.hebammenVZA}a10(){return this.gehobenerDiensteVZA}b10(){return this.gehobeneMedtechDiensteVZA}c10(){return this.pflegehilfeVZA}d10(){return this.verwaltungspersonalVZA}e10(){return this.betriebspersonalVZA}f10(){return this.sonstigePersonalVZA}g10(){return this.personalkosten}j13(){return this.medGebrauchsgueterKosten}k13(){return this.nichtMedGebrauchsgueterKosten}l13(){return this.medFremdleistungKosten}m13(){return this.nichtMedFremdleistungKosten}n13(){return this.energiekosten}o13(){return this.sonstigeKosten}p13(){return this.anlagekapitalkosten}q13(){return this.medBedingtenVersorgungskosten}r13(){return this.nichtMedBedingtenVersorgungskosten}s13(){return this.verwaltungskosten}t13(){return this.andereSekundaerkosten}u13(){return this.kostenminderungen}v13(){return this.innerbetrieblicheLeistungskosten}w13(){return this.unterOderUeberdeckung}x13(){return this.endkosten}l19(e,t,i,r,o,s,c,h,g,x,C,A,k,O,F,L,z,j,K,ee,ne,X,q,fe,Se,pe,Me,ie,Re,Ue,Ee){return new n(e,t,i,r,o,s,c,h,g,x,C,A,k,O,F,L,z,j,K,ee,ne,X,q,fe,Se,pe,Me,ie,Re,Ue,Ee)}copy(e,t,i,r,o,s,c,h,g,x,C,A,k,O,F,L,z,j,K,ee,ne,X,q,fe,Se,pe,Me,ie,Re,Ue,Ee,We){return e=e===T?this.year:e,t=t===T?this.krankenanstaltennummer:t,i=i===T?this.funktionscode:i,r=r===T?this.systemizedBeds:r,o=o===T?this.actualInstalledBeds:o,s=s===T?this.netFloorPlanArea:s,c=c===T?this.aerzteVZA:c,h=h===T?this.apothekerVZA:h,g=g===T?this.hebammenVZA:g,x=x===T?this.gehobenerDiensteVZA:x,C=C===T?this.gehobeneMedtechDiensteVZA:C,A=A===T?this.pflegehilfeVZA:A,k=k===T?this.verwaltungspersonalVZA:k,O=O===T?this.betriebspersonalVZA:O,F=F===T?this.sonstigePersonalVZA:F,L=L===T?this.personalkosten:L,z=z===T?this.medGebrauchsgueterKosten:z,j=j===T?this.nichtMedGebrauchsgueterKosten:j,K=K===T?this.medFremdleistungKosten:K,ee=ee===T?this.nichtMedFremdleistungKosten:ee,ne=ne===T?this.energiekosten:ne,X=X===T?this.sonstigeKosten:X,q=q===T?this.anlagekapitalkosten:q,fe=fe===T?this.medBedingtenVersorgungskosten:fe,Se=Se===T?this.nichtMedBedingtenVersorgungskosten:Se,pe=pe===T?this.verwaltungskosten:pe,Me=Me===T?this.andereSekundaerkosten:Me,ie=ie===T?this.kostenminderungen:ie,Re=Re===T?this.innerbetrieblicheLeistungskosten:Re,Ue=Ue===T?this.unterOderUeberdeckung:Ue,Ee=Ee===T?this.endkosten:Ee,this.l19(e,t,i,r,o,s,c,h,g,x,C,A,k,O,F,L,z,j,K,ee,ne,X,q,fe,Se,pe,Me,ie,Re,Ue,Ee)}toString(){return"K08BettenfuehrendeHauptkostenstelle(year="+this.year+", krankenanstaltennummer="+this.krankenanstaltennummer.toString()+", funktionscode="+this.funktionscode.toString()+", systemizedBeds="+this.systemizedBeds+", actualInstalledBeds="+this.actualInstalledBeds+", netFloorPlanArea="+this.netFloorPlanArea+", aerzteVZA="+this.aerzteVZA+", apothekerVZA="+this.apothekerVZA+", hebammenVZA="+this.hebammenVZA+", gehobenerDiensteVZA="+this.gehobenerDiensteVZA+", gehobeneMedtechDiensteVZA="+this.gehobeneMedtechDiensteVZA+", pflegehilfeVZA="+this.pflegehilfeVZA+", verwaltungspersonalVZA="+this.verwaltungspersonalVZA+", betriebspersonalVZA="+this.betriebspersonalVZA+", sonstigePersonalVZA="+this.sonstigePersonalVZA+", personalkosten="+this.personalkosten+", medGebrauchsgueterKosten="+this.medGebrauchsgueterKosten+", nichtMedGebrauchsgueterKosten="+this.nichtMedGebrauchsgueterKosten+", medFremdleistungKosten="+this.medFremdleistungKosten+", nichtMedFremdleistungKosten="+this.nichtMedFremdleistungKosten+", energiekosten="+this.energiekosten+", sonstigeKosten="+this.sonstigeKosten+", anlagekapitalkosten="+this.anlagekapitalkosten+", medBedingtenVersorgungskosten="+this.medBedingtenVersorgungskosten+", nichtMedBedingtenVersorgungskosten="+this.nichtMedBedingtenVersorgungskosten+", verwaltungskosten="+this.verwaltungskosten+", andereSekundaerkosten="+this.andereSekundaerkosten+", kostenminderungen="+this.kostenminderungen+", innerbetrieblicheLeistungskosten="+this.innerbetrieblicheLeistungskosten+", unterOderUeberdeckung="+this.unterOderUeberdeckung+", endkosten="+this.endkosten+")"}hashCode(){var e=this.year;return e=Le(e,31)+this.krankenanstaltennummer.hashCode()|0,e=Le(e,31)+this.funktionscode.hashCode()|0,e=Le(e,31)+(this.systemizedBeds==null?0:this.systemizedBeds)|0,e=Le(e,31)+(this.actualInstalledBeds==null?0:this.actualInstalledBeds)|0,e=Le(e,31)+(this.netFloorPlanArea==null?0:Bi(this.netFloorPlanArea))|0,e=Le(e,31)+(this.aerzteVZA==null?0:Bi(this.aerzteVZA))|0,e=Le(e,31)+(this.apothekerVZA==null?0:Bi(this.apothekerVZA))|0,e=Le(e,31)+(this.hebammenVZA==null?0:Bi(this.hebammenVZA))|0,e=Le(e,31)+(this.gehobenerDiensteVZA==null?0:Bi(this.gehobenerDiensteVZA))|0,e=Le(e,31)+(this.gehobeneMedtechDiensteVZA==null?0:Bi(this.gehobeneMedtechDiensteVZA))|0,e=Le(e,31)+(this.pflegehilfeVZA==null?0:Bi(this.pflegehilfeVZA))|0,e=Le(e,31)+(this.verwaltungspersonalVZA==null?0:Bi(this.verwaltungspersonalVZA))|0,e=Le(e,31)+(this.betriebspersonalVZA==null?0:Bi(this.betriebspersonalVZA))|0,e=Le(e,31)+(this.sonstigePersonalVZA==null?0:Bi(this.sonstigePersonalVZA))|0,e=Le(e,31)+(this.personalkosten==null?0:Bi(this.personalkosten))|0,e=Le(e,31)+(this.medGebrauchsgueterKosten==null?0:Bi(this.medGebrauchsgueterKosten))|0,e=Le(e,31)+(this.nichtMedGebrauchsgueterKosten==null?0:Bi(this.nichtMedGebrauchsgueterKosten))|0,e=Le(e,31)+(this.medFremdleistungKosten==null?0:Bi(this.medFremdleistungKosten))|0,e=Le(e,31)+(this.nichtMedFremdleistungKosten==null?0:Bi(this.nichtMedFremdleistungKosten))|0,e=Le(e,31)+(this.energiekosten==null?0:Bi(this.energiekosten))|0,e=Le(e,31)+(this.sonstigeKosten==null?0:Bi(this.sonstigeKosten))|0,e=Le(e,31)+(this.anlagekapitalkosten==null?0:Bi(this.anlagekapitalkosten))|0,e=Le(e,31)+(this.medBedingtenVersorgungskosten==null?0:Bi(this.medBedingtenVersorgungskosten))|0,e=Le(e,31)+(this.nichtMedBedingtenVersorgungskosten==null?0:Bi(this.nichtMedBedingtenVersorgungskosten))|0,e=Le(e,31)+(this.verwaltungskosten==null?0:Bi(this.verwaltungskosten))|0,e=Le(e,31)+(this.andereSekundaerkosten==null?0:Bi(this.andereSekundaerkosten))|0,e=Le(e,31)+(this.kostenminderungen==null?0:Bi(this.kostenminderungen))|0,e=Le(e,31)+(this.innerbetrieblicheLeistungskosten==null?0:Bi(this.innerbetrieblicheLeistungskosten))|0,e=Le(e,31)+(this.unterOderUeberdeckung==null?0:Bi(this.unterOderUeberdeckung))|0,e=Le(e,31)+(this.endkosten==null?0:Bi(this.endkosten))|0,e}equals(e){if(this===e)return!0;if(!(e instanceof n))return!1;var t=e instanceof n?e:xi();return!(this.year!==t.year||!this.krankenanstaltennummer.equals(t.krankenanstaltennummer)||!this.funktionscode.equals(t.funktionscode)||this.systemizedBeds!=t.systemizedBeds||this.actualInstalledBeds!=t.actualInstalledBeds||!Lt(this.netFloorPlanArea,t.netFloorPlanArea)||!Lt(this.aerzteVZA,t.aerzteVZA)||!Lt(this.apothekerVZA,t.apothekerVZA)||!Lt(this.hebammenVZA,t.hebammenVZA)||!Lt(this.gehobenerDiensteVZA,t.gehobenerDiensteVZA)||!Lt(this.gehobeneMedtechDiensteVZA,t.gehobeneMedtechDiensteVZA)||!Lt(this.pflegehilfeVZA,t.pflegehilfeVZA)||!Lt(this.verwaltungspersonalVZA,t.verwaltungspersonalVZA)||!Lt(this.betriebspersonalVZA,t.betriebspersonalVZA)||!Lt(this.sonstigePersonalVZA,t.sonstigePersonalVZA)||!Lt(this.personalkosten,t.personalkosten)||!Lt(this.medGebrauchsgueterKosten,t.medGebrauchsgueterKosten)||!Lt(this.nichtMedGebrauchsgueterKosten,t.nichtMedGebrauchsgueterKosten)||!Lt(this.medFremdleistungKosten,t.medFremdleistungKosten)||!Lt(this.nichtMedFremdleistungKosten,t.nichtMedFremdleistungKosten)||!Lt(this.energiekosten,t.energiekosten)||!Lt(this.sonstigeKosten,t.sonstigeKosten)||!Lt(this.anlagekapitalkosten,t.anlagekapitalkosten)||!Lt(this.medBedingtenVersorgungskosten,t.medBedingtenVersorgungskosten)||!Lt(this.nichtMedBedingtenVersorgungskosten,t.nichtMedBedingtenVersorgungskosten)||!Lt(this.verwaltungskosten,t.verwaltungskosten)||!Lt(this.andereSekundaerkosten,t.andereSekundaerkosten)||!Lt(this.kostenminderungen,t.kostenminderungen)||!Lt(this.innerbetrieblicheLeistungskosten,t.innerbetrieblicheLeistungskosten)||!Lt(this.unterOderUeberdeckung,t.unterOderUeberdeckung)||!Lt(this.endkosten,t.endkosten))}static m19(e,t,i,r,o,s,c,h,g,x,C,A,k,O,F,L,z,j,K,ee,ne,X,q,fe,Se,pe,Me,ie,Re,Ue,Ee,We,Ie){(2147483647&e)!==2147483647&&On(e,2147483647,V_e().cx_1);var Be=tn(this);return Be.year=t,Be.krankenanstaltennummer=i,Be.funktionscode=r,Be.systemizedBeds=o,Be.actualInstalledBeds=s,Be.netFloorPlanArea=c,Be.aerzteVZA=h,Be.apothekerVZA=g,Be.hebammenVZA=x,Be.gehobenerDiensteVZA=C,Be.gehobeneMedtechDiensteVZA=A,Be.pflegehilfeVZA=k,Be.verwaltungspersonalVZA=O,Be.betriebspersonalVZA=F,Be.sonstigePersonalVZA=L,Be.personalkosten=z,Be.medGebrauchsgueterKosten=j,Be.nichtMedGebrauchsgueterKosten=K,Be.medFremdleistungKosten=ee,Be.nichtMedFremdleistungKosten=ne,Be.energiekosten=X,Be.sonstigeKosten=q,Be.anlagekapitalkosten=fe,Be.medBedingtenVersorgungskosten=Se,Be.nichtMedBedingtenVersorgungskosten=pe,Be.verwaltungskosten=Me,Be.andereSekundaerkosten=ie,Be.kostenminderungen=Re,Be.innerbetrieblicheLeistungskosten=Ue,Be.unterOderUeberdeckung=Ee,Be.endkosten=We,Be}},eU=class n{constructor(e,t,i,r,o,s,c,h,g,x,C,A,k,O,F,L,z,j,K,ee,ne,X,q,fe,Se,pe,Me,ie,Re,Ue,Ee,We,Ie,Be){this.year=e,this.krankenanstaltennummer=t,this.funktionscode=i,this.ambulanteBetreuungsplaetze=r,this.ambulantePatienten=o,this.ambulantePatientenFrequenzen=s,this.stationaerePatientenFrequenzen=c,this.stationaerePatientenAndererKAFrequenzen=h,this.netFloorPlanArea=g,this.aerzteVZA=x,this.apothekerVZA=C,this.hebammenVZA=A,this.gehobenerDiensteVZA=k,this.gehobeneMedtechDiensteVZA=O,this.pflegehilfeVZA=F,this.verwaltungspersonalVZA=L,this.betriebspersonalVZA=z,this.sonstigePersonalVZA=j,this.personalkosten=K,this.medGebrauchsgueterKosten=ee,this.nichtMedGebrauchsgueterKosten=ne,this.medFremdleistungKosten=X,this.nichtMedFremdleistungKosten=q,this.energiekosten=fe,this.sonstigeKosten=Se,this.anlagekapitalkosten=pe,this.medBedingtenVersorgungskosten=Me,this.nichtMedBedingtenVersorgungskosten=ie,this.verwaltungskosten=Re,this.andereSekundaerkosten=Ue,this.kostenminderungen=Ee,this.innerbetrieblicheLeistungskosten=We,this.unterOderUeberdeckung=Ie,this.endkosten=Be}ti(){return this.year}at(){return this.krankenanstaltennummer}k10(){return this.funktionscode}z16(){return this.ambulanteBetreuungsplaetze}y16(){return this.ambulantePatienten}n19(){return this.ambulantePatientenFrequenzen}o19(){return this.stationaerePatientenFrequenzen}p19(){return this.stationaerePatientenAndererKAFrequenzen}l18(){return this.netFloorPlanArea}m18(){return this.aerzteVZA}n18(){return this.apothekerVZA}o18(){return this.hebammenVZA}p18(){return this.gehobenerDiensteVZA}q18(){return this.gehobeneMedtechDiensteVZA}r18(){return this.pflegehilfeVZA}s18(){return this.verwaltungspersonalVZA}t18(){return this.betriebspersonalVZA}u18(){return this.sonstigePersonalVZA}v18(){return this.personalkosten}w18(){return this.medGebrauchsgueterKosten}x18(){return this.nichtMedGebrauchsgueterKosten}y18(){return this.medFremdleistungKosten}z18(){return this.nichtMedFremdleistungKosten}a19(){return this.energiekosten}b19(){return this.sonstigeKosten}c19(){return this.anlagekapitalkosten}d19(){return this.medBedingtenVersorgungskosten}e19(){return this.nichtMedBedingtenVersorgungskosten}f19(){return this.verwaltungskosten}g19(){return this.andereSekundaerkosten}h19(){return this.kostenminderungen}i19(){return this.innerbetrieblicheLeistungskosten}j19(){return this.unterOderUeberdeckung}k19(){return this.endkosten}ke(){return this.year}le(){return this.krankenanstaltennummer}et(){return this.funktionscode}ft(){return this.ambulanteBetreuungsplaetze}vz(){return this.ambulantePatienten}wz(){return this.ambulantePatientenFrequenzen}xz(){return this.stationaerePatientenFrequenzen}yz(){return this.stationaerePatientenAndererKAFrequenzen}zz(){return this.netFloorPlanArea}a10(){return this.aerzteVZA}b10(){return this.apothekerVZA}c10(){return this.hebammenVZA}d10(){return this.gehobenerDiensteVZA}e10(){return this.gehobeneMedtechDiensteVZA}f10(){return this.pflegehilfeVZA}g10(){return this.verwaltungspersonalVZA}j13(){return this.betriebspersonalVZA}k13(){return this.sonstigePersonalVZA}l13(){return this.personalkosten}m13(){return this.medGebrauchsgueterKosten}n13(){return this.nichtMedGebrauchsgueterKosten}o13(){return this.medFremdleistungKosten}p13(){return this.nichtMedFremdleistungKosten}q13(){return this.energiekosten}r13(){return this.sonstigeKosten}s13(){return this.anlagekapitalkosten}t13(){return this.medBedingtenVersorgungskosten}u13(){return this.nichtMedBedingtenVersorgungskosten}v13(){return this.verwaltungskosten}w13(){return this.andereSekundaerkosten}x13(){return this.kostenminderungen}y13(){return this.innerbetrieblicheLeistungskosten}z13(){return this.unterOderUeberdeckung}a14(){return this.endkosten}q19(e,t,i,r,o,s,c,h,g,x,C,A,k,O,F,L,z,j,K,ee,ne,X,q,fe,Se,pe,Me,ie,Re,Ue,Ee,We,Ie,Be){return new n(e,t,i,r,o,s,c,h,g,x,C,A,k,O,F,L,z,j,K,ee,ne,X,q,fe,Se,pe,Me,ie,Re,Ue,Ee,We,Ie,Be)}copy(e,t,i,r,o,s,c,h,g,x,C,A,k,O,F,L,z,j,K,ee,ne,X,q,fe,Se,pe,Me,ie,Re,Ue,Ee,We,Ie,Be,Ve){return e=e===T?this.year:e,t=t===T?this.krankenanstaltennummer:t,i=i===T?this.funktionscode:i,r=r===T?this.ambulanteBetreuungsplaetze:r,o=o===T?this.ambulantePatienten:o,s=s===T?this.ambulantePatientenFrequenzen:s,c=c===T?this.stationaerePatientenFrequenzen:c,h=h===T?this.stationaerePatientenAndererKAFrequenzen:h,g=g===T?this.netFloorPlanArea:g,x=x===T?this.aerzteVZA:x,C=C===T?this.apothekerVZA:C,A=A===T?this.hebammenVZA:A,k=k===T?this.gehobenerDiensteVZA:k,O=O===T?this.gehobeneMedtechDiensteVZA:O,F=F===T?this.pflegehilfeVZA:F,L=L===T?this.verwaltungspersonalVZA:L,z=z===T?this.betriebspersonalVZA:z,j=j===T?this.sonstigePersonalVZA:j,K=K===T?this.personalkosten:K,ee=ee===T?this.medGebrauchsgueterKosten:ee,ne=ne===T?this.nichtMedGebrauchsgueterKosten:ne,X=X===T?this.medFremdleistungKosten:X,q=q===T?this.nichtMedFremdleistungKosten:q,fe=fe===T?this.energiekosten:fe,Se=Se===T?this.sonstigeKosten:Se,pe=pe===T?this.anlagekapitalkosten:pe,Me=Me===T?this.medBedingtenVersorgungskosten:Me,ie=ie===T?this.nichtMedBedingtenVersorgungskosten:ie,Re=Re===T?this.verwaltungskosten:Re,Ue=Ue===T?this.andereSekundaerkosten:Ue,Ee=Ee===T?this.kostenminderungen:Ee,We=We===T?this.innerbetrieblicheLeistungskosten:We,Ie=Ie===T?this.unterOderUeberdeckung:Ie,Be=Be===T?this.endkosten:Be,this.q19(e,t,i,r,o,s,c,h,g,x,C,A,k,O,F,L,z,j,K,ee,ne,X,q,fe,Se,pe,Me,ie,Re,Ue,Ee,We,Ie,Be)}toString(){return"K09NichtBettenfuehrendeHauptkostenstelle(year="+this.year+", krankenanstaltennummer="+this.krankenanstaltennummer.toString()+", funktionscode="+this.funktionscode.toString()+", ambulanteBetreuungsplaetze="+this.ambulanteBetreuungsplaetze+", ambulantePatienten="+this.ambulantePatienten+", ambulantePatientenFrequenzen="+this.ambulantePatientenFrequenzen+", stationaerePatientenFrequenzen="+this.stationaerePatientenFrequenzen+", stationaerePatientenAndererKAFrequenzen="+this.stationaerePatientenAndererKAFrequenzen+", netFloorPlanArea="+this.netFloorPlanArea+", aerzteVZA="+this.aerzteVZA+", apothekerVZA="+this.apothekerVZA+", hebammenVZA="+this.hebammenVZA+", gehobenerDiensteVZA="+this.gehobenerDiensteVZA+", gehobeneMedtechDiensteVZA="+this.gehobeneMedtechDiensteVZA+", pflegehilfeVZA="+this.pflegehilfeVZA+", verwaltungspersonalVZA="+this.verwaltungspersonalVZA+", betriebspersonalVZA="+this.betriebspersonalVZA+", sonstigePersonalVZA="+this.sonstigePersonalVZA+", personalkosten="+this.personalkosten+", medGebrauchsgueterKosten="+this.medGebrauchsgueterKosten+", nichtMedGebrauchsgueterKosten="+this.nichtMedGebrauchsgueterKosten+", medFremdleistungKosten="+this.medFremdleistungKosten+", nichtMedFremdleistungKosten="+this.nichtMedFremdleistungKosten+", energiekosten="+this.energiekosten+", sonstigeKosten="+this.sonstigeKosten+", anlagekapitalkosten="+this.anlagekapitalkosten+", medBedingtenVersorgungskosten="+this.medBedingtenVersorgungskosten+", nichtMedBedingtenVersorgungskosten="+this.nichtMedBedingtenVersorgungskosten+", verwaltungskosten="+this.verwaltungskosten+", andereSekundaerkosten="+this.andereSekundaerkosten+", kostenminderungen="+this.kostenminderungen+", innerbetrieblicheLeistungskosten="+this.innerbetrieblicheLeistungskosten+", unterOderUeberdeckung="+this.unterOderUeberdeckung+", endkosten="+this.endkosten+")"}hashCode(){var e=this.year;return e=Le(e,31)+this.krankenanstaltennummer.hashCode()|0,e=Le(e,31)+this.funktionscode.hashCode()|0,e=Le(e,31)+(this.ambulanteBetreuungsplaetze==null?0:this.ambulanteBetreuungsplaetze)|0,e=Le(e,31)+(this.ambulantePatienten==null?0:this.ambulantePatienten)|0,e=Le(e,31)+(this.ambulantePatientenFrequenzen==null?0:Bi(this.ambulantePatientenFrequenzen))|0,e=Le(e,31)+(this.stationaerePatientenFrequenzen==null?0:Bi(this.stationaerePatientenFrequenzen))|0,e=Le(e,31)+(this.stationaerePatientenAndererKAFrequenzen==null?0:Bi(this.stationaerePatientenAndererKAFrequenzen))|0,e=Le(e,31)+(this.netFloorPlanArea==null?0:Bi(this.netFloorPlanArea))|0,e=Le(e,31)+(this.aerzteVZA==null?0:Bi(this.aerzteVZA))|0,e=Le(e,31)+(this.apothekerVZA==null?0:Bi(this.apothekerVZA))|0,e=Le(e,31)+(this.hebammenVZA==null?0:Bi(this.hebammenVZA))|0,e=Le(e,31)+(this.gehobenerDiensteVZA==null?0:Bi(this.gehobenerDiensteVZA))|0,e=Le(e,31)+(this.gehobeneMedtechDiensteVZA==null?0:Bi(this.gehobeneMedtechDiensteVZA))|0,e=Le(e,31)+(this.pflegehilfeVZA==null?0:Bi(this.pflegehilfeVZA))|0,e=Le(e,31)+(this.verwaltungspersonalVZA==null?0:Bi(this.verwaltungspersonalVZA))|0,e=Le(e,31)+(this.betriebspersonalVZA==null?0:Bi(this.betriebspersonalVZA))|0,e=Le(e,31)+(this.sonstigePersonalVZA==null?0:Bi(this.sonstigePersonalVZA))|0,e=Le(e,31)+(this.personalkosten==null?0:Bi(this.personalkosten))|0,e=Le(e,31)+(this.medGebrauchsgueterKosten==null?0:Bi(this.medGebrauchsgueterKosten))|0,e=Le(e,31)+(this.nichtMedGebrauchsgueterKosten==null?0:Bi(this.nichtMedGebrauchsgueterKosten))|0,e=Le(e,31)+(this.medFremdleistungKosten==null?0:Bi(this.medFremdleistungKosten))|0,e=Le(e,31)+(this.nichtMedFremdleistungKosten==null?0:Bi(this.nichtMedFremdleistungKosten))|0,e=Le(e,31)+(this.energiekosten==null?0:Bi(this.energiekosten))|0,e=Le(e,31)+(this.sonstigeKosten==null?0:Bi(this.sonstigeKosten))|0,e=Le(e,31)+(this.anlagekapitalkosten==null?0:Bi(this.anlagekapitalkosten))|0,e=Le(e,31)+(this.medBedingtenVersorgungskosten==null?0:Bi(this.medBedingtenVersorgungskosten))|0,e=Le(e,31)+(this.nichtMedBedingtenVersorgungskosten==null?0:Bi(this.nichtMedBedingtenVersorgungskosten))|0,e=Le(e,31)+(this.verwaltungskosten==null?0:Bi(this.verwaltungskosten))|0,e=Le(e,31)+(this.andereSekundaerkosten==null?0:Bi(this.andereSekundaerkosten))|0,e=Le(e,31)+(this.kostenminderungen==null?0:Bi(this.kostenminderungen))|0,e=Le(e,31)+(this.innerbetrieblicheLeistungskosten==null?0:Bi(this.innerbetrieblicheLeistungskosten))|0,e=Le(e,31)+(this.unterOderUeberdeckung==null?0:Bi(this.unterOderUeberdeckung))|0,e=Le(e,31)+(this.endkosten==null?0:Bi(this.endkosten))|0,e}equals(e){if(this===e)return!0;if(!(e instanceof n))return!1;var t=e instanceof n?e:xi();return!(this.year!==t.year||!this.krankenanstaltennummer.equals(t.krankenanstaltennummer)||!this.funktionscode.equals(t.funktionscode)||this.ambulanteBetreuungsplaetze!=t.ambulanteBetreuungsplaetze||this.ambulantePatienten!=t.ambulantePatienten||!Lt(this.ambulantePatientenFrequenzen,t.ambulantePatientenFrequenzen)||!Lt(this.stationaerePatientenFrequenzen,t.stationaerePatientenFrequenzen)||!Lt(this.stationaerePatientenAndererKAFrequenzen,t.stationaerePatientenAndererKAFrequenzen)||!Lt(this.netFloorPlanArea,t.netFloorPlanArea)||!Lt(this.aerzteVZA,t.aerzteVZA)||!Lt(this.apothekerVZA,t.apothekerVZA)||!Lt(this.hebammenVZA,t.hebammenVZA)||!Lt(this.gehobenerDiensteVZA,t.gehobenerDiensteVZA)||!Lt(this.gehobeneMedtechDiensteVZA,t.gehobeneMedtechDiensteVZA)||!Lt(this.pflegehilfeVZA,t.pflegehilfeVZA)||!Lt(this.verwaltungspersonalVZA,t.verwaltungspersonalVZA)||!Lt(this.betriebspersonalVZA,t.betriebspersonalVZA)||!Lt(this.sonstigePersonalVZA,t.sonstigePersonalVZA)||!Lt(this.personalkosten,t.personalkosten)||!Lt(this.medGebrauchsgueterKosten,t.medGebrauchsgueterKosten)||!Lt(this.nichtMedGebrauchsgueterKosten,t.nichtMedGebrauchsgueterKosten)||!Lt(this.medFremdleistungKosten,t.medFremdleistungKosten)||!Lt(this.nichtMedFremdleistungKosten,t.nichtMedFremdleistungKosten)||!Lt(this.energiekosten,t.energiekosten)||!Lt(this.sonstigeKosten,t.sonstigeKosten)||!Lt(this.anlagekapitalkosten,t.anlagekapitalkosten)||!Lt(this.medBedingtenVersorgungskosten,t.medBedingtenVersorgungskosten)||!Lt(this.nichtMedBedingtenVersorgungskosten,t.nichtMedBedingtenVersorgungskosten)||!Lt(this.verwaltungskosten,t.verwaltungskosten)||!Lt(this.andereSekundaerkosten,t.andereSekundaerkosten)||!Lt(this.kostenminderungen,t.kostenminderungen)||!Lt(this.innerbetrieblicheLeistungskosten,t.innerbetrieblicheLeistungskosten)||!Lt(this.unterOderUeberdeckung,t.unterOderUeberdeckung)||!Lt(this.endkosten,t.endkosten))}static r19(e,t,i,r,o,s,c,h,g,x,C,A,k,O,F,L,z,j,K,ee,ne,X,q,fe,Se,pe,Me,ie,Re,Ue,Ee,We,Ie,Be,Ve,$e,Fe){if((-1&e)!==-1|(3&t)!==3){var Xe=new Int32Array([e,t]),ze=new Int32Array([-1,3]);Wq(Xe,ze,U_e().dx_1)}var et=tn(this);return et.year=i,et.krankenanstaltennummer=r,et.funktionscode=o,et.ambulanteBetreuungsplaetze=s,et.ambulantePatienten=c,et.ambulantePatientenFrequenzen=h,et.stationaerePatientenFrequenzen=g,et.stationaerePatientenAndererKAFrequenzen=x,et.netFloorPlanArea=C,et.aerzteVZA=A,et.apothekerVZA=k,et.hebammenVZA=O,et.gehobenerDiensteVZA=F,et.gehobeneMedtechDiensteVZA=L,et.pflegehilfeVZA=z,et.verwaltungspersonalVZA=j,et.betriebspersonalVZA=K,et.sonstigePersonalVZA=ee,et.personalkosten=ne,et.medGebrauchsgueterKosten=X,et.nichtMedGebrauchsgueterKosten=q,et.medFremdleistungKosten=fe,et.nichtMedFremdleistungKosten=Se,et.energiekosten=pe,et.sonstigeKosten=Me,et.anlagekapitalkosten=ie,et.medBedingtenVersorgungskosten=Re,et.nichtMedBedingtenVersorgungskosten=Ue,et.verwaltungskosten=Ee,et.andereSekundaerkosten=We,et.kostenminderungen=Ie,et.innerbetrieblicheLeistungskosten=Be,et.unterOderUeberdeckung=Ve,et.endkosten=$e,et}},tU=class n{constructor(e,t,i,r,o,s,c,h,g,x,C,A,k,O,F,L,z,j,K,ee,ne){this.year=e,this.krankenanstaltennummer=t,this.funktionscode=i,this.netFloorPlanArea=r,this.totalPersonnelVZA=o,this.personalkosten=s,this.medGebrauchsgueterKosten=c,this.nichtMedGebrauchsgueterKosten=h,this.medFremdleistungKosten=g,this.nichtMedFremdleistungKosten=x,this.energiekosten=C,this.sonstigeKosten=A,this.anlagekapitalkosten=k,this.medBedingtenVersorgungskosten=O,this.nichtMedBedingtenVersorgungskosten=F,this.verwaltungskosten=L,this.andereSekundaerkosten=z,this.kostenminderungen=j,this.innerbetrieblicheLeistungskosten=K,this.unterOderUeberdeckung=ee,this.endkosten=ne}ti(){return this.year}at(){return this.krankenanstaltennummer}k10(){return this.funktionscode}l18(){return this.netFloorPlanArea}s19(){return this.totalPersonnelVZA}v18(){return this.personalkosten}w18(){return this.medGebrauchsgueterKosten}x18(){return this.nichtMedGebrauchsgueterKosten}y18(){return this.medFremdleistungKosten}z18(){return this.nichtMedFremdleistungKosten}a19(){return this.energiekosten}b19(){return this.sonstigeKosten}c19(){return this.anlagekapitalkosten}d19(){return this.medBedingtenVersorgungskosten}e19(){return this.nichtMedBedingtenVersorgungskosten}f19(){return this.verwaltungskosten}g19(){return this.andereSekundaerkosten}h19(){return this.kostenminderungen}i19(){return this.innerbetrieblicheLeistungskosten}j19(){return this.unterOderUeberdeckung}k19(){return this.endkosten}ke(){return this.year}le(){return this.krankenanstaltennummer}et(){return this.funktionscode}ft(){return this.netFloorPlanArea}vz(){return this.totalPersonnelVZA}wz(){return this.personalkosten}xz(){return this.medGebrauchsgueterKosten}yz(){return this.nichtMedGebrauchsgueterKosten}zz(){return this.medFremdleistungKosten}a10(){return this.nichtMedFremdleistungKosten}b10(){return this.energiekosten}c10(){return this.sonstigeKosten}d10(){return this.anlagekapitalkosten}e10(){return this.medBedingtenVersorgungskosten}f10(){return this.nichtMedBedingtenVersorgungskosten}g10(){return this.verwaltungskosten}j13(){return this.andereSekundaerkosten}k13(){return this.kostenminderungen}l13(){return this.innerbetrieblicheLeistungskosten}m13(){return this.unterOderUeberdeckung}n13(){return this.endkosten}t19(e,t,i,r,o,s,c,h,g,x,C,A,k,O,F,L,z,j,K,ee,ne){return new n(e,t,i,r,o,s,c,h,g,x,C,A,k,O,F,L,z,j,K,ee,ne)}copy(e,t,i,r,o,s,c,h,g,x,C,A,k,O,F,L,z,j,K,ee,ne,X){return e=e===T?this.year:e,t=t===T?this.krankenanstaltennummer:t,i=i===T?this.funktionscode:i,r=r===T?this.netFloorPlanArea:r,o=o===T?this.totalPersonnelVZA:o,s=s===T?this.personalkosten:s,c=c===T?this.medGebrauchsgueterKosten:c,h=h===T?this.nichtMedGebrauchsgueterKosten:h,g=g===T?this.medFremdleistungKosten:g,x=x===T?this.nichtMedFremdleistungKosten:x,C=C===T?this.energiekosten:C,A=A===T?this.sonstigeKosten:A,k=k===T?this.anlagekapitalkosten:k,O=O===T?this.medBedingtenVersorgungskosten:O,F=F===T?this.nichtMedBedingtenVersorgungskosten:F,L=L===T?this.verwaltungskosten:L,z=z===T?this.andereSekundaerkosten:z,j=j===T?this.kostenminderungen:j,K=K===T?this.innerbetrieblicheLeistungskosten:K,ee=ee===T?this.unterOderUeberdeckung:ee,ne=ne===T?this.endkosten:ne,this.t19(e,t,i,r,o,s,c,h,g,x,C,A,k,O,F,L,z,j,K,ee,ne)}toString(){return"K10NebenUndHilfskostenstelle(year="+this.year+", krankenanstaltennummer="+this.krankenanstaltennummer.toString()+", funktionscode="+this.funktionscode.toString()+", netFloorPlanArea="+this.netFloorPlanArea+", totalPersonnelVZA="+this.totalPersonnelVZA+", personalkosten="+this.personalkosten+", medGebrauchsgueterKosten="+this.medGebrauchsgueterKosten+", nichtMedGebrauchsgueterKosten="+this.nichtMedGebrauchsgueterKosten+", medFremdleistungKosten="+this.medFremdleistungKosten+", nichtMedFremdleistungKosten="+this.nichtMedFremdleistungKosten+", energiekosten="+this.energiekosten+", sonstigeKosten="+this.sonstigeKosten+", anlagekapitalkosten="+this.anlagekapitalkosten+", medBedingtenVersorgungskosten="+this.medBedingtenVersorgungskosten+", nichtMedBedingtenVersorgungskosten="+this.nichtMedBedingtenVersorgungskosten+", verwaltungskosten="+this.verwaltungskosten+", andereSekundaerkosten="+this.andereSekundaerkosten+", kostenminderungen="+this.kostenminderungen+", innerbetrieblicheLeistungskosten="+this.innerbetrieblicheLeistungskosten+", unterOderUeberdeckung="+this.unterOderUeberdeckung+", endkosten="+this.endkosten+")"}hashCode(){var e=this.year;return e=Le(e,31)+this.krankenanstaltennummer.hashCode()|0,e=Le(e,31)+this.funktionscode.hashCode()|0,e=Le(e,31)+(this.netFloorPlanArea==null?0:Bi(this.netFloorPlanArea))|0,e=Le(e,31)+(this.totalPersonnelVZA==null?0:Bi(this.totalPersonnelVZA))|0,e=Le(e,31)+(this.personalkosten==null?0:Bi(this.personalkosten))|0,e=Le(e,31)+(this.medGebrauchsgueterKosten==null?0:Bi(this.medGebrauchsgueterKosten))|0,e=Le(e,31)+(this.nichtMedGebrauchsgueterKosten==null?0:Bi(this.nichtMedGebrauchsgueterKosten))|0,e=Le(e,31)+(this.medFremdleistungKosten==null?0:Bi(this.medFremdleistungKosten))|0,e=Le(e,31)+(this.nichtMedFremdleistungKosten==null?0:Bi(this.nichtMedFremdleistungKosten))|0,e=Le(e,31)+(this.energiekosten==null?0:Bi(this.energiekosten))|0,e=Le(e,31)+(this.sonstigeKosten==null?0:Bi(this.sonstigeKosten))|0,e=Le(e,31)+(this.anlagekapitalkosten==null?0:Bi(this.anlagekapitalkosten))|0,e=Le(e,31)+(this.medBedingtenVersorgungskosten==null?0:Bi(this.medBedingtenVersorgungskosten))|0,e=Le(e,31)+(this.nichtMedBedingtenVersorgungskosten==null?0:Bi(this.nichtMedBedingtenVersorgungskosten))|0,e=Le(e,31)+(this.verwaltungskosten==null?0:Bi(this.verwaltungskosten))|0,e=Le(e,31)+(this.andereSekundaerkosten==null?0:Bi(this.andereSekundaerkosten))|0,e=Le(e,31)+(this.kostenminderungen==null?0:Bi(this.kostenminderungen))|0,e=Le(e,31)+(this.innerbetrieblicheLeistungskosten==null?0:Bi(this.innerbetrieblicheLeistungskosten))|0,e=Le(e,31)+(this.unterOderUeberdeckung==null?0:Bi(this.unterOderUeberdeckung))|0,e=Le(e,31)+(this.endkosten==null?0:Bi(this.endkosten))|0,e}equals(e){if(this===e)return!0;if(!(e instanceof n))return!1;var t=e instanceof n?e:xi();return!(this.year!==t.year||!this.krankenanstaltennummer.equals(t.krankenanstaltennummer)||!this.funktionscode.equals(t.funktionscode)||!Lt(this.netFloorPlanArea,t.netFloorPlanArea)||!Lt(this.totalPersonnelVZA,t.totalPersonnelVZA)||!Lt(this.personalkosten,t.personalkosten)||!Lt(this.medGebrauchsgueterKosten,t.medGebrauchsgueterKosten)||!Lt(this.nichtMedGebrauchsgueterKosten,t.nichtMedGebrauchsgueterKosten)||!Lt(this.medFremdleistungKosten,t.medFremdleistungKosten)||!Lt(this.nichtMedFremdleistungKosten,t.nichtMedFremdleistungKosten)||!Lt(this.energiekosten,t.energiekosten)||!Lt(this.sonstigeKosten,t.sonstigeKosten)||!Lt(this.anlagekapitalkosten,t.anlagekapitalkosten)||!Lt(this.medBedingtenVersorgungskosten,t.medBedingtenVersorgungskosten)||!Lt(this.nichtMedBedingtenVersorgungskosten,t.nichtMedBedingtenVersorgungskosten)||!Lt(this.verwaltungskosten,t.verwaltungskosten)||!Lt(this.andereSekundaerkosten,t.andereSekundaerkosten)||!Lt(this.kostenminderungen,t.kostenminderungen)||!Lt(this.innerbetrieblicheLeistungskosten,t.innerbetrieblicheLeistungskosten)||!Lt(this.unterOderUeberdeckung,t.unterOderUeberdeckung)||!Lt(this.endkosten,t.endkosten))}static u19(e,t,i,r,o,s,c,h,g,x,C,A,k,O,F,L,z,j,K,ee,ne,X,q){(2097151&e)!==2097151&&On(e,2097151,j_e().ex_1);var fe=tn(this);return fe.year=t,fe.krankenanstaltennummer=i,fe.funktionscode=r,fe.netFloorPlanArea=o,fe.totalPersonnelVZA=s,fe.personalkosten=c,fe.medGebrauchsgueterKosten=h,fe.nichtMedGebrauchsgueterKosten=g,fe.medFremdleistungKosten=x,fe.nichtMedFremdleistungKosten=C,fe.energiekosten=A,fe.sonstigeKosten=k,fe.anlagekapitalkosten=O,fe.medBedingtenVersorgungskosten=F,fe.nichtMedBedingtenVersorgungskosten=L,fe.verwaltungskosten=z,fe.andereSekundaerkosten=j,fe.kostenminderungen=K,fe.innerbetrieblicheLeistungskosten=ee,fe.unterOderUeberdeckung=ne,fe.endkosten=X,fe}},iU=class n{constructor(e,t,i,r,o,s,c,h,g,x,C,A,k,O,F,L,z,j,K,ee,ne){this.year=e,this.krankenanstaltennummer=t,this.personalkosten=i,this.medGebrauchsgueterKosten=r,this.nichtMedGebrauchsgueterKosten=o,this.medFremdleistungKosten=s,this.nichtMedFremdleistungKosten=c,this.energiekosten=h,this.sonstigeKosten=g,this.anlagekapitalkosten=x,this.summePrimaerkosten=C,this.kostenminderungen=A,this.endkostenKrankenanstalt=k,this.abschreibungen=O,this.abschreibungenAnlagegueter=F,this.abschreibungenStillgelegterAnlagen=L,this.zinsen=z,this.mieten=j,this.stationaerePatientenversorgungskosten=K,this.ambulantePatientenversorgungskosten=ee,this.endkostenNebenkostenstellen=ne}ti(){return this.year}at(){return this.krankenanstaltennummer}v18(){return this.personalkosten}w18(){return this.medGebrauchsgueterKosten}x18(){return this.nichtMedGebrauchsgueterKosten}y18(){return this.medFremdleistungKosten}z18(){return this.nichtMedFremdleistungKosten}a19(){return this.energiekosten}b19(){return this.sonstigeKosten}c19(){return this.anlagekapitalkosten}v19(){return this.summePrimaerkosten}h19(){return this.kostenminderungen}w19(){return this.endkostenKrankenanstalt}x19(){return this.abschreibungen}y19(){return this.abschreibungenAnlagegueter}z19(){return this.abschreibungenStillgelegterAnlagen}a1a(){return this.zinsen}b1a(){return this.mieten}c1a(){return this.stationaerePatientenversorgungskosten}d1a(){return this.ambulantePatientenversorgungskosten}e1a(){return this.endkostenNebenkostenstellen}ke(){return this.year}le(){return this.krankenanstaltennummer}et(){return this.personalkosten}ft(){return this.medGebrauchsgueterKosten}vz(){return this.nichtMedGebrauchsgueterKosten}wz(){return this.medFremdleistungKosten}xz(){return this.nichtMedFremdleistungKosten}yz(){return this.energiekosten}zz(){return this.sonstigeKosten}a10(){return this.anlagekapitalkosten}b10(){return this.summePrimaerkosten}c10(){return this.kostenminderungen}d10(){return this.endkostenKrankenanstalt}e10(){return this.abschreibungen}f10(){return this.abschreibungenAnlagegueter}g10(){return this.abschreibungenStillgelegterAnlagen}j13(){return this.zinsen}k13(){return this.mieten}l13(){return this.stationaerePatientenversorgungskosten}m13(){return this.ambulantePatientenversorgungskosten}n13(){return this.endkostenNebenkostenstellen}f1a(e,t,i,r,o,s,c,h,g,x,C,A,k,O,F,L,z,j,K,ee,ne){return new n(e,t,i,r,o,s,c,h,g,x,C,A,k,O,F,L,z,j,K,ee,ne)}copy(e,t,i,r,o,s,c,h,g,x,C,A,k,O,F,L,z,j,K,ee,ne,X){return e=e===T?this.year:e,t=t===T?this.krankenanstaltennummer:t,i=i===T?this.personalkosten:i,r=r===T?this.medGebrauchsgueterKosten:r,o=o===T?this.nichtMedGebrauchsgueterKosten:o,s=s===T?this.medFremdleistungKosten:s,c=c===T?this.nichtMedFremdleistungKosten:c,h=h===T?this.energiekosten:h,g=g===T?this.sonstigeKosten:g,x=x===T?this.anlagekapitalkosten:x,C=C===T?this.summePrimaerkosten:C,A=A===T?this.kostenminderungen:A,k=k===T?this.endkostenKrankenanstalt:k,O=O===T?this.abschreibungen:O,F=F===T?this.abschreibungenAnlagegueter:F,L=L===T?this.abschreibungenStillgelegterAnlagen:L,z=z===T?this.zinsen:z,j=j===T?this.mieten:j,K=K===T?this.stationaerePatientenversorgungskosten:K,ee=ee===T?this.ambulantePatientenversorgungskosten:ee,ne=ne===T?this.endkostenNebenkostenstellen:ne,this.f1a(e,t,i,r,o,s,c,h,g,x,C,A,k,O,F,L,z,j,K,ee,ne)}toString(){return"K11KostennachweisSummenblatt(year="+this.year+", krankenanstaltennummer="+this.krankenanstaltennummer.toString()+", personalkosten="+this.personalkosten+", medGebrauchsgueterKosten="+this.medGebrauchsgueterKosten+", nichtMedGebrauchsgueterKosten="+this.nichtMedGebrauchsgueterKosten+", medFremdleistungKosten="+this.medFremdleistungKosten+", nichtMedFremdleistungKosten="+this.nichtMedFremdleistungKosten+", energiekosten="+this.energiekosten+", sonstigeKosten="+this.sonstigeKosten+", anlagekapitalkosten="+this.anlagekapitalkosten+", summePrimaerkosten="+this.summePrimaerkosten+", kostenminderungen="+this.kostenminderungen+", endkostenKrankenanstalt="+this.endkostenKrankenanstalt+", abschreibungen="+this.abschreibungen+", abschreibungenAnlagegueter="+this.abschreibungenAnlagegueter+", abschreibungenStillgelegterAnlagen="+this.abschreibungenStillgelegterAnlagen+", zinsen="+this.zinsen+", mieten="+this.mieten+", stationaerePatientenversorgungskosten="+this.stationaerePatientenversorgungskosten+", ambulantePatientenversorgungskosten="+this.ambulantePatientenversorgungskosten+", endkostenNebenkostenstellen="+this.endkostenNebenkostenstellen+")"}hashCode(){var e=this.year;return e=Le(e,31)+this.krankenanstaltennummer.hashCode()|0,e=Le(e,31)+(this.personalkosten==null?0:Bi(this.personalkosten))|0,e=Le(e,31)+(this.medGebrauchsgueterKosten==null?0:Bi(this.medGebrauchsgueterKosten))|0,e=Le(e,31)+(this.nichtMedGebrauchsgueterKosten==null?0:Bi(this.nichtMedGebrauchsgueterKosten))|0,e=Le(e,31)+(this.medFremdleistungKosten==null?0:Bi(this.medFremdleistungKosten))|0,e=Le(e,31)+(this.nichtMedFremdleistungKosten==null?0:Bi(this.nichtMedFremdleistungKosten))|0,e=Le(e,31)+(this.energiekosten==null?0:Bi(this.energiekosten))|0,e=Le(e,31)+(this.sonstigeKosten==null?0:Bi(this.sonstigeKosten))|0,e=Le(e,31)+(this.anlagekapitalkosten==null?0:Bi(this.anlagekapitalkosten))|0,e=Le(e,31)+(this.summePrimaerkosten==null?0:Bi(this.summePrimaerkosten))|0,e=Le(e,31)+(this.kostenminderungen==null?0:Bi(this.kostenminderungen))|0,e=Le(e,31)+(this.endkostenKrankenanstalt==null?0:Bi(this.endkostenKrankenanstalt))|0,e=Le(e,31)+(this.abschreibungen==null?0:Bi(this.abschreibungen))|0,e=Le(e,31)+(this.abschreibungenAnlagegueter==null?0:Bi(this.abschreibungenAnlagegueter))|0,e=Le(e,31)+(this.abschreibungenStillgelegterAnlagen==null?0:Bi(this.abschreibungenStillgelegterAnlagen))|0,e=Le(e,31)+(this.zinsen==null?0:Bi(this.zinsen))|0,e=Le(e,31)+(this.mieten==null?0:Bi(this.mieten))|0,e=Le(e,31)+(this.stationaerePatientenversorgungskosten==null?0:Bi(this.stationaerePatientenversorgungskosten))|0,e=Le(e,31)+(this.ambulantePatientenversorgungskosten==null?0:Bi(this.ambulantePatientenversorgungskosten))|0,e=Le(e,31)+(this.endkostenNebenkostenstellen==null?0:Bi(this.endkostenNebenkostenstellen))|0,e}equals(e){if(this===e)return!0;if(!(e instanceof n))return!1;var t=e instanceof n?e:xi();return!(this.year!==t.year||!this.krankenanstaltennummer.equals(t.krankenanstaltennummer)||!Lt(this.personalkosten,t.personalkosten)||!Lt(this.medGebrauchsgueterKosten,t.medGebrauchsgueterKosten)||!Lt(this.nichtMedGebrauchsgueterKosten,t.nichtMedGebrauchsgueterKosten)||!Lt(this.medFremdleistungKosten,t.medFremdleistungKosten)||!Lt(this.nichtMedFremdleistungKosten,t.nichtMedFremdleistungKosten)||!Lt(this.energiekosten,t.energiekosten)||!Lt(this.sonstigeKosten,t.sonstigeKosten)||!Lt(this.anlagekapitalkosten,t.anlagekapitalkosten)||!Lt(this.summePrimaerkosten,t.summePrimaerkosten)||!Lt(this.kostenminderungen,t.kostenminderungen)||!Lt(this.endkostenKrankenanstalt,t.endkostenKrankenanstalt)||!Lt(this.abschreibungen,t.abschreibungen)||!Lt(this.abschreibungenAnlagegueter,t.abschreibungenAnlagegueter)||!Lt(this.abschreibungenStillgelegterAnlagen,t.abschreibungenStillgelegterAnlagen)||!Lt(this.zinsen,t.zinsen)||!Lt(this.mieten,t.mieten)||!Lt(this.stationaerePatientenversorgungskosten,t.stationaerePatientenversorgungskosten)||!Lt(this.ambulantePatientenversorgungskosten,t.ambulantePatientenversorgungskosten)||!Lt(this.endkostenNebenkostenstellen,t.endkostenNebenkostenstellen))}static g1a(e,t,i,r,o,s,c,h,g,x,C,A,k,O,F,L,z,j,K,ee,ne,X,q){(2097151&e)!==2097151&&On(e,2097151,H_e().fx_1);var fe=tn(this);return fe.year=t,fe.krankenanstaltennummer=i,fe.personalkosten=r,fe.medGebrauchsgueterKosten=o,fe.nichtMedGebrauchsgueterKosten=s,fe.medFremdleistungKosten=c,fe.nichtMedFremdleistungKosten=h,fe.energiekosten=g,fe.sonstigeKosten=x,fe.anlagekapitalkosten=C,fe.summePrimaerkosten=A,fe.kostenminderungen=k,fe.endkostenKrankenanstalt=O,fe.abschreibungen=F,fe.abschreibungenAnlagegueter=L,fe.abschreibungenStillgelegterAnlagen=z,fe.zinsen=j,fe.mieten=K,fe.stationaerePatientenversorgungskosten=ee,fe.ambulantePatientenversorgungskosten=ne,fe.endkostenNebenkostenstellen=X,fe}},nU=class n{constructor(e,t,i,r,o,s,c,h){this.year=e,this.krankenanstaltennummer=t,this.blattnummer=i,this.mlvNummer=r,this.aufwandFinanzbuchfuehrung=o,this.neutralerAufwand=s,this.kalkulatorischeKosten=c,this.kosten=h}ti(){return this.year}at(){return this.krankenanstaltennummer}h1a(){return this.blattnummer}i1a(){return this.mlvNummer}j1a(){return this.aufwandFinanzbuchfuehrung}k1a(){return this.neutralerAufwand}l1a(){return this.kalkulatorischeKosten}m1a(){return this.kosten}ke(){return this.year}le(){return this.krankenanstaltennummer}et(){return this.blattnummer}ft(){return this.mlvNummer}vz(){return this.aufwandFinanzbuchfuehrung}wz(){return this.neutralerAufwand}xz(){return this.kalkulatorischeKosten}yz(){return this.kosten}n1a(e,t,i,r,o,s,c,h){return new n(e,t,i,r,o,s,c,h)}copy(e,t,i,r,o,s,c,h,g){return e=e===T?this.year:e,t=t===T?this.krankenanstaltennummer:t,i=i===T?this.blattnummer:i,r=r===T?this.mlvNummer:r,o=o===T?this.aufwandFinanzbuchfuehrung:o,s=s===T?this.neutralerAufwand:s,c=c===T?this.kalkulatorischeKosten:c,h=h===T?this.kosten:h,this.n1a(e,t,i,r,o,s,c,h)}toString(){return"K12KostennachweisDetailblatt(year="+this.year+", krankenanstaltennummer="+this.krankenanstaltennummer.toString()+", blattnummer="+this.blattnummer.toString()+", mlvNummer="+this.mlvNummer.toString()+", aufwandFinanzbuchfuehrung="+this.aufwandFinanzbuchfuehrung+", neutralerAufwand="+this.neutralerAufwand+", kalkulatorischeKosten="+this.kalkulatorischeKosten+", kosten="+this.kosten+")"}hashCode(){var e=this.year;return e=Le(e,31)+this.krankenanstaltennummer.hashCode()|0,e=Le(e,31)+this.blattnummer.hashCode()|0,e=Le(e,31)+this.mlvNummer.hashCode()|0,e=Le(e,31)+(this.aufwandFinanzbuchfuehrung==null?0:Bi(this.aufwandFinanzbuchfuehrung))|0,e=Le(e,31)+(this.neutralerAufwand==null?0:Bi(this.neutralerAufwand))|0,e=Le(e,31)+(this.kalkulatorischeKosten==null?0:Bi(this.kalkulatorischeKosten))|0,e=Le(e,31)+(this.kosten==null?0:Bi(this.kosten))|0,e}equals(e){if(this===e)return!0;if(!(e instanceof n))return!1;var t=e instanceof n?e:xi();return!(this.year!==t.year||!this.krankenanstaltennummer.equals(t.krankenanstaltennummer)||!this.blattnummer.equals(t.blattnummer)||!this.mlvNummer.equals(t.mlvNummer)||!Lt(this.aufwandFinanzbuchfuehrung,t.aufwandFinanzbuchfuehrung)||!Lt(this.neutralerAufwand,t.neutralerAufwand)||!Lt(this.kalkulatorischeKosten,t.kalkulatorischeKosten)||!Lt(this.kosten,t.kosten))}static o1a(e,t,i,r,o,s,c,h,g,x){(255&e)!==255&&On(e,255,q_e().lx_1);var C=tn(this);return C.year=t,C.krankenanstaltennummer=i,C.blattnummer=r,C.mlvNummer=o,C.aufwandFinanzbuchfuehrung=s,C.neutralerAufwand=c,C.kalkulatorischeKosten=h,C.kosten=g,C}},rU=class n{constructor(e,t,i,r){this.year=e,this.krankenanstaltennummer=t,this.kostenminderungsartIndex=i,this.kostenminderungen=r}ti(){return this.year}at(){return this.krankenanstaltennummer}p1a(){return this.kostenminderungsartIndex}h19(){return this.kostenminderungen}ke(){return this.year}le(){return this.krankenanstaltennummer}et(){return this.kostenminderungsartIndex}ft(){return this.kostenminderungen}q1a(e,t,i,r){return new n(e,t,i,r)}copy(e,t,i,r,o){return e=e===T?this.year:e,t=t===T?this.krankenanstaltennummer:t,i=i===T?this.kostenminderungsartIndex:i,r=r===T?this.kostenminderungen:r,this.q1a(e,t,i,r)}toString(){return"K13Kostenminderungen(year="+this.year+", krankenanstaltennummer="+this.krankenanstaltennummer.toString()+", kostenminderungsartIndex="+this.kostenminderungsartIndex.toString()+", kostenminderungen="+this.kostenminderungen+")"}hashCode(){var e=this.year;return e=Le(e,31)+this.krankenanstaltennummer.hashCode()|0,e=Le(e,31)+this.kostenminderungsartIndex.hashCode()|0,e=Le(e,31)+(this.kostenminderungen==null?0:Bi(this.kostenminderungen))|0,e}equals(e){if(this===e)return!0;if(!(e instanceof n))return!1;var t=e instanceof n?e:xi();return!(this.year!==t.year||!this.krankenanstaltennummer.equals(t.krankenanstaltennummer)||!this.kostenminderungsartIndex.equals(t.kostenminderungsartIndex)||!Lt(this.kostenminderungen,t.kostenminderungen))}static r1a(e,t,i,r,o,s){(15&e)!==15&&On(e,15,K_e().ox_1);var c=tn(this);return c.year=t,c.krankenanstaltennummer=i,c.kostenminderungsartIndex=r,c.kostenminderungen=o,c}},oU=class n{constructor(e,t,i,r,o,s,c,h,g,x,C){this.year=e,this.krankenanstaltennummer=t,this.anlageindex=i,this.herstellungskosten=r,this.zugaenge=o,this.abgaenge=s,this.umbuchungen=c,this.kumulierteAbschreibungen=h,this.buchwertBerichtsjahr=g,this.buchwertVorjahr=x,this.abschreibungLaufendesBerichtsjahr=C}ti(){return this.year}at(){return this.krankenanstaltennummer}s1a(){return this.anlageindex}t1a(){return this.herstellungskosten}u1a(){return this.zugaenge}v1a(){return this.abgaenge}w1a(){return this.umbuchungen}x1a(){return this.kumulierteAbschreibungen}y1a(){return this.buchwertBerichtsjahr}z1a(){return this.buchwertVorjahr}a1b(){return this.abschreibungLaufendesBerichtsjahr}ke(){return this.year}le(){return this.krankenanstaltennummer}et(){return this.anlageindex}ft(){return this.herstellungskosten}vz(){return this.zugaenge}wz(){return this.abgaenge}xz(){return this.umbuchungen}yz(){return this.kumulierteAbschreibungen}zz(){return this.buchwertBerichtsjahr}a10(){return this.buchwertVorjahr}b10(){return this.abschreibungLaufendesBerichtsjahr}b1b(e,t,i,r,o,s,c,h,g,x,C){return new n(e,t,i,r,o,s,c,h,g,x,C)}copy(e,t,i,r,o,s,c,h,g,x,C,A){return e=e===T?this.year:e,t=t===T?this.krankenanstaltennummer:t,i=i===T?this.anlageindex:i,r=r===T?this.herstellungskosten:r,o=o===T?this.zugaenge:o,s=s===T?this.abgaenge:s,c=c===T?this.umbuchungen:c,h=h===T?this.kumulierteAbschreibungen:h,g=g===T?this.buchwertBerichtsjahr:g,x=x===T?this.buchwertVorjahr:x,C=C===T?this.abschreibungLaufendesBerichtsjahr:C,this.b1b(e,t,i,r,o,s,c,h,g,x,C)}toString(){return"K14KalkulatorischerAnlagenspiegel(year="+this.year+", krankenanstaltennummer="+this.krankenanstaltennummer.toString()+", anlageindex="+this.anlageindex.toString()+", herstellungskosten="+this.herstellungskosten+", zugaenge="+this.zugaenge+", abgaenge="+this.abgaenge+", umbuchungen="+this.umbuchungen+", kumulierteAbschreibungen="+this.kumulierteAbschreibungen+", buchwertBerichtsjahr="+this.buchwertBerichtsjahr+", buchwertVorjahr="+this.buchwertVorjahr+", abschreibungLaufendesBerichtsjahr="+this.abschreibungLaufendesBerichtsjahr+")"}hashCode(){var e=this.year;return e=Le(e,31)+this.krankenanstaltennummer.hashCode()|0,e=Le(e,31)+this.anlageindex.hashCode()|0,e=Le(e,31)+(this.herstellungskosten==null?0:Bi(this.herstellungskosten))|0,e=Le(e,31)+(this.zugaenge==null?0:Bi(this.zugaenge))|0,e=Le(e,31)+(this.abgaenge==null?0:Bi(this.abgaenge))|0,e=Le(e,31)+(this.umbuchungen==null?0:Bi(this.umbuchungen))|0,e=Le(e,31)+(this.kumulierteAbschreibungen==null?0:Bi(this.kumulierteAbschreibungen))|0,e=Le(e,31)+(this.buchwertBerichtsjahr==null?0:Bi(this.buchwertBerichtsjahr))|0,e=Le(e,31)+(this.buchwertVorjahr==null?0:Bi(this.buchwertVorjahr))|0,e=Le(e,31)+(this.abschreibungLaufendesBerichtsjahr==null?0:Bi(this.abschreibungLaufendesBerichtsjahr))|0,e}equals(e){if(this===e)return!0;if(!(e instanceof n))return!1;var t=e instanceof n?e:xi();return!(this.year!==t.year||!this.krankenanstaltennummer.equals(t.krankenanstaltennummer)||!this.anlageindex.equals(t.anlageindex)||!Lt(this.herstellungskosten,t.herstellungskosten)||!Lt(this.zugaenge,t.zugaenge)||!Lt(this.abgaenge,t.abgaenge)||!Lt(this.umbuchungen,t.umbuchungen)||!Lt(this.kumulierteAbschreibungen,t.kumulierteAbschreibungen)||!Lt(this.buchwertBerichtsjahr,t.buchwertBerichtsjahr)||!Lt(this.buchwertVorjahr,t.buchwertVorjahr)||!Lt(this.abschreibungLaufendesBerichtsjahr,t.abschreibungLaufendesBerichtsjahr))}static c1b(e,t,i,r,o,s,c,h,g,x,C,A,k){(2047&e)!==2047&&On(e,2047,Z_e().rx_1);var O=tn(this);return O.year=t,O.krankenanstaltennummer=i,O.anlageindex=r,O.herstellungskosten=o,O.zugaenge=s,O.abgaenge=c,O.umbuchungen=h,O.kumulierteAbschreibungen=g,O.buchwertBerichtsjahr=x,O.buchwertVorjahr=C,O.abschreibungLaufendesBerichtsjahr=A,O}},sU=class n{constructor(e,t,i,r,o){this.year=e,this.krankenanstaltennummer=t,this.kennzahlenindex=i,this.kosten=r,this.bezugsgroesse=o}ti(){return this.year}at(){return this.krankenanstaltennummer}d1b(){return this.kennzahlenindex}m1a(){return this.kosten}e1b(){return this.bezugsgroesse}ke(){return this.year}le(){return this.krankenanstaltennummer}et(){return this.kennzahlenindex}ft(){return this.kosten}vz(){return this.bezugsgroesse}f1b(e,t,i,r,o){return new n(e,t,i,r,o)}copy(e,t,i,r,o,s){return e=e===T?this.year:e,t=t===T?this.krankenanstaltennummer:t,i=i===T?this.kennzahlenindex:i,r=r===T?this.kosten:r,o=o===T?this.bezugsgroesse:o,this.f1b(e,t,i,r,o)}toString(){return"K15AllgemeineKostenbereiche(year="+this.year+", krankenanstaltennummer="+this.krankenanstaltennummer.toString()+", kennzahlenindex="+this.kennzahlenindex.toString()+", kosten="+this.kosten+", bezugsgroesse="+this.bezugsgroesse+")"}hashCode(){var e=this.year;return e=Le(e,31)+this.krankenanstaltennummer.hashCode()|0,e=Le(e,31)+this.kennzahlenindex.hashCode()|0,e=Le(e,31)+(this.kosten==null?0:Bi(this.kosten))|0,e=Le(e,31)+(this.bezugsgroesse==null?0:Bi(this.bezugsgroesse))|0,e}equals(e){if(this===e)return!0;if(!(e instanceof n))return!1;var t=e instanceof n?e:xi();return!(this.year!==t.year||!this.krankenanstaltennummer.equals(t.krankenanstaltennummer)||!this.kennzahlenindex.equals(t.kennzahlenindex)||!Lt(this.kosten,t.kosten)||!Lt(this.bezugsgroesse,t.bezugsgroesse))}static g1b(e,t,i,r,o,s,c){(31&e)!==31&&On(e,31,X_e().ux_1);var h=tn(this);return h.year=t,h.krankenanstaltennummer=i,h.kennzahlenindex=r,h.kosten=o,h.bezugsgroesse=s,h}},aU=class n{constructor(e,t,i,r){this.year=e,this.krankenanstaltennummer=t,this.kostenindex=i,this.kosten=r}ti(){return this.year}at(){return this.krankenanstaltennummer}h1b(){return this.kostenindex}m1a(){return this.kosten}ke(){return this.year}le(){return this.krankenanstaltennummer}et(){return this.kostenindex}ft(){return this.kosten}i1b(e,t,i,r){return new n(e,t,i,r)}copy(e,t,i,r,o){return e=e===T?this.year:e,t=t===T?this.krankenanstaltennummer:t,i=i===T?this.kostenindex:i,r=r===T?this.kosten:r,this.i1b(e,t,i,r)}toString(){return"K16AusgewaehlteKosten(year="+this.year+", krankenanstaltennummer="+this.krankenanstaltennummer.toString()+", kostenindex="+this.kostenindex.toString()+", kosten="+this.kosten+")"}hashCode(){var e=this.year;return e=Le(e,31)+this.krankenanstaltennummer.hashCode()|0,e=Le(e,31)+this.kostenindex.hashCode()|0,e=Le(e,31)+(this.kosten==null?0:Bi(this.kosten))|0,e}equals(e){if(this===e)return!0;if(!(e instanceof n))return!1;var t=e instanceof n?e:xi();return!(this.year!==t.year||!this.krankenanstaltennummer.equals(t.krankenanstaltennummer)||!this.kostenindex.equals(t.kostenindex)||!Lt(this.kosten,t.kosten))}static j1b(e,t,i,r,o,s){(15&e)!==15&&On(e,15,eve().xx_1);var c=tn(this);return c.year=t,c.krankenanstaltennummer=i,c.kostenindex=r,c.kosten=o,c}},lU=class n{constructor(e,t,i,r,o,s,c,h,g,x,C){this.year=e,this.krankenanstaltennummer=t,this.grossgeraetPositionsnummer=i,this.funktionscode=r,this.grossgeraetArt=o,this.grossgeraetType=s,this.hersteller=c,this.baujahr=h,this.anschaffungskosten=g,this.betriebszeiten=x,this.kommentar=C}ti(){return this.year}at(){return this.krankenanstaltennummer}k1b(){return this.grossgeraetPositionsnummer}k10(){return this.funktionscode}l1b(){return this.grossgeraetArt}m1b(){return this.grossgeraetType}n1b(){return this.hersteller}o1b(){return this.baujahr}p1b(){return this.anschaffungskosten}q1b(){return this.betriebszeiten}r1b(){return this.kommentar}ke(){return this.year}le(){return this.krankenanstaltennummer}et(){return this.grossgeraetPositionsnummer}ft(){return this.funktionscode}vz(){return this.grossgeraetArt}wz(){return this.grossgeraetType}xz(){return this.hersteller}yz(){return this.baujahr}zz(){return this.anschaffungskosten}a10(){return this.betriebszeiten}b10(){return this.kommentar}s1b(e,t,i,r,o,s,c,h,g,x,C){return new n(e,t,i,r,o,s,c,h,g,x,C)}copy(e,t,i,r,o,s,c,h,g,x,C,A){return e=e===T?this.year:e,t=t===T?this.krankenanstaltennummer:t,i=i===T?this.grossgeraetPositionsnummer:i,r=r===T?this.funktionscode:r,o=o===T?this.grossgeraetArt:o,s=s===T?this.grossgeraetType:s,c=c===T?this.hersteller:c,h=h===T?this.baujahr:h,g=g===T?this.anschaffungskosten:g,x=x===T?this.betriebszeiten:x,C=C===T?this.kommentar:C,this.s1b(e,t,i,r,o,s,c,h,g,x,C)}toString(){return"G01Grossgeraetbasisdaten(year="+this.year+", krankenanstaltennummer="+this.krankenanstaltennummer.toString()+", grossgeraetPositionsnummer="+this.grossgeraetPositionsnummer.toString()+", funktionscode="+Lo(this.funktionscode)+", grossgeraetArt="+Lo(this.grossgeraetArt)+", grossgeraetType="+this.grossgeraetType+", hersteller="+this.hersteller+", baujahr="+this.baujahr+", anschaffungskosten="+this.anschaffungskosten+", betriebszeiten="+this.betriebszeiten+", kommentar="+this.kommentar+")"}hashCode(){var e=this.year;return e=Le(e,31)+this.krankenanstaltennummer.hashCode()|0,e=Le(e,31)+this.grossgeraetPositionsnummer.hashCode()|0,e=Le(e,31)+(this.funktionscode==null?0:this.funktionscode.hashCode())|0,e=Le(e,31)+(this.grossgeraetArt==null?0:this.grossgeraetArt.hashCode())|0,e=Le(e,31)+(this.grossgeraetType==null?0:on(this.grossgeraetType))|0,e=Le(e,31)+(this.hersteller==null?0:on(this.hersteller))|0,e=Le(e,31)+(this.baujahr==null?0:this.baujahr)|0,e=Le(e,31)+(this.anschaffungskosten==null?0:Bi(this.anschaffungskosten))|0,e=Le(e,31)+(this.betriebszeiten==null?0:on(this.betriebszeiten))|0,e=Le(e,31)+(this.kommentar==null?0:on(this.kommentar))|0,e}equals(e){if(this===e)return!0;if(!(e instanceof n))return!1;var t=e instanceof n?e:xi();return!(this.year!==t.year||!this.krankenanstaltennummer.equals(t.krankenanstaltennummer)||!this.grossgeraetPositionsnummer.equals(t.grossgeraetPositionsnummer)||!Lt(this.funktionscode,t.funktionscode)||!Lt(this.grossgeraetArt,t.grossgeraetArt)||this.grossgeraetType!=t.grossgeraetType||this.hersteller!=t.hersteller||this.baujahr!=t.baujahr||!Lt(this.anschaffungskosten,t.anschaffungskosten)||this.betriebszeiten!=t.betriebszeiten||this.kommentar!=t.kommentar)}static t1b(e,t,i,r,o,s,c,h,g,x,C,A,k){(2047&e)!==2047&&On(e,2047,ive().cy_1);var O=tn(this);return O.year=t,O.krankenanstaltennummer=i,O.grossgeraetPositionsnummer=r,O.funktionscode=o,O.grossgeraetArt=s,O.grossgeraetType=c,O.hersteller=h,O.baujahr=g,O.anschaffungskosten=x,O.betriebszeiten=C,O.kommentar=A,O}},cU=class n{constructor(e,t,i,r,o,s,c){this.year=e,this.krankenanstaltennummer=t,this.grossgeraetPositionsnummer=i,this.grossgeraetLeistungsindex=r,this.ambulanteFrequenzen=o,this.stationaereFrequenzen=s,this.averageLengthPerFrequencyInMins=c}ti(){return this.year}at(){return this.krankenanstaltennummer}k1b(){return this.grossgeraetPositionsnummer}u1b(){return this.grossgeraetLeistungsindex}v1b(){return this.ambulanteFrequenzen}w1b(){return this.stationaereFrequenzen}x1b(){return this.averageLengthPerFrequencyInMins}ke(){return this.year}le(){return this.krankenanstaltennummer}et(){return this.grossgeraetPositionsnummer}ft(){return this.grossgeraetLeistungsindex}vz(){return this.ambulanteFrequenzen}wz(){return this.stationaereFrequenzen}xz(){return this.averageLengthPerFrequencyInMins}y1b(e,t,i,r,o,s,c){return new n(e,t,i,r,o,s,c)}copy(e,t,i,r,o,s,c,h){return e=e===T?this.year:e,t=t===T?this.krankenanstaltennummer:t,i=i===T?this.grossgeraetPositionsnummer:i,r=r===T?this.grossgeraetLeistungsindex:r,o=o===T?this.ambulanteFrequenzen:o,s=s===T?this.stationaereFrequenzen:s,c=c===T?this.averageLengthPerFrequencyInMins:c,this.y1b(e,t,i,r,o,s,c)}toString(){return"G02GrossgeraetLeistungsdaten(year="+this.year+", krankenanstaltennummer="+this.krankenanstaltennummer.toString()+", grossgeraetPositionsnummer="+this.grossgeraetPositionsnummer.toString()+", grossgeraetLeistungsindex="+this.grossgeraetLeistungsindex.toString()+", ambulanteFrequenzen="+this.ambulanteFrequenzen+", stationaereFrequenzen="+this.stationaereFrequenzen+", averageLengthPerFrequencyInMins="+this.averageLengthPerFrequencyInMins+")"}hashCode(){var e=this.year;return e=Le(e,31)+this.krankenanstaltennummer.hashCode()|0,e=Le(e,31)+this.grossgeraetPositionsnummer.hashCode()|0,e=Le(e,31)+this.grossgeraetLeistungsindex.hashCode()|0,e=Le(e,31)+(this.ambulanteFrequenzen==null?0:Bi(this.ambulanteFrequenzen))|0,e=Le(e,31)+(this.stationaereFrequenzen==null?0:Bi(this.stationaereFrequenzen))|0,e=Le(e,31)+(this.averageLengthPerFrequencyInMins==null?0:Bi(this.averageLengthPerFrequencyInMins))|0,e}equals(e){if(this===e)return!0;if(!(e instanceof n))return!1;var t=e instanceof n?e:xi();return!(this.year!==t.year||!this.krankenanstaltennummer.equals(t.krankenanstaltennummer)||!this.grossgeraetPositionsnummer.equals(t.grossgeraetPositionsnummer)||!this.grossgeraetLeistungsindex.equals(t.grossgeraetLeistungsindex)||!Lt(this.ambulanteFrequenzen,t.ambulanteFrequenzen)||!Lt(this.stationaereFrequenzen,t.stationaereFrequenzen)||!Lt(this.averageLengthPerFrequencyInMins,t.averageLengthPerFrequencyInMins))}static z1b(e,t,i,r,o,s,c,h,g){(127&e)!==127&&On(e,127,rve().fy_1);var x=tn(this);return x.year=t,x.krankenanstaltennummer=i,x.grossgeraetPositionsnummer=r,x.grossgeraetLeistungsindex=o,x.ambulanteFrequenzen=s,x.stationaereFrequenzen=c,x.averageLengthPerFrequencyInMins=h,x}},uU=class n{constructor(e,t,i,r,o){this.year=e,this.krankenanstaltennummer=t,this.berichtstyp=i,this.berechnungstyp=r,this.zuordnungsart=o}ti(){return this.year}at(){return this.krankenanstaltennummer}a1c(){return this.berichtstyp}b1c(){return this.berechnungstyp}c1c(){return this.zuordnungsart}ke(){return this.year}le(){return this.krankenanstaltennummer}et(){return this.berichtstyp}ft(){return this.berechnungstyp}vz(){return this.zuordnungsart}d1c(e,t,i,r,o){return new n(e,t,i,r,o)}copy(e,t,i,r,o,s){return e=e===T?this.year:e,t=t===T?this.krankenanstaltennummer:t,i=i===T?this.berichtstyp:i,r=r===T?this.berechnungstyp:r,o=o===T?this.zuordnungsart:o,this.d1c(e,t,i,r,o)}toString(){return"B01Basisinformation(year="+this.year+", krankenanstaltennummer="+this.krankenanstaltennummer.toString()+", berichtstyp="+this.berichtstyp.toString()+", berechnungstyp="+Lo(this.berechnungstyp)+", zuordnungsart="+Lo(this.zuordnungsart)+")"}hashCode(){var e=this.year;return e=Le(e,31)+this.krankenanstaltennummer.hashCode()|0,e=Le(e,31)+this.berichtstyp.hashCode()|0,e=Le(e,31)+(this.berechnungstyp==null?0:this.berechnungstyp.hashCode())|0,e=Le(e,31)+(this.zuordnungsart==null?0:this.zuordnungsart.hashCode())|0,e}equals(e){if(this===e)return!0;if(!(e instanceof n))return!1;var t=e instanceof n?e:xi();return!(this.year!==t.year||!this.krankenanstaltennummer.equals(t.krankenanstaltennummer)||!this.berichtstyp.equals(t.berichtstyp)||!Lt(this.berechnungstyp,t.berechnungstyp)||!Lt(this.zuordnungsart,t.zuordnungsart))}static e1c(e,t,i,r,o,s,c){(31&e)!==31&&On(e,31,ave().my_1);var h=tn(this);return h.year=t,h.krankenanstaltennummer=i,h.berichtstyp=r,h.berechnungstyp=o,h.zuordnungsart=s,h}},dU=class n{constructor(e,t,i,r,o,s){this.year=e,this.krankenanstaltennummer=t,this.berichtstyp=i,this.vksIndex=r,this.wertBerichtsjahr=o,this.wertVorjahr=s}ti(){return this.year}at(){return this.krankenanstaltennummer}a1c(){return this.berichtstyp}f1c(){return this.vksIndex}g1c(){return this.wertBerichtsjahr}h1c(){return this.wertVorjahr}ke(){return this.year}le(){return this.krankenanstaltennummer}et(){return this.berichtstyp}ft(){return this.vksIndex}vz(){return this.wertBerichtsjahr}wz(){return this.wertVorjahr}i1c(e,t,i,r,o,s){return new n(e,t,i,r,o,s)}copy(e,t,i,r,o,s,c){return e=e===T?this.year:e,t=t===T?this.krankenanstaltennummer:t,i=i===T?this.berichtstyp:i,r=r===T?this.vksIndex:r,o=o===T?this.wertBerichtsjahr:o,s=s===T?this.wertVorjahr:s,this.i1c(e,t,i,r,o,s)}toString(){return"B02VKS(year="+this.year+", krankenanstaltennummer="+this.krankenanstaltennummer.toString()+", berichtstyp="+this.berichtstyp.toString()+", vksIndex="+this.vksIndex.toString()+", wertBerichtsjahr="+this.wertBerichtsjahr+", wertVorjahr="+this.wertVorjahr+")"}hashCode(){var e=this.year;return e=Le(e,31)+this.krankenanstaltennummer.hashCode()|0,e=Le(e,31)+this.berichtstyp.hashCode()|0,e=Le(e,31)+this.vksIndex.hashCode()|0,e=Le(e,31)+(this.wertBerichtsjahr==null?0:Bi(this.wertBerichtsjahr))|0,e=Le(e,31)+(this.wertVorjahr==null?0:Bi(this.wertVorjahr))|0,e}equals(e){if(this===e)return!0;if(!(e instanceof n))return!1;var t=e instanceof n?e:xi();return!(this.year!==t.year||!this.krankenanstaltennummer.equals(t.krankenanstaltennummer)||!this.berichtstyp.equals(t.berichtstyp)||!this.vksIndex.equals(t.vksIndex)||!Lt(this.wertBerichtsjahr,t.wertBerichtsjahr)||!Lt(this.wertVorjahr,t.wertVorjahr))}static j1c(e,t,i,r,o,s,c,h){(63&e)!==63&&On(e,63,cve().py_1);var g=tn(this);return g.year=t,g.krankenanstaltennummer=i,g.berichtstyp=r,g.vksIndex=o,g.wertBerichtsjahr=s,g.wertVorjahr=c,g}},hU=class n{constructor(e,t,i,r,o,s){this.year=e,this.krankenanstaltennummer=t,this.berichtstyp=i,this.evrIndex=r,this.wertBerichtsjahr=o,this.wertVorjahr=s}ti(){return this.year}at(){return this.krankenanstaltennummer}a1c(){return this.berichtstyp}k1c(){return this.evrIndex}g1c(){return this.wertBerichtsjahr}h1c(){return this.wertVorjahr}ke(){return this.year}le(){return this.krankenanstaltennummer}et(){return this.berichtstyp}ft(){return this.evrIndex}vz(){return this.wertBerichtsjahr}wz(){return this.wertVorjahr}l1c(e,t,i,r,o,s){return new n(e,t,i,r,o,s)}copy(e,t,i,r,o,s,c){return e=e===T?this.year:e,t=t===T?this.krankenanstaltennummer:t,i=i===T?this.berichtstyp:i,r=r===T?this.evrIndex:r,o=o===T?this.wertBerichtsjahr:o,s=s===T?this.wertVorjahr:s,this.l1c(e,t,i,r,o,s)}toString(){return"B03EVR(year="+this.year+", krankenanstaltennummer="+this.krankenanstaltennummer.toString()+", berichtstyp="+this.berichtstyp.toString()+", evrIndex="+this.evrIndex.toString()+", wertBerichtsjahr="+this.wertBerichtsjahr+", wertVorjahr="+this.wertVorjahr+")"}hashCode(){var e=this.year;return e=Le(e,31)+this.krankenanstaltennummer.hashCode()|0,e=Le(e,31)+this.berichtstyp.hashCode()|0,e=Le(e,31)+this.evrIndex.hashCode()|0,e=Le(e,31)+(this.wertBerichtsjahr==null?0:Bi(this.wertBerichtsjahr))|0,e=Le(e,31)+(this.wertVorjahr==null?0:Bi(this.wertVorjahr))|0,e}equals(e){if(this===e)return!0;if(!(e instanceof n))return!1;var t=e instanceof n?e:xi();return!(this.year!==t.year||!this.krankenanstaltennummer.equals(t.krankenanstaltennummer)||!this.berichtstyp.equals(t.berichtstyp)||!this.evrIndex.equals(t.evrIndex)||!Lt(this.wertBerichtsjahr,t.wertBerichtsjahr)||!Lt(this.wertVorjahr,t.wertVorjahr))}static m1c(e,t,i,r,o,s,c,h){(63&e)!==63&&On(e,63,dve().sy_1);var g=tn(this);return g.year=t,g.krankenanstaltennummer=i,g.berichtstyp=r,g.evrIndex=o,g.wertBerichtsjahr=s,g.wertVorjahr=c,g}},pU=class n{constructor(e,t,i,r,o,s){this.year=e,this.krankenanstaltennummer=t,this.berichtstyp=i,this.qvaIndex=r,this.wertBerichtsjahr=o,this.wertVorjahr=s}ti(){return this.year}at(){return this.krankenanstaltennummer}a1c(){return this.berichtstyp}n1c(){return this.qvaIndex}g1c(){return this.wertBerichtsjahr}h1c(){return this.wertVorjahr}ke(){return this.year}le(){return this.krankenanstaltennummer}et(){return this.berichtstyp}ft(){return this.qvaIndex}vz(){return this.wertBerichtsjahr}wz(){return this.wertVorjahr}o1c(e,t,i,r,o,s){return new n(e,t,i,r,o,s)}copy(e,t,i,r,o,s,c){return e=e===T?this.year:e,t=t===T?this.krankenanstaltennummer:t,i=i===T?this.berichtstyp:i,r=r===T?this.qvaIndex:r,o=o===T?this.wertBerichtsjahr:o,s=s===T?this.wertVorjahr:s,this.o1c(e,t,i,r,o,s)}toString(){return"B04QVA(year="+this.year+", krankenanstaltennummer="+this.krankenanstaltennummer.toString()+", berichtstyp="+this.berichtstyp.toString()+", qvaIndex="+this.qvaIndex.toString()+", wertBerichtsjahr="+this.wertBerichtsjahr+", wertVorjahr="+this.wertVorjahr+")"}hashCode(){var e=this.year;return e=Le(e,31)+this.krankenanstaltennummer.hashCode()|0,e=Le(e,31)+this.berichtstyp.hashCode()|0,e=Le(e,31)+this.qvaIndex.hashCode()|0,e=Le(e,31)+(this.wertBerichtsjahr==null?0:Bi(this.wertBerichtsjahr))|0,e=Le(e,31)+(this.wertVorjahr==null?0:Bi(this.wertVorjahr))|0,e}equals(e){if(this===e)return!0;if(!(e instanceof n))return!1;var t=e instanceof n?e:xi();return!(this.year!==t.year||!this.krankenanstaltennummer.equals(t.krankenanstaltennummer)||!this.berichtstyp.equals(t.berichtstyp)||!this.qvaIndex.equals(t.qvaIndex)||!Lt(this.wertBerichtsjahr,t.wertBerichtsjahr)||!Lt(this.wertVorjahr,t.wertVorjahr))}static p1c(e,t,i,r,o,s,c,h){(63&e)!==63&&On(e,63,pve().vy_1);var g=tn(this);return g.year=t,g.krankenanstaltennummer=i,g.berichtstyp=r,g.qvaIndex=o,g.wertBerichtsjahr=s,g.wertVorjahr=c,g}},fU=class n{constructor(e,t,i,r,o,s){this.year=e,this.krankenanstaltennummer=t,this.berichtstyp=i,this.erloesIndex=r,this.wertGesamt=o,this.wertLGF=s}ti(){return this.year}at(){return this.krankenanstaltennummer}a1c(){return this.berichtstyp}q1c(){return this.erloesIndex}r1c(){return this.wertGesamt}s1c(){return this.wertLGF}ke(){return this.year}le(){return this.krankenanstaltennummer}et(){return this.berichtstyp}ft(){return this.erloesIndex}vz(){return this.wertGesamt}wz(){return this.wertLGF}t1c(e,t,i,r,o,s){return new n(e,t,i,r,o,s)}copy(e,t,i,r,o,s,c){return e=e===T?this.year:e,t=t===T?this.krankenanstaltennummer:t,i=i===T?this.berichtstyp:i,r=r===T?this.erloesIndex:r,o=o===T?this.wertGesamt:o,s=s===T?this.wertLGF:s,this.t1c(e,t,i,r,o,s)}toString(){return"B05Erloesstruktur(year="+this.year+", krankenanstaltennummer="+this.krankenanstaltennummer.toString()+", berichtstyp="+this.berichtstyp.toString()+", erloesIndex="+this.erloesIndex.toString()+", wertGesamt="+this.wertGesamt+", wertLGF="+this.wertLGF+")"}hashCode(){var e=this.year;return e=Le(e,31)+this.krankenanstaltennummer.hashCode()|0,e=Le(e,31)+this.berichtstyp.hashCode()|0,e=Le(e,31)+this.erloesIndex.hashCode()|0,e=Le(e,31)+(this.wertGesamt==null?0:Bi(this.wertGesamt))|0,e=Le(e,31)+(this.wertLGF==null?0:Bi(this.wertLGF))|0,e}equals(e){if(this===e)return!0;if(!(e instanceof n))return!1;var t=e instanceof n?e:xi();return!(this.year!==t.year||!this.krankenanstaltennummer.equals(t.krankenanstaltennummer)||!this.berichtstyp.equals(t.berichtstyp)||!this.erloesIndex.equals(t.erloesIndex)||!Lt(this.wertGesamt,t.wertGesamt)||!Lt(this.wertLGF,t.wertLGF))}static u1c(e,t,i,r,o,s,c,h){(63&e)!==63&&On(e,63,mve().yy_1);var g=tn(this);return g.year=t,g.krankenanstaltennummer=i,g.berichtstyp=r,g.erloesIndex=o,g.wertGesamt=s,g.wertLGF=c,g}},mU=class n{constructor(e,t,i,r,o,s){this.year=e,this.krankenanstaltennummer=t,this.berichtstyp=i,this.finanzierungstraegerIndex=r,this.zuschussartIndex=o,this.zuschuss=s}ti(){return this.year}at(){return this.krankenanstaltennummer}a1c(){return this.berichtstyp}v1c(){return this.finanzierungstraegerIndex}w1c(){return this.zuschussartIndex}x1c(){return this.zuschuss}ke(){return this.year}le(){return this.krankenanstaltennummer}et(){return this.berichtstyp}ft(){return this.finanzierungstraegerIndex}vz(){return this.zuschussartIndex}wz(){return this.zuschuss}y1c(e,t,i,r,o,s){return new n(e,t,i,r,o,s)}copy(e,t,i,r,o,s,c){return e=e===T?this.year:e,t=t===T?this.krankenanstaltennummer:t,i=i===T?this.berichtstyp:i,r=r===T?this.finanzierungstraegerIndex:r,o=o===T?this.zuschussartIndex:o,s=s===T?this.zuschuss:s,this.y1c(e,t,i,r,o,s)}toString(){return"B06Zuschusstruktur(year="+this.year+", krankenanstaltennummer="+this.krankenanstaltennummer.toString()+", berichtstyp="+this.berichtstyp.toString()+", finanzierungstraegerIndex="+this.finanzierungstraegerIndex.toString()+", zuschussartIndex="+this.zuschussartIndex.toString()+", zuschuss="+this.zuschuss+")"}hashCode(){var e=this.year;return e=Le(e,31)+this.krankenanstaltennummer.hashCode()|0,e=Le(e,31)+this.berichtstyp.hashCode()|0,e=Le(e,31)+this.finanzierungstraegerIndex.hashCode()|0,e=Le(e,31)+this.zuschussartIndex.hashCode()|0,e=Le(e,31)+(this.zuschuss==null?0:Bi(this.zuschuss))|0,e}equals(e){if(this===e)return!0;if(!(e instanceof n))return!1;var t=e instanceof n?e:xi();return!(this.year!==t.year||!this.krankenanstaltennummer.equals(t.krankenanstaltennummer)||!this.berichtstyp.equals(t.berichtstyp)||!this.finanzierungstraegerIndex.equals(t.finanzierungstraegerIndex)||!this.zuschussartIndex.equals(t.zuschussartIndex)||!Lt(this.zuschuss,t.zuschuss))}static z1c(e,t,i,r,o,s,c,h){(63&e)!==63&&On(e,63,vve().dz_1);var g=tn(this);return g.year=t,g.krankenanstaltennummer=i,g.berichtstyp=r,g.finanzierungstraegerIndex=o,g.zuschussartIndex=s,g.zuschuss=c,g}},Ege=class{constructor(){rFe=this;var e=this;e.a1d_1=[null,null,null,new ks(Vs(N5),a_e()),new ks(Vs(P5),d_e()),new ks(Vs(F5),p_e()),null,new ks(Vs(L5),m_e()),new ks(Vs(B5),g_e()),new ks(Vs(z5),__e()),new ks(Vs(V5),v_e()),new ks(Vs(U5),x_e()),new ks(Vs(j5),w_e()),new ks(Vs(H5),C_e()),new ks(Vs(G5),S_e()),new ks(Vs(Y5),T_e()),new ks(Vs(q5),D_e()),new ks(Vs($5),k_e()),new ks(Vs(K5),M_e()),new ks(Vs(W5),R_e()),new ks(Vs(Z5),P_e()),new ks(Vs(Q5),L_e()),new ks(Vs(X5),z_e()),new ks(Vs(J5),V_e()),new ks(Vs(eU),U_e()),new ks(Vs(tU),j_e()),new ks(Vs(iU),H_e()),new ks(Vs(nU),q_e()),new ks(Vs(rU),K_e()),new ks(Vs(oU),Z_e()),new ks(Vs(sU),X_e()),new ks(Vs(aU),eve()),new ks(Vs(lU),ive()),new ks(Vs(cU),rve()),new ks(Vs(uU),ave()),new ks(Vs(dU),cve()),new ks(Vs(hU),dve()),new ks(Vs(pU),pve()),new ks(Vs(fU),mve()),new ks(Vs(mU),vve())]}vr(){return yve()}},ZW=class{constructor(){oFe=this;var e=new _n("at.bindoc.virtualclinic.case.VirtualClinicCase",this,40);e.qg("caseId",!0),e.qg("caseIdentifier",!1),e.qg("x01Basisdaten",!1),e.qg("x02Hauptkostenstellen",!1),e.qg("x03Diagnosen",!1),e.qg("x04MedizinischeLeistungen",!1),e.qg("x05Scoringdaten",!1),e.qg("x06ErrorsWarnings",!1),e.qg("x07Kommentare",!1),e.qg("i11Saps3Daten",!1),e.qg("i12TissADaten",!1),e.qg("l01SpezielleLeistungsbereiche",!1),e.qg("l02AbrechnungsrelevanteKostentraeger",!1),e.qg("l03MedLeistungExklusionen",!1),e.qg("l04TagesklinischerMedLeistungExklusionen",!1),e.qg("e01ExtramuralerLeistungserbringer",!1),e.qg("k01Kostenstellenplan",!1),e.qg("k02Stammdaten",!1),e.qg("k03Resourcen",!1),e.qg("k04PersonalVollzeitAequivalent",!1),e.qg("k05PersonalAerztlicherDienst",!1),e.qg("k06KonsiliaraeztlicherDienst",!1),e.qg("k07PersonalNichtAerztlicherBeruf",!1),e.qg("k08BettenfuehrendeHauptkostenstelle",!1),e.qg("k09NichtBettenfuehrendeHauptkostenstelle",!1),e.qg("k10NebenUndHilfskostenstelle",!1),e.qg("k11KostennachweisSummenblatt",!1),e.qg("k12KostennachweisDetailblatt",!1),e.qg("k13Kostenminderungen",!1),e.qg("k14KalkulatorischerAnlagenspiegel",!1),e.qg("k15AllgemeineKostenbereiche",!1),e.qg("k16AusgewaehlteKosten",!1),e.qg("g01Grossgeraetbasisdaten",!1),e.qg("g02GrossgeraetLeistungsdaten",!1),e.qg("b01Basisinformation",!1),e.qg("b02VKS",!1),e.qg("b03EVR",!1),e.qg("b04QVA",!1),e.qg("b05Erloesstruktur",!1),e.qg("b06Zuschusstruktur",!1),this.b1d_1=e}pe(){return this.b1d_1}ng(){var e=Yge().a1d_1;return[Zge(),Wge(),r_e(),e[3],e[4],e[5],f_e(),e[7],e[8],e[9],e[10],it(e[11]),it(e[12]),it(e[13]),it(e[14]),it(e[15]),it(e[16]),it(e[17]),it(e[18]),it(e[19]),it(e[20]),it(e[21]),it(e[22]),it(e[23]),it(e[24]),it(e[25]),it(e[26]),it(e[27]),it(e[28]),it(e[29]),it(e[30]),it(e[31]),it(e[32]),it(e[33]),it(e[34]),it(e[35]),it(e[36]),it(e[37]),it(e[38]),it(e[39])]}},ni=class n{constructor(e,t,i,r,o,s,c,h,g,x,C,A,k,O,F,L,z,j,K,ee,ne,X,q,fe,Se,pe,Me,ie,Re,Ue,Ee,We,Ie,Be,Ve,$e,Fe,Xe,ze,et){Yge(),e=e===T?new R5(bFe.c1d()):e,this.caseId=e,this.caseIdentifier=t,this.x01Basisdaten=i,this.x02Hauptkostenstellen=r,this.x03Diagnosen=o,this.x04MedizinischeLeistungen=s,this.x05Scoringdaten=c,this.x06ErrorsWarnings=h,this.x07Kommentare=g,this.i11Saps3Daten=x,this.i12TissADaten=C,this.l01SpezielleLeistungsbereiche=A,this.l02AbrechnungsrelevanteKostentraeger=k,this.l03MedLeistungExklusionen=O,this.l04TagesklinischerMedLeistungExklusionen=F,this.e01ExtramuralerLeistungserbringer=L,this.k01Kostenstellenplan=z,this.k02Stammdaten=j,this.k03Resourcen=K,this.k04PersonalVollzeitAequivalent=ee,this.k05PersonalAerztlicherDienst=ne,this.k06KonsiliaraeztlicherDienst=X,this.k07PersonalNichtAerztlicherBeruf=q,this.k08BettenfuehrendeHauptkostenstelle=fe,this.k09NichtBettenfuehrendeHauptkostenstelle=Se,this.k10NebenUndHilfskostenstelle=pe,this.k11KostennachweisSummenblatt=Me,this.k12KostennachweisDetailblatt=ie,this.k13Kostenminderungen=Re,this.k14KalkulatorischerAnlagenspiegel=Ue,this.k15AllgemeineKostenbereiche=Ee,this.k16AusgewaehlteKosten=We,this.g01Grossgeraetbasisdaten=Ie,this.g02GrossgeraetLeistungsdaten=Be,this.b01Basisinformation=Ve,this.b02VKS=$e,this.b03EVR=Fe,this.b04QVA=Xe,this.b05Erloesstruktur=ze,this.b06Zuschusstruktur=et}d1d(){return this.caseId}e1d(){return this.caseIdentifier}f1d(){return this.x01Basisdaten}g1d(){return this.x02Hauptkostenstellen}h1d(){return this.x03Diagnosen}i1d(){return this.x04MedizinischeLeistungen}j1d(){return this.x05Scoringdaten}k1d(){return this.x06ErrorsWarnings}l1d(){return this.x07Kommentare}m1d(){return this.i11Saps3Daten}n1d(){return this.i12TissADaten}o1d(){return this.l01SpezielleLeistungsbereiche}p1d(){return this.l02AbrechnungsrelevanteKostentraeger}q1d(){return this.l03MedLeistungExklusionen}r1d(){return this.l04TagesklinischerMedLeistungExklusionen}s1d(){return this.e01ExtramuralerLeistungserbringer}t1d(){return this.k01Kostenstellenplan}u1d(){return this.k02Stammdaten}v1d(){return this.k03Resourcen}w1d(){return this.k04PersonalVollzeitAequivalent}x1d(){return this.k05PersonalAerztlicherDienst}y1d(){return this.k06KonsiliaraeztlicherDienst}z1d(){return this.k07PersonalNichtAerztlicherBeruf}a1e(){return this.k08BettenfuehrendeHauptkostenstelle}b1e(){return this.k09NichtBettenfuehrendeHauptkostenstelle}c1e(){return this.k10NebenUndHilfskostenstelle}d1e(){return this.k11KostennachweisSummenblatt}e1e(){return this.k12KostennachweisDetailblatt}f1e(){return this.k13Kostenminderungen}g1e(){return this.k14KalkulatorischerAnlagenspiegel}h1e(){return this.k15AllgemeineKostenbereiche}i1e(){return this.k16AusgewaehlteKosten}j1e(){return this.g01Grossgeraetbasisdaten}k1e(){return this.g02GrossgeraetLeistungsdaten}l1e(){return this.b01Basisinformation}m1e(){return this.b02VKS}n1e(){return this.b03EVR}o1e(){return this.b04QVA}p1e(){return this.b05Erloesstruktur}q1e(){return this.b06Zuschusstruktur}equals(e){return this===e?!0:!(e==null||!SS(this).equals(SS(e))||(e instanceof n||xi(),!this.caseIdentifier.equals(e.caseIdentifier))||!this.x01Basisdaten.equals(e.x01Basisdaten)||!ey(this.x02Hauptkostenstellen,e.x02Hauptkostenstellen)||!ey(this.x03Diagnosen,e.x03Diagnosen)||!ey(this.x04MedizinischeLeistungen,e.x04MedizinischeLeistungen)||!this.x05Scoringdaten.equals(e.x05Scoringdaten)||!ey(this.x06ErrorsWarnings,e.x06ErrorsWarnings)||!ey(this.x07Kommentare,e.x07Kommentare)||!ey(this.i11Saps3Daten,e.i11Saps3Daten)||!ey(this.i12TissADaten,e.i12TissADaten))}hashCode(){var e=this.caseIdentifier.hashCode();return e=Le(31,e)+this.x01Basisdaten.hashCode()|0,e=Le(31,e)+ty(this.x02Hauptkostenstellen)|0,e=Le(31,e)+ty(this.x03Diagnosen)|0,e=Le(31,e)+ty(this.x04MedizinischeLeistungen)|0,e=Le(31,e)+this.x05Scoringdaten.hashCode()|0,e=Le(31,e)+ty(this.x06ErrorsWarnings)|0,e=Le(31,e)+ty(this.x07Kommentare)|0,e=Le(31,e)+ty(this.i11Saps3Daten)|0,e=Le(31,e)+ty(this.i12TissADaten)|0,e}ke(){return this.caseId}le(){return this.caseIdentifier}et(){return this.x01Basisdaten}ft(){return this.x02Hauptkostenstellen}vz(){return this.x03Diagnosen}wz(){return this.x04MedizinischeLeistungen}xz(){return this.x05Scoringdaten}yz(){return this.x06ErrorsWarnings}zz(){return this.x07Kommentare}a10(){return this.i11Saps3Daten}b10(){return this.i12TissADaten}c10(){return this.l01SpezielleLeistungsbereiche}d10(){return this.l02AbrechnungsrelevanteKostentraeger}e10(){return this.l03MedLeistungExklusionen}f10(){return this.l04TagesklinischerMedLeistungExklusionen}g10(){return this.e01ExtramuralerLeistungserbringer}j13(){return this.k01Kostenstellenplan}k13(){return this.k02Stammdaten}l13(){return this.k03Resourcen}m13(){return this.k04PersonalVollzeitAequivalent}n13(){return this.k05PersonalAerztlicherDienst}o13(){return this.k06KonsiliaraeztlicherDienst}p13(){return this.k07PersonalNichtAerztlicherBeruf}q13(){return this.k08BettenfuehrendeHauptkostenstelle}r13(){return this.k09NichtBettenfuehrendeHauptkostenstelle}s13(){return this.k10NebenUndHilfskostenstelle}t13(){return this.k11KostennachweisSummenblatt}u13(){return this.k12KostennachweisDetailblatt}v13(){return this.k13Kostenminderungen}w13(){return this.k14KalkulatorischerAnlagenspiegel}x13(){return this.k15AllgemeineKostenbereiche}y13(){return this.k16AusgewaehlteKosten}z13(){return this.g01Grossgeraetbasisdaten}a14(){return this.g02GrossgeraetLeistungsdaten}r1e(){return this.b01Basisinformation}s1e(){return this.b02VKS}t1e(){return this.b03EVR}u1e(){return this.b04QVA}v1e(){return this.b05Erloesstruktur}w1e(){return this.b06Zuschusstruktur}x1e(e,t,i,r,o,s,c,h,g,x,C,A,k,O,F,L,z,j,K,ee,ne,X,q,fe,Se,pe,Me,ie,Re,Ue,Ee,We,Ie,Be,Ve,$e,Fe,Xe,ze,et){return new n(e,t,i,r,o,s,c,h,g,x,C,A,k,O,F,L,z,j,K,ee,ne,X,q,fe,Se,pe,Me,ie,Re,Ue,Ee,We,Ie,Be,Ve,$e,Fe,Xe,ze,et)}copy(e,t,i,r,o,s,c,h,g,x,C,A,k,O,F,L,z,j,K,ee,ne,X,q,fe,Se,pe,Me,ie,Re,Ue,Ee,We,Ie,Be,Ve,$e,Fe,Xe,ze,et,Pt){return e=e===T?this.caseId:e,t=t===T?this.caseIdentifier:t,i=i===T?this.x01Basisdaten:i,r=r===T?this.x02Hauptkostenstellen:r,o=o===T?this.x03Diagnosen:o,s=s===T?this.x04MedizinischeLeistungen:s,c=c===T?this.x05Scoringdaten:c,h=h===T?this.x06ErrorsWarnings:h,g=g===T?this.x07Kommentare:g,x=x===T?this.i11Saps3Daten:x,C=C===T?this.i12TissADaten:C,A=A===T?this.l01SpezielleLeistungsbereiche:A,k=k===T?this.l02AbrechnungsrelevanteKostentraeger:k,O=O===T?this.l03MedLeistungExklusionen:O,F=F===T?this.l04TagesklinischerMedLeistungExklusionen:F,L=L===T?this.e01ExtramuralerLeistungserbringer:L,z=z===T?this.k01Kostenstellenplan:z,j=j===T?this.k02Stammdaten:j,K=K===T?this.k03Resourcen:K,ee=ee===T?this.k04PersonalVollzeitAequivalent:ee,ne=ne===T?this.k05PersonalAerztlicherDienst:ne,X=X===T?this.k06KonsiliaraeztlicherDienst:X,q=q===T?this.k07PersonalNichtAerztlicherBeruf:q,fe=fe===T?this.k08BettenfuehrendeHauptkostenstelle:fe,Se=Se===T?this.k09NichtBettenfuehrendeHauptkostenstelle:Se,pe=pe===T?this.k10NebenUndHilfskostenstelle:pe,Me=Me===T?this.k11KostennachweisSummenblatt:Me,ie=ie===T?this.k12KostennachweisDetailblatt:ie,Re=Re===T?this.k13Kostenminderungen:Re,Ue=Ue===T?this.k14KalkulatorischerAnlagenspiegel:Ue,Ee=Ee===T?this.k15AllgemeineKostenbereiche:Ee,We=We===T?this.k16AusgewaehlteKosten:We,Ie=Ie===T?this.g01Grossgeraetbasisdaten:Ie,Be=Be===T?this.g02GrossgeraetLeistungsdaten:Be,Ve=Ve===T?this.b01Basisinformation:Ve,$e=$e===T?this.b02VKS:$e,Fe=Fe===T?this.b03EVR:Fe,Xe=Xe===T?this.b04QVA:Xe,ze=ze===T?this.b05Erloesstruktur:ze,et=et===T?this.b06Zuschusstruktur:et,this.x1e(e,t,i,r,o,s,c,h,g,x,C,A,k,O,F,L,z,j,K,ee,ne,X,q,fe,Se,pe,Me,ie,Re,Ue,Ee,We,Ie,Be,Ve,$e,Fe,Xe,ze,et)}toString(){return"VirtualClinicCase(caseId="+this.caseId.toString()+", caseIdentifier="+this.caseIdentifier.toString()+", x01Basisdaten="+this.x01Basisdaten.toString()+", x02Hauptkostenstellen="+Wi(this.x02Hauptkostenstellen)+", x03Diagnosen="+Wi(this.x03Diagnosen)+", x04MedizinischeLeistungen="+Wi(this.x04MedizinischeLeistungen)+", x05Scoringdaten="+this.x05Scoringdaten.toString()+", x06ErrorsWarnings="+Wi(this.x06ErrorsWarnings)+", x07Kommentare="+Wi(this.x07Kommentare)+", i11Saps3Daten="+Wi(this.i11Saps3Daten)+", i12TissADaten="+Wi(this.i12TissADaten)+", l01SpezielleLeistungsbereiche="+Wi(this.l01SpezielleLeistungsbereiche)+", l02AbrechnungsrelevanteKostentraeger="+Wi(this.l02AbrechnungsrelevanteKostentraeger)+", l03MedLeistungExklusionen="+Wi(this.l03MedLeistungExklusionen)+", l04TagesklinischerMedLeistungExklusionen="+Wi(this.l04TagesklinischerMedLeistungExklusionen)+", e01ExtramuralerLeistungserbringer="+Wi(this.e01ExtramuralerLeistungserbringer)+", k01Kostenstellenplan="+Wi(this.k01Kostenstellenplan)+", k02Stammdaten="+Wi(this.k02Stammdaten)+", k03Resourcen="+Wi(this.k03Resourcen)+", k04PersonalVollzeitAequivalent="+Wi(this.k04PersonalVollzeitAequivalent)+", k05PersonalAerztlicherDienst="+Wi(this.k05PersonalAerztlicherDienst)+", k06KonsiliaraeztlicherDienst="+Wi(this.k06KonsiliaraeztlicherDienst)+", k07PersonalNichtAerztlicherBeruf="+Wi(this.k07PersonalNichtAerztlicherBeruf)+", k08BettenfuehrendeHauptkostenstelle="+Wi(this.k08BettenfuehrendeHauptkostenstelle)+", k09NichtBettenfuehrendeHauptkostenstelle="+Wi(this.k09NichtBettenfuehrendeHauptkostenstelle)+", k10NebenUndHilfskostenstelle="+Wi(this.k10NebenUndHilfskostenstelle)+", k11KostennachweisSummenblatt="+Wi(this.k11KostennachweisSummenblatt)+", k12KostennachweisDetailblatt="+Wi(this.k12KostennachweisDetailblatt)+", k13Kostenminderungen="+Wi(this.k13Kostenminderungen)+", k14KalkulatorischerAnlagenspiegel="+Wi(this.k14KalkulatorischerAnlagenspiegel)+", k15AllgemeineKostenbereiche="+Wi(this.k15AllgemeineKostenbereiche)+", k16AusgewaehlteKosten="+Wi(this.k16AusgewaehlteKosten)+", g01Grossgeraetbasisdaten="+Wi(this.g01Grossgeraetbasisdaten)+", g02GrossgeraetLeistungsdaten="+Wi(this.g02GrossgeraetLeistungsdaten)+", b01Basisinformation="+Wi(this.b01Basisinformation)+", b02VKS="+Wi(this.b02VKS)+", b03EVR="+Wi(this.b03EVR)+", b04QVA="+Wi(this.b04QVA)+", b05Erloesstruktur="+Wi(this.b05Erloesstruktur)+", b06Zuschusstruktur="+Wi(this.b06Zuschusstruktur)+")"}static y1e(e,t,i,r,o,s,c,h,g,x,C,A,k,O,F,L,z,j,K,ee,ne,X,q,fe,Se,pe,Me,ie,Re,Ue,Ee,We,Ie,Be,Ve,$e,Fe,Xe,ze,et,Pt,Ii,Gt){if(Yge(),(-2&e)!==-2|(255&t)!==255){var ji=new Int32Array([e,t]),an=new Int32Array([-2,255]);Wq(ji,an,yve().b1d_1)}var en=tn(this);return e&1?en.caseId=i:en.caseId=new R5(bFe.c1d()),en.caseIdentifier=r,en.x01Basisdaten=o,en.x02Hauptkostenstellen=s,en.x03Diagnosen=c,en.x04MedizinischeLeistungen=h,en.x05Scoringdaten=g,en.x06ErrorsWarnings=x,en.x07Kommentare=C,en.i11Saps3Daten=A,en.i12TissADaten=k,en.l01SpezielleLeistungsbereiche=O,en.l02AbrechnungsrelevanteKostentraeger=F,en.l03MedLeistungExklusionen=L,en.l04TagesklinischerMedLeistungExklusionen=z,en.e01ExtramuralerLeistungserbringer=j,en.k01Kostenstellenplan=K,en.k02Stammdaten=ee,en.k03Resourcen=ne,en.k04PersonalVollzeitAequivalent=X,en.k05PersonalAerztlicherDienst=q,en.k06KonsiliaraeztlicherDienst=fe,en.k07PersonalNichtAerztlicherBeruf=Se,en.k08BettenfuehrendeHauptkostenstelle=pe,en.k09NichtBettenfuehrendeHauptkostenstelle=Me,en.k10NebenUndHilfskostenstelle=ie,en.k11KostennachweisSummenblatt=Re,en.k12KostennachweisDetailblatt=Ue,en.k13Kostenminderungen=Ee,en.k14KalkulatorischerAnlagenspiegel=We,en.k15AllgemeineKostenbereiche=Ie,en.k16AusgewaehlteKosten=Be,en.g01Grossgeraetbasisdaten=Ve,en.g02GrossgeraetLeistungsdaten=$e,en.b01Basisinformation=Fe,en.b02VKS=Xe,en.b03EVR=ze,en.b04QVA=et,en.b05Erloesstruktur=Pt,en.b06Zuschusstruktur=Ii,en}},Ige=class{vr(){return xU()}},QW=class{constructor(){sFe=this;var e=new _n("at.bindoc.virtualclinic.case.FachgebietPositionsnummer",this,1);e.qg("value",!1),this.z1e_1=e}pe(){return this.z1e_1}ng(){return[xn()]}},KN=class n{constructor(e){this.value=e}u1(){return this.value}ke(){return this.value}os(e){return new n(e)}copy(e,t){return e=e===T?this.value:e,this.os(e)}toString(){return"FachgebietPositionsnummer(value="+this.value+")"}hashCode(){return on(this.value)}equals(e){if(this===e)return!0;if(!(e instanceof n))return!1;var t=e instanceof n?e:xi();return this.value===t.value}static a1f(e,t,i){(1&e)!==1&&On(e,1,xU().z1e_1);var r=tn(this);return r.value=t,r}},Tge=class{vr(){return uy()}},XW=class{constructor(){aFe=this;var e=new _n("at.bindoc.virtualclinic.case.Funktionscode",this,1);e.qg("value",!1),this.b1f_1=e}pe(){return this.b1f_1}ng(){return[xn()]}},hv=class n{constructor(e){this.value=e}u1(){return this.value}ke(){return this.value}os(e){return new n(e)}copy(e,t){return e=e===T?this.value:e,this.os(e)}toString(){return"Funktionscode(value="+this.value+")"}hashCode(){return on(this.value)}equals(e){if(this===e)return!0;if(!(e instanceof n))return!1;var t=e instanceof n?e:xi();return this.value===t.value}static c1f(e,t,i){(1&e)!==1&&On(e,1,uy().b1f_1);var r=tn(this);return r.value=t,r}},Age=class{vr(){return wU()}},JW=class{constructor(){lFe=this;var e=new _n("at.bindoc.virtualclinic.case.AtPostalCode",this,1);e.qg("value",!1),this.d1f_1=e}pe(){return this.d1f_1}ng(){return[xn()]}},LS=class n{constructor(e){this.value=e}u1(){return this.value}ke(){return this.value}os(e){return new n(e)}copy(e,t){return e=e===T?this.value:e,this.os(e)}toString(){return"AtPostalCode(value="+this.value+")"}hashCode(){return on(this.value)}equals(e){if(this===e)return!0;if(!(e instanceof n))return!1;var t=e instanceof n?e:xi();return this.value===t.value}static e1f(e,t,i){(1&e)!==1&&On(e,1,wU().d1f_1);var r=tn(this);return r.value=t,r}},Dge=class{vr(){return bve()}},eZ=class{constructor(){cFe=this;var e=new _n("at.bindoc.virtualclinic.case.AtAgmId",this,1);e.qg("value",!1),this.f1f_1=e}pe(){return this.f1f_1}ng(){return[nn()]}},oc=class n{constructor(e){this.value=e}u1(){return this.value}ke(){return this.value}jx(e){return new n(e)}copy(e,t){return e=e===T?this.value:e,this.jx(e)}toString(){return"AtAgmId(value="+this.value+")"}hashCode(){return this.value}equals(e){if(this===e)return!0;if(!(e instanceof n))return!1;var t=e instanceof n?e:xi();return this.value===t.value}static g1f(e,t,i){(1&e)!==1&&On(e,1,bve().f1f_1);var r=tn(this);return r.value=t,r}},kge=class{vr(){return xve()}},tZ=class{constructor(){uFe=this;var e=new _n("at.bindoc.virtualclinic.case.AtCaseCount",this,1);e.qg("value",!1),this.h1f_1=e}pe(){return this.h1f_1}ng(){return[zi()]}},gU=class n{constructor(e){this.value=e}u1(){return this.value}ke(){return this.value}i1f(e){return new n(e)}copy(e,t){return e=e===T?this.value:e,this.i1f(e)}toString(){return"AtCaseCount(value="+this.value+")"}hashCode(){return Bi(this.value)}equals(e){if(this===e)return!0;if(!(e instanceof n))return!1;var t=e instanceof n?e:xi();return!!Lt(this.value,t.value)}static j1f(e,t,i){(1&e)!==1&&On(e,1,xve().h1f_1);var r=tn(this);return r.value=t,r}},Mge=class{vr(){return wve()}},iZ=class{constructor(){dFe=this;var e=new _n("at.bindoc.virtualclinic.case.AtGender",this,1);e.qg("value",!1),this.k1f_1=e}pe(){return this.k1f_1}ng(){return[xn()]}},nZ=class n{constructor(e){this.value=e}u1(){return this.value}ke(){return this.value}os(e){return new n(e)}copy(e,t){return e=e===T?this.value:e,this.os(e)}toString(){return"AtGender(value="+this.value+")"}hashCode(){return on(this.value)}equals(e){if(this===e)return!0;if(!(e instanceof n))return!1;var t=e instanceof n?e:xi();return this.value===t.value}static l1f(e,t,i){(1&e)!==1&&On(e,1,wve().k1f_1);var r=tn(this);return r.value=t,r}},Oge=class{constructor(){hFe=this,this.en=new BS("en"),this.en_US=new BS("en-US"),this.de=new BS("de"),this.de_DE=new BS("de-DE")}m1f(){return this.en}n1f(){return this.en_US}o1f(){return this.de}p1f(){return this.de_DE}vr(){return Cve()}},rZ=class{constructor(){fFe=this;var e=new _n("at.bindoc.virtualclinic.case.AtRFC5646Tag",this,1);e.qg("value",!1),this.q1f_1=e}pe(){return this.q1f_1}ng(){return[xn()]}},BS=class n{constructor(e){pFe(),this.value=e}u1(){return this.value}ke(){return this.value}os(e){return new n(e)}copy(e,t){return e=e===T?this.value:e,this.os(e)}toString(){return"AtRFC5646Tag(value="+this.value+")"}hashCode(){return on(this.value)}equals(e){if(this===e)return!0;if(!(e instanceof n))return!1;var t=e instanceof n?e:xi();return this.value===t.value}static r1f(e,t,i){pFe(),(1&e)!==1&&On(e,1,Cve().q1f_1);var r=tn(this);return r.value=t,r}},Rge=class{parse(e){var t=Pfe().mr(e);return new zS(t.ti(),t.vi(),t.xi(),t.kl(),t.ol(),t.sl(),t.ql())}vr(){return QN()}},oZ=class{constructor(){mFe=this;var e=new _n("at.bindoc.virtualclinic.case.AtLocalDateTime",this,7);e.qg("year",!1),e.qg("monthNumber",!1),e.qg("dayOfMonth",!1),e.qg("hour",!1),e.qg("minute",!1),e.qg("second",!0),e.qg("nanosecond",!0),this.s1f_1=e}pe(){return this.s1f_1}ng(){return[nn(),nn(),nn(),nn(),nn(),nn(),nn()]}},zS=class n{constructor(e,t,i,r,o,s,c){s=s===T?0:s,c=c===T?0:c,this.year=e,this.monthNumber=t,this.dayOfMonth=i,this.hour=r,this.minute=o,this.second=s,this.nanosecond=c}ti(){return this.year}vi(){return this.monthNumber}xi(){return this.dayOfMonth}kl(){return this.hour}ol(){return this.minute}sl(){return this.second}ql(){return this.nanosecond}equals(e){var t,i,r,o,s,c,h;return e instanceof n?h=this.year===e.year:h=!1,h?c=this.monthNumber===e.monthNumber:c=!1,c?s=this.dayOfMonth===e.dayOfMonth:s=!1,s?o=this.hour===e.hour:o=!1,o?r=this.minute===e.minute:r=!1,r?i=this.second===e.second:i=!1,i?t=this.nanosecond===e.nanosecond:t=!1,t}hashCode(){var e=this.year;return e=Le(31,e)+this.monthNumber|0,e=Le(31,e)+this.dayOfMonth|0,e=Le(31,e)+this.hour|0,e=Le(31,e)+this.minute|0,e=Le(31,e)+this.second|0,e=Le(31,e)+this.nanosecond|0,e}static t1f(e,t,i,r,o,s,c,h,g){(31&e)!==31&&On(e,31,QN().s1f_1);var x=tn(this);return x.year=t,x.monthNumber=i,x.dayOfMonth=r,x.hour=o,x.minute=s,e&32?x.second=c:x.second=0,e&64?x.nanosecond=h:x.nanosecond=0,x}},Nge=class{parse(e){var t=Nfe().gr(e);return new _U(t.ti(),t.vi(),t.xi())}vr(){return CU()}},sZ=class{constructor(){gFe=this;var e=new _n("at.bindoc.virtualclinic.case.AtLocalDate",this,3);e.qg("year",!1),e.qg("monthNumber",!1),e.qg("dayOfMonth",!1),this.u1f_1=e}pe(){return this.u1f_1}ng(){return[nn(),nn(),nn()]}},_U=class n{constructor(e,t,i){this.year=e,this.monthNumber=t,this.dayOfMonth=i}ti(){return this.year}vi(){return this.monthNumber}xi(){return this.dayOfMonth}equals(e){var t,i,r;return e instanceof n?r=this.year===e.year:r=!1,r?i=this.monthNumber===e.monthNumber:i=!1,i?t=this.dayOfMonth===e.dayOfMonth:t=!1,t}hashCode(){var e=this.year;return e=Le(31,e)+this.monthNumber|0,e=Le(31,e)+this.dayOfMonth|0,e}static v1f(e,t,i,r,o){(7&e)!==7&&On(e,7,CU().u1f_1);var s=tn(this);return s.year=t,s.monthNumber=i,s.dayOfMonth=r,s}},Pge=class{parse(e){var t=Ffe().sr(e);return new vU(t.kl(),t.ol(),t.sl(),t.ql())}vr(){return Sve()}},aZ=class{constructor(){_Fe=this;var e=new _n("at.bindoc.virtualclinic.case.AtLocalTime",this,4);e.qg("hour",!1),e.qg("minute",!1),e.qg("second",!0),e.qg("nanosecond",!0),this.w1f_1=e}pe(){return this.w1f_1}ng(){return[nn(),nn(),nn(),nn()]}},vU=class n{constructor(e,t,i,r){i=i===T?0:i,r=r===T?0:r,this.hour=e,this.minute=t,this.second=i,this.nanosecond=r}kl(){return this.hour}ol(){return this.minute}sl(){return this.second}ql(){return this.nanosecond}equals(e){var t,i,r,o;return e instanceof n?o=this.hour===e.hour:o=!1,o?r=this.minute===e.minute:r=!1,r?i=this.second===e.second:i=!1,i?t=this.nanosecond===e.nanosecond:t=!1,t}hashCode(){var e=this.hour;return e=Le(31,e)+this.minute|0,e=Le(31,e)+this.second|0,e=Le(31,e)+this.nanosecond|0,e}static x1f(e,t,i,r,o,s){(3&e)!==3&&On(e,3,Sve().w1f_1);var c=tn(this);return c.hour=t,c.minute=i,e&4?c.second=r:c.second=0,e&8?c.nanosecond=o:c.nanosecond=0,c}},lZ=class n{constructor(e,t){this.number=e,this.content=t;var i=this;i.y1f_1=ON(Vii(this))}a1g(){return this.number}b1g(){return this.content}e1d(){var e=this.y1f_1;return Gii(),e.u1()}getNotBlankOrNull(e){var t=epe(this.content,e),i;if(t==null)i=null;else{var r;Jx(t)?r=null:r=t,i=r}return i}getNotBlank(e){var t=epe(this.content,e),i;if(t==null)i=null;else{var r;Jx(t)?r=null:r=t,i=r}var o=i,s;if(o==null)throw Wl.ds(this.number,"Spalte Nummer "+(e+1|0)+" ist leer.");return s=o,s}getOrNull(e){return epe(this.content,e)}get(e){return this.content.q(e)}ke(){return this.number}le(){return this.content}c1g(e,t){return new n(e,t)}copy(e,t,i){return e=e===T?this.number:e,t=t===T?this.content:t,this.c1g(e,t)}toString(){return"Line(number="+this.number+", content="+Wi(this.content)+")"}hashCode(){var e=this.number;return e=Le(e,31)+Za(this.content)|0,e}equals(e){if(this===e)return!0;if(!(e instanceof n))return!1;var t=e instanceof n?e:xi();return!(this.number!==t.number||!Lt(this.content,t.content))}get caseIdentifier(){return this.e1d()}},cZ=class n{constructor(e,t){this.parsed=e,this.total=t}d1g(){return this.parsed}e1g(){return this.total}ke(){return this.parsed}le(){return this.total}f1g(e,t){return new n(e,t)}copy(e,t,i){return e=e===T?this.parsed:e,t=t===T?this.total:t,this.f1g(e,t)}toString(){return"ProgressItem(parsed="+this.parsed+", total="+this.total+")"}hashCode(){var e=this.parsed;return e=Le(e,31)+this.total|0,e}equals(e){if(this===e)return!0;if(!(e instanceof n))return!1;var t=e instanceof n?e:xi();return!(this.parsed!==t.parsed||this.total!==t.total)}},Fge=class{constructor(){vFe=this,this.g1g_1="|",this.h1g_1=Mg(["X01","X02","X03","X04","X05","X06","X07","I11","I12"])}},ok=class{constructor(e,t){yFe(),t=t===T?null:t,this.optionalFields=t;var i=this;i.k1g_1=Zx.r8();for(var r=qn.f1(),o=0,s=0,c=0,h=e.length;c{let e=class e{constructor(){this.abortProcess=new Kt}onAbort(){this.abortProcess.emit(!0)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=Ct({type:e,selectors:[["ays-kost-data-import-at-processor-result"]],inputs:{result:"result",originalFile:"originalFile"},outputs:{abortProcess:"abortProcess"},standalone:!0,features:[Ot],decls:5,vars:1,consts:[[4,"ngIf"],["fxLayout","row","fxLayoutAlign","end"],["fxFlex","240px"],["mat-button","",3,"click"],[1,"mat-body-1"]],template:function(r,o){r&1&&(Ne(0,Yii,4,1,"ng-container",0),se(1,"div",1)(2,"div",2)(3,"button",3),At("click",function(){return o.onAbort()}),yt(4," Anderen Datensatz ausw\xE4hlen "),ce()()()),r&2&&J("ngIf",!o.result.errors||o.result.errors.length===0)},dependencies:[Ul,Ys,tl,Ac,Cl,gs,Sl],encapsulation:2});let n=e;return n})();var eut=jh(Mrt());var Eve=class{static zip(e,t){return ct(this,null,function*(){t({step:"Erstellen der neuen ZIP-Datei startet",current:0,max:1,type:{name$:"STEP_UPDATE"}});let i=1e3,r=new eut.default;hn.chunking(e.data.cases,i).forEach((s,c)=>{console.log("chunk",s);let h=c===0?"data.json":`data_${c}.json`,g={data:s,errors:[]};r.file(h,JSON.stringify(g))}),console.log("zip",r),e.data=null,delete e.data;let o=yield r.generateAsync({type:"blob",compression:"DEFLATE",compressionOptions:{level:8}});return t({step:"Erstellen der neuen ZIP-Datei abgeschlossen",current:1,max:1,type:{name$:"STEP_UPDATE"}}),o})}};var qii={FILE_PARSING:"Datei einlesen",CASE_TRANSFORMATION:"F\xE4lle transformieren",ARCHIVE_CREATING:"Archiv packen"},Ive=class{constructor(){this.progress$=new mi,this.log=[]}update(e){let t=Object.keys(qii),i=t.indexOf(e.step),r=100/t.length,o=i*r+e.current/e.max*r,s=e?.type?.name$;s==="STEP_UPDATE"&&this.log.push(s),this.progress$.next({currentStep:e.step,progress:o,type:s})}};var Tve=class{constructor(){this.progressHandler=new Ive}process(e){return ct(this,null,function*(){let t=yield this._fileToStringArray(e),r=new ok(t).process();return console.log("processResult",r),r.errors&&r.errors.length>0?{archive:null,errors:r.errors}:{archive:yield Eve.zip(r,s=>this.progressHandler.update(s)),errors:null}})}_fileToStringArray(e){return ct(this,null,function*(){return new Promise((t,i)=>{let r=new FileReader;r.onload=o=>{if(o.target?.result&&o.target.result instanceof ArrayBuffer){let h=new TextDecoder("utf-8").decode(o.target.result).replace(/\r\n?/g,` `).split(` `);t(h)}else i(new Error("Failed to read file content as ArrayBuffer."))},r.onerror=()=>{i(new Error("Error reading file."))},r.readAsArrayBuffer(e)})})}};function $ii(n,e){if(n&1){let t=Fi();se(0,"div",2)(1,"mat-icon",3),yt(2,"chevron_right"),ce(),se(3,"span",4),yt(4,"W\xE4hlen Sie ihre *.s__ Datei aus"),ce()(),se(5,"div",5)(6,"bd-ui-file-input",6),At("fileChange",function(r){ht(t);let o=le();return pt(o.onFileChange(r))}),ce()()}if(n&2){let t=le();Z(6),J("config",t.fileInputConfig)}}function Kii(n,e){if(n&1&&bt(0,"ays-kost-data-import-processor-loading",0),n&2){let t=le();J("progress$",t.progress$)}}function Wii(n,e){if(n&1){let t=Fi();se(0,"ays-kost-data-import-at-processor-result",7),At("abortProcess",function(){ht(t);let r=le();return pt(r.onAbort())}),ce()}if(n&2){let t=le();J("result",t.result)("originalFile",t.originalFile)}}var tut=(()=>{let e=class e{constructor(){this.processed=new Kt,this.fileInputConfig=Ce({},Wae),this.loading=!1,this.progress$=new Yo(1),this._useWorker=!0}onFileChange(i){return ct(this,null,function*(){if(this.loading=!0,this.progress$.next({currentStep:`Verarbeitung von ${i.name} startet`,progress:0,type:"STEP_UPDATE"}),typeof Worker<"u"&&this._useWorker)this._createWorker(i);else{let r=new Tve,o=yield r.process(i).catch(s=>(console.error("Fehler in Verarbeitung",s),{archive:null,errors:[s.message||"Fehler in Verarbeitung"]}));this.progress$=r.progressHandler.progress$,this._onFinishProcessing(o,i)}})}onAbort(){this.result=null,this.loading=!1,this.processed.emit(null)}_createWorker(i){let r=new Worker(new URL("worker-X3BTMTDY.js",import.meta.url),{type:"module"});r.onmessage=({data:o})=>{o.type==="progress"?this.progress$.next(o.payload):o.type==="result"&&this._onFinishProcessing(o.payload,i)},r.postMessage({file:i})}_onFinishProcessing(i,r){this.result=i,this.originalFile=r,this.loading=!1,(!i.errors||i.errors.length===0)&&this.processed.emit({blob:i.archive,originalFileName:r.name})}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=Ct({type:e,selectors:[["ays-kost-data-import-at-processor"]],outputs:{processed:"processed"},standalone:!0,features:[Ot],decls:3,vars:1,consts:[[3,"progress$"],[3,"result","originalFile"],[1,"info","bd-container-inner"],["fxHide.xs",""],[1,"mat-subheading-1"],[1,"bd-container"],[3,"fileChange","config"],[3,"abortProcess","result","originalFile"]],template:function(r,o){r&1&&Ne(0,$ii,7,1)(1,Kii,1,1,"ays-kost-data-import-processor-loading",0)(2,Wii,1,2,"ays-kost-data-import-at-processor-result",1),r&2&&Hi(!o.loading&&!o.result?0:o.loading?1:!o.loading&&o.result?2:-1)},dependencies:[qs,zs,p0,qB,Zae,Jct,Drt],styles:[".info[_ngcontent-%COMP%]{background-color:#f0f0f0}.info[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{vertical-align:super;margin-left:16px}"]});let n=e;return n})();function Zii(n,e){if(n&1){let t=Fi();se(0,"ays-kost-data-import-at-processor",0),At("processed",function(r){ht(t);let o=le();return pt(o.fileProcessorFinished.emit(r))}),ce()}}var iut=(()=>{let e=class e{constructor(){this.fileProcessorFinished=new Kt}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=Ct({type:e,selectors:[["ays-kost-data-import-at-file"]],inputs:{settings:"settings"},outputs:{fileProcessorFinished:"fileProcessorFinished"},standalone:!0,features:[Ot],decls:1,vars:1,consts:[[3,"processed"]],template:function(r,o){r&1&&Ne(0,Zii,1,0,"ays-kost-data-import-at-processor"),r&2&&Hi(o.settings?0:-1)},dependencies:[tut]});let n=e;return n})();var nut=(()=>{let e=class e{constructor(i,r){this._environmentService=i,this._httpClient=r,this._store=new wR(this._environmentService)}upload(i,r){let o=this._store.crudClinic(i.virtualClinicId)+"cases/imports/",s=new FormData;return s.append("file",r.blob,r.originalFileName),this._httpClient.post(o,s)}};e.\u0275fac=function(r){return new(r||e)(Ke(dr),Ke(ms))},e.\u0275prov=It({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var rut=jh(Qae());function Xii(n,e){if(n&1){let t=Fi();se(0,"div",6)(1,"button",7),At("click",function(){ht(t);let r=le();return pt(r.onSubmit())}),yt(2," \xDCbertragung an BinDoc GmbH "),ce(),se(3,"button",8),At("click",function(){ht(t);let r=le();return pt(r.saveResult())}),yt(4," Resultierenden Datensatz exportieren "),ce()()}}function Jii(n,e){n&1&&(se(0,"div")(1,"span",9),yt(2,"Bei der \xDCbertragung ist ein Fehler aufgetreten."),ce()())}function eni(n,e){n&1&&(se(0,"div",10)(1,"div",11)(2,"div",12)(3,"mat-icon",13),yt(4,"info"),ce(),se(5,"span",14),yt(6,"Nach der \xDCbertragung ist der Datensatz in K\xFCrze verf\xFCgbar !"),ce()()()())}var out=(()=>{let e=class e{constructor(i,r){this._router=i,this._uploadService=r,this.upload$=new Yo(1)}onSubmit(){this.upload$.next(Qs.LOADING),this._uploadService.upload(this.settings,this.result).pipe(kr(1)).subscribe(()=>{this.upload$.next(Qs.SUCCESS),this._router.navigate(["/data/new"])},i=>{console.error(i),this.upload$.next(Qs.ERROR)})}saveResult(){rut.default.saveAs(this.result.blob,"result.zip")}};e.\u0275fac=function(r){return new(r||e)(oe(el),oe(nut))},e.\u0275cmp=Ct({type:e,selectors:[["ays-kost-data-import-at-upload"]],inputs:{settings:"settings",result:"result"},standalone:!0,features:[Ot],decls:12,vars:4,consts:[["initTpl",""],["errorTpl",""],["afterUploadTpl",""],[1,"bd-container"],[1,"mat-subheading-1"],[3,"loadItem","initTemplate","successTemplate","errorTemplate"],[1,"flex","flex-row","gap-4"],["mat-raised-button","","color","accent",3,"click"],["mat-raised-button","",3,"click"],[1,"mat-error"],["fxFlex",""],[1,"info","bd-container-inner"],["fxLayout","row","fxLayoutGap","24px"],["fxFlex","24px"],["fxFlex","",1,"mat-body"]],template:function(r,o){if(r&1&&(se(0,"div",3)(1,"div",3)(2,"span",4),yt(3,"Der anonymisierte Datensatz kann jetzt an die BinDoc GmbH \xFCbertragen werden"),ce()(),se(4,"div"),bt(5,"bd-loader",5),ce()(),Ne(6,Xii,5,0,"ng-template",null,0,ws)(8,Jii,3,0,"ng-template",null,1,ws)(10,eni,7,0,"ng-template",null,2,ws)),r&2){let s=_r(7),c=_r(9),h=_r(11);Z(5),J("loadItem",o.upload$)("initTemplate",s)("successTemplate",h)("errorTemplate",c)}},dependencies:[Ys,tl,Gd,Cl,md,qs,zs,$b,gs,Sl],styles:[".info[_ngcontent-%COMP%]{background-color:#f0f0f0}.radio-group[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin:15px 0;align-items:flex-start}.radio-button[_ngcontent-%COMP%]{margin:5px}"]});let n=e;return n})();var SFe=(n,e)=>({virtualClinicId:n,agreeTermsAndConditions:e}),sut=(()=>{let e=class e{constructor(i){this._activatedRoute=i,this.formGroup1=new dR({virtualClinicIdCtrl:new Kb(null,[rg.required]),agreeTermsAndConditionsCtrl:new Kb(null,[rg.required,rg.requiredTrue])}),this.formGroup2=new dR({kostFileCtrl:new Kb(null,[rg.required])}),this._activatedRoute.queryParams.subscribe(r=>{r.virtualClinicId&&this.formGroup1.patchValue({virtualClinicIdCtrl:r.virtualClinicId})})}onSettingsChange(i){this.settings=i,this.formGroup1.patchValue({virtualClinicIdCtrl:i.virtualClinicId,agreeTermsAndConditionsCtrl:i.agreeTermsAndConditions})}onFileProcessorFinished(i){console.log("onFileProcessorFinished",i),this.finishEvent=i,this.formGroup2.patchValue({kostFileCtrl:i})}};e.\u0275fac=function(r){return new(r||e)(oe(Kh))},e.\u0275cmp=Ct({type:e,selectors:[["app-austria-data-import-new"]],standalone:!0,features:[Ot],decls:20,vars:20,consts:[[1,"toolbar-spacer"],["orientation","horizontal",3,"linear"],["label","Einstellungen",3,"stepControl"],[3,"formGroup"],[1,"bd-container"],[3,"settingsChange","settings"],[1,"flex","flex-row","justify-end","gap-4"],["mat-raised-button","","color","accent","matStepperNext","",3,"disabled"],["label","Datensatz",3,"stepControl"],[3,"fileProcessorFinished","settings"],["label","\xDCbertragung"],[3,"settings","result"]],template:function(r,o){r&1&&(se(0,"bd-toolbar"),yt(1," Neuer Struktur- und Leistungsdaten Import "),bt(2,"span",0),ce(),se(3,"mat-stepper",1)(4,"mat-step",2)(5,"form",3)(6,"div",4)(7,"ays-kost-data-import-at-settings",5),At("settingsChange",function(c){return o.onSettingsChange(c)}),ce()(),se(8,"div",6)(9,"button",7),yt(10," Weiter zur Datensatz-Auswahl "),ce()()()(),se(11,"mat-step",8)(12,"form",3)(13,"div",4)(14,"ays-kost-data-import-at-file",9),At("fileProcessorFinished",function(c){return o.onFileProcessorFinished(c)}),ce()(),se(15,"div",6)(16,"button",7),yt(17," Weiter zur \xDCbertragung "),ce()()()(),se(18,"mat-step",10),bt(19,"ays-kost-data-import-at-upload",11),ce()()),r&2&&(Z(3),J("linear",!0),Z(),J("stepControl",o.formGroup1),Z(),J("formGroup",o.formGroup1),Z(2),J("settings",ha(11,SFe,o.formGroup1.controls.virtualClinicIdCtrl.value,o.formGroup1.controls.agreeTermsAndConditionsCtrl.value)),Z(2),J("disabled",o.formGroup1.invalid),Z(2),J("stepControl",o.formGroup2),Z(),J("formGroup",o.formGroup2),Z(2),J("settings",ha(14,SFe,o.formGroup1.controls.virtualClinicIdCtrl.value,o.formGroup1.controls.agreeTermsAndConditionsCtrl.value)),Z(2),J("disabled",o.formGroup2.invalid),Z(3),J("settings",ha(17,SFe,o.formGroup1.controls.virtualClinicIdCtrl.value,o.formGroup1.controls.agreeTermsAndConditionsCtrl.value))("result",o.finishEvent))},dependencies:[KT,Sl,SMe,EMe,wQe,nre,LHe,DHe,BT,uC,Art,iut,out]});let n=e;return n})();var aut=[{path:"data",canActivate:[S_],data:{pageTitle:ip.title("Struktur- und Leistungsdaten Import")},children:[{path:"new",canActivate:[S_],component:sut}]},{path:"**",redirectTo:"/data/new",pathMatch:"full"}];var lut=(()=>{let e=class e{constructor(i,r,o){r.init(),o.init(),i.init()}};e.\u0275fac=function(r){return new(r||e)(Ke(Xae),Ke(ip),Ke($f))},e.\u0275mod=Oi({type:e}),e.\u0275inj=Mi({providers:[_Ue,q4,ip,$f,{provide:RG,useClass:BTe,multi:!0},{provide:RG,useClass:vMe,multi:!0},{provide:sd,useClass:LTe}],imports:[s3,One,Nne,Zie,Dne,xGe,os,eHe,cHe,gne,Cne,s3,os]});let n=e;return n})();function cut(n){return new Fn(3e3,!1)}function tni(){return new Fn(3100,!1)}function ini(){return new Fn(3101,!1)}function nni(n){return new Fn(3001,!1)}function rni(n){return new Fn(3003,!1)}function oni(n){return new Fn(3004,!1)}function sni(n,e){return new Fn(3005,!1)}function ani(){return new Fn(3006,!1)}function lni(){return new Fn(3007,!1)}function cni(n,e){return new Fn(3008,!1)}function uni(n){return new Fn(3002,!1)}function dni(n,e,t,i,r){return new Fn(3010,!1)}function hni(){return new Fn(3011,!1)}function pni(){return new Fn(3012,!1)}function fni(){return new Fn(3200,!1)}function mni(){return new Fn(3202,!1)}function gni(){return new Fn(3013,!1)}function _ni(n){return new Fn(3014,!1)}function vni(n){return new Fn(3015,!1)}function yni(n){return new Fn(3016,!1)}function bni(n,e){return new Fn(3404,!1)}function xni(n){return new Fn(3502,!1)}function wni(n){return new Fn(3503,!1)}function Cni(){return new Fn(3300,!1)}function Sni(n){return new Fn(3504,!1)}function Eni(n){return new Fn(3301,!1)}function Ini(n,e){return new Fn(3302,!1)}function Tni(n){return new Fn(3303,!1)}function Ani(n,e){return new Fn(3400,!1)}function Dni(n){return new Fn(3401,!1)}function kni(n){return new Fn(3402,!1)}function Mni(n,e){return new Fn(3505,!1)}function sk(n){switch(n.length){case 0:return new TT;case 1:return n[0];default:return new rG(n)}}function Cut(n,e,t=new Map,i=new Map){let r=[],o=[],s=-1,c=null;if(e.forEach(h=>{let g=h.get("offset"),x=g==s,C=x&&c||new Map;h.forEach((A,k)=>{let O=k,F=A;if(k!=="offset")switch(O=n.normalizePropertyName(O,r),F){case zie:F=t.get(k);break;case Yb:F=i.get(k);break;default:F=n.normalizeStyleValue(k,O,F,r);break}C.set(O,F)}),x||o.push(C),c=C,s=g}),r.length)throw xni(r);return o}function $Fe(n,e,t,i){switch(e){case"start":n.onStart(()=>i(t&&EFe(t,"start",n)));break;case"done":n.onDone(()=>i(t&&EFe(t,"done",n)));break;case"destroy":n.onDestroy(()=>i(t&&EFe(t,"destroy",n)));break}}function EFe(n,e,t){let i=t.totalTime,r=!!t.disabled,o=KFe(n.element,n.triggerName,n.fromState,n.toState,e||n.phaseName,i??n.totalTime,r),s=n._data;return s!=null&&(o._data=s),o}function KFe(n,e,t,i,r="",o=0,s){return{element:n,triggerName:e,fromState:t,toState:i,phaseName:r,totalTime:o,disabled:!!s}}function Ng(n,e,t){let i=n.get(e);return i||n.set(e,i=t),i}function uut(n){let e=n.indexOf(":"),t=n.substring(1,e),i=n.slice(e+1);return[t,i]}var Oni=typeof document>"u"?null:document.documentElement;function WFe(n){let e=n.parentNode||n.host||null;return e===Oni?null:e}function Rni(n){return n.substring(1,6)=="ebkit"}var XN=null,dut=!1;function Nni(n){XN||(XN=Pni()||{},dut=XN.style?"WebkitAppearance"in XN.style:!1);let e=!0;return XN.style&&!Rni(n)&&(e=n in XN.style,!e&&dut&&(e="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in XN.style)),e}function Pni(){return typeof document<"u"?document.body:null}function Sut(n,e){for(;e;){if(e===n)return!0;e=WFe(e)}return!1}function Eut(n,e,t){if(t)return Array.from(n.querySelectorAll(e));let i=n.querySelector(e);return i?[i]:[]}var ZFe=(()=>{let e=class e{validateStyleProperty(i){return Nni(i)}containsElement(i,r){return Sut(i,r)}getParentElement(i){return WFe(i)}query(i,r,o){return Eut(i,r,o)}computeStyle(i,r,o){return o||""}animate(i,r,o,s,c,h=[],g){return new TT(o,s)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=It({token:e,factory:e.\u0275fac});let n=e;return n})(),eLe=class eLe{};eLe.NOOP=new ZFe;var tP=eLe,iP=class{};var Fni=1e3,Iut="{{",Lni="}}",Tut="ng-enter",MFe="ng-leave",Ave="ng-trigger",Rve=".ng-trigger",hut="ng-animating",OFe=".ng-animating";function jS(n){if(typeof n=="number")return n;let e=n.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:RFe(parseFloat(e[1]),e[2])}function RFe(n,e){switch(e){case"s":return n*Fni;default:return n}}function Nve(n,e,t){return n.hasOwnProperty("duration")?n:Bni(n,e,t)}function Bni(n,e,t){let i=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,r,o=0,s="";if(typeof n=="string"){let c=n.match(i);if(c===null)return e.push(cut(n)),{duration:0,delay:0,easing:""};r=RFe(parseFloat(c[1]),c[2]);let h=c[3];h!=null&&(o=RFe(parseFloat(h),c[4]));let g=c[5];g&&(s=g)}else r=n;if(!t){let c=!1,h=e.length;r<0&&(e.push(tni()),c=!0),o<0&&(e.push(ini()),c=!0),c&&e.splice(h,0,cut(n))}return{duration:r,delay:o,easing:s}}function zni(n){return n.length?n[0]instanceof Map?n:n.map(e=>new Map(Object.entries(e))):[]}function p1(n,e,t){e.forEach((i,r)=>{let o=QFe(r);t&&!t.has(r)&&t.set(r,n.style[o]),n.style[o]=i})}function eP(n,e){e.forEach((t,i)=>{let r=QFe(i);n.style[r]=""})}function gZ(n){return Array.isArray(n)?n.length==1?n[0]:Nje(n):n}function Vni(n,e,t){let i=e.params||{},r=Aut(n);r.length&&r.forEach(o=>{i.hasOwnProperty(o)||t.push(nni(o))})}var NFe=new RegExp(`${Iut}\\s*(.+?)\\s*${Lni}`,"g");function Aut(n){let e=[];if(typeof n=="string"){let t;for(;t=NFe.exec(n);)e.push(t[1]);NFe.lastIndex=0}return e}function vZ(n,e,t){let i=`${n}`,r=i.replace(NFe,(o,s)=>{let c=e[s];return c==null&&(t.push(rni(s)),c=""),c.toString()});return r==i?n:r}var Uni=/-+([a-z0-9])/g;function QFe(n){return n.replace(Uni,(...e)=>e[1].toUpperCase())}function jni(n,e){return n===0||e===0}function Hni(n,e,t){if(t.size&&e.length){let i=e[0],r=[];if(t.forEach((o,s)=>{i.has(s)||r.push(s),i.set(s,o)}),r.length)for(let o=1;os.set(c,XFe(n,c)))}}return e}function Rg(n,e,t){switch(e.type){case ts.Trigger:return n.visitTrigger(e,t);case ts.State:return n.visitState(e,t);case ts.Transition:return n.visitTransition(e,t);case ts.Sequence:return n.visitSequence(e,t);case ts.Group:return n.visitGroup(e,t);case ts.Animate:return n.visitAnimate(e,t);case ts.Keyframes:return n.visitKeyframes(e,t);case ts.Style:return n.visitStyle(e,t);case ts.Reference:return n.visitReference(e,t);case ts.AnimateChild:return n.visitAnimateChild(e,t);case ts.AnimateRef:return n.visitAnimateRef(e,t);case ts.Query:return n.visitQuery(e,t);case ts.Stagger:return n.visitStagger(e,t);default:throw oni(e.type)}}function XFe(n,e){return window.getComputedStyle(n)[e]}var Gni=new Set(["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"]),Pve=class extends iP{normalizePropertyName(e,t){return QFe(e)}normalizeStyleValue(e,t,i,r){let o="",s=i.toString().trim();if(Gni.has(t)&&i!==0&&i!=="0")if(typeof i=="number")o="px";else{let c=i.match(/^[+-]?[\d\.]+([a-z]*)$/);c&&c[1].length==0&&r.push(sni(e,i))}return s+o}};var Fve="*";function Yni(n,e){let t=[];return typeof n=="string"?n.split(/\s*,\s*/).forEach(i=>qni(i,t,e)):t.push(n),t}function qni(n,e,t){if(n[0]==":"){let h=$ni(n,t);if(typeof h=="function"){e.push(h);return}n=h}let i=n.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(i==null||i.length<4)return t.push(vni(n)),e;let r=i[1],o=i[2],s=i[3];e.push(put(r,s));let c=r==Fve&&s==Fve;o[0]=="<"&&!c&&e.push(put(s,r))}function $ni(n,e){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,i)=>parseFloat(i)>parseFloat(t);case":decrement":return(t,i)=>parseFloat(i) *"}}var Dve=new Set(["true","1"]),kve=new Set(["false","0"]);function put(n,e){let t=Dve.has(n)||kve.has(n),i=Dve.has(e)||kve.has(e);return(r,o)=>{let s=n==Fve||n==r,c=e==Fve||e==o;return!s&&t&&typeof r=="boolean"&&(s=r?Dve.has(n):kve.has(n)),!c&&i&&typeof o=="boolean"&&(c=o?Dve.has(e):kve.has(e)),s&&c}}var Dut=":self",Kni=new RegExp(`s*${Dut}s*,?`,"g");function kut(n,e,t,i){return new PFe(n).build(e,t,i)}var fut="",PFe=class{constructor(e){this._driver=e}build(e,t,i){let r=new FFe(t);return this._resetContextStyleTimingState(r),Rg(this,gZ(e),r)}_resetContextStyleTimingState(e){e.currentQuerySelector=fut,e.collectedStyles=new Map,e.collectedStyles.set(fut,new Map),e.currentTime=0}visitTrigger(e,t){let i=t.queryCount=0,r=t.depCount=0,o=[],s=[];return e.name.charAt(0)=="@"&&t.errors.push(ani()),e.definitions.forEach(c=>{if(this._resetContextStyleTimingState(t),c.type==ts.State){let h=c,g=h.name;g.toString().split(/\s*,\s*/).forEach(x=>{h.name=x,o.push(this.visitState(h,t))}),h.name=g}else if(c.type==ts.Transition){let h=this.visitTransition(c,t);i+=h.queryCount,r+=h.depCount,s.push(h)}else t.errors.push(lni())}),{type:ts.Trigger,name:e.name,states:o,transitions:s,queryCount:i,depCount:r,options:null}}visitState(e,t){let i=this.visitStyle(e.styles,t),r=e.options&&e.options.params||null;if(i.containsDynamicStyles){let o=new Set,s=r||{};i.styles.forEach(c=>{c instanceof Map&&c.forEach(h=>{Aut(h).forEach(g=>{s.hasOwnProperty(g)||o.add(g)})})}),o.size&&t.errors.push(cni(e.name,[...o.values()]))}return{type:ts.State,name:e.name,style:i,options:r?{params:r}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;let i=Rg(this,gZ(e.animation),t),r=Yni(e.expr,t.errors);return{type:ts.Transition,matchers:r,animation:i,queryCount:t.queryCount,depCount:t.depCount,options:JN(e.options)}}visitSequence(e,t){return{type:ts.Sequence,steps:e.steps.map(i=>Rg(this,i,t)),options:JN(e.options)}}visitGroup(e,t){let i=t.currentTime,r=0,o=e.steps.map(s=>{t.currentTime=i;let c=Rg(this,s,t);return r=Math.max(r,t.currentTime),c});return t.currentTime=r,{type:ts.Group,steps:o,options:JN(e.options)}}visitAnimate(e,t){let i=Xni(e.timings,t.errors);t.currentAnimateTimings=i;let r,o=e.styles?e.styles:qr({});if(o.type==ts.Keyframes)r=this.visitKeyframes(o,t);else{let s=e.styles,c=!1;if(!s){c=!0;let g={};i.easing&&(g.easing=i.easing),s=qr(g)}t.currentTime+=i.duration+i.delay;let h=this.visitStyle(s,t);h.isEmptyStep=c,r=h}return t.currentAnimateTimings=null,{type:ts.Animate,timings:i,style:r,options:null}}visitStyle(e,t){let i=this._makeStyleAst(e,t);return this._validateStyleAst(i,t),i}_makeStyleAst(e,t){let i=[],r=Array.isArray(e.styles)?e.styles:[e.styles];for(let c of r)typeof c=="string"?c===Yb?i.push(c):t.errors.push(uni(c)):i.push(new Map(Object.entries(c)));let o=!1,s=null;return i.forEach(c=>{if(c instanceof Map&&(c.has("easing")&&(s=c.get("easing"),c.delete("easing")),!o)){for(let h of c.values())if(h.toString().indexOf(Iut)>=0){o=!0;break}}}),{type:ts.Style,styles:i,easing:s,offset:e.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(e,t){let i=t.currentAnimateTimings,r=t.currentTime,o=t.currentTime;i&&o>0&&(o-=i.duration+i.delay),e.styles.forEach(s=>{typeof s!="string"&&s.forEach((c,h)=>{let g=t.collectedStyles.get(t.currentQuerySelector),x=g.get(h),C=!0;x&&(o!=r&&o>=x.startTime&&r<=x.endTime&&(t.errors.push(dni(h,x.startTime,x.endTime,o,r)),C=!1),o=x.startTime),C&&g.set(h,{startTime:o,endTime:r}),t.options&&Vni(c,t.options,t.errors)})})}visitKeyframes(e,t){let i={type:ts.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(hni()),i;let r=1,o=0,s=[],c=!1,h=!1,g=0,x=e.steps.map(z=>{let j=this._makeStyleAst(z,t),K=j.offset!=null?j.offset:Qni(j.styles),ee=0;return K!=null&&(o++,ee=j.offset=K),h=h||ee<0||ee>1,c=c||ee0&&o{let K=A>0?j==k?1:A*j:s[j],ee=K*L;t.currentTime=O+F.delay+ee,F.duration=ee,this._validateStyleAst(z,t),z.offset=K,i.styles.push(z)}),i}visitReference(e,t){return{type:ts.Reference,animation:Rg(this,gZ(e.animation),t),options:JN(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:ts.AnimateChild,options:JN(e.options)}}visitAnimateRef(e,t){return{type:ts.AnimateRef,animation:this.visitReference(e.animation,t),options:JN(e.options)}}visitQuery(e,t){let i=t.currentQuerySelector,r=e.options||{};t.queryCount++,t.currentQuery=e;let[o,s]=Wni(e.selector);t.currentQuerySelector=i.length?i+" "+o:o,Ng(t.collectedStyles,t.currentQuerySelector,new Map);let c=Rg(this,gZ(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=i,{type:ts.Query,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:s,animation:c,originalSelector:e.selector,options:JN(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(gni());let i=e.timings==="full"?{duration:0,delay:0,easing:"full"}:Nve(e.timings,t.errors,!0);return{type:ts.Stagger,animation:Rg(this,gZ(e.animation),t),timings:i,options:null}}};function Wni(n){let e=!!n.split(/\s*,\s*/).find(t=>t==Dut);return e&&(n=n.replace(Kni,"")),n=n.replace(/@\*/g,Rve).replace(/@\w+/g,t=>Rve+"-"+t.slice(1)).replace(/:animating/g,OFe),[n,e]}function Zni(n){return n?Ce({},n):null}var FFe=class{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}};function Qni(n){if(typeof n=="string")return null;let e=null;if(Array.isArray(n))n.forEach(t=>{if(t instanceof Map&&t.has("offset")){let i=t;e=parseFloat(i.get("offset")),i.delete("offset")}});else if(n instanceof Map&&n.has("offset")){let t=n;e=parseFloat(t.get("offset")),t.delete("offset")}return e}function Xni(n,e){if(n.hasOwnProperty("duration"))return n;if(typeof n=="number"){let o=Nve(n,e).duration;return IFe(o,0,"")}let t=n;if(t.split(/\s+/).some(o=>o.charAt(0)=="{"&&o.charAt(1)=="{")){let o=IFe(0,0,"");return o.dynamic=!0,o.strValue=t,o}let r=Nve(t,e);return IFe(r.duration,r.delay,r.easing)}function JN(n){return n?(n=Ce({},n),n.params&&(n.params=Zni(n.params))):n={},n}function IFe(n,e,t){return{duration:n,delay:e,easing:t}}function JFe(n,e,t,i,r,o,s=null,c=!1){return{type:1,element:n,keyframes:e,preStyleProps:t,postStyleProps:i,duration:r,delay:o,totalTime:r+o,easing:s,subTimeline:c}}var yZ=class{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,t){let i=this._map.get(e);i||this._map.set(e,i=[]),i.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}},Jni=1,eri=":enter",tri=new RegExp(eri,"g"),iri=":leave",nri=new RegExp(iri,"g");function Mut(n,e,t,i,r,o=new Map,s=new Map,c,h,g=[]){return new LFe().buildKeyframes(n,e,t,i,r,o,s,c,h,g)}var LFe=class{buildKeyframes(e,t,i,r,o,s,c,h,g,x=[]){g=g||new yZ;let C=new BFe(e,t,g,r,o,x,[]);C.options=h;let A=h.delay?jS(h.delay):0;C.currentTimeline.delayNextStep(A),C.currentTimeline.setStyles([s],null,C.errors,h),Rg(this,i,C);let k=C.timelines.filter(O=>O.containsAnimation());if(k.length&&c.size){let O;for(let F=k.length-1;F>=0;F--){let L=k[F];if(L.element===t){O=L;break}}O&&!O.allowOnlyTimelineStyles()&&O.setStyles([c],null,C.errors,h)}return k.length?k.map(O=>O.buildKeyframes()):[JFe(t,[],[],[],0,A,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){let i=t.subInstructions.get(t.element);if(i){let r=t.createSubContext(e.options),o=t.currentTimeline.currentTime,s=this._visitSubInstructions(i,r,r.options);o!=s&&t.transformIntoNewTimeline(s)}t.previousNode=e}visitAnimateRef(e,t){let i=t.createSubContext(e.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],t,i),this.visitReference(e.animation,i),t.transformIntoNewTimeline(i.currentTimeline.currentTime),t.previousNode=e}_applyAnimationRefDelays(e,t,i){for(let r of e){let o=r?.delay;if(o){let s=typeof o=="number"?o:jS(vZ(o,r?.params??{},t.errors));i.delayNextStep(s)}}}_visitSubInstructions(e,t,i){let o=t.currentTimeline.currentTime,s=i.duration!=null?jS(i.duration):null,c=i.delay!=null?jS(i.delay):null;return s!==0&&e.forEach(h=>{let g=t.appendInstructionToTimeline(h,s,c);o=Math.max(o,g.duration+g.delay)}),o}visitReference(e,t){t.updateOptions(e.options,!0),Rg(this,e.animation,t),t.previousNode=e}visitSequence(e,t){let i=t.subContextCount,r=t,o=e.options;if(o&&(o.params||o.delay)&&(r=t.createSubContext(o),r.transformIntoNewTimeline(),o.delay!=null)){r.previousNode.type==ts.Style&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=Lve);let s=jS(o.delay);r.delayNextStep(s)}e.steps.length&&(e.steps.forEach(s=>Rg(this,s,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){let i=[],r=t.currentTimeline.currentTime,o=e.options&&e.options.delay?jS(e.options.delay):0;e.steps.forEach(s=>{let c=t.createSubContext(e.options);o&&c.delayNextStep(o),Rg(this,s,c),r=Math.max(r,c.currentTimeline.currentTime),i.push(c.currentTimeline)}),i.forEach(s=>t.currentTimeline.mergeTimelineCollectedStyles(s)),t.transformIntoNewTimeline(r),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){let i=e.strValue,r=t.params?vZ(i,t.params,t.errors):i;return Nve(r,t.errors)}else return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){let i=t.currentAnimateTimings=this._visitTiming(e.timings,t),r=t.currentTimeline;i.delay&&(t.incrementTime(i.delay),r.snapshotCurrentStyles());let o=e.style;o.type==ts.Keyframes?this.visitKeyframes(o,t):(t.incrementTime(i.duration),this.visitStyle(o,t),r.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){let i=t.currentTimeline,r=t.currentAnimateTimings;!r&&i.hasCurrentStyleProperties()&&i.forwardFrame();let o=r&&r.easing||e.easing;e.isEmptyStep?i.applyEmptyStep(o):i.setStyles(e.styles,o,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){let i=t.currentAnimateTimings,r=t.currentTimeline.duration,o=i.duration,c=t.createSubContext().currentTimeline;c.easing=i.easing,e.styles.forEach(h=>{let g=h.offset||0;c.forwardTime(g*o),c.setStyles(h.styles,h.easing,t.errors,t.options),c.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(c),t.transformIntoNewTimeline(r+o),t.previousNode=e}visitQuery(e,t){let i=t.currentTimeline.currentTime,r=e.options||{},o=r.delay?jS(r.delay):0;o&&(t.previousNode.type===ts.Style||i==0&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Lve);let s=i,c=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!r.optional,t.errors);t.currentQueryTotal=c.length;let h=null;c.forEach((g,x)=>{t.currentQueryIndex=x;let C=t.createSubContext(e.options,g);o&&C.delayNextStep(o),g===t.element&&(h=C.currentTimeline),Rg(this,e.animation,C),C.currentTimeline.applyStylesToKeyframe();let A=C.currentTimeline.currentTime;s=Math.max(s,A)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(s),h&&(t.currentTimeline.mergeTimelineCollectedStyles(h),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){let i=t.parentContext,r=t.currentTimeline,o=e.timings,s=Math.abs(o.duration),c=s*(t.currentQueryTotal-1),h=s*t.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":h=c-h;break;case"full":h=i.currentStaggerTime;break}let x=t.currentTimeline;h&&x.delayNextStep(h);let C=x.currentTime;Rg(this,e.animation,t),t.previousNode=e,i.currentStaggerTime=r.currentTime-C+(r.startTime-i.currentTimeline.startTime)}},Lve={},BFe=class n{constructor(e,t,i,r,o,s,c,h){this._driver=e,this.element=t,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=o,this.errors=s,this.timelines=c,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Lve,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=h||new Bve(this._driver,t,0),c.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;let i=e,r=this.options;i.duration!=null&&(r.duration=jS(i.duration)),i.delay!=null&&(r.delay=jS(i.delay));let o=i.params;if(o){let s=r.params;s||(s=this.options.params={}),Object.keys(o).forEach(c=>{(!t||!s.hasOwnProperty(c))&&(s[c]=vZ(o[c],s,this.errors))})}}_copyOptions(){let e={};if(this.options){let t=this.options.params;if(t){let i=e.params={};Object.keys(t).forEach(r=>{i[r]=t[r]})}}return e}createSubContext(e=null,t,i){let r=t||this.element,o=new n(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(e),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(e){return this.previousNode=Lve,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,i){let r={duration:t??e.duration,delay:this.currentTimeline.currentTime+(i??0)+e.delay,easing:""},o=new zFe(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,r,e.stretchStartingKeyframe);return this.timelines.push(o),r}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,i,r,o,s){let c=[];if(r&&c.push(this.element),e.length>0){e=e.replace(tri,"."+this._enterClassName),e=e.replace(nri,"."+this._leaveClassName);let h=i!=1,g=this._driver.query(this.element,e,h);i!==0&&(g=i<0?g.slice(g.length+i,g.length):g.slice(0,i)),c.push(...g)}return!o&&c.length==0&&s.push(_ni(t)),c}},Bve=class n{constructor(e,t,i,r){this._driver=e,this.element=t,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(e){let t=this._keyframes.size===1&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new n(this._driver,e,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=Jni,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles.set(e,t),this._globalTimelineStyles.set(e,t),this._styleSummary.set(e,{time:this.currentTime,value:t})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[t,i]of this._globalTimelineStyles)this._backFill.set(t,i||Yb),this._currentKeyframe.set(t,Yb);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,i,r){t&&this._previousKeyframe.set("easing",t);let o=r&&r.params||{},s=rri(e,this._globalTimelineStyles);for(let[c,h]of s){let g=vZ(h,o,i);this._pendingStyles.set(c,g),this._localTimelineStyles.has(c)||this._backFill.set(c,this._globalTimelineStyles.get(c)??Yb),this._updateStyle(c,g)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((e,t)=>{this._currentKeyframe.set(t,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,t)=>{this._currentKeyframe.has(t)||this._currentKeyframe.set(t,e)}))}snapshotCurrentStyles(){for(let[e,t]of this._localTimelineStyles)this._pendingStyles.set(e,t),this._updateStyle(e,t)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((t,i)=>{let r=this._styleSummary.get(i);(!r||t.time>r.time)&&this._updateStyle(i,t.value)})}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,t=new Set,i=this._keyframes.size===1&&this.duration===0,r=[];this._keyframes.forEach((c,h)=>{let g=new Map([...this._backFill,...c]);g.forEach((x,C)=>{x===zie?e.add(C):x===Yb&&t.add(C)}),i||g.set("offset",h/this.duration),r.push(g)});let o=[...e.values()],s=[...t.values()];if(i){let c=r[0],h=new Map(c);c.set("offset",0),h.set("offset",1),r=[c,h]}return JFe(this.element,r,o,s,this.duration,this.startTime,this.easing,!1)}},zFe=class extends Bve{constructor(e,t,i,r,o,s,c=!1){super(e,t,s.delay),this.keyframes=i,this.preStyleProps=r,this.postStyleProps=o,this._stretchStartingKeyframe=c,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&t){let o=[],s=i+t,c=t/s,h=new Map(e[0]);h.set("offset",0),o.push(h);let g=new Map(e[0]);g.set("offset",mut(c)),o.push(g);let x=e.length-1;for(let C=1;C<=x;C++){let A=new Map(e[C]),k=A.get("offset"),O=t+k*i;A.set("offset",mut(O/s)),o.push(A)}i=s,t=0,r="",e=o}return JFe(this.element,e,this.preStyleProps,this.postStyleProps,i,t,r,!0)}};function mut(n,e=3){let t=Math.pow(10,e-1);return Math.round(n*t)/t}function rri(n,e){let t=new Map,i;return n.forEach(r=>{if(r==="*"){i??=e.keys();for(let o of i)t.set(o,Yb)}else for(let[o,s]of r)t.set(o,s)}),t}function gut(n,e,t,i,r,o,s,c,h,g,x,C,A){return{type:0,element:n,triggerName:e,isRemovalTransition:r,fromState:t,fromStyles:o,toState:i,toStyles:s,timelines:c,queriedElements:h,preStyleProps:g,postStyleProps:x,totalTime:C,errors:A}}var TFe={},zve=class{constructor(e,t,i){this._triggerName=e,this.ast=t,this._stateStyles=i}match(e,t,i,r){return ori(this.ast.matchers,e,t,i,r)}buildStyles(e,t,i){let r=this._stateStyles.get("*");return e!==void 0&&(r=this._stateStyles.get(e?.toString())||r),r?r.buildStyles(t,i):new Map}build(e,t,i,r,o,s,c,h,g,x){let C=[],A=this.ast.options&&this.ast.options.params||TFe,k=c&&c.params||TFe,O=this.buildStyles(i,k,C),F=h&&h.params||TFe,L=this.buildStyles(r,F,C),z=new Set,j=new Map,K=new Map,ee=r==="void",ne={params:Out(F,A),delay:this.ast.options?.delay},X=x?[]:Mut(e,t,this.ast.animation,o,s,O,L,ne,g,C),q=0;return X.forEach(fe=>{q=Math.max(fe.duration+fe.delay,q)}),C.length?gut(t,this._triggerName,i,r,ee,O,L,[],[],j,K,q,C):(X.forEach(fe=>{let Se=fe.element,pe=Ng(j,Se,new Set);fe.preStyleProps.forEach(ie=>pe.add(ie));let Me=Ng(K,Se,new Set);fe.postStyleProps.forEach(ie=>Me.add(ie)),Se!==t&&z.add(Se)}),gut(t,this._triggerName,i,r,ee,O,L,X,[...z.values()],j,K,q))}};function ori(n,e,t,i,r){return n.some(o=>o(e,t,i,r))}function Out(n,e){let t=Ce({},e);return Object.entries(n).forEach(([i,r])=>{r!=null&&(t[i]=r)}),t}var VFe=class{constructor(e,t,i){this.styles=e,this.defaultParams=t,this.normalizer=i}buildStyles(e,t){let i=new Map,r=Out(e,this.defaultParams);return this.styles.styles.forEach(o=>{typeof o!="string"&&o.forEach((s,c)=>{s&&(s=vZ(s,r,t));let h=this.normalizer.normalizePropertyName(c,t);s=this.normalizer.normalizeStyleValue(c,h,s,t),i.set(c,s)})}),i}};function sri(n,e,t){return new UFe(n,e,t)}var UFe=class{constructor(e,t,i){this.name=e,this.ast=t,this._normalizer=i,this.transitionFactories=[],this.states=new Map,t.states.forEach(r=>{let o=r.options&&r.options.params||{};this.states.set(r.name,new VFe(r.style,o,i))}),_ut(this.states,"true","1"),_ut(this.states,"false","0"),t.transitions.forEach(r=>{this.transitionFactories.push(new zve(e,r,this.states))}),this.fallbackTransition=ari(e,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,i,r){return this.transitionFactories.find(s=>s.match(e,t,i,r))||null}matchStyles(e,t,i){return this.fallbackTransition.buildStyles(e,t,i)}};function ari(n,e,t){let i=[(s,c)=>!0],r={type:ts.Sequence,steps:[],options:null},o={type:ts.Transition,animation:r,matchers:i,options:null,queryCount:0,depCount:0};return new zve(n,o,e)}function _ut(n,e,t){n.has(e)?n.has(t)||n.set(t,n.get(e)):n.has(t)&&n.set(e,n.get(t))}var lri=new yZ,jFe=class{constructor(e,t,i){this.bodyNode=e,this._driver=t,this._normalizer=i,this._animations=new Map,this._playersById=new Map,this.players=[]}register(e,t){let i=[],r=[],o=kut(this._driver,t,i,r);if(i.length)throw wni(i);r.length&&void 0,this._animations.set(e,o)}_buildPlayer(e,t,i){let r=e.element,o=Cut(this._normalizer,e.keyframes,t,i);return this._driver.animate(r,o,e.duration,e.delay,e.easing,[],!0)}create(e,t,i={}){let r=[],o=this._animations.get(e),s,c=new Map;if(o?(s=Mut(this._driver,t,o,Tut,MFe,new Map,new Map,i,lri,r),s.forEach(x=>{let C=Ng(c,x.element,new Map);x.postStyleProps.forEach(A=>C.set(A,null))})):(r.push(Cni()),s=[]),r.length)throw Sni(r);c.forEach((x,C)=>{x.forEach((A,k)=>{x.set(k,this._driver.computeStyle(C,k,Yb))})});let h=s.map(x=>{let C=c.get(x.element);return this._buildPlayer(x,new Map,C)}),g=sk(h);return this._playersById.set(e,g),g.onDestroy(()=>this.destroy(e)),this.players.push(g),g}destroy(e){let t=this._getPlayer(e);t.destroy(),this._playersById.delete(e);let i=this.players.indexOf(t);i>=0&&this.players.splice(i,1)}_getPlayer(e){let t=this._playersById.get(e);if(!t)throw Eni(e);return t}listen(e,t,i,r){let o=KFe(t,"","","");return $Fe(this._getPlayer(e),i,o,r),()=>{}}command(e,t,i,r){if(i=="register"){this.register(e,r[0]);return}if(i=="create"){let s=r[0]||{};this.create(e,t,s);return}let o=this._getPlayer(e);switch(i){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(e);break}}},vut="ng-animate-queued",cri=".ng-animate-queued",AFe="ng-animate-disabled",uri=".ng-animate-disabled",dri="ng-star-inserted",hri=".ng-star-inserted",pri=[],Rut={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},fri={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},dy="__ng_removed",bZ=class{get params(){return this.options.params}constructor(e,t=""){this.namespaceId=t;let i=e&&e.hasOwnProperty("value"),r=i?e.value:e;if(this.value=gri(r),i){let o=e,{value:s}=o,c=Bm(o,["value"]);this.options=c}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){let t=e.params;if(t){let i=this.options.params;Object.keys(t).forEach(r=>{i[r]==null&&(i[r]=t[r])})}}},_Z="void",DFe=new bZ(_Z),HFe=class{constructor(e,t,i){this.id=e,this.hostElement=t,this._engine=i,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,pv(t,this._hostClassName)}listen(e,t,i,r){if(!this._triggers.has(t))throw Ini(i,t);if(i==null||i.length==0)throw Tni(t);if(!_ri(i))throw Ani(i,t);let o=Ng(this._elementListeners,e,[]),s={name:t,phase:i,callback:r};o.push(s);let c=Ng(this._engine.statesByElement,e,new Map);return c.has(t)||(pv(e,Ave),pv(e,Ave+"-"+t),c.set(t,DFe)),()=>{this._engine.afterFlush(()=>{let h=o.indexOf(s);h>=0&&o.splice(h,1),this._triggers.has(t)||c.delete(t)})}}register(e,t){return this._triggers.has(e)?!1:(this._triggers.set(e,t),!0)}_getTrigger(e){let t=this._triggers.get(e);if(!t)throw Dni(e);return t}trigger(e,t,i,r=!0){let o=this._getTrigger(t),s=new xZ(this.id,t,e),c=this._engine.statesByElement.get(e);c||(pv(e,Ave),pv(e,Ave+"-"+t),this._engine.statesByElement.set(e,c=new Map));let h=c.get(t),g=new bZ(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&h&&g.absorbOptions(h.options),c.set(t,g),h||(h=DFe),!(g.value===_Z)&&h.value===g.value){if(!bri(h.params,g.params)){let F=[],L=o.matchStyles(h.value,h.params,F),z=o.matchStyles(g.value,g.params,F);F.length?this._engine.reportError(F):this._engine.afterFlush(()=>{eP(e,L),p1(e,z)})}return}let A=Ng(this._engine.playersByElement,e,[]);A.forEach(F=>{F.namespaceId==this.id&&F.triggerName==t&&F.queued&&F.destroy()});let k=o.matchTransition(h.value,g.value,e,g.params),O=!1;if(!k){if(!r)return;k=o.fallbackTransition,O=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:k,fromState:h,toState:g,player:s,isFallbackTransition:O}),O||(pv(e,vut),s.onStart(()=>{SU(e,vut)})),s.onDone(()=>{let F=this.players.indexOf(s);F>=0&&this.players.splice(F,1);let L=this._engine.playersByElement.get(e);if(L){let z=L.indexOf(s);z>=0&&L.splice(z,1)}}),this.players.push(s),A.push(s),s}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(t=>t.delete(e)),this._elementListeners.forEach((t,i)=>{this._elementListeners.set(i,t.filter(r=>r.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let t=this._engine.playersByElement.get(e);t&&(t.forEach(i=>i.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){let i=this._engine.driver.query(e,Rve,!0);i.forEach(r=>{if(r[dy])return;let o=this._engine.fetchNamespacesByElement(r);o.size?o.forEach(s=>s.triggerLeaveAnimation(r,t,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(e,t,i,r){let o=this._engine.statesByElement.get(e),s=new Map;if(o){let c=[];if(o.forEach((h,g)=>{if(s.set(g,h.value),this._triggers.has(g)){let x=this.trigger(e,g,_Z,r);x&&c.push(x)}}),c.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,s),i&&sk(c).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){let t=this._elementListeners.get(e),i=this._engine.statesByElement.get(e);if(t&&i){let r=new Set;t.forEach(o=>{let s=o.name;if(r.has(s))return;r.add(s);let h=this._triggers.get(s).fallbackTransition,g=i.get(s)||DFe,x=new bZ(_Z),C=new xZ(this.id,s,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:s,transition:h,fromState:g,toState:x,player:C,isFallbackTransition:!0})})}}removeNode(e,t){let i=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let r=!1;if(i.totalAnimations){let o=i.players.length?i.playersByQueriedElement.get(e):[];if(o&&o.length)r=!0;else{let s=e;for(;s=s.parentNode;)if(i.statesByElement.get(s)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(e),r)i.markElementAsRemoved(this.id,e,!1,t);else{let o=e[dy];(!o||o===Rut)&&(i.afterFlush(()=>this.clearElementCache(e)),i.destroyInnerAnimations(e),i._onRemovalComplete(e,t))}}insertNode(e,t){pv(e,this._hostClassName)}drainQueuedTransitions(e){let t=[];return this._queue.forEach(i=>{let r=i.player;if(r.destroyed)return;let o=i.element,s=this._elementListeners.get(o);s&&s.forEach(c=>{if(c.name==i.triggerName){let h=KFe(o,i.triggerName,i.fromState.value,i.toState.value);h._data=e,$Fe(i.player,c.phase,h,c.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):t.push(i)}),this._queue=[],t.sort((i,r)=>{let o=i.transition.ast.depCount,s=r.transition.ast.depCount;return o==0||s==0?o-s:this._engine.driver.containsElement(i.element,r.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},GFe=class{_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}constructor(e,t,i){this.bodyNode=e,this.driver=t,this._normalizer=i,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=(r,o)=>{}}get queuedPlayers(){let e=[];return this._namespaceList.forEach(t=>{t.players.forEach(i=>{i.queued&&e.push(i)})}),e}createNamespace(e,t){let i=new HFe(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(i,t):(this.newHostElements.set(t,i),this.collectEnterElement(t)),this._namespaceLookup[e]=i}_balanceNamespaceList(e,t){let i=this._namespaceList,r=this.namespacesByHostElement;if(i.length-1>=0){let s=!1,c=this.driver.getParentElement(t);for(;c;){let h=r.get(c);if(h){let g=i.indexOf(h);i.splice(g+1,0,e),s=!0;break}c=this.driver.getParentElement(c)}s||i.unshift(e)}else i.push(e);return r.set(t,e),e}register(e,t){let i=this._namespaceLookup[e];return i||(i=this.createNamespace(e,t)),i}registerTrigger(e,t,i){let r=this._namespaceLookup[e];r&&r.register(t,i)&&this.totalAnimations++}destroy(e,t){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let i=this._fetchNamespace(e);this.namespacesByHostElement.delete(i.hostElement);let r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1),i.destroy(t),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let t=new Set,i=this.statesByElement.get(e);if(i){for(let r of i.values())if(r.namespaceId){let o=this._fetchNamespace(r.namespaceId);o&&t.add(o)}}return t}trigger(e,t,i,r){if(Mve(t)){let o=this._fetchNamespace(e);if(o)return o.trigger(t,i,r),!0}return!1}insertNode(e,t,i,r){if(!Mve(t))return;let o=t[dy];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;let s=this.collectedLeaveElements.indexOf(t);s>=0&&this.collectedLeaveElements.splice(s,1)}if(e){let s=this._fetchNamespace(e);s&&s.insertNode(t,i)}r&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),pv(e,AFe)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),SU(e,AFe))}removeNode(e,t,i){if(Mve(t)){let r=e?this._fetchNamespace(e):null;r?r.removeNode(t,i):this.markElementAsRemoved(e,t,!1,i);let o=this.namespacesByHostElement.get(t);o&&o.id!==e&&o.removeNode(t,i)}else this._onRemovalComplete(t,i)}markElementAsRemoved(e,t,i,r,o){this.collectedLeaveElements.push(t),t[dy]={namespaceId:e,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:o}}listen(e,t,i,r,o){return Mve(t)?this._fetchNamespace(e).listen(t,i,r,o):()=>{}}_buildInstruction(e,t,i,r,o){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,i,r,e.fromState.options,e.toState.options,t,o)}destroyInnerAnimations(e){let t=this.driver.query(e,Rve,!0);t.forEach(i=>this.destroyActiveAnimationsForElement(i)),this.playersByQueriedElement.size!=0&&(t=this.driver.query(e,OFe,!0),t.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(e){let t=this.playersByElement.get(e);t&&t.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(e){let t=this.playersByQueriedElement.get(e);t&&t.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return sk(this.players).onDone(()=>e());e()})}processLeaveNode(e){let t=e[dy];if(t&&t.setForRemoval){if(e[dy]=Rut,t.namespaceId){this.destroyInnerAnimations(e);let i=this._fetchNamespace(t.namespaceId);i&&i.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}e.classList?.contains(AFe)&&this.markElementAsDisabled(e,!1),this.driver.query(e,uri,!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,r)=>this._balanceNamespaceList(i,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;ii()),this._flushFns=[],this._whenQuietFns.length){let i=this._whenQuietFns;this._whenQuietFns=[],t.length?sk(t).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(e){throw kni(e)}_flushAnimations(e,t){let i=new yZ,r=[],o=new Map,s=[],c=new Map,h=new Map,g=new Map,x=new Set;this.disabledNodes.forEach(We=>{x.add(We);let Ie=this.driver.query(We,cri,!0);for(let Be=0;Be{let Be=Tut+F++;O.set(Ie,Be),We.forEach(Ve=>pv(Ve,Be))});let L=[],z=new Set,j=new Set;for(let We=0;Wez.add(Ve)):j.add(Ie))}let K=new Map,ee=xut(A,Array.from(z));ee.forEach((We,Ie)=>{let Be=MFe+F++;K.set(Ie,Be),We.forEach(Ve=>pv(Ve,Be))}),e.push(()=>{k.forEach((We,Ie)=>{let Be=O.get(Ie);We.forEach(Ve=>SU(Ve,Be))}),ee.forEach((We,Ie)=>{let Be=K.get(Ie);We.forEach(Ve=>SU(Ve,Be))}),L.forEach(We=>{this.processLeaveNode(We)})});let ne=[],X=[];for(let We=this._namespaceList.length-1;We>=0;We--)this._namespaceList[We].drainQueuedTransitions(t).forEach(Be=>{let Ve=Be.player,$e=Be.element;if(ne.push(Ve),this.collectedEnterElements.length){let Gt=$e[dy];if(Gt&&Gt.setForMove){if(Gt.previousTriggersValues&&Gt.previousTriggersValues.has(Be.triggerName)){let ji=Gt.previousTriggersValues.get(Be.triggerName),an=this.statesByElement.get(Be.element);if(an&&an.has(Be.triggerName)){let en=an.get(Be.triggerName);en.value=ji,an.set(Be.triggerName,en)}}Ve.destroy();return}}let Fe=!C||!this.driver.containsElement(C,$e),Xe=K.get($e),ze=O.get($e),et=this._buildInstruction(Be,i,ze,Xe,Fe);if(et.errors&&et.errors.length){X.push(et);return}if(Fe){Ve.onStart(()=>eP($e,et.fromStyles)),Ve.onDestroy(()=>p1($e,et.toStyles)),r.push(Ve);return}if(Be.isFallbackTransition){Ve.onStart(()=>eP($e,et.fromStyles)),Ve.onDestroy(()=>p1($e,et.toStyles)),r.push(Ve);return}let Pt=[];et.timelines.forEach(Gt=>{Gt.stretchStartingKeyframe=!0,this.disabledNodes.has(Gt.element)||Pt.push(Gt)}),et.timelines=Pt,i.append($e,et.timelines);let Ii={instruction:et,player:Ve,element:$e};s.push(Ii),et.queriedElements.forEach(Gt=>Ng(c,Gt,[]).push(Ve)),et.preStyleProps.forEach((Gt,ji)=>{if(Gt.size){let an=h.get(ji);an||h.set(ji,an=new Set),Gt.forEach((en,ir)=>an.add(ir))}}),et.postStyleProps.forEach((Gt,ji)=>{let an=g.get(ji);an||g.set(ji,an=new Set),Gt.forEach((en,ir)=>an.add(ir))})});if(X.length){let We=[];X.forEach(Ie=>{We.push(Mni(Ie.triggerName,Ie.errors))}),ne.forEach(Ie=>Ie.destroy()),this.reportError(We)}let q=new Map,fe=new Map;s.forEach(We=>{let Ie=We.element;i.has(Ie)&&(fe.set(Ie,Ie),this._beforeAnimationBuild(We.player.namespaceId,We.instruction,q))}),r.forEach(We=>{let Ie=We.element;this._getPreviousPlayers(Ie,!1,We.namespaceId,We.triggerName,null).forEach(Ve=>{Ng(q,Ie,[]).push(Ve),Ve.destroy()})});let Se=L.filter(We=>wut(We,h,g)),pe=new Map;but(pe,this.driver,j,g,Yb).forEach(We=>{wut(We,h,g)&&Se.push(We)});let ie=new Map;k.forEach((We,Ie)=>{but(ie,this.driver,new Set(We),h,zie)}),Se.forEach(We=>{let Ie=pe.get(We),Be=ie.get(We);pe.set(We,new Map([...Ie?.entries()??[],...Be?.entries()??[]]))});let Re=[],Ue=[],Ee={};s.forEach(We=>{let{element:Ie,player:Be,instruction:Ve}=We;if(i.has(Ie)){if(x.has(Ie)){Be.onDestroy(()=>p1(Ie,Ve.toStyles)),Be.disabled=!0,Be.overrideTotalTime(Ve.totalTime),r.push(Be);return}let $e=Ee;if(fe.size>1){let Xe=Ie,ze=[];for(;Xe=Xe.parentNode;){let et=fe.get(Xe);if(et){$e=et;break}ze.push(Xe)}ze.forEach(et=>fe.set(et,$e))}let Fe=this._buildAnimation(Be.namespaceId,Ve,q,o,ie,pe);if(Be.setRealPlayer(Fe),$e===Ee)Re.push(Be);else{let Xe=this.playersByElement.get($e);Xe&&Xe.length&&(Be.parentPlayer=sk(Xe)),r.push(Be)}}else eP(Ie,Ve.fromStyles),Be.onDestroy(()=>p1(Ie,Ve.toStyles)),Ue.push(Be),x.has(Ie)&&r.push(Be)}),Ue.forEach(We=>{let Ie=o.get(We.element);if(Ie&&Ie.length){let Be=sk(Ie);We.setRealPlayer(Be)}}),r.forEach(We=>{We.parentPlayer?We.syncPlayerEvents(We.parentPlayer):We.destroy()});for(let We=0;We!Fe.destroyed);$e.length?vri(this,Ie,$e):this.processLeaveNode(Ie)}return L.length=0,Re.forEach(We=>{this.players.push(We),We.onDone(()=>{We.destroy();let Ie=this.players.indexOf(We);this.players.splice(Ie,1)}),We.play()}),Re}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,i,r,o){let s=[];if(t){let c=this.playersByQueriedElement.get(e);c&&(s=c)}else{let c=this.playersByElement.get(e);if(c){let h=!o||o==_Z;c.forEach(g=>{g.queued||!h&&g.triggerName!=r||s.push(g)})}}return(i||r)&&(s=s.filter(c=>!(i&&i!=c.namespaceId||r&&r!=c.triggerName))),s}_beforeAnimationBuild(e,t,i){let r=t.triggerName,o=t.element,s=t.isRemovalTransition?void 0:e,c=t.isRemovalTransition?void 0:r;for(let h of t.timelines){let g=h.element,x=g!==o,C=Ng(i,g,[]);this._getPreviousPlayers(g,x,s,c,t.toState).forEach(k=>{let O=k.getRealPlayer();O.beforeDestroy&&O.beforeDestroy(),k.destroy(),C.push(k)})}eP(o,t.fromStyles)}_buildAnimation(e,t,i,r,o,s){let c=t.triggerName,h=t.element,g=[],x=new Set,C=new Set,A=t.timelines.map(O=>{let F=O.element;x.add(F);let L=F[dy];if(L&&L.removedBeforeQueried)return new TT(O.duration,O.delay);let z=F!==h,j=yri((i.get(F)||pri).map(q=>q.getRealPlayer())).filter(q=>{let fe=q;return fe.element?fe.element===F:!1}),K=o.get(F),ee=s.get(F),ne=Cut(this._normalizer,O.keyframes,K,ee),X=this._buildPlayer(O,ne,j);if(O.subTimeline&&r&&C.add(F),z){let q=new xZ(e,c,F);q.setRealPlayer(X),g.push(q)}return X});g.forEach(O=>{Ng(this.playersByQueriedElement,O.element,[]).push(O),O.onDone(()=>mri(this.playersByQueriedElement,O.element,O))}),x.forEach(O=>pv(O,hut));let k=sk(A);return k.onDestroy(()=>{x.forEach(O=>SU(O,hut)),p1(h,t.toStyles)}),C.forEach(O=>{Ng(r,O,[]).push(k)}),k}_buildPlayer(e,t,i){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,i):new TT(e.duration,e.delay)}},xZ=class{constructor(e,t,i){this.namespaceId=e,this.triggerName=t,this.element=i,this._player=new TT,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((t,i)=>{t.forEach(r=>$Fe(e,i,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){let t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){Ng(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return this.queued?!1:this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){let t=this._player;t.triggerCallback&&t.triggerCallback(e)}};function mri(n,e,t){let i=n.get(e);if(i){if(i.length){let r=i.indexOf(t);i.splice(r,1)}i.length==0&&n.delete(e)}return i}function gri(n){return n??null}function Mve(n){return n&&n.nodeType===1}function _ri(n){return n=="start"||n=="done"}function yut(n,e){let t=n.style.display;return n.style.display=e??"none",t}function but(n,e,t,i,r){let o=[];t.forEach(h=>o.push(yut(h)));let s=[];i.forEach((h,g)=>{let x=new Map;h.forEach(C=>{let A=e.computeStyle(g,C,r);x.set(C,A),(!A||A.length==0)&&(g[dy]=fri,s.push(g))}),n.set(g,x)});let c=0;return t.forEach(h=>yut(h,o[c++])),s}function xut(n,e){let t=new Map;if(n.forEach(c=>t.set(c,[])),e.length==0)return t;let i=1,r=new Set(e),o=new Map;function s(c){if(!c)return i;let h=o.get(c);if(h)return h;let g=c.parentNode;return t.has(g)?h=g:r.has(g)?h=i:h=s(g),o.set(c,h),h}return e.forEach(c=>{let h=s(c);h!==i&&t.get(h).push(c)}),t}function pv(n,e){n.classList?.add(e)}function SU(n,e){n.classList?.remove(e)}function vri(n,e,t){sk(t).onDone(()=>n.processLeaveNode(e))}function yri(n){let e=[];return Nut(n,e),e}function Nut(n,e){for(let t=0;tr.add(o)):e.set(n,i),t.delete(n),!0}var IU=class{constructor(e,t,i){this._driver=t,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,o)=>{},this._transitionEngine=new GFe(e.body,t,i),this._timelineEngine=new jFe(e.body,t,i),this._transitionEngine.onRemovalComplete=(r,o)=>this.onRemovalComplete(r,o)}registerTrigger(e,t,i,r,o){let s=e+"-"+r,c=this._triggerCache[s];if(!c){let h=[],g=[],x=kut(this._driver,o,h,g);if(h.length)throw bni(r,h);g.length&&void 0,c=sri(r,x,this._normalizer),this._triggerCache[s]=c}this._transitionEngine.registerTrigger(t,r,c)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,i,r){this._transitionEngine.insertNode(e,t,i,r)}onRemove(e,t,i){this._transitionEngine.removeNode(e,t,i)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,i,r){if(i.charAt(0)=="@"){let[o,s]=uut(i),c=r;this._timelineEngine.command(o,t,s,c)}else this._transitionEngine.trigger(e,t,i,r)}listen(e,t,i,r,o){if(i.charAt(0)=="@"){let[s,c]=uut(i);return this._timelineEngine.listen(s,t,c,o)}return this._transitionEngine.listen(e,t,i,r,o)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e)}};function xri(n,e){let t=null,i=null;return Array.isArray(e)&&e.length?(t=kFe(e[0]),e.length>1&&(i=kFe(e[e.length-1]))):e instanceof Map&&(t=kFe(e)),t||i?new YFe(n,t,i):null}var EU=class EU{constructor(e,t,i){this._element=e,this._startStyles=t,this._endStyles=i,this._state=0;let r=EU.initialStylesByElement.get(e);r||EU.initialStylesByElement.set(e,r=new Map),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&p1(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(p1(this._element,this._initialStyles),this._endStyles&&(p1(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(EU.initialStylesByElement.delete(this._element),this._startStyles&&(eP(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(eP(this._element,this._endStyles),this._endStyles=null),p1(this._element,this._initialStyles),this._state=3)}};EU.initialStylesByElement=new WeakMap;var YFe=EU;function kFe(n){let e=null;return n.forEach((t,i)=>{wri(i)&&(e=e||new Map,e.set(i,t))}),e}function wri(n){return n==="display"||n==="position"}var Vve=class{constructor(e,t,i,r){this.element=e,this.keyframes=t,this.options=i,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map;let t=()=>this._onFinish();this.domPlayer.addEventListener("finish",t),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",t)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){let t=[];return e.forEach(i=>{t.push(Object.fromEntries(i))}),t}_triggerWebAnimation(e,t,i){return e.animate(this._convertKeyframesToObject(t),i)}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((i,r)=>{r!=="offset"&&e.set(r,this._finished?i:XFe(this.element,r))}),this.currentSnapshot=e}triggerCallback(e){let t=e==="start"?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}},Uve=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}containsElement(e,t){return Sut(e,t)}getParentElement(e){return WFe(e)}query(e,t,i){return Eut(e,t,i)}computeStyle(e,t,i){return XFe(e,t)}animate(e,t,i,r,o,s=[]){let c=r==0?"both":"forwards",h={duration:i,delay:r,fill:c};o&&(h.easing=o);let g=new Map,x=s.filter(k=>k instanceof Vve);jni(i,r)&&x.forEach(k=>{k.currentSnapshot.forEach((O,F)=>g.set(F,O))});let C=zni(t).map(k=>new Map(k));C=Hni(e,C,g);let A=xri(e,C);return new Vve(e,C,h,A)}};var Ove="@",Put="@.disabled",jve=class{constructor(e,t,i,r){this.namespaceId=e,this.delegate=t,this.engine=i,this._onDestroy=r,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(e){this.delegate.destroyNode?.(e)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,i,r=!0){this.delegate.insertBefore(e,t,i),this.engine.onInsert(this.namespaceId,t,e,r)}removeChild(e,t,i){this.engine.onRemove(this.namespaceId,t,this.delegate)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,i,r){this.delegate.setAttribute(e,t,i,r)}removeAttribute(e,t,i){this.delegate.removeAttribute(e,t,i)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,i,r){this.delegate.setStyle(e,t,i,r)}removeStyle(e,t,i){this.delegate.removeStyle(e,t,i)}setProperty(e,t,i){t.charAt(0)==Ove&&t==Put?this.disableAnimations(e,!!i):this.delegate.setProperty(e,t,i)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,i){return this.delegate.listen(e,t,i)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}},qFe=class extends jve{constructor(e,t,i,r,o){super(t,i,r,o),this.factory=e,this.namespaceId=t}setProperty(e,t,i){t.charAt(0)==Ove?t.charAt(1)=="."&&t==Put?(i=i===void 0?!0:!!i,this.disableAnimations(e,i)):this.engine.process(this.namespaceId,e,t.slice(1),i):this.delegate.setProperty(e,t,i)}listen(e,t,i){if(t.charAt(0)==Ove){let r=Cri(e),o=t.slice(1),s="";return o.charAt(0)!=Ove&&([o,s]=Sri(o)),this.engine.listen(this.namespaceId,r,o,s,c=>{let h=c._data||-1;this.factory.scheduleListenerCallback(h,i,c)})}return this.delegate.listen(e,t,i)}};function Cri(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}function Sri(n){let e=n.indexOf("."),t=n.substring(0,e),i=n.slice(e+1);return[t,i]}var Hve=class{constructor(e,t,i){this.delegate=e,this.engine=t,this._zone=i,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,t.onRemovalComplete=(r,o)=>{let s=o?.parentNode(r);s&&o.removeChild(s,r)}}createRenderer(e,t){let i="",r=this.delegate.createRenderer(e,t);if(!e||!t?.data?.animation){let g=this._rendererCache,x=g.get(r);if(!x){let C=()=>g.delete(r);x=new jve(i,r,this.engine,C),g.set(r,x)}return x}let o=t.id,s=t.id+"-"+this._currentId;this._currentId++,this.engine.register(s,e);let c=g=>{Array.isArray(g)?g.forEach(c):this.engine.registerTrigger(o,s,e,g.name,g)};return t.data.animation.forEach(c),new qFe(this,s,r,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,i){if(e>=0&&et(i));return}let r=this._animationCallbacksBuffer;r.length==0&&queueMicrotask(()=>{this._zone.run(()=>{r.forEach(o=>{let[s,c]=o;s(c)}),this._animationCallbacksBuffer=[]})}),r.push([t,i])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}};var Iri=(()=>{let e=class e extends IU{constructor(i,r,o){super(i,r,o)}ngOnDestroy(){this.flush()}};e.\u0275fac=function(r){return new(r||e)(Ke(Ln),Ke(tP),Ke(iP))},e.\u0275prov=It({token:e,factory:e.\u0275fac});let n=e;return n})();function Tri(){return new Pve}function Ari(n,e,t){return new Hve(n,e,t)}var Lut=[{provide:iP,useFactory:Tri},{provide:IU,useClass:Iri},{provide:Ib,useFactory:Ari,deps:[Zte,IU,Zi]}],Fut=[{provide:tP,useFactory:()=>new Uve},{provide:da,useValue:"BrowserAnimations"},...Lut],Dri=[{provide:tP,useClass:ZFe},{provide:da,useValue:"NoopAnimations"},...Lut],But=(()=>{let e=class e{static withConfig(i){return{ngModule:e,providers:i.disableAnimations?Dri:Fut}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=Oi({type:e}),e.\u0275inj=Mi({providers:Fut,imports:[Xte]});let n=e;return n})();Yie.loadFrontendConfig(dBe,hQe).then(n=>{let e=n,t=y3.msalInstance(e),i=y3.msalGuardConfig(e),r=y3.msalInterceptorConfig(e);UUe(dQe,{providers:[Cxe(lut,Xte,But),F4e({eventCoalescing:!0}),k6e(aut),{provide:eR,useValue:t},{provide:BB,useValue:i},{provide:zB,useValue:r},{provide:d0,useValue:e},{provide:c2,useFactory:()=>new Sz},{provide:$ne,useValue:SGe}]}).catch(o=>console.error(o))});