(self.webpackChunkstaffdb=self.webpackChunkstaffdb||[]).push([[792],{56806:(ei,rt,D)=>{"use strict";D.d(rt,{eh:()=>j,JP:()=>o,Lt:()=>_,R3:()=>d,oe:()=>E,q6:()=>m,h2:()=>h,rJ:()=>be,Qv:()=>ee,gs:()=>W,Xm:()=>_e});var r=D(1522);const d={lockCount:0,lock(){this.lockCount++},callbacks:[],callEffects(){if(this.lockCount--,this.lockCount<0)throw new Error("Unexpected Effect Call");if(0===this.lockCount){const z=this.callbacks;this.callbacks=[],z.forEach(X=>X())}}},L=(z,X)=>{if(!(z instanceof Object&&X instanceof Object))return z===X;const ye=Object.keys(z),xe=Object.keys(X);return ye.length===xe.length&&!ye.some(Ee=>z[Ee]!==X[Ee])};class j extends r.uA{constructor(){super(...arguments),this._pendingContext=this.context}componentWillReceiveProps(X,q){this._pendingContext=q??{}}shouldComponentUpdate(X,q){return!L(this.props,X)||!L(this.state,q)||!L(this.context,this._pendingContext)}}class o extends j{constructor(){super(...arguments),this._effects=[]}createEffects(){return[]}updateEffects(){}componentWillMount(){d.lock()}componentWillUpdate(X,q,ye){d.lock()}componentDidMount(){d.callbacks.push(()=>{this._effects=this.createEffects()}),d.callEffects()}componentDidUpdate(){d.callbacks.push(()=>this.updateEffects()),d.callEffects()}destroyEffects(){this._effects.forEach(X=>X.dispose())}componentWillUnmount(){this.destroyEffects()}}class E extends o{constructor(){super(...arguments),this.vDomElement=null}vDomUpdateClasses(){const X=this.vDomElement,q=X.className.length?X.className.split(" "):[],ye=q.filter(ge=>X.dxClasses.previous.indexOf(ge)<0),xe=X.dxClasses.previous.filter(ge=>q.indexOf(ge)<0);ye.forEach(ge=>{const Ee=X.dxClasses.removed.indexOf(ge);Ee>-1?X.dxClasses.removed.splice(Ee,1):X.dxClasses.added.push(ge)}),xe.forEach(ge=>{const Ee=X.dxClasses.added.indexOf(ge);Ee>-1?X.dxClasses.added.splice(Ee,1):X.dxClasses.removed.push(ge)})}componentDidMount(){const X=(0,r.UV)(this.$LI,!0);this.vDomElement=X,super.componentDidMount(),X.dxClasses=X.dxClasses||{removed:[],added:[],previous:[]},X.dxClasses.previous=X?.className.length?X.className.split(" "):[]}componentDidUpdate(){super.componentDidUpdate();const X=this.vDomElement;null!==X&&(X.dxClasses.added.forEach(q=>X.classList.add(q)),X.dxClasses.removed.forEach(q=>X.classList.remove(q)),X.dxClasses.previous=X.className.length?X.className.split(" "):[])}shouldComponentUpdate(X,q){const ye=super.shouldComponentUpdate(X,q);return ye&&this.vDomUpdateClasses(),ye}}let R=0;const m=function(z){const X=R++;return{id:X,defaultValue:z,Provider:class extends r.uA{getChildContext(){return Object.assign(Object.assign({},this.context),{[X]:this.props.value||z})}render(){return this.props.children}}}};class _{constructor(X,q){this.dependency=q,this.effect=X,this.destroy=X()}update(X){const q=this.dependency;X&&(this.dependency=X),(!X||X.some((ye,xe)=>q[xe]!==ye))&&(this.dispose(),this.destroy=this.effect())}dispose(){this.destroy&&this.destroy()}}const h=()=>new _(()=>{(0,r.mM)()},[]),s="a runtime error occured! Use Inferno in development environment to find the error.";function f(z){return null===z}function F(z,X,q,ye,xe,ge){const Ee=z.childFlags,he=z.children,Ie=z.props,ce=z.flags;if(1!==Ee){if(2===Ee)f(q)?(0,r._M)(he,X,ye,xe,null,ge):q=(q=ie(he,X,q,ye,xe,ge))?q.nextSibling:null;else if(16===Ee)f(q)?X.appendChild(document.createTextNode(he)):1!==X.childNodes.length||3!==q.nodeType?X.textContent=he:q.nodeValue!==he&&(q.nodeValue=he),q=null;else if(12&Ee){let de=!1;for(let pe=0,Be=he.length;pe0?(0,r._M)(We,X,ye,xe,q,ge):q=(q=ie(We,X,q,ye,xe,ge))?q.nextSibling:null,de=(16&We.flags)>0}}if(!(8192&ce)){let de=null;for(;q;)de=q.nextSibling,X.removeChild(q),q=de}}else!f(X.firstChild)&&!function g(z,X){return!!(X&&X.dangerouslySetInnerHTML&&X.dangerouslySetInnerHTML.__html&&function I(z,X){const q=document.createElement("i");return q.innerHTML=X,q.innerHTML===z.innerHTML}(z,X.dangerouslySetInnerHTML.__html))}(X,Ie)&&(X.textContent="",448&ce&&(X.defaultValue=""))}function Q(z,X,q){if(3!==q.nodeType)X.replaceChild(z.dom=document.createTextNode(z.children),q);else{const ye=z.children;q.nodeValue!==ye&&(q.nodeValue=ye),z.dom=q}return z.dom}function ie(z,X,q,ye,xe,ge){const Ee=z.flags|=16384;return 14&Ee?function C(z,X,q,ye,xe,ge,Ee){const Ie=z.ref;let de;if(ge){const pe=(0,r.EW)(z,z.type,z.props||r.MZ,ye,xe,Ee);de=ie(pe.$LI,X,q,pe.$CX,xe,Ee),(0,r.Gg)(Ie,pe,Ee)}else{const pe=(0,r.zF)((0,r.F1)(z,ye));de=ie(pe,X,q,ye,xe,Ee),z.children=pe,(0,r.Hq)(z,Ee)}return de}(z,X,q,ye,xe,(4&Ee)>0,ge):481&Ee?function Y(z,X,q,ye,xe,ge){const Ee=z.props,he=z.className,Ie=z.flags,ce=z.ref;return xe=xe||(32&Ie)>0,1!==q.nodeType?((0,r.C4)(z,null,ye,xe,null,ge),X.replaceChild(z.dom,q)):(z.dom=q,F(z,q,q.firstChild,ye,xe,ge),f(Ee)||(0,r.vI)(z,Ie,Ee,q,xe),function b(z){return null==z}(he)?""!==q.className&&q.removeAttribute("class"):xe?q.setAttribute("class",he):q.className=he,(0,r.J4)(ce,q,ge)),z.dom}(z,X,q,ye,xe,ge):16&Ee?Q(z,X,q):512&Ee?z.dom=q:8192&Ee?function se(z,X,q,ye,xe,ge){const Ee=z.children;return 2===z.childFlags?(Q(Ee,X,q),Ee.dom):(F(z,X,q,ye,xe,ge),function x(z){let X,q;for(;z;){if(X=z.flags,2033&X)return z.dom;q=z.children,z=8192&X?2===z.childFlags?q:q[q.length-1]:4&X?q.$LI:q}return null}(Ee[Ee.length-1]))}(z,X,q,ye,xe,ge):(function k(z){throw z||(z=s),new Error(`Inferno Error: ${z}`)}(),null)}function ee(z,X,q){let ye=X.firstChild;if(f(ye))(0,r.XX)(z,X,q);else{const xe=[];for(function O(z){return null===z||!1===z||!0===z||void 0===z}(z)||(ye=ie(z,X,ye,{},!1,xe));ye&&(ye=ye.nextSibling);)X.removeChild(ye);if(xe.length>0){let ge;for(;void 0!==(ge=xe.shift());)ge()}}X.$V=z,function w(z){return"function"==typeof z}(q)&&q()}var re=D(55937);const ne=z=>{var X,q;return(null===(X=z.container)||void 0===X?void 0:X.get(0))||(null===(q=z.item)||void 0===q?void 0:q.get(0))};function _e(z,X,q){setTimeout(()=>{(0,r.XX)((0,re.n)(z,X),ne(X))},0)}const be=(z,X,q)=>{const ye=X[z];return!!ye&&"string"!=typeof ye},oe=new Set(["animationIterationCount","borderImageOutset","borderImageSlice","border-imageWidth","boxFlex","boxFlexGroup","boxOrdinalGroup","columnCount","fillOpacity","flex","flexGrow","flexNegative","flexOrder","flexPositive","flexShrink","floodOpacity","fontWeight","gridColumn","gridRow","lineClamp","lineHeight","opacity","order","orphans","stopOpacity","strokeDasharray","strokeDashoffset","strokeMiterlimit","strokeOpacity","strokeWidth","tabSize","widows","zIndex","zoom"]),me=z=>"number"==typeof z||!Number.isNaN(Number(z)),we=(z,X)=>oe.has(z)?X:`${X}px`,N=/[A-Z]/g,G=z=>z.replace(N,"-$&").toLowerCase();function W(z){if(z instanceof Object)return Object.entries(z).reduce((X,[q,ye])=>(X[G(q)]=me(ye)?we(q,ye):ye,X),{})}},44703:(ei,rt,D)=>{"use strict";D.d(rt,{$Q:()=>E,B_:()=>L,FG:()=>j,Fc:()=>d,Hv:()=>m,Js:()=>h,bF:()=>_,rs:()=>o,tm:()=>v});var r=D(19057);const d=["de","en"],L=environment.APP_TITLE??"StaffDB",j=environment.culture??"de-DE",o=environment.language??"de",E=[{caption:"Mitarbeiter",path:"employee",loadChildren:()=>Promise.all([D.e(426),D.e(995),D.e(233),D.e(140)]).then(D.bind(D,50140)).then(s=>s.EmployeeModule),icon:"",messageCaption:"Employee"},{caption:"Abteilungen",path:"departments",loadChildren:()=>Promise.all([D.e(426),D.e(995),D.e(233),D.e(102)]).then(D.bind(D,86102)).then(s=>s.DepartmentModule),icon:"",messageCaption:"Department"},r.Ik,r.m0];var m=function(s){return s.Employee="employee",s.CostCentre="costcentre",s.Vendor="vendor",s.EmployeeStatus="employeestatus",s.Rang="rang",s.DocumentArt="documentart",s.Project="project",s.Department="department",s.WindreamSearch="windreamsearch",s.WindreamIndex="windreamindex",s.WindreamIndexToWindreamSearchToDepartment="windreamindextowindreamsearchtodepartment",s.WindreamSearchToDepartment="windreamsearchtodepartment",s.WindreamSearchItemToWindreamSearchToDepartment="windreamsearchitemtowindreamsearchtodepartment",s.WindreamSearchItem="windreamsearchitem",s.DocumentArtToDepartment="documentarttodepartment",s.EmployeeToDepartment="employeetodepartment",s.EmployeeToWebapp="employeetowebapp",s.WebApp="webapp",s.WebAppRole="webapprole",s.WebAppToDepartment="webapptodepartment",s.WebAppToWebAppRole="webapptowebapprole",s.EmployeeAttribute="employeeattribute",s.EmployeeToAttribute="employeetoattribute",s.WebAppAdditionalRole="webappadditionalrole",s.WebAppToWebAppAdditionalRole="webapptowebappadditionalrole",s.WindreamSearchToDepartmentCopyWindreamTile="windreamSearchToDepartment/CopyWindreamTile",s.DepartmentCopyWindreamTiles="department/copyWindreamTiles",s.Subsidiary="Subsidiary",s}(m||{}),_=function(s){return s[s.MainFunction=1]="MainFunction",s[s.AdditionalFunction=2]="AdditionalFunction",s}(_||{}),v=function(s){return s[s.Mitarbeiter=4]="Mitarbeiter",s}(v||{});const h=3e4},18406:(ei,rt,D)=>{"use strict";D.d(rt,{e:()=>Dp});var r=D(5194),d=D(18617),L=D(72318),j=D(76939),o=D(60177),E=D(54438),R=D(86600);let X=(()=>{class ft{static#e=this.\u0275fac=function(ze){return new(ze||ft)};static#t=this.\u0275mod=E.$C({type:ft});static#i=this.\u0275inj=E.G2t({imports:[o.MD,R.yE,j.jc,R.pZ,L.w5,d.Pd,R.yE]})}return ft})();D(49969);var ye=D(47987);D(36860);const Je={provide:new E.nKC("mat-menu-scroll-strategy"),deps:[ye.hJ],useFactory:function xi(ft){return()=>ft.scrollStrategies.reposition()}};var ui=D(23980);let st=(()=>{class ft{static#e=this.\u0275fac=function(ze){return new(ze||ft)};static#t=this.\u0275mod=E.$C({type:ft});static#i=this.\u0275inj=E.G2t({providers:[Je],imports:[o.MD,R.yE,R.pZ,ye.z_,ui.Gj,R.yE]})}return ft})();var Wt=D(85956),Vt=D(55911);D(14085),D(45024),D(89417);let po=(()=>{class ft{static#e=this.\u0275fac=function(ze){return new(ze||ft)};static#t=this.\u0275mod=E.$C({type:ft});static#i=this.\u0275inj=E.G2t({imports:[R.yE,R.pZ,R.yE]})}return ft})();var sa=D(15311),Pr=D(74854),no=D(43684),ja=D(20962),Na=D(83269),uo=D(44613);const Nn={provide:new E.nKC("mat-select-scroll-strategy"),deps:[ye.hJ],useFactory:function ji(ft){return()=>ft.scrollStrategies.reposition()}};let Ho=(()=>{class ft{static#e=this.\u0275fac=function(ze){return new(ze||ft)};static#t=this.\u0275mod=E.$C({type:ft});static#i=this.\u0275inj=E.G2t({providers:[Nn],imports:[o.MD,ye.z_,Na.zI,R.yE,ui.Gj,uo.C,Na.zI,R.yE]})}return ft})();const ws={provide:new E.nKC("mat-tooltip-scroll-strategy"),deps:[ye.hJ],useFactory:function hs(ft){return()=>ft.scrollStrategies.reposition({scrollThrottle:20})}};let gs=(()=>{class ft{static#e=this.\u0275fac=function(ze){return new(ze||ft)};static#t=this.\u0275mod=E.$C({type:ft});static#i=this.\u0275inj=E.G2t({providers:[ws],imports:[d.Pd,o.MD,ye.z_,R.yE,R.yE,ui.Gj]})}return ft})();var _s=D(21413);let xs=(()=>{class ft{constructor(){this.changes=new _s.B,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(ve,ze,dt)=>{if(0==dt||0==ze)return`0 of ${dt}`;const ti=ve*ze;return`${ti+1} \u2013 ${ti<(dt=Math.max(dt,0))?Math.min(ti+ze,dt):ti+ze} of ${dt}`}}static#e=this.\u0275fac=function(ze){return new(ze||ft)};static#t=this.\u0275prov=E.jDH({token:ft,factory:ft.\u0275fac,providedIn:"root"})}return ft})();const Il={provide:xs,deps:[[new E.Xx1,new E.kdw,xs]],useFactory:function oc(ft){return ft||new xs}};let Yi=(()=>{class ft{static#e=this.\u0275fac=function(ze){return new(ze||ft)};static#t=this.\u0275mod=E.$C({type:ft});static#i=this.\u0275inj=E.G2t({providers:[Il],imports:[o.MD,Wt.wG,Ho,gs,R.yE]})}return ft})();D(28203),D(86648),D(84412),D(74402),D(7673),D(56977),D(96697);let Rs=(()=>{class ft{static#e=this.\u0275fac=function(ze){return new(ze||ft)};static#t=this.\u0275mod=E.$C({type:ft});static#i=this.\u0275inj=E.G2t({imports:[ui.E9]})}return ft})(),nd=(()=>{class ft{static#e=this.\u0275fac=function(ze){return new(ze||ft)};static#t=this.\u0275mod=E.$C({type:ft});static#i=this.\u0275inj=E.G2t({imports:[Rs,R.yE,R.yE]})}return ft})(),Qa=(()=>{class ft{static#e=this.\u0275fac=function(ze){return new(ze||ft)};static#t=this.\u0275mod=E.$C({type:ft});static#i=this.\u0275inj=E.G2t({imports:[R.yE,R.pZ,R.yE]})}return ft})();D(18359);var lu=D(67336);D(53719),D(59042);let th=(()=>{class ft{constructor(){this.changes=new _s.B,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year",this.startDateLabel="Start date",this.endDateLabel="End date"}formatYearRange(ve,ze){return`${ve} \u2013 ${ze}`}formatYearRangeLabel(ve,ze){return`${ve} to ${ze}`}static#e=this.\u0275fac=function(ze){return new(ze||ft)};static#t=this.\u0275prov=E.jDH({token:ft,factory:ft.\u0275fac,providedIn:"root"})}return ft})();const Ce={provide:new E.nKC("mat-datepicker-scroll-strategy"),deps:[ye.hJ],useFactory:function te(ft){return()=>ft.scrollStrategies.reposition()}};let jr=(()=>{class ft{static#e=this.\u0275fac=function(ze){return new(ze||ft)};static#t=this.\u0275mod=E.$C({type:ft});static#i=this.\u0275inj=E.G2t({providers:[th,Ce],imports:[o.MD,Qa,ye.z_,d.Pd,j.jc,R.yE,ui.Gj]})}return ft})();var wr=D(224);let ka=(()=>{class ft{static#e=this.\u0275fac=function(ze){return new(ze||ft)};static#t=this.\u0275mod=E.$C({type:ft});static#i=this.\u0275inj=E.G2t({imports:[R.Np,R.yE,R.Np,R.yE]})}return ft})();var qa=D(82153);let Cl=(()=>{class ft{static#e=this.\u0275fac=function(ze){return new(ze||ft)};static#t=this.\u0275mod=E.$C({type:ft});static#i=this.\u0275inj=E.G2t({imports:[d.Pd,R.yE,R.yE]})}return ft})();var gl=D(90882),ls=D(99213);let Do=(()=>{class ft{static#e=this.\u0275fac=function(ze){return new(ze||ft)};static#t=this.\u0275mod=E.$C({type:ft});static#i=this.\u0275inj=E.G2t({imports:[R.pZ,R.yE,R.yE]})}return ft})();D(57786),D(99172);const Gs=new E.nKC("mat-chips-default-options");let Jh=(()=>{class ft{static#e=this.\u0275fac=function(ze){return new(ze||ft)};static#t=this.\u0275mod=E.$C({type:ft});static#i=this.\u0275inj=E.G2t({providers:[R.es,{provide:Gs,useValue:{separatorKeyCodes:[lu.Fm]}}],imports:[R.yE]})}return ft})();var Qh=D(1776);let Dp=(()=>{class ft{static#e=this.\u0275fac=function(ze){return new(ze||ft)};static#t=this.\u0275mod=E.$C({type:ft});static#i=this.\u0275inj=E.G2t({providers:[jr],imports:[r.$D,X,st,Wt.wG,Vt.s5,ls.m_,gl.vg,Cl,qa.Wh,ka,wr.mz,uo.C,Ho,Do,jr,Jh,gs,nd,Yi,ja.ic,Qh.A8,no.Dy,Pr.eB,sa.KR,po]})}return ft})()},92:(ei,rt,D)=>{"use strict";D.d(rt,{d:()=>ee});var r=D(60177),d=D(54438),L=D(89417),j=D(19664),o=D(33514),E=D(37712),R=D(94753),m=D(15311),_=D(18406),v=D(99830);let h=(()=>{class re{set greater(_e){this.valueFromExcl=_e,this.control?.updateValueAndValidity()}set notless(_e){this.valueFromIncl=_e,this.control?.updateValueAndValidity()}set notgreater(_e){this.valueToIncl=_e,this.control?.updateValueAndValidity()}set less(_e){this.valueToExcl=_e,this.control?.updateValueAndValidity()}set isValid(_e){this.valid=_e,this.control?.updateValueAndValidity()}constructor(){this.valid=!0}validate(_e){if(this.control=_e,null===_e.value||"undefined"===_e.value||""===_e.value)return null;const be=+_e.value;return(this.valueFromExcl||0===this.valueFromExcl)&&be<=this.valueFromExcl||(this.valueFromIncl||0===this.valueFromIncl)&&bethis.valueToIncl||(this.valueToExcl||0===this.valueToExcl)&&be>=this.valueToExcl||!this.valid?{validateEqual:!1}:null}static#e=this.\u0275fac=function(be){return new(be||re)};static#t=this.\u0275dir=d.FsC({type:re,selectors:[["","hensel-validator",""]],inputs:{greater:"greater",notless:"notless",notgreater:"notgreater",less:"less",isValid:"isValid"},standalone:!0,features:[d.Jv_([{provide:L.cz,useExisting:(0,d.Rfq)(()=>re),multi:!0}])]})}return re})();var s=D(67336);let b=(()=>{class re{set henselDecimal(_e){this.noOfDecimals=_e}constructor(_e,be,oe){this.elementRef=_e,this.localeId=be,this.control=oe,this.focused=!1,this.noOfDecimals=2,this.transformAnyway=!1,this.henselDecimalAllowEmpty=!1,this.transform=(me,we)=>{const N=null==this.control.value;(this.transformAnyway||!this.focused)&&(!N||this.el.value)&&(this.el.value=(N||""===this.control.value)&&this.henselDecimalAllowEmpty?null:(0,r.ZV)(+this.control.value,this.localeId,`1.${me}-${we}`),this.transformAnyway=!1)},this.el=this.elementRef.nativeElement}useDirective(){return null!=this.noOfDecimals}onFocus(){this.useDirective()&&(this.previousValue=this.control.value,this.transform(0,this.noOfDecimals),this.focused=!0,this.el.select())}onKeyDown(_e){return!this.useDirective()||_e.which!==s._f||(_e.stopPropagation(),this.transformAnyway=!0,this.control.control.setValue(!this.previousValue&&this.henselDecimalAllowEmpty?this.previousValue:+(this.previousValue??0)),!1)}onBlur(_e){this.useDirective()&&(this.focused=!1,this.transform(this.noOfDecimals,this.noOfDecimals),(isNaN(this.control.value)||!this.control.value)&&!this.henselDecimalAllowEmpty&&this.control.control.setValue(0))}ngAfterViewInit(){}ngOnInit(){this.useDirective()&&(this.subscription=this.control.valueChanges.subscribe(()=>setTimeout(()=>{this.transform(this.noOfDecimals,this.noOfDecimals)},0)))}ngOnDestroy(){this.subscription?.unsubscribe()}static#e=this.\u0275fac=function(be){return new(be||re)(d.rXU(d.aKT),d.rXU(d.xe9),d.rXU(L.vO,8))};static#t=this.\u0275dir=d.FsC({type:re,selectors:[["","henselDecimal",""]],hostBindings:function(be,oe){1&be&&d.bIt("focus",function(we){return oe.onFocus(we.target.value)})("keydown",function(we){return oe.onKeyDown(we)})("blur",function(we){return oe.onBlur(we.target.value)})},inputs:{henselDecimal:"henselDecimal",henselDecimalAllowEmpty:"henselDecimalAllowEmpty"},standalone:!0})}return re})();var O=D(12748),w=D(62855),f=D(44613),k=D(224);const I=["cbInput"],x=["hs_matformfield"],g=["hensel_input"],C=[[["","hensel-input-textSuffix",""]],[["","hensel-input-suffix",""]],[["","hensel-input-error",""]]],F=["[hensel-input-textSuffix]","[hensel-input-suffix]","[hensel-input-error]"];function Y(re,ne){if(1&re&&(d.j41(0,"mat-label"),d.EFF(1),d.k0s()),2&re){const _e=d.XpG();d.R7$(),d.JRh(_e.label)}}function Q(re,ne){if(1&re&&(d.j41(0,"mat-hint")(1,"div"),d.EFF(2),d.nI1(3,"translate"),d.k0s()()),2&re){const _e=d.XpG();d.R7$(),d.Aen("color: red; background-color:"+_e.computedBackgroundColor+";"),d.R7$(),d.SpI(" ",d.bMT(3,3,_e.hint)," ")}}function se(re,ne){if(1&re&&(d.j41(0,"span",9),d.EFF(1),d.k0s()),2&re){const _e=d.XpG();d.R7$(),d.JRh(_e.getIcon())}}function ie(re,ne){if(1&re&&(d.j41(0,"mat-error"),d.EFF(1),d.k0s()),2&re){const _e=d.XpG();d.R7$(),d.SpI(" ",_e.errorMessageFn(_e.value)," ")}}let ee=(()=>{class re{get required(){return this._required}set required(_e){"string"==typeof _e&&(_e="false"!==_e),this.setRequired(_e),this.updateParent()}get disabled(){return this._disabled}set disabled(_e){this.setDisable("string"==typeof _e?"false"!==_e:_e)}set ngModel(_e){this.setValueInternally(_e,!0),this.lastValue=this._value}get ngModel(){return this.value}get value(){return this._value}get parent(){return this._parent}set parent(_e){this._parent=_e??this._parentForm,this.hsRequiredsubscription?.unsubscribe(),this.hsRequiredsubscription=this.parent?.valueChanges.subscribe(()=>this.checkRequired()),this.markAsTouchedDirty()}get canClear(){return this._canClear}set canClear(_e){this._canClear=_e}get title(){return this._title}set title(_e){this._title=_e}get lastValue(){return this._lastValue}set lastValue(_e){this._lastValue=_e}get formGroup(){return this.parent?.control}constructor(_e,be,oe){this.translate=_e,this.localeService=be,this._parentForm=oe,this._disabled=!1,this._value=null,this.ngModelChange=new d.bkB,this.width="100%",this.backgroundColor="inherit",this.type="text",this.id="",this.name="",this.hsClass="",this.autofocus=!1,this.autocomplete="",this._parent=null,this._canClear=!0,this.focus=new d.bkB,this.blur=new d.bkB,this.tabindex=0,this._title="",this.suffix="",this.prefix="",this.leadZero=!0,this.separatorLimit="0",this.itemsControl=new L.MJ,this.hasFocus=!1,this.showInputField=!0,this.initialised=!1,this.takeFocus=()=>{this.hasFocus=!0,this.focus.emit(this)},this.leaveFocus=()=>{this.hasFocus=!1,this.blur.emit(this)}}ngOnInit(){setTimeout(()=>{this.parent||(this.parent=this._parent)},0)}ngAfterViewInit(){setTimeout(()=>{this.initialised=!0,this.computedBackgroundColor=this.getBackgroundColor(this.hsElementRef.nativeElement)},0)}setDisable(_e){this._disabled=_e,this.disabled?this.itemsControl.disable():this.itemsControl.enable()}setRequired(_e){this._required=_e}setValueInternally(_e,be=!1){_e!==this._value&&(this._value=_e,this.itemsControl.setValue(this._value),be&&this.updateParent())}getBackgroundColor(_e){const be=window.getComputedStyle(_e,null).getPropertyValue("background-color");return"rgba(0, 0, 0, 0)"===be&&_e?.parentElement?this.getBackgroundColor(_e.parentElement):be}checkRequired(){this.requiredError()&&this.formGroup?.setErrors({required:!0})}requiredError(){let _e=this.required;return!this.disabled&&void 0!==_e&&!1!==_e&&this.isEmpty()}isEmpty(){return!this._value}updateParent(){}ngOnDestroy(){this.hsRequiredsubscription?.unsubscribe()}getIcon(){return this.displayIconFn?this.displayIconFn(this):null}markAsDirty(){this.hsMatFormField?._control?.ngControl?.control&&(this.hsMatFormField._control.ngControl.control.markAsDirty(),this.updateParent())}markAsTouched(){this.hsMatFormField?._control?.ngControl?.control&&(this.hsMatFormField._control.ngControl.control.markAsTouched(),this.updateParent())}markAsTouchedDirty(){this.hsMatFormField?._control?.ngControl?.control&&this.required&&this.isEmpty()&&(this.hsMatFormField._control.ngControl.control.markAsTouched(),this.hsMatFormField._control.ngControl.control.markAsDirty(),this.updateParent())}onChange(_e){_e!==this.value&&(this._value=_e,console.log("--",_e),this.updateParent(),this.ngModelChange.emit(_e))}static#e=this.\u0275fac=function(be){return new(be||re)(d.rXU(O.X),d.rXU(w.i),d.rXU(L.cV,8))};static#t=this.\u0275cmp=d.VBU({type:re,selectors:[["hensel-input"]],viewQuery:function(be,oe){if(1&be&&(d.GBs(m.cm,5),d.GBs(I,5),d.GBs(x,5),d.GBs(g,5)),2&be){let me;d.mGM(me=d.lsd())&&(oe.autocompleteTrigger=me.first),d.mGM(me=d.lsd())&&(oe.cbInput=me.first),d.mGM(me=d.lsd())&&(oe.hsMatFormField=me.first),d.mGM(me=d.lsd())&&(oe.hsElementRef=me.first)}},inputs:{required:"required",disabled:"disabled",validate:"validate",ngModel:"ngModel",label:"label",placeholder:"placeholder",width:"width",backgroundColor:"backgroundColor",hint:"hint",type:"type",displayIconFn:"displayIconFn",id:"id",name:"name",hsClass:"hsClass",autofocus:"autofocus",maxlength:"maxlength",readonly:"readonly",autocomplete:"autocomplete",parent:"parent",canClear:"canClear",defaultValue:"defaultValue",tabindex:"tabindex",errorMessageFn:"errorMessageFn",title:"title",mask:"mask",suffix:"suffix",prefix:"prefix",decimalMarker:"decimalMarker",thousandSeparator:"thousandSeparator",leadZero:"leadZero",separatorLimit:"separatorLimit",greater:"greater",notless:"notless",notgreater:"notgreater",less:"less",henselDecimal:"henselDecimal",henselDecimalAllowEmpty:"henselDecimalAllowEmpty"},outputs:{value:"value",ngModelChange:"ngModelChange",focus:"focus",blur:"blur"},standalone:!0,features:[d.aNF],ngContentSelectors:F,decls:16,vars:41,consts:[["hensel_input",""],["hs_matformfield",""],["cbInput",""],["tabindex","-1",1,"hs_div",3,"title"],[4,"ngIf"],["class","material-icons",4,"ngIf"],["matInput","","hensel-validator","",1,"mat-select-value-text",3,"blur","focus","input","type","maxlength","placeholder","formControl","required","readonly","name","autocomplete","id","tabindex","autofocus","mask","decimalMarker","thousandSeparator","prefix","suffix","leadZero","separatorLimit","greater","notless","notgreater","less","henselDecimal","henselDecimalAllowEmpty"],["matTextSuffix",""],["matSuffix",""],[1,"material-icons"]],template:function(be,oe){if(1&be){const me=d.RV6();d.NAR(C),d.j41(0,"span",3,0)(2,"mat-form-field",null,1),d.DNE(4,Y,2,1,"mat-label",4)(5,Q,4,5,"mat-hint",4)(6,se,2,1,"span",5),d.j41(7,"input",6,2),d.bIt("blur",function(){return d.eBV(me),d.Njj(oe.leaveFocus())})("focus",function(){return d.eBV(me),d.Njj(oe.takeFocus())})("input",function(N){return d.eBV(me),d.Njj(oe.onChange(N.target.value))}),d.k0s(),d.j41(9,"span",7),d.SdG(10),d.k0s(),d.j41(11,"span",8),d.SdG(12,1),d.k0s(),d.j41(13,"mat-error"),d.SdG(14,2),d.k0s(),d.DNE(15,ie,2,1,"mat-error",4),d.k0s()()}2&be&&(d.xc7("pointer-events",oe.disabled?"none":void 0)("width",oe.width),d.Y8G("title",oe.title),d.R7$(2),d.HbH("hs_form"+(oe.placeholder?"":" no-placeholder")+" "+oe.hsClass),d.xc7("background-color",oe.backgroundColor)("width",oe.width)("visibility",oe.showInputField?"visible":"hidden"),d.R7$(2),d.Y8G("ngIf",oe.label),d.R7$(),d.Y8G("ngIf",oe.hint),d.R7$(),d.Y8G("ngIf",oe.displayIconFn),d.R7$(),d.Y8G("type",oe.type)("maxlength",oe.maxlength)("placeholder",oe.placeholder)("formControl",oe.itemsControl)("required",oe.required)("readonly",oe.readonly)("name",oe.name)("autocomplete",oe.autocomplete)("id",oe.id)("tabindex",oe.showInputField?oe.tabindex:-1)("autofocus",oe.autofocus||""===oe.autofocus)("mask",oe.mask)("decimalMarker",oe.decimalMarker)("thousandSeparator",oe.thousandSeparator)("prefix",oe.prefix)("suffix",oe.suffix)("leadZero",oe.leadZero)("separatorLimit",oe.separatorLimit)("greater",oe.greater)("notless",oe.notless)("notgreater",oe.notgreater)("less",oe.less)("henselDecimal",oe.henselDecimal)("henselDecimalAllowEmpty",oe.henselDecimalAllowEmpty),d.R7$(8),d.Y8G("ngIf",oe.errorMessageFn))},dependencies:[r.MD,r.bT,_.e,f.k5,f.Ky,f.V3,f.aw,f.xZ,k.aL,L.YN,L.me,L.BC,L.YS,L.tU,L.X1,L.l_,o.L,E.U,j.h,j.D9,R.N,v.Zr,h,b],styles:[".cell_positive_balance{color:#76b82a} .cell_negative_balance{color:#b22222}.hs_div[_ngcontent-%COMP%]{outline:none;pointer-events:auto}.hs_pointer[_ngcontent-%COMP%]{cursor:pointer} .hs_form:has(.material-icons.ng-star-inserted) .mat-form-field-suffix{bottom:8px} .hs_form.no-placeholder .mat-form-field-infix{border-top-width:0px}"]})}return re})()},75445:(ei,rt,D)=>{"use strict";D.d(rt,{N:()=>w});var r=D(44232),d=D(74854),L=D(54438),j=D(19057),o=D(12748),E=D(60177),R=D(85956),m=D(99213),_=D(1776),v=D(89417),h=D(92),s=D(19664);function b(f,k){1&f&&L.nrm(0,"mat-spinner",13)}function O(f,k){if(1&f&&(L.j41(0,"p",14),L.EFF(1),L.k0s()),2&f){const I=L.XpG();L.R7$(),L.SpI(" ",I.errorMsg," ")}}let w=(()=>{class f{static#e=this.LOGIN_IS_SHOWN=!1;constructor(I,x,g,C,F){this.dialogRef=I,this.globals=x,this.translate=g,this.environment=F,this.hide=!0,this.showSpinner=!1,this.overHeader=this.globals.appTitleWithVersion,this.header=g.instant("core.caption.registration"),this.errorMsg=C.errorMsg,this.authorizationService=C.authorizationService,this.userSubscription=this.authorizationService.loginAction$.subscribe(Y=>{this.showSpinner=!1,Y.result?this.close():this.errorMsg=Y.errMsg})}ngAfterViewInit(){f.LOGIN_IS_SHOWN=!0}close(){this.dialogRef.close()}ngOnDestroy(){this.userSubscription.unsubscribe(),f.LOGIN_IS_SHOWN=!1}login(I,x){!I||!x||(this.showSpinner=!0,this.authorizationService.login(I,x))}static#t=this.\u0275fac=function(x){return new(x||f)(L.rXU(d.RN),L.rXU(j.RV),L.rXU(o.X),L.rXU(d.xh),L.rXU(r.i2))};static#i=this.\u0275cmp=L.VBU({type:f,selectors:[["app-login-popup"]],decls:22,vars:23,consts:[["popupForm","ngForm"],["loginname",""],["passw",""],[1,"PopupContainer"],[1,"messageOverHeader"],["mat-dialog-title","",1,"messageBoxHeader"],[1,"PopupContent"],["class","spinner","mode","indeterminate",4,"ngIf"],["required","",1,"login-name",3,"keydown.enter","placeholder","readonly"],["required","",1,"login-password",3,"keydown.enter","placeholder","type","readonly"],["hensel-input-suffix","","mat-icon-button","","tabindex","-1",3,"click","disabled"],["mat-stroked-button","","color","accent",1,"login-btn-block",3,"click","disabled"],["class","login-error",4,"ngIf"],["mode","indeterminate",1,"spinner"],[1,"login-error"]],template:function(x,g){if(1&x){const C=L.RV6();L.j41(0,"form",3,0)(2,"a",4),L.EFF(3),L.k0s(),L.j41(4,"h3",5),L.EFF(5),L.k0s(),L.j41(6,"mat-dialog-content",6),L.DNE(7,b,1,0,"mat-spinner",7),L.j41(8,"hensel-input",8,1),L.nI1(10,"translate"),L.bIt("keydown.enter",function(Y){return L.eBV(C),L.Njj(Y.preventDefault())}),L.k0s(),L.j41(11,"hensel-input",9,2),L.nI1(13,"translate"),L.bIt("keydown.enter",function(Y){L.eBV(C);const Q=L.sdS(9),se=L.sdS(12);return Y.stopPropagation(),L.Njj(g.login(Q.value,se.value))}),L.j41(14,"button",10),L.nI1(15,"translate"),L.bIt("click",function(){return L.eBV(C),L.Njj(g.hide=!g.hide)}),L.j41(16,"mat-icon"),L.EFF(17),L.k0s()()(),L.j41(18,"button",11),L.bIt("click",function(){L.eBV(C);const Y=L.sdS(9),Q=L.sdS(12);return L.Njj(g.login(Y.value,Q.value))}),L.EFF(19),L.nI1(20,"translate"),L.k0s(),L.DNE(21,O,2,1,"p",12),L.k0s()()}if(2&x){let C;const F=L.sdS(9),Y=L.sdS(12);L.R7$(3),L.JRh(g.overHeader),L.R7$(2),L.JRh(g.header),L.R7$(2),L.Y8G("ngIf",g.showSpinner),L.R7$(),L.FS9("placeholder",L.bMT(10,15,null!==(C=g.environment.caption_loginname)&&void 0!==C?C:"core.caption.username")),L.Y8G("readonly",g.showSpinner),L.R7$(3),L.FS9("placeholder",L.bMT(13,17,"core.caption.password")),L.Y8G("type",g.hide?"password":"text")("readonly",g.showSpinner),L.R7$(3),L.Y8G("disabled",g.showSpinner),L.BMQ("aria-label",L.bMT(15,19,"core.caption.hidepassword"))("aria-pressed",g.hide),L.R7$(3),L.JRh(g.hide?"visibility_off":"visibility"),L.R7$(),L.Y8G("disabled",g.showSpinner||!F.value||!Y.value),L.R7$(),L.SpI(" ",L.bMT(20,21,"core.caption.login")," "),L.R7$(2),L.Y8G("ngIf",!!g.errorMsg)}},dependencies:[E.bT,R.iV,m.An,_.wS,d.KI,d.PQ,v.qT,v.cb,v.cV,h.d,s.D9],styles:['.cell_positive_balance{color:#76b82a} .cell_negative_balance{color:#b22222}.PopupContainer[_ngcontent-%COMP%]{width:330px;padding:4px 20px 10px;font-size:14px}@media only screen and (max-width: 520px){.PopupContainer[_ngcontent-%COMP%]{width:calc(100% - 40px)}}.messageOverHeader[_ngcontent-%COMP%]{color:#0b3a62;display:block;height:0px;top:-15px;left:-25px;position:relative}.login-header[_ngcontent-%COMP%]{color:#0b3a62;font-size:30px;margin:30px 0;font-weight:700}.PopupContent[_ngcontent-%COMP%]{padding:0;margin:0;overflow:hidden;display:grid;height:100%;grid-template-rows:auto auto auto auto;grid-template-columns:minmax(0,1fr);grid-column-gap:15px;grid-template-areas:"login-name" "login-password" "login-btn-block" "login-error"}.messageBoxHeader[_ngcontent-%COMP%]{text-align:center}.mat-stroked-button.mat-accent[_ngcontent-%COMP%]{color:#fff;background:#0b3a62}.login-error[_ngcontent-%COMP%]{padding:16px;color:#e71010;background-color:#78b7e5;border-color:#0b3a62}.login-btn-block[_ngcontent-%COMP%]{margin-top:20px;grid-area:login-btn-block}.login-name[_ngcontent-%COMP%]{grid-area:login-name}.login-password[_ngcontent-%COMP%]{grid-area:login-password}.spinner[_ngcontent-%COMP%]{margin-top:-140px;margin-left:35%;z-index:10}.mat-stroked-button[disabled][_ngcontent-%COMP%]{background-color:#00000042;color:#00000075}']})}return f})()},70753:(ei,rt,D)=>{"use strict";D.d(rt,{F:()=>R});var r=D(67336),d=D(54438),L=D(19057),j=D(74854),o=D(44613);const E=["popupForm"];let R=(()=>{class m{get focusedItem(){return this._focusedItem}set focusedItem(v){this._focusedItem=v}constructor(){this.readOnly=!1,this.data=(0,d.WQX)(j.xh),this.globals=(0,d.WQX)(L.RV),this.dialogRef=(0,d.WQX)(j.RN),this.save=this.save.bind(this),this.baseEntityWrapper=this.data.baseEntityWrapper,this.keyItemName=this.data.keyItemName,this.description=this.data.description,this.readOnly=this.data.readOnly,this.list=this.data.list,this._focusedItem=this.baseEntityWrapper?.entity}ngAfterViewInit(){this.lastDetailForm=this.baseEntityWrapper.detailForm,this.baseEntityWrapper.detailForm=this.detailForm;const v=this;setTimeout(()=>{v.materialInputFields.forEach(h=>h._control.ngControl.control.markAsDirty())},0)}close(v){this.baseEntityWrapper.detailForm=this.lastDetailForm,this.dialogRef.close(v)}popupKeyboardInput(v){return!(!this.baseEntityWrapper.keyDownListenerStopped&&v.which===r._f&&(v.stopPropagation(),this.cancel(),1))}cancel(){this.baseEntityWrapper.cancelWithSave(this.save,()=>this.close(!1))}save(){this.baseEntityWrapper.save(()=>this.close(!0))}static#e=this.\u0275fac=function(h){return new(h||m)};static#t=this.\u0275cmp=d.VBU({type:m,selectors:[["app-popup-base"]],viewQuery:function(h,s){if(1&h&&(d.GBs(E,5),d.GBs(o.Ky,5)),2&h){let b;d.mGM(b=d.lsd())&&(s.detailForm=b.first),d.mGM(b=d.lsd())&&(s.materialInputFields=b)}},hostBindings:function(h,s){1&h&&d.bIt("keydown",function(O){return s.popupKeyboardInput(O)},!1,d.tSv)},decls:0,vars:0,template:function(h,s){},styles:['.buttonLayoutCancel[_ngcontent-%COMP%]{font-size:16px;cursor:pointer;text-align:center;margin-left:auto;float:right}.HeaderInfo[_ngcontent-%COMP%]{font-size:16px;margin-left:-5px}.PopupContent[_ngcontent-%COMP%]{padding:0;margin:0;overflow:hidden;display:grid;height:100%;grid-template-rows:auto auto;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-column-gap:15px;grid-template-areas:"field1 field2" "buttons buttons"}.buttons[_ngcontent-%COMP%]{grid-area:buttons;padding:0;margin:0;overflow:hidden;display:grid;height:100%;grid-template-rows:auto;grid-template-columns:repeat(4,minmax(0,1fr));grid-column-gap:30px;grid-template-areas:"empty1 btnsave btncancel empty2"}.btnSave[_ngcontent-%COMP%]{margin-top:10px;grid-area:btnsave}.btnCancel[_ngcontent-%COMP%]{margin-top:10px;grid-area:btncancel}.field1[_ngcontent-%COMP%]{grid-area:field1}.field2[_ngcontent-%COMP%]{grid-area:field2}']})}return m})()},33570:(ei,rt,D)=>{"use strict";D.d(rt,{AB:()=>o,DA:()=>h,Fc:()=>g,Jr:()=>v,Kn:()=>O,ME:()=>f,P9:()=>R,W1:()=>b,cX:()=>m,dr:()=>_,j$:()=>x,nm:()=>w,te:()=>I,vx:()=>k,zQ:()=>s});var r=D(60177),d=D(54438),L=D(97586);const o="https://api.ipify.org/?format=json",R="LoginWithAuthorization",m="LoginWithJWT",_="LoginWithNameAndPassword",v="Benutzerauthentifizierung ist abgelaufen!",h="cancel_error",s=401;var b=function(C){return C.returnRequestColor="green",C.startRequestColor="blue",C.showSpinnerColor="gray",C.hideSpinnerColor="red",C}(b||{});const O={parse:{dateInput:"DD.MM.YYYY"},display:{dateInput:"DD.MM.YYYY",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY",monthShortName:"MMM",date4WebAPI:"yyyy-MM-dd",dateTime4JSON:"yyyy-MM-ddTHH:mm:ss.SSS",dateFormat:"dd.MM.yyyy",dateTimeFormat:"dd.MM.yyyy HH:mm",dateFormatHensel:"d MMM YYYY",momentFormat:{date4WebAPI:"YYYY-MM-DD",dateTime4JSON:"YYYY-MM-DDTHH:mm:ss.SSS",dateFormat:"DD.MM.YYYY",dateTimeFormat:"DD.MM.YYYY HH:mm"},timeFormat:"HH:mm"}};var w=function(C){return C.message="Message",C.warning="Warning",C.error="Error",C.confirmation="Question",C.guid_message="HTTPtiming",C.debug_message="Debug",C}(w||{}),f=function(C){return C[C.unknown=0]="unknown",C[C.loginWithNameAndPassword=1]="loginWithNameAndPassword",C[C.jwt=2]="jwt",C[C.windowsAuthorizatoin=3]="windowsAuthorizatoin",C}(f||{}),k=function(C){return C[C.WebAPI=0]="WebAPI",C[C.Date=1]="Date",C[C.DateTime=2]="DateTime",C[C.JSON=3]="JSON",C}(k||{});Date.prototype.toJSON=function(){return(0,r.Yq)(this,O.display.dateTime4JSON,d.qyG)},L.fn.toJSON=function(){return this.format(O.display.momentFormat.dateTime4JSON)};const I=21,x=[{culture:"de-DE",country:"core.caption.country-ge",languageName:"core.caption.lang-ge"},{culture:"de-AT",country:"core.caption.country-at",languageName:"core.caption.lang-at"},{culture:"en-GB",country:"core.caption.country-gb",languageName:"core.caption.lang-gb"},{culture:"en-US",country:"core.caption.country-us",languageName:"core.caption.lang-us"},{culture:"en-AU",country:"core.caption.country-au",languageName:"core.caption.lang-au"},{culture:"fr-FR",country:"core.caption.country-fr",languageName:"core.caption.lang-fr"},{culture:"en-MY",country:"core.caption.country-my",languageName:"core.caption.lang-my"}],g=[{langCode:"de",languageName:"core.caption.lang-ge"},{langCode:"en",languageName:"core.caption.lang-us"},{langCode:"fr",languageName:"core.caption.lang-fr"}]},44232:(ei,rt,D)=>{"use strict";D.d(rt,{DG:()=>j,Fz:()=>E,XA:()=>R,dQ:()=>o,i2:()=>d,pj:()=>L});var r=D(54438);const d=new r.nKC("environment"),L=new r.nKC("Languages supported by App"),j=new r.nKC("Culturess supported by App"),o=new r.nKC("APPICON4TEST_TOKEN",{providedIn:"root",factory:()=>"assets/icons/hr-logo_red.ico"}),E=new r.nKC("APPICON4LIVE_TOKEN",{providedIn:"root",factory:()=>"assets/icons/hr-logo_color.ico"}),R=new r.nKC("APPICON4NAVBAR_TOKEN",{providedIn:"root",factory:()=>"assets/icons/hr-logo_bright.ico"})},61999:(ei,rt,D)=>{"use strict";D.d(rt,{j:()=>L});var r=D(57764),d=D(19057);class L extends r.H{constructor(){super(...arguments),this.typeName=d.lp.User}get entityId(){return this.webAppUserId}set entityId(o){this.webAppUserId=o}get isAdmin(){return this.isInRolle("sDigital Data - IIM-Administratoren")}get isMaster(){return this.isInRolle("sDigital Data - IIM-Administratoren")||this.isInRolle("departmentmaster")||this.isAdmin}isInRolle(o){return o=o?.toLowerCase(),this.roleList.toLowerCase().includes(o)}assign(o){return super.assign(o),this.jwtExpiredOn&&"object"!=typeof this.jwtExpiredOn&&(this.jwtExpiredOn=new Date(this.jwtExpiredOn)),this}clear(){super.clear(),this.jwtExpiredOn=void 0,this.token=void 0}}},57764:(ei,rt,D)=>{"use strict";D.d(rt,{H:()=>o});var r=D(10467),d=D(33570),L=D(15113);class j{constructor(R,m,_=""){this.result=!1,this.errMsg=(0,L.$5)(R),this.errMsg!==d.DA&&-1===this.errMsg.indexOf(_)&&(this.errMsg=_+this.errMsg),this.entity=m}}class o{get entitytitle(){return""}get useNull4Clear(){return!1}get dateFields(){return null}constructor(R){this.typeName="",this.entityChanged=!1,this.technicalFields=["dateFields","dontInsertFields","dontUpdateFields","typeName","entitytitle","technicalFields","lastLoaded","useNull4Clear"],this.dontUpdateFields=[...this.technicalFields,"entityChanged"],this.dontInsertFields=[...this.technicalFields,"entityChanged"],R?this.assign(R):this.clear()}deleteFields(){const R=Object.assign({},this);return(this.isNew()?this.dontInsertFields:this.dontUpdateFields).forEach(_=>delete R[_]),R}get entityId(){return-1}set entityId(R){}assign(R){this.clear();const m=Object.assign(this,R);return this.approveDateFields(this.dateFields),m}approveDateField(R){this[R]&&!(this[R]instanceof Date)&&(this[R]=new Date(this[R]))}approveDateFields(R){R&&R.split(",").forEach(_=>this.approveDateField(_.trim()))}clearField(R,m=!1){if(this[R]instanceof Array)this[R]=[];else if("Id"===R.slice(-2))this[R]=null;else switch(m||this.useNull4Clear?null:typeof this[R]){case"number":this[R]=0;break;case"boolean":this[R]=!1;break;case"string":this[R]="";break;default:this[R]=null}}clear(R=!1){try{for(const m in this)-1===this.technicalFields.indexOf(m)&&this.propertyIsEnumerable(m)&&this.clearField(m,R)}catch{}this.isRealObject()&&(this.entityId=0),this.entityChanged=!1,this.resetCallBack&&this.resetCallBack(this)}isEmpty(){return 0===Object.keys(this).length&&"object"==typeof this}isRealObject(){return"entityId"in this}isValidInput(){return!0}isNew(){return!this.entityId||this.entityId<=0}insertWithIds(){return!1}load(R,m,_,v){const h=this.entityId;return this.isNew()&&-1!==h?(this.clear(),v&&v()):R.getDataById(this.typeName,h).subscribe(s=>this.entityId===h&&(console.log("loaded",s),this.lastLoaded=(0,L.tB)(),this.assign(s),m&&m(this),!0),s=>{s.status!==d.zQ&&this.clear(),_&&_(new j(s,this,this.typeName+": "))},v),!1}includeFieldForUpdate(R){R.split(",").forEach(_=>{const v=this.dontUpdateFields.indexOf(_);v>-1&&this.dontUpdateFields.splice(v,1)})}excludeFieldFromUpdate(R){R.split(",").forEach(_=>{-1===this.dontUpdateFields.indexOf(_)&&this.dontUpdateFields.push(_)})}saveAsync(R){var m=this;return(0,r.A)(function*(){return new Promise((_,v)=>m.save(R,()=>_(!0),()=>_(!1)))})()}save(R,m,_,v,h){const s=this.entityId;this.isNew()&&(this.entityId=this.insertWithIds()?-this.entityId:0);const b=this.deleteFields();this.entityId=s,(this.isNew()||null!=h?R.postDataById(this.typeName,h??this.entityId,b):R.putDataById(this.typeName,this.entityId,b)).subscribe(w=>{console.log("loaded",w),this.assign(w),this.isNew()?(this.entityChanged=!0,_&&_({errMsg:this.typeName+": Saving unsucceeded",entity:this})):(this.lastLoaded=(0,L.tB)(),m&&m(this))},w=>{_&&_(new j(w,this,this.typeName+": "))},v)}delete(R,m,_,v){return this.isNew()?this.clear():R.deleteDataById(this.typeName,this.entityId).subscribe(()=>(console.log("deleted",this),m&&m(this),!0),h=>{_&&_(new j(h,this,this.typeName+": "))},v),!0}}},66664:(ei,rt,D)=>{"use strict";D.d(rt,{w:()=>se});var r=D(15113),d=D(67336),L=D(74854),j=D(54438),o=D(12748),E=D(19057),R=D(60177),m=D(85956),_=D(89417),v=D(19664);const h=["popupForm"];function s(ie,ee){if(1&ie){const re=j.RV6();j.j41(0,"dx-button",11),j.bIt("click",function(){j.eBV(re);const _e=j.XpG();return j.Njj(_e.close())}),j.k0s()}}function b(ie,ee){1&ie&&(j.j41(0,"i",12),j.EFF(1,"info"),j.k0s())}function O(ie,ee){1&ie&&(j.j41(0,"i",13),j.EFF(1,"warning"),j.k0s())}function w(ie,ee){1&ie&&(j.j41(0,"i",14),j.EFF(1,"error_outline"),j.k0s())}function f(ie,ee){1&ie&&(j.j41(0,"i",12),j.EFF(1,"contact_support"),j.k0s())}function k(ie,ee){if(1&ie){const re=j.RV6();j.j41(0,"button",16),j.bIt("click",function(){const _e=j.eBV(re).$implicit,be=j.XpG(2);return j.Njj(be.btnClick(_e))}),j.EFF(1),j.nI1(2,"translate"),j.k0s()}if(2&ie){const re=ee.$implicit,ne=ee.index,_e=j.XpG(2);j.HbH("btn"+(ne+1)+" "+_e.messageBoxInterfaceType+"btn"+(re.default?" default1-"+_e.messageBoxInterfaceType+"btn":"")),j.Y8G("id","btn"+(ne+1))("name","btn"+(ne+1)),j.R7$(),j.SpI(" ",j.bMT(2,5,re.title)," ")}}function I(ie,ee){if(1&ie&&(j.j41(0,"div"),j.DNE(1,k,3,7,"button",15),j.k0s()),2&ie){const re=j.XpG();j.HbH(re.messageBoxInterfaceType+"buttons"+re.buttons.length),j.R7$(),j.Y8G("ngForOf",re.buttons)}}let x=(()=>{class ie{constructor(re,ne,_e,be){this.dialogRef=re,this.translate=ne,this.globals=_e,this.readOnly=!1,this.messageBoxInterfaceType="new-",this.overHeader=this.translate.translateString(be.overHeader),this.header=this.translate.translateString(be.header),this.message=this.translate.translateString(be.message),this.buttons=be.buttons,this.messageType=be.type,1===this.buttons.length&&(this.buttons[0].default=!0,this.buttons[0].cancel=!0),this.buttons.forEach((oe,me)=>{oe.default&&(this.defaultButtonIdx=me),oe.cancel&&(this.cancelButtonIdx=me),oe.code||(oe.code=0)})}ngAfterViewInit(){setTimeout(()=>document.getElementById("btn"+(this.defaultButtonIdx+1))?.focus())}close(re){this.dialogRef.close(re)}btnClick(re){this.close(re?.code||0)}popupKeyboardInput(re){switch(re.which){case d._f:return re.stopPropagation(),this.btnClick(this.buttons[this.cancelButtonIdx]),!1;case d.Fm:return re.stopPropagation(),this.btnClick(this.buttons[this.defaultButtonIdx]),!1}return!0}static#e=this.\u0275fac=function(ne){return new(ne||ie)(j.rXU(L.RN),j.rXU(o.X),j.rXU(E.RV),j.rXU(L.xh))};static#t=this.\u0275cmp=j.VBU({type:ie,selectors:[["hr-message-box"]],viewQuery:function(ne,_e){if(1&ne&&j.GBs(h,5),2&ne){let be;j.mGM(be=j.lsd())&&(_e.detailForm=be.first)}},hostBindings:function(ne,_e){1&ne&&j.bIt("keydown",function(oe){return _e.popupKeyboardInput(oe)},!1,j.tSv)},decls:15,vars:9,consts:[["popupForm","ngForm"],[1,"PopupContainer"],["class","buttonClose","icon","close",3,"click",4,"ngIf"],[1,"messageOverHeader"],["mat-dialog-title","",1,"messageBoxHeader"],[1,"PopupContent"],["class","material-icons-outlined icon infoIcon",4,"ngIf"],["class","material-icons-outlined icon warningIcon",4,"ngIf"],["class","material-icons-outlined icon errorIcon",4,"ngIf"],[1,"message"],[3,"class",4,"ngIf"],["icon","close",1,"buttonClose",3,"click"],[1,"material-icons-outlined","icon","infoIcon"],[1,"material-icons-outlined","icon","warningIcon"],[1,"material-icons-outlined","icon","errorIcon"],["mat-stroked-button","",3,"id","name","class","click",4,"ngFor","ngForOf"],["mat-stroked-button","",3,"click","id","name"]],template:function(ne,_e){1&ne&&(j.j41(0,"form",1,0),j.DNE(2,s,1,0,"dx-button",2),j.j41(3,"a",3),j.EFF(4),j.k0s(),j.j41(5,"h3",4),j.EFF(6),j.k0s(),j.j41(7,"mat-dialog-content",5),j.DNE(8,b,2,0,"i",6)(9,O,2,0,"i",7)(10,w,2,0,"i",8)(11,f,2,0,"i",6),j.j41(12,"span",9),j.EFF(13),j.k0s(),j.DNE(14,I,2,3,"div",10),j.k0s()()),2&ne&&(j.R7$(2),j.Y8G("ngIf",!(null!=_e.buttons&&_e.buttons.length)),j.R7$(2),j.JRh(_e.overHeader),j.R7$(2),j.JRh(_e.header),j.R7$(2),j.Y8G("ngIf","Message"===_e.messageType),j.R7$(),j.Y8G("ngIf","Warning"===_e.messageType),j.R7$(),j.Y8G("ngIf","Error"===_e.messageType),j.R7$(),j.Y8G("ngIf","Question"===_e.messageType),j.R7$(2),j.JRh(_e.message),j.R7$(),j.Y8G("ngIf",null==_e.buttons?null:_e.buttons.length))},dependencies:[R.Sq,R.bT,m.iV,L.KI,L.PQ,_.qT,_.cb,_.cV,v.D9],styles:['.cell_positive_balance{color:#76b82a} .cell_negative_balance{color:#b22222}.PopupContainer[_ngcontent-%COMP%]{max-width:500px}.large[_ngcontent-%COMP%] .PopupContainer[_ngcontent-%COMP%]{max-width:600px}.buttonClose[_ngcontent-%COMP%]{font-size:16px;cursor:pointer;text-align:center;margin-left:auto;float:right}.messageOverHeader[_ngcontent-%COMP%]{color:#0b3a62;display:block;height:0px;top:-20px;left:-15px;position:relative}.large[_ngcontent-%COMP%] .messageOverHeader[_ngcontent-%COMP%]{font-size:initial}.large[_ngcontent-%COMP%] .messageBoxHeader[_ngcontent-%COMP%]{font-size:x-large}.PopupContent[_ngcontent-%COMP%]{padding:0;margin:0;overflow:hidden;display:grid;height:100%;grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto auto;grid-column-gap:15px;grid-row-gap:20px;grid-template-areas:"icon message" "buttons buttons"}.icon[_ngcontent-%COMP%]{grid-area:icon;font-size:65px}.large[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{font-size:80px}.infoIcon[_ngcontent-%COMP%]{color:#0b3a62}.errorIcon[_ngcontent-%COMP%]{color:red}.warningIcon[_ngcontent-%COMP%]{color:#0b3a62}.message[_ngcontent-%COMP%]{grid-area:message;font-size:larger;overflow-wrap:break-word;max-width:100%;margin:auto auto auto 0;white-space:pre-wrap}.large[_ngcontent-%COMP%] .message[_ngcontent-%COMP%]{font-size:large}.buttons1[_ngcontent-%COMP%]{grid-area:buttons;padding:0;margin:0;overflow:hidden;display:grid;height:auto;grid-template-rows:auto;grid-template-columns:repeat(3,minmax(0,1fr));grid-column-gap:30px;grid-template-areas:". btn1 ."}.buttons2[_ngcontent-%COMP%]{grid-area:buttons;padding:0;margin:0;overflow:hidden;display:grid;height:auto;grid-template-rows:auto;grid-template-columns:repeat(4,minmax(0,1fr));grid-column-gap:30px;grid-template-areas:". btn1 btn2 ."}.buttons3[_ngcontent-%COMP%]{grid-area:buttons;padding:0;margin:10px 0 0;overflow:hidden;display:grid;height:auto;grid-template-rows:auto;grid-template-columns:minmax(0,1fr) repeat(3,minmax(0,2fr)) minmax(0,1fr);grid-column-gap:30px;grid-template-areas:". btn1 btn2 btn3 ."}.btn1[_ngcontent-%COMP%]{grid-area:btn1}.btn2[_ngcontent-%COMP%]{grid-area:btn2}.btn3[_ngcontent-%COMP%]{grid-area:btn3}.large[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%], .large[_ngcontent-%COMP%] .new-btn[_ngcontent-%COMP%]{font-size:medium}.new-buttons1[_ngcontent-%COMP%]{grid-area:buttons;padding:0;margin:0;overflow:hidden;display:grid;height:auto;grid-template-rows:auto;grid-column-gap:10px;grid-template-columns:repeat(3,1fr);grid-template-areas:". . btn1"}.new-buttons2[_ngcontent-%COMP%]{grid-area:buttons;padding:0;margin:0;overflow:hidden;display:grid;height:auto;grid-template-rows:auto;grid-column-gap:10px;grid-template-columns:repeat(4,1fr);grid-template-areas:". . btn1 btn2"}.new-buttons3[_ngcontent-%COMP%]{grid-area:buttons;padding:0;margin:10px 0 0;overflow:hidden;height:auto;display:grid;grid-template-rows:auto;grid-column-gap:10px;grid-template-columns:repeat(5,1fr);grid-template-areas:". . btn1 btn2 btn3"}@media only screen and (max-width: 600px){.new-buttons1[_ngcontent-%COMP%]{grid-template-columns:.5fr 1fr .5fr;grid-template-areas:". btn1 ."}}@media only screen and (max-width: 600px){.new-buttons3[_ngcontent-%COMP%] .mat-button[_ngcontent-%COMP%], .new-buttons3[_ngcontent-%COMP%] .mat-fab[_ngcontent-%COMP%], .new-buttons3[_ngcontent-%COMP%] .mat-flat-button[_ngcontent-%COMP%], .new-buttons3[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%], .new-buttons3[_ngcontent-%COMP%] .mat-mini-fab[_ngcontent-%COMP%], .new-buttons3[_ngcontent-%COMP%] .mat-raised-button[_ngcontent-%COMP%], .new-buttons3[_ngcontent-%COMP%] .mat-stroked-button[_ngcontent-%COMP%]{font-size:3v}.new-buttons2[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr);grid-template-areas:"btn1 btn2"}.new-buttons3[_ngcontent-%COMP%]{grid-template-columns:repeat(3,1fr);grid-template-areas:"btn1 btn2 btn3"}}']})}return ie})();var g=D(33570),C=D(29643),F=D(44232),Y=D(89097);let se=(()=>{class ie{constructor(re,ne,_e,be){this.dialog=re,this.globals=ne,this.translate=_e,this.environment=be,this.startingTimes=new Map}checkDoubledEvent(re){const ne=r.tB(),_e=this.startingTimes.has(re)&&ne-this.startingTimes.get(re)<500;return this.startingTimes.set(re,ne),_e}log(re,...ne){this._log(g.nm.message,re,...ne)}warn(re,...ne){this._log(g.nm.warning,re,...ne)}error(re,...ne){this._log(g.nm.error,re,...ne);const _e=ne.find(be=>"object"==typeof be);this.environment.sentry_dsn&&C.Cp(_e??re)}exception(re,...ne){this._log(g.nm.error,r.$5(re),...ne),this.environment.sentry_dsn&&C.Cp(r.cP(re))}dlog(re,...ne){this._log(g.nm.debug_message,re,...ne)}_log(re,ne,..._e){let be="",oe=null;const me=re===g.nm.debug_message,we=_e.findIndex(N=>"object"==typeof N&&"guid"in N&&(oe=N.guid,!0));switch(oe&&(_e.splice(we,1),this.startingTimes.has(oe)?(be=r.or(r.tB()-this.startingTimes.get(oe),"m:s.SSS"),this.startingTimes.delete(oe),re=g.nm.guid_message):this.startingTimes.set(oe,r.tB())),re){case g.nm.message:console.log(ne,..._e);break;case g.nm.warning:console.warn(ne,..._e);break;case g.nm.error:console.error(ne,..._e);break;case g.nm.debug_message:this.environment.production||console.log(ne,..._e);break;case g.nm.guid_message:(!me||!this.environment.production)&&console.log("Finished: "+(ne.indexOf("%c")>-1?"":"%c")+ne+(be?": "+be+"s":""),..._e)}}showMessageBox(re,ne){return re.overHeader=this.globals.appTitleWithVersion,this.dialog.openDialog(x,re,!0,_e=>{ne&&ne(),re.buttons.forEach(be=>{be.code===_e&&be.callback&&be.callback()})},!1)}errorMessageBox(re,ne,_e){return this.showMessageBox({type:g.nm.error,header:re,message:ne,buttons:[{title:this.translate.instant("core.btn.ok")}]},_e)}warningMessageBox(re,ne,_e){return this.showMessageBox({type:g.nm.warning,header:re,message:ne,buttons:[{title:this.translate.instant("core.btn.ok")}]},_e)}informationMessageBox(re,ne,_e){return this.showMessageBox({type:g.nm.message,header:re,message:ne,buttons:[{title:this.translate.instant("core.btn.ok")}]},_e)}confirmMessageBoxYesNo(re,ne,_e,be,oe=0){return this.showMessageBox({type:g.nm.confirmation,header:re,message:ne,buttons:[{title:this.translate.instant("core.btn.yes"),code:1,default:0===oe,callback:_e},{title:this.translate.instant("core.btn.no"),default:1===oe,cancel:!0,code:0}]},be)}confirmMessageBoxYesNoCancel(re,ne,_e,be,oe,me=0){return this.showMessageBox({type:g.nm.confirmation,header:re,message:ne,buttons:[{title:this.translate.instant("core.btn.yes"),code:1,callback:_e,default:0===me},{title:this.translate.instant("core.btn.no"),code:0,callback:be,default:1===me},{title:this.translate.instant("core.btn.cancel"),cancel:!0,code:-1,default:2===me}]},oe)}static#e=this.\u0275fac=function(ne){return new(ne||ie)(j.KVO(Y.w),j.KVO(E.RV),j.KVO(o.X),j.KVO(F.i2))};static#t=this.\u0275prov=j.jDH({token:ie,factory:ie.\u0275fac,providedIn:"root"})}return ie})()},62560:(ei,rt,D)=>{"use strict";D.d(rt,{V:()=>ge});var r=D(10467),d=D(54438),L=D(22912),j=D(21413),o=D(84412),E=D(75445),R=D(33570),m=D(19057),_=D(44232),v=D(61999),h=D(15113),s=D(89097),b=D(18498),O=D(45197),w=D(66664),f=D(37085),k=D(60177);const I={UKNOWN:"Unknown"},x={CHROME:"Chrome",FIREFOX:"Firefox",SAFARI:"Safari",OPERA:"Opera",IE:"IE",MS_EDGE:"MS-Edge",MS_EDGE_CHROMIUM:"MS-Edge-Chromium",FB_MESSANGER:"FB-Messanger",SAMSUNG:"Samsung",UCBROWSER:"UC-Browser",UNKNOWN:I.UKNOWN},g={HTC:/HTC|HTC.*(Sensation|Evo|Vision|Explorer|6800|8100|8900|A7272|S510e|C110e|Legend|Desire|T8282)|APX515CKT|Qtek9090|APA9292KT|HD_mini|Sensation.*Z710e|PG86100|Z715e|Desire.*(A8181|HD)|ADR6200|ADR6400L|ADR6425|001HT|Inspire 4G|Android.*\bEVO\b|T-Mobile G1|Z520m|Android [0-9.]+; Pixel/,NEXUS_PHONE:/Nexus One|Nexus S|Galaxy.*Nexus|Android.*Nexus.*Mobile|Nexus 4|Nexus 5|Nexus 6/,DELL:/Dell[;]? (Streak|Aero|Venue|Venue Pro|Flash|Smoke|Mini 3iX)|XCD28|XCD35|\b001DL\b|\b101DL\b|\bGS01\b/,MOTOROLA:new RegExp("Motorola|DROIDX|DROID BIONIC|\\bDroid\\b.*Build|Android.*Xoom|HRI39|MOT-|A1260|A1680|A555|A853|\n A855|A953|A955|A956|Motorola.*ELECTRIFY|Motorola.*i1|i867|i940|MB200|MB300|MB501|MB502|MB508|MB511|\n MB520|MB525|MB526|MB611|MB612|MB632|MB810|MB855|MB860|MB861|MB865|MB870|ME501|ME502|ME511|ME525|ME600|\n ME632|ME722|ME811|ME860|ME863|ME865|MT620|MT710|MT716|MT720|MT810|MT870|MT917|Motorola.*TITANIUM|WX435|\n WX445|XT300|XT301|XT311|XT316|XT317|XT319|XT320|XT390|XT502|XT530|XT531|XT532|XT535|XT603|XT610|XT611|\n XT615|XT681|XT701|XT702|XT711|XT720|XT800|XT806|XT860|XT862|XT875|XT882|XT883|XT894|XT901|XT907|XT909|\n XT910|XT912|XT928|XT926|XT915|XT919|XT925|XT1021|\\bMoto E\\b|XT1068|XT1092|XT1052"),SAMSUNG:new RegExp("\\bSamsung\\b|SM-G950F|SM-G955F|SM-G9250|GT-19300|SGH-I337|BGT-S5230|GT-B2100|GT-B2700|GT-B2710|\n GT-B3210|GT-B3310|GT-B3410|GT-B3730|GT-B3740|GT-B5510|GT-B5512|GT-B5722|GT-B6520|GT-B7300|GT-B7320|\n GT-B7330|GT-B7350|GT-B7510|GT-B7722|GT-B7800|GT-C3010|GT-C3011|GT-C3060|GT-C3200|GT-C3212|GT-C3212I|\n GT-C3262|GT-C3222|GT-C3300|GT-C3300K|GT-C3303|GT-C3303K|GT-C3310|GT-C3322|GT-C3330|GT-C3350|GT-C3500|\n GT-C3510|GT-C3530|GT-C3630|GT-C3780|GT-C5010|GT-C5212|GT-C6620|GT-C6625|GT-C6712|GT-E1050|GT-E1070|\n GT-E1075|GT-E1080|GT-E1081|GT-E1085|GT-E1087|GT-E1100|GT-E1107|GT-E1110|GT-E1120|GT-E1125|GT-E1130|\n GT-E1160|GT-E1170|GT-E1175|GT-E1180|GT-E1182|GT-E1200|GT-E1210|GT-E1225|GT-E1230|GT-E1390|GT-E2100|\n GT-E2120|GT-E2121|GT-E2152|GT-E2220|GT-E2222|GT-E2230|GT-E2232|GT-E2250|GT-E2370|GT-E2550|GT-E2652|\n GT-E3210|GT-E3213|GT-I5500|GT-I5503|GT-I5700|GT-I5800|GT-I5801|GT-I6410|GT-I6420|GT-I7110|GT-I7410|\n GT-I7500|GT-I8000|GT-I8150|GT-I8160|GT-I8190|GT-I8320|GT-I8330|GT-I8350|GT-I8530|GT-I8700|GT-I8703|\n GT-I8910|GT-I9000|GT-I9001|GT-I9003|GT-I9010|GT-I9020|GT-I9023|GT-I9070|GT-I9082|GT-I9100|GT-I9103|\n GT-I9220|GT-I9250|GT-I9300|GT-I9305|GT-I9500|GT-I9505|GT-M3510|GT-M5650|GT-M7500|GT-M7600|GT-M7603|\n GT-M8800|GT-M8910|GT-N7000|GT-S3110|GT-S3310|GT-S3350|GT-S3353|GT-S3370|GT-S3650|GT-S3653|GT-S3770|\n GT-S3850|GT-S5210|GT-S5220|GT-S5229|GT-S5230|GT-S5233|GT-S5250|GT-S5253|GT-S5260|GT-S5263|GT-S5270|\n GT-S5300|GT-S5330|GT-S5350|GT-S5360|GT-S5363|GT-S5369|GT-S5380|GT-S5380D|GT-S5560|GT-S5570|GT-S5600|\n GT-S5603|GT-S5610|GT-S5620|GT-S5660|GT-S5670|GT-S5690|GT-S5750|GT-S5780|GT-S5830|GT-S5839|GT-S6102|\n GT-S6500|GT-S7070|GT-S7200|GT-S7220|GT-S7230|GT-S7233|GT-S7250|GT-S7500|GT-S7530|GT-S7550|GT-S7562|\n GT-S7710|GT-S8000|GT-S8003|GT-S8500|GT-S8530|GT-S8600|SCH-A310|SCH-A530|SCH-A570|SCH-A610|SCH-A630|\n SCH-A650|SCH-A790|SCH-A795|SCH-A850|SCH-A870|SCH-A890|SCH-A930|SCH-A950|SCH-A970|SCH-A990|SCH-I100|\n SCH-I110|SCH-I400|SCH-I405|SCH-I500|SCH-I510|SCH-I515|SCH-I600|SCH-I730|SCH-I760|SCH-I770|SCH-I830|\n SCH-I910|SCH-I920|SCH-I959|SCH-LC11|SCH-N150|SCH-N300|SCH-R100|SCH-R300|SCH-R351|SCH-R400|SCH-R410|\n SCH-T300|SCH-U310|SCH-U320|SCH-U350|SCH-U360|SCH-U365|SCH-U370|SCH-U380|SCH-U410|SCH-U430|SCH-U450|\n SCH-U460|SCH-U470|SCH-U490|SCH-U540|SCH-U550|SCH-U620|SCH-U640|SCH-U650|SCH-U660|SCH-U700|SCH-U740|\n SCH-U750|SCH-U810|SCH-U820|SCH-U900|SCH-U940|SCH-U960|SCS-26UC|SGH-A107|SGH-A117|SGH-A127|SGH-A137|\n SGH-A157|SGH-A167|SGH-A177|SGH-A187|SGH-A197|SGH-A227|SGH-A237|SGH-A257|SGH-A437|SGH-A517|SGH-A597|\n SGH-A637|SGH-A657|SGH-A667|SGH-A687|SGH-A697|SGH-A707|SGH-A717|SGH-A727|SGH-A737|SGH-A747|SGH-A767|\n SGH-A777|SGH-A797|SGH-A817|SGH-A827|SGH-A837|SGH-A847|SGH-A867|SGH-A877|SGH-A887|SGH-A897|SGH-A927|\n SGH-B100|SGH-B130|SGH-B200|SGH-B220|SGH-C100|SGH-C110|SGH-C120|SGH-C130|SGH-C140|SGH-C160|SGH-C170|\n SGH-C180|SGH-C200|SGH-C207|SGH-C210|SGH-C225|SGH-C230|SGH-C417|SGH-C450|SGH-D307|SGH-D347|SGH-D357|\n SGH-D407|SGH-D415|SGH-D780|SGH-D807|SGH-D980|SGH-E105|SGH-E200|SGH-E315|SGH-E316|SGH-E317|SGH-E335|\n SGH-E590|SGH-E635|SGH-E715|SGH-E890|SGH-F300|SGH-F480|SGH-I200|SGH-I300|SGH-I320|SGH-I550|SGH-I577|\n SGH-I600|SGH-I607|SGH-I617|SGH-I627|SGH-I637|SGH-I677|SGH-I700|SGH-I717|SGH-I727|SGH-i747M|SGH-I777|\n SGH-I780|SGH-I827|SGH-I847|SGH-I857|SGH-I896|SGH-I897|SGH-I900|SGH-I907|SGH-I917|SGH-I927|SGH-I937|\n SGH-I997|SGH-J150|SGH-J200|SGH-L170|SGH-L700|SGH-M110|SGH-M150|SGH-M200|SGH-N105|SGH-N500|SGH-N600|\n SGH-N620|SGH-N625|SGH-N700|SGH-N710|SGH-P107|SGH-P207|SGH-P300|SGH-P310|SGH-P520|SGH-P735|SGH-P777|\n SGH-Q105|SGH-R210|SGH-R220|SGH-R225|SGH-S105|SGH-S307|SGH-T109|SGH-T119|SGH-T139|SGH-T209|SGH-T219|\n SGH-T229|SGH-T239|SGH-T249|SGH-T259|SGH-T309|SGH-T319|SGH-T329|SGH-T339|SGH-T349|SGH-T359|SGH-T369|\n SGH-T379|SGH-T409|SGH-T429|SGH-T439|SGH-T459|SGH-T469|SGH-T479|SGH-T499|SGH-T509|SGH-T519|SGH-T539|\n SGH-T559|SGH-T589|SGH-T609|SGH-T619|SGH-T629|SGH-T639|SGH-T659|SGH-T669|SGH-T679|SGH-T709|SGH-T719|\n SGH-T729|SGH-T739|SGH-T746|SGH-T749|SGH-T759|SGH-T769|SGH-T809|SGH-T819|SGH-T839|SGH-T919|SGH-T929|\n SGH-T939|SGH-T959|SGH-T989|SGH-U100|SGH-U200|SGH-U800|SGH-V205|SGH-V206|SGH-X100|SGH-X105|SGH-X120|\n SGH-X140|SGH-X426|SGH-X427|SGH-X475|SGH-X495|SGH-X497|SGH-X507|SGH-X600|SGH-X610|SGH-X620|SGH-X630|\n SGH-X700|SGH-X820|SGH-X890|SGH-Z130|SGH-Z150|SGH-Z170|SGH-ZX10|SGH-ZX20|SHW-M110|SPH-A120|SPH-A400|\n SPH-A420|SPH-A460|SPH-A500|SPH-A560|SPH-A600|SPH-A620|SPH-A660|SPH-A700|SPH-A740|SPH-A760|SPH-A790|\n SPH-A800|SPH-A820|SPH-A840|SPH-A880|SPH-A900|SPH-A940|SPH-A960|SPH-D600|SPH-D700|SPH-D710|SPH-D720|\n SPH-I300|SPH-I325|SPH-I330|SPH-I350|SPH-I500|SPH-I600|SPH-I700|SPH-L700|SPH-M100|SPH-M220|SPH-M240|\n SPH-M300|SPH-M305|SPH-M320|SPH-M330|SPH-M350|SPH-M360|SPH-M370|SPH-M380|SPH-M510|SPH-M540|SPH-M550|\n SPH-M560|SPH-M570|SPH-M580|SPH-M610|SPH-M620|SPH-M630|SPH-M800|SPH-M810|SPH-M850|SPH-M900|SPH-M910|\n SPH-M920|SPH-M930|SPH-N100|SPH-N200|SPH-N240|SPH-N300|SPH-N400|SPH-Z400|SWC-E100|SCH-i909|GT-N7100|\n GT-N7105|SCH-I535|SM-N900A|SM-N900T|SGH-I317|SGH-T999L|GT-S5360B|GT-I8262|GT-S6802|GT-S6312|GT-S6310|GT-S5312|\n GT-S5310|GT-I9105|GT-I8510|GT-S6790N|SM-G7105|SM-N9005|GT-S5301|GT-I9295|GT-I9195|SM-C101|GT-S7392|GT-S7560|\n GT-B7610|GT-I5510|GT-S7582|GT-S7530E|GT-I8750|SM-G9006V|SM-G9008V|SM-G9009D|SM-G900A|SM-G900D|SM-G900F|\n SM-G900H|SM-G900I|SM-G900J|SM-G900K|SM-G900L|SM-G900M|SM-G900P|SM-G900R4|SM-G900S|SM-G900T|SM-G900V|\n SM-G900W8|SHV-E160K|SCH-P709|SCH-P729|SM-T2558|GT-I9205|SM-G9350|SM-J120F|SM-G920F|SM-G920V|SM-G930F|\n SM-N910C|SM-A310F|GT-I9190|SM-J500FN|SM-G903F|SM-J330F"),LG:new RegExp("\\bLG\\b;|LG[- ]?(C800|C900|E400|E610|E900|E-900|F160|F180K|F180L|F180S|730|855|L160|LS740|LS840|LS970|\n LU6200|MS690|MS695|MS770|MS840|MS870|MS910|P500|P700|P705|VM696|AS680|AS695|AX840|C729|E970|GS505|272|\n C395|E739BK|E960|L55C|L75C|LS696|LS860|P769BK|P350|P500|P509|P870|UN272|US730|VS840|VS950|LN272|LN510|\n LS670|LS855|LW690|MN270|MN510|P509|P769|P930|UN200|UN270|UN510|UN610|US670|US740|US760|UX265|UX840|VN271|\n VN530|VS660|VS700|VS740|VS750|VS910|VS920|VS930|VX9200|VX11000|AX840A|LW770|P506|P925|P999|E612|D955|D802|\n MS323|M257)"),SONY:/SonyST|SonyLT|SonyEricsson|SonyEricssonLT15iv|LT18i|E10i|LT28h|LT26w|SonyEricssonMT27i|C5303|C6902|C6903|C6906|C6943|D2533/,ASUS:/Asus.*Galaxy|PadFone.*Mobile/,NOKIA_LUMIA:/Lumia [0-9]{3,4}/,MICROMAX:/Micromax.*\b(A210|A92|A88|A72|A111|A110Q|A115|A116|A110|A90S|A26|A51|A35|A54|A25|A27|A89|A68|A65|A57|A90)\b/,PALM:/PalmSource|Palm/,VERTU:/Vertu|Vertu.*Ltd|Vertu.*Ascent|Vertu.*Ayxta|Vertu.*Constellation(F|Quest)?|Vertu.*Monika|Vertu.*Signature/,PANTECH:new RegExp("PANTECH|IM-A850S|IM-A840S|IM-A830L|IM-A830K|IM-A830S|IM-A820L|IM-A810K|IM-A810S|IM-A800S|IM-T100K|\n IM-A725L|IM-A780L|IM-A775C|IM-A770K|IM-A760S|IM-A750K|IM-A740S|IM-A730S|IM-A720L|IM-A710K|IM-A690L|\n IM-A690S|IM-A650S|IM-A630K|IM-A600S|VEGA PTL21|PT003|P8010|ADR910L|P6030|P6020|P9070|P4100|P9060|P5000|\n CDM8992|TXT8045|ADR8995|IS11PT|P2030|P6010|P8000|PT002|IS06|CDM8999|P9050|PT001|TXT8040|P2020|P9020|\n P2000|P7040|P7000|C790"),FLY:/IQ230|IQ444|IQ450|IQ440|IQ442|IQ441|IQ245|IQ256|IQ236|IQ255|IQ235|IQ245|IQ275|IQ240|IQ285|IQ280|IQ270|IQ260|IQ250/,WIKO:new RegExp("KITE 4G|HIGHWAY|GETAWAY|STAIRWAY|DARKSIDE|DARKFULL|DARKNIGHT|DARKMOON|SLIDE|WAX 4G|RAINBOW|BLOOM|\n SUNSET|GOA(?!nna)|LENNY|BARRY|IGGY|OZZY|CINK FIVE|CINK PEAX|CINK PEAX 2|CINK SLIM|CINK SLIM 2|CINK +|\n CINK KING|CINK PEAX|CINK SLIM|SUBLIM"),I_MOBILE:/i-mobile (IQ|i-STYLE|idea|ZAA|Hitz)/,SIMVALLEY:/\b(SP-80|XT-930|SX-340|XT-930|SX-310|SP-360|SP60|SPT-800|SP-120|SPT-800|SP-140|SPX-5|SPX-8|SP-100|SPX-8|SPX-12)\b/,WOLFGANG:/AT-B24D|AT-AS50HD|AT-AS40W|AT-AS55HD|AT-AS45q2|AT-B26D|AT-AS50Q/,ALCATEL:/Alcatel|Mobile; rv:49.0|Mobile; ALCATEL 4052R; rv:48.0/,NINTENDO:/Nintendo (3DS|Switch)/,AMOI:/Amoi/,INQ:/INQ/,VITA:/\bVita\b/,BLACKBERRY:/\bBlackBerry\b|\bBB10\b|rim[0-9]+/,FIREFOX_OS:/\bFirefox-OS\b/,IPHONE:/\biPhone\b/,iPod:/\biPod\b/,ANDROID:/\bAndroid\b/,WINDOWS_PHONE:/\bWindows-Phone\b/,GENERIC_PHONE:new RegExp("Tapatalk|PDA;|SAGEM|\\bmmp\\b|pocket|\\bpsp\\b|symbian|Smartphone|smartfon|treo|up.browser|\n up.link|vodafone|\\bwap\\b|nokia|Nokia|Series40|Series60|S60|SonyEricsson|N900|MAUI.*WAP.*Browser")},C={iPad:/iPad|iPad.*Mobile/,NexusTablet:/Android.*Nexus[\s]+(7|9|10)/,GoogleTablet:/Android.*Pixel C/,SamsungTablet:new RegExp("SAMSUNG.*Tablet|Galaxy.*Tab|SC-01C|GT-P1000|GT-P1003|GT-P1010|GT-P3105|GT-P6210|\n GT-P6800|GT-P6810|GT-P7100|GT-P7300|GT-P7310|GT-P7500|GT-P7510|SCH-I800|SCH-I815|SCH-I905|\n SGH-I957|SGH-I987|SGH-T849|SGH-T859|SGH-T869|SPH-P100|GT-P3100|GT-P3108|GT-P3110|GT-P5100|\n GT-P5110|GT-P6200|GT-P7320|GT-P7511|GT-N8000|GT-P8510|SGH-I497|SPH-P500|SGH-T779|SCH-I705|\n SCH-I915|GT-N8013|GT-P3113|GT-P5113|GT-P8110|GT-N8010|GT-N8005|GT-N8020|GT-P1013|GT-P6201|\n GT-P7501|GT-N5100|GT-N5105|GT-N5110|SHV-E140K|SHV-E140L|SHV-E140S|SHV-E150S|SHV-E230K|SHV-E230L|\n SHV-E230S|SHW-M180K|SHW-M180L|SM-T865|SM-T290|SHW-M180S|SHW-M180W|SHW-M300W|SHW-M305W|SHW-M380K|SHW-M380S|SHW-M380W|\n SHW-M430W|SHW-M480K|SHW-M480S|SHW-M480W|SHW-M485W|SHW-M486W|SHW-M500W|GT-I9228|SCH-P739|SCH-I925|\n GT-I9200|GT-P5200|GT-P5210|GT-P5210X|SM-T385M|SM-P585M|SM-T311|SM-T310|SM-T310X|SM-T210|SM-T210R|SM-T211|SM-P600|\n SM-P601|SM-P605|SM-P615|SM-P900|SM-P901|SM-T217|SM-T217A|SM-T217S|SM-P6000|SM-T3100|SGH-I467|XE500|SM-T110|\n GT-P5220|GT-I9200X|GT-N5110X|GT-N5120|SM-P905|SM-T111|SM-T2105|SM-T315|SM-T320|SM-T320X|SM-T321|\n SM-T510|SM-T520|SM-T525|SM-T530NU|SM-T230NU|SM-T330NU|SM-T900|XE500T1C|SM-P605V|SM-P905V|SM-T337V|SM-T537V|\n SM-T707V|SM-T807V|SM-P600X|SM-P900X|SM-T210X|SM-T230|SM-T230X|SM-T325|GT-P7503|SM-T531|SM-T500|SM-T330|\n SM-T530|SM-T705|SM-T705C|SM-T535|SM-T331|SM-T800|SM-T700|SM-T537|SM-T807|SM-P907A|SM-T337A|SM-T537A|\n SM-T707A|SM-T807A|SM-T237|SM-T807P|SM-P607T|SM-T217T|SM-T337T|SM-T807T|SM-T116NQ|SM-T116BU|SM-P550|\n SM-T350|SM-T550|SM-T9000|SM-P9000|SM-T705Y|SM-T805|GT-P3113|SM-T710|SM-T810|SM-T815|SM-T360|SM-T533|\n SM-T113|SM-T335|SM-T715|SM-T560|SM-T670|SM-T677|SM-T377|SM-T567|SM-T357T|SM-T555|SM-T561|SM-T713|\n SM-T719|SM-T725|SM-T813|SM-T819|SM-T580|SM-T590|SM-T355Y?|SM-T280|SM-T817A|SM-T820|SM-W700|SM-P580|SM-T587|SM-P350|\n SM-P555M|SM-P355M|SM-T113NU|SM-T815Y|SM-T585|SM-T285|SM-T825|SM-W708|SM-T835|SM-P585Y|SM-X200|SM-T970"),Kindle:new RegExp("Kindle|Silk.*Accelerated|Android.*\\b(KFOT|KFTT|KFJWI|KFJWA|KFOTE|KFSOWI|KFTHWI|KFTHWA|KFAPWI|\n KFAPWA|WFJWAE|KFSAWA|KFSAWI|KFASWI|KFARWI|KFFOWI|KFGIWI|KFMEWI)\\b|Android.*Silk/[0-9.]+ like Chrome /[0-9.]+ (?!Mobile)"),SurfaceTablet:/Windows NT [0-9.]+; ARM;.*(Tablet|ARMBJS)/,HPTablet:/HP Slate (7|8|10)|HP ElitePad 900|hp-tablet|EliteBook.*Touch|HP 8|Slate 21|HP SlateBook 10/,AsusTablet:new RegExp("^.*PadFone((?!Mobile).)*$|Transformer|TF101|TF101G|TF300T|TF300TG|TF300TL|TF700T|TF700KL|\n TF701T|TF810C|ME171|ME301T|ME302C|ME371MG|ME370T|ME372MG|ME172V|ME173X|ME400C|\n Slider SL101|\\bK00F\\b|\\bK00C\\b|\\bK00E\\b|\\bK00L\\b|TX201LA|ME176C|ME102A|\\bM80TA\\b|ME372CL|\n ME560CG|ME372CG|ME302KL| K010 | K011 | K017 | K01E |ME572C|ME103K|ME170C|ME171C|\\bME70C\\b|ME581C|\n ME581CL|ME8510C|ME181C|P01Y|PO1MA|P01Z|\\bP027\\b|\\bP024\\b|\\bP00C\\b"),BlackBerryTablet:/PlayBook|RIM Tablet/,HTCtablet:/HTC_Flyer_P512|HTC Flyer|HTC Jetstream|HTC-P715a|HTC EVO View 4G|PG41200|PG09410/,MotorolaTablet:/xoom|sholest|MZ615|MZ605|MZ505|MZ601|MZ602|MZ603|MZ604|MZ606|MZ607|MZ608|MZ609|MZ615|MZ616|MZ617/,NookTablet:/Android.*Nook|NookColor|nook browser|BNRV200|BNRV200A|BNTV250|BNTV250A|BNTV400|BNTV600|LogicPD Zoom2/,AcerTablet:new RegExp("Android.*; \\b(A100|A101|A110|A200|A210|A211|A500|A501|A510|A511|A700|A701|W500|W500P|W501|\n W501P|W510|W511|W700|G100|G100W|B1-A71|B1-710|B1-711|A1-810|A1-811|A1-830)\\b|W3-810|\\bA3-A10\\b|\\bA3-A11\\b|\n \\bA3-A20\\b|\\bA3-A30"),ToshibaTablet:/Android.*(AT100|AT105|AT200|AT205|AT270|AT275|AT300|AT305|AT1S5|AT500|AT570|AT700|AT830)|TOSHIBA.*FOLIO/,LGTablet:/\bL-06C|LG-V909|LG-V900|LG-V700|LG-V510|LG-V500|LG-V410|LG-V400|LG-VK810\b/,FujitsuTablet:/Android.*\b(F-01D|F-02F|F-05E|F-10D|M532|Q572)\b/,PrestigioTablet:new RegExp("PMP3170B|PMP3270B|PMP3470B|PMP7170B|PMP3370B|PMP3570C|PMP5870C|PMP3670B|PMP5570C|\n PMP5770D|PMP3970B|PMP3870C|PMP5580C|PMP5880D|PMP5780D|PMP5588C|PMP7280C|PMP7280C3G|PMP7280|PMP7880D|\n PMP5597D|PMP5597|PMP7100D|PER3464|PER3274|PER3574|PER3884|PER5274|PER5474|PMP5097CPRO|PMP5097|PMP7380D|\n PMP5297C|PMP5297C_QUAD|PMP812E|PMP812E3G|PMP812F|PMP810E|PMP880TD|PMT3017|PMT3037|PMT3047|PMT3057|PMT7008|\n PMT5887|PMT5001|PMT5002"),LenovoTablet:new RegExp("Lenovo TAB|Idea(Tab|Pad)( A1|A10| K1|)|ThinkPad([ ]+)?Tablet|YT3-850M|YT3-X90L|YT3-X90F|\n YT3-X90X|Lenovo.*(S2109|S2110|S5000|S6000|K3011|A3000|A3500|A1000|A2107|A2109|A1107|A5500|A7600|B6000|\n B8000|B8080)(-|)(FL|F|HV|H|)|TB-X606F|TB-X103F|TB-X304F|TB-X304L|TB-X704F|TB-8703F|Tab2A7-10F|TB2-X30L|TB-8504F"),DellTablet:/Venue 11|Venue 8|Venue 7|Dell Streak 10|Dell Streak 7/,YarvikTablet:new RegExp("Android.*\\b(TAB210|TAB211|TAB224|TAB250|TAB260|TAB264|TAB310|TAB360|TAB364|TAB410|TAB411|\n TAB420|TAB424|TAB450|TAB460|TAB461|TAB464|TAB465|TAB467|TAB468|TAB07-100|TAB07-101|TAB07-150|TAB07-151|\n TAB07-152|TAB07-200|TAB07-201-3G|TAB07-210|TAB07-211|TAB07-212|TAB07-214|TAB07-220|TAB07-400|TAB07-485|\n TAB08-150|TAB08-200|TAB08-201-3G|TAB08-201-30|TAB09-100|TAB09-211|TAB09-410|TAB10-150|TAB10-201|TAB10-211|\n TAB10-400|TAB10-410|TAB13-201|TAB274EUK|TAB275EUK|TAB374EUK|TAB462EUK|TAB474EUK|TAB9-200)\\b"),MedionTablet:/Android.*\bOYO\b|LIFE.*(P9212|P9514|P9516|S9512)|LIFETAB/,ArnovaTablet:/97G4|AN10G2|AN7bG3|AN7fG3|AN8G3|AN8cG3|AN7G3|AN9G3|AN7dG3|AN7dG3ST|AN7dG3ChildPad|AN10bG3|AN10bG3DT|AN9G2/,IntensoTablet:/INM8002KP|INM1010FP|INM805ND|Intenso Tab|TAB1004/,IRUTablet:/M702pro/,MegafonTablet:/MegaFon V9|\bZTE V9\b|Android.*\bMT7A\b/,EbodaTablet:/E-Boda (Supreme|Impresspeed|Izzycomm|Essential)/,AllViewTablet:/Allview.*(Viva|Alldro|City|Speed|All TV|Frenzy|Quasar|Shine|TX1|AX1|AX2)/,ArchosTablet:new RegExp("\\b(101G9|80G9|A101IT)\\b|Qilive 97R|Archos5|\\bARCHOS (70|79|80|90|97|101|FAMILYPAD|)(b|c|)(G10|\n Cobalt| TITANIUM(HD|)| Xenon| Neon|XSK| 2| XS 2| PLATINUM| CARBON|GAMEPAD)\\b"),AinolTablet:/NOVO7|NOVO8|NOVO10|Novo7Aurora|Novo7Basic|NOVO7PALADIN|novo9-Spark/,NokiaLumiaTablet:/Lumia 2520/,SonyTablet:new RegExp("Sony.*Tablet|Xperia Tablet|Sony Tablet S|SO-03E|SGPT12|SGPT13|SGPT114|SGPT121|SGPT122|SGPT123|\n SGPT111|SGPT112|SGPT113|SGPT131|SGPT132|SGPT133|SGPT211|SGPT212|SGPT213|SGP311|SGP312|SGP321|EBRD1101|\n EBRD1102|EBRD1201|SGP351|SGP341|SGP511|SGP512|SGP521|SGP541|SGP551|SGP621|SGP641|SGP612|SOT31|SGP771|SGP611|\n SGP612|SGP712"),PhilipsTablet:/\b(PI2010|PI3000|PI3100|PI3105|PI3110|PI3205|PI3210|PI3900|PI4010|PI7000|PI7100)\b/,CubeTablet:/Android.*(K8GT|U9GT|U10GT|U16GT|U17GT|U18GT|U19GT|U20GT|U23GT|U30GT)|CUBE U8GT/,CobyTablet:new RegExp("MID1042|MID1045|MID1125|MID1126|MID7012|MID7014|MID7015|MID7034|MID7035|MID7036|MID7042|MID7048|\n MID7127|MID8042|MID8048|MID8127|MID9042|MID9740|MID9742|MID7022|MID7010"),MIDTablet:new RegExp("M9701|M9000|M9100|M806|M1052|M806|T703|MID701|MID713|MID710|MID727|MID760|MID830|MID728|MID933|\n MID125|MID810|MID732|MID120|MID930|MID800|MID731|MID900|MID100|MID820|MID735|MID980|MID130|MID833|MID737|\n MID960|MID135|MID860|MID736|MID140|MID930|MID835|MID733|MID4X10"),MSITablet:new RegExp("MSI \\b(Primo 73K|Primo 73L|Primo 81L|Primo 77|Primo 93|Primo 75|Primo 76|Primo 73|Primo 81|\n Primo 91|Primo 90|Enjoy 71|Enjoy 7|Enjoy 10)\\b"),SMiTTablet:/Android.*(\bMID\b|MID-560|MTV-T1200|MTV-PND531|MTV-P1101|MTV-PND530)/,RockChipTablet:/Android.*(RK2818|RK2808A|RK2918|RK3066)|RK2738|RK2808A/,FlyTablet:/IQ310|Fly Vision/,bqTablet:new RegExp("Android.*(bq)?.*(Elcano|Curie|Edison|Maxwell|Kepler|Pascal|Tesla|Hypatia|Platon|Newton|\n Livingstone|Cervantes|Avant|Aquaris ([E|M]10|M8))|Maxwell.*Lite|Maxwell.*Plus"),HuaweiTablet:new RegExp("MediaPad|MediaPad 7 Youth|MediaPad T3 10|IDEOS S7|S7-201c|S7-202u|S7-101|S7-103|S7-104|S7-105|S7-106|\n S7-201|S7-Slim|M2-A01L|BAH-L09|BAH-W09|AGS-W09|AGS-L09"),NecTablet:/\bN-06D|\bN-08D/,PantechTablet:/Pantech.*P4100/,BronchoTablet:/Broncho.*(N701|N708|N802|a710)/,VersusTablet:/TOUCHPAD.*[78910]|\bTOUCHTAB\b/,ZyncTablet:/z1000|Z99 2G|z99|z930|z999|z990|z909|Z919|z900/,PositivoTablet:/TB07STA|TB10STA|TB07FTA|TB10FTA/,NabiTablet:/Android.*\bNabi/,KoboTablet:/Kobo Touch|\bK080\b|\bVox\b Build|\bArc\b Build/,DanewTablet:/DSlide.*\b(700|701R|702|703R|704|802|970|971|972|973|974|1010|1012)\b/,TexetTablet:new RegExp("NaviPad|TB-772A|TM-7045|TM-7055|TM-9750|TM-7016|TM-7024|TM-7026|TM-7041|TM-7043|TM-7047|\n TM-8041|TM-9741|TM-9747|TM-9748|TM-9751|TM-7022|TM-7021|TM-7020|TM-7011|TM-7010|TM-7023|TM-7025|\n TM-7037W|TM-7038W|TM-7027W|TM-9720|TM-9725|TM-9737W|TM-1020|TM-9738W|TM-9740|TM-9743W|TB-807A|TB-771A|\n TB-727A|TB-725A|TB-719A|TB-823A|TB-805A|TB-723A|TB-715A|TB-707A|TB-705A|TB-709A|TB-711A|TB-890HD|\n TB-880HD|TB-790HD|TB-780HD|TB-770HD|TB-721HD|TB-710HD|TB-434HD|TB-860HD|TB-840HD|TB-760HD|TB-750HD|\n TB-740HD|TB-730HD|TB-722HD|TB-720HD|TB-700HD|TB-500HD|TB-470HD|TB-431HD|TB-430HD|TB-506|TB-504|TB-446|\n TB-436|TB-416|TB-146SE|TB-126SE"),PlaystationTablet:/Playstation.*(Portable|Vita)/,TrekstorTablet:/ST10416-1|VT10416-1|ST70408-1|ST702xx-1|ST702xx-2|ST80208|ST97216|ST70104-2|VT10416-2|ST10216-2A|SurfTab/,PyleAudioTablet:/\b(PTBL10CEU|PTBL10C|PTBL72BC|PTBL72BCEU|PTBL7CEU|PTBL7C|PTBL92BC|PTBL92BCEU|PTBL9CEU|PTBL9CUK|PTBL9C)\b/,AdvanTablet:new RegExp("Android.* \\b(E3A|T3X|T5C|T5B|T3E|T3C|T3B|T1J|T1F|T2A|T1H|T1i|E1C|T1-E|T5-A|T4|E1-B|T2Ci|\n T1-B|T1-D|O1-A|E1-A|T1-A|T3A|T4i)\\b"),DanyTechTablet:"Genius Tab G3|Genius Tab S2|Genius Tab Q3|Genius Tab G4|Genius Tab Q4|Genius Tab G-II|\n Genius TAB GII|Genius TAB GIII|Genius Tab S1",GalapadTablet:/Android.*\bG1\b(?!\))/,MicromaxTablet:/Funbook|Micromax.*\b(P250|P560|P360|P362|P600|P300|P350|P500|P275)\b/,KarbonnTablet:/Android.*\b(A39|A37|A34|ST8|ST10|ST7|Smart Tab3|Smart Tab2)\b/,AllFineTablet:/Fine7 Genius|Fine7 Shine|Fine7 Air|Fine8 Style|Fine9 More|Fine10 Joy|Fine11 Wide/,PROSCANTablet:new RegExp("\\b(PEM63|PLT1023G|PLT1041|PLT1044|PLT1044G|PLT1091|PLT4311|PLT4311PL|PLT4315|PLT7030|\n PLT7033|PLT7033D|PLT7035|PLT7035D|PLT7044K|PLT7045K|PLT7045KB|PLT7071KG|PLT7072|PLT7223G|PLT7225G|\n PLT7777G|PLT7810K|PLT7849G|PLT7851G|PLT7852G|PLT8015|PLT8031|PLT8034|PLT8036|PLT8080K|PLT8082|PLT8088|\n PLT8223G|PLT8234G|PLT8235G|PLT8816K|PLT9011|PLT9045K|PLT9233G|PLT9735|PLT9760G|PLT9770G)\\b"),YONESTablet:/BQ1078|BC1003|BC1077|RK9702|BC9730|BC9001|IT9001|BC7008|BC7010|BC708|BC728|BC7012|BC7030|BC7027|BC7026/,ChangJiaTablet:new RegExp("TPC7102|TPC7103|TPC7105|TPC7106|TPC7107|TPC7201|TPC7203|TPC7205|TPC7210|TPC7708|TPC7709|\n TPC7712|TPC7110|TPC8101|TPC8103|TPC8105|TPC8106|TPC8203|TPC8205|TPC8503|TPC9106|TPC9701|TPC97101|TPC97103|\n TPC97105|TPC97106|TPC97111|TPC97113|TPC97203|TPC97603|TPC97809|TPC97205|TPC10101|TPC10103|TPC10106|\n TPC10111|TPC10203|TPC10205|TPC10503"),GUTablet:/TX-A1301|TX-M9002|Q702|kf026/,PointOfViewTablet:new RegExp("TAB-P506|TAB-navi-7-3G-M|TAB-P517|TAB-P-527|TAB-P701|TAB-P703|TAB-P721|TAB-P731N|\n TAB-P741|TAB-P825|TAB-P905|TAB-P925|TAB-PR945|TAB-PL1015|TAB-P1025|TAB-PI1045|TAB-P1325|TAB-PROTAB[0-9]+|\n TAB-PROTAB25|TAB-PROTAB26|TAB-PROTAB27|TAB-PROTAB26XL|TAB-PROTAB2-IPS9|TAB-PROTAB30-IPS9|TAB-PROTAB25XXL|\n TAB-PROTAB26-IPS10|TAB-PROTAB30-IPS10"),OvermaxTablet:new RegExp("OV-(SteelCore|NewBase|Basecore|Baseone|Exellen|Quattor|EduTab|Solution|ACTION|BasicTab|TeddyTab|\n MagicTab|Stream|TB-08|TB-09)|Qualcore 1027"),HCLTablet:/HCL.*Tablet|Connect-3G-2.0|Connect-2G-2.0|ME Tablet U1|ME Tablet U2|ME Tablet G1|ME Tablet X1|ME Tablet Y2|ME Tablet Sync/,DPSTablet:/DPS Dream 9|DPS Dual 7/,VistureTablet:/V97 HD|i75 3G|Visture V4( HD)?|Visture V5( HD)?|Visture V10/,CrestaTablet:/CTP(-)?810|CTP(-)?818|CTP(-)?828|CTP(-)?838|CTP(-)?888|CTP(-)?978|CTP(-)?980|CTP(-)?987|CTP(-)?988|CTP(-)?989/,MediatekTablet:/\bMT8125|MT8389|MT8135|MT8377\b/,ConcordeTablet:/Concorde([ ]+)?Tab|ConCorde ReadMan/,GoCleverTablet:new RegExp("GOCLEVER TAB|A7GOCLEVER|M1042|M7841|M742|R1042BK|R1041|TAB A975|TAB A7842|TAB A741|TAB A741L|TAB M723G|\n TAB M721|TAB A1021|TAB I921|TAB R721|TAB I720|TAB T76|TAB R70|TAB R76.2|TAB R106|TAB R83.2|TAB M813G|TAB I721|\n GCTA722|TAB I70|TAB I71|TAB S73|TAB R73|TAB R74|TAB R93|TAB R75|TAB R76.1|TAB A73|TAB A93|TAB A93.2|TAB T72|\n TAB R83|TAB R974|TAB R973|TAB A101|TAB A103|TAB A104|TAB A104.2|R105BK|M713G|A972BK|TAB A971|TAB R974.2|\n TAB R104|TAB R83.3|TAB A1042"),ModecomTablet:new RegExp("FreeTAB 9000|FreeTAB 7.4|FreeTAB 7004|FreeTAB 7800|FreeTAB 2096|FreeTAB 7.5|FreeTAB 1014|\n FreeTAB 1001 |FreeTAB 8001|FreeTAB 9706|FreeTAB 9702|FreeTAB 7003|FreeTAB 7002|FreeTAB 1002|FreeTAB 7801|\n FreeTAB 1331|FreeTAB 1004|FreeTAB 8002|FreeTAB 8014|FreeTAB 9704|FreeTAB 1003"),VoninoTablet:new RegExp("\\b(Argus[ _]?S|Diamond[ _]?79HD|Emerald[ _]?78E|Luna[ _]?70C|Onyx[ _]?S|Onyx[ _]?Z|\n Orin[ _]?HD|Orin[ _]?S|Otis[ _]?S|SpeedStar[ _]?S|Magnet[ _]?M9|Primus[ _]?94[ _]?3G|Primus[ _]?94HD|\n Primus[ _]?QS|Android.*\\bQ8\\b|Sirius[ _]?EVO[ _]?QS|Sirius[ _]?QS|Spirit[ _]?S)\\b"),ECSTablet:/V07OT2|TM105A|S10OT1|TR10CS1/,StorexTablet:/eZee[_']?(Tab|Go)[0-9]+|TabLC7|Looney Tunes Tab/,VodafoneTablet:/SmartTab([ ]+)?[0-9]+|SmartTabII10|SmartTabII7|VF-1497/,EssentielBTablet:/Smart[ ']?TAB[ ]+?[0-9]+|Family[ ']?TAB2/,RossMoorTablet:/RM-790|RM-997|RMD-878G|RMD-974R|RMT-705A|RMT-701|RME-601|RMT-501|RMT-711/,iMobileTablet:/i-mobile i-note/,TolinoTablet:/tolino tab [0-9.]+|tolino shine/,AudioSonicTablet:/\bC-22Q|T7-QC|T-17B|T-17P\b/,AMPETablet:/Android.* A78 /,SkkTablet:/Android.* (SKYPAD|PHOENIX|CYCLOPS)/,TecnoTablet:/TECNO P9|TECNO DP8D/,JXDTablet:new RegExp("Android.* \\b(F3000|A3300|JXD5000|JXD3000|JXD2000|JXD300B|JXD300|S5800|S7800|S602b|S5110b|S7300|\n S5300|S602|S603|S5100|S5110|S601|S7100a|P3000F|P3000s|P101|P200s|P1000m|P200m|P9100|P1000s|S6600b|S908|\n P1000|P300|S18|S6600|S9100)\\b"),iJoyTablet:new RegExp("Tablet (Spirit 7|Essentia|Galatea|Fusion|Onix 7|Landa|Titan|Scooby|Deox|Stella|Themis|Argon|\n Unique 7|Sygnus|Hexen|Finity 7|Cream|Cream X2|Jade|Neon 7|Neron 7|Kandy|Scape|Saphyr 7|Rebel|Biox|Rebel|\n Rebel 8GB|Myst|Draco 7|Myst|Tab7-004|Myst|Tadeo Jones|Tablet Boing|Arrow|Draco Dual Cam|Aurix|Mint|Amity|\n Revolution|Finity 9|Neon 9|T9w|Amity 4GB Dual Cam|Stone 4GB|Stone 8GB|Andromeda|Silken|X2|Andromeda II|\n Halley|Flame|Saphyr 9,7|Touch 8|Planet|Triton|Unique 10|Hexen 10|Memphis 4GB|Memphis 8GB|Onix 10)"),FX2Tablet:/FX2 PAD7|FX2 PAD10/,XoroTablet:new RegExp("KidsPAD 701|PAD[ ]?712|PAD[ ]?714|PAD[ ]?716|PAD[ ]?717|PAD[ ]?718|PAD[ ]?720|PAD[ ]?721|\n PAD[ ]?722|PAD[ ]?790|PAD[ ]?792|PAD[ ]?900|PAD[ ]?9715D|PAD[ ]?9716DR|PAD[ ]?9718DR|PAD[ ]?9719QR|\n PAD[ ]?9720QR|TelePAD1030|Telepad1032|TelePAD730|TelePAD731|TelePAD732|TelePAD735Q|TelePAD830|TelePAD9730|\n TelePAD795|MegaPAD 1331|MegaPAD 1851|MegaPAD 2151"),ViewsonicTablet:/ViewPad 10pi|ViewPad 10e|ViewPad 10s|ViewPad E72|ViewPad7|ViewPad E100|ViewPad 7e|ViewSonic VB733|VB100a/,VerizonTablet:/QTAQZ3|QTAIR7|QTAQTZ3|QTASUN1|QTASUN2|QTAXIA1/,OdysTablet:/LOOX|XENO10|ODYS[ -](Space|EVO|Xpress|NOON)|\bXELIO\b|Xelio10Pro|XELIO7PHONETAB|XELIO10EXTREME|XELIOPT2|NEO_QUAD10/,CaptivaTablet:/CAPTIVA PAD/,IconbitTablet:new RegExp("NetTAB|NT-3702|NT-3702S|NT-3702S|NT-3603P|NT-3603P|NT-0704S|NT-0704S|NT-3805C|NT-3805C|\n NT-0806C|NT-0806C|NT-0909T|NT-0909T|NT-0907S|NT-0907S|NT-0902S|NT-0902S"),TeclastTablet:new RegExp("T98 4G|\\bP80\\b|\\bX90HD\\b|X98 Air|X98 Air 3G|\\bX89\\b|P80 3G|\\bX80h\\b|P98 Air|\n \\bX89HD\\b|P98 3G|\\bP90HD\\b|P89 3G|X98 3G|\\bP70h\\b|P79HD 3G|G18d 3G|\\bP79HD\\b|\\bP89s\\b|\\bA88\\b|\n \\bP10HD\\b|\\bP19HD\\b|G18 3G|\\bP78HD\\b|\\bA78\\b|\\bP75\\b|G17s 3G|G17h 3G|\\bP85t\\b|\\bP90\\b|\n \\bP11\\b|\\bP98t\\b|\\bP98HD\\b|\\bG18d\\b|\\bP85s\\b|\\bP11HD\\b|\\bP88s\\b|\\bA80HD\\b|\\bA80se\\b|\n \\bA10h\\b|\\bP89\\b|\\bP78s\\b|\\bG18\\b|\\bP85\\b|\\bA70h\\b|\\bA70\\b|\\bG17\\b|\\bP18\\b|\\bA80s\\b|\n \\bA11s\\b|\\bP88HD\\b|\\bA80h\\b|\\bP76s\\b|\\bP76h\\b|\\bP98\\b|\\bA10HD\\b|\\bP78\\b|\\bP88\\b|\\bA11\\b|\n \\bA10t\\b|\\bP76a\\b|\\bP76t\\b|\\bP76e\\b|\\bP85HD\\b|\\bP85a\\b|\\bP86\\b|\\bP75HD\\b|\\bP76v\\b|\\bA12\\b|\n \\bP75a\\b|\\bA15\\b|\\bP76Ti\\b|\\bP81HD\\b|\\bA10\\b|\\bT760VE\\b|\\bT720HD\\b|\\bP76\\b|\\bP73\\b|\\bP71\\b|\n \\bP72\\b|\\bT720SE\\b|\\bC520Ti\\b|\\bT760\\b|\\bT720VE\\b|T720-3GE|T720-WiFi"),OndaTablet:new RegExp("\\b(V975i|Vi30|VX530|V701|Vi60|V701s|Vi50|V801s|V719|Vx610w|VX610W|V819i|Vi10|VX580W|Vi10|\n V711s|V813|V811|V820w|V820|Vi20|V711|VI30W|V712|V891w|V972|V819w|V820w|Vi60|V820w|V711|V813s|V801|V819|\n V975s|V801|V819|V819|V818|V811|V712|V975m|V101w|V961w|V812|V818|V971|V971s|V919|V989|V116w|V102w|V973|\n Vi40)\\b[s]+|V10 \\b4G\\b"),JaytechTablet:/TPC-PA762/,BlaupunktTablet:/Endeavour 800NG|Endeavour 1010/,DigmaTablet:/\b(iDx10|iDx9|iDx8|iDx7|iDxD7|iDxD8|iDsQ8|iDsQ7|iDsQ8|iDsD10|iDnD7|3TS804H|iDsQ11|iDj7|iDs10)\b/,EvolioTablet:/ARIA_Mini_wifi|Aria[ _]Mini|Evolio X10|Evolio X7|Evolio X8|\bEvotab\b|\bNeura\b/,LavaTablet:/QPAD E704|\bIvoryS\b|E-TAB IVORY|\bE-TAB\b/,AocTablet:/MW0811|MW0812|MW0922|MTK8382|MW1031|MW0831|MW0821|MW0931|MW0712/,MpmanTablet:new RegExp("MP11 OCTA|MP10 OCTA|MPQC1114|MPQC1004|MPQC994|MPQC974|MPQC973|MPQC804|MPQC784|MPQC780|\n \\bMPG7\\b|MPDCG75|MPDCG71|MPDC1006|MP101DC|MPDC9000|MPDC905|MPDC706HD|MPDC706|MPDC705|MPDC110|\n MPDC100|MPDC99|MPDC97|MPDC88|MPDC8|MPDC77|MP709|MID701|MID711|MID170|MPDC703|MPQC1010"),CelkonTablet:/CT695|CT888|CT[\s]?910|CT7 Tab|CT9 Tab|CT3 Tab|CT2 Tab|CT1 Tab|C820|C720|\bCT-1\b/,WolderTablet:new RegExp("miTab \\b(DIAMOND|SPACE|BROOKLYN|NEO|FLY|MANHATTAN|FUNK|EVOLUTION|SKY|GOCAR|IRON|GENIUS|\n POP|MINT|EPSILON|BROADWAY|JUMP|HOP|LEGEND|NEW AGE|LINE|ADVANCE|FEEL|FOLLOW|LIKE|LINK|LIVE|THINK|\n FREEDOM|CHICAGO|CLEVELAND|BALTIMORE-GH|IOWA|BOSTON|SEATTLE|PHOENIX|DALLAS|IN 101|MasterChef)\\b"),MediacomTablet:"M-MPI10C3G|M-SP10EG|M-SP10EGP|M-SP10HXAH|M-SP7HXAH|M-SP10HXBH|M-SP8HXAH|M-SP8MXA",MiTablet:/\bMI PAD\b|\bHM NOTE 1W\b/,NibiruTablet:/Nibiru M1|Nibiru Jupiter One/,NexoTablet:/NEXO NOVA|NEXO 10|NEXO AVIO|NEXO FREE|NEXO GO|NEXO EVO|NEXO 3G|NEXO SMART|NEXO KIDDO|NEXO MOBI/,LeaderTablet:new RegExp("TBLT10Q|TBLT10I|TBL-10WDKB|TBL-10WDKBO2013|TBL-W230V2|TBL-W450|TBL-W500|SV572|TBLT7I|\n TBA-AC7-8G|TBLT79|TBL-8W16|TBL-10W32|TBL-10WKB|TBL-W100"),UbislateTablet:/UbiSlate[\s]?7C/,PocketBookTablet:/Pocketbook/,KocasoTablet:/\b(TB-1207)\b/,HisenseTablet:/\b(F5281|E2371)\b/,Hudl:/Hudl HT7S3|Hudl 2/,TelstraTablet:/T-Hub2/,Honeywell:/RT10A/,GenericTablet:new RegExp("Android.*\\b97D\\b|Tablet(?!.*PC)|BNTV250A|MID-WCDMA|LogicPD Zoom2|\\bA7EB\\b|CatNova8|\n A1_07|CT704|CT1002|\\bM721\\b|rk30sdk|\\bEVOTAB\\b|M758A|ET904|ALUMIUM10|Smartfren Tab|Endeavour 1010|\n Tablet-PC-4|Tagi Tab|\\bM6pro\\b|CT1020W|arc 10HD|\\bTP750\\b|\\bQTAQZ3\\b|WVT101|TM1088|KT107")},F={BLACKBERRY:"Blackberry",FIREFOX_OS:"Firefox-OS",CHROME_BOOK:"Chrome-Book",WINDOWS_PHONE:"Windows-Phone",VITA:"Vita",PS4:"PS4",MAC:"Macintosh",CHROMECAST:"Chromecast",APPLE_TV:"Apple-TV",GOOGLE_TV:"Google-TV",ANDROID:"Android",Tesla:"Tesla",iPad:"iPad",IPHONE:"iPhone",iPod:"iPod",UNKNOWN:I.UKNOWN,HTC:"HTC",NEXUS_PHONE:"Nexus Phone",NexusTablet:"Nexus Tablet",DELL:"Dell",MOTOROLA:"Motorola",SAMSUNG:"Samsung",LG:"LG",SONY:"Sony",ASUS:"Asus",NOKIA_LUMIA:"Nokia Lumia",MICROMAX:"Micromax",PALM:"Palm",VERTU:"Vertu",PANTECH:"PANTECH",FLY:"Fly",WIKO:"WIKO",I_MOBILE:"i-mobile",SIMVALLEY:"Simvalley",WOLFGANG:"Wolfgang",ALCATEL:"Alcatel",HONEYWELL:"Honeywell",NINTENDO:"Nintendo",AMOI:"Amoi",INQ:"INQ",GENERIC_PHONE:"Generic Phone",MI_SE_9:"Mi SE 9"},Y=[F.PS4,F.CHROME_BOOK,F.MAC,F.DELL,F.ASUS,F.UNKNOWN],Q={WINDOWS:"Windows",MAC:"Mac",IOS:"iOS",ANDROID:"Android",LINUX:"Linux",UNIX:"Unix",FIREFOX_OS:"Firefox-OS",CHROME_OS:"Chrome-OS",WINDOWS_PHONE:"Windows-Phone",UNKNOWN:I.UKNOWN},se={WINDOWS_3_11:"windows-3-11",WINDOWS_95:"windows-95",WINDOWS_ME:"windows-me",WINDOWS_98:"windows-98",WINDOWS_CE:"windows-ce",WINDOWS_2000:"windows-2000",WINDOWS_XP:"windows-xp",WINDOWS_SERVER_2003:"windows-server-2003",WINDOWS_VISTA:"windows-vista",WINDOWS_7:"windows-7",WINDOWS_8_1:"windows-8-1",WINDOWS_8:"windows-8",WINDOWS_10:"windows-10",WINDOWS_PHONE_7_5:"windows-phone-7-5",WINDOWS_PHONE_8_1:"windows-phone-8-1",WINDOWS_PHONE_10:"windows-phone-10",WINDOWS_NT_4_0:"windows-nt-4-0",MACOSX_11_0:"mac-os-x-11-0",MACOSX_16:"mac-os-x-16",MACOSX_15:"mac-os-x-15",MACOSX_14:"mac-os-x-14",MACOSX_13:"mac-os-x-13",MACOSX_12:"mac-os-x-12",MACOSX_11:"mac-os-x-11",MACOSX_10:"mac-os-x-10",MACOSX_9:"mac-os-x-9",MACOSX_8:"mac-os-x-8",MACOSX_7:"mac-os-x-7",MACOSX_6:"mac-os-x-6",MACOSX_5:"mac-os-x-5",MACOSX_4:"mac-os-x-4",MACOSX_3:"mac-os-x-3",MACOSX_2:"mac-os-x-2",MACOSX:"mac-os-x",iOS:"iOS",ANDROID_9:"android-9",UNKNOWN:I.UKNOWN.toLowerCase()},ie={WINDOWS:{and:[{or:[/\bWindows|(Win\d\d)\b/,/\bWin 9x\b/]},{not:/\bWindows Phone\b/}]},MAC:{and:[/\bMac OS\b/,{not:{or:[/\biPhone\b/,/\biPad\b/,/\biPod\b/,/\bWindows Phone\b/]}}]},IOS:{and:[{or:[/\biPad\b/,/\biPhone\b/,/\biPod\b/]},{not:/\bWindows Phone\b/}]},ANDROID:{and:[/\bAndroid\b/,{not:/\bWindows Phone\b/}]},LINUX:/\bLinux\b/,UNIX:/\bUNIX\b/,FIREFOX_OS:{and:[/\bFirefox\b/,/Mobile\b/]},CHROME_OS:/\bCrOS\b/,WINDOWS_PHONE:{or:[/\bIEMobile\b/,/\bWindows Phone\b/]},PS4:/\bMozilla\/5.0 \(PlayStation 4\b/,VITA:/\bMozilla\/5.0 \(Play(S|s)tation Vita\b/},re={...g,...C,...ie,FIREFOX_OS:{and:[/\bFirefox\b/,/\bMobile\b/]},CHROME_BOOK:/\bCrOS\b/,PS4:/\bMozilla\/5.0 \(PlayStation 4\b/,CHROMECAST:/\bCrKey\b/,APPLE_TV:/^iTunes-AppleTV\/4.1$/,GOOGLE_TV:/\bGoogleTV\b/,Tesla:/Tesla\/([0-9]{4}.[0-9]{1,2}.?[0-9]{0,2}.?[0-9]{0,2})-(.{7})/,MI_SE_9:/\bXiaomi\b/,MAC:{and:[/\bMac OS\b/,{not:{or:[/\biPhone\b/,/\biPad\b/,/\biPod\b/,/\bWindows Phone\b/]}}]}},ne={WINDOWS_3_11:/Win16/,WINDOWS_95:/(Windows 95|Win95|Windows_95)/,WINDOWS_ME:/(Win 9x 4.90|Windows ME)/,WINDOWS_98:/(Windows 98|Win98)/,WINDOWS_CE:/Windows CE/,WINDOWS_2000:/(Windows NT 5.0|Windows 2000)/,WINDOWS_XP:/(Windows NT 5.1|Windows XP)/,WINDOWS_SERVER_2003:/Windows NT 5.2/,WINDOWS_VISTA:/Windows NT 6.0/,WINDOWS_7:/(Windows 7|Windows NT 6.1)/,WINDOWS_8_1:/(Windows 8.1|Windows NT 6.3)/,WINDOWS_8:/(Windows 8|Windows NT 6.2)/,WINDOWS_10:/(Windows NT 10.0)/,WINDOWS_PHONE_7_5:/(Windows Phone OS 7.5)/,WINDOWS_PHONE_8_1:/(Windows Phone 8.1)/,WINDOWS_PHONE_10:/(Windows Phone 10)/,WINDOWS_NT_4_0:{and:[/(Windows NT 4.0|WinNT4.0|WinNT|Windows NT)/,{not:/Windows NT 10.0/}]},MACOSX:/(MAC OS X\s*[^ 0-9])/,MACOSX_3:/(Darwin 10.3|Mac OS X 10.3)/,MACOSX_4:/(Darwin 10.4|Mac OS X 10.4)/,MACOSX_5:/(Mac OS X 10.5)/,MACOSX_6:/(Mac OS X 10.6)/,MACOSX_7:/(Mac OS X 10.7)/,MACOSX_8:/(Mac OS X 10.8)/,MACOSX_9:/(Mac OS X 10.9)/,MACOSX_10:/(Mac OS X 10.10)/,MACOSX_11:/(Mac OS X 10.11)/,MACOSX_12:/(Mac OS X 10.12)/,MACOSX_13:/(Mac OS X 10.13)/,MACOSX_14:/(Mac OS X 10.14)/,MACOSX_15:/(Mac OS X 10.15)/,MACOSX_16:/(Mac OS X 10.16)/,MACOSX_11_0:{or:[/11_0 like Mac OS X/,/Mac OS X 11/]},iOS:/(iPhone OS\s*[0-9_]+)/,ANDROID_9:/(Android 9)/},_e={CHROME:[/\bChrome\/([\d\.]+)\b/,/\bCriOS\/([\d\.]+)\b/,/\bHeadlessChrome\/([\d\.]+)\b/],FIREFOX:[/\bFirefox\/([\d\.]+)\b/,/\bFxiOS\/([\d\.]+)\b/],SAFARI:[/\bVersion\/([\d\.]+)\b/,/\bSafari\/([\d\.]+)\b/],OPERA:[/\bVersion\/([\d\.]+)\b/,/\bOPR\/([\d\.]+)\b/],IE:[/\bMSIE ([\d\.]+\w?)\b/,/\brv:([\d\.]+\w?)\b/],MS_EDGE:/\bEdg(?:e|A|iOS)\/([\d\.]+)\b/,MS_EDGE_CHROMIUM:/\bEdg\/([\d\.]+)\b/,SAMSUNG:/\bSamsungBrowser\/([\d\.]+)\b/,UCBROWSER:/\bUCBrowser\/([\d\.]+)\b/},be=Object.keys(ne).reduce((Ee,he)=>(Ee[he]=ne[he],Ee),{}),oe=Object.keys(_e).reduce((Ee,he)=>(Ee[x[he]]=_e[he],Ee),{});var me=Object.freeze({__proto__:null,BROWSERS:x,BROWSERS_RE:{CHROME:{and:[{or:[/\bChrome\b/,/\bCriOS\b/,/\bHeadlessChrome\b/]},{not:{or:[/\bOPR\b/,/\bEdg(e|A|iOS)\b/,/\bEdg\/\b/,/\bSamsungBrowser\b/,/\bUCBrowser\b/]}}]},FIREFOX:{or:[/\bFirefox\b/,/\bFxiOS\b/]},SAFARI:{and:[/^((?!CriOS).)*\Safari\b.*$/,{not:{or:[/\bOPR\b/,/\bEdg(e|A|iOS)\b/,/\bEdg\/\b/,/\bWindows Phone\b/,/\bSamsungBrowser\b/,/\bUCBrowser\b/]}}]},OPERA:{or:[/Opera\b/,/\bOPR\b/]},IE:{or:[/\bMSIE\b/,/\bTrident\b/,/^Mozilla\/5\.0 \(Windows NT 10\.0; Win64; x64\)$/]},MS_EDGE:{or:[/\bEdg(e|A|iOS)\b/]},MS_EDGE_CHROMIUM:/\bEdg\/\b/,PS4:/\bMozilla\/5.0 \(PlayStation 4\b/,VITA:/\bMozilla\/5.0 \(Play(S|s)tation Vita\b/,FB_MESSANGER:/\bFBAN\/MessengerForiOS\b/,SAMSUNG:/\bSamsungBrowser\b/,UCBROWSER:/\bUCBrowser\b/},BROWSER_VERSIONS_RE:oe,BROWSER_VERSIONS_RE_MAP:_e,DESKTOP_DEVICES:Y,DEVICES:F,DEVICES_RE:re,GENERAL:I,MOBILES_RE:g,OS:Q,OS_RE:ie,OS_VERSIONS:se,OS_VERSIONS_RE:be,OS_VERSIONS_RE_MAP:ne,TABLETS_RE:C});class we{constructor(){}test(he,Ie){return"string"==typeof Ie&&(Ie=new RegExp(Ie)),Ie instanceof RegExp?Ie.test(he):Ie&&Array.isArray(Ie.and)?Ie.and.every(ce=>this.test(he,ce)):Ie&&Array.isArray(Ie.or)?Ie.or.some(ce=>this.test(he,ce)):!(!Ie||!Ie.not||this.test(he,Ie.not))}exec(he,Ie){return"string"==typeof Ie&&(Ie=new RegExp(Ie)),Ie instanceof RegExp?Ie.exec(he):Ie&&Array.isArray(Ie)?Ie.reduce((ce,de)=>ce||this.exec(he,de),null):null}}var N=function(Ee){return Ee.Mobile="mobile",Ee.Tablet="tablet",Ee.Desktop="desktop",Ee.Unknown="unknown",Ee}(N||{}),G=function(Ee){return Ee.Portrait="portrait",Ee.Landscape="landscape",Ee}(G||{});const W="iPad";let z=(()=>{class Ee{constructor(Ie){this.platformId=Ie,this.ua="",this.userAgent="",this.os="",this.browser="",this.device="",this.os_version="",this.browser_version="",this.reTree=new we,this.deviceType="",this.orientation="",(0,k.UE)(this.platformId)&&typeof window<"u"&&(this.userAgent=window.navigator.userAgent),this.setDeviceInfo(this.userAgent)}setDeviceInfo(Ie=this.userAgent){Ie!==this.userAgent&&(this.userAgent=Ie);const ce=[{const:"OS",prop:"os"},{const:"BROWSERS",prop:"browser"},{const:"DEVICES",prop:"device"},{const:"OS_VERSIONS",prop:"os_version"}];if(ce.forEach(de=>{this[de.prop]=Object.keys(me[de.const]).reduce((pe,Be)=>"device"===me[de.const][Be]&&(0,k.UE)(this.platformId)&&(this.reTree.test(this.userAgent,C[W])||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)?(pe[me[de.const][Be]]=W,Object):(pe[me[de.const][Be]]=this.reTree.test(Ie,me[`${de.const}_RE`][Be]),pe),{})}),ce.forEach(de=>{this[de.prop]=Object.keys(me[de.const]).map(pe=>me[de.const][pe]).reduce((pe,Be)=>"device"===de.prop&&pe===me[de.const].ANDROID?this[de.prop][Be]?Be:pe:pe===me[de.const].UNKNOWN&&this[de.prop][Be]?Be:pe,me[de.const].UNKNOWN)}),this.browser_version="0",this.browser!==x.UNKNOWN){const pe=this.reTree.exec(Ie,oe[this.browser]);pe&&(this.browser_version=pe[1])}this.orientation=typeof window<"u"&&window.matchMedia?window.matchMedia("(orientation: landscape)").matches?G.Landscape:G.Portrait:I.UKNOWN,this.deviceType=this.isTablet()?N.Tablet:this.isMobile(this.userAgent)?N.Mobile:this.isDesktop(this.userAgent)?N.Desktop:N.Unknown}getDeviceInfo(){return{userAgent:this.userAgent,os:this.os,browser:this.browser,device:this.device,os_version:this.os_version,browser_version:this.browser_version,deviceType:this.deviceType,orientation:this.orientation}}isMobile(Ie=this.userAgent){return!this.isTablet(Ie)&&!!Object.keys(g).find(de=>this.reTree.test(Ie,g[de]))}isTablet(Ie=this.userAgent){return!(!(0,k.UE)(this.platformId)||!(this.reTree.test(this.userAgent,C[W])||typeof navigator<"u"&&"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1))||!!Object.keys(C).find(de=>!!this.reTree.test(Ie,C[de]))}isDesktop(Ie=this.userAgent){return(this.device!==F.UNKNOWN||!this.isMobile(Ie)&&!this.isTablet(Ie))&&Y.indexOf(this.device)>-1}static#e=this.\u0275fac=function(ce){return new(ce||Ee)(d.KVO(d.Agw))};static#t=this.\u0275prov=d.jDH({token:Ee,factory:Ee.\u0275fac,providedIn:"root"})}return Ee})();var X=D(36554),q=D(12748),ye=D(62855);class xe{constructor(he,Ie,ce){this.idToken=he,this.expiresAt=Ie,this.expiresInSec=ce}}let ge=(()=>{class Ee{get versionObsolete(){return this._versionObsolete}set versionObsolete(Ie){this._versionObsolete!==Ie&&(this._versionObsolete=Ie,Ie&&this.versionObsolete$.next())}constructor(Ie,ce,de,pe,Be,We,tt,vt,Xt,Nt){if(this.dialog=Ie,this.router=ce,this.repositoryService=de,this.appLogsService=pe,this.uiNotifier=Be,this.deviceService=We,this.spinnerService=tt,this.translate=vt,this.localeService=Xt,this.environment=(0,d.WQX)(_.i2),this.EN_LoginStatus_Unknown=R.ME.unknown,this.EN_LoginStatus_JWT=R.ME.jwt,this.EN_LoginStatus_Password=R.ME.loginWithNameAndPassword,this.EN_LoginStatus_Windows=R.ME.windowsAuthorizatoin,this.versionObsolete$=new j.B,this.loginAction$=new j.B,this.loginLogout$=new o.t(null),this.loginStatus=R.ME.unknown,this.useWindowsLogin=!0,this.isMobileDevice=!1,this.expiredJWTLogout=!1,this.useJWT=!1,this._user=new v.j,this._versionObsolete=!1,this.isRunningRenewJWT=!1,de.authService=this,this.isMobileDevice=!this.deviceService.isDesktop(),this.useWindowsLogin=!this.isMobileDevice,"useLoginWithJWT"in this.environment&&(this.useJWT=this.environment.useLoginWithJWT),"dontUseWindowsLogin"in this.environment&&(this.useWindowsLogin=!this.environment.dontUseWindowsLogin),Nt)throw new Error("Authorization service is already loaded. Import it in the AppModule only");this.loginAction$.subscribe(Qe=>{Qe.result?(!this.user.isAdmin&&this.environment.production&&window&&(window.console.log=function(){},this.uiNotifier.isActive=!1),this.appLogsService.log(Qe.errMsg,this.user),this.uiNotifier.showMessage(this.translate.instant("core.msg.loggedon",{value:this.user.loginName}))):(this.appLogsService.error(Qe.errMsg),this.uiNotifier.showMessage(`${Qe.errMsg}`))}),this.environment.sentry_dsn&&this.loginLogout$.subscribe(Qe=>{L.o5().setUser({id:Qe?.webAppUserId.toString(),shortname:Qe?.shortName,username:Qe?.name,login:Qe?.loginName})}),this.appLogsService.dlog("AuthorizeService is initialized")}get user(){return this._user}set user(Ie){this._user=Ie}isLoggedIn(){return this.isValidUser()}isValidUser(){return!this.isEmptyUser()&&0!==this.user.entityId}isEmptyUser(){return!this._user||this._user.isEmpty()}get loginname(){return this.user?.loginName}get userName(){return this.user?.name}logout(Ie=!0){this.loginStatus=this.EN_LoginStatus_Password,this._user.clear(),localStorage.removeItem("HR-JWToken"),this.HR_JWT=void 0,Ie&&(this.isLoggedUserChanged()&&this.loginLogout$.next(null),this.lastLoggedUserId=null,this.router.navigate(["/"+m.m0.path]))}login(Ie,ce){var de=this;const pe=!!Ie;if(!pe&&!this.useJWT&&!this.useWindowsLogin)return;const Be=pe?R.dr:this.useJWT?R.cX:R.P9,We=pe?this.translate.instant("core.error.logon"):this.translate.instant("core.error.logonnotpossible",{value:this.translate.instant(this.useJWT?"JWT-":"Windows-")});this.user.loginName=Ie,this.user.password=ce,this.user.clientVersion=this.environment.appVersion;try{this.user.timeZoneOffsetInMin=(new Date).getTimezoneOffset();const tt=this.repositoryService.postData(this.user.typeName+"/"+Be,this.user);pe&&(this.HR_JWT=void 0,this.user.culture=this.localeService.currentCulture,this.user.language=this.localeService.currentLanguage),tt.subscribe(function(){var vt=(0,r.A)(function*(Xt){if(de.user.assign(Xt),de.user.entityId)if(de.user.roleList&&(de.user.isMaster||de.user.isInRolle("departmentuser")||de.user.isInRolle("sDigital Data - IIM-Benutzer"))){if(pe?(de.jwtAuthentication(),de.loginStatus=de.EN_LoginStatus_Password):de.loginStatus=de.jwtAuthentication()?de.EN_LoginStatus_JWT:de.EN_LoginStatus_Windows,Xt.language&&(de.localeService.currentLanguage=Xt.language),Xt.culture&&(de.localeService.currentCulture=Xt.culture),Xt.showDisclaimer&&de.processDisclaimer&&(E.N.LOGIN_IS_SHOWN=!0,!(yield de.processDisclaimer(Xt))))return E.N.LOGIN_IS_SHOWN=!1,void de.loginAction$.next({result:!1,errMsg:de.translate.instant("core.error.disclaimernotconfirmed")});de.isLoggedUserChanged()&&de.loginLogout$.next(Xt),de.appLogsService.dlog("!! - eingelogged",(new Date).toTimeString(),Xt),de.loginAction$.next({result:!0,entity:Xt}),de.lastLoggedUserId=Xt.webAppUserId}else de.loginAction$.next({result:!1,errMsg:de.translate.instant("core.error.nouserrole"),entity:Xt}),de.loginStatus=de.EN_LoginStatus_Password;else de.loginAction$.next({result:!1,errMsg:Xt.Message}),de.loginStatus=de.EN_LoginStatus_Password});return function(Xt){return vt.apply(this,arguments)}}(),vt=>{this.loginAction$.next({result:!1,errMsg:We+("string"==typeof vt.error&&-1===vt.error.indexOf("Exception")?" "+vt.error:"")}),this.loginStatus=this.EN_LoginStatus_Password})}catch(tt){this.loginStatus=this.EN_LoginStatus_Password,this.appLogsService.dlog(Be+" Unexpected Error",tt)}}isLoggedUserChanged(){return(this.lastLoggedUserId??0)!==(this.user?.webAppUserId??0)}checkJWT(Ie){if(!this.HR_JWT){if(this.HR_JWT=JSON.parse(localStorage.getItem("HR-JWToken")),!this.HR_JWT?.idToken)return!1;this.HR_JWT&&(this.HR_JWT.expiresAt=new Date(this.HR_JWT?.expiresAt))}const ce=this.HR_JWT.expiresAt;return null==Ie?!!this.HR_JWT?.idToken:(ce.setMinutes(ce.getMinutes()-Ie),!!this.HR_JWT?.idToken&&h.Y8(this.HR_JWT?.expiresAt))}jwtAuthentication(){return!(!this.useJWT||!this.user.token||(this.user.jwtExpiredOn.setMinutes(this.user.jwtExpiredOn.getMinutes()+1),this.HR_JWT=new xe(this.user.token,this.user.jwtExpiredOn),localStorage.setItem("HR-JWToken",JSON.stringify(this.HR_JWT)),0))}loginPopup(Ie,ce=!1){E.N.LOGIN_IS_SHOWN||(E.N.LOGIN_IS_SHOWN=!0,this.logout(ce),null==Ie&&this.expiredJWTLogout&&(Ie=R.Jr),this.expiredJWTLogout=!1,this.dialog.openDialog(E.N,{errorMsg:Ie,authorizationService:this},!0,()=>{}))}tryRenewJWTAsync(Ie=!0){var ce=this;return(0,r.A)(function*(){if(!ce.useJWT)return!1;if(!E.N.LOGIN_IS_SHOWN&&!ce.isRunningRenewJWT){ce.isRunningRenewJWT=!0,ce.appLogsService.warn("Try to renew JWT"),ce.uiNotifier.showMessage(ce.translate.instant("core.msg.renewJWT")),ce.spinnerService.show();try{if(!ce.HR_JWT||!(yield ce.loginAsync()))return Ie&&ce.loginPopup(R.Jr),!1}finally{ce.spinnerService.hide(),ce.isRunningRenewJWT=!1}return!0}})()}loginAsync(){var Ie=this;return(0,r.A)(function*(){return new Promise((ce,de)=>{const pe=Ie.loginAction$.subscribe(Be=>{pe.unsubscribe(),ce(Be.result)});Ie.login()})})()}static#e=this.\u0275fac=function(ce){return new(ce||Ee)(d.KVO(s.w),d.KVO(b.Ix),d.KVO(O.U),d.KVO(w.w),d.KVO(f.u),d.KVO(z),d.KVO(X.ex),d.KVO(q.X),d.KVO(ye.i),d.KVO(Ee,12))};static#t=this.\u0275prov=d.jDH({token:Ee,factory:Ee.\u0275fac,providedIn:"root"})}return Ee})()},19057:(ei,rt,D)=>{"use strict";D.d(rt,{Ik:()=>Im,lp:()=>Wc,RV:()=>Uo,m0:()=>Ef});var r=D(54438),d=D(15113),L=D(72463),j=D(70370),o=D(15655),E=D(69259),R=D(65276),m=D(33437),_={ar:1,bg:2,ca:3,"zh-Hans":4,cs:5,da:6,de:7,el:8,en:9,es:10,fi:11,fr:12,he:13,hu:14,is:15,it:16,ja:17,ko:18,nl:19,no:20,pl:21,pt:22,rm:23,ro:24,ru:25,hr:26,sk:27,sq:28,sv:29,th:30,tr:31,ur:32,id:33,uk:34,be:35,sl:36,et:37,lv:38,lt:39,tg:40,fa:41,vi:42,hy:43,az:44,eu:45,hsb:46,mk:47,tn:50,xh:52,zu:53,af:54,ka:55,fo:56,hi:57,mt:58,se:59,ga:60,ms:62,kk:63,ky:64,sw:65,tk:66,uz:67,tt:68,bn:69,pa:70,gu:71,or:72,ta:73,te:74,kn:75,ml:76,as:77,mr:78,sa:79,mn:80,bo:81,cy:82,km:83,lo:84,gl:86,kok:87,syr:90,si:91,iu:93,am:94,tzm:95,ne:97,fy:98,ps:99,fil:100,dv:101,ha:104,yo:106,quz:107,nso:108,ba:109,lb:110,kl:111,ig:112,ii:120,arn:122,moh:124,br:126,ug:128,mi:129,oc:130,co:131,gsw:132,sah:133,qut:134,rw:135,wo:136,prs:140,gd:145,"ar-SA":1025,"bg-BG":1026,"ca-ES":1027,"zh-TW":1028,"cs-CZ":1029,"da-DK":1030,"de-DE":1031,"el-GR":1032,"en-US":1033,"fi-FI":1035,"fr-FR":1036,"he-IL":1037,"hu-HU":1038,"is-IS":1039,"it-IT":1040,"ja-JP":1041,"ko-KR":1042,"nl-NL":1043,"nb-NO":1044,"pl-PL":1045,"pt-BR":1046,"rm-CH":1047,"ro-RO":1048,"ru-RU":1049,"hr-HR":1050,"sk-SK":1051,"sq-AL":1052,"sv-SE":1053,"th-TH":1054,"tr-TR":1055,"ur-PK":1056,"id-ID":1057,"uk-UA":1058,"be-BY":1059,"sl-SI":1060,"et-EE":1061,"lv-LV":1062,"lt-LT":1063,"tg-Cyrl-TJ":1064,"fa-IR":1065,"vi-VN":1066,"hy-AM":1067,"az-Latn-AZ":1068,"eu-ES":1069,"hsb-DE":1070,"mk-MK":1071,"tn-ZA":1074,"xh-ZA":1076,"zu-ZA":1077,"af-ZA":1078,"ka-GE":1079,"fo-FO":1080,"hi-IN":1081,"mt-MT":1082,"se-NO":1083,"ms-MY":1086,"kk-KZ":1087,"ky-KG":1088,"sw-KE":1089,"tk-TM":1090,"uz-Latn-UZ":1091,"tt-RU":1092,"bn-IN":1093,"pa-IN":1094,"gu-IN":1095,"or-IN":1096,"ta-IN":1097,"te-IN":1098,"kn-IN":1099,"ml-IN":1100,"as-IN":1101,"mr-IN":1102,"sa-IN":1103,"mn-MN":1104,"bo-CN":1105,"cy-GB":1106,"km-KH":1107,"lo-LA":1108,"gl-ES":1110,"kok-IN":1111,"syr-SY":1114,"si-LK":1115,"iu-Cans-CA":1117,"am-ET":1118,"ne-NP":1121,"fy-NL":1122,"ps-AF":1123,"fil-PH":1124,"dv-MV":1125,"ha-Latn-NG":1128,"yo-NG":1130,"quz-BO":1131,"nso-ZA":1132,"ba-RU":1133,"lb-LU":1134,"kl-GL":1135,"ig-NG":1136,"ii-CN":1144,"arn-CL":1146,"moh-CA":1148,"br-FR":1150,"ug-CN":1152,"mi-NZ":1153,"oc-FR":1154,"co-FR":1155,"gsw-FR":1156,"sah-RU":1157,"qut-GT":1158,"rw-RW":1159,"wo-SN":1160,"prs-AF":1164,"gd-GB":1169,"ar-IQ":2049,"zh-CN":2052,"de-CH":2055,"en-GB":2057,"es-MX":2058,"fr-BE":2060,"it-CH":2064,"nl-BE":2067,"nn-NO":2068,"pt-PT":2070,"sr-Latn-CS":2074,"sv-FI":2077,"az-Cyrl-AZ":2092,"dsb-DE":2094,"se-SE":2107,"ga-IE":2108,"ms-BN":2110,"uz-Cyrl-UZ":2115,"bn-BD":2117,"mn-Mong-CN":2128,"iu-Latn-CA":2141,"tzm-Latn-DZ":2143,"quz-EC":2155,"ar-EG":3073,"zh-HK":3076,"de-AT":3079,"en-AU":3081,"es-ES":3082,"fr-CA":3084,"sr-Cyrl-CS":3098,"se-FI":3131,"quz-PE":3179,"ar-LY":4097,"zh-SG":4100,"de-LU":4103,"en-CA":4105,"es-GT":4106,"fr-CH":4108,"hr-BA":4122,"smj-NO":4155,"ar-DZ":5121,"zh-MO":5124,"de-LI":5127,"en-NZ":5129,"es-CR":5130,"fr-LU":5132,"bs-Latn-BA":5146,"smj-SE":5179,"ar-MA":6145,"en-IE":6153,"es-PA":6154,"fr-MC":6156,"sr-Latn-BA":6170,"sma-NO":6203,"ar-TN":7169,"en-ZA":7177,"es-DO":7178,"sr-Cyrl-BA":7194,"sma-SE":7227,"ar-OM":8193,"en-JM":8201,"es-VE":8202,"bs-Cyrl-BA":8218,"sms-FI":8251,"ar-YE":9217,"en-029":9225,"es-CO":9226,"sr-Latn-RS":9242,"smn-FI":9275,"ar-SY":10241,"en-BZ":10249,"es-PE":10250,"sr-Cyrl-RS":10266,"ar-JO":11265,"en-TT":11273,"es-AR":11274,"sr-Latn-ME":11290,"ar-LB":12289,"en-ZW":12297,"es-EC":12298,"sr-Cyrl-ME":12314,"ar-KW":13313,"en-PH":13321,"es-CL":13322,"ar-AE":14337,"es-UY":14346,"ar-BH":15361,"es-PY":15370,"ar-QA":16385,"en-IN":16393,"es-BO":16394,"en-MY":17417,"es-SV":17418,"en-SG":18441,"es-HN":18442,"es-NI":19466,"es-PR":20490,"es-US":21514,"bs-Cyrl":25626,"bs-Latn":26650,"sr-Cyrl":27674,"sr-Latn":28698,smn:28731,"az-Cyrl":29740,sms:29755,zh:30724,nn:30740,bs:30746,"az-Latn":30764,sma:30779,"uz-Cyrl":30787,"mn-Cyrl":30800,"iu-Cans":30813,"zh-Hant":31748,nb:31764,sr:31770,"tg-Cyrl":31784,dsb:31790,smj:31803,"uz-Latn":31811,"mn-Mong":31824,"iu-Latn":31837,"tzm-Latn":31839,"ha-Latn":31848},h=D(87951),b=(D(21364),1632),O={thousands:"#,##0{0},"K"",millions:"#,##0{0},,"M"",billions:"#,##0{0},,,"B"",trillions:"#,##0{0},,,,"T"",percent:"0{0}%",decimal:"#{0}",fixedpoint:"#,##0{0}",exponential:"0{0}E+00",currency:" "},w=/a+/g,f=/E/g,k=/dE+/g,I=/L/g,x=/h/g,g=/./g;function ne(Se){return!(!Se||!/^[@=\t\r]/.test(Se)&&(!/^[+-]/.test(Se)||(0,L.kf)(Se)))}var _e={formatObjectConverter(Se,ue){var B={format:Se,precision:Se&&Se.precision,dataType:ue};return(0,L.Gv)(Se)?(0,h.X)(B,Se,{format:Se.formatter||Se.type,currency:Se.currency}):B},convertFormat(Se,ue,B,te){if((0,L.O9)(Se)){if("date"===B)return function Y(Se){var ue=(E.A.format(new Date(2009,8,8,6,5,4),Se)||"").toString(),B=(0,R.g)(te=>E.A.format(te,Se));return B&&(B=function se(Se){return Se.split("/").join("\\/").split("'").map(function(ue,B){return B%2==0?ue.replace(w,"AM/PM").replace(k,"d").replace(f,"d").replace(I,"M").replace(x,"H").split("[").join("\\[").split("]").join("\\]"):ue?ue.replace(g,"\\$&"):"'"}).join("")}(B),B=function Q(Se){var ue=function v(){return _[m.A.locale()]}(),B=ue?ue.toString(16):"",te="";if(function F(Se){for(var ue,B=0;B=b&&ue0){for(B="decimal"!==Se?".":"",te=0;te").addClass("dx-export-loadpanel").appendTo(this._$container),me.A,this.getOptions(Ce))}getDefaultOptions(){return{animation:null,shading:!1,height:90,width:200,container:this._$container}}getOptions(ue){return ue.message=(0,L.O9)(ue.text)?ue.text:oe.A.format("dxDataGrid-exporting"),(0,h.X)(this.getDefaultOptions(),ue)}show(){this._loadPanel.option("position",N.calculateLoadPanelPosition(this._$targetElement)),this._loadPanel.show()}dispose(){(0,be.A)(this._loadPanel.element()).remove(),delete this._loadPanel}}var z=D(14435),ye={getFullOptions(Se){var ue=(0,h.X)({},Se);if(!(0,L.O9)(ue.worksheet)||!(0,L.Gv)(ue.worksheet))throw Error('The "worksheet" field must contain an object.');if((0,L.O9)(ue.topLeftCell)){if((0,L.Kg)(ue.topLeftCell)){var{row:B,col:te}=ue.worksheet.getCell(ue.topLeftCell);ue.topLeftCell={row:B,column:te}}}else ue.topLeftCell={row:1,column:1};return(0,L.O9)(ue.keepColumnWidths)||(ue.keepColumnWidths=!0),(0,L.O9)(ue.loadPanel)||(ue.loadPanel={}),(0,L.O9)(ue.loadPanel.enabled)||(ue.loadPanel.enabled=!0),(0,L.O9)(ue.encodeExecutableContent)||(ue.encodeExecutableContent=!1),ue},convertDateForExcelJS:Se=>new Date(Date.UTC(Se.getFullYear(),Se.getMonth(),Se.getDate(),Se.getHours(),Se.getMinutes(),Se.getSeconds(),Se.getMilliseconds())),setNumberFormat(Se,ue){Se.numFmt=ue},getCellStyles(Se){var ue=Se.getStyles();return ue.forEach(B=>{var te=this.tryConvertToExcelNumberFormat(B.format,B.dataType);(0,L.O9)(te)&&(te=te.replace(/"/g,'"')),B.numberFormat=te}),ue},tryConvertToExcelNumberFormat(Se,ue){var B=_e.formatObjectConverter(Se,ue);return _e.convertFormat(Se=B.format,B.precision,ue=B.dataType,B.currency)},setAlignment(Se,ue,B){var te;Se.alignment=null!==(te=Se.alignment)&&void 0!==te?te:{},(0,L.O9)(ue)&&(Se.alignment.wrapText=ue),(0,L.O9)(B)&&(Se.alignment.horizontal=B),Se.alignment.vertical="top"},setColumnsWidth(Se,ue,B){if((0,L.O9)(ue))for(var te=0;te{Jt.ready().done(()=>{var ur=Jt.getColumns(),Vr=Jt.getRowsCount(),sr=new ue(De,Jt,Le,Se);it&&this.setColumnsWidth(Le,Jt.getColumnsWidths(),kn.from.column),sr._exportAllFieldHeaders(ur,this.setAlignment);var Rn=sr._getFieldHeaderRowsCount();kn.to.row=kn.from.row+Rn;for(var Nr=this.getCellStyles(Jt),kr=0;kr0?ur.length-1:0;var Vn=Le.views[0]||{};De.option("rtlEnabled")&&(Vn.rightToLeft=!0),sr._isFrozenZone(Jt)&&(-1===Object.keys(Vn).indexOf("state")&&(0,h.X)(Vn,sr._getWorksheetFrozenState(kn)),sr._trySetAutoFilter(kn)),Object.keys(Vn).length>0&&(Le.views=[Vn]),Fn(kn)}).always(()=>{sn&&De.option("loadPanel.enabled",sn),Zt.enabled&&(0,z.Vd)()&&nn.dispose()})})},exportRow(Se,ue,B,te,Ce,De,Le,je,it){for(var Pt=Ce;Pt0),colspan:Le})}}}}isCellInMergedRanges(ue,B){return this.mergedCells[ue]&&this.mergedCells[ue][B]}findMergedCellInfo(ue,B,te){if(te&&this.isCellInMergedRanges(ue,B))return this.mergedCells[ue][B]}updateMergedCells(ue,B,te,Ce,De){for(var Le=B;Le<=B+Ce;Le++)for(var je=te;je<=te+De;je++)this.mergedCells[Le]||(this.mergedCells[Le]=[]),this.mergedCells[Le][je]={masterCell:ue}}addMergedRange(ue,B,te){this.mergedRanges.push({masterCell:ue,rowspan:B,colspan:te})}applyMergedRages(){this.mergedRanges.forEach(ue=>{var B=ue.masterCell.fullAddress.row,te=ue.masterCell.fullAddress.col;this.worksheet.mergeCells(B,te,B+ue.rowspan,te+ue.colspan)})}}class ge{constructor(ue,B,te,Ce){this.component=ue,this.dataProvider=B,this.worksheet=te,this.mergedRangesManager=new xe(B,te),this.topLeftCell=Ce.topLeftCell,this.customizeCell=Ce.customizeCell,this.autoFilterEnabled=Ce.autoFilterEnabled}_getFirstColumnIndex(){return this.topLeftCell.column}_getFieldHeaderRowsCount(){return 0}_trySetAutoFilter(ue){if(this.autoFilterEnabled&&!(0,L.O9)(this.worksheet.autoFilter)&&this.dataProvider.getRowsCount()>0){var B={from:{row:ue.from.row+this.dataProvider.getHeaderRowCount()-1,column:ue.from.column},to:ue.to};this.worksheet.autoFilter=B}}_trySetFont(ue,B){(0,L.O9)(B)&&(ue.font=ue.font||{},ue.font.bold=B)}_getWorksheetFrozenState(ue){return{state:"frozen",ySplit:ue.from.row+this.dataProvider.getFrozenArea().y-1}}_trySetOutlineLevel(ue,B){B>=this.dataProvider.getHeaderRowCount()&&(ue.outlineLevel=this.dataProvider.getGroupLevel(B))}_isFrozenZone(ue){return ue.getHeaderRowCount()>0}_isHeaderCell(ue){return uete.area===ue);return"right"===(0,pe.n)(this.rtlEnabled)&&B.sort((te,Ce)=>Ce.areaIndex-te.areaIndex),B.map(te=>te.caption)}_customizeCell(ue,B,te){(0,L.Tn)(this.customizeCell)&&!te&&this.customizeCell({excelCell:ue,pivotCell:B})}_isRowFieldHeadersRow(ue){var B=this._isInfoCell(ue,0)&&"row"===this.dataProvider.getCellData(ue+1,0,!0).cellSourceData.area;return this._allowExportRowFieldHeaders()&&B}_exportAllFieldHeaders(ue,B){var te=ue.length,Ce=this.dataProvider.getRowAreaColCount(),De=this.topLeftCell.row;this._allowExportFilterFieldHeaders()&&(this._exportFieldHeaders("filter",De,0,te,B),De++),this._allowExportDataFieldHeaders()&&(this._exportFieldHeaders("data",De,0,Ce,B),this._allowExportColumnFieldHeaders()||this._exportFieldHeaders("column",De,Ce,te-Ce,B)),this._allowExportColumnFieldHeaders()&&(this._allowExportDataFieldHeaders()||this._exportFieldHeaders("data",De,0,Ce,B),this._exportFieldHeaders("column",De,Ce,te-Ce,B))}_exportFieldHeaders(ue,B,te,Ce,De){var Le=this["".concat(ue,"FieldHeaders")],je=this.worksheet.getRow(B),it="row"!==ue||"row"===ue&&"tree"===this.rowHeaderLayout;it&&this.mergedRangesManager.addMergedRange(je.getCell(this.topLeftCell.column+te),0,Ce-1);for(var Pt=0;PtCe||it?fi.join(", "):fi[Pt];Jt=(0,de.A)({},this._getDefaultFieldHeaderCellsData(Rt),{headerType:ue}),Zt.value=Rt,this._applyHeaderStyles(Zt,De),this._customizeCell(Zt,Jt)}}_applyHeaderStyles(ue,B){var{bold:te,alignment:Ce,border:De}=this._getFieldHeaderStyles();this._trySetFont(ue,te),B(ue,this.wrapText,Ce),ue.border=De}_allowExportRowFieldHeaders(){return this.rowFieldHeaders.length>0}_allowExportFilterFieldHeaders(){return this.filterFieldHeaders.length>0}_allowExportDataFieldHeaders(){return this.dataFieldHeaders.length>0}_allowExportColumnFieldHeaders(){return this.columnFieldHeaders.length>0}}function vt(Se){return ye.export(function Xt(Se){if(!(0,L.O9)(Se)||!(0,L.Gv)(Se))throw Error('The "exportPivotGrid" method requires a configuration object.');if(!(0,L.O9)(Se.component)||!(0,L.Gv)(Se.component)||"dxPivotGrid"!==Se.component.NAME)throw Error('The "component" field must contain a PivotGrid instance.');return(0,L.O9)(Se.mergeRowFieldValues)||(Se.mergeRowFieldValues=!0),(0,L.O9)(Se.mergeColumnFieldValues)||(Se.mergeColumnFieldValues=!0),(0,L.O9)(Se.exportDataFieldHeaders)||(Se.exportDataFieldHeaders=!1),(0,L.O9)(Se.exportRowFieldHeaders)||(Se.exportRowFieldHeaders=!1),(0,L.O9)(Se.exportColumnFieldHeaders)||(Se.exportColumnFieldHeaders=!1),(0,L.O9)(Se.exportFilterFieldHeaders)||(Se.exportFilterFieldHeaders=!1),ye.getFullOptions(Se)}(Se),tt,Nt,Qe)}function Nt(Se){return Se._dataArea.groupElement()}function Qe(Se){return Se.$element()}var Et=D(87550);function Lt(Se){var ue,B,te,Ce;return(0,L.kf)(Se)?{top:Se,right:Se,bottom:Se,left:Se}:{top:null!==(ue=Se?.top)&&void 0!==ue?ue:0,right:null!==(B=Se?.right)&&void 0!==B?B:0,bottom:null!==(te=Se?.bottom)&&void 0!==te?te:0,left:null!==(Ce=Se?.left)&&void 0!==Ce?Ce:0}}var Mt="...";function Ge(Se,ue){return ue*(1/Se.internal.scaleFactor)}function ot(Se){return Se.internal.pageSize.getWidth()}function Tt(Se){return Se.internal.pageSize.getHeight()}function jt(Se,ue,B,te){var{wordWrapEnabled:Ce,targetRectWidth:De}=te;if(Ce){var Le=Se.getFont(B?.name,B?.style);return Se.splitTextToSize(ue,De,{fontSize:B?.size||Se.getFontSize(),fontName:Le.fontName,fontStyle:Le.fontStyle})}var je=ue.split("\n").filter(Zt=>""!==Zt).join(" ");if(an(Se,je,B).w<=De)return[je];for(var it=an(Se,je+Mt,B).w;je.length>0&&it>De;){var Pt=0;it>=2*De&&(Pt=je.length/2),Pt<1&&(Pt=1),it=an(Se,(je=je.substring(0,je.length-Pt))+Mt,B).w}return[je+Mt]}function li(Se,ue){var B=Se-(ue.left+ue.right);return B>=0?B:0}function an(Se,ue,B){return Se.getTextDimensions(ue,{font:Se.getFont(B?.name,B?.style),fontSize:B?.size||Se.getFontSize()})}function xi(Se,ue,B,te){var{wordWrapEnabled:Ce,targetRectWidth:De}=te;return an(Se,ue,B).h*jt(Se,ue,B,{wordWrapEnabled:Ce,targetRectWidth:De}).length*Se.getLineHeightFactor()}var Ti=(Se,ue)=>Se+ue;var Vt={base:{font:{size:10},borderWidth:.5,borderColor:"#979797"},header:{textColor:"#979797"},group:{},data:{},groupFooter:{},totalFooter:{}};function bi(Se){for(var{doc:ue,dataProvider:B,rowIndex:te,wordWrapEnabled:Ce,columns:De,styles:Le,rowType:je,backgroundColor:it,rtlEnabled:Pt}=Se,Zt=[],fi=0;fi0&&(kn.rowSpan=Fn.rowspan),Fn&&Fn.colspan>0&&(kn.colSpan=Fn.colspan)}else if("group"===je){var Vr=Pt?"drawLeftBorder":"drawRightBorder";if(kn.pdfCell[Pt?"drawRightBorder":"drawLeftBorder"]=0===fi,kn.pdfCell[Vr]=fi===De.length-1,fi>0){var sr=Zt.slice(1).reduce((Nr,kr)=>Nr&&!(0,L.O9)(kr.pdfCell.text),!0);if(!(0,L.O9)(kn.pdfCell.text)&&sr){Zt[0].pdfCell[Vr]=!0;for(var Rn=0;Rnvoid 0!==Zt))}function Dt(Se){var ue;return(0,L.O9)(Se.getLineWidth)?Se.getLineWidth():null!==(ue=Se.__borderWidth)&&void 0!==ue?ue:.200025}function Pi(Se,ue){Se.setLineWidth(ue),(0,L.O9)(Se.getLineWidth)||(Se.__borderWidth=ue)}var jn=Se=>"header"===Se?.sourceCellInfo.gridCell.rowType;function Ri(Se,ue,B){return(0,de.A)({},Se,{sourceCellInfo:(0,de.A)({},Se.sourceCellInfo,{text:ue}),y:B})}function Nn(Se){return[].concat.apply([],Se.map(ue=>ue.cells.filter(B=>!(0,L.O9)(B.pdfCell.isMerged)).map(B=>(0,de.A)({},B.pdfCell._rect,{sourceCellInfo:(0,de.A)({},B.pdfCell,{gridCell:B.gridCell})}))))}function _r(Se,ue,B,te,Ce,De,Le){for(var je=[],it=[...Se],Pt=(fi,Jt)=>Ce(fi,Jt+ue),Zt=function(){var fi=0,Jt=it.filter(kn=>{var Fn=kn[B]+kn[te];return!!Ce(0===je.length,Fn)&&(fi<=Fn&&(fi=Fn),!0)}),Rt=((Se,ue)=>ue&&jn(Se[Se.length-1]))(Jt,0===je.length),sn=((Se,ue,B,te,Ce)=>{if(!te)return[];var De=Se[Se.length-1],Le=ue[Se.length];if(!Le||jn(Le))return[];if(Ce(B,Le.h)&&!B)return[];var it=ue.filter(Jt=>{var{y:Rt}=Jt;return Rt===Le.y}),Pt=De.y+De.h,[Zt,fi]=((Se,ue,B,te,Ce)=>{for(var[De,Le]=te(ue,Se),je=[ue?De.map(it=>(0,de.A)({},it,{y:B})):De];!Ce(!1,Le[0].h);)[De,Le]=te(!1,Le),je.push(De);return[je,Le]})(it,B,Pt,te,Ce);return((Se,ue,B)=>{ue.forEach((Le,je)=>{Le.sourceCellInfo.text=B[je].sourceCellInfo.text,Le.h=B[je].h});var te=Se.indexOf(ue[ue.length-1])+1;if(!(te>=Se.length))for(var Ce=Se[te].y-(ue[0].y+B[0].h),De=te;Defi-kn[B]>.001&&kn[B]+kn[te]-fi>.001).forEach(kn=>{De(kn,fi,Jt,it);var Fn=it.indexOf(kn);-1!==Fn&&it.splice(Fn,1)}),Jt.forEach(kn=>{var Fn=it.indexOf(kn);-1!==Fn&&it.splice(Fn,1)}),it.forEach(kn=>{kn[B]=(0,L.O9)(fi)?kn[B]-fi+ue:kn[B]}),Rt&&sn.length>0){var[$i,...vn]=sn;je.push([...Jt,...$i]),je.push(...vn)}else if(Jt.length>0)je.push(Jt),je.push(...sn);else{if(!(sn.length>0))return je.push(it),1;je.push(...sn),je.push(it)}};it.length>0&&!Zt(););return je}var Fa_getFullOptions=function ha(Se){var{jsPDFDocument:ue}=Se,B=(0,h.X)({},Se);return(0,L.O9)(B.topLeft)||(B.topLeft={x:0,y:0}),(0,L.O9)(B.indent)||(B.indent=0),(0,L.O9)(B.repeatHeaders)||(B.repeatHeaders=!0),(0,L.O9)(B.margin)||(B.margin=Ge(ue,40)),B.margin=Lt(B.margin),Array.isArray(B.columnWidths)||(B.columnWidths=[]),(0,L.O9)(B.loadPanel)||(B.loadPanel={}),(0,L.O9)(B.loadPanel.enabled)||(B.loadPanel.enabled=!0),(0,L.O9)(B.loadPanel.text)||(B.loadPanel.text=oe.A.format("dxDataGrid-exporting")),B},Fa_export=function aa(Se){var ue,it,{jsPDFDocument:B,component:te,selectedRowsOnly:Ce,loadPanel:De}=Se,Le=(null===(ue=te._getInternalInstance)||void 0===ue?void 0:ue.call(te))||te,je=Le.option("loadPanel")&&Le.option("loadPanel").enabled;if(je&&te.option("loadPanel.enabled",!1),De.enabled&&(0,z.Vd)()){var Pt=te.getView("rowsView");(it=new W(te,Pt.element(),Pt.element().parent(),De)).show()}var Zt=te.getDataProvider(Ce);return new Promise(fi=>{Zt.ready().done(()=>{var Jt,Rt,sn=function ci(Se,ue,B,te){for(var Ce=[],De=ue.getRowsCount(),Le=!!B.option("wordWrapEnabled"),je=!!B.option("rtlEnabled"),it=ue.getColumns(),Pt=ue.getStyles(),Zt=0;Ztvn.cells.forEach(kn=>Se.customizeCell(kn))),function wt(Se){Se.forEach(ue=>{ue.cells.forEach(B=>{var{pdfCell:te}=B;te.padding=Lt(te.padding)})})}(sn),function ui(Se,ue,B,te){var Ce=function ni(Se,ue,B,te,Ce){var De=ue.getColumnsWidths().map(Zt=>Ge(Se,Zt??150)),Le=De.filter((Zt,fi)=>!(0,L.O9)(Ce[fi])).reduce(Ti,0),je=Ce.filter(Zt=>(0,L.kf)(Zt)).reduce(Ti,0),it=function wi(Se,ue,B){return ot(Se)-ue-B.left-B.right}(Se,B,te),Pt=je{var Jt;return null!==(Jt=Ce[fi])&&void 0!==Jt?Jt:Zt*Pt})}(Se,ue,te.topLeft.x,te.margin,te.columnWidths);B.forEach(De=>{De.cells.forEach((Le,je)=>{var{pdfCell:Pt}=Le;Pt._rect.w=Ce[je]})})}(B,Zt,sn,Se),function Qi(Se,ue){Se.forEach(B=>{B.cells[0].pdfCell._rect.w-=B.indentLevel*ue.indent})}(sn,Se),function Ui(Se){for(var ue=0;ue{var De,Ce=te.cells.map(je=>je.pdfCell);if(B.onRowExporting){var Le={rowCells:Ce};B.onRowExporting(Le),(0,L.O9)(Le.rowHeight)&&(De=Le.rowHeight)}te.height=(0,L.O9)(De)?De:function Je(Se,ue,B){if(ue.length!==B.length)throw"the cells count must be equal to the count of the columns";for(var te=0,Ce=0;Ceje._rect.w)),Ce.forEach(je=>{je._rect.h=te.height})})}(B,sn,Se),function Xi(Se){for(var ue=0;ue0),te=function Wt(Se){var ue=B=>{var te=B.cells.map(Ce=>{var De;return null!==(De=Ce.rowSpan)&&void 0!==De?De:0});return Math.max(...te)};return[...Se].sort((B,te)=>{var Ce=ue(B),De=ue(te);return Ce>De?1:De>Ce?-1:0})}(ue);return te.forEach(Ce=>{Ce.cells.filter(Le=>(0,L.O9)(Le.rowSpan)).forEach(Le=>{var je=li(Le.pdfCell._rect.w,Le.pdfCell.padding),Pt=xi(Se,Le.pdfCell.text,Le.pdfCell.font,{wordWrapEnabled:Le.pdfCell.wordWrapEnabled,targetRectWidth:je})+Le.pdfCell.padding.top+Le.pdfCell.padding.bottom,Zt=Le.rowSpan+1,fi=ue.slice(Ce.rowIndex,Ce.rowIndex+Zt).reduce((sn,nn)=>sn+nn.height+B[nn.rowIndex],0);if(Pt>fi)for(var Jt=(Pt-fi)/Zt,Rt=Ce.rowIndex;Rt{te.height+=B[te.rowIndex]}),ue.forEach(te=>{te.cells.forEach(Ce=>{var De,Le=(null!==(De=Ce.rowSpan)&&void 0!==De?De:0)+1;Ce.pdfCell._rect.h=ue.slice(te.rowIndex,te.rowIndex+Le).reduce((je,it)=>je+it.height,0)})})}(B,sn),function It(Se,ue,B){var te,Ce=B?.topLeft,De=B?.margin,Le=(null!==(te=Ce?.y)&&void 0!==te?te:0)+De.top;ue.forEach(je=>{var it,Pt=(null!==(it=Ce?.x)&&void 0!==it?it:0)+De.left,Zt=je.indentLevel*B.indent;je.cells.forEach(fi=>{fi.pdfCell._rect.x=Pt+Zt,fi.pdfCell._rect.y=Le,Pt+=fi.pdfCell._rect.w}),Le+=je.height})}(0,sn,Se),function Ut(Se){for(var ue=0;ue=1?B[te-1].pdfCell:null,Le=ue>=1?Se[ue-1].cells[te].pdfCell:null;!1!==Ce.drawLeftBorder||(0,L.O9)(B[te].colSpan)?(0,L.O9)(Ce.drawLeftBorder)||(0,L.O9)(De)&&!1===De.drawRightBorder&&(Ce.drawLeftBorder=!1):(0,L.O9)(De)&&(De.drawRightBorder=!1),!1===Ce.drawTopBorder?(0,L.O9)(Le)&&(Le.drawBottomBorder=!1):(0,L.O9)(Ce.drawTopBorder)||(0,L.O9)(Le)&&!1===Le.drawBottomBorder&&(Ce.drawTopBorder=!1)}}(sn),function Ht(Se,ue){ue.forEach(B=>{B.cells.forEach(te=>{var{pdfCell:Ce}=te;if((0,L.O9)(Ce.text)){var De=jt(Se,Ce.text,Ce.font,{wordWrapEnabled:Ce.wordWrapEnabled,targetRectWidth:li(Ce._rect.w,Ce.padding)});Ce.text=De.join("\n")}})})}(B,sn);var nn=function Bi(Se){var ue=Se.getFont();return{borderWidth:Dt(Se),borderColor:Se.getDrawColor(),font:{name:ue.fontName,style:ue.fontStyle,size:Se.getFontSize()},textColor:Se.getTextColor()}}(B),fn=!!te.option("rtlEnabled"),$i=function En(Se,ue,B,te,Ce){if(0===ue.length)return[[]];var De={x:ot(Se)-B.margin.right,y:Tt(Se)-B.margin.bottom},Le=ue.filter(Rt=>"header"===Rt.rowType),je=Le.reduce((Rt,sn)=>Rt+sn.height,0),it=_r(Nn(ue),B.margin.top,"y","h",(Rt,sn)=>Wi(sn+(!Rt&&B.repeatHeaders?je:0))<=Wi(De.y),(Rt,sn,nn,fn)=>{var $i={sourceRect:Rt,topRect:{x:Rt.x,y:Rt.y,w:Rt.w,h:sn-Rt.y},bottomRect:{x:Rt.x,y:sn,w:Rt.w,h:Rt.h-(sn-Rt.y)}};Ce($i),nn.push($i.topRect),fn.push($i.bottomRect)},((Se,ue,B,te)=>(Ce,De)=>{var Le=[],je=[],it=0,Pt=0;return De.forEach(Zt=>{var{w:fi,sourceCellInfo:Jt}=Zt,Rt=!Ce&&ue.repeatHeaders?B:B+ue.topLeft.y,sn=an(Se,Jt.text,Jt.font).h,nn=Jt.padding.top+Jt.padding.bottom,$i=Math.floor((te.y-Rt-nn-ue.margin.top)/(sn*Se.getLineHeightFactor())),vn=jt(Se,Jt.text,Jt.font,{wordWrapEnabled:Jt.wordWrapEnabled,targetRectWidth:fi});if($iZt.h=it),je.forEach(Zt=>Zt.h=Pt),[Le,je]})(Se,B,je,De));if(B.repeatHeaders)for(var Pt=1;PtRt.y+=je);var Zt=Nn(Le);Zt.forEach(Rt=>{Rt.y-=B.topLeft.y}),it[Pt]=[...Zt,...it[Pt]]}for(var fi=0;fiWi(sn)<=Wi(De.x),(Rt,sn,nn,fn)=>{var $i={sourceRect:Rt,leftRect:{x:Rt.x,y:Rt.y,w:sn-Rt.x,h:Rt.h},rightRect:{x:sn,y:Rt.y,w:Rt.w-(sn-Rt.x),h:Rt.h}};te($i),nn.push($i.leftRect),fn.push($i.rightRect)});Jt.length>1?(it.splice(fi,1,...Jt),fi+=Jt.length):fi+=1}return it.map(Rt=>Rt.map(sn=>(0,de.A)({},sn.sourceCellInfo,{_rect:sn})))}(B,sn,Se,vn=>{var kn,{sourceRect:Fn,leftRect:ur,rightRect:Vr}=vn,sr={},Rn={};if((null===(kn=Fn.sourceCellInfo.text)||void 0===kn?void 0:kn.length)>0)if(fn){var hn,Hn,Vn,Rr,br,jr,kr=B.getTextWidth(Fn.sourceCellInfo.text)>ur.w,mn=!(0,L.O9)(Fn.sourceCellInfo.horizontalAlign)||"right"===Fn.sourceCellInfo.horizontalAlign;if(kr||!mn)"right"===(null===(hn=Fn.sourceCellInfo)||void 0===hn?void 0:hn.horizontalAlign)?br=(Rr=null!==(jr=Fn.sourceCellInfo._textLeftOffset)&&void 0!==jr?jr:0)+ur.w:"center"===(null===(Hn=Fn.sourceCellInfo)||void 0===Hn?void 0:Hn.horizontalAlign)?Rr=(br=Fn.x+Fn.w-(Vr.x+Vr.w)+Fn.sourceCellInfo._rect.w/2-ur.w/2)-Vr.w:"left"===(null===(Vn=Fn.sourceCellInfo)||void 0===Vn?void 0:Vn.horizontalAlign)&&(Rr=(br=Fn.x+Fn.w-(Vr.x+Vr.w))-Vr.w),sr=(0,de.A)({},{_textLeftOffset:Rr}),Rn=(0,de.A)({},{_textLeftOffset:br});else Rn=(0,de.A)({},{text:""})}else{var wr=B.getTextWidth(Fn.sourceCellInfo.text)>ur.w,Kr=!(0,L.O9)(Fn.sourceCellInfo.horizontalAlign)||"left"===Fn.sourceCellInfo.horizontalAlign;if(wr||!Kr){var Xr,Ja,Vi,Cn,Ln,Jn;if("left"===(null===(Xr=Fn.sourceCellInfo)||void 0===Xr?void 0:Xr.horizontalAlign))Ln=(Cn=null!==(Jn=Fn.sourceCellInfo._textLeftOffset)&&void 0!==Jn?Jn:0)-ur.w;else if("center"===(null===(Ja=Fn.sourceCellInfo)||void 0===Ja?void 0:Ja.horizontalAlign)){var lr,Sr=null!==(lr=Fn.sourceCellInfo._textLeftOffset)&&void 0!==lr?lr:0;Cn=Sr+(Fn.x+Fn.w/2)-(ur.x+ur.w/2),Ln=Sr+(Fn.x+Fn.w/2)-(Vr.x+Vr.w/2)}else"right"===(null===(Vi=Fn.sourceCellInfo)||void 0===Vi?void 0:Vi.horizontalAlign)&&(Cn=Fn.x+Fn.w-(ur.x+ur.w),Ln=Fn.x+Fn.w-(Vr.x+Vr.w));sr=(0,de.A)({},{_textLeftOffset:Cn}),Rn=(0,de.A)({},{_textLeftOffset:Ln})}else Rn=(0,de.A)({},{text:""})}ur.sourceCellInfo=(0,de.A)({},Fn.sourceCellInfo,{debugSourceCellInfo:Fn.sourceCellInfo},sr),Vr.sourceCellInfo=(0,de.A)({},Fn.sourceCellInfo,{debugSourceCellInfo:Fn.sourceCellInfo},Rn)},vn=>{var kn,{sourceRect:Fn,topRect:ur,bottomRect:Vr}=vn,sr={},Rn={};if((null===(kn=Fn.sourceCellInfo.text)||void 0===kn?void 0:kn.length)>0){var kr,mn=B.getTextDimensions(Fn.sourceCellInfo.text).h>ur.h,hn="top"===(null===(kr=Fn.sourceCellInfo)||void 0===kr?void 0:kr.verticalAlign);if(mn||!hn){var Hn,Vn,Rr,br,jr,wr;if("top"===(null===(Hn=Fn.sourceCellInfo)||void 0===Hn?void 0:Hn.verticalAlign))jr=(br=null!==(wr=Fn.sourceCellInfo._textTopOffset)&&void 0!==wr?wr:0)-ur.h;else if("middle"===(null===(Vn=Fn.sourceCellInfo)||void 0===Vn?void 0:Vn.verticalAlign)){var Kr,Xr=null!==(Kr=Fn.sourceCellInfo._textTopOffset)&&void 0!==Kr?Kr:0;br=Xr+(Fn.y+Fn.h/2)-(ur.y+ur.h/2),jr=Xr+(Fn.y+Fn.h/2)-(Vr.y+Vr.h/2)}else"bottom"===(null===(Rr=Fn.sourceCellInfo)||void 0===Rr?void 0:Rr.verticalAlign)&&(br=Fn.y+Fn.h-(ur.y+ur.h),jr=Fn.y+Fn.h-(Vr.y+Vr.h));sr=(0,de.A)({},{_textTopOffset:br}),Rn=(0,de.A)({},{_textTopOffset:jr})}else Rn=(0,de.A)({},{text:""})}ur.sourceCellInfo=(0,de.A)({},Fn.sourceCellInfo,{debugSourceCellInfo:Fn.sourceCellInfo},sr),Vr.sourceCellInfo=(0,de.A)({},Fn.sourceCellInfo,{debugSourceCellInfo:Fn.sourceCellInfo},Rn)});fn&&function gi(Se,ue,B){ue.forEach(te=>{te.forEach(Ce=>{var De=ot(Se)-(Ce._rect.x+Ce._rect.w);Ce._rect.x=De+(B.margin.left-B.margin.right)})})}(B,$i,Se),$i.forEach((vn,kn)=>{if(kn>0&&function si(Se){Se.addPage(),function ln(Se){(0,L.O9)(Se.getLineWidth)||(Se.__borderWidth=null)}(Se)}(B),function yn(Se,ue,B,te){B.forEach(Ce=>{var{_rect:De,gridCell:Le}=Ce,je=(0,mi.A)(Ce,Kt),{x:it,y:Pt,w:Zt,h:fi}=De,Rt={doc:Se,rect:{x:it,y:Pt,w:Zt,h:fi},pdfCell:je,gridCell:Le,cancel:!1};ue?.(Rt),Rt.cancel||(function sa(Se,ue){(0,L.O9)(ue.backgroundColor)&&(To(Se,"fill",ue.backgroundColor),ar(Se,ue._rect.x,ue._rect.y,ue._rect.w,ue._rect.h,"F"))}(Se,Ce),function Pr(Se,ue,B){if((0,L.O9)(ue.text)&&""!==ue.text){var{textColor:te,font:Ce,_rect:De,padding:Le}=ue;!function uo(Se,ue,B){var{textColor:te,font:Ce}=ue;To(Se,"text",(0,L.O9)(te)?te:B.textColor);var De=(0,L.O9)(Ce)?(0,h.X)({},B.font,Ce):B.font,Le=Se.getFont();(De.name!==Le.fontName||De.style!==Le.fontStyle||(0,L.O9)(De.weight))&&Se.setFont(De.name,De.style,De.weight),De.size!==Se.getFontSize()&&Se.setFontSize(De.size)}(Se,{textColor:te,font:Ce},B);var it,Pt,je={x:De.x+Le.left,y:De.y+Le.top,w:De.w-(Le.left+Le.right),h:De.h-(Le.top+Le.bottom)};((0,L.O9)(ue._textLeftOffset)||(0,L.O9)(ue._textTopOffset))&&(je.x=je.x+(null!==(it=ue._textLeftOffset)&&void 0!==it?it:0),je.y=je.y+(null!==(Pt=ue._textTopOffset)&&void 0!==Pt?Pt:0),Se.saveGraphicsState(),function An(Se,ue,B,te,Ce){Se.moveTo(Wi(ue),Wi(B)),Se.lineTo(Wi(ue+te),Wi(B)),Se.lineTo(Wi(ue+te),Wi(B+Ce)),Se.lineTo(Wi(ue),Wi(B+Ce)),Se.clip(),Se.discardPath()}(Se,ue._rect.x,ue._rect.y,ue._rect.w,ue._rect.h)),function po(Se,ue,B,te,Ce,De){var Le=ue.split("\n"),je=Le.length,it=xi(Se,Le[0],Se.getFont(),{wordWrapEnabled:!1,targetRectWidth:1e9}),Pt=te??"middle",Zt=Ce??"left",fi={top:0,middle:.5,bottom:1},Jt=B.y+B.h*fi[Pt]-it*(je-1)*fi[Pt]+function na(Se){return(Se.getLineHeightFactor()-1.15)*Se.getFontSize()}(Se),Rt=B.x+B.w*{left:0,center:.5,right:1}[Zt],sn=(0,h.X)({baseline:Pt,align:Zt},De);Se.text(Le.join("\n"),Wi(Rt),Wi(Jt),sn)}(Se,ue.text,je,ue.verticalAlign,ue.horizontalAlign,ue._internalTextOptions),((0,L.O9)(ue._textLeftOffset)||(0,L.O9)(ue._textTopOffset))&&Se.restoreGraphicsState()}}(Se,Ce,te))})}(B,Se.customDrawCell,vn,nn),function no(Se,ue,B){ue.filter(te=>!(0,L.O9)(te.borderColor)).forEach(te=>{Na(Se,te._rect,te,B)}),ue.filter(te=>(0,L.O9)(te.borderColor)).forEach(te=>{Na(Se,te._rect,te,B)})}(B,vn,nn),(0,L.O9)(vn)&&0===vn.length){var ur=function yt(Se,ue,B){var te,Ce,De,Le,je,it,Pt,Zt,fi,Jt;ue.forEach($i=>{(!(0,L.O9)(Pt)||Pt>$i._rect.x)&&(Pt=$i._rect.x),(!(0,L.O9)(Zt)||Zt>$i._rect.y)&&(Zt=$i._rect.y),(!(0,L.O9)(fi)||fi<$i._rect.x+$i._rect.w)&&(fi=$i._rect.x+$i._rect.w),(!(0,L.O9)(Jt)||Jt<$i._rect.y+$i._rect.h)&&(Jt=$i._rect.y+$i._rect.h)});var Rt=null!==(te=null!==(Ce=Pt)&&void 0!==Ce?Ce:null==B||null===(De=B.topLeft)||void 0===De?void 0:De.x)&&void 0!==te?te:0,sn=null!==(Le=null!==(je=Zt)&&void 0!==je?je:null==B||null===(it=B.topLeft)||void 0===it?void 0:it.y)&&void 0!==Le?Le:0;return{x:Rt,y:sn,w:(0,L.O9)(fi)?fi-Rt:0,h:(0,L.O9)(Jt)?Jt-sn:0}}(0,vn,Se),Vr=function gt(){return Vt.base}();!function ja(Se,ue,B,te){Na(Se,ue,B,te)}(B,ur,Vr,nn)}}),function _t(Se,ue){var{borderWidth:B,borderColor:te,font:Ce,textColor:De}=ue,Le=Se.getFont();(Le.fontName!==Ce.name||Le.fontStyle!==Ce.style)&&Se.setFont(Ce.name,Ce.style,void 0),Se.getFontSize()!==Ce.size&&Se.setFontSize(Ce.size),Dt(Se)!==B&&Pi(Se,B),Se.getDrawColor()!==te&&Se.setDrawColor(te),Se.getTextColor()!==De&&Se.setTextColor(De)}(B,nn),fi()}).always(()=>{je&&te.option("loadPanel.enabled",je),De.enabled&&(0,z.Vd)()&&it.dispose()})})};var mo=D(82284),zo=Uint8Array,Ao=Uint16Array,Ha=Uint32Array,us=new zo([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]),Ql=new zo([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]),ms=new zo([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),El=function(Se,ue){for(var B=new Ao(31),te=0;te<31;++te)B[te]=ue+=1<>>1|(21845&Ko)<<1;Ms[Ko]=((65280&(hs=(61680&(hs=(52428&hs)>>>2|(13107&hs)<<2))>>>4|(3855&hs)<<4))>>>8|(255&hs)<<8)>>>1}var ws=function(Se,ue,B){for(var te=Se.length,Ce=0,De=new Ao(ue);Ce>>it]=Pt}else for(je=new Ao(te),Ce=0;Ce>>15-Se[Ce];return je},Yl=new zo(288);for(Ko=0;Ko<144;++Ko)Yl[Ko]=8;for(Ko=144;Ko<256;++Ko)Yl[Ko]=9;for(Ko=256;Ko<280;++Ko)Yl[Ko]=7;for(Ko=280;Ko<288;++Ko)Yl[Ko]=8;var Bt=new zo(32);for(Ko=0;Ko<32;++Ko)Bt[Ko]=5;var Si=ws(Yl,9,0),Ni=ws(Yl,9,1),Sn=ws(Bt,5,0),Dn=ws(Bt,5,1),Kn=function(Se){for(var ue=Se[0],B=1;Bue&&(ue=Se[B]);return ue},tr=function(Se,ue,B){var te=ue/8|0;return(Se[te]|Se[te+1]<<8)>>>(7&ue)&B},xr=function(Se,ue){var B=ue/8|0;return(Se[B]|Se[B+1]<<8|Se[B+2]<<16)>>>(7&ue)},Pa=function(Se){return(Se/8|0)+(7&Se&&1)},va=function(Se,ue,B){(null==ue||ue<0)&&(ue=0),(null==B||B>Se.length)&&(B=Se.length);var te=new(Se instanceof Ao?Ao:Se instanceof Ha?Ha:zo)(B-ue);return te.set(Se.subarray(ue,B)),te},Ba=function(Se,ue,B){var te=ue/8|0;Se[te]|=B<<=7&ue,Se[te+1]|=B>>>8},ga=function(Se,ue,B){var te=ue/8|0;Se[te]|=B<<=7&ue,Se[te+1]|=B>>>8,Se[te+2]|=B>>>16},Lo=function(Se,ue){for(var B=[],te=0;teJt&&(Jt=De[te].s);var Rt=new Ao(Jt+1),sn=$a(B[Zt-1],Rt,0);if(sn>ue){te=0;var nn=0,fn=sn-ue,$i=1<ue))break;nn+=$i-(1<>>=fn;nn>0;){var kn=De[te].s;Rt[kn]=0&&nn;--te){var Fn=De[te].s;Rt[Fn]==ue&&(--Rt[Fn],++nn)}sn=ue}return[new zo(Rt),sn]},$a=function(Se,ue,B){return-1==Se.s?Math.max($a(Se.l,ue,B+1),$a(Se.r,ue,B+1)):ue[Se.s]=B},qs=function(Se){for(var ue=Se.length;ue&&!Se[--ue];);for(var B=new Ao(++ue),te=0,Ce=Se[0],De=1,Le=function(it){B[te++]=it},je=1;je<=ue;++je)if(Se[je]==Ce&&je!=ue)++De;else{if(!Ce&&De>2){for(;De>138;De-=138)Le(32754);De>2&&(Le(De>10?De-11<<5|28690:De-3<<5|12305),De=0)}else if(De>3){for(Le(Ce),--De;De>6;De-=6)Le(8304);De>2&&(Le(De-3<<5|8208),De=0)}for(;De--;)Le(Ce);De=1,Ce=Se[je]}return[B.subarray(0,te),ue]},Mo=function(Se,ue){for(var B=0,te=0;te>>8,Se[Ce+2]=255^Se[Ce],Se[Ce+3]=255^Se[Ce+1];for(var De=0;De4&&!kr[ms[hn-1]];--hn);var br,jr,wr,Kr,Hn=Pt+5<<3,Vn=Mo(Ce,Yl)+Mo(De,Bt)+Le,Rr=Mo(Ce,Jt)+Mo(De,nn)+Le+14+3*hn+Mo(sr,kr)+(2*sr[16]+3*sr[17]+7*sr[18]);if(Hn<=Vn&&Hn<=Rr)return Ml(ue,Zt,Se.subarray(it,it+Pt));if(Ba(ue,Zt,1+(Rr15&&(Ba(ue,Zt,Cn[Rn]>>>5&127),Zt+=Cn[Rn]>>>12)}}else br=Si,jr=Yl,wr=Sn,Kr=Bt;for(Rn=0;Rn255){var Ln;ga(ue,Zt,br[257+(Ln=te[Rn]>>>18&31)]),Zt+=jr[Ln+257],Ln>7&&(Ba(ue,Zt,te[Rn]>>>23&31),Zt+=us[Ln]);var Jn=31&te[Rn];ga(ue,Zt,wr[Jn]),Zt+=Kr[Jn],Jn>3&&(ga(ue,Zt,te[Rn]>>>5&8191),Zt+=Ql[Jn])}else ga(ue,Zt,br[te[Rn]]),Zt+=jr[te[Rn]];return ga(ue,Zt,br[256]),Zt+jr[256]},el=new Ha([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),_s=new zo(0),Zl=function(Se,ue,B,te,Ce){return function(Se,ue,B,te,Ce,De){var Le=Se.length,je=new zo(te+Le+5*(1+Math.floor(Le/7e3))+Ce),it=je.subarray(te,je.length-Ce),Pt=0;if(!ue||Le<8)for(var Zt=0;Zt<=Le;Zt+=65535){var fi=Zt+65535;fi>>13,sn=8191&Jt,nn=(1<7e3||kr>24576)&&br>423){Pt=gs(Se,it,0,ur,Vr,sr,Nr,kr,hn,Zt-hn,Pt),kr=Rn=Nr=0,hn=Zt;for(var jr=0;jr<286;++jr)Vr[jr]=0;for(jr=0;jr<30;++jr)sr[jr]=0}var wr=2,Kr=0,Xr=sn,Ja=Vn-Rr&32767;if(br>2&&Hn==Fn(Zt-Ja))for(var Vi=Math.min(Rt,br)-1,Cn=Math.min(32767,Zt),Ln=Math.min(258,br);Ja<=Cn&&--Xr&&Vn!=Rr;){if(Se[Zt+wr]==Se[Zt+wr-Ja]){for(var Jn=0;Jnwr){if(wr=Jn,Kr=Ja,Jn>Vi)break;var lr=Math.min(Ja,Jn-2),Sr=0;for(jr=0;jrSr&&(Sr=za,Rr=Br)}}}Ja+=(Vn=Rr)-(Rr=fn[Vn])+32768&32767}if(Kr){ur[kr++]=268435456|rs[wr]<<18|jl[Kr];var _a=31&rs[wr],Xa=31&jl[Kr];Nr+=us[_a]+Ql[Xa],++Vr[257+_a],++sr[Xa],mn=Zt+wr,++Rn}else ur[kr++]=Se[Zt],++Vr[Se[Zt]]}}Pt=gs(Se,it,De,ur,Vr,sr,Nr,kr,hn,Zt-hn,Pt),De||(Pt=Ml(it,Pt,_s))}return va(je,0,te+Pa(Pt)+Ce)}(Se,null==ue.level?6:ue.level,null==ue.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(Se.length)))):12+ue.mem,B,te,!Ce)};function ml(Se,ue){void 0===ue&&(ue={});var B=function(){var Se=1,ue=0;return{p:function(B){for(var te=Se,Ce=ue,De=B.length,Le=0;Le!=De;){for(var je=Math.min(Le+5552,De);Le>>8<<16|(255&ue)<<8|ue>>>8)+2*((255&Se)<<23)}}}();B.p(Se);var te=Zl(Se,ue,2,4);return function(Se,ue){var B=ue.level,te=0==B?0:B<6?1:9==B?3:2;Se[0]=120,Se[1]=te<<6|(te?32-2*te:1)}(te,ue),function(Se,ue,B){for(;B;++ue)Se[ue]=B,B>>>=8}(te,te.length-4,B.d()),te}function id(Se,ue){return function(Se,ue,B){var te=Se.length,Ce=!ue||B,De=!B||B.i;B||(B={}),ue||(ue=new zo(3*te));var Le=function(lr){var Sr=ue.length;if(lr>Sr){var Br=new zo(Math.max(2*Sr,lr));Br.set(ue),ue=Br}},je=B.f||0,it=B.p||0,Pt=B.b||0,Zt=B.l,fi=B.d,Jt=B.m,Rt=B.n,sn=8*te;do{if(!Zt){B.f=je=tr(Se,it,1);var nn=tr(Se,it+1,3);if(it+=3,!nn){var $i=Se[(fn=Pa(it)+4)-4]|Se[fn-3]<<8,vn=fn+$i;if(vn>te){if(De)throw"unexpected EOF";break}Ce&&Le(Pt+$i),ue.set(Se.subarray(fn,vn),Pt),B.b=Pt+=$i,B.p=it=8*vn;continue}if(1==nn)Zt=Ni,fi=Dn,Jt=9,Rt=5;else{if(2!=nn)throw"invalid block type";var kn=tr(Se,it,31)+257,Fn=tr(Se,it+10,15)+4,ur=kn+tr(Se,it+5,31)+1;it+=14;for(var Vr=new zo(ur),sr=new zo(19),Rn=0;Rnsn)break;var mn=ws(sr,Nr,1);for(Rn=0;Rn>>4)<16)Vr[Rn++]=fn;else{var Hn=0,Vn=0;for(16==fn?(Vn=3+tr(Se,it,3),it+=2,Hn=Vr[Rn-1]):17==fn?(Vn=3+tr(Se,it,7),it+=3):18==fn&&(Vn=11+tr(Se,it,127),it+=7);Vn--;)Vr[Rn++]=Hn}}var Rr=Vr.subarray(0,kn),br=Vr.subarray(kn);Jt=Kn(Rr),Rt=Kn(br),Zt=ws(Rr,Jt,1),fi=ws(br,Rt,1)}if(it>sn)throw"unexpected EOF"}Ce&&Le(Pt+131072);for(var jr=(1<>>4;if((it+=15&Hn)>sn)throw"unexpected EOF";if(!Hn)throw"invalid length/literal";if(Xr<256)ue[Pt++]=Xr;else{if(256==Xr){Zt=null;break}var Ja=Xr-254;Xr>264&&(Ja=tr(Se,it,(1<<(Vi=us[Rn=Xr-257]))-1)+Xd[Rn],it+=Vi);var Cn=fi[xr(Se,it)&wr],Ln=Cn>>>4;if(!Cn)throw"invalid distance";if(it+=15&Cn,br=Zs[Ln],Ln>3){var Vi=Ql[Ln];br+=xr(Se,it)&(1<sn)throw"unexpected EOF";Ce&&Le(Pt+131072);for(var Jn=Pt+Ja;Pt>>4>7||(Se[0]<<8|Se[1])%31)throw"invalid zlib data";if(32&Se[1])throw"invalid zlib data: preset dictionaries not supported"}(Se),Se.subarray(2,-4)),ue)}var wo=function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this}();function lc(){wo.console&&"function"==typeof wo.console.log&&wo.console.log.apply(wo.console,arguments)}var $s={log:lc,warn:function(Se){wo.console&&("function"==typeof wo.console.warn?wo.console.warn.apply(wo.console,arguments):lc.call(null,arguments))},error:function(Se){wo.console&&("function"==typeof wo.console.error?wo.console.error.apply(wo.console,arguments):lc(Se))}};function et(Se,ue,B){var te=new XMLHttpRequest;te.open("GET",Se),te.responseType="blob",te.onload=function(){Bn(te.response,ue,B)},te.onerror=function(){$s.error("could not download file")},te.send()}function Ot(Se){var ue=new XMLHttpRequest;ue.open("HEAD",Se,!1);try{ue.send()}catch{}return ue.status>=200&&ue.status<=299}function Qt(Se){try{Se.dispatchEvent(new MouseEvent("click"))}catch{var ue=document.createEvent("MouseEvents");ue.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),Se.dispatchEvent(ue)}}var Ei,on,Bn=wo.saveAs||("object"!==(typeof window>"u"?"undefined":(0,mo.A)(window))||window!==wo?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(Se,ue,B){var te=wo.URL||wo.webkitURL,Ce=document.createElement("a");Ce.download=ue=ue||Se.name||"download",Ce.rel="noopener","string"==typeof Se?(Ce.href=Se,Ce.origin!==location.origin?Ot(Ce.href)?et(Se,ue,B):Qt(Ce,Ce.target="_blank"):Qt(Ce)):(Ce.href=te.createObjectURL(Se),setTimeout(function(){te.revokeObjectURL(Ce.href)},4e4),setTimeout(function(){Qt(Ce)},0))}:"msSaveOrOpenBlob"in navigator?function(Se,ue,B){if(ue=ue||Se.name||"download","string"==typeof Se)if(Ot(Se))et(Se,ue,B);else{var te=document.createElement("a");te.href=Se,te.target="_blank",setTimeout(function(){Qt(te)})}else navigator.msSaveOrOpenBlob((Ce=Se,void 0===(De=B)?De={autoBom:!1}:"object"!==(0,mo.A)(De)&&($s.warn("Deprecated: Expected third argument to be a object"),De={autoBom:!De}),De.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(Ce.type)?new Blob(["\ufeff",Ce],{type:Ce.type}):Ce),ue);var Ce,De}:function(Se,ue,B,te){if((te=te||open("","_blank"))&&(te.document.title=te.document.body.innerText="downloading..."),"string"==typeof Se)return et(Se,ue,B);var Ce="application/octet-stream"===Se.type,De=/constructor/i.test(wo.HTMLElement)||wo.safari,Le=/CriOS\/[\d]+/.test(navigator.userAgent);if((Le||Ce&&De)&&"object"===(typeof FileReader>"u"?"undefined":(0,mo.A)(FileReader))){var je=new FileReader;je.onloadend=function(){var Zt=je.result;Zt=Le?Zt:Zt.replace(/^data:[^;]*;/,"data:attachment/file;"),te?te.location.href=Zt:location=Zt,te=null},je.readAsDataURL(Se)}else{var it=wo.URL||wo.webkitURL,Pt=it.createObjectURL(Se);te?te.location=Pt:location.href=Pt,te=null,setTimeout(function(){it.revokeObjectURL(Pt)},4e4)}});function ir(Se){var ue;Se=Se||"",this.ok=!1,"#"==Se.charAt(0)&&(Se=Se.substr(1,6)),Se={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",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[Se=(Se=Se.replace(/ /g,"")).toLowerCase()]||Se;for(var B=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(je){return[parseInt(je[1]),parseInt(je[2]),parseInt(je[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(je){return[parseInt(je[1],16),parseInt(je[2],16),parseInt(je[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(je){return[parseInt(je[1]+je[1],16),parseInt(je[2]+je[2],16),parseInt(je[3]+je[3],16)]}}],te=0;te255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var je=this.r.toString(16),it=this.g.toString(16),Pt=this.b.toString(16);return 1==je.length&&(je="0"+je),1==it.length&&(it="0"+it),1==Pt.length&&(Pt="0"+Pt),"#"+je+it+Pt}}function Yr(Se,ue){var B=Se[0],te=Se[1],Ce=Se[2],De=Se[3];B=pa(B,te,Ce,De,ue[0],7,-680876936),De=pa(De,B,te,Ce,ue[1],12,-389564586),Ce=pa(Ce,De,B,te,ue[2],17,606105819),te=pa(te,Ce,De,B,ue[3],22,-1044525330),B=pa(B,te,Ce,De,ue[4],7,-176418897),De=pa(De,B,te,Ce,ue[5],12,1200080426),Ce=pa(Ce,De,B,te,ue[6],17,-1473231341),te=pa(te,Ce,De,B,ue[7],22,-45705983),B=pa(B,te,Ce,De,ue[8],7,1770035416),De=pa(De,B,te,Ce,ue[9],12,-1958414417),Ce=pa(Ce,De,B,te,ue[10],17,-42063),te=pa(te,Ce,De,B,ue[11],22,-1990404162),B=pa(B,te,Ce,De,ue[12],7,1804603682),De=pa(De,B,te,Ce,ue[13],12,-40341101),Ce=pa(Ce,De,B,te,ue[14],17,-1502002290),B=fa(B,te=pa(te,Ce,De,B,ue[15],22,1236535329),Ce,De,ue[1],5,-165796510),De=fa(De,B,te,Ce,ue[6],9,-1069501632),Ce=fa(Ce,De,B,te,ue[11],14,643717713),te=fa(te,Ce,De,B,ue[0],20,-373897302),B=fa(B,te,Ce,De,ue[5],5,-701558691),De=fa(De,B,te,Ce,ue[10],9,38016083),Ce=fa(Ce,De,B,te,ue[15],14,-660478335),te=fa(te,Ce,De,B,ue[4],20,-405537848),B=fa(B,te,Ce,De,ue[9],5,568446438),De=fa(De,B,te,Ce,ue[14],9,-1019803690),Ce=fa(Ce,De,B,te,ue[3],14,-187363961),te=fa(te,Ce,De,B,ue[8],20,1163531501),B=fa(B,te,Ce,De,ue[13],5,-1444681467),De=fa(De,B,te,Ce,ue[2],9,-51403784),Ce=fa(Ce,De,B,te,ue[7],14,1735328473),B=eo(B,te=fa(te,Ce,De,B,ue[12],20,-1926607734),Ce,De,ue[5],4,-378558),De=eo(De,B,te,Ce,ue[8],11,-2022574463),Ce=eo(Ce,De,B,te,ue[11],16,1839030562),te=eo(te,Ce,De,B,ue[14],23,-35309556),B=eo(B,te,Ce,De,ue[1],4,-1530992060),De=eo(De,B,te,Ce,ue[4],11,1272893353),Ce=eo(Ce,De,B,te,ue[7],16,-155497632),te=eo(te,Ce,De,B,ue[10],23,-1094730640),B=eo(B,te,Ce,De,ue[13],4,681279174),De=eo(De,B,te,Ce,ue[0],11,-358537222),Ce=eo(Ce,De,B,te,ue[3],16,-722521979),te=eo(te,Ce,De,B,ue[6],23,76029189),B=eo(B,te,Ce,De,ue[9],4,-640364487),De=eo(De,B,te,Ce,ue[12],11,-421815835),Ce=eo(Ce,De,B,te,ue[15],16,530742520),B=Oo(B,te=eo(te,Ce,De,B,ue[2],23,-995338651),Ce,De,ue[0],6,-198630844),De=Oo(De,B,te,Ce,ue[7],10,1126891415),Ce=Oo(Ce,De,B,te,ue[14],15,-1416354905),te=Oo(te,Ce,De,B,ue[5],21,-57434055),B=Oo(B,te,Ce,De,ue[12],6,1700485571),De=Oo(De,B,te,Ce,ue[3],10,-1894986606),Ce=Oo(Ce,De,B,te,ue[10],15,-1051523),te=Oo(te,Ce,De,B,ue[1],21,-2054922799),B=Oo(B,te,Ce,De,ue[8],6,1873313359),De=Oo(De,B,te,Ce,ue[15],10,-30611744),Ce=Oo(Ce,De,B,te,ue[6],15,-1560198380),te=Oo(te,Ce,De,B,ue[13],21,1309151649),B=Oo(B,te,Ce,De,ue[4],6,-145523070),De=Oo(De,B,te,Ce,ue[11],10,-1120210379),Ce=Oo(Ce,De,B,te,ue[2],15,718787259),te=Oo(te,Ce,De,B,ue[9],21,-343485551),Se[0]=hi(B,Se[0]),Se[1]=hi(te,Se[1]),Se[2]=hi(Ce,Se[2]),Se[3]=hi(De,Se[3])}function Ir(Se,ue,B,te,Ce,De){return ue=hi(hi(ue,Se),hi(te,De)),hi(ue<>>32-Ce,B)}function pa(Se,ue,B,te,Ce,De,Le){return Ir(ue&B|~ue&te,Se,ue,Ce,De,Le)}function fa(Se,ue,B,te,Ce,De,Le){return Ir(ue&te|B&~te,Se,ue,Ce,De,Le)}function eo(Se,ue,B,te,Ce,De,Le){return Ir(ue^B^te,Se,ue,Ce,De,Le)}function Oo(Se,ue,B,te,Ce,De,Le){return Ir(B^(ue|~te),Se,ue,Ce,De,Le)}function Fs(Se){var ue,B=Se.length,te=[1732584193,-271733879,-1732584194,271733878];for(ue=64;ue<=Se.length;ue+=64)Yr(te,Tl(Se.substring(ue-64,ue)));Se=Se.substring(ue-64);var Ce=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(ue=0;ue>2]|=Se.charCodeAt(ue)<<(ue%4<<3);if(Ce[ue>>2]|=128<<(ue%4<<3),ue>55)for(Yr(te,Ce),ue=0;ue<16;ue++)Ce[ue]=0;return Ce[14]=8*B,Yr(te,Ce),te}function Tl(Se){var ue,B=[];for(ue=0;ue<64;ue+=4)B[ue>>2]=Se.charCodeAt(ue)+(Se.charCodeAt(ue+1)<<8)+(Se.charCodeAt(ue+2)<<16)+(Se.charCodeAt(ue+3)<<24);return B}Ei=wo.atob.bind(wo),on=wo.btoa.bind(wo);var Rs="0123456789abcdef".split("");function Qc(Se){for(var ue="",B=0;B<4;B++)ue+=Rs[Se>>8*B+4&15]+Rs[Se>>8*B&15];return ue}function ut(Se){return String.fromCharCode(255&Se,(65280&Se)>>8,(16711680&Se)>>16,(4278190080&Se)>>24)}function Mi(Se){return Fs(Se).map(ut).join("")}var Gt="5d41402abc4b2a76b9719d911017c592"!=function(Se){for(var ue=0;ue>16)+(ue>>16)+(B>>16)<<16|65535&B}return Se+ue&4294967295}function gn(Se,ue){var B,te,Ce;if(Se!==B){for(var Le=(Ce=Se,new Array(1+(256/Se.length|0)+1).join(Ce)),je=[],it=0;it<256;it++)je[it]=it;var Pt=0;for(it=0;it<256;it++){var Zt=je[it];Pt=(Pt+Zt+Le.charCodeAt(it))%256,je[it]=je[Pt],je[Pt]=Zt}B=Se,te=je}else je=te;var fi=ue.length,Jt=0,Rt=0,sn="";for(it=0;it\x80/\f\xa9\xfedSiz";var De=(ue+this.padding).substr(0,32),Le=(B+this.padding).substr(0,32);this.O=this.processOwnerPassword(De,Le),this.P=-(1+(255^Ce)),this.encryptionKey=Mi(De+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(te)).substr(0,5),this.U=gn(this.encryptionKey,this.padding)}function Da(Se){if(/[^\u0000-\u00ff]/.test(Se))throw new Error("Invalid PDF Name Object: "+Se+", Only accept ASCII characters.");for(var ue="",B=Se.length,te=0;te126?"#"+("0"+Ce.toString(16)).slice(-2):Se[te]}return ue}function Ca(Se){if("object"!==(0,mo.A)(Se))throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var ue={};this.subscribe=function(B,te,Ce){if(Ce=Ce||!1,"string"!=typeof B||"function"!=typeof te||"boolean"!=typeof Ce)throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");ue.hasOwnProperty(B)||(ue[B]={});var De=Math.random().toString(35);return ue[B][De]=[te,!!Ce],De},this.unsubscribe=function(B){for(var te in ue)if(ue[te][B])return delete ue[te][B],0===Object.keys(ue[te]).length&&delete ue[te],!0;return!1},this.publish=function(B){if(ue.hasOwnProperty(B)){var te=Array.prototype.slice.call(arguments,1),Ce=[];for(var De in ue[B]){var Le=ue[B][De];try{Le[0].apply(Se,te)}catch(je){wo.console&&$s.error("jsPDF PubSub Error",je.message,je)}Le[1]&&Ce.push(De)}Ce.length&&Ce.forEach(this.unsubscribe)}},this.getTopics=function(){return ue}}function ts(Se){if(!(this instanceof ts))return new ts(Se);var ue="opacity,stroke-opacity".split(",");for(var B in Se)Se.hasOwnProperty(B)&&ue.indexOf(B)>=0&&(this[B]=Se[B]);this.id="",this.objectNumber=-1}function zn(Se,ue){this.gState=Se,this.matrix=ue,this.id="",this.objectNumber=-1}function bo(Se,ue,B,te,Ce){if(!(this instanceof bo))return new bo(Se,ue,B,te,Ce);this.type="axial"===Se?2:3,this.coords=ue,this.colors=B,zn.call(this,te,Ce)}function Ss(Se,ue,B,te,Ce){if(!(this instanceof Ss))return new Ss(Se,ue,B,te,Ce);this.boundingBox=Se,this.xStep=ue,this.yStep=B,this.stream="",this.cloneIndex=0,zn.call(this,te,Ce)}function wa(Se){var ue,B="string"==typeof arguments[0]?arguments[0]:"p",te=arguments[1],Ce=arguments[2],De=arguments[3],Le=[],je=1,it=16,Pt="S",Zt=null;"object"===(0,mo.A)(Se=Se||{})&&(B=Se.orientation,te=Se.unit||te,Ce=Se.format||Ce,De=Se.compress||Se.compressPdf||De,null!==(Zt=Se.encryption||null)&&(Zt.userPassword=Zt.userPassword||"",Zt.ownerPassword=Zt.ownerPassword||"",Zt.userPermissions=Zt.userPermissions||[]),je="number"==typeof Se.userUnit?Math.abs(Se.userUnit):1,void 0!==Se.precision&&(ue=Se.precision),void 0!==Se.floatPrecision&&(it=Se.floatPrecision),Pt=Se.defaultPathOperation||"S"),Le=Se.filters||(!0===De?["FlateEncode"]:Le),te=te||"mm",B=(""+(B||"P")).toLowerCase();var fi=Se.putOnlyUsedFonts||!1,Jt={},Rt={internal:{},__private__:{}};Rt.__private__.PubSub=Ca;var sn="1.3",nn=Rt.__private__.getPdfVersion=function(){return sn};Rt.__private__.setPdfVersion=function(mt){sn=mt};var fn={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};Rt.__private__.getPageFormats=function(){return fn};var $i=Rt.__private__.getPageFormat=function(mt){return fn[mt]};Ce=Ce||"a4";var kn="compat";function Fn(){this.saveGraphicsState(),Pn(new Do(ro,0,0,-ro,0,lf()*ro).toString()+" cm"),this.setFontSize(this.getFontSize()/ro),Pt="n",kn="advanced"}function ur(){this.restoreGraphicsState(),Pt="S",kn="compat"}var Vr=Rt.__private__.combineFontStyleAndFontWeight=function(mt,ki){if("bold"==mt&&"normal"==ki||"bold"==mt&&400==ki||"normal"==mt&&"italic"==ki||"bold"==mt&&"italic"==ki)throw new Error("Invalid Combination of fontweight and fontstyle");return ki&&(mt=400==ki||"normal"===ki?"italic"===mt?"italic":"normal":700!=ki&&"bold"!==ki||"normal"!==mt?(700==ki?"bold":ki)+""+mt:"bold"),mt};Rt.advancedAPI=function(mt){var ki="compat"===kn;return ki&&Fn.call(this),"function"!=typeof mt||(mt(this),ki&&ur.call(this)),this},Rt.compatAPI=function(mt){var ki="advanced"===kn;return ki&&ur.call(this),"function"!=typeof mt||(mt(this),ki&&Fn.call(this)),this},Rt.isAdvancedAPI=function(){return"advanced"===kn};var sr,Rn=function(mt){if("advanced"!==kn)throw new Error(mt+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},Nr=Rt.roundToPrecision=Rt.__private__.roundToPrecision=function(mt,ki){var Mn=ue||ki;if(isNaN(mt)||isNaN(Mn))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return mt.toFixed(Mn).replace(/0+$/,"")};sr=Rt.hpf=Rt.__private__.hpf="number"==typeof it?function(mt){if(isNaN(mt))throw new Error("Invalid argument passed to jsPDF.hpf");return Nr(mt,it)}:"smart"===it?function(mt){if(isNaN(mt))throw new Error("Invalid argument passed to jsPDF.hpf");return Nr(mt,mt>-1&&mt<1?16:5)}:function(mt){if(isNaN(mt))throw new Error("Invalid argument passed to jsPDF.hpf");return Nr(mt,16)};var kr=Rt.f2=Rt.__private__.f2=function(mt){if(isNaN(mt))throw new Error("Invalid argument passed to jsPDF.f2");return Nr(mt,2)},mn=Rt.__private__.f3=function(mt){if(isNaN(mt))throw new Error("Invalid argument passed to jsPDF.f3");return Nr(mt,3)},hn=Rt.scale=Rt.__private__.scale=function(mt){if(isNaN(mt))throw new Error("Invalid argument passed to jsPDF.scale");return"compat"===kn?mt*ro:"advanced"===kn?mt:void 0},Vn=function(mt){return hn(function(mt){return"compat"===kn?lf()-mt:"advanced"===kn?mt:void 0}(mt))};Rt.__private__.setPrecision=Rt.setPrecision=function(mt){"number"==typeof parseInt(mt,10)&&(ue=parseInt(mt,10))};var Rr,br="00000000000000000000000000000000",jr=Rt.__private__.getFileId=function(){return br},wr=Rt.__private__.setFileId=function(mt){return br=void 0!==mt&&/^[a-fA-F0-9]{32}$/.test(mt)?mt.toUpperCase():br.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),null!==Zt&&(Wd=new Tr(Zt.userPermissions,Zt.userPassword,Zt.ownerPassword,br)),br};Rt.setFileId=function(mt){return wr(mt),this},Rt.getFileId=function(){return jr()};var Kr=Rt.__private__.convertDateToPDFDate=function(mt){var ki=mt.getTimezoneOffset(),Mn=ki<0?"+":"-",Xn=Math.floor(Math.abs(ki/60)),yr=Math.abs(ki%60),$r=[Mn,Ln(Xn),"'",Ln(yr),"'"].join("");return["D:",mt.getFullYear(),Ln(mt.getMonth()+1),Ln(mt.getDate()),Ln(mt.getHours()),Ln(mt.getMinutes()),Ln(mt.getSeconds()),$r].join("")},Xr=Rt.__private__.convertPDFDateToDate=function(mt){var ki=parseInt(mt.substr(2,4),10),Mn=parseInt(mt.substr(6,2),10)-1,Xn=parseInt(mt.substr(8,2),10),yr=parseInt(mt.substr(10,2),10),$r=parseInt(mt.substr(12,2),10),Ta=parseInt(mt.substr(14,2),10);return new Date(ki,Mn,Xn,yr,$r,Ta,0)},Ja=Rt.__private__.setCreationDate=function(mt){var ki;if(void 0===mt&&(mt=new Date),mt instanceof Date)ki=Kr(mt);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(mt))throw new Error("Invalid argument passed to jsPDF.setCreationDate");ki=mt}return Rr=ki},Vi=Rt.__private__.getCreationDate=function(mt){var ki=Rr;return"jsDate"===mt&&(ki=Xr(Rr)),ki};Rt.setCreationDate=function(mt){return Ja(mt),this},Rt.getCreationDate=function(mt){return Vi(mt)};var Cn,Ln=Rt.__private__.padd2=function(mt){return("0"+parseInt(mt)).slice(-2)},Jn=Rt.__private__.padd2Hex=function(mt){return("00"+(mt=mt.toString())).substr(mt.length)},lr=0,Sr=[],Br=[],Lr=0,za=[],_a=[],Xa=!1,Oa=Br;Rt.__private__.setCustomOutputDestination=function(mt){Xa=!0,Oa=mt};var Jr=function(mt){Xa||(Oa=mt)};Rt.__private__.resetCustomOutputDestination=function(){Xa=!1,Oa=Br};var Pn=Rt.__private__.out=function(mt){return mt=mt.toString(),Lr+=mt.length+1,Oa.push(mt),Oa},cs=Rt.__private__.write=function(mt){return Pn(1===arguments.length?mt.toString():Array.prototype.join.call(arguments," "))},So=Rt.__private__.getArrayBuffer=function(mt){for(var ki=mt.length,Mn=new ArrayBuffer(ki),Xn=new Uint8Array(Mn);ki--;)Xn[ki]=mt.charCodeAt(ki);return Mn},Ea=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];Rt.__private__.getStandardFonts=function(){return Ea};var ka=Se.fontSize||16;Rt.__private__.setFontSize=Rt.setFontSize=function(mt){return ka="advanced"===kn?mt/ro:mt,this};var Ka,qa=Rt.__private__.getFontSize=Rt.getFontSize=function(){return"compat"===kn?ka:ka*ro},Po=Se.R2L||!1;Rt.__private__.setR2L=Rt.setR2L=function(mt){return Po=mt,this},Rt.__private__.getR2L=Rt.getR2L=function(){return Po};var Jo,Ds=Rt.__private__.setZoomMode=function(mt){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(mt))Ka=mt;else if(isNaN(mt)){if(-1===[void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(mt))throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+mt+'" is not recognized.');Ka=mt}else Ka=parseInt(mt,10)};Rt.__private__.getZoomMode=function(){return Ka};var Us,Cl=Rt.__private__.setPageMode=function(mt){if(-1==[void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(mt))throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+mt+'" is not recognized.');Jo=mt};Rt.__private__.getPageMode=function(){return Jo};var gl=Rt.__private__.setLayoutMode=function(mt){if(-1==[void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(mt))throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+mt+'" is not recognized.');Us=mt};Rt.__private__.getLayoutMode=function(){return Us},Rt.__private__.setDisplayMode=Rt.setDisplayMode=function(mt,ki,Mn){return Ds(mt),gl(ki),Cl(Mn),this};var ls={title:"",subject:"",author:"",keywords:"",creator:""};Rt.__private__.getDocumentProperty=function(mt){if(-1===Object.keys(ls).indexOf(mt))throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return ls[mt]},Rt.__private__.getDocumentProperties=function(){return ls},Rt.__private__.setDocumentProperties=Rt.setProperties=Rt.setDocumentProperties=function(mt){for(var ki in ls)ls.hasOwnProperty(ki)&&mt[ki]&&(ls[ki]=mt[ki]);return this},Rt.__private__.setDocumentProperty=function(mt,ki){if(-1===Object.keys(ls).indexOf(mt))throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return ls[mt]=ki};var bs,ro,wc,il,xu,Rl={},fd={},bh=[],nl={},Sp={},rd={},nh={},Lu=null,ll=0,os=[],co=new Ca(Rt),ef=Se.hotfixes||[],Sc={},Id={},ad=[],Do=function mt(ki,Mn,Xn,yr,$r,Ta){if(!(this instanceof mt))return new mt(ki,Mn,Xn,yr,$r,Ta);isNaN(ki)&&(ki=1),isNaN(Mn)&&(Mn=0),isNaN(Xn)&&(Xn=0),isNaN(yr)&&(yr=1),isNaN($r)&&($r=0),isNaN(Ta)&&(Ta=0),this._matrix=[ki,Mn,Xn,yr,$r,Ta]};Object.defineProperty(Do.prototype,"sx",{get:function(){return this._matrix[0]},set:function(mt){this._matrix[0]=mt}}),Object.defineProperty(Do.prototype,"shy",{get:function(){return this._matrix[1]},set:function(mt){this._matrix[1]=mt}}),Object.defineProperty(Do.prototype,"shx",{get:function(){return this._matrix[2]},set:function(mt){this._matrix[2]=mt}}),Object.defineProperty(Do.prototype,"sy",{get:function(){return this._matrix[3]},set:function(mt){this._matrix[3]=mt}}),Object.defineProperty(Do.prototype,"tx",{get:function(){return this._matrix[4]},set:function(mt){this._matrix[4]=mt}}),Object.defineProperty(Do.prototype,"ty",{get:function(){return this._matrix[5]},set:function(mt){this._matrix[5]=mt}}),Object.defineProperty(Do.prototype,"a",{get:function(){return this._matrix[0]},set:function(mt){this._matrix[0]=mt}}),Object.defineProperty(Do.prototype,"b",{get:function(){return this._matrix[1]},set:function(mt){this._matrix[1]=mt}}),Object.defineProperty(Do.prototype,"c",{get:function(){return this._matrix[2]},set:function(mt){this._matrix[2]=mt}}),Object.defineProperty(Do.prototype,"d",{get:function(){return this._matrix[3]},set:function(mt){this._matrix[3]=mt}}),Object.defineProperty(Do.prototype,"e",{get:function(){return this._matrix[4]},set:function(mt){this._matrix[4]=mt}}),Object.defineProperty(Do.prototype,"f",{get:function(){return this._matrix[5]},set:function(mt){this._matrix[5]=mt}}),Object.defineProperty(Do.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Do.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Do.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Do.prototype,"isIdentity",{get:function(){return 1===this.sx&&0===this.shy&&0===this.shx&&1===this.sy&&0===this.tx&&0===this.ty}}),Do.prototype.join=function(mt){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(sr).join(mt)},Do.prototype.multiply=function(mt){return new Do(mt.sx*this.sx+mt.shy*this.shx,mt.sx*this.shy+mt.shy*this.sy,mt.shx*this.sx+mt.sy*this.shx,mt.shx*this.shy+mt.sy*this.sy,mt.tx*this.sx+mt.ty*this.shx+this.tx,mt.tx*this.shy+mt.ty*this.sy+this.ty)},Do.prototype.decompose=function(){var mt=this.sx,ki=this.shy,Mn=this.shx,Xn=this.sy,yr=this.tx,$r=this.ty,Ta=Math.sqrt(mt*mt+ki*ki),ho=(mt/=Ta)*Mn+(ki/=Ta)*Xn;Mn-=mt*ho,Xn-=ki*ho;var Go=Math.sqrt(Mn*Mn+Xn*Xn);return ho/=Go,mt*(Xn/=Go)>16&255,Xn=Go>>8&255,yr=255&Go}if(void 0===Xn||void 0===$r&&Mn===Xn&&Xn===yr)ki="string"==typeof Mn?Mn+" "+Ta[0]:2===mt.precision?kr(Mn/255)+" "+Ta[0]:mn(Mn/255)+" "+Ta[0];else if(void 0===$r||"object"===(0,mo.A)($r)){if($r&&!isNaN($r.a)&&0===$r.a)return["1.","1.","1.",Ta[1]].join(" ");ki="string"==typeof Mn?[Mn,Xn,yr,Ta[1]].join(" "):2===mt.precision?[kr(Mn/255),kr(Xn/255),kr(yr/255),Ta[1]].join(" "):[mn(Mn/255),mn(Xn/255),mn(yr/255),Ta[1]].join(" ")}else ki="string"==typeof Mn?[Mn,Xn,yr,$r,Ta[2]].join(" "):2===mt.precision?[kr(Mn),kr(Xn),kr(yr),kr($r),Ta[2]].join(" "):[mn(Mn),mn(Xn),mn(yr),mn($r),Ta[2]].join(" ");return ki},Dc=Rt.__private__.getFilters=function(){return Le},od=Rt.__private__.putStream=function(mt){var ki=(mt=mt||{}).data||"",Mn=mt.filters||Dc(),Xn=mt.alreadyAppliedFilters||[],yr=mt.addLength1||!1,$r=ki.length,Ta=mt.objectId,ho=function(nc){return nc};if(null!==Zt&&void 0===Ta)throw new Error("ObjectId must be passed to putStream for file encryption");null!==Zt&&(ho=Wd.encryptor(Ta,0));var Go={};!0===Mn&&(Mn=["FlateEncode"]);var ss=mt.additionalKeyValues||[],Xs=(Go=void 0!==wa.API.processDataByFilters?wa.API.processDataByFilters(ki,Mn):{data:ki,reverseChain:[]}).reverseChain+(Array.isArray(Xn)?Xn.join(" "):Xn.toString());if(0!==Go.data.length&&(ss.push({key:"Length",value:Go.data.length}),!0===yr&&ss.push({key:"Length1",value:$r})),0!=Xs.length)if(Xs.split("/").length-1==1)ss.push({key:"Filter",value:Xs});else{ss.push({key:"Filter",value:"["+Xs+"]"});for(var wl=0;wl>"),0!==Go.data.length&&(Pn("stream"),Pn(ho(Go.data)),Pn("endstream"))},Gs=Rt.__private__.putPage=function(mt){var ki=mt.number,Mn=mt.data,Xn=mt.objId,yr=mt.contentsObjId;ec(Xn,!0),Pn("<>"),Pn("endobj");var $r=Mn.join("\n");return"advanced"===kn&&($r+="\nQ"),ec(yr,!0),od({data:$r,filters:Dc(),objectId:yr}),Pn("endobj"),Xn},Rd=Rt.__private__.putPages=function(){var mt,ki,Mn=[];for(mt=1;mt<=ll;mt++)os[mt].objId=Dd(),os[mt].contentsObjId=Dd();for(mt=1;mt<=ll;mt++)Mn.push(Gs({number:mt,data:_a[mt],objId:os[mt].objId,contentsObjId:os[mt].contentsObjId,mediaBox:os[mt].mediaBox,cropBox:os[mt].cropBox,bleedBox:os[mt].bleedBox,trimBox:os[mt].trimBox,artBox:os[mt].artBox,userUnit:os[mt].userUnit,rootDictionaryObjId:Cu,resourceDictionaryObjId:Ed}));ec(Cu,!0),Pn("<>"),Pn("endobj"),co.publish("postPutPages")},$h=function(mt){co.publish("putFont",{font:mt,out:Pn,newObject:Sd,putStream:od}),!0!==mt.isAlreadyPutted&&(mt.objectNumber=Sd(),Pn("<<"),Pn("/Type /Font"),Pn("/BaseFont /"+Da(mt.postScriptName)),Pn("/Subtype /Type1"),"string"==typeof mt.encoding&&Pn("/Encoding /"+mt.encoding),Pn("/FirstChar 32"),Pn("/LastChar 255"),Pn(">>"),Pn("endobj"))},Fu=function(mt){mt.objectNumber=Sd();var ki=[];ki.push({key:"Type",value:"/XObject"}),ki.push({key:"Subtype",value:"/Form"}),ki.push({key:"BBox",value:"["+[sr(mt.x),sr(mt.y),sr(mt.x+mt.width),sr(mt.y+mt.height)].join(" ")+"]"}),ki.push({key:"Matrix",value:"["+mt.matrix.toString()+"]"});var Mn=mt.pages[1].join("\n");od({data:Mn,additionalKeyValues:ki,objectId:mt.objectNumber}),Pn("endobj")},yh=function(mt,ki){ki||(ki=21);var Mn=Sd(),Xn=function(mt,ki){var Mn,Xn=[],yr=1/(ki-1);for(Mn=0;Mn<1;Mn+=yr)Xn.push(Mn);Xn.push(1),0!=mt[0].offset&&mt.unshift({offset:0,color:mt[0].color}),1!=mt[mt.length-1].offset&&mt.push({offset:1,color:mt[mt.length-1].color});for(var ho="",Go=0,ss=0;ssmt[Go+1].offset;)Go++;var Xs=mt[Go].offset,wl=(Mn-Xs)/(mt[Go+1].offset-Xs),jd=mt[Go].color,sd=mt[Go+1].color;ho+=Jn(Math.round((1-wl)*jd[0]+wl*sd[0]).toString(16))+Jn(Math.round((1-wl)*jd[1]+wl*sd[1]).toString(16))+Jn(Math.round((1-wl)*jd[2]+wl*sd[2]).toString(16))}return ho.trim()}(mt.colors,ki),yr=[];yr.push({key:"FunctionType",value:"0"}),yr.push({key:"Domain",value:"[0.0 1.0]"}),yr.push({key:"Size",value:"["+ki+"]"}),yr.push({key:"BitsPerSample",value:"8"}),yr.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),yr.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),od({data:Xn,additionalKeyValues:yr,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:Mn}),Pn("endobj"),mt.objectNumber=Sd(),Pn("<< /ShadingType "+mt.type),Pn("/ColorSpace /DeviceRGB");var $r="/Coords ["+sr(parseFloat(mt.coords[0]))+" "+sr(parseFloat(mt.coords[1]))+" ";$r+=2===mt.type?sr(parseFloat(mt.coords[2]))+" "+sr(parseFloat(mt.coords[3])):sr(parseFloat(mt.coords[2]))+" "+sr(parseFloat(mt.coords[3]))+" "+sr(parseFloat(mt.coords[4]))+" "+sr(parseFloat(mt.coords[5])),Pn($r+="]"),mt.matrix&&Pn("/Matrix ["+mt.matrix.toString()+"]"),Pn("/Function "+Mn+" 0 R"),Pn("/Extend [true true]"),Pn(">>"),Pn("endobj")},Jh=function(mt,ki){var Mn=Dd(),Xn=Sd();ki.push({resourcesOid:Mn,objectOid:Xn}),mt.objectNumber=Xn;var yr=[];yr.push({key:"Type",value:"/Pattern"}),yr.push({key:"PatternType",value:"1"}),yr.push({key:"PaintType",value:"1"}),yr.push({key:"TilingType",value:"1"}),yr.push({key:"BBox",value:"["+mt.boundingBox.map(sr).join(" ")+"]"}),yr.push({key:"XStep",value:sr(mt.xStep)}),yr.push({key:"YStep",value:sr(mt.yStep)}),yr.push({key:"Resources",value:Mn+" 0 R"}),mt.matrix&&yr.push({key:"Matrix",value:"["+mt.matrix.toString()+"]"}),od({data:mt.stream,additionalKeyValues:yr,objectId:mt.objectNumber}),Pn("endobj")},Dp=function(mt){for(var ki in mt.objectNumber=Sd(),Pn("<<"),mt)switch(ki){case"opacity":Pn("/ca "+kr(mt[ki]));break;case"stroke-opacity":Pn("/CA "+kr(mt[ki]))}Pn(">>"),Pn("endobj")},cr=function(mt){ec(mt.resourcesOid,!0),Pn("<<"),Pn("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),function(){for(var mt in Pn("/Font <<"),Rl)Rl.hasOwnProperty(mt)&&(!1===fi||!0===fi&&Jt.hasOwnProperty(mt))&&Pn("/"+mt+" "+Rl[mt].objectNumber+" 0 R");Pn(">>")}(),function(){if(Object.keys(nl).length>0){for(var mt in Pn("/Shading <<"),nl)nl.hasOwnProperty(mt)&&nl[mt]instanceof bo&&nl[mt].objectNumber>=0&&Pn("/"+mt+" "+nl[mt].objectNumber+" 0 R");co.publish("putShadingPatternDict"),Pn(">>")}}(),function(mt){if(Object.keys(nl).length>0){for(var ki in Pn("/Pattern <<"),nl)nl.hasOwnProperty(ki)&&nl[ki]instanceof Rt.TilingPattern&&nl[ki].objectNumber>=0&&nl[ki].objectNumber>")}}(mt.objectOid),function(){if(Object.keys(rd).length>0){var mt;for(mt in Pn("/ExtGState <<"),rd)rd.hasOwnProperty(mt)&&rd[mt].objectNumber>=0&&Pn("/"+mt+" "+rd[mt].objectNumber+" 0 R");co.publish("putGStateDict"),Pn(">>")}}(),function(){for(var mt in Pn("/XObject <<"),Sc)Sc.hasOwnProperty(mt)&&Sc[mt].objectNumber>=0&&Pn("/"+mt+" "+Sc[mt].objectNumber+" 0 R");co.publish("putXobjectDict"),Pn(">>")}(),Pn(">>"),Pn("endobj")},Bs=function(mt){fd[mt.fontName]=fd[mt.fontName]||{},fd[mt.fontName][mt.fontStyle]=mt.id},Pl=function(mt,ki,Mn,Xn,yr){var $r={id:"F"+(Object.keys(Rl).length+1).toString(10),postScriptName:mt,fontName:ki,fontStyle:Mn,encoding:Xn,isStandardFont:yr||!1,metadata:{}};return co.publish("addFont",{font:$r,instance:this}),Rl[$r.id]=$r,Bs($r),$r.id},gd=Rt.__private__.pdfEscape=Rt.pdfEscape=function(mt,ki){return function(mt,ki){var Mn,Xn,yr,$r,Ta,ho,Go,ss,Xs;if(yr=(ki=ki||{}).sourceEncoding||"Unicode",Ta=ki.outputEncoding,(ki.autoencode||Ta)&&Rl[bs].metadata&&Rl[bs].metadata[yr]&&Rl[bs].metadata[yr].encoding&&($r=Rl[bs].metadata[yr].encoding,!Ta&&Rl[bs].encoding&&(Ta=Rl[bs].encoding),!Ta&&$r.codePages&&(Ta=$r.codePages[0]),"string"==typeof Ta&&(Ta=$r[Ta]),Ta)){for(Go=!1,ho=[],Mn=0,Xn=mt.length;Mn>8&&(Go=!0);mt=ho.join("")}for(Mn=mt.length;void 0===Go&&0!==Mn;)mt.charCodeAt(Mn-1)>>8&&(Go=!0),Mn--;if(!Go)return mt;for(ho=ki.noBOM?[]:[254,255],Mn=0,Xn=mt.length;Mn>8)>>8)throw new Error("Character at position "+Mn+" of string '"+mt+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");ho.push(Xs),ho.push(ss-(Xs<<8))}return String.fromCharCode.apply(void 0,ho)}(mt,ki).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},tc=Rt.__private__.beginPage=function(mt){_a[++ll]=[],os[ll]={objId:0,contentsObjId:0,userUnit:Number(je),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(mt[0]),topRightY:Number(mt[1])}},Ep(ll),Jr(_a[Cn])},Pd=function(mt,ki){var Mn,Xn,yr;switch(B=ki||B,"string"==typeof mt&&(Mn=$i(mt.toLowerCase()),Array.isArray(Mn)&&(Xn=Mn[0],yr=Mn[1])),Array.isArray(mt)&&(Xn=mt[0]*ro,yr=mt[1]*ro),isNaN(Xn)&&(Xn=Ce[0],yr=Ce[1]),(Xn>14400||yr>14400)&&($s.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),Xn=Math.min(14400,Xn),yr=Math.min(14400,yr)),Ce=[Xn,yr],B.substr(0,1)){case"l":yr>Xn&&(Ce=[yr,Xn]);break;case"p":Xn>yr&&(Ce=[yr,Xn])}tc(Ce),Ll(ua),Pn(ah),0!==jc&&Pn(jc+" J"),0!==Rm&&Pn(Rm+" j"),co.publish("addPage",{pageNumber:ll})},r_=function(mt){mt>0&&mt<=ll&&(_a.splice(mt,1),os.splice(mt,1),ll--,Cn>ll&&(Cn=ll),this.setPage(Cn))},Ep=function(mt){mt>0&&mt<=ll&&(Cn=mt)},Qf=Rt.__private__.getNumberOfPages=Rt.getNumberOfPages=function(){return _a.length-1},Mp=function(mt,ki,Mn){var Xn,yr=void 0;return Mn=Mn||{},ki=void 0!==ki?ki:Rl[bs].fontStyle,Xn=(mt=void 0!==mt?mt:Rl[bs].fontName).toLowerCase(),void 0!==fd[Xn]&&void 0!==fd[Xn][ki]?yr=fd[Xn][ki]:void 0!==fd[mt]&&void 0!==fd[mt][ki]?yr=fd[mt][ki]:!1===Mn.disableWarning&&$s.warn("Unable to look up font label for font '"+mt+"', '"+ki+"'. Refer to getFontList() for available fonts."),yr||Mn.noFallback||null==(yr=fd.times[ki])&&(yr=fd.times.normal),yr},qh=Rt.__private__.putInfo=function(){var mt=Sd(),ki=function(Xn){return Xn};for(var Mn in null!==Zt&&(ki=Wd.encryptor(mt,0)),Pn("<<"),Pn("/Producer ("+gd(ki("jsPDF "+wa.version))+")"),ls)ls.hasOwnProperty(Mn)&&ls[Mn]&&Pn("/"+Mn.substr(0,1).toUpperCase()+Mn.substr(1)+" ("+gd(ki(ls[Mn]))+")");Pn("/CreationDate ("+gd(ki(Rr))+")"),Pn(">>"),Pn("endobj")},Zf=Rt.__private__.putCatalog=function(mt){var ki=(mt=mt||{}).rootDictionaryObjId||Cu;switch(Sd(),Pn("<<"),Pn("/Type /Catalog"),Pn("/Pages "+ki+" 0 R"),Ka||(Ka="fullwidth"),Ka){case"fullwidth":Pn("/OpenAction [3 0 R /FitH null]");break;case"fullheight":Pn("/OpenAction [3 0 R /FitV null]");break;case"fullpage":Pn("/OpenAction [3 0 R /Fit]");break;case"original":Pn("/OpenAction [3 0 R /XYZ null null 1]");break;default:var Mn=""+Ka;"%"===Mn.substr(Mn.length-1)&&(Ka=parseInt(Ka)/100),"number"==typeof Ka&&Pn("/OpenAction [3 0 R /XYZ null null "+kr(Ka)+"]")}switch(Us||(Us="continuous"),Us){case"continuous":Pn("/PageLayout /OneColumn");break;case"single":Pn("/PageLayout /SinglePage");break;case"two":case"twoleft":Pn("/PageLayout /TwoColumnLeft");break;case"tworight":Pn("/PageLayout /TwoColumnRight")}Jo&&Pn("/PageMode /"+Jo),co.publish("putCatalog"),Pn(">>"),Pn("endobj")},tf=Rt.__private__.putTrailer=function(){Pn("trailer"),Pn("<<"),Pn("/Size "+(lr+1)),Pn("/Root "+lr+" 0 R"),Pn("/Info "+(lr-1)+" 0 R"),null!==Zt&&Pn("/Encrypt "+Wd.oid+" 0 R"),Pn("/ID [ <"+br+"> <"+br+"> ]"),Pn(">>")},pp=Rt.__private__.putHeader=function(){Pn("%PDF-"+sn),Pn("%\xba\xdf\xac\xe0")},Bg=Rt.__private__.putXRef=function(){var mt="0000000000";Pn("xref"),Pn("0 "+(lr+1)),Pn("0000000000 65535 f ");for(var ki=1;ki<=lr;ki++)Pn("function"==typeof Sr[ki]?(mt+Sr[ki]()).slice(-10)+" 00000 n ":void 0!==Sr[ki]?(mt+Sr[ki]).slice(-10)+" 00000 n ":"0000000000 00000 n ")},fp=Rt.__private__.buildDocument=function(){lr=0,Lr=0,Br=[],Sr=[],za=[],Cu=Dd(),Ed=Dd(),Jr(Br),co.publish("buildDocument"),pp(),Rd(),function(){co.publish("putAdditionalObjects");for(var mt=0;mt"),Pn("/O <"+Wd.toHexString(Wd.O)+">"),Pn("/P "+Wd.P),Pn(">>"),Pn("endobj")),qh(),Zf();var mt=Lr;return Bg(),tf(),Pn("startxref"),Pn(""+mt),Pn("%%EOF"),Jr(_a[Cn]),Br.join("\n")},vm=Rt.__private__.getBlob=function(mt){return new Blob([So(mt)],{type:"application/pdf"})},lg=Rt.output=Rt.__private__.output=((mt=function(mt,ki){switch("string"==typeof(ki=ki||{})?ki={filename:ki}:ki.filename=ki.filename||"generated.pdf",mt){case void 0:return fp();case"save":Rt.save(ki.filename);break;case"arraybuffer":return So(fp());case"blob":return vm(fp());case"bloburi":case"bloburl":if(void 0!==wo.URL&&"function"==typeof wo.URL.createObjectURL)return wo.URL&&wo.URL.createObjectURL(vm(fp()))||void 0;$s.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var Mn="",Xn=fp();try{Mn=on(Xn)}catch{Mn=on(unescape(encodeURIComponent(Xn)))}return"data:application/pdf;filename="+ki.filename+";base64,"+Mn;case"pdfobjectnewwindow":if("[object Window]"===Object.prototype.toString.call(wo)){var yr="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",$r=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';ki.pdfObjectUrl&&(yr=ki.pdfObjectUrl,$r="");var Ta='